feat: add bun- prefix to cache keys (#160)

* feat: add bun- prefix to cache keys

Extract cache key generation into a shared `getCacheKey` function in
utils.ts that both action.ts and cache-save.ts import.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-02-05 17:36:05 +01:00
1 parent 196aaa2bd2
commit ab8cb4e8f8
5 files changed
+87 -83

No files matched your search

Generated Vendored
+35 -35
View File
@@ -1,55 +1,55 @@
var I_=Object.create;var js=Object.defineProperty;var D_=Object.getOwnPropertyDescriptor;var B_=Object.getOwnPropertyNames;var A_=Object.getPrototypeOf,q_=Object.prototype.hasOwnProperty;var o=(t,e)=>js(t,"name",{value:e,configurable:!0});var qt=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Wh=(t,e)=>{for(var a in e)js(t,a,{get:e[a],enumerable:!0})},Kh=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of B_(e))!q_.call(t,r)&&r!==a&&js(t,r,{get:()=>e[r],enumerable:!(i=D_(e,r))||i.enumerable});return t};var ks=(t,e,a)=>(a=t!=null?I_(A_(t)):{},Kh(e||!t||!t.__esModule?js(a,"default",{value:t,enumerable:!0}):a,t)),_p=t=>Kh(js({},"__esModule",{value:!0}),t);var Sp=S(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.toCommandProperties=an.toCommandValue=void 0;function M_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(M_,"toCommandValue");an.toCommandValue=M_;function z_(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(z_,"toCommandProperties");an.toCommandProperties=z_});var Zh=S(ma=>{"use strict";var L_=ma&&ma.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),j_=ma&&ma.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),k_=ma&&ma.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&L_(e,t,a);return j_(e,t),e};Object.defineProperty(ma,"__esModule",{value:!0});ma.issue=ma.issueCommand=void 0;var U_=k_(require("os")),Qh=Sp();function Jh(t,e,a){let i=new xm(t,e,a);process.stdout.write(i.toString()+U_.EOL)}o(Jh,"issueCommand");ma.issueCommand=Jh;function F_(t,e=""){Jh(t,{},e)}o(F_,"issue");ma.issue=F_;var Yh="::",xm=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=Yh+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${V_(r)}`)}}return e+=`${Yh}${H_(this.message)}`,e}};function H_(t){return(0,Qh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(H_,"escapeData");function V_(t){return(0,Qh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(V_,"escapeProperty")});var a6=S(ua=>{"use strict";var $_=ua&&ua.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),G_=ua&&ua.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Nm=ua&&ua.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&$_(e,t,a);return G_(e,t),e};Object.defineProperty(ua,"__esModule",{value:!0});ua.prepareKeyValueMessage=ua.issueFileCommand=void 0;var X_=Nm(require("crypto")),e6=Nm(require("fs")),wm=Nm(require("os")),t6=Sp();function W_(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!e6.existsSync(a))throw new Error(`Missing file at path: ${a}`);e6.appendFileSync(a,`${(0,t6.toCommandValue)(e)}${wm.EOL}`,{encoding:"utf8"})}o(W_,"issueFileCommand");ua.issueFileCommand=W_;function K_(t,e){let a=`ghadelimiter_${X_.randomUUID()}`,i=(0,t6.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${wm.EOL}${i}${wm.EOL}${a}`}o(K_,"prepareKeyValueMessage");ua.prepareKeyValueMessage=K_});var r6=S(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.checkBypass=rn.getProxyUrl=void 0;function Y_(t){let e=t.protocol==="https:";if(i6(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(Y_,"getProxyUrl");rn.getProxyUrl=Y_;function i6(t){if(!t.hostname)return!1;let e=t.hostname;if(Q_(e))return!0;let a=process.env.no_proxy||proLine truncated
`,m.message,m.stack);var u=new Error("tunneling socket could not be established, cause="+m.message);u.code="ECONNRESET",e.request.emit("error",u),i.removeSocket(r)}o(c,"onError")},"createSocket");ci.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function s6(t,e){var a=this;ci.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Sm({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=J_.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(s6,"createSecureSocket");function o6(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(o6,"toOptions");function Sm(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(Sm,"mergeOptions");var qi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?qi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):qi=o(function(){},"debug");nn.debug=qi});var Em=S((lH,d6)=>{d6.exports=p6()});var sn=S(Oe=>{"use strict";var nS=Oe&&Oe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),sS=Oe&&Oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rp=Oe&&Oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&nS(e,t,a);return sS(e,t),e},at=Oe&&Oe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.HttpClient=Oe.isHttps=Oe.HttpClientResponse=Oe.HttpClientError=Oe.getProxyUrl=Oe.MediaTypes=Oe.Headers=Oe.HttpCodes=void 0;var Ep=Rp(require("http")),Cm=Rp(require("https")),l6=Rp(r6()),Cp=Rp(Em()),Ia;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ia=Oe.HttpCodes||(Oe.HttpCodes={}));var Lt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Lt=Oe.Headers||(Oe.Headers={}));var Mi;(function(t){t.ApplicationJson="application/json"})(Mi=Oe.MediaTypes||(Oe.MediaTypes={}));function oS(t){let e=l6.getProxyUrl(new URL(t));return e?e.href:""}o(oS,"getProxyUrl");Oe.getProxyUrl=oS;var pS=[Ia.MovedPermanently,Ia.ResourceMoved,Ia.SeeOther,Ia.TemporaryRedirect,Ia.PermanentRedirect],dS=[Ia.BadGateway,Ia.ServiceUnavailable,Ia.GatewayTimeout],lS=["OPTIONS","GET","DELETE","HEAD"],cS=10,mS=5,Op=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Oe.HttpClientError=Op;var Pp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return at(this,void 0,void 0,function*(){return new Promise(e=>at(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return at(this,void 0,void 0,function*(){return new Promise(e=>at(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Oe.HttpClientResponse=Pp;function uS(t){return new URL(t).protocol==="https:"}o(uS,"isHttps");Oe.isHttps=uS;var Tm=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1 Line truncated
var B_=Object.create;var js=Object.defineProperty;var A_=Object.getOwnPropertyDescriptor;var q_=Object.getOwnPropertyNames;var M_=Object.getPrototypeOf,z_=Object.prototype.hasOwnProperty;var o=(t,e)=>js(t,"name",{value:e,configurable:!0});var qt=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Wh=(t,e)=>{for(var a in e)js(t,a,{get:e[a],enumerable:!0})},Kh=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of q_(e))!z_.call(t,r)&&r!==a&&js(t,r,{get:()=>e[r],enumerable:!(i=A_(e,r))||i.enumerable});return t};var an=(t,e,a)=>(a=t!=null?B_(M_(t)):{},Kh(e||!t||!t.__esModule?js(a,"default",{value:t,enumerable:!0}):a,t)),_p=t=>Kh(js({},"__esModule",{value:!0}),t);var Sp=S(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.toCommandProperties=rn.toCommandValue=void 0;function L_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(L_,"toCommandValue");rn.toCommandValue=L_;function k_(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(k_,"toCommandProperties");rn.toCommandProperties=k_});var Zh=S(ma=>{"use strict";var j_=ma&&ma.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),U_=ma&&ma.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),F_=ma&&ma.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&j_(e,t,a);return U_(e,t),e};Object.defineProperty(ma,"__esModule",{value:!0});ma.issue=ma.issueCommand=void 0;var H_=F_(require("os")),Qh=Sp();function Jh(t,e,a){let i=new xm(t,e,a);process.stdout.write(i.toString()+H_.EOL)}o(Jh,"issueCommand");ma.issueCommand=Jh;function V_(t,e=""){Jh(t,{},e)}o(V_,"issue");ma.issue=V_;var Yh="::",xm=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=Yh+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${G_(r)}`)}}return e+=`${Yh}${$_(this.message)}`,e}};function $_(t){return(0,Qh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o($_,"escapeData");function G_(t){return(0,Qh.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(G_,"escapeProperty")});var a6=S(ua=>{"use strict";var X_=ua&&ua.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),W_=ua&&ua.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Nm=ua&&ua.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&X_(e,t,a);return W_(e,t),e};Object.defineProperty(ua,"__esModule",{value:!0});ua.prepareKeyValueMessage=ua.issueFileCommand=void 0;var K_=Nm(require("crypto")),e6=Nm(require("fs")),wm=Nm(require("os")),t6=Sp();function Y_(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!e6.existsSync(a))throw new Error(`Missing file at path: ${a}`);e6.appendFileSync(a,`${(0,t6.toCommandValue)(e)}${wm.EOL}`,{encoding:"utf8"})}o(Y_,"issueFileCommand");ua.issueFileCommand=Y_;function Q_(t,e){let a=`ghadelimiter_${K_.randomUUID()}`,i=(0,t6.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${wm.EOL}${i}${wm.EOL}${a}`}o(Q_,"prepareKeyValueMessage");ua.prepareKeyValueMessage=Q_});var r6=S(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.checkBypass=nn.getProxyUrl=void 0;function J_(t){let e=t.protocol==="https:";if(i6(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(J_,"getProxyUrl");nn.getProxyUrl=J_;function i6(t){if(!t.hostname)return!1;let e=t.hostname;if(Z_(e))return!0;let a=process.env.no_proxy||proLine truncated
`,m.message,m.stack);var u=new Error("tunneling socket could not be established, cause="+m.message);u.code="ECONNRESET",e.request.emit("error",u),i.removeSocket(r)}o(c,"onError")},"createSocket");ci.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function s6(t,e){var a=this;ci.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Sm({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=eS.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(s6,"createSecureSocket");function o6(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(o6,"toOptions");function Sm(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(Sm,"mergeOptions");var qi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?qi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):qi=o(function(){},"debug");sn.debug=qi});var Em=S((mH,d6)=>{d6.exports=p6()});var on=S(Oe=>{"use strict";var oS=Oe&&Oe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),pS=Oe&&Oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rp=Oe&&Oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&oS(e,t,a);return pS(e,t),e},at=Oe&&Oe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.HttpClient=Oe.isHttps=Oe.HttpClientResponse=Oe.HttpClientError=Oe.getProxyUrl=Oe.MediaTypes=Oe.Headers=Oe.HttpCodes=void 0;var Ep=Rp(require("http")),Cm=Rp(require("https")),l6=Rp(r6()),Cp=Rp(Em()),Ia;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ia=Oe.HttpCodes||(Oe.HttpCodes={}));var Lt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Lt=Oe.Headers||(Oe.Headers={}));var Mi;(function(t){t.ApplicationJson="application/json"})(Mi=Oe.MediaTypes||(Oe.MediaTypes={}));function dS(t){let e=l6.getProxyUrl(new URL(t));return e?e.href:""}o(dS,"getProxyUrl");Oe.getProxyUrl=dS;var lS=[Ia.MovedPermanently,Ia.ResourceMoved,Ia.SeeOther,Ia.TemporaryRedirect,Ia.PermanentRedirect],cS=[Ia.BadGateway,Ia.ServiceUnavailable,Ia.GatewayTimeout],mS=["OPTIONS","GET","DELETE","HEAD"],uS=10,fS=5,Op=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Oe.HttpClientError=Op;var Pp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return at(this,void 0,void 0,function*(){return new Promise(e=>at(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return at(this,void 0,void 0,function*(){return new Promise(e=>at(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Oe.HttpClientResponse=Pp;function hS(t){return new URL(t).protocol==="https:"}o(hS,"isHttps");Oe.isHttps=hS;var Tm=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1 Line truncated
Error Code : ${s.statusCode}
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return c6(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,m6.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,m6.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};on.OidcClient=Dm});var Mm=S(Vt=>{"use strict";var Bm=Vt&&Vt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.summary=Vt.markdownSummary=Vt.SUMMARY_DOCS_URL=Vt.SUMMARY_ENV_VAR=void 0;var gS=require("os"),Am=require("fs"),{access:yS,appendFile:vS,writeFile:bS}=Am.promises;Vt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Vt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var qm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Bm(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Vt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Vt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield yS(e,Am.constants.R_OK|Am.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return Bm(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?bS:vS)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Bm(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(gS.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:d,colspan:l,rowspan:c}=s,m=p?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),c&&{rowspan:c});return this.wrap(m,d,u)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},f6=new qm;Vt.markdownSummary=f6;Vt.summary=f6});var h6=S($t=>{"use strict";var xS=$t&&$t.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),wS=$t&&$t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),NS=$t&&$t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&xS(e,t,a);return wS(e,t),e};Object.defineProperty($t,"__esModule",{value:!0});$t.toPlatformPath=$t.toWin32Path=$t.toPosixPath=void 0;var _S=NS(require("path"));function SS(t){return t.replace(/[\\]/g,"/")}o(SS,"toPosixPath");$t.toPosixPath=SS;function ES(t){return t.replace(/[/]/g,"\\")}o(ES,"toWin32Path");$t.toWin32Path=ES;function CS(t){return t.replace(/[/\\]/g,_S.sep)}o(CS,"toPlatformPath");$t.toPlatformPath=CS});var Lm=S(J=>{"use strict";var TS=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
`);return{name:e,version:a}}),"getLinuxInfo");he.platform=B6.default.platform();he.arch=B6.default.arch();he.isWindows=he.platform==="win32";he.isMacOS=he.platform==="darwin";he.isLinux=he.platform==="linux";function nE(){return Lp(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he.isWindows?aE():he.isMacOS?iE():rE()),{platform:he.platform,arch:he.arch,isWindows:he.isWindows,isMacOS:he.isMacOS,isLinux:he.isLinux})})}o(nE,"getDetails");he.getDetails=nE});var Ht=S(X=>{"use strict";var sE=X&&X.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),oE=X&&X.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hm=X&&X.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&sE(e,t,a);return oE(e,t),e},q6=X&&X.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(X,"__esModule",{value:!0});X.platform=X.toPlatformPath=X.toWin32Path=X.toPosixPath=X.markdownSummary=X.summary=X.getIDToken=X.getState=X.saveState=X.group=X.endGroup=X.startGroup=X.info=X.notice=X.warning=X.error=X.debug=X.isDebug=X.setFailed=X.setCommandEcho=X.setOutput=X.getBooleanInput=X.getMultilineInput=X.getInput=X.addPath=X.setSecret=X.exportVariable=X.ExitCode=void 0;var fa=Zh(),br=a6(),dn=Sp(),M6=Hm(require("os")),pE=Hm(require("path")),dE=u6(),Fm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Fm||(X.ExitCode=Fm={}));function lE(t,e){let a=(0,dn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,br.issueFileCommand)("ENV",(0,br.prepareKeyValueMessage)(t,e));(0,fa.issueCommand)("set-env",{name:t},a)}o(lE,"exportVariable");X.exportVariable=lE;function cE(t){(0,fa.issueCommand)("add-mask",{},t)}o(cE,"setSecret");X.setSecret=cE;function mE(t){process.env.GITHUB_PATH||""?(0,br.issueFileCommand)("PATH",t):(0,fa.issueCommand)("add-path",{},t),process.env.PATH=`${t}${pE.delimiter}${process.env.PATH}`}o(mE,"addPath");X.addPath=mE;function Vm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(Vm,"getInput");X.getInput=Vm;function uE(t,e){let a=Vm(t,e).split(`
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(uE,"getMultilineInput");X.getMultilineInput=uE;function fE(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Vm(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(fE,"getBooleanInput");X.getBooleanInput=fE;function hE(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,br.issueFileCommand)("OUTPUT",(0,br.prepareKeyValueMessage)(t,e));process.stdout.write(M6.EOL),(0,fa.issueCommand)("set-output",{name:t},(0,dn.toCommandValue)(e))}o(hE,"setOutput");X.setOutput=hE;function gE(t){(0,fa.issue)("echo",t?"on":"off")}o(gE,"setCommandEcho");X.setCommandEcho=gE;function yE(t){process.exitCode=Fm.Failure,z6(t)}o(yE,"setFailed");X.setFailed=yE;function vE(){return process.env.RUNNER_DEBUG==="1"}o(vE,"isDebug");X.isDebug=vE;function bE(t){(0,fa.issueCommand)("debug",{},t)}o(bE,"debug");X.debug=bE;function z6(t,e={}){(0,fa.issueCommand)("error",(0,dn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(z6,"error");X.error=z6;function xE(t,e={}){(0,fa.issueCommand)("warning",(0,dn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(xE,"warning");X.warning=xE;function wE(t,e={}){(0,fa.issueCommand)("notice",(0,dn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(wE,"notice");X.notice=wE;function NE(t){process.stdout.write(t+M6.EOL)}o(NE,"info");X.info=NE;function L6(t){(0,fa.issue)("group",t)}o(L6,"startGroup");X.startGroup=L6;function j6(){(0,fa.issue)("endgroup")}o(j6,"endGroup");X.endGroup=j6;function _E(t,e){return q6(this,void 0,void 0,function*(){L6(t);let a;try{a=yield e()}finally{j6()}return a})}o(_E,"group");X.group=_E;function SE(t,e){if(process.env.GITHUB_STATE||"")return(0,br.issueFileCommand)("STATE",(0,br.prepareKeyValueMessage)(t,e));(0,fa.issueCommand)("save-state",{name:t},(0,dn.toCommandValue)(e))}o(SE,"saveState");X.saveState=SE;function EE(t){return process.env[`STATE_${t}`]||""}o(EE,"getState");X.getState=EE;function CE(t){return q6(this,void 0,void 0,function*(){return yield dE.OidcClient.getIDToken(t)})}o(CE,"getIDToken");X.getIDToken=CE;var TE=Mm();Object.defineProperty(X,"summary",{enumerable:!0,get:function(){return TE.summary}});var OE=Mm();Object.defineProperty(X,"markdownSummary",{enumerable:!0,get:function(){return OE.markdownSummary}});var $m=h6();Object.defineProperty(X,"toPosixPath",{enumerable:!0,get:function(){return $m.toPosixPath}});Object.defineProperty(X,"toWin32Path",{enumerable:!0,get:function(){return $m.toWin32Path}});Object.defineProperty(X,"toPlatformPath",{enumerable:!0,get:function(){return $m.toPlatformPath}});X.platform=Hm(A6())});var k6=S(Xa=>{"use strict";var PE=Xa&&Xa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),RE=Xa&&Xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),IE=Xa&&Xa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&PE(e,t,a);return RE(e,t),e};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.getOptions=void 0;var Gm=IE(Ht());function DE(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Gm.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Gm.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Gm.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(DE,"getOptions");Xa.getOptions=DE});var kp=S(He=>{"use strict";var BE=He&&He.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),AE=He&&He.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),qE=He&&He.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&BE(e,t,a);return AE(e,t),e},ME=He&&He.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(He,"__esModule",{value:!0});He.safeTrimTrailingSeparator=He.normalizeSeparators=He.hasRoot=He.hasAbsoluteRoot=He.ensureAbsoluteRoot=He.dirname=void 0;var jp=qE(require("path")),xr=ME(require("assert")),Li=process.platform==="win32";function zE(t){if(t=Wm(t),Li&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=jp.dirname(t);return Li&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Wm(e)),e}o(zE,"dirname");He.dirname=zE;function LE(t,e){if(xr.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),xr.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Xm(e))return e;if(Li){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
%s`,g,g,I,i);var _=I.type==="*"?Jm:I.type==="?"?Qm:"\\"+I.type;r=!0,i=i.slice(0,I.reStart)+_+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var N=p.length-1;N>-1;N--){var D=p[N],C=i.slice(0,D.reStart),R=i.slice(D.reStart,D.reEnd-8),A=i.slice(D.reEnd-8,D.reEnd),k=i.slice(D.reEnd);A+=k;var oe=C.split("(").length-1,ye=k;for(b=0;b<oe;b++)ye=ye.replace(/\)[+*?]?/,"");k=ye;var Q="";k===""&&e!==Fp&&(Q="$");var tt=C+R+k+Q+A;i=tt}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=u+i),e===Fp)return[i,r];if(!r)return uC(t);var fe=a.nocase?"i":"";try{var Ra=new RegExp("^"+i+"$",fe)}catch{return new RegExp("$.")}return Ra._glob=t,Ra._src=i,Ra}o(cC,"parse");ra.makeRe=function(t,e){return new Rt(t,e||{}).makeRe()};Rt.prototype.makeRe=mC;function mC(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Jm:e.dot?rC:nC,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Zm?a:typeof s=="string"?fC(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(mC,"makeRe");ra.match=function(t,e,a){a=a||{};var i=new Rt(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Rt.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;Hs.sep!=="/"&&(e=e.split(Hs.sep).join("/")),e=e.split(o4),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],d=e;i.matchBase&&p.length===1&&(d=[n]);var l=this.matchOne(d,p,a);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Rt.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var d=e[n],l=t[r];if(this.debug(e,d,l),d===!1)return!1;if(d===Zm){this.debug("GLOBSTAR",[e,d,l]);var c=r,m=n+1;if(m===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var u=t[c];if(this.debug(`
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return c6(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,m6.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,m6.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};pn.OidcClient=Dm});var Mm=S(Vt=>{"use strict";var Bm=Vt&&Vt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.summary=Vt.markdownSummary=Vt.SUMMARY_DOCS_URL=Vt.SUMMARY_ENV_VAR=void 0;var vS=require("os"),Am=require("fs"),{access:bS,appendFile:xS,writeFile:wS}=Am.promises;Vt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Vt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var qm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Bm(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Vt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Vt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield bS(e,Am.constants.R_OK|Am.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return Bm(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?wS:xS)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Bm(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(vS.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:d,colspan:l,rowspan:c}=s,m=p?"th":"td",u=Object.assign(Object.assign({},l&&{colspan:l}),c&&{rowspan:c});return this.wrap(m,d,u)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},f6=new qm;Vt.markdownSummary=f6;Vt.summary=f6});var h6=S($t=>{"use strict";var NS=$t&&$t.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),_S=$t&&$t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),SS=$t&&$t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&NS(e,t,a);return _S(e,t),e};Object.defineProperty($t,"__esModule",{value:!0});$t.toPlatformPath=$t.toWin32Path=$t.toPosixPath=void 0;var ES=SS(require("path"));function CS(t){return t.replace(/[\\]/g,"/")}o(CS,"toPosixPath");$t.toPosixPath=CS;function TS(t){return t.replace(/[/]/g,"\\")}o(TS,"toWin32Path");$t.toWin32Path=TS;function OS(t){return t.replace(/[/\\]/g,ES.sep)}o(OS,"toPlatformPath");$t.toPlatformPath=OS});var Lm=S(J=>{"use strict";var PS=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
`);return{name:e,version:a}}),"getLinuxInfo");he.platform=B6.default.platform();he.arch=B6.default.arch();he.isWindows=he.platform==="win32";he.isMacOS=he.platform==="darwin";he.isLinux=he.platform==="linux";function oE(){return Lp(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he.isWindows?rE():he.isMacOS?nE():sE()),{platform:he.platform,arch:he.arch,isWindows:he.isWindows,isMacOS:he.isMacOS,isLinux:he.isLinux})})}o(oE,"getDetails");he.getDetails=oE});var kt=S(X=>{"use strict";var pE=X&&X.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),dE=X&&X.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hm=X&&X.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&pE(e,t,a);return dE(e,t),e},q6=X&&X.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(X,"__esModule",{value:!0});X.platform=X.toPlatformPath=X.toWin32Path=X.toPosixPath=X.markdownSummary=X.summary=X.getIDToken=X.getState=X.saveState=X.group=X.endGroup=X.startGroup=X.info=X.notice=X.warning=X.error=X.debug=X.isDebug=X.setFailed=X.setCommandEcho=X.setOutput=X.getBooleanInput=X.getMultilineInput=X.getInput=X.addPath=X.setSecret=X.exportVariable=X.ExitCode=void 0;var fa=Zh(),br=a6(),ln=Sp(),M6=Hm(require("os")),lE=Hm(require("path")),cE=u6(),Fm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Fm||(X.ExitCode=Fm={}));function mE(t,e){let a=(0,ln.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,br.issueFileCommand)("ENV",(0,br.prepareKeyValueMessage)(t,e));(0,fa.issueCommand)("set-env",{name:t},a)}o(mE,"exportVariable");X.exportVariable=mE;function uE(t){(0,fa.issueCommand)("add-mask",{},t)}o(uE,"setSecret");X.setSecret=uE;function fE(t){process.env.GITHUB_PATH||""?(0,br.issueFileCommand)("PATH",t):(0,fa.issueCommand)("add-path",{},t),process.env.PATH=`${t}${lE.delimiter}${process.env.PATH}`}o(fE,"addPath");X.addPath=fE;function Vm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(Vm,"getInput");X.getInput=Vm;function hE(t,e){let a=Vm(t,e).split(`
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(hE,"getMultilineInput");X.getMultilineInput=hE;function gE(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=Vm(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(gE,"getBooleanInput");X.getBooleanInput=gE;function yE(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,br.issueFileCommand)("OUTPUT",(0,br.prepareKeyValueMessage)(t,e));process.stdout.write(M6.EOL),(0,fa.issueCommand)("set-output",{name:t},(0,ln.toCommandValue)(e))}o(yE,"setOutput");X.setOutput=yE;function vE(t){(0,fa.issue)("echo",t?"on":"off")}o(vE,"setCommandEcho");X.setCommandEcho=vE;function bE(t){process.exitCode=Fm.Failure,z6(t)}o(bE,"setFailed");X.setFailed=bE;function xE(){return process.env.RUNNER_DEBUG==="1"}o(xE,"isDebug");X.isDebug=xE;function wE(t){(0,fa.issueCommand)("debug",{},t)}o(wE,"debug");X.debug=wE;function z6(t,e={}){(0,fa.issueCommand)("error",(0,ln.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(z6,"error");X.error=z6;function NE(t,e={}){(0,fa.issueCommand)("warning",(0,ln.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(NE,"warning");X.warning=NE;function _E(t,e={}){(0,fa.issueCommand)("notice",(0,ln.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(_E,"notice");X.notice=_E;function SE(t){process.stdout.write(t+M6.EOL)}o(SE,"info");X.info=SE;function L6(t){(0,fa.issue)("group",t)}o(L6,"startGroup");X.startGroup=L6;function k6(){(0,fa.issue)("endgroup")}o(k6,"endGroup");X.endGroup=k6;function EE(t,e){return q6(this,void 0,void 0,function*(){L6(t);let a;try{a=yield e()}finally{k6()}return a})}o(EE,"group");X.group=EE;function CE(t,e){if(process.env.GITHUB_STATE||"")return(0,br.issueFileCommand)("STATE",(0,br.prepareKeyValueMessage)(t,e));(0,fa.issueCommand)("save-state",{name:t},(0,ln.toCommandValue)(e))}o(CE,"saveState");X.saveState=CE;function TE(t){return process.env[`STATE_${t}`]||""}o(TE,"getState");X.getState=TE;function OE(t){return q6(this,void 0,void 0,function*(){return yield cE.OidcClient.getIDToken(t)})}o(OE,"getIDToken");X.getIDToken=OE;var PE=Mm();Object.defineProperty(X,"summary",{enumerable:!0,get:function(){return PE.summary}});var RE=Mm();Object.defineProperty(X,"markdownSummary",{enumerable:!0,get:function(){return RE.markdownSummary}});var $m=h6();Object.defineProperty(X,"toPosixPath",{enumerable:!0,get:function(){return $m.toPosixPath}});Object.defineProperty(X,"toWin32Path",{enumerable:!0,get:function(){return $m.toWin32Path}});Object.defineProperty(X,"toPlatformPath",{enumerable:!0,get:function(){return $m.toPlatformPath}});X.platform=Hm(A6())});var j6=S(Xa=>{"use strict";var IE=Xa&&Xa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),DE=Xa&&Xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),BE=Xa&&Xa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&IE(e,t,a);return DE(e,t),e};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.getOptions=void 0;var Gm=BE(kt());function AE(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Gm.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Gm.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Gm.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(AE,"getOptions");Xa.getOptions=AE});var jp=S(He=>{"use strict";var qE=He&&He.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),ME=He&&He.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zE=He&&He.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&qE(e,t,a);return ME(e,t),e},LE=He&&He.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(He,"__esModule",{value:!0});He.safeTrimTrailingSeparator=He.normalizeSeparators=He.hasRoot=He.hasAbsoluteRoot=He.ensureAbsoluteRoot=He.dirname=void 0;var kp=zE(require("path")),xr=LE(require("assert")),Li=process.platform==="win32";function kE(t){if(t=Wm(t),Li&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=kp.dirname(t);return Li&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Wm(e)),e}o(kE,"dirname");He.dirname=kE;function jE(t,e){if(xr.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),xr.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Xm(e))return e;if(Li){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
%s`,g,g,I,i);var _=I.type==="*"?Jm:I.type==="?"?Qm:"\\"+I.type;r=!0,i=i.slice(0,I.reStart)+_+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var N=p.length-1;N>-1;N--){var D=p[N],C=i.slice(0,D.reStart),R=i.slice(D.reStart,D.reEnd-8),A=i.slice(D.reEnd-8,D.reEnd),j=i.slice(D.reEnd);A+=j;var oe=C.split("(").length-1,ye=j;for(b=0;b<oe;b++)ye=ye.replace(/\)[+*?]?/,"");j=ye;var Q="";j===""&&e!==Fp&&(Q="$");var tt=C+R+j+Q+A;i=tt}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=u+i),e===Fp)return[i,r];if(!r)return hC(t);var fe=a.nocase?"i":"";try{var Ra=new RegExp("^"+i+"$",fe)}catch{return new RegExp("$.")}return Ra._glob=t,Ra._src=i,Ra}o(uC,"parse");ra.makeRe=function(t,e){return new Rt(t,e||{}).makeRe()};Rt.prototype.makeRe=fC;function fC(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Jm:e.dot?sC:oC,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Zm?a:typeof s=="string"?gC(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(fC,"makeRe");ra.match=function(t,e,a){a=a||{};var i=new Rt(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Rt.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;Hs.sep!=="/"&&(e=e.split(Hs.sep).join("/")),e=e.split(o4),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],d=e;i.matchBase&&p.length===1&&(d=[n]);var l=this.matchOne(d,p,a);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Rt.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var d=e[n],l=t[r];if(this.debug(e,d,l),d===!1)return!1;if(d===Zm){this.debug("GLOBSTAR",[e,d,l]);var c=r,m=n+1;if(m===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var u=t[c];if(this.debug(`
globstar while`,t,c,e,m,u),this.matchOne(t.slice(c),e.slice(m),a))return this.debug("globstar found match!",c,s,u),!0;if(u==="."||u===".."||!i.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,c,e,m);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
>>> no match, partial?`,t,c,e,m),c===s))}var f;if(typeof d=="string"?(f=l===d,this.debug("string match",d,l,f)):(f=l.match(d),this.debug("pattern match",d,l,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function uC(t){return t.replace(/\\(.)/g,"$1")}o(uC,"globUnescape");function fC(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(fC,"regExpEscape")});var m4=S(ha=>{"use strict";var hC=ha&&ha.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),gC=ha&&ha.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c4=ha&&ha.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&hC(e,t,a);return gC(e,t),e},yC=ha&&ha.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ha,"__esModule",{value:!0});ha.Path=void 0;var Vs=c4(require("path")),ki=c4(kp()),$s=yC(require("assert")),vC=process.platform==="win32",eu=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if($s.default(e,"Parameter 'itemPath' must not be empty"),e=ki.safeTrimTrailingSeparator(e),!ki.hasRoot(e))this.segments=e.split(Vs.sep);else{let a=e,i=ki.dirname(a);for(;i!==a;){let r=Vs.basename(a);this.segments.unshift(r),a=i,i=ki.dirname(a)}this.segments.unshift(a)}else{$s.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];$s.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=ki.normalizeSeparators(e[a]),a===0&&ki.hasRoot(i)?(i=ki.safeTrimTrailingSeparator(i),$s.default(i===ki.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):($s.default(!i.includes(Vs.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Vs.sep)||vC&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Vs.sep,e+=this.segments[i];return e}};ha.Path=eu});var u4=S(ga=>{"use strict";var bC=ga&&ga.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),xC=ga&&ga.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iu=ga&&ga.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&bC(e,t,a);return xC(e,t),e},wC=ga&&ga.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ga,"__esModule",{value:!0});ga.Pattern=void 0;var NC=iu(require("os")),Gs=iu(require("path")),Yt=iu(kp()),wr=wC(require("assert")),_C=l4(),tu=Up(),Vp=m4(),mi=process.platform==="win32",au=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],wr.default(i.length,"Parameter 'segments' must not empty");let l=t.getLiteral(i[0]);wr.default(l&&Yt.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new Vp.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new Vp.Path(n).segments,this.trailingSeparator=Yt.normalizeSeparators(n).endsWith(Gs.sep),n=Yt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new Vp.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),mi?"i":""),this.isImplicitPattern=a;let d={dot:!0,nobrace:!0,nocase:mi,nocomment:!0,noext:!0,nonegate:!0};n=mi?n.replace(/\\/g,"/"):n,this.minimatch=new _C.Minimatch(n,d)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Yt.normalizeSeparators(e),!e.endsWith(Gs.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Gs.sep}`)):e=Yt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?tu.MatchKind.Directory:tu.MatchKind.All:tu.MatchKind.None}partialMatch(e){return e=Yt.safeTrimTrailingSeparator(e),Yt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(mi?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(mi?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){wr.default(e,"pattern cannot be empty");let i=new Vp.Path(e).segments.map(r=>t.getLiteral(r));if(wr.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),wr.default(!Yt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Yt.nor Line truncated
>>> no match, partial?`,t,c,e,m),c===s))}var f;if(typeof d=="string"?(f=l===d,this.debug("string match",d,l,f)):(f=l.match(d),this.debug("pattern match",d,l,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function hC(t){return t.replace(/\\(.)/g,"$1")}o(hC,"globUnescape");function gC(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(gC,"regExpEscape")});var m4=S(ha=>{"use strict";var yC=ha&&ha.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),vC=ha&&ha.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c4=ha&&ha.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&yC(e,t,a);return vC(e,t),e},bC=ha&&ha.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ha,"__esModule",{value:!0});ha.Path=void 0;var Vs=c4(require("path")),ji=c4(jp()),$s=bC(require("assert")),xC=process.platform==="win32",eu=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if($s.default(e,"Parameter 'itemPath' must not be empty"),e=ji.safeTrimTrailingSeparator(e),!ji.hasRoot(e))this.segments=e.split(Vs.sep);else{let a=e,i=ji.dirname(a);for(;i!==a;){let r=Vs.basename(a);this.segments.unshift(r),a=i,i=ji.dirname(a)}this.segments.unshift(a)}else{$s.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];$s.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=ji.normalizeSeparators(e[a]),a===0&&ji.hasRoot(i)?(i=ji.safeTrimTrailingSeparator(i),$s.default(i===ji.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):($s.default(!i.includes(Vs.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Vs.sep)||xC&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Vs.sep,e+=this.segments[i];return e}};ha.Path=eu});var u4=S(ga=>{"use strict";var wC=ga&&ga.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),NC=ga&&ga.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iu=ga&&ga.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&wC(e,t,a);return NC(e,t),e},_C=ga&&ga.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ga,"__esModule",{value:!0});ga.Pattern=void 0;var SC=iu(require("os")),Gs=iu(require("path")),Yt=iu(jp()),wr=_C(require("assert")),EC=l4(),tu=Up(),Vp=m4(),mi=process.platform==="win32",au=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],wr.default(i.length,"Parameter 'segments' must not empty");let l=t.getLiteral(i[0]);wr.default(l&&Yt.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new Vp.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new Vp.Path(n).segments,this.trailingSeparator=Yt.normalizeSeparators(n).endsWith(Gs.sep),n=Yt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new Vp.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),mi?"i":""),this.isImplicitPattern=a;let d={dot:!0,nobrace:!0,nocase:mi,nocomment:!0,noext:!0,nonegate:!0};n=mi?n.replace(/\\/g,"/"):n,this.minimatch=new EC.Minimatch(n,d)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Yt.normalizeSeparators(e),!e.endsWith(Gs.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Gs.sep}`)):e=Yt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?tu.MatchKind.Directory:tu.MatchKind.All:tu.MatchKind.None}partialMatch(e){return e=Yt.safeTrimTrailingSeparator(e),Yt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(mi?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(mi?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){wr.default(e,"pattern cannot be empty");let i=new Vp.Path(e).segments.map(r=>t.getLiteral(r));if(wr.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),wr.default(!Yt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Yt.nor Line truncated
`),e=e.replace(/\r/g,`
`));let r=e.split(`
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new y4.Pattern(n));return i.searchPaths.push(...Gp.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return nu(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield Xs.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){su.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield Xs.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield Xs.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){su.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};gt.DefaultGlobber=ou});var x4=S(cn=>{"use strict";var RC=cn&&cn.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(cn,"__esModule",{value:!0});cn.create=void 0;var IC=b4();function DC(t,e){return RC(this,void 0,void 0,function*(){return yield IC.DefaultGlobber.create(t,e)})}o(DC,"create");cn.create=DC});var C4=S((ie,E4)=>{ie=E4.exports=se;var _e;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?_e=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):_e=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var Ks=256,Xp=Number.MAX_SAFE_INTEGER||9007199254740991,pu=16,BC=Ks-6,mn=ie.re=[],Ne=ie.safeRe=[],q=ie.src=[],B=ie.tokens={},_4=0;function pe(t){B[t]=_4++}o(pe,"tok");var lu="[a-zA-Z0-9-]",du=[["\\s",1],["\\d",Ks],[lu,BC]];function Qs(t){for(var e=0;e<du.length;e++){var a=du[e][0],i=du[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(Qs,"makeSafeRe");pe("NUMERICIDENTIFIER");q[B.NUMERICIDENTIFIER]="0|[1-9]\\d*";pe("NUMERICIDENTIFIERLOOSE");q[B.NUMERICIDENTIFIERLOOSE]="\\d+";pe("NONNUMERICIDENTIFIER");q[B.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+lu+"*";pe("MAINVERSION");q[B.MAINVERSION]="("+q[B.NUMERICIDENTIFIER]+")\\.("+q[B.NUMERICIDENTIFIER]+")\\.("+q[B.NUMERICIDENTIFIER]+")";pe("MAINVERSIONLOOSE");q[B.MAINVERSIONLOOSE]="("+q[B.NUMERICIDENTIFIERLOOSE]+")\\.("+q[B.NUMERICIDENTIFIERLOOSE]+")\\.("+q[B.NUMERICIDENTIFIERLOOSE]+")";pe("PRERELEASEIDENTIFIER");q[B.PRERELEASEIDENTIFIER]="(?:"+q[B.NUMERICIDENTIFIER]+"|"+q[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASEIDENTIFIERLOOSE");q[B.PRERELEASEIDENTIFIERLOOSE]="(?:"+q[B.NUMERICIDENTIFIERLOOSE]+"|"+q[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASE");q[B.PRERELEASE]="(?:-("+q[B.PRERELEASEIDENTIFIER]+"(?:\\."+q[B.PRERELEASEIDENTIFIER]+")*))";pe("PRERELEASELOOSE");q[B.PRERELEASELOOSE]="(?:-?("+q[B.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+q[B.PRERELEASEIDENTIFIERLOOSE]+")*))";pe("BUILDIDENTIFIER");q[B.BUILDIDENTIFIER]=lu+"+";pe("BUILD");q[B.BUILD]="(?:\\+("+q[B.BUILDIDENTIFIER]+"(?:\\."+q[B.BUILDIDENTIFIER]+")*))";pe("FULL");pe("FULLPLAIN");q[B.FULLPLAIN]="v?"+q[B.MAINVERSION]+q[B.PRERELEASE]+"?"+q[B.BUILD]+"?";q[B.FULL]="^"+q[B.FULLPLAIN]+"$";pe("LOOSEPLAIN");q[B.LOOSEPLAIN]="[v=\\s]*"+q[B.MAINVERSIONLOOSE]+q[B.PRERELEASELOOSE]+"?"+q[B.BUILD]+"?";pe("LOOSE");q[B.LOOSE]="^"+q[B.LOOSEPLAIN]+"$";pe("GTLT");q[B.GTLT]="((?:<|>)?=?)";pe("XRANGEIDENTIFIERLOOSE");q[B.XRANGEIDENTIFIERLOOSE]=q[B.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";pe("XRANGEIDENTIFIER");q[B.XRANGEIDENTIFIER]=q[B.NUMERICIDENTIFIER]+"|x|X|\\*";pe("XRANGEPLAIN");q[B.XRANGEPLAIN]="[v=\\s]*("+q[B.XRANGEIDENTIFIER]+")(?:\\.("+q[B.XRANGEIDENTIFIER]+")(?:\\.("+q[B.XRANGEIDENTIFIER]+")(?:"+q[B.PRERELEASE]+")?"+q[B.BUILD]+"?)?)?";pe("XRANGEPLAINLOOSE");q[B.XRANGEPLAINLOOSE]="[v=\\s]*("+q[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+q[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+q[B.XRANGEIDENTIFIERLOOSE]+")(?:"+q[B.PRERELEASELOOSE]+")?"+q[B.BUILD]+"?)?)?";pe("XRANGE");q[B.XRANGE]="^"+q[B.GTLT]+"\\s*"+q[B.XRANGEPLAIN]+"$";pe("XRANGELOOSE");q[B.XRANGELOOSE]="^"+q[B.GTLT]+"\\s*"+q[B.XRANGEPLAINLOOSE]+"$";pe("COERCE");q[B.COERCE]="(^|[^\\d])(\\d{1,"+pu+"})(?:\\.(\\d{1,"+pu+"}))?(?:\\.(\\d{1,"+pu+"}))?(?:$|[^\\d])";pe("COERCERTL");mn[B.COERCERTL]=new RegExp(q[B.COERCE],"g");Ne[B.COERCERTL]=new RegExp(Qs(q[B.COERCE]),"g");pe("LONETILDE");q[B.LONETILDE]="(?:~>?)";pe("TILDETRIM");q[B.TILDETRIM]="(\\s*)"+q[B.LONETILDE]+"\\s+";mn[B.TILDETRIM]=new RegExp(q[B.TILDETRIM],"g");Ne[B.TILDETRIM]=new RegExp(Qs(q[B.TILDETRIM]),"g");var AC="$1~";pe("TILDE");q[B.TILDE]="^"+q[B.LONETILDE]+q[B.XRANGEPLAIN]+"$";pe("TILDELOOSE");q[B.TILDELOOSE]="^"+q[B.LONETILDE]+q[B.XRANGEPLAINLOOSE]+"$";pe("LONECARET");q[B.LONECARET]="(?:\\^)";pe("CARETTRIM");q[B.CARETTRIM]="(\\s*)"+q[B.LONECARET]+"\\s+";mn[B.CARETTRIM]=new Line truncated
`),{implicitDescendants:!1});try{for(var l=!0,c=vT(d.globGenerator()),m;m=yield c.next(),e=m.done,!e;l=!0){r=m.value,l=!1;let u=r,f=Qp.relative(p,u).replace(new RegExp(`\\${Qp.sep}`,"g"),"/");Js.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(u){a={error:u}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(CT,"resolvePaths");be.resolvePaths=CT;function TT(t){return hn(this,void 0,void 0,function*(){return NT.promisify(hu.unlink)(t)})}o(TT,"unlinkFile");be.unlinkFile=TT;function D4(t,e=[]){return hn(this,void 0,void 0,function*(){let a="";e.push("--version"),Js.debug(`Checking ${t} ${e.join(" ")}`);try{yield bT.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){Js.debug(i.message)}return a=a.trim(),Js.debug(a),a})}o(D4,"getVersion");function OT(){return hn(this,void 0,void 0,function*(){let t=yield D4("zstd",["--quiet"]),e=wT.clean(t);return Js.debug(`zstd version: ${e}`),t===""?Sr.CompressionMethod.Gzip:Sr.CompressionMethod.ZstdWithoutLong})}o(OT,"getCompressionMethod");be.getCompressionMethod=OT;function PT(t){return t===Sr.CompressionMethod.Gzip?Sr.CacheFilename.Gzip:Sr.CacheFilename.Zstd}o(PT,"getCacheFileName");be.getCacheFileName=PT;function RT(){return hn(this,void 0,void 0,function*(){return hu.existsSync(Sr.GnuTarPathOnWindows)?Sr.GnuTarPathOnWindows:(yield D4("tar")).toLowerCase().includes("gnu tar")?R4.which("tar"):""})}o(RT,"getGnuTarPathOnWindows");be.getGnuTarPathOnWindows=RT;function IT(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(IT,"assertDefined");be.assertDefined=IT;function DT(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(_T),I4.createHash("sha256").update(i.join("|")).digest("hex")}o(DT,"getCacheVersion");be.getCacheVersion=DT;function BT(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(BT,"getRuntimeToken");be.getRuntimeToken=BT});function Zs(){return Jp>Zp.length-16&&(B4.default.randomFillSync(Zp),Jp=0),Zp.slice(Jp,Jp+=16)}var B4,Zp,Jp,gu=qt(()=>{B4=ks(require("crypto")),Zp=new Uint8Array(256),Jp=Zp.length;o(Zs,"rng")});var A4,q4=qt(()=>{A4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function AT(t){return typeof t=="string"&&A4.test(t)}var Fi,eo=qt(()=>{q4();o(AT,"validate");Fi=AT});function qT(t,e=0){let a=(It[t[e+0]]+It[t[e+1]]+It[t[e+2]]+It[t[e+3]]+"-"+It[t[e+4]]+It[t[e+5]]+"-"+It[t[e+6]]+It[t[e+7]]+"-"+It[t[e+8]]+It[t[e+9]]+"-"+It[t[e+10]]+It[t[e+11]]+It[t[e+12]]+It[t[e+13]]+It[t[e+14]]+It[t[e+15]]).toLowerCase();if(!Fi(a))throw TypeError("Stringified UUID is invalid");return a}var It,Hi,to=qt(()=>{eo();It=[];for(let t=0;t<256;++t)It.push((t+256).toString(16).substr(1));o(qT,"stringify");Hi=qT});function MT(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||M4,s=t.clockseq!==void 0?t.clockseq:yu;if(n==null||s==null){let u=t.random||(t.rng||Zs)();n==null&&(n=M4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),s==null&&(s=yu=(u[6]<<8|u[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),d=t.nsecs!==void 0?t.nsecs:bu+1,l=p-vu+(d-bu)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||p>vu)&&t.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");vu=p,bu=d,yu=s,p+=122192928e5;let c=((p&268435455)*1e4+d)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let m=p/4294967296*1e4&268435455;r[i++]=m>>>8&255,r[i++]=m&255,r[i++]=m>>>24&15|16,r[i++]=m>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let u=0;u<6;++u)r[i+u]=n[u];return e||Hi(r)}var M4,yu,vu,bu,z4,L4=qt(()=>{gu();to();vu=0,bu=0;o(MT,"v1");z4=MT});function zT(t){if(!Fi(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var ed,xu=qt(()=>{eo();o(zT,"parse");ed=zT});function LT(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function ao(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=LT(r)),typeof n=="string"&&(n=ed(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+r.length);if(d.set(n),d.set(r,n.length),d=a(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){p=p||0;for(let l=0;l<16;++l)s[p+l]=d[l];return s}return Hi(d)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=jT,i.URL=kT,i}var jT,kT,wu=qt(()=>{to();xu();o(LT,"stringToBytes");jT="6ba7b810-9dad-11d1-80b4-00c04fd430c8",kT Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Su)});var Ka=S((E3,Vi)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,d={}.hasOwnProperty;t=o(function(){var l,c,m,u,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=f.length;l<m;l++)if(u=f[l],u!=null)for(c in u)d.call(u,c)&&(h[c]=u[c]);return h},"assign"),r=o(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=o(function(l){var c;return!!l&&((c=typeof l)=="function"||c==="object")},"isObject"),a=o(function(l){return r(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),i=o(function(l){var c;if(a(l))return!l.length;for(c in l)if(d.call(l,c))return!1;return!0},"isEmpty"),s=o(function(l){var c,m;return n(l)&&(m=Object.getPrototypeOf(l))&&(c=m.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(l){return r(l.valueOf)?l.valueOf():l},"getValue"),Vi.exports.assign=t,Vi.exports.isFunction=r,Vi.exports.isObject=n,Vi.exports.isArray=a,Vi.exports.isEmpty=i,Vi.exports.isPlainObject=s,Vi.exports.getValue=e}).call(E3)});var Eu=S((C3,T3)=>{(function(){var t;T3.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(C3)});var R3=S((O3,P3)=>{(function(){var t;P3.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(O3)});var B3=S((I3,D3)=>{(function(){var t;D3.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(I3)});var M3=S((A3,q3)=>{(function(){var t,e,a;e=R3(),a=B3(),q3.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(A3)});var it=S((z3,L3)=>{(function(){L3.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(z3)});var Cu=S((j3,k3)=>{(function(){var t,e,a;t=it(),a=na(),k3.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi Line truncated
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(N=(D=w.dontPrettyTextNodes)!=null?D:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(C=(R=w.spaceBeforeSlash)!=null?R:w.spacebeforeslash)!=null?C:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},I.prototype.indent=function(w,y,g){var _;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(_=(g||0)+y.offset+1,_>0)?new Array(_).join(y.indent):""},I.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},I.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},I.prototype.cdata=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.comment=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.declaration=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,_+=' version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.docType=function(w,y,g){var _,O,N,D,C;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,D=this.indent(w,y,g),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.endline(w,y,g),y.state=e.InsideTag,C=w.children,O=0,N=C.length;O<N;O++)_=C[O],D+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,D+="]"}return y.state=e.CloseTag,D+=y.spaceBeforeSlash+">",D+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),D},I.prototype.element=function(w,y,g){var _,O,N,D,C,R,A,k,oe,ye,Q,tt,fe,Ra;g||(g=0),ye=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,tt=w.attribs;for(oe in tt)E.call(tt,oe)&&(_=tt[oe],Q+=this.attribute(_,y,g));if(N=w.children.length,D=N===0?null:w.children[0],N===0||w.children.every(function(Ut){return(Ut.type===t.Text||Ut.type===t.Raw)&&Ut.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ye=!0,Q+=this.writeChildNode(D,y,g+1),y.suppressPrettyCount--,ye=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(fe=w.children,C=0,A=fe.length;C<A;C++)if(O=fe[C],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ye=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,Ra=w.children,R=0,k=Ra.length;R<k;R++)O=Ra[R],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",ye&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},I.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},I.prototype.processingInstruction=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?",y.state=e.InsideTag,_+=w.target,w.value&&(_+=" "+w.value),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.raw=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.text=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.dtdAttList=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,_+=" "+w.elementName+" "+w.attributeName+" "+w.attribut Line truncated
`||x==="\r"||x===" "}o(w,"isWhitespace");function y(x){return x==='"'||x==="'"}o(y,"isQuote");function g(x){return x===">"||w(x)}o(g,"isAttribEnd");function _(x,v){return x.test(v)}o(_,"isMatch");function O(x,v){return!_(x,v)}o(O,"notMatch");var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var v=t.ENTITIES[x],M=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[x]=M});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;N=t.STATE;function C(x,v,M){x[v]&&x[v](M)}o(C,"emit");function R(x,v,M){x.textNode&&A(x),C(x,v,M)}o(R,"emitNode");function A(x){x.textNode=k(x.opt,x.textNode),x.textNode&&C(x,"ontext",x.textNode),x.textNode=""}o(A,"closeText");function k(x,v){return x.trim&&(v=v.trim()),x.normalize&&(v=v.replace(/\s+/g," ")),v}o(k,"textopts");function oe(x,v){return A(x),x.trackPosition&&(v+=`
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new y4.Pattern(n));return i.searchPaths.push(...Gp.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return nu(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield Xs.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){su.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield Xs.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield Xs.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){su.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};gt.DefaultGlobber=ou});var x4=S(mn=>{"use strict";var DC=mn&&mn.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(mn,"__esModule",{value:!0});mn.create=void 0;var BC=b4();function AC(t,e){return DC(this,void 0,void 0,function*(){return yield BC.DefaultGlobber.create(t,e)})}o(AC,"create");mn.create=AC});var C4=S((ie,E4)=>{ie=E4.exports=se;var _e;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?_e=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):_e=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var Ks=256,Xp=Number.MAX_SAFE_INTEGER||9007199254740991,pu=16,qC=Ks-6,un=ie.re=[],Ne=ie.safeRe=[],q=ie.src=[],B=ie.tokens={},_4=0;function pe(t){B[t]=_4++}o(pe,"tok");var lu="[a-zA-Z0-9-]",du=[["\\s",1],["\\d",Ks],[lu,qC]];function Qs(t){for(var e=0;e<du.length;e++){var a=du[e][0],i=du[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(Qs,"makeSafeRe");pe("NUMERICIDENTIFIER");q[B.NUMERICIDENTIFIER]="0|[1-9]\\d*";pe("NUMERICIDENTIFIERLOOSE");q[B.NUMERICIDENTIFIERLOOSE]="\\d+";pe("NONNUMERICIDENTIFIER");q[B.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+lu+"*";pe("MAINVERSION");q[B.MAINVERSION]="("+q[B.NUMERICIDENTIFIER]+")\\.("+q[B.NUMERICIDENTIFIER]+")\\.("+q[B.NUMERICIDENTIFIER]+")";pe("MAINVERSIONLOOSE");q[B.MAINVERSIONLOOSE]="("+q[B.NUMERICIDENTIFIERLOOSE]+")\\.("+q[B.NUMERICIDENTIFIERLOOSE]+")\\.("+q[B.NUMERICIDENTIFIERLOOSE]+")";pe("PRERELEASEIDENTIFIER");q[B.PRERELEASEIDENTIFIER]="(?:"+q[B.NUMERICIDENTIFIER]+"|"+q[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASEIDENTIFIERLOOSE");q[B.PRERELEASEIDENTIFIERLOOSE]="(?:"+q[B.NUMERICIDENTIFIERLOOSE]+"|"+q[B.NONNUMERICIDENTIFIER]+")";pe("PRERELEASE");q[B.PRERELEASE]="(?:-("+q[B.PRERELEASEIDENTIFIER]+"(?:\\."+q[B.PRERELEASEIDENTIFIER]+")*))";pe("PRERELEASELOOSE");q[B.PRERELEASELOOSE]="(?:-?("+q[B.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+q[B.PRERELEASEIDENTIFIERLOOSE]+")*))";pe("BUILDIDENTIFIER");q[B.BUILDIDENTIFIER]=lu+"+";pe("BUILD");q[B.BUILD]="(?:\\+("+q[B.BUILDIDENTIFIER]+"(?:\\."+q[B.BUILDIDENTIFIER]+")*))";pe("FULL");pe("FULLPLAIN");q[B.FULLPLAIN]="v?"+q[B.MAINVERSION]+q[B.PRERELEASE]+"?"+q[B.BUILD]+"?";q[B.FULL]="^"+q[B.FULLPLAIN]+"$";pe("LOOSEPLAIN");q[B.LOOSEPLAIN]="[v=\\s]*"+q[B.MAINVERSIONLOOSE]+q[B.PRERELEASELOOSE]+"?"+q[B.BUILD]+"?";pe("LOOSE");q[B.LOOSE]="^"+q[B.LOOSEPLAIN]+"$";pe("GTLT");q[B.GTLT]="((?:<|>)?=?)";pe("XRANGEIDENTIFIERLOOSE");q[B.XRANGEIDENTIFIERLOOSE]=q[B.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";pe("XRANGEIDENTIFIER");q[B.XRANGEIDENTIFIER]=q[B.NUMERICIDENTIFIER]+"|x|X|\\*";pe("XRANGEPLAIN");q[B.XRANGEPLAIN]="[v=\\s]*("+q[B.XRANGEIDENTIFIER]+")(?:\\.("+q[B.XRANGEIDENTIFIER]+")(?:\\.("+q[B.XRANGEIDENTIFIER]+")(?:"+q[B.PRERELEASE]+")?"+q[B.BUILD]+"?)?)?";pe("XRANGEPLAINLOOSE");q[B.XRANGEPLAINLOOSE]="[v=\\s]*("+q[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+q[B.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+q[B.XRANGEIDENTIFIERLOOSE]+")(?:"+q[B.PRERELEASELOOSE]+")?"+q[B.BUILD]+"?)?)?";pe("XRANGE");q[B.XRANGE]="^"+q[B.GTLT]+"\\s*"+q[B.XRANGEPLAIN]+"$";pe("XRANGELOOSE");q[B.XRANGELOOSE]="^"+q[B.GTLT]+"\\s*"+q[B.XRANGEPLAINLOOSE]+"$";pe("COERCE");q[B.COERCE]="(^|[^\\d])(\\d{1,"+pu+"})(?:\\.(\\d{1,"+pu+"}))?(?:\\.(\\d{1,"+pu+"}))?(?:$|[^\\d])";pe("COERCERTL");un[B.COERCERTL]=new RegExp(q[B.COERCE],"g");Ne[B.COERCERTL]=new RegExp(Qs(q[B.COERCE]),"g");pe("LONETILDE");q[B.LONETILDE]="(?:~>?)";pe("TILDETRIM");q[B.TILDETRIM]="(\\s*)"+q[B.LONETILDE]+"\\s+";un[B.TILDETRIM]=new RegExp(q[B.TILDETRIM],"g");Ne[B.TILDETRIM]=new RegExp(Qs(q[B.TILDETRIM]),"g");var MC="$1~";pe("TILDE");q[B.TILDE]="^"+q[B.LONETILDE]+q[B.XRANGEPLAIN]+"$";pe("TILDELOOSE");q[B.TILDELOOSE]="^"+q[B.LONETILDE]+q[B.XRANGEPLAINLOOSE]+"$";pe("LONECARET");q[B.LONECARET]="(?:\\^)";pe("CARETTRIM");q[B.CARETTRIM]="(\\s*)"+q[B.LONECARET]+"\\s+";un[B.CARETTRIM]=new Line truncated
`),{implicitDescendants:!1});try{for(var l=!0,c=xT(d.globGenerator()),m;m=yield c.next(),e=m.done,!e;l=!0){r=m.value,l=!1;let u=r,f=Qp.relative(p,u).replace(new RegExp(`\\${Qp.sep}`,"g"),"/");Js.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(u){a={error:u}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(OT,"resolvePaths");be.resolvePaths=OT;function PT(t){return gn(this,void 0,void 0,function*(){return ST.promisify(hu.unlink)(t)})}o(PT,"unlinkFile");be.unlinkFile=PT;function D4(t,e=[]){return gn(this,void 0,void 0,function*(){let a="";e.push("--version"),Js.debug(`Checking ${t} ${e.join(" ")}`);try{yield wT.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){Js.debug(i.message)}return a=a.trim(),Js.debug(a),a})}o(D4,"getVersion");function RT(){return gn(this,void 0,void 0,function*(){let t=yield D4("zstd",["--quiet"]),e=_T.clean(t);return Js.debug(`zstd version: ${e}`),t===""?Sr.CompressionMethod.Gzip:Sr.CompressionMethod.ZstdWithoutLong})}o(RT,"getCompressionMethod");be.getCompressionMethod=RT;function IT(t){return t===Sr.CompressionMethod.Gzip?Sr.CacheFilename.Gzip:Sr.CacheFilename.Zstd}o(IT,"getCacheFileName");be.getCacheFileName=IT;function DT(){return gn(this,void 0,void 0,function*(){return hu.existsSync(Sr.GnuTarPathOnWindows)?Sr.GnuTarPathOnWindows:(yield D4("tar")).toLowerCase().includes("gnu tar")?R4.which("tar"):""})}o(DT,"getGnuTarPathOnWindows");be.getGnuTarPathOnWindows=DT;function BT(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(BT,"assertDefined");be.assertDefined=BT;function AT(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(ET),I4.createHash("sha256").update(i.join("|")).digest("hex")}o(AT,"getCacheVersion");be.getCacheVersion=AT;function qT(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(qT,"getRuntimeToken");be.getRuntimeToken=qT});function Zs(){return Jp>Zp.length-16&&(B4.default.randomFillSync(Zp),Jp=0),Zp.slice(Jp,Jp+=16)}var B4,Zp,Jp,gu=qt(()=>{B4=an(require("crypto")),Zp=new Uint8Array(256),Jp=Zp.length;o(Zs,"rng")});var A4,q4=qt(()=>{A4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function MT(t){return typeof t=="string"&&A4.test(t)}var Fi,eo=qt(()=>{q4();o(MT,"validate");Fi=MT});function zT(t,e=0){let a=(It[t[e+0]]+It[t[e+1]]+It[t[e+2]]+It[t[e+3]]+"-"+It[t[e+4]]+It[t[e+5]]+"-"+It[t[e+6]]+It[t[e+7]]+"-"+It[t[e+8]]+It[t[e+9]]+"-"+It[t[e+10]]+It[t[e+11]]+It[t[e+12]]+It[t[e+13]]+It[t[e+14]]+It[t[e+15]]).toLowerCase();if(!Fi(a))throw TypeError("Stringified UUID is invalid");return a}var It,Hi,to=qt(()=>{eo();It=[];for(let t=0;t<256;++t)It.push((t+256).toString(16).substr(1));o(zT,"stringify");Hi=zT});function LT(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||M4,s=t.clockseq!==void 0?t.clockseq:yu;if(n==null||s==null){let u=t.random||(t.rng||Zs)();n==null&&(n=M4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),s==null&&(s=yu=(u[6]<<8|u[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),d=t.nsecs!==void 0?t.nsecs:bu+1,l=p-vu+(d-bu)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||p>vu)&&t.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");vu=p,bu=d,yu=s,p+=122192928e5;let c=((p&268435455)*1e4+d)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let m=p/4294967296*1e4&268435455;r[i++]=m>>>8&255,r[i++]=m&255,r[i++]=m>>>24&15|16,r[i++]=m>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let u=0;u<6;++u)r[i+u]=n[u];return e||Hi(r)}var M4,yu,vu,bu,z4,L4=qt(()=>{gu();to();vu=0,bu=0;o(LT,"v1");z4=LT});function kT(t){if(!Fi(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var ed,xu=qt(()=>{eo();o(kT,"parse");ed=kT});function jT(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function ao(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=jT(r)),typeof n=="string"&&(n=ed(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+r.length);if(d.set(n),d.set(r,n.length),d=a(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){p=p||0;for(let l=0;l<16;++l)s[p+l]=d[l];return s}return Hi(d)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=UT,i.URL=FT,i}var UT,FT,wu=qt(()=>{to();xu();o(jT,"stringToBytes");UT="6ba7b810-9dad-11d1-80b4-00c04fd430c8",FT Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Su)});var Ka=S((E3,Vi)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,d={}.hasOwnProperty;t=o(function(){var l,c,m,u,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=f.length;l<m;l++)if(u=f[l],u!=null)for(c in u)d.call(u,c)&&(h[c]=u[c]);return h},"assign"),r=o(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=o(function(l){var c;return!!l&&((c=typeof l)=="function"||c==="object")},"isObject"),a=o(function(l){return r(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),i=o(function(l){var c;if(a(l))return!l.length;for(c in l)if(d.call(l,c))return!1;return!0},"isEmpty"),s=o(function(l){var c,m;return n(l)&&(m=Object.getPrototypeOf(l))&&(c=m.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(l){return r(l.valueOf)?l.valueOf():l},"getValue"),Vi.exports.assign=t,Vi.exports.isFunction=r,Vi.exports.isObject=n,Vi.exports.isArray=a,Vi.exports.isEmpty=i,Vi.exports.isPlainObject=s,Vi.exports.getValue=e}).call(E3)});var Eu=S((C3,T3)=>{(function(){var t;T3.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(C3)});var R3=S((O3,P3)=>{(function(){var t;P3.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(O3)});var B3=S((I3,D3)=>{(function(){var t;D3.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(I3)});var M3=S((A3,q3)=>{(function(){var t,e,a;e=R3(),a=B3(),q3.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(A3)});var it=S((z3,L3)=>{(function(){L3.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(z3)});var Cu=S((k3,j3)=>{(function(){var t,e,a;t=it(),a=na(),j3.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi Line truncated
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(N=(D=w.dontPrettyTextNodes)!=null?D:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(C=(R=w.spaceBeforeSlash)!=null?R:w.spacebeforeslash)!=null?C:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},I.prototype.indent=function(w,y,g){var _;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(_=(g||0)+y.offset+1,_>0)?new Array(_).join(y.indent):""},I.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},I.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},I.prototype.cdata=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.comment=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.declaration=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,_+=' version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.docType=function(w,y,g){var _,O,N,D,C;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,D=this.indent(w,y,g),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.endline(w,y,g),y.state=e.InsideTag,C=w.children,O=0,N=C.length;O<N;O++)_=C[O],D+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,D+="]"}return y.state=e.CloseTag,D+=y.spaceBeforeSlash+">",D+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),D},I.prototype.element=function(w,y,g){var _,O,N,D,C,R,A,j,oe,ye,Q,tt,fe,Ra;g||(g=0),ye=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,tt=w.attribs;for(oe in tt)E.call(tt,oe)&&(_=tt[oe],Q+=this.attribute(_,y,g));if(N=w.children.length,D=N===0?null:w.children[0],N===0||w.children.every(function(Ft){return(Ft.type===t.Text||Ft.type===t.Raw)&&Ft.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ye=!0,Q+=this.writeChildNode(D,y,g+1),y.suppressPrettyCount--,ye=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(fe=w.children,C=0,A=fe.length;C<A;C++)if(O=fe[C],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ye=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,Ra=w.children,R=0,j=Ra.length;R<j;R++)O=Ra[R],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",ye&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},I.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},I.prototype.processingInstruction=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?",y.state=e.InsideTag,_+=w.target,w.value&&(_+=" "+w.value),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.raw=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.text=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.dtdAttList=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,_+=" "+w.elementName+" "+w.attributeName+" "+w.attribut Line truncated
`||x==="\r"||x===" "}o(w,"isWhitespace");function y(x){return x==='"'||x==="'"}o(y,"isQuote");function g(x){return x===">"||w(x)}o(g,"isAttribEnd");function _(x,v){return x.test(v)}o(_,"isMatch");function O(x,v){return!_(x,v)}o(O,"notMatch");var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var v=t.ENTITIES[x],M=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[x]=M});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;N=t.STATE;function C(x,v,M){x[v]&&x[v](M)}o(C,"emit");function R(x,v,M){x.textNode&&A(x),C(x,v,M)}o(R,"emitNode");function A(x){x.textNode=j(x.opt,x.textNode),x.textNode&&C(x,"ontext",x.textNode),x.textNode=""}o(A,"closeText");function j(x,v){return x.trim&&(v=v.trim()),x.normalize&&(v=v.replace(/\s+/g," ")),v}o(j,"textopts");function oe(x,v){return A(x),x.trackPosition&&(v+=`
Line: `+x.line+`
Column: `+x.column+`
Char: `+x.c),v=new Error(v),x.error=v,C(x,"onerror",v),x}o(oe,"error");function ye(x){return x.sawRoot&&!x.closedRoot&&Q(x,"Unclosed root tag"),x.state!==N.BEGIN&&x.state!==N.BEGIN_WHITESPACE&&x.state!==N.TEXT&&oe(x,"Unexpected end"),A(x),x.c="",x.closed=!0,C(x,"onend"),a.call(x,x.strict,x.opt),x}o(ye,"end");function Q(x,v){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&oe(x,v)}o(Q,"strictFail");function tt(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var v=x.tags[x.tags.length-1]||x,M=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(M.ns=v.ns),x.attribList.length=0,R(x,"onopentagstart",M)}o(tt,"newTag");function fe(x,v){var M=x.indexOf(":"),P=M<0?["",x]:x.split(":"),Te=P[0],pt=P[1];return v&&x==="xmlns"&&(Te="xmlns",pt=""),{prefix:Te,local:pt}}o(fe,"qname");function Ra(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var v=fe(x.attribName,!0),M=v.prefix,P=v.local;if(M==="xmlns")if(P==="xml"&&x.attribValue!==u)Q(x,"xml: prefix must be bound to "+u+`
Actual: `+x.attribValue);else if(P==="xmlns"&&x.attribValue!==f)Q(x,"xmlns: prefix must be bound to "+f+`
Actual: `+x.attribValue);else{var Te=x.tag,pt=x.tags[x.tags.length-1]||x;Te.ns===pt.ns&&(Te.ns=Object.create(pt.ns)),Te.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,R(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(Ra,"attrib");function Ut(x,v){if(x.opt.xmlns){var M=x.tag,P=fe(x.tagName);M.prefix=P.prefix,M.local=P.local,M.uri=M.ns[P.prefix]||"",M.prefix&&!M.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),M.uri=P.prefix);var Te=x.tags[x.tags.length-1]||x;M.ns&&Te.ns!==M.ns&&Object.keys(M.ns).forEach(function(Xh){R(x,"onopennamespace",{prefix:Xh,uri:M.ns[Xh]})});for(var pt=0,ht=x.attribList.length;pt<ht;pt++){var Ft=x.attribList[pt],Va=Ft[0],tn=Ft[1],Pt=fe(Va,!0),li=Pt.prefix,R_=Pt.local,Gh=li===""?"":M.ns[li]||"",bm={name:Va,value:tn,prefix:li,local:R_,uri:Gh};li&&li!=="xmlns"&&!Gh&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(li)),bm.uri=li),x.tag.attributes[Va]=bm,R(x,"onattribute",bm)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),R(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o(Ut,"openTag");function en(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}R(x,"onscript",x.script),x.script=""}var v=x.tags.length,M=x.tagName;x.strict||(M=M[x.looseCase]());for(var P=M;v--;){var Te=x.tags[v];if(Te.name!==P)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=M;for(var pt=x.tags.length;pt-- >v;){var ht=x.tag=x.tags.pop();x.tagName=x.tag.name,R(x,"onclosetag",x.tagName);var Ft={};for(var Va in ht.ns)Ft[Va]=ht.ns[Va];var tn=x.tags[x.tags.length-1]||x;x.opt.xmlns&&ht.ns!==tn.ns&&Object.keys(ht.ns).forEach(function(Pt){var li=ht.ns[Pt];R(x,"onclosenamespace",{prefix:Pt,uri:li})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}o(en,"closeTag");function Ls(x){var v=x.entity,M=v.toLowerCase(),P,Te="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[M]?x.ENTITIES[M]:(v=M,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),P=parseInt(v,16),Te=P.toString(16)):(v=v.slice(1),P=parseInt(v,10),Te=P.toString(10))),v=v.replace(/^0+/,""),isNaN(P)||Te.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}o(Ls,"parseEntity");function Vh(x,v){v==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=N.TEXT)}o(Vh,"beginWhiteSpace");function $h(x,v){var M="";return v<x.length&&(M=x.charAt(v)),M}o($h,"charAt");function P_(x){var v=this;if(this.error)throw this.error;if(v.closed)return oe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return ye(v);typeof x=="object"&&(x=x.toString());for(var M=0,P="";P=$h(x,M++),v.c=P,!!P;)switch(v.trackPosition&&(v.position++,P===`
Actual: `+x.attribValue);else{var Te=x.tag,pt=x.tags[x.tags.length-1]||x;Te.ns===pt.ns&&(Te.ns=Object.create(pt.ns)),Te.ns[P]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,R(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(Ra,"attrib");function Ft(x,v){if(x.opt.xmlns){var M=x.tag,P=fe(x.tagName);M.prefix=P.prefix,M.local=P.local,M.uri=M.ns[P.prefix]||"",M.prefix&&!M.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),M.uri=P.prefix);var Te=x.tags[x.tags.length-1]||x;M.ns&&Te.ns!==M.ns&&Object.keys(M.ns).forEach(function(Xh){R(x,"onopennamespace",{prefix:Xh,uri:M.ns[Xh]})});for(var pt=0,ht=x.attribList.length;pt<ht;pt++){var Ht=x.attribList[pt],Va=Ht[0],tn=Ht[1],Pt=fe(Va,!0),li=Pt.prefix,D_=Pt.local,Gh=li===""?"":M.ns[li]||"",bm={name:Va,value:tn,prefix:li,local:D_,uri:Gh};li&&li!=="xmlns"&&!Gh&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(li)),bm.uri=li),x.tag.attributes[Va]=bm,R(x,"onattribute",bm)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),R(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=N.SCRIPT:x.state=N.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o(Ft,"openTag");function en(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=N.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=N.SCRIPT;return}R(x,"onscript",x.script),x.script=""}var v=x.tags.length,M=x.tagName;x.strict||(M=M[x.looseCase]());for(var P=M;v--;){var Te=x.tags[v];if(Te.name!==P)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=N.TEXT;return}x.tagName=M;for(var pt=x.tags.length;pt-- >v;){var ht=x.tag=x.tags.pop();x.tagName=x.tag.name,R(x,"onclosetag",x.tagName);var Ht={};for(var Va in ht.ns)Ht[Va]=ht.ns[Va];var tn=x.tags[x.tags.length-1]||x;x.opt.xmlns&&ht.ns!==tn.ns&&Object.keys(ht.ns).forEach(function(Pt){var li=ht.ns[Pt];R(x,"onclosenamespace",{prefix:Pt,uri:li})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=N.TEXT}o(en,"closeTag");function ks(x){var v=x.entity,M=v.toLowerCase(),P,Te="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[M]?x.ENTITIES[M]:(v=M,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),P=parseInt(v,16),Te=P.toString(16)):(v=v.slice(1),P=parseInt(v,10),Te=P.toString(10))),v=v.replace(/^0+/,""),isNaN(P)||Te.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(P))}o(ks,"parseEntity");function Vh(x,v){v==="<"?(x.state=N.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=N.TEXT)}o(Vh,"beginWhiteSpace");function $h(x,v){var M="";return v<x.length&&(M=x.charAt(v)),M}o($h,"charAt");function I_(x){var v=this;if(this.error)throw this.error;if(v.closed)return oe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return ye(v);typeof x=="object"&&(x=x.toString());for(var M=0,P="";P=$h(x,M++),v.c=P,!!P;)switch(v.trackPosition&&(v.position++,P===`
`?(v.line++,v.column=0):v.column++),v.state){case N.BEGIN:if(v.state=N.BEGIN_WHITESPACE,P==="\uFEFF")continue;Vh(v,P);continue;case N.BEGIN_WHITESPACE:Vh(v,P);continue;case N.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Te=M-1;P&&P!=="<"&&P!=="&";)P=$h(x,M++),P&&v.trackPosition&&(v.position++,P===`
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Te,M-1)}P==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(P)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),P==="&"?v.state=N.TEXT_ENTITY:v.textNode+=P);continue;case N.SCRIPT:P==="<"?v.state=N.SCRIPT_ENDING:v.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+P,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(P))if(_(b,P))v.state=N.OPEN_TAG,v.tagName=P;else if(P==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(P==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var pt=v.position-v.startTagPosition;P=new Array(pt).join(" ")+P}v.textNode+="<"+P,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+P).toUpperCase()===c?(R(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+P==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+P).toUpperCase()===m?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):P===">"?(R(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(P)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(v.state=N.TEXT,R(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=P,P==="["?v.state=N.DOCTYPE_DTD:y(P)&&(v.state=N.DOCTYPE_QUOTED,v.q=P));continue;case N.DOCTYPE_QUOTED:v.doctype+=P,P===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=P,P==="]"?v.state=N.DOCTYPE:y(P)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=P);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=P,P===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:P==="-"?v.state=N.COMMENT_ENDING:v.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(v.state=N.COMMENT_ENDED,v.comment=k(v.opt,v.comment),v.comment&&R(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+P,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(Q(v,"Malformed comment"),v.comment+="--"+P,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:P==="]"?v.state=N.CDATA_ENDING:v.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+P,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(v.cdata&&R(v,"oncdata",v.cdata),R(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):P==="]"?v.cdata+="]":(v.cdata+="]]"+P,v.state=N.CDATA);continue;case N.PROC_INST:P==="?"?v.state=N.PROC_INST_ENDING:w(P)?v.state=N.PROC_INST_BODY:v.procInstName+=P;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(P))continue;P==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(R(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+P,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(T,P)?v.tagName+=P:(tt(v),P===">"?Ut(v):P==="/"?v.state=N.OPEN_TAG_SLASH:(w(P)||Q(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(Ut(v,!0),en(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(P))continue;P===">"?Ut(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?v.state=N.ATTRIB_VALUE:P===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,Ra(v),Ut(v)):w(P)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(T,P)?v.attribName+=P:Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")v.state=N.ATTRIB_VALUE;else{if(w(P))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",R(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",P===">"?Ut(v):_(b,P)?(v.attribName=P,v.state=N.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(P))continue;y(P)?(v.q=P,v.state=N.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=P);continue;case N.ATTRIB_VALUE_QUOTED:if(P!==v.q){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=P;continue}Ra(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(P)?v.state=N.ATTRIB:P===">"?Ut(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(Q(v,"No whitespace between attributes"),v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(P)){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=P;continue}Ra(v),P===">"?Ut(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)P===">"?en(v):_(T,P)?v.tagName+=P:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(P)||Q(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(P))continue;O Line truncated
`;ge.DEFAULT_CONTENT_TYPE="application/octet-stream";ge.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=g1.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ge.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=Number(a.knownLength):Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ge.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Xi(e,"httpVersion"))&&!(e instanceof yR))&&(a.knownLength||this._valuesToMeasure.push(e))};ge.prototype._lengthRetriever=function(t,e){Xi(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):gR.stat(t.path,function(a,i){if(a){e(a);return}var r=i.size-(t.start?t.start:0);e(null,r)}):Xi(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Xi(t,"httpModule")?(t.on("response",function(a){t.pause(),e(null,Number(a.headers["content-length"]))}),t.resume()):e("Unknown stream")};ge.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&h1(s,a.header);var p;for(var d in s)if(Xi(s,d)){if(p=s[d],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(n+=d+": "+p.join("; ")+ge.LINE_BREAK)}return"--"+this.getBoundary()+ge.LINE_BREAK+n+ge.LINE_BREAK};ge.prototype._getContentDisposition=function(t,e){var a;if(typeof e.filepath=="string"?a=u1.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?a=u1.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Xi(t,"httpVersion")&&(a=u1.basename(t.client._httpMessage.path||"")),a)return'filename="'+a+'"'};ge.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t&&t.name&&(a=f1.lookup(t.name)),!a&&t&&t.path&&(a=f1.lookup(t.path)),!a&&t&&t.readable&&Xi(t,"httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=f1.lookup(e.filepath||e.filename)),!a&&t&&typeof t=="object"&&(a=ge.DEFAULT_CONTENT_TYPE),a};ge.prototype._multiPartFooter=function(){return function(t){var e=ge.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ge.LINE_BREAK};ge.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Xi(t,e)&&(a[e.toLowerCase()]=t[e]);return a};ge.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ge.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ge.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ge.prototype._generateBoundary=function(){this._boundary="--------------------------"+vR.randomBytes(12).toString("hex")};ge.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ge.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ge.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}bR.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ge.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=hR(t),i=h1({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=h1(t,r),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol==="https:"?a=fR.request(i):a=uR.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,d=o(function(l,c){return a.removeListener("error",d),a.removeListener("response",p),e.call(this,l,c)},"callback");p=d.bind(this,null),a.on("error",d),a.on("response",p)}}.bind(this)),a};ge.prototype._error=function(t){this.error||(this.error=t,this. Line truncated
${uA.sanitize(this)}`}};oa.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";oa.PARSE_ERROR="PARSE_ERROR";var za=cB.createClientLogger("core-http");function m7(t,e){return t?e.httpsAgent:e.httpAgent}o(m7,"getCachedAgent");var jl=class extends gB.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function Dl(t){return t&&typeof t.pipe=="function"}o(Dl,"isReadableStream");function u7(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(u7,"isStreamComplete");function fA(t){let e=new er;return t.forEach((a,i)=>{e.set(i,a)}),e}o(fA,"parseHeaders");var kl=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Bl.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Bl.AbortError("The operation was aborted.");r=o(l=>{l.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let l=e.formData,c=new bB.default,m=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(l)){let h=l[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)m(f,h[b]);else m(f,h)}e.body=c,e.formData=void 0;let u=e.headers.get("Content-Type");u&&u.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,c=new jl(l);Dl(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),d;try{let l=await this.fetch(e.url,p),c=fA(l.headers),m=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(l.status))||e.streamResponseBody;d={headers:c,request:e,status:l.status,readableStreamBody:m?l.body:void 0,bodyAsText:m?void 0:await l.text()};let u=e.onDownloadProgress;if(u){let f=l.body||void 0;if(Dl(f)){let h=new jl(u);f.pipe(h),d.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&u({loadedBytes:h})}}return await this.processRequest(d),d}catch(l){let c=l;throw c.code==="ENOTFOUND"?new oa(c.message,oa.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new Bl.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let l=Promise.resolve();Dl(n)&&(l=u7(n));let c=Promise.resolve();Dl(d?.readableStreamBody)&&(c=u7(d.readableStreamBody,i)),Promise.all([l,c]).then(()=>{var m;(m=e.abortSignal)===null||m===void 0||m.removeEventListener("abort",r)}).catch(m=>{za.warning("Error when cleaning up abortListener on httpRequest",m)})}}}getOrCreateAgent(e){var a;let i=Cf(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,d=`${r}:${n}:${s}:${p}`,l=(a=this.proxyAgentMap.get(d))!==null&&a!==void 0?a:{},c=m7(i,l);if(c)return c;let m=dA(e.url,e.proxySettings,e.headers);return c=m.agent,m.isHttps?l.httpsAgent=m.agent:l.httpAgent=m.agent,this.proxyAgentMap.set(d,l),c}else if(e.keepAlive){let r=m7(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new o7.Agent(n):r=this.keepAliveAgents.httpAgent=new s7.Agent(n),r}else return i?o7.globalAgent:s7.globalAgent}async fetch(e,a){return xB.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};H.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(H.HttpPipelineLogLevel||(H.HttpPipelineLogLevel={}));function hA(t){let{requestOptions:e,tracingOptions:a}=t,r=dB.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(hA,"operationOptionsToRequestOptionsBase");var ct=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},Ul=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==H.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},B7={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:lt,explicitArray:!0,ignore Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},ql=Object.assign({},B7);ql.explicitArray=!1;var Bo=Object.assign({},B7);Bo.explicitArray=!1;Bo.renderOpts={pretty:!1};function Tf(t,e={}){var a;return Bo.rootName=e.rootName,Bo.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:_i,new N7.Builder(Bo).buildObject(t)}o(Tf,"stringifyXML");function A7(t,e={}){var a;ql.explicitRoot=!!e.includeRoot,ql.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:_i;let i=new N7.Parser(ql);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(A7,"parseXML");function Qf(t,e){return{create:(a,i)=>new Of(a,i,t,e)}}o(Qf,"deserializationPolicy");var q7=["application/json","text/json"],M7=["application/xml","application/atom+xml"],gA={expectedContentTypes:{json:q7,xml:M7}},Of=class extends ct{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||q7,this.xmlContentTypes=i&&i.xml||M7,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:_i}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>z7(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function yA(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(yA,"getOperationResponse");function vA(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(vA,"shouldDeserializeResponse");function z7(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:_i};return wA(t,e,a,p).then(d=>{if(!vA(d))return d;let l=d.request.operationSpec;if(!l||!l.responses)return d;let c=yA(d),{error:m,shouldReturnResponse:u}=xA(d,l,c);if(m)throw m;if(u)return d;if(c){if(c.bodyMapper){let f=d.parsedBody;l.isXML&&c.bodyMapper.type.name===qr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{d.parsedBody=l.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new oa(`Error ${h} occurred in deserializing the responseBody - ${d.bodyAsText}`,void 0,d.status,d.request,d)}}else l.httpMethod==="HEAD"&&(d.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(d.parsedHeaders=l.serializer.deserialize(c.headersMapper,d.headers.toJson(),"operationRes.parsedHeaders",i))}return d})}o(z7,"deserializeResponseBody");function bA(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(bA,"isOperationSpecEmpty");function xA(t,e,a){var i;let r=200<=t.status&&t.status<300;if(bA(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,d=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new oa(d,void 0,t.status,t.request,t);if(!s)throw l;let c=s.bodyMapper,m=s.headersMapper;try{if(t.parsedBody){let u=t.parsedBody,f;if(c){let b=u;e.isXML&&c.type.name===qr.Sequence&&(b=typeof u=="object"?u[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=u.error||f||u;l.code=h.code,h.message&&(l.message=h.message),c&&(l.response.parsedBody=f)}t.headers&&m&&(l.response.parsedHeaders=e.serializer.deserialize(m,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(u){l.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(xA,"handleErrorResponse");function wA(t,e,a,i){var r;let n=o(p=>{let d=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,l=p.code||oa.PARSE_ERROR,c=new oa(d,l,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,d=a.headers.get("Content-Type")||"",l=d?d.split(";").map(c=>c.toLowerCase()):[];if(l.length===0||l.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(l.some(c=>e.indexOf(c)!==-1))return A7(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(wA,"parse");var L7={enable:!0};function j7(t){return{create:(e,a)=>new Pf(e,a,t||L7)}}o(j7,"keepAlivePolicy");var Pf=class extends ct{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},f7=["GET","HEAD"],NA={handleRedirects:!0,maxRetries:20};function Jf(t=20){return{create:(e,a)=>new Rf(e,a,t)}}o(Jf,"redirectPolicy");var Rf=class extends ct{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>k7(this,a,0))}};functi Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},G7=[],X7=!1,qA=new Map;function MA(){if(!process)return;let t=Al(wa.HTTPS_PROXY),e=Al(wa.ALL_PROXY),a=Al(wa.HTTP_PROXY);return t||e||a}o(MA,"loadEnvironmentProxyValue");function zA(t,e,a){if(e.length===0)return!1;let i=ai.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(zA,"isBypassed");function LA(){let t=Al(wa.NO_PROXY);return X7=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(LA,"loadNoProxy");function W7(t){if(!t&&(t=MA(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=jA(t),r=ai.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(W7,"getDefaultProxySettings");function s0(t,e){return t||(t=W7()),X7||G7.push(...LA()),{create:(a,i)=>new Lf(a,i,t,e?.customNoProxyList)}}o(s0,"proxyPolicy");function jA(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,d=s?r.substring(n+1):void 0,l=t.substring(0,i)+t.substring(e+1);return{username:p,password:d,urlWithoutAuth:l}}o(jA,"extractAuthFromUrl");var Lf=class extends ct{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!zA(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:G7,this.customNoProxyList?void 0:qA)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function kA(t=30){return{create:(e,a)=>new jf(e,a,t)}}o(kA,"rpRegistrationPolicy");var jf=class extends ct{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>UA(this,e,a))}};function UA(t,e,a){if(a.status===409){let i=FA(a.bodyAsText);if(i){let r=HA(e.url);return VA(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Vl()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(UA,"registerIfNeeded");function K7(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Vl()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(K7,"getRequestEssentials");function FA(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(FA,"checkRPNotRegisteredError");function HA(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(HA,"extractSubscriptionUrl");async function VA(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=K7(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return Y7(t,n,i)}o(VA,"registerRP");async function Y7(t,e,a){let i=K7(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await ti.delay(t._retryTimeout*1e3),Y7(t,e,a))}o(Y7,"getRegistrationStatus");function Q7(t){return{create:(e,a)=>new kf(e,a,t)}}o(Q7,"signingPolicy");var kf=class extends ct{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function o0(t,e,a,i){return{create:(r,n)=>new Uf(r,n,t,e,a,i)}}o(o0,"systemErrorRetryPolicy");var Uf=class extends ct{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Ar(i)?i:Zf,this.retryInterval=Ar(r)?r:e0,this.minRetryInterval=Ar(n)?n:_A,this.maxRetryInterval=Ar(s)?s:t0}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>J7(this,e,a.response,a))}};async function J7(t,e,a,i,r){r=F7(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),U7(t.retryCount,n,r,a,i))try{return await ti.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return J7(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(J7,"retry");var $A=3,h7=wa.HttpConstants.StatusCodes;function p0(){return{create:(t,e)=>new Ff(t,e)}}o(p0,"throttlingRetryPolicy");var g7="The operation was aborted.",Ff=class t extends ct{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this. Line truncated
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Te,M-1)}P==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(P)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),P==="&"?v.state=N.TEXT_ENTITY:v.textNode+=P);continue;case N.SCRIPT:P==="<"?v.state=N.SCRIPT_ENDING:v.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+P,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(P))if(_(b,P))v.state=N.OPEN_TAG,v.tagName=P;else if(P==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(P==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var pt=v.position-v.startTagPosition;P=new Array(pt).join(" ")+P}v.textNode+="<"+P,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+P).toUpperCase()===c?(R(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+P==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+P).toUpperCase()===m?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):P===">"?(R(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(P)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(v.state=N.TEXT,R(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=P,P==="["?v.state=N.DOCTYPE_DTD:y(P)&&(v.state=N.DOCTYPE_QUOTED,v.q=P));continue;case N.DOCTYPE_QUOTED:v.doctype+=P,P===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=P,P==="]"?v.state=N.DOCTYPE:y(P)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=P);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=P,P===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:P==="-"?v.state=N.COMMENT_ENDING:v.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(v.state=N.COMMENT_ENDED,v.comment=j(v.opt,v.comment),v.comment&&R(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+P,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(Q(v,"Malformed comment"),v.comment+="--"+P,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:P==="]"?v.state=N.CDATA_ENDING:v.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+P,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(v.cdata&&R(v,"oncdata",v.cdata),R(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):P==="]"?v.cdata+="]":(v.cdata+="]]"+P,v.state=N.CDATA);continue;case N.PROC_INST:P==="?"?v.state=N.PROC_INST_ENDING:w(P)?v.state=N.PROC_INST_BODY:v.procInstName+=P;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(P))continue;P==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(R(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+P,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(T,P)?v.tagName+=P:(tt(v),P===">"?Ft(v):P==="/"?v.state=N.OPEN_TAG_SLASH:(w(P)||Q(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(Ft(v,!0),en(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(P))continue;P===">"?Ft(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?v.state=N.ATTRIB_VALUE:P===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,Ra(v),Ft(v)):w(P)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(T,P)?v.attribName+=P:Q(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")v.state=N.ATTRIB_VALUE;else{if(w(P))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",R(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",P===">"?Ft(v):_(b,P)?(v.attribName=P,v.state=N.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(P))continue;y(P)?(v.q=P,v.state=N.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=P);continue;case N.ATTRIB_VALUE_QUOTED:if(P!==v.q){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=P;continue}Ra(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(P)?v.state=N.ATTRIB:P===">"?Ft(v):P==="/"?v.state=N.OPEN_TAG_SLASH:_(b,P)?(Q(v,"No whitespace between attributes"),v.attribName=P,v.attribValue="",v.state=N.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(P)){P==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=P;continue}Ra(v),P===">"?Ft(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)P===">"?en(v):_(T,P)?v.tagName+=P:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(P)||Q(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(P))continue;O Line truncated
`;ge.DEFAULT_CONTENT_TYPE="application/octet-stream";ge.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=g1.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ge.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=Number(a.knownLength):Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ge.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Xi(e,"httpVersion"))&&!(e instanceof bR))&&(a.knownLength||this._valuesToMeasure.push(e))};ge.prototype._lengthRetriever=function(t,e){Xi(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):vR.stat(t.path,function(a,i){if(a){e(a);return}var r=i.size-(t.start?t.start:0);e(null,r)}):Xi(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Xi(t,"httpModule")?(t.on("response",function(a){t.pause(),e(null,Number(a.headers["content-length"]))}),t.resume()):e("Unknown stream")};ge.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&h1(s,a.header);var p;for(var d in s)if(Xi(s,d)){if(p=s[d],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(n+=d+": "+p.join("; ")+ge.LINE_BREAK)}return"--"+this.getBoundary()+ge.LINE_BREAK+n+ge.LINE_BREAK};ge.prototype._getContentDisposition=function(t,e){var a;if(typeof e.filepath=="string"?a=u1.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?a=u1.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Xi(t,"httpVersion")&&(a=u1.basename(t.client._httpMessage.path||"")),a)return'filename="'+a+'"'};ge.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t&&t.name&&(a=f1.lookup(t.name)),!a&&t&&t.path&&(a=f1.lookup(t.path)),!a&&t&&t.readable&&Xi(t,"httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=f1.lookup(e.filepath||e.filename)),!a&&t&&typeof t=="object"&&(a=ge.DEFAULT_CONTENT_TYPE),a};ge.prototype._multiPartFooter=function(){return function(t){var e=ge.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ge.LINE_BREAK};ge.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Xi(t,e)&&(a[e.toLowerCase()]=t[e]);return a};ge.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ge.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ge.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ge.prototype._generateBoundary=function(){this._boundary="--------------------------"+xR.randomBytes(12).toString("hex")};ge.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ge.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ge.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}wR.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ge.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=yR(t),i=h1({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=h1(t,r),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol==="https:"?a=gR.request(i):a=hR.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,d=o(function(l,c){return a.removeListener("error",d),a.removeListener("response",p),e.call(this,l,c)},"callback");p=d.bind(this,null),a.on("error",d),a.on("response",p)}}.bind(this)),a};ge.prototype._error=function(t){this.error||(this.error=t,this. Line truncated
${hA.sanitize(this)}`}};oa.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";oa.PARSE_ERROR="PARSE_ERROR";var za=uB.createClientLogger("core-http");function m7(t,e){return t?e.httpsAgent:e.httpAgent}o(m7,"getCachedAgent");var kl=class extends vB.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function Dl(t){return t&&typeof t.pipe=="function"}o(Dl,"isReadableStream");function u7(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(u7,"isStreamComplete");function gA(t){let e=new er;return t.forEach((a,i)=>{e.set(i,a)}),e}o(gA,"parseHeaders");var jl=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Bl.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Bl.AbortError("The operation was aborted.");r=o(l=>{l.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let l=e.formData,c=new wB.default,m=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(l)){let h=l[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)m(f,h[b]);else m(f,h)}e.body=c,e.formData=void 0;let u=e.headers.get("Content-Type");u&&u.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,c=new kl(l);Dl(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),d;try{let l=await this.fetch(e.url,p),c=gA(l.headers),m=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(l.status))||e.streamResponseBody;d={headers:c,request:e,status:l.status,readableStreamBody:m?l.body:void 0,bodyAsText:m?void 0:await l.text()};let u=e.onDownloadProgress;if(u){let f=l.body||void 0;if(Dl(f)){let h=new kl(u);f.pipe(h),d.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&u({loadedBytes:h})}}return await this.processRequest(d),d}catch(l){let c=l;throw c.code==="ENOTFOUND"?new oa(c.message,oa.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new Bl.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let l=Promise.resolve();Dl(n)&&(l=u7(n));let c=Promise.resolve();Dl(d?.readableStreamBody)&&(c=u7(d.readableStreamBody,i)),Promise.all([l,c]).then(()=>{var m;(m=e.abortSignal)===null||m===void 0||m.removeEventListener("abort",r)}).catch(m=>{za.warning("Error when cleaning up abortListener on httpRequest",m)})}}}getOrCreateAgent(e){var a;let i=Cf(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,d=`${r}:${n}:${s}:${p}`,l=(a=this.proxyAgentMap.get(d))!==null&&a!==void 0?a:{},c=m7(i,l);if(c)return c;let m=cA(e.url,e.proxySettings,e.headers);return c=m.agent,m.isHttps?l.httpsAgent=m.agent:l.httpAgent=m.agent,this.proxyAgentMap.set(d,l),c}else if(e.keepAlive){let r=m7(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new o7.Agent(n):r=this.keepAliveAgents.httpAgent=new s7.Agent(n),r}else return i?o7.globalAgent:s7.globalAgent}async fetch(e,a){return NB.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};H.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(H.HttpPipelineLogLevel||(H.HttpPipelineLogLevel={}));function yA(t){let{requestOptions:e,tracingOptions:a}=t,r=cB.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(yA,"operationOptionsToRequestOptionsBase");var ct=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},Ul=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==H.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},B7={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:lt,explicitArray:!0,ignore Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},ql=Object.assign({},B7);ql.explicitArray=!1;var Bo=Object.assign({},B7);Bo.explicitArray=!1;Bo.renderOpts={pretty:!1};function Tf(t,e={}){var a;return Bo.rootName=e.rootName,Bo.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:_i,new N7.Builder(Bo).buildObject(t)}o(Tf,"stringifyXML");function A7(t,e={}){var a;ql.explicitRoot=!!e.includeRoot,ql.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:_i;let i=new N7.Parser(ql);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(A7,"parseXML");function Qf(t,e){return{create:(a,i)=>new Of(a,i,t,e)}}o(Qf,"deserializationPolicy");var q7=["application/json","text/json"],M7=["application/xml","application/atom+xml"],vA={expectedContentTypes:{json:q7,xml:M7}},Of=class extends ct{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||q7,this.xmlContentTypes=i&&i.xml||M7,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:_i}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>z7(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function bA(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(bA,"getOperationResponse");function xA(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(xA,"shouldDeserializeResponse");function z7(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:_i};return _A(t,e,a,p).then(d=>{if(!xA(d))return d;let l=d.request.operationSpec;if(!l||!l.responses)return d;let c=bA(d),{error:m,shouldReturnResponse:u}=NA(d,l,c);if(m)throw m;if(u)return d;if(c){if(c.bodyMapper){let f=d.parsedBody;l.isXML&&c.bodyMapper.type.name===qr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{d.parsedBody=l.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new oa(`Error ${h} occurred in deserializing the responseBody - ${d.bodyAsText}`,void 0,d.status,d.request,d)}}else l.httpMethod==="HEAD"&&(d.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(d.parsedHeaders=l.serializer.deserialize(c.headersMapper,d.headers.toJson(),"operationRes.parsedHeaders",i))}return d})}o(z7,"deserializeResponseBody");function wA(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(wA,"isOperationSpecEmpty");function NA(t,e,a){var i;let r=200<=t.status&&t.status<300;if(wA(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,d=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new oa(d,void 0,t.status,t.request,t);if(!s)throw l;let c=s.bodyMapper,m=s.headersMapper;try{if(t.parsedBody){let u=t.parsedBody,f;if(c){let b=u;e.isXML&&c.type.name===qr.Sequence&&(b=typeof u=="object"?u[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=u.error||f||u;l.code=h.code,h.message&&(l.message=h.message),c&&(l.response.parsedBody=f)}t.headers&&m&&(l.response.parsedHeaders=e.serializer.deserialize(m,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(u){l.message=`Error "${u.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}o(NA,"handleErrorResponse");function _A(t,e,a,i){var r;let n=o(p=>{let d=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,l=p.code||oa.PARSE_ERROR,c=new oa(d,l,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,d=a.headers.get("Content-Type")||"",l=d?d.split(";").map(c=>c.toLowerCase()):[];if(l.length===0||l.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(l.some(c=>e.indexOf(c)!==-1))return A7(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(_A,"parse");var L7={enable:!0};function k7(t){return{create:(e,a)=>new Pf(e,a,t||L7)}}o(k7,"keepAlivePolicy");var Pf=class extends ct{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},f7=["GET","HEAD"],SA={handleRedirects:!0,maxRetries:20};function Jf(t=20){return{create:(e,a)=>new Rf(e,a,t)}}o(Jf,"redirectPolicy");var Rf=class extends ct{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>j7(this,a,0))}};functi Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},G7=[],X7=!1,zA=new Map;function LA(){if(!process)return;let t=Al(wa.HTTPS_PROXY),e=Al(wa.ALL_PROXY),a=Al(wa.HTTP_PROXY);return t||e||a}o(LA,"loadEnvironmentProxyValue");function kA(t,e,a){if(e.length===0)return!1;let i=ai.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(kA,"isBypassed");function jA(){let t=Al(wa.NO_PROXY);return X7=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(jA,"loadNoProxy");function W7(t){if(!t&&(t=LA(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=UA(t),r=ai.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(W7,"getDefaultProxySettings");function s0(t,e){return t||(t=W7()),X7||G7.push(...jA()),{create:(a,i)=>new Lf(a,i,t,e?.customNoProxyList)}}o(s0,"proxyPolicy");function UA(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,d=s?r.substring(n+1):void 0,l=t.substring(0,i)+t.substring(e+1);return{username:p,password:d,urlWithoutAuth:l}}o(UA,"extractAuthFromUrl");var Lf=class extends ct{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!kA(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:G7,this.customNoProxyList?void 0:zA)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function FA(t=30){return{create:(e,a)=>new kf(e,a,t)}}o(FA,"rpRegistrationPolicy");var kf=class extends ct{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>HA(this,e,a))}};function HA(t,e,a){if(a.status===409){let i=VA(a.bodyAsText);if(i){let r=$A(e.url);return GA(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Vl()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(HA,"registerIfNeeded");function K7(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Vl()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(K7,"getRequestEssentials");function VA(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(VA,"checkRPNotRegisteredError");function $A(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o($A,"extractSubscriptionUrl");async function GA(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=K7(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return Y7(t,n,i)}o(GA,"registerRP");async function Y7(t,e,a){let i=K7(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await ti.delay(t._retryTimeout*1e3),Y7(t,e,a))}o(Y7,"getRegistrationStatus");function Q7(t){return{create:(e,a)=>new jf(e,a,t)}}o(Q7,"signingPolicy");var jf=class extends ct{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function o0(t,e,a,i){return{create:(r,n)=>new Uf(r,n,t,e,a,i)}}o(o0,"systemErrorRetryPolicy");var Uf=class extends ct{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Ar(i)?i:Zf,this.retryInterval=Ar(r)?r:e0,this.minRetryInterval=Ar(n)?n:EA,this.maxRetryInterval=Ar(s)?s:t0}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>J7(this,e,a.response,a))}};async function J7(t,e,a,i,r){r=F7(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),U7(t.retryCount,n,r,a,i))try{return await ti.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return J7(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(J7,"retry");var XA=3,h7=wa.HttpConstants.StatusCodes;function p0(){return{create:(t,e)=>new Ff(t,e)}}o(p0,"throttlingRetryPolicy");var g7="The operation was aborted.",Ff=class t extends ct{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this. Line truncated
Polling from: ${a.config.operationLocation}
Operation status: ${c}
Polling status: ${ov.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let m=s(l,a);if(m!==void 0)return{response:await e(m).catch(nv({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:l,status:c}}o(pq,"pollOperationHelper");async function cv(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:d,withOperationLocation:l,getPollingInterval:c,processResult:m,getError:u,updateState:f,setDelay:h,isDone:b,setErrorAsResult:T}=t,{operationLocation:E}=a.config;if(E!==void 0){let{response:I,status:w}=await pq({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:E,getResourceLocation:s,isOperationError:d,options:r});if(dv({status:w,response:I,state:a,stateProxy:i,isDone:b,processResult:m,getError:u,setErrorAsResult:T}),!ov.includes(w)){let y=c?.(I);y&&h(y);let g=p?.(I,a);if(g!==void 0){let _=E!==g;a.config.operationLocation=g,l?.(g,_)}else l?.(E,!1)}f?.(a,I)}}o(cv,"pollOperation");function mv(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(mv,"getOperationLocationPollingUrl");function uv(t){return t.headers.location}o(uv,"getLocationHeader");function fv(t){return t.headers["operation-location"]}o(fv,"getOperationLocationHeader");function hv(t){return t.headers["azure-asyncoperation"]}o(hv,"getAzureAsyncOperationHeader");function dq(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(dq,"findResourceLocation");function gv(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=fv(e),s=hv(e),p=mv({operationLocation:n,azureAsyncOperation:s}),d=uv(e),l=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:dq({requestMethod:l,location:d,requestPath:i,resourceLocationConfig:r})}:d!==void 0?{mode:"ResourceLocation",operationLocation:d}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(gv,"inferLroMode");function yv(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return m0(a);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:return zr.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(yv,"transformStatus");function lq(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return yv({status:a,statusCode:t.statusCode})}o(lq,"getStatus");function cq(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return yv({status:n,statusCode:t.statusCode})}o(cq,"getProvisioningState");function m0(t){return t===202?"running":t<300?"succeeded":"failed"}o(m0,"toOperationStatus");function vv({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?mq(new Date(e)):a*1e3}}o(vv,"parseRetryAfter");function bv(t){let e=t.flatResponse.error;if(!e){zr.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){zr.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(bv,"getErrorFromResponse");function mq(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(mq,"calculatePollingIntervalFromDate");function xv(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return m0(e.rawResponse.statusCode);case"Body":return u0(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(xv,"getStatusFromInitialResponse");async function uq(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return lv({init:async()=>{let s=await r.sendInitialRequest(),p=gv({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:xv,setErrorAsResult:n})}o(uq,"initHttpOperation");function wv({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
`,nN="HTTP/1.1",hL="AES256",gL="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",yL=["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"],vL=["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"],bL="BlobUsesCustomerSpecifiedEncryption",xL="BlobDoesNotUseCustomerSpecifiedEncryption",wL=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function NL(t){let e=z.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=SL(a),e.setPath(a),e.toString()}o(NL,"escapeURLPath");function _L(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(_L,"getProxyUriFromDevConnString");function Un(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Un,"getValueInConnString");function os(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=_L(t),t=gL);let a=Un(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Un(t,"AccountName"),n=Buffer.from(Un(t,"AccountKey"),"base64"),!a){i=Un(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Un(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Un(t,"SharedAccessSignature"),r=oN(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(os,"extractConnectionStringParts");function SL(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(SL,"escape");function Ue(t,e){let a=z.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(Ue,"appendToURLPath");function Hr(t,e Line truncated
Polling status: ${ov.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let m=s(l,a);if(m!==void 0)return{response:await e(m).catch(nv({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:l,status:c}}o(lq,"pollOperationHelper");async function cv(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:d,withOperationLocation:l,getPollingInterval:c,processResult:m,getError:u,updateState:f,setDelay:h,isDone:b,setErrorAsResult:T}=t,{operationLocation:E}=a.config;if(E!==void 0){let{response:I,status:w}=await lq({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:E,getResourceLocation:s,isOperationError:d,options:r});if(dv({status:w,response:I,state:a,stateProxy:i,isDone:b,processResult:m,getError:u,setErrorAsResult:T}),!ov.includes(w)){let y=c?.(I);y&&h(y);let g=p?.(I,a);if(g!==void 0){let _=E!==g;a.config.operationLocation=g,l?.(g,_)}else l?.(E,!1)}f?.(a,I)}}o(cv,"pollOperation");function mv(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(mv,"getOperationLocationPollingUrl");function uv(t){return t.headers.location}o(uv,"getLocationHeader");function fv(t){return t.headers["operation-location"]}o(fv,"getOperationLocationHeader");function hv(t){return t.headers["azure-asyncoperation"]}o(hv,"getAzureAsyncOperationHeader");function cq(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(cq,"findResourceLocation");function gv(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=fv(e),s=hv(e),p=mv({operationLocation:n,azureAsyncOperation:s}),d=uv(e),l=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:cq({requestMethod:l,location:d,requestPath:i,resourceLocationConfig:r})}:d!==void 0?{mode:"ResourceLocation",operationLocation:d}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(gv,"inferLroMode");function yv(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return m0(a);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:return zr.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(yv,"transformStatus");function mq(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return yv({status:a,statusCode:t.statusCode})}o(mq,"getStatus");function uq(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return yv({status:n,statusCode:t.statusCode})}o(uq,"getProvisioningState");function m0(t){return t===202?"running":t<300?"succeeded":"failed"}o(m0,"toOperationStatus");function vv({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?fq(new Date(e)):a*1e3}}o(vv,"parseRetryAfter");function bv(t){let e=t.flatResponse.error;if(!e){zr.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){zr.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(bv,"getErrorFromResponse");function fq(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(fq,"calculatePollingIntervalFromDate");function xv(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return m0(e.rawResponse.statusCode);case"Body":return u0(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(xv,"getStatusFromInitialResponse");async function hq(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return lv({init:async()=>{let s=await r.sendInitialRequest(),p=gv({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:xv,setErrorAsResult:n})}o(hq,"initHttpOperation");function wv({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
`,nN="HTTP/1.1",yL="AES256",vL="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",bL=["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"],xL=["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"],wL="BlobUsesCustomerSpecifiedEncryption",NL="BlobDoesNotUseCustomerSpecifiedEncryption",_L=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function SL(t){let e=z.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=CL(a),e.setPath(a),e.toString()}o(SL,"escapeURLPath");function EL(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(EL,"getProxyUriFromDevConnString");function Fn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Fn,"getValueInConnString");function ps(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=EL(t),t=vL);let a=Fn(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Fn(t,"AccountName"),n=Buffer.from(Fn(t,"AccountKey"),"base64"),!a){i=Fn(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Fn(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Fn(t,"SharedAccessSignature"),r=oN(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(ps,"extractConnectionStringParts");function CL(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(CL,"escape");function Ue(t,e){let a=z.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(Ue,"appendToURLPath");function Hr(t,e Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Be.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Be.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Be.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let a=y2(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=OL(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let d=p.toLowerCase();n[d]=r[p],s.push(d)}s.sort();for(let p of s)i+=`
${p}:${decodeURIComponent(n[p])}`}return i}},Ye=class extends Ho{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new pc(e,a,this)}computeHMACSHA256(e){return Lv.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},HL="azure-storage-blob",VL="12.15.0",$o=class extends F.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=F.getDefaultUserAgentValue();a.userAgent=`${HL}/${VL} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},Go=class{static{o(this,"StorageClient")}constructor(e,a){this.url=NL(e),this.accountName=oN(e),this.pipeline=a,this.storageClientContext=new $o(this.url,a.toServiceClientOptions()),this.isHttps=sN(CL(this.url)||"","https"),this.credential=new Pe;for(let r of this.pipeline.factories)z.isNode&&r instanceof Ye||r instanceof Pe?this.credential=r:z.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},j=L.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function W(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(W,"convertTracingToRequestOptionsBase");var Ci=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Ti=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},O0=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return Lv.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Oi(t){return t.end?`${t.start}-${t.end}`:t.start}o(Oi,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var ri=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,d,l,c,m,u,f,h,b Line truncated
`),n=e.computeHMACSHA256(r);return new ri(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o($L,"generateBlobSASQueryParameters20150405");function GL(t,e){if(t=ds(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ps(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(GL,"generateBlobSASQueryParameters20181109");function XL(t,e){if(t=ds(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ps(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(XL,"generateBlobSASQueryParameters20201206");function WL(t,e){if(t=ds(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ps(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(WL,"generateBlobSASQueryParametersUDK20181109");function KL(t,e){if(t=ds(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ps(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(KL,"generateBlobSASQueryParametersUDK20200210");function YL(t,e){if(t=ds(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ps(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(YL,"generateBlobSASQueryParametersUDK20201206");function ps(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(ps,"getCanonicalName");function ds(t){let e=t.version?t.version:h2;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(ds,"SASSignatureValuesSanityCheckAndAutofill");var Xo=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new $o(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Fr(i)):(this._isContainer=!1,this._containerOrBlobOperation=new ko(i)),a||(a=z.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=j("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ii||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ii||!((p=a.conditions)===null||p===void 0)&&p.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:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions}),proposedLeaseId:this._leaseId},W(c)))}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async changeLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=j("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ii||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ii||!((p=a.conditions)===null||p===void 0)&&p.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{let m=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions})},W(c)));return this._leaseId=e,m}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:d,updatedOptions:l}=j("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==ii||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ii||!((s=e.conditions)===null||s===void 0)&&s.tagCon Line truncated
`}),i}getCanonicalizedResourceString(e){let a=y2(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=RL(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let d=p.toLowerCase();n[d]=r[p],s.push(d)}s.sort();for(let p of s)i+=`
${p}:${decodeURIComponent(n[p])}`}return i}},Ye=class extends Ho{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new pc(e,a,this)}computeHMACSHA256(e){return Lv.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},$L="azure-storage-blob",GL="12.15.0",$o=class extends F.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=F.getDefaultUserAgentValue();a.userAgent=`${$L}/${GL} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},Go=class{static{o(this,"StorageClient")}constructor(e,a){this.url=SL(e),this.accountName=oN(e),this.pipeline=a,this.storageClientContext=new $o(this.url,a.toServiceClientOptions()),this.isHttps=sN(OL(this.url)||"","https"),this.credential=new Pe;for(let r of this.pipeline.factories)z.isNode&&r instanceof Ye||r instanceof Pe?this.credential=r:z.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},k=L.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function W(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(W,"convertTracingToRequestOptionsBase");var Ci=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Ti=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},O0=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return Lv.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Oi(t){return t.end?`${t.start}-${t.end}`:t.start}o(Oi,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var ri=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,d,l,c,m,u,f,h,b Line truncated
`),n=e.computeHMACSHA256(r);return new ri(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(XL,"generateBlobSASQueryParameters20150405");function WL(t,e){if(t=ls(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ds(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(WL,"generateBlobSASQueryParameters20181109");function KL(t,e){if(t=ls(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ds(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(KL,"generateBlobSASQueryParameters20201206");function YL(t,e){if(t=ls(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ds(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(YL,"generateBlobSASQueryParametersUDK20181109");function QL(t,e){if(t=ls(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ds(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(QL,"generateBlobSASQueryParametersUDK20200210");function JL(t,e){if(t=ls(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=Ci.parse(t.permissions.toString()).toString():r=Ti.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",ds(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new ri(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(JL,"generateBlobSASQueryParametersUDK20201206");function ds(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(ds,"getCanonicalName");function ls(t){let e=t.version?t.version:h2;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(ls,"SASSignatureValuesSanityCheckAndAutofill");var Xo=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new $o(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new Fr(i)):(this._isContainer=!1,this._containerOrBlobOperation=new jo(i)),a||(a=z.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=k("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ii||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ii||!((p=a.conditions)===null||p===void 0)&&p.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:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions}),proposedLeaseId:this._leaseId},W(c)))}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async changeLease(e,a={}){var i,r,n,s,p,d;let{span:l,updatedOptions:c}=k("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ii||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ii||!((p=a.conditions)===null||p===void 0)&&p.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{let m=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(d=a.conditions)===null||d===void 0?void 0:d.tagConditions})},W(c)));return this._leaseId=e,m}catch(m){throw l.setStatus({code:L.SpanStatusCode.ERROR,message:m.message}),m}finally{l.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:d,updatedOptions:l}=k("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==ii||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ii||!((s=e.conditions)===null||s===void 0)&&s.tagCon Line truncated
`):s=[e.accountName,i,r,n,t.startsOn?Se(t.startsOn,!1):"",Se(t.expiresOn,!1),t.ipRange?Oi(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
`);let p=e.computeHMACSHA256(s);return new ri(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(dN,"generateAccountSASQueryParameters");var Q0=class t extends Go{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;cr(a)?r=a:z.isNode&&a instanceof Ye||a instanceof Pe||z.isTokenCredential(a)?r=Ie(a,i):r=Ie(new Pe,i),super(e,r),this.serviceContext=new tc(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=os(e);if(i.kind==="AccountConnString")if(z.isNode){let r=new Ye(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=z.getDefaultProxySettings(i.proxyUri));let n=Ie(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Ie(new Pe,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new lc(Ue(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=j("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),d=await new Fr(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:d}}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=j("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),l=await new Fr(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:l}}catch(p){throw n.setStatus({code:L.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=j("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},W(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(d=>{var l;let c="";return((l=d.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(c=d.tags.blobTagSet[0].value),Object.assign(Object.assign({},d),{tags:zo(d.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return U.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield U.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield U.__await(n);wh Line truncated
`);let p=e.computeHMACSHA256(s);return new ri(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(dN,"generateAccountSASQueryParameters");var Q0=class t extends Go{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;cr(a)?r=a:z.isNode&&a instanceof Ye||a instanceof Pe||z.isTokenCredential(a)?r=Ie(a,i):r=Ie(new Pe,i),super(e,r),this.serviceContext=new tc(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=ps(e);if(i.kind==="AccountConnString")if(z.isNode){let r=new Ye(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=z.getDefaultProxySettings(i.proxyUri));let n=Ie(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Ie(new Pe,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new lc(Ue(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),d=await new Fr(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:d}}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=k("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),l=await new Fr(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:l}}catch(p){throw n.setStatus({code:L.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},W(i)))}catch(r){throw a.setStatus({code:L.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),W(r)))}catch(n){throw i.setStatus({code:L.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},W(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(d=>{var l;let c="";return((l=d.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(c=d.tags.blobTagSet[0].value),Object.assign(Object.assign({},d),{tags:zo(d.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:L.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return U.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield U.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield U.__await(n);wh Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(a),this.code=e,this.name="NetworkError"}};Zt.NetworkError=bc;bc.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var xc=class extends Error{static{o(this,"UsageError")}constructor(){let e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};Zt.UsageError=xc;xc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var lN=S(ea=>{"use strict";var dj=ea&&ea.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),lj=ea&&ea.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cj=ea&&ea.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&dj(e,t,a);return lj(e,t),e},mj=ea&&ea.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(ea,"__esModule",{value:!0});ea.uploadCacheArchiveSDK=ea.UploadProgress=void 0;var T2=cj(Ht()),uj=w2(),fj=C2(),wc=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);T2.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};ea.UploadProgress=wc;function hj(t,e,a){var i;return mj(this,void 0,void 0,function*(){let r=new uj.BlobClient(t),n=r.getBlockBlobClient(),s=new wc((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),T2.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let d=yield n.uploadFile(e,p);if(d._response.status>=400)throw new fj.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${d._response.status}`);return d}catch(d){throw T2.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${d.message}`),d}finally{s.stopDisplayTimer()}})}o(hj,"uploadCacheArchiveSDK");ea.uploadCacheArchiveSDK=hj});var P2=S(Qe=>{"use strict";var gj=Qe&&Qe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),yj=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vj=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&gj(e,t,a);return yj(e,t),e},_c=Qe&&Qe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.retryHttpClientResponse=Qe.retryTypedResponse=Qe.retry=Qe.isRetryableStatusCode=Qe.isServerErrorStatusCode=Qe.isSuccessStatusCode=void 0;var cN=vj(Ht()),Nc=sn(),ls=fn();function bj(t){return t?t>=200&&t<300:!1}o(bj,"isSuccessStatusCode");Qe.isSuccessStatusCode=bj;function mN(t){return t?t>=500:!0}o(mN,"isServerErrorStatusCode");Qe.isServerErrorStatusCode=mN;function uN(t){return t?[Nc.HttpCodes.BadGateway,Nc.HttpCodes.ServiceUnavailable,Nc.HttpCodes.GatewayTimeout].includes(t):!1}o(uN,"isRetryableStatusCode");Qe.isRetryableStatusCode=uN;function xj(t){return _c(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(xj,"sleep");function O2(t,e,a,i=ls.DefaultRetryAttempts,r=ls.DefaultRetryDelay,n= Line truncated
Other caches with similar key:`);for(let p of n?.artifactCaches||[])la.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(ak,"printCachesListForDiagnostics");function ik(t,e,a){return ta(this,void 0,void 0,function*(){let i=new Kj.URL(t),r=(0,A2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Cc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Cc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Cc.downloadCacheHttpClient)(t,e):yield(0,Cc.downloadCacheHttpClient)(t,e)})}o(ik,"downloadCache");Ct.downloadCache=ik;function rk(t,e,a){return ta(this,void 0,void 0,function*(){let i=q2(),r=ms.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,ur.retryTypedResponse)("reserveCache",()=>ta(this,void 0,void 0,function*(){return i.postJson(sp("caches"),n)}))})}o(rk,"reserveCache");Ct.reserveCache=rk;function _N(t,e){return`bytes ${t}-${e}/*`}o(_N,"getContentRange");function nk(t,e,a,i,r){return ta(this,void 0,void 0,function*(){la.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${_N(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":_N(i,r)},s=yield(0,ur.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>ta(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,ur.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(nk,"uploadChunk");function sk(t,e,a,i){return ta(this,void 0,void 0,function*(){let r=ms.getArchiveFileSizeInBytes(a),n=sp(`caches/${e.toString()}`),s=D2.openSync(a,"r"),p=(0,A2.getUploadOptions)(i),d=ms.assertDefined("uploadConcurrency",p.uploadConcurrency),l=ms.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(d).keys()];la.debug("Awaiting all uploads");let m=0;try{yield Promise.all(c.map(()=>ta(this,void 0,void 0,function*(){for(;m<r;){let u=Math.min(r-m,l),f=m,h=m+u-1;m+=l,yield nk(t,n,()=>D2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{D2.closeSync(s)}})}o(sk,"uploadFile");function ok(t,e,a){return ta(this,void 0,void 0,function*(){let i={size:a};return yield(0,ur.retryTypedResponse)("commitCache",()=>ta(this,void 0,void 0,function*(){return t.postJson(sp(`caches/${e.toString()}`),i)}))})}o(ok,"commitCache");function pk(t,e,a,i){return ta(this,void 0,void 0,function*(){if((0,A2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Yj.uploadCacheArchiveSDK)(a,e,i)}else{let n=q2();la.debug("Upload cache"),yield sk(n,t,e,i),la.debug("Commiting cache");let s=ms.getArchiveFileSizeInBytes(e);la.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield ok(n,t,s);if(!(0,ur.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);la.info("Cache saved successfully")}})}o(pk,"saveCache");Ct.saveCache=pk});var Tc=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.isJsonObject=us.typeofJsonValue=void 0;function dk(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(dk,"typeofJsonValue");us.typeofJsonValue=dk;function lk(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(lk,"isJsonObject");us.isJsonObject=lk});var Pc=S(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.base64encode=fs.base64decode=void 0;var Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Oc=[];for(let t=0;t<Di.length;t++)Oc[Di[t].charCodeAt(0)]=t;Oc["-".charCodeAt(0)]=Di.indexOf("+");Oc["_".charCodeAt(0)]=Di.indexOf("/");function ck(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=Oc[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(ck,"base64decode");fs.base64decode=ck;function mk(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Di[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Di[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Di[r|i>>6],e+=Di[i&63],a=0;break}return a&&(e+=Di[r],e+="=",a==1&&(e+="=")),e}o(mk,"base64encode");fs.base64encode=mk});var EN=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.utf8read=void 0;var M2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function uk(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(M2(i)),r=0);return a.length?(r&&a.push(M2(i.slice(0,r))),a.join("")):M2(i.slice(0,r))}o(uk,"utf8read");Rc.utf8read=uk});var op=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.WireType=si.mergeBinaryOptions=si.UnknownFieldHandler=void 0;var fk;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(fk=si.UnknownFieldHandler||(si.UnknownFieldHandler={}));function hk(t,e){return Object.assign(Object.assign({},t),e)}o(hk,"mergeBinaryOptions");si.mergeBinaryOptions=hk;var gk;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(gk=si.WireType||(si.WireType={}))});var Dc=S(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.varint32read=aa.varint32write=aa.int64toString=aa.int64fromString=aa.varint64write=aa.varint64read=void 0;function yk(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(yk,"varint64read");aa.varint64read=yk;function vk(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),d=(p?s|128:s)&255;if(a.push(d),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),d=(p?s|128:s)&255;if(a.push(d),!p)return}a.push(e>>>31&1)}}o(vk,"varint64write");aa.varint64write=vk;var Ic=65536*65536;function bk(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let d=Number(t.slice(s,p));r*=a,i=i*a+d,i>=Ic&&(r=r+(i/Ic|0),i=i%Ic)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(bk,"int64fromString");aa.int64fromString=bk;function xk(t,e){if(e>>>0<=2097151)return""+(Ic*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,d=1e7;n>=d&&(s+=Math.floor(n/d),n%=d),s>=d&&(p+=Math.floor(s/d),s%=d);function l(c,m){let u=c?String(c):"";return m?"0000000".slice(u.length)+u:u}return o(l,"decimalFrom1e7"),l(p,0)+l(s,p)+l(n,1)}o(xk,"int64toString");aa.int64toString=xk;function wk(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(wk,"varint32write");aa.varint32write=wk;function Nk(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(Nk,"varint32read");aa.varint32read=Nk});var hr=S(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.PbLong=fr.PbULong=fr.detectBi=void 0;var pp=Dc(),De;function CN(){let t=new DataView(new ArrayBuffer(8));De=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C: Line truncated
`)}};nm.RpcError=dh});var ch=S(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.mergeRpcOptions=void 0;var i_=st();function VU(t,e){if(!e)return t;let a={};sm(t,a),sm(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=i_.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=i_.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},sm(t.meta,a.meta),sm(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(VU,"mergeRpcOptions");om.mergeRpcOptions=VU;function sm(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(sm,"copy")});var uh=S(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Deferred=Qr.DeferredState=void 0;var di;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(di=Qr.DeferredState||(Qr.DeferredState={}));var mh=class{static{o(this,"Deferred")}constructor(e=!0){this._state=di.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==di.PENDING)throw new Error(`cannot resolve ${di[this.state].toLowerCase()}`);this._resolve(e),this._state=di.RESOLVED}reject(e){if(this.state!==di.PENDING)throw new Error(`cannot reject ${di[this.state].toLowerCase()}`);this._reject(e),this._state=di.REJECTED}resolvePending(e){this._state===di.PENDING&&this.resolve(e)}rejectPending(e){this._state===di.PENDING&&this.reject(e)}};Qr.Deferred=mh});var hh=S(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.RpcOutputStreamController=void 0;var r_=uh(),Jr=st(),fh=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){Jr.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){Jr.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){Jr.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){Jr.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Jr.assert(e,"bad state"),Jr.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new r_.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;Jr.assert(i.state==r_.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};pm.RpcOutputStreamController=fh});var yh=S(ws=>{"use strict";var $U=ws&&ws.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(ws,"__esModule",{value:!0});ws.UnaryCall=void 0;var gh=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return $U(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};ws.UnaryCall=gh});var bh=S(Ns=>{"use strict";var GU=Ns&&Ns.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function Line truncated
`));let i=yield Uh(a,"create");yield Fh(i,t)})}o(kF,"createTar");zt.createTar=kF});var C_=S(ot=>{"use strict";var UF=ot&&ot.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),FF=ot&&ot.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Np=ot&&ot.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&UF(e,t,a);return FF(e,t),e},zs=ot&&ot.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(ot,"__esModule",{value:!0});ot.saveCache=ot.restoreCache=ot.isFeatureAvailable=ot.ReserveCacheError=ot.ValidationError=void 0;var re=Np(Ht()),gm=Np(require("path")),je=Np(gn()),Ms=Np(SN()),S_=Np(x_()),ym=Sc(),vr=__(),HF=fn(),Pa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};ot.ValidationError=Pa;var Zr=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};ot.ReserveCacheError=Zr;function E_(t){if(!t||t.length===0)throw new Pa("Path Validation Error: At least one directory or file path is required")}o(E_,"checkPaths");function Hh(t){if(t.length>512)throw new Pa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Pa(`Key Validation Error: ${t} cannot contain commas.`)}o(Hh,"checkKey");function VF(){return!!process.env.ACTIONS_CACHE_URL}o(VF,"isFeatureAvailable");ot.isFeatureAvailable=VF;function $F(t,e,a,i,r=!1){return zs(this,void 0,void 0,function*(){let n=(0,ym.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),E_(t),n){case"v2":return yield XF(t,e,a,i,r);case"v1":default:return yield GF(t,e,a,i,r)}})}o($F,"restoreCache");ot.restoreCache=$F;function GF(t,e,a,i,r=!1){return zs(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Pa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of n)Hh(d);let s=yield je.getCompressionMethod(),p="";try{let d=yield Ms.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!d?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),d.cacheKey;p=gm.join(yield je.createTempDirectory(),je.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield Ms.downloadCache(d.archiveLocation,p,i),re.isDebug()&&(yield(0,vr.listTar)(p,s));let l=je.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,vr.extractTar)(p,s),re.info("Cache restored successfully"),d.cacheKey}catch(d){if(d.name===Pa.name)throw d;re.warning(`Failed to restore: ${d.message}`)}finally{try{yield je.unlinkFile(p)}catch(d){re.debug(`Failed to delete archive: ${d}`)}}})}o(GF,"restoreCacheV1");function XF(t,e,a,i,r=!1){return zs(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Pa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Hh(p);let s="";try{let p=S_.internalCacheTwirpClient(),d=yield je.getCompressionMethod(),l={key:e,restoreKeys:a,version:je.getCacheVersion(t,d,r)},c=yield p.GetCacheEntryDownloadURL(l);if(!c.ok){re.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${l.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=gm.join(yield je.createTempDirectory(),je.getCacheFileName(d)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield Ms.downloadCache(c.signedDownloadUrl,s,i);let m=je.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),re.isDebug()&&(yield(0,vr.listTar)(s,d)),yield(0,vr.extractTar)(s,d),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Pa.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield je.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(XF,"restoreCacheV2");function WF(t,e,a,i=!1){return zs(this,void 0,void 0,function*(){let r=(0,ym.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};Zt.UsageError=xc;xc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var lN=S(ea=>{"use strict";var ck=ea&&ea.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),mk=ea&&ea.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uk=ea&&ea.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&ck(e,t,a);return mk(e,t),e},fk=ea&&ea.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(ea,"__esModule",{value:!0});ea.uploadCacheArchiveSDK=ea.UploadProgress=void 0;var T2=uk(kt()),hk=w2(),gk=C2(),wc=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);T2.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};ea.UploadProgress=wc;function yk(t,e,a){var i;return fk(this,void 0,void 0,function*(){let r=new hk.BlobClient(t),n=r.getBlockBlobClient(),s=new wc((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),T2.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let d=yield n.uploadFile(e,p);if(d._response.status>=400)throw new gk.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${d._response.status}`);return d}catch(d){throw T2.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${d.message}`),d}finally{s.stopDisplayTimer()}})}o(yk,"uploadCacheArchiveSDK");ea.uploadCacheArchiveSDK=yk});var P2=S(Qe=>{"use strict";var vk=Qe&&Qe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),bk=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),xk=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&vk(e,t,a);return bk(e,t),e},_c=Qe&&Qe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.retryHttpClientResponse=Qe.retryTypedResponse=Qe.retry=Qe.isRetryableStatusCode=Qe.isServerErrorStatusCode=Qe.isSuccessStatusCode=void 0;var cN=xk(kt()),Nc=on(),cs=hn();function wk(t){return t?t>=200&&t<300:!1}o(wk,"isSuccessStatusCode");Qe.isSuccessStatusCode=wk;function mN(t){return t?t>=500:!0}o(mN,"isServerErrorStatusCode");Qe.isServerErrorStatusCode=mN;function uN(t){return t?[Nc.HttpCodes.BadGateway,Nc.HttpCodes.ServiceUnavailable,Nc.HttpCodes.GatewayTimeout].includes(t):!1}o(uN,"isRetryableStatusCode");Qe.isRetryableStatusCode=uN;function Nk(t){return _c(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Nk,"sleep");function O2(t,e,a,i=cs.DefaultRetryAttempts,r=cs.DefaultRetryDelay,n= Line truncated
Other caches with similar key:`);for(let p of n?.artifactCaches||[])la.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(rj,"printCachesListForDiagnostics");function nj(t,e,a){return ta(this,void 0,void 0,function*(){let i=new Qk.URL(t),r=(0,A2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Cc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Cc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Cc.downloadCacheHttpClient)(t,e):yield(0,Cc.downloadCacheHttpClient)(t,e)})}o(nj,"downloadCache");Ct.downloadCache=nj;function sj(t,e,a){return ta(this,void 0,void 0,function*(){let i=q2(),r=us.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,ur.retryTypedResponse)("reserveCache",()=>ta(this,void 0,void 0,function*(){return i.postJson(sp("caches"),n)}))})}o(sj,"reserveCache");Ct.reserveCache=sj;function _N(t,e){return`bytes ${t}-${e}/*`}o(_N,"getContentRange");function oj(t,e,a,i,r){return ta(this,void 0,void 0,function*(){la.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${_N(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":_N(i,r)},s=yield(0,ur.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>ta(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,ur.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(oj,"uploadChunk");function pj(t,e,a,i){return ta(this,void 0,void 0,function*(){let r=us.getArchiveFileSizeInBytes(a),n=sp(`caches/${e.toString()}`),s=D2.openSync(a,"r"),p=(0,A2.getUploadOptions)(i),d=us.assertDefined("uploadConcurrency",p.uploadConcurrency),l=us.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(d).keys()];la.debug("Awaiting all uploads");let m=0;try{yield Promise.all(c.map(()=>ta(this,void 0,void 0,function*(){for(;m<r;){let u=Math.min(r-m,l),f=m,h=m+u-1;m+=l,yield oj(t,n,()=>D2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{D2.closeSync(s)}})}o(pj,"uploadFile");function dj(t,e,a){return ta(this,void 0,void 0,function*(){let i={size:a};return yield(0,ur.retryTypedResponse)("commitCache",()=>ta(this,void 0,void 0,function*(){return t.postJson(sp(`caches/${e.toString()}`),i)}))})}o(dj,"commitCache");function lj(t,e,a,i){return ta(this,void 0,void 0,function*(){if((0,A2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Jk.uploadCacheArchiveSDK)(a,e,i)}else{let n=q2();la.debug("Upload cache"),yield pj(n,t,e,i),la.debug("Commiting cache");let s=us.getArchiveFileSizeInBytes(e);la.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield dj(n,t,s);if(!(0,ur.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);la.info("Cache saved successfully")}})}o(lj,"saveCache");Ct.saveCache=lj});var Tc=S(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.isJsonObject=fs.typeofJsonValue=void 0;function cj(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(cj,"typeofJsonValue");fs.typeofJsonValue=cj;function mj(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(mj,"isJsonObject");fs.isJsonObject=mj});var Pc=S(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.base64encode=hs.base64decode=void 0;var Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Oc=[];for(let t=0;t<Di.length;t++)Oc[Di[t].charCodeAt(0)]=t;Oc["-".charCodeAt(0)]=Di.indexOf("+");Oc["_".charCodeAt(0)]=Di.indexOf("/");function uj(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=Oc[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(uj,"base64decode");hs.base64decode=uj;function fj(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Di[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Di[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Di[r|i>>6],e+=Di[i&63],a=0;break}return a&&(e+=Di[r],e+="=",a==1&&(e+="=")),e}o(fj,"base64encode");hs.base64encode=fj});var EN=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.utf8read=void 0;var M2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function hj(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(M2(i)),r=0);return a.length?(r&&a.push(M2(i.slice(0,r))),a.join("")):M2(i.slice(0,r))}o(hj,"utf8read");Rc.utf8read=hj});var op=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.WireType=si.mergeBinaryOptions=si.UnknownFieldHandler=void 0;var gj;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(gj=si.UnknownFieldHandler||(si.UnknownFieldHandler={}));function yj(t,e){return Object.assign(Object.assign({},t),e)}o(yj,"mergeBinaryOptions");si.mergeBinaryOptions=yj;var vj;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(vj=si.WireType||(si.WireType={}))});var Dc=S(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.varint32read=aa.varint32write=aa.int64toString=aa.int64fromString=aa.varint64write=aa.varint64read=void 0;function bj(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(bj,"varint64read");aa.varint64read=bj;function xj(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),d=(p?s|128:s)&255;if(a.push(d),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),d=(p?s|128:s)&255;if(a.push(d),!p)return}a.push(e>>>31&1)}}o(xj,"varint64write");aa.varint64write=xj;var Ic=65536*65536;function wj(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let d=Number(t.slice(s,p));r*=a,i=i*a+d,i>=Ic&&(r=r+(i/Ic|0),i=i%Ic)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(wj,"int64fromString");aa.int64fromString=wj;function Nj(t,e){if(e>>>0<=2097151)return""+(Ic*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,d=1e7;n>=d&&(s+=Math.floor(n/d),n%=d),s>=d&&(p+=Math.floor(s/d),s%=d);function l(c,m){let u=c?String(c):"";return m?"0000000".slice(u.length)+u:u}return o(l,"decimalFrom1e7"),l(p,0)+l(s,p)+l(n,1)}o(Nj,"int64toString");aa.int64toString=Nj;function _j(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(_j,"varint32write");aa.varint32write=_j;function Sj(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(Sj,"varint32read");aa.varint32read=Sj});var hr=S(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.PbLong=fr.PbULong=fr.detectBi=void 0;var pp=Dc(),De;function CN(){let t=new DataView(new ArrayBuffer(8));De=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C: Line truncated
`)}};nm.RpcError=dh});var ch=S(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.mergeRpcOptions=void 0;var i_=st();function GU(t,e){if(!e)return t;let a={};sm(t,a),sm(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=i_.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=i_.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},sm(t.meta,a.meta),sm(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(GU,"mergeRpcOptions");om.mergeRpcOptions=GU;function sm(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(sm,"copy")});var uh=S(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Deferred=Qr.DeferredState=void 0;var di;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(di=Qr.DeferredState||(Qr.DeferredState={}));var mh=class{static{o(this,"Deferred")}constructor(e=!0){this._state=di.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==di.PENDING)throw new Error(`cannot resolve ${di[this.state].toLowerCase()}`);this._resolve(e),this._state=di.RESOLVED}reject(e){if(this.state!==di.PENDING)throw new Error(`cannot reject ${di[this.state].toLowerCase()}`);this._reject(e),this._state=di.REJECTED}resolvePending(e){this._state===di.PENDING&&this.resolve(e)}rejectPending(e){this._state===di.PENDING&&this.reject(e)}};Qr.Deferred=mh});var hh=S(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.RpcOutputStreamController=void 0;var r_=uh(),Jr=st(),fh=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){Jr.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){Jr.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){Jr.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){Jr.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Jr.assert(e,"bad state"),Jr.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new r_.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;Jr.assert(i.state==r_.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};pm.RpcOutputStreamController=fh});var yh=S(Ns=>{"use strict";var XU=Ns&&Ns.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.UnaryCall=void 0;var gh=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return XU(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};Ns.UnaryCall=gh});var bh=S(_s=>{"use strict";var WU=_s&&_s.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function Line truncated
`));let i=yield Uh(a,"create");yield Fh(i,t)})}o(FF,"createTar");zt.createTar=FF});var C_=S(ot=>{"use strict";var HF=ot&&ot.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),VF=ot&&ot.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Np=ot&&ot.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&HF(e,t,a);return VF(e,t),e},Ls=ot&&ot.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{l(i.next(c))}catch(m){s(m)}}o(p,"fulfilled");function d(c){try{l(i.throw(c))}catch(m){s(m)}}o(d,"rejected");function l(c){c.done?n(c.value):r(c.value).then(p,d)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(ot,"__esModule",{value:!0});ot.saveCache=ot.restoreCache=ot.isFeatureAvailable=ot.ReserveCacheError=ot.ValidationError=void 0;var re=Np(kt()),gm=Np(require("path")),ke=Np(yn()),zs=Np(SN()),S_=Np(x_()),ym=Sc(),vr=__(),$F=hn(),Pa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};ot.ValidationError=Pa;var Zr=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};ot.ReserveCacheError=Zr;function E_(t){if(!t||t.length===0)throw new Pa("Path Validation Error: At least one directory or file path is required")}o(E_,"checkPaths");function Hh(t){if(t.length>512)throw new Pa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Pa(`Key Validation Error: ${t} cannot contain commas.`)}o(Hh,"checkKey");function GF(){return!!process.env.ACTIONS_CACHE_URL}o(GF,"isFeatureAvailable");ot.isFeatureAvailable=GF;function XF(t,e,a,i,r=!1){return Ls(this,void 0,void 0,function*(){let n=(0,ym.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),E_(t),n){case"v2":return yield KF(t,e,a,i,r);case"v1":default:return yield WF(t,e,a,i,r)}})}o(XF,"restoreCache");ot.restoreCache=XF;function WF(t,e,a,i,r=!1){return Ls(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Pa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of n)Hh(d);let s=yield ke.getCompressionMethod(),p="";try{let d=yield zs.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!d?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),d.cacheKey;p=gm.join(yield ke.createTempDirectory(),ke.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield zs.downloadCache(d.archiveLocation,p,i),re.isDebug()&&(yield(0,vr.listTar)(p,s));let l=ke.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,vr.extractTar)(p,s),re.info("Cache restored successfully"),d.cacheKey}catch(d){if(d.name===Pa.name)throw d;re.warning(`Failed to restore: ${d.message}`)}finally{try{yield ke.unlinkFile(p)}catch(d){re.debug(`Failed to delete archive: ${d}`)}}})}o(WF,"restoreCacheV1");function KF(t,e,a,i,r=!1){return Ls(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Pa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Hh(p);let s="";try{let p=S_.internalCacheTwirpClient(),d=yield ke.getCompressionMethod(),l={key:e,restoreKeys:a,version:ke.getCacheVersion(t,d,r)},c=yield p.GetCacheEntryDownloadURL(l);if(!c.ok){re.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${l.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=gm.join(yield ke.createTempDirectory(),ke.getCacheFileName(d)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield zs.downloadCache(c.signedDownloadUrl,s,i);let m=ke.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),re.isDebug()&&(yield(0,vr.listTar)(s,d)),yield(0,vr.extractTar)(s,d),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Pa.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield ke.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(KF,"restoreCacheV2");function YF(t,e,a,i=!1){return Ls(this,void 0,void 0,function*(){let r=(0,ym.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
/*! Bundled license information:
sax/lib/sax.js:
Generated Vendored
+43 -43
View File
@@ -1,75 +1,75 @@
var oC=Object.create;var fo=Object.defineProperty;var pC=Object.getOwnPropertyDescriptor;var lC=Object.getOwnPropertyNames;var dC=Object.getPrototypeOf,cC=Object.prototype.hasOwnProperty;var o=(t,e)=>fo(t,"name",{value:e,configurable:!0});var jt=(t,e)=>()=>(t&&(e=t(t=0)),e);var N=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),p4=(t,e)=>{for(var a in e)fo(t,a,{get:e[a],enumerable:!0})},l4=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of lC(e))!cC.call(t,r)&&r!==a&&fo(t,r,{get:()=>e[r],enumerable:!(i=pC(e,r))||i.enumerable});return t};var ba=(t,e,a)=>(a=t!=null?oC(dC(t)):{},l4(e||!t||!t.__esModule?fo(a,"default",{value:t,enumerable:!0}):a,t)),rl=t=>l4(fo({},"__esModule",{value:!0}),t);var nl=N(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.toCommandProperties=Sn.toCommandValue=void 0;function uC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(uC,"toCommandValue");Sn.toCommandValue=uC;function mC(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(mC,"toCommandProperties");Sn.toCommandProperties=mC});var m4=N(xa=>{"use strict";var fC=xa&&xa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),hC=xa&&xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gC=xa&&xa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&fC(e,t,a);return hC(e,t),e};Object.defineProperty(xa,"__esModule",{value:!0});xa.issue=xa.issueCommand=void 0;var yC=gC(require("os")),c4=nl();function u4(t,e,a){let i=new fm(t,e,a);process.stdout.write(i.toString()+yC.EOL)}o(u4,"issueCommand");xa.issueCommand=u4;function vC(t,e=""){u4(t,{},e)}o(vC,"issue");xa.issue=vC;var d4="::",fm=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=d4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${xC(r)}`)}}return e+=`${d4}${bC(this.message)}`,e}};function bC(t){return(0,c4.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(bC,"escapeData");function xC(t){return(0,c4.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(xC,"escapeProperty")});var g4=N(wa=>{"use strict";var wC=wa&&wa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),NC=wa&&wa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gm=wa&&wa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&wC(e,t,a);return NC(e,t),e};Object.defineProperty(wa,"__esModule",{value:!0});wa.prepareKeyValueMessage=wa.issueFileCommand=void 0;var _C=gm(require("crypto")),f4=gm(require("fs")),hm=gm(require("os")),h4=nl();function SC(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!f4.existsSync(a))throw new Error(`Missing file at path: ${a}`);f4.appendFileSync(a,`${(0,h4.toCommandValue)(e)}${hm.EOL}`,{encoding:"utf8"})}o(SC,"issueFileCommand");wa.issueFileCommand=SC;function EC(t,e){let a=`ghadelimiter_${_C.randomUUID()}`,i=(0,h4.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${hm.EOL}${i}${hm.EOL}${a}`}o(EC,"prepareKeyValueMessage");wa.prepareKeyValueMessage=EC});var v4=N(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.checkBypass=En.getProxyUrl=void 0;function CC(t){let e=t.protocol==="https:";if(y4(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(CC,"getProxyUrl");En.getProxyUrl=CC;function y4(t){if(!t.hostname)return!1;let e=t.hostname;if(TC(e))return!0;let a=process.env.no_proxy||proLine truncated
`,u.message,u.stack);var m=new Error("tunneling socket could not be established, cause="+u.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}o(c,"onError")},"createSocket");Si.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function x4(t,e){var a=this;Si.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=vm({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=OC.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(x4,"createSecureSocket");function w4(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(w4,"toOptions");function vm(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(vm,"mergeOptions");var Ki;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ki=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Ki=o(function(){},"debug");Cn.debug=Ki});var bm=N((pW,_4)=>{_4.exports=N4()});var Lr=N(Pe=>{"use strict";var MC=Pe&&Pe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),LC=Pe&&Pe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cl=Pe&&Pe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&MC(e,t,a);return LC(e,t),e},rt=Pe&&Pe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.HttpClient=Pe.isHttps=Pe.HttpClientResponse=Pe.HttpClientError=Pe.getProxyUrl=Pe.MediaTypes=Pe.Headers=Pe.HttpCodes=void 0;var sl=cl(require("http")),xm=cl(require("https")),S4=cl(v4()),ol=cl(bm()),Ha;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ha=Pe.HttpCodes||(Pe.HttpCodes={}));var Ft;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ft=Pe.Headers||(Pe.Headers={}));var Yi;(function(t){t.ApplicationJson="application/json"})(Yi=Pe.MediaTypes||(Pe.MediaTypes={}));function qC(t){let e=S4.getProxyUrl(new URL(t));return e?e.href:""}o(qC,"getProxyUrl");Pe.getProxyUrl=qC;var zC=[Ha.MovedPermanently,Ha.ResourceMoved,Ha.SeeOther,Ha.TemporaryRedirect,Ha.PermanentRedirect],jC=[Ha.BadGateway,Ha.ServiceUnavailable,Ha.GatewayTimeout],kC=["OPTIONS","GET","DELETE","HEAD"],UC=10,HC=5,ll=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Pe.HttpClientError=ll;var dl=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return rt(this,void 0,void 0,function*(){return new Promise(e=>rt(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return rt(this,void 0,void 0,function*(){return new Promise(e=>rt(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Pe.HttpClientResponse=dl;function FC(t){return new URL(t).protocol==="https:"}o(FC,"isHttps");Pe.isHttps=FC;var wm=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1 Line truncated
var pC=Object.create;var fo=Object.defineProperty;var lC=Object.getOwnPropertyDescriptor;var dC=Object.getOwnPropertyNames;var cC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty;var o=(t,e)=>fo(t,"name",{value:e,configurable:!0});var jt=(t,e)=>()=>(t&&(e=t(t=0)),e);var N=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),p4=(t,e)=>{for(var a in e)fo(t,a,{get:e[a],enumerable:!0})},l4=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of dC(e))!uC.call(t,r)&&r!==a&&fo(t,r,{get:()=>e[r],enumerable:!(i=lC(e,r))||i.enumerable});return t};var ba=(t,e,a)=>(a=t!=null?pC(cC(t)):{},l4(e||!t||!t.__esModule?fo(a,"default",{value:t,enumerable:!0}):a,t)),rl=t=>l4(fo({},"__esModule",{value:!0}),t);var nl=N(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.toCommandProperties=Sn.toCommandValue=void 0;function mC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(mC,"toCommandValue");Sn.toCommandValue=mC;function fC(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(fC,"toCommandProperties");Sn.toCommandProperties=fC});var m4=N(xa=>{"use strict";var hC=xa&&xa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),gC=xa&&xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),yC=xa&&xa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&hC(e,t,a);return gC(e,t),e};Object.defineProperty(xa,"__esModule",{value:!0});xa.issue=xa.issueCommand=void 0;var vC=yC(require("os")),c4=nl();function u4(t,e,a){let i=new fm(t,e,a);process.stdout.write(i.toString()+vC.EOL)}o(u4,"issueCommand");xa.issueCommand=u4;function bC(t,e=""){u4(t,{},e)}o(bC,"issue");xa.issue=bC;var d4="::",fm=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=d4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${wC(r)}`)}}return e+=`${d4}${xC(this.message)}`,e}};function xC(t){return(0,c4.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(xC,"escapeData");function wC(t){return(0,c4.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(wC,"escapeProperty")});var g4=N(wa=>{"use strict";var NC=wa&&wa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),_C=wa&&wa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gm=wa&&wa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&NC(e,t,a);return _C(e,t),e};Object.defineProperty(wa,"__esModule",{value:!0});wa.prepareKeyValueMessage=wa.issueFileCommand=void 0;var SC=gm(require("crypto")),f4=gm(require("fs")),hm=gm(require("os")),h4=nl();function EC(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!f4.existsSync(a))throw new Error(`Missing file at path: ${a}`);f4.appendFileSync(a,`${(0,h4.toCommandValue)(e)}${hm.EOL}`,{encoding:"utf8"})}o(EC,"issueFileCommand");wa.issueFileCommand=EC;function CC(t,e){let a=`ghadelimiter_${SC.randomUUID()}`,i=(0,h4.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${hm.EOL}${i}${hm.EOL}${a}`}o(CC,"prepareKeyValueMessage");wa.prepareKeyValueMessage=CC});var v4=N(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.checkBypass=En.getProxyUrl=void 0;function TC(t){let e=t.protocol==="https:";if(y4(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(TC,"getProxyUrl");En.getProxyUrl=TC;function y4(t){if(!t.hostname)return!1;let e=t.hostname;if(OC(e))return!0;let a=process.env.no_proxy||proLine truncated
`,u.message,u.stack);var m=new Error("tunneling socket could not be established, cause="+u.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}o(c,"onError")},"createSocket");Si.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function x4(t,e){var a=this;Si.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=vm({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=RC.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(x4,"createSecureSocket");function w4(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(w4,"toOptions");function vm(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(vm,"mergeOptions");var Ki;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ki=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Ki=o(function(){},"debug");Cn.debug=Ki});var bm=N((lW,_4)=>{_4.exports=N4()});var Lr=N(Pe=>{"use strict";var LC=Pe&&Pe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),qC=Pe&&Pe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cl=Pe&&Pe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&LC(e,t,a);return qC(e,t),e},rt=Pe&&Pe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.HttpClient=Pe.isHttps=Pe.HttpClientResponse=Pe.HttpClientError=Pe.getProxyUrl=Pe.MediaTypes=Pe.Headers=Pe.HttpCodes=void 0;var sl=cl(require("http")),xm=cl(require("https")),S4=cl(v4()),ol=cl(bm()),Ha;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ha=Pe.HttpCodes||(Pe.HttpCodes={}));var Ft;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ft=Pe.Headers||(Pe.Headers={}));var Yi;(function(t){t.ApplicationJson="application/json"})(Yi=Pe.MediaTypes||(Pe.MediaTypes={}));function zC(t){let e=S4.getProxyUrl(new URL(t));return e?e.href:""}o(zC,"getProxyUrl");Pe.getProxyUrl=zC;var jC=[Ha.MovedPermanently,Ha.ResourceMoved,Ha.SeeOther,Ha.TemporaryRedirect,Ha.PermanentRedirect],kC=[Ha.BadGateway,Ha.ServiceUnavailable,Ha.GatewayTimeout],UC=["OPTIONS","GET","DELETE","HEAD"],HC=10,FC=5,ll=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Pe.HttpClientError=ll;var dl=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return rt(this,void 0,void 0,function*(){return new Promise(e=>rt(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return rt(this,void 0,void 0,function*(){return new Promise(e=>rt(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Pe.HttpClientResponse=dl;function VC(t){return new URL(t).protocol==="https:"}o(VC,"isHttps");Pe.isHttps=VC;var wm=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1 Line truncated
Error Code : ${s.statusCode}
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return E4(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,C4.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,C4.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};Tn.OidcClient=Cm});var Pm=N(Kt=>{"use strict";var Tm=Kt&&Kt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.summary=Kt.markdownSummary=Kt.SUMMARY_DOCS_URL=Kt.SUMMARY_ENV_VAR=void 0;var GC=require("os"),Om=require("fs"),{access:WC,appendFile:XC,writeFile:KC}=Om.promises;Kt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Kt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Rm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Tm(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Kt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Kt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield WC(e,Om.constants.R_OK|Om.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return Tm(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?KC:XC)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Tm(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(GC.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:l,colspan:d,rowspan:c}=s,u=p?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),c&&{rowspan:c});return this.wrap(u,l,m)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},O4=new Rm;Kt.markdownSummary=O4;Kt.summary=O4});var R4=N(Yt=>{"use strict";var YC=Yt&&Yt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),QC=Yt&&Yt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),JC=Yt&&Yt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&YC(e,t,a);return QC(e,t),e};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.toPlatformPath=Yt.toWin32Path=Yt.toPosixPath=void 0;var ZC=JC(require("path"));function eT(t){return t.replace(/[\\]/g,"/")}o(eT,"toPosixPath");Yt.toPosixPath=eT;function tT(t){return t.replace(/[/]/g,"\\")}o(tT,"toWin32Path");Yt.toWin32Path=tT;function aT(t){return t.replace(/[/\\]/g,ZC.sep)}o(aT,"toPlatformPath");Yt.toPlatformPath=aT});var Dm=N(J=>{"use strict";var iT=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
`);return{name:e,version:a}}),"getLinuxInfo");ge.platform=W4.default.platform();ge.arch=W4.default.arch();ge.isWindows=ge.platform==="win32";ge.isMacOS=ge.platform==="darwin";ge.isLinux=ge.platform==="linux";function MT(){return yl(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield ge.isWindows?DT():ge.isMacOS?AT():BT()),{platform:ge.platform,arch:ge.arch,isWindows:ge.isWindows,isMacOS:ge.isMacOS,isLinux:ge.isLinux})})}o(MT,"getDetails");ge.getDetails=MT});var nt=N(W=>{"use strict";var LT=W&&W.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),qT=W&&W.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),qm=W&&W.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&LT(e,t,a);return qT(e,t),e},K4=W&&W.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(W,"__esModule",{value:!0});W.platform=W.toPlatformPath=W.toWin32Path=W.toPosixPath=W.markdownSummary=W.summary=W.getIDToken=W.getState=W.saveState=W.group=W.endGroup=W.startGroup=W.info=W.notice=W.warning=W.error=W.debug=W.isDebug=W.setFailed=W.setCommandEcho=W.setOutput=W.getBooleanInput=W.getMultilineInput=W.getInput=W.addPath=W.setSecret=W.exportVariable=W.ExitCode=void 0;var Na=m4(),qr=g4(),Pn=nl(),Y4=qm(require("os")),zT=qm(require("path")),jT=T4(),Lm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Lm||(W.ExitCode=Lm={}));function kT(t,e){let a=(0,Pn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,qr.issueFileCommand)("ENV",(0,qr.prepareKeyValueMessage)(t,e));(0,Na.issueCommand)("set-env",{name:t},a)}o(kT,"exportVariable");W.exportVariable=kT;function UT(t){(0,Na.issueCommand)("add-mask",{},t)}o(UT,"setSecret");W.setSecret=UT;function HT(t){process.env.GITHUB_PATH||""?(0,qr.issueFileCommand)("PATH",t):(0,Na.issueCommand)("add-path",{},t),process.env.PATH=`${t}${zT.delimiter}${process.env.PATH}`}o(HT,"addPath");W.addPath=HT;function zm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(zm,"getInput");W.getInput=zm;function FT(t,e){let a=zm(t,e).split(`
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(FT,"getMultilineInput");W.getMultilineInput=FT;function VT(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=zm(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(VT,"getBooleanInput");W.getBooleanInput=VT;function $T(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,qr.issueFileCommand)("OUTPUT",(0,qr.prepareKeyValueMessage)(t,e));process.stdout.write(Y4.EOL),(0,Na.issueCommand)("set-output",{name:t},(0,Pn.toCommandValue)(e))}o($T,"setOutput");W.setOutput=$T;function GT(t){(0,Na.issue)("echo",t?"on":"off")}o(GT,"setCommandEcho");W.setCommandEcho=GT;function WT(t){process.exitCode=Lm.Failure,Q4(t)}o(WT,"setFailed");W.setFailed=WT;function XT(){return process.env.RUNNER_DEBUG==="1"}o(XT,"isDebug");W.isDebug=XT;function KT(t){(0,Na.issueCommand)("debug",{},t)}o(KT,"debug");W.debug=KT;function Q4(t,e={}){(0,Na.issueCommand)("error",(0,Pn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(Q4,"error");W.error=Q4;function YT(t,e={}){(0,Na.issueCommand)("warning",(0,Pn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(YT,"warning");W.warning=YT;function QT(t,e={}){(0,Na.issueCommand)("notice",(0,Pn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(QT,"notice");W.notice=QT;function JT(t){process.stdout.write(t+Y4.EOL)}o(JT,"info");W.info=JT;function J4(t){(0,Na.issue)("group",t)}o(J4,"startGroup");W.startGroup=J4;function Z4(){(0,Na.issue)("endgroup")}o(Z4,"endGroup");W.endGroup=Z4;function ZT(t,e){return K4(this,void 0,void 0,function*(){J4(t);let a;try{a=yield e()}finally{Z4()}return a})}o(ZT,"group");W.group=ZT;function eO(t,e){if(process.env.GITHUB_STATE||"")return(0,qr.issueFileCommand)("STATE",(0,qr.prepareKeyValueMessage)(t,e));(0,Na.issueCommand)("save-state",{name:t},(0,Pn.toCommandValue)(e))}o(eO,"saveState");W.saveState=eO;function tO(t){return process.env[`STATE_${t}`]||""}o(tO,"getState");W.getState=tO;function aO(t){return K4(this,void 0,void 0,function*(){return yield jT.OidcClient.getIDToken(t)})}o(aO,"getIDToken");W.getIDToken=aO;var iO=Pm();Object.defineProperty(W,"summary",{enumerable:!0,get:function(){return iO.summary}});var rO=Pm();Object.defineProperty(W,"markdownSummary",{enumerable:!0,get:function(){return rO.markdownSummary}});var jm=R4();Object.defineProperty(W,"toPosixPath",{enumerable:!0,get:function(){return jm.toPosixPath}});Object.defineProperty(W,"toWin32Path",{enumerable:!0,get:function(){return jm.toWin32Path}});Object.defineProperty(W,"toPlatformPath",{enumerable:!0,get:function(){return jm.toPlatformPath}});W.platform=qm(X4())});var e3=N(ni=>{"use strict";var nO=ni&&ni.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),sO=ni&&ni.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),oO=ni&&ni.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&nO(e,t,a);return sO(e,t),e};Object.defineProperty(ni,"__esModule",{value:!0});ni.getOptions=void 0;var km=oO(nt());function pO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,km.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,km.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,km.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(pO,"getOptions");ni.getOptions=pO});var bl=N($e=>{"use strict";var lO=$e&&$e.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),dO=$e&&$e.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cO=$e&&$e.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&lO(e,t,a);return dO(e,t),e},uO=$e&&$e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($e,"__esModule",{value:!0});$e.safeTrimTrailingSeparator=$e.normalizeSeparators=$e.hasRoot=$e.hasAbsoluteRoot=$e.ensureAbsoluteRoot=$e.dirname=void 0;var vl=cO(require("path")),zr=uO(require("assert")),Ji=process.platform==="win32";function mO(t){if(t=Hm(t),Ji&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=vl.dirname(t);return Ji&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Hm(e)),e}o(mO,"dirname");$e.dirname=mO;function fO(t,e){if(zr.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),zr.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Um(e))return e;if(Ji){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
%s`,g,g,I,i);var S=I.type==="*"?Gm:I.type==="?"?$m:"\\"+I.type;r=!0,i=i.slice(0,I.reStart)+S+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var _=p.length-1;_>-1;_--){var D=p[_],T=i.slice(0,D.reStart),P=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),k=i.slice(D.reEnd);B+=k;var pe=T.split("(").length-1,ve=k;for(b=0;b<pe;b++)ve=ve.replace(/\)[+*?]?/,"");k=ve;var Q="";k===""&&e!==wl&&(Q="$");var it=T+P+k+Q+B;i=it}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=m+i),e===wl)return[i,r];if(!r)return FO(t);var he=a.nocase?"i":"";try{var Ua=new RegExp("^"+i+"$",he)}catch{return new RegExp("$.")}return Ua._glob=t,Ua._src=i,Ua}o(UO,"parse");da.makeRe=function(t,e){return new Bt(t,e||{}).makeRe()};Bt.prototype.makeRe=HO;function HO(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Gm:e.dot?BO:MO,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Wm?a:typeof s=="string"?VO(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(HO,"makeRe");da.match=function(t,e,a){a=a||{};var i=new Bt(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Bt.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;vo.sep!=="/"&&(e=e.split(vo.sep).join("/")),e=e.split(w3),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],l=e;i.matchBase&&p.length===1&&(l=[n]);var d=this.matchOne(l,p,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Bt.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var l=e[n],d=t[r];if(this.debug(e,l,d),l===!1)return!1;if(l===Wm){this.debug("GLOBSTAR",[e,l,d]);var c=r,u=n+1;if(u===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var m=t[c];if(this.debug(`
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return E4(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,C4.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,C4.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};Tn.OidcClient=Cm});var Pm=N(Kt=>{"use strict";var Tm=Kt&&Kt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.summary=Kt.markdownSummary=Kt.SUMMARY_DOCS_URL=Kt.SUMMARY_ENV_VAR=void 0;var WC=require("os"),Om=require("fs"),{access:XC,appendFile:KC,writeFile:YC}=Om.promises;Kt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Kt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Rm=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Tm(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Kt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Kt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield XC(e,Om.constants.R_OK|Om.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return Tm(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?YC:KC)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Tm(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(WC.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:l,colspan:d,rowspan:c}=s,u=p?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),c&&{rowspan:c});return this.wrap(u,l,m)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},O4=new Rm;Kt.markdownSummary=O4;Kt.summary=O4});var R4=N(Yt=>{"use strict";var QC=Yt&&Yt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),JC=Yt&&Yt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ZC=Yt&&Yt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&QC(e,t,a);return JC(e,t),e};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.toPlatformPath=Yt.toWin32Path=Yt.toPosixPath=void 0;var eT=ZC(require("path"));function tT(t){return t.replace(/[\\]/g,"/")}o(tT,"toPosixPath");Yt.toPosixPath=tT;function aT(t){return t.replace(/[/]/g,"\\")}o(aT,"toWin32Path");Yt.toWin32Path=aT;function iT(t){return t.replace(/[/\\]/g,eT.sep)}o(iT,"toPlatformPath");Yt.toPlatformPath=iT});var Dm=N(J=>{"use strict";var rT=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
`);return{name:e,version:a}}),"getLinuxInfo");ge.platform=W4.default.platform();ge.arch=W4.default.arch();ge.isWindows=ge.platform==="win32";ge.isMacOS=ge.platform==="darwin";ge.isLinux=ge.platform==="linux";function LT(){return yl(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield ge.isWindows?AT():ge.isMacOS?BT():MT()),{platform:ge.platform,arch:ge.arch,isWindows:ge.isWindows,isMacOS:ge.isMacOS,isLinux:ge.isLinux})})}o(LT,"getDetails");ge.getDetails=LT});var nt=N(W=>{"use strict";var qT=W&&W.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),zT=W&&W.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),qm=W&&W.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&qT(e,t,a);return zT(e,t),e},K4=W&&W.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(W,"__esModule",{value:!0});W.platform=W.toPlatformPath=W.toWin32Path=W.toPosixPath=W.markdownSummary=W.summary=W.getIDToken=W.getState=W.saveState=W.group=W.endGroup=W.startGroup=W.info=W.notice=W.warning=W.error=W.debug=W.isDebug=W.setFailed=W.setCommandEcho=W.setOutput=W.getBooleanInput=W.getMultilineInput=W.getInput=W.addPath=W.setSecret=W.exportVariable=W.ExitCode=void 0;var Na=m4(),qr=g4(),Pn=nl(),Y4=qm(require("os")),jT=qm(require("path")),kT=T4(),Lm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Lm||(W.ExitCode=Lm={}));function UT(t,e){let a=(0,Pn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,qr.issueFileCommand)("ENV",(0,qr.prepareKeyValueMessage)(t,e));(0,Na.issueCommand)("set-env",{name:t},a)}o(UT,"exportVariable");W.exportVariable=UT;function HT(t){(0,Na.issueCommand)("add-mask",{},t)}o(HT,"setSecret");W.setSecret=HT;function FT(t){process.env.GITHUB_PATH||""?(0,qr.issueFileCommand)("PATH",t):(0,Na.issueCommand)("add-path",{},t),process.env.PATH=`${t}${jT.delimiter}${process.env.PATH}`}o(FT,"addPath");W.addPath=FT;function zm(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(zm,"getInput");W.getInput=zm;function VT(t,e){let a=zm(t,e).split(`
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(VT,"getMultilineInput");W.getMultilineInput=VT;function $T(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=zm(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o($T,"getBooleanInput");W.getBooleanInput=$T;function GT(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,qr.issueFileCommand)("OUTPUT",(0,qr.prepareKeyValueMessage)(t,e));process.stdout.write(Y4.EOL),(0,Na.issueCommand)("set-output",{name:t},(0,Pn.toCommandValue)(e))}o(GT,"setOutput");W.setOutput=GT;function WT(t){(0,Na.issue)("echo",t?"on":"off")}o(WT,"setCommandEcho");W.setCommandEcho=WT;function XT(t){process.exitCode=Lm.Failure,Q4(t)}o(XT,"setFailed");W.setFailed=XT;function KT(){return process.env.RUNNER_DEBUG==="1"}o(KT,"isDebug");W.isDebug=KT;function YT(t){(0,Na.issueCommand)("debug",{},t)}o(YT,"debug");W.debug=YT;function Q4(t,e={}){(0,Na.issueCommand)("error",(0,Pn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(Q4,"error");W.error=Q4;function QT(t,e={}){(0,Na.issueCommand)("warning",(0,Pn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(QT,"warning");W.warning=QT;function JT(t,e={}){(0,Na.issueCommand)("notice",(0,Pn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(JT,"notice");W.notice=JT;function ZT(t){process.stdout.write(t+Y4.EOL)}o(ZT,"info");W.info=ZT;function J4(t){(0,Na.issue)("group",t)}o(J4,"startGroup");W.startGroup=J4;function Z4(){(0,Na.issue)("endgroup")}o(Z4,"endGroup");W.endGroup=Z4;function eO(t,e){return K4(this,void 0,void 0,function*(){J4(t);let a;try{a=yield e()}finally{Z4()}return a})}o(eO,"group");W.group=eO;function tO(t,e){if(process.env.GITHUB_STATE||"")return(0,qr.issueFileCommand)("STATE",(0,qr.prepareKeyValueMessage)(t,e));(0,Na.issueCommand)("save-state",{name:t},(0,Pn.toCommandValue)(e))}o(tO,"saveState");W.saveState=tO;function aO(t){return process.env[`STATE_${t}`]||""}o(aO,"getState");W.getState=aO;function iO(t){return K4(this,void 0,void 0,function*(){return yield kT.OidcClient.getIDToken(t)})}o(iO,"getIDToken");W.getIDToken=iO;var rO=Pm();Object.defineProperty(W,"summary",{enumerable:!0,get:function(){return rO.summary}});var nO=Pm();Object.defineProperty(W,"markdownSummary",{enumerable:!0,get:function(){return nO.markdownSummary}});var jm=R4();Object.defineProperty(W,"toPosixPath",{enumerable:!0,get:function(){return jm.toPosixPath}});Object.defineProperty(W,"toWin32Path",{enumerable:!0,get:function(){return jm.toWin32Path}});Object.defineProperty(W,"toPlatformPath",{enumerable:!0,get:function(){return jm.toPlatformPath}});W.platform=qm(X4())});var e3=N(ni=>{"use strict";var sO=ni&&ni.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),oO=ni&&ni.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),pO=ni&&ni.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&sO(e,t,a);return oO(e,t),e};Object.defineProperty(ni,"__esModule",{value:!0});ni.getOptions=void 0;var km=pO(nt());function lO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,km.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,km.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,km.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(lO,"getOptions");ni.getOptions=lO});var bl=N($e=>{"use strict";var dO=$e&&$e.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),cO=$e&&$e.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uO=$e&&$e.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&dO(e,t,a);return cO(e,t),e},mO=$e&&$e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($e,"__esModule",{value:!0});$e.safeTrimTrailingSeparator=$e.normalizeSeparators=$e.hasRoot=$e.hasAbsoluteRoot=$e.ensureAbsoluteRoot=$e.dirname=void 0;var vl=uO(require("path")),zr=mO(require("assert")),Ji=process.platform==="win32";function fO(t){if(t=Hm(t),Ji&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=vl.dirname(t);return Ji&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Hm(e)),e}o(fO,"dirname");$e.dirname=fO;function hO(t,e){if(zr.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),zr.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Um(e))return e;if(Ji){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
%s`,g,g,I,i);var S=I.type==="*"?Gm:I.type==="?"?$m:"\\"+I.type;r=!0,i=i.slice(0,I.reStart)+S+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var _=p.length-1;_>-1;_--){var D=p[_],T=i.slice(0,D.reStart),P=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),k=i.slice(D.reEnd);B+=k;var pe=T.split("(").length-1,ve=k;for(b=0;b<pe;b++)ve=ve.replace(/\)[+*?]?/,"");k=ve;var Q="";k===""&&e!==wl&&(Q="$");var it=T+P+k+Q+B;i=it}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=m+i),e===wl)return[i,r];if(!r)return VO(t);var he=a.nocase?"i":"";try{var Ua=new RegExp("^"+i+"$",he)}catch{return new RegExp("$.")}return Ua._glob=t,Ua._src=i,Ua}o(HO,"parse");da.makeRe=function(t,e){return new Bt(t,e||{}).makeRe()};Bt.prototype.makeRe=FO;function FO(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,a=e.noglobstar?Gm:e.dot?MO:LO,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===Wm?a:typeof s=="string"?$O(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(FO,"makeRe");da.match=function(t,e,a){a=a||{};var i=new Bt(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};Bt.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;vo.sep!=="/"&&(e=e.split(vo.sep).join("/")),e=e.split(w3),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],l=e;i.matchBase&&p.length===1&&(l=[n]);var d=this.matchOne(l,p,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Bt.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var l=e[n],d=t[r];if(this.debug(e,l,d),l===!1)return!1;if(l===Wm){this.debug("GLOBSTAR",[e,l,d]);var c=r,u=n+1;if(u===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var m=t[c];if(this.debug(`
globstar while`,t,c,e,u,m),this.matchOne(t.slice(c),e.slice(u),a))return this.debug("globstar found match!",c,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,c,e,u);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
>>> no match, partial?`,t,c,e,u),c===s))}var f;if(typeof l=="string"?(f=d===l,this.debug("string match",l,d,f)):(f=d.match(l),this.debug("pattern match",l,d,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function FO(t){return t.replace(/\\(.)/g,"$1")}o(FO,"globUnescape");function VO(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(VO,"regExpEscape")});var C3=N(_a=>{"use strict";var $O=_a&&_a.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),GO=_a&&_a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),E3=_a&&_a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&$O(e,t,a);return GO(e,t),e},WO=_a&&_a.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_a,"__esModule",{value:!0});_a.Path=void 0;var bo=E3(require("path")),er=E3(bl()),xo=WO(require("assert")),XO=process.platform==="win32",Xm=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(xo.default(e,"Parameter 'itemPath' must not be empty"),e=er.safeTrimTrailingSeparator(e),!er.hasRoot(e))this.segments=e.split(bo.sep);else{let a=e,i=er.dirname(a);for(;i!==a;){let r=bo.basename(a);this.segments.unshift(r),a=i,i=er.dirname(a)}this.segments.unshift(a)}else{xo.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];xo.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=er.normalizeSeparators(e[a]),a===0&&er.hasRoot(i)?(i=er.safeTrimTrailingSeparator(i),xo.default(i===er.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(xo.default(!i.includes(bo.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(bo.sep)||XO&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=bo.sep,e+=this.segments[i];return e}};_a.Path=Xm});var T3=N(Sa=>{"use strict";var KO=Sa&&Sa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),YO=Sa&&Sa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qm=Sa&&Sa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&KO(e,t,a);return YO(e,t),e},QO=Sa&&Sa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.Pattern=void 0;var JO=Qm(require("os")),wo=Qm(require("path")),ta=Qm(bl()),jr=QO(require("assert")),ZO=S3(),Km=xl(),_l=C3(),Ei=process.platform==="win32",Ym=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],jr.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);jr.default(d&&ta.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new _l.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new _l.Path(n).segments,this.trailingSeparator=ta.normalizeSeparators(n).endsWith(wo.sep),n=ta.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new _l.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),Ei?"i":""),this.isImplicitPattern=a;let l={dot:!0,nobrace:!0,nocase:Ei,nocomment:!0,noext:!0,nonegate:!0};n=Ei?n.replace(/\\/g,"/"):n,this.minimatch=new ZO.Minimatch(n,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=ta.normalizeSeparators(e),!e.endsWith(wo.sep)&&this.isImplicitPattern===!1&&(e=`${e}${wo.sep}`)):e=ta.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Km.MatchKind.Directory:Km.MatchKind.All:Km.MatchKind.None}partialMatch(e){return e=ta.safeTrimTrailingSeparator(e),ta.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ei?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ei?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){jr.default(e,"pattern cannot be empty");let i=new _l.Path(e).segments.map(r=>t.getLiteral(r));if(jr.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),jr.default(!ta.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=ta.nor Line truncated
>>> no match, partial?`,t,c,e,u),c===s))}var f;if(typeof l=="string"?(f=d===l,this.debug("string match",l,d,f)):(f=d.match(l),this.debug("pattern match",l,d,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function VO(t){return t.replace(/\\(.)/g,"$1")}o(VO,"globUnescape");function $O(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o($O,"regExpEscape")});var C3=N(_a=>{"use strict";var GO=_a&&_a.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),WO=_a&&_a.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),E3=_a&&_a.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&GO(e,t,a);return WO(e,t),e},XO=_a&&_a.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_a,"__esModule",{value:!0});_a.Path=void 0;var bo=E3(require("path")),er=E3(bl()),xo=XO(require("assert")),KO=process.platform==="win32",Xm=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(xo.default(e,"Parameter 'itemPath' must not be empty"),e=er.safeTrimTrailingSeparator(e),!er.hasRoot(e))this.segments=e.split(bo.sep);else{let a=e,i=er.dirname(a);for(;i!==a;){let r=bo.basename(a);this.segments.unshift(r),a=i,i=er.dirname(a)}this.segments.unshift(a)}else{xo.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];xo.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=er.normalizeSeparators(e[a]),a===0&&er.hasRoot(i)?(i=er.safeTrimTrailingSeparator(i),xo.default(i===er.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(xo.default(!i.includes(bo.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(bo.sep)||KO&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=bo.sep,e+=this.segments[i];return e}};_a.Path=Xm});var T3=N(Sa=>{"use strict";var YO=Sa&&Sa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),QO=Sa&&Sa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qm=Sa&&Sa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&YO(e,t,a);return QO(e,t),e},JO=Sa&&Sa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.Pattern=void 0;var ZO=Qm(require("os")),wo=Qm(require("path")),ta=Qm(bl()),jr=JO(require("assert")),eR=S3(),Km=xl(),_l=C3(),Ei=process.platform==="win32",Ym=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],jr.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);jr.default(d&&ta.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new _l.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new _l.Path(n).segments,this.trailingSeparator=ta.normalizeSeparators(n).endsWith(wo.sep),n=ta.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new _l.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),Ei?"i":""),this.isImplicitPattern=a;let l={dot:!0,nobrace:!0,nocase:Ei,nocomment:!0,noext:!0,nonegate:!0};n=Ei?n.replace(/\\/g,"/"):n,this.minimatch=new eR.Minimatch(n,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=ta.normalizeSeparators(e),!e.endsWith(wo.sep)&&this.isImplicitPattern===!1&&(e=`${e}${wo.sep}`)):e=ta.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Km.MatchKind.Directory:Km.MatchKind.All:Km.MatchKind.None}partialMatch(e){return e=ta.safeTrimTrailingSeparator(e),ta.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ei?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ei?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){jr.default(e,"pattern cannot be empty");let i=new _l.Path(e).segments.map(r=>t.getLiteral(r));if(jr.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),jr.default(!ta.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=ta.nor Line truncated
`),e=e.replace(/\r/g,`
`));let r=e.split(`
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new I3.Pattern(n));return i.searchPaths.push(...El.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return Zm(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield No.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){e1.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield No.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield No.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){e1.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};bt.DefaultGlobber=t1});var B3=N(Dn=>{"use strict";var sR=Dn&&Dn.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.create=void 0;var oR=A3();function pR(t,e){return sR(this,void 0,void 0,function*(){return yield oR.DefaultGlobber.create(t,e)})}o(pR,"create");Dn.create=pR});var Pl=N((ie,j3)=>{ie=j3.exports=se;var Ee;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Ee=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Ee=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var So=256,Cl=Number.MAX_SAFE_INTEGER||9007199254740991,a1=16,lR=So-6,An=ie.re=[],Se=ie.safeRe=[],M=ie.src=[],A=ie.tokens={},q3=0;function le(t){A[t]=q3++}o(le,"tok");var r1="[a-zA-Z0-9-]",i1=[["\\s",1],["\\d",So],[r1,lR]];function Co(t){for(var e=0;e<i1.length;e++){var a=i1[e][0],i=i1[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(Co,"makeSafeRe");le("NUMERICIDENTIFIER");M[A.NUMERICIDENTIFIER]="0|[1-9]\\d*";le("NUMERICIDENTIFIERLOOSE");M[A.NUMERICIDENTIFIERLOOSE]="\\d+";le("NONNUMERICIDENTIFIER");M[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+r1+"*";le("MAINVERSION");M[A.MAINVERSION]="("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")";le("MAINVERSIONLOOSE");M[A.MAINVERSIONLOOSE]="("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")";le("PRERELEASEIDENTIFIER");M[A.PRERELEASEIDENTIFIER]="(?:"+M[A.NUMERICIDENTIFIER]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASEIDENTIFIERLOOSE");M[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[A.NUMERICIDENTIFIERLOOSE]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASE");M[A.PRERELEASE]="(?:-("+M[A.PRERELEASEIDENTIFIER]+"(?:\\."+M[A.PRERELEASEIDENTIFIER]+")*))";le("PRERELEASELOOSE");M[A.PRERELEASELOOSE]="(?:-?("+M[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[A.PRERELEASEIDENTIFIERLOOSE]+")*))";le("BUILDIDENTIFIER");M[A.BUILDIDENTIFIER]=r1+"+";le("BUILD");M[A.BUILD]="(?:\\+("+M[A.BUILDIDENTIFIER]+"(?:\\."+M[A.BUILDIDENTIFIER]+")*))";le("FULL");le("FULLPLAIN");M[A.FULLPLAIN]="v?"+M[A.MAINVERSION]+M[A.PRERELEASE]+"?"+M[A.BUILD]+"?";M[A.FULL]="^"+M[A.FULLPLAIN]+"$";le("LOOSEPLAIN");M[A.LOOSEPLAIN]="[v=\\s]*"+M[A.MAINVERSIONLOOSE]+M[A.PRERELEASELOOSE]+"?"+M[A.BUILD]+"?";le("LOOSE");M[A.LOOSE]="^"+M[A.LOOSEPLAIN]+"$";le("GTLT");M[A.GTLT]="((?:<|>)?=?)";le("XRANGEIDENTIFIERLOOSE");M[A.XRANGEIDENTIFIERLOOSE]=M[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";le("XRANGEIDENTIFIER");M[A.XRANGEIDENTIFIER]=M[A.NUMERICIDENTIFIER]+"|x|X|\\*";le("XRANGEPLAIN");M[A.XRANGEPLAIN]="[v=\\s]*("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:"+M[A.PRERELEASE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGEPLAINLOOSE");M[A.XRANGEPLAINLOOSE]="[v=\\s]*("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:"+M[A.PRERELEASELOOSE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGE");M[A.XRANGE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAIN]+"$";le("XRANGELOOSE");M[A.XRANGELOOSE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAINLOOSE]+"$";le("COERCE");M[A.COERCE]="(^|[^\\d])(\\d{1,"+a1+"})(?:\\.(\\d{1,"+a1+"}))?(?:\\.(\\d{1,"+a1+"}))?(?:$|[^\\d])";le("COERCERTL");An[A.COERCERTL]=new RegExp(M[A.COERCE],"g");Se[A.COERCERTL]=new RegExp(Co(M[A.COERCE]),"g");le("LONETILDE");M[A.LONETILDE]="(?:~>?)";le("TILDETRIM");M[A.TILDETRIM]="(\\s*)"+M[A.LONETILDE]+"\\s+";An[A.TILDETRIM]=new RegExp(M[A.TILDETRIM],"g");Se[A.TILDETRIM]=new RegExp(Co(M[A.TILDETRIM]),"g");var dR="$1~";le("TILDE");M[A.TILDE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAIN]+"$";le("TILDELOOSE");M[A.TILDELOOSE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAINLOOSE]+"$";le("LONECARET");M[A.LONECARET]="(?:\\^)";le("CARETTRIM");M[A.CARETTRIM]="(\\s*)"+M[A.LONECARET]+"\\s+";An[A.CARETTRIM]=new Line truncated
`),{implicitDescendants:!1});try{for(var d=!0,c=XR(l.globGenerator()),u;u=yield c.next(),e=u.done,!e;d=!0){r=u.value,d=!1;let m=r,f=Il.relative(p,m).replace(new RegExp(`\\${Il.sep}`,"g"),"/");To.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(aP,"resolvePaths");xe.resolvePaths=aP;function iP(t){return Ln(this,void 0,void 0,function*(){return JR.promisify(l1.unlink)(t)})}o(iP,"unlinkFile");xe.unlinkFile=iP;function $3(t,e=[]){return Ln(this,void 0,void 0,function*(){let a="";e.push("--version"),To.debug(`Checking ${t} ${e.join(" ")}`);try{yield KR.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){To.debug(i.message)}return a=a.trim(),To.debug(a),a})}o($3,"getVersion");function rP(){return Ln(this,void 0,void 0,function*(){let t=yield $3("zstd",["--quiet"]),e=QR.clean(t);return To.debug(`zstd version: ${e}`),t===""?Hr.CompressionMethod.Gzip:Hr.CompressionMethod.ZstdWithoutLong})}o(rP,"getCompressionMethod");xe.getCompressionMethod=rP;function nP(t){return t===Hr.CompressionMethod.Gzip?Hr.CacheFilename.Gzip:Hr.CacheFilename.Zstd}o(nP,"getCacheFileName");xe.getCacheFileName=nP;function sP(){return Ln(this,void 0,void 0,function*(){return l1.existsSync(Hr.GnuTarPathOnWindows)?Hr.GnuTarPathOnWindows:(yield $3("tar")).toLowerCase().includes("gnu tar")?F3.which("tar"):""})}o(sP,"getGnuTarPathOnWindows");xe.getGnuTarPathOnWindows=sP;function oP(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(oP,"assertDefined");xe.assertDefined=oP;function pP(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(ZR),V3.createHash("sha256").update(i.join("|")).digest("hex")}o(pP,"getCacheVersion");xe.getCacheVersion=pP;function lP(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(lP,"getRuntimeToken");xe.getRuntimeToken=lP});function Oo(){return Dl>Al.length-16&&(G3.default.randomFillSync(Al),Dl=0),Al.slice(Dl,Dl+=16)}var G3,Al,Dl,d1=jt(()=>{G3=ba(require("crypto")),Al=new Uint8Array(256),Dl=Al.length;o(Oo,"rng")});var W3,X3=jt(()=>{W3=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function dP(t){return typeof t=="string"&&W3.test(t)}var ar,Ro=jt(()=>{X3();o(dP,"validate");ar=dP});function cP(t,e=0){let a=(Mt[t[e+0]]+Mt[t[e+1]]+Mt[t[e+2]]+Mt[t[e+3]]+"-"+Mt[t[e+4]]+Mt[t[e+5]]+"-"+Mt[t[e+6]]+Mt[t[e+7]]+"-"+Mt[t[e+8]]+Mt[t[e+9]]+"-"+Mt[t[e+10]]+Mt[t[e+11]]+Mt[t[e+12]]+Mt[t[e+13]]+Mt[t[e+14]]+Mt[t[e+15]]).toLowerCase();if(!ar(a))throw TypeError("Stringified UUID is invalid");return a}var Mt,ir,Po=jt(()=>{Ro();Mt=[];for(let t=0;t<256;++t)Mt.push((t+256).toString(16).substr(1));o(cP,"stringify");ir=cP});function uP(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||K3,s=t.clockseq!==void 0?t.clockseq:c1;if(n==null||s==null){let m=t.random||(t.rng||Oo)();n==null&&(n=K3=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=c1=(m[6]<<8|m[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),l=t.nsecs!==void 0?t.nsecs:m1+1,d=p-u1+(l-m1)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||p>u1)&&t.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u1=p,m1=l,c1=s,p+=122192928e5;let c=((p&268435455)*1e4+l)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let u=p/4294967296*1e4&268435455;r[i++]=u>>>8&255,r[i++]=u&255,r[i++]=u>>>24&15|16,r[i++]=u>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||ir(r)}var K3,c1,u1,m1,Y3,Q3=jt(()=>{d1();Po();u1=0,m1=0;o(uP,"v1");Y3=uP});function mP(t){if(!ar(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var Bl,f1=jt(()=>{Ro();o(mP,"parse");Bl=mP});function fP(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function Io(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=fP(r)),typeof n=="string"&&(n=Bl(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+r.length);if(l.set(n),l.set(r,n.length),l=a(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,s){p=p||0;for(let d=0;d<16;++d)s[p+d]=l[d];return s}return ir(l)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=hP,i.URL=gP,i}var hP,gP,h1=jt(()=>{Po();f1();o(fP,"stringToBytes");hP="6ba7b810-9dad-11d1-80b4-00c04fd430c8",gP Line truncated
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new I3.Pattern(n));return i.searchPaths.push(...El.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return Zm(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield No.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){e1.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield No.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield No.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){e1.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};bt.DefaultGlobber=t1});var B3=N(Dn=>{"use strict";var oR=Dn&&Dn.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.create=void 0;var pR=A3();function lR(t,e){return oR(this,void 0,void 0,function*(){return yield pR.DefaultGlobber.create(t,e)})}o(lR,"create");Dn.create=lR});var Pl=N((ie,j3)=>{ie=j3.exports=se;var Ee;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Ee=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Ee=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var So=256,Cl=Number.MAX_SAFE_INTEGER||9007199254740991,a1=16,dR=So-6,An=ie.re=[],Se=ie.safeRe=[],M=ie.src=[],A=ie.tokens={},q3=0;function le(t){A[t]=q3++}o(le,"tok");var r1="[a-zA-Z0-9-]",i1=[["\\s",1],["\\d",So],[r1,dR]];function Co(t){for(var e=0;e<i1.length;e++){var a=i1[e][0],i=i1[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(Co,"makeSafeRe");le("NUMERICIDENTIFIER");M[A.NUMERICIDENTIFIER]="0|[1-9]\\d*";le("NUMERICIDENTIFIERLOOSE");M[A.NUMERICIDENTIFIERLOOSE]="\\d+";le("NONNUMERICIDENTIFIER");M[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+r1+"*";le("MAINVERSION");M[A.MAINVERSION]="("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")";le("MAINVERSIONLOOSE");M[A.MAINVERSIONLOOSE]="("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")";le("PRERELEASEIDENTIFIER");M[A.PRERELEASEIDENTIFIER]="(?:"+M[A.NUMERICIDENTIFIER]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASEIDENTIFIERLOOSE");M[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[A.NUMERICIDENTIFIERLOOSE]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASE");M[A.PRERELEASE]="(?:-("+M[A.PRERELEASEIDENTIFIER]+"(?:\\."+M[A.PRERELEASEIDENTIFIER]+")*))";le("PRERELEASELOOSE");M[A.PRERELEASELOOSE]="(?:-?("+M[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[A.PRERELEASEIDENTIFIERLOOSE]+")*))";le("BUILDIDENTIFIER");M[A.BUILDIDENTIFIER]=r1+"+";le("BUILD");M[A.BUILD]="(?:\\+("+M[A.BUILDIDENTIFIER]+"(?:\\."+M[A.BUILDIDENTIFIER]+")*))";le("FULL");le("FULLPLAIN");M[A.FULLPLAIN]="v?"+M[A.MAINVERSION]+M[A.PRERELEASE]+"?"+M[A.BUILD]+"?";M[A.FULL]="^"+M[A.FULLPLAIN]+"$";le("LOOSEPLAIN");M[A.LOOSEPLAIN]="[v=\\s]*"+M[A.MAINVERSIONLOOSE]+M[A.PRERELEASELOOSE]+"?"+M[A.BUILD]+"?";le("LOOSE");M[A.LOOSE]="^"+M[A.LOOSEPLAIN]+"$";le("GTLT");M[A.GTLT]="((?:<|>)?=?)";le("XRANGEIDENTIFIERLOOSE");M[A.XRANGEIDENTIFIERLOOSE]=M[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";le("XRANGEIDENTIFIER");M[A.XRANGEIDENTIFIER]=M[A.NUMERICIDENTIFIER]+"|x|X|\\*";le("XRANGEPLAIN");M[A.XRANGEPLAIN]="[v=\\s]*("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:"+M[A.PRERELEASE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGEPLAINLOOSE");M[A.XRANGEPLAINLOOSE]="[v=\\s]*("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:"+M[A.PRERELEASELOOSE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGE");M[A.XRANGE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAIN]+"$";le("XRANGELOOSE");M[A.XRANGELOOSE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAINLOOSE]+"$";le("COERCE");M[A.COERCE]="(^|[^\\d])(\\d{1,"+a1+"})(?:\\.(\\d{1,"+a1+"}))?(?:\\.(\\d{1,"+a1+"}))?(?:$|[^\\d])";le("COERCERTL");An[A.COERCERTL]=new RegExp(M[A.COERCE],"g");Se[A.COERCERTL]=new RegExp(Co(M[A.COERCE]),"g");le("LONETILDE");M[A.LONETILDE]="(?:~>?)";le("TILDETRIM");M[A.TILDETRIM]="(\\s*)"+M[A.LONETILDE]+"\\s+";An[A.TILDETRIM]=new RegExp(M[A.TILDETRIM],"g");Se[A.TILDETRIM]=new RegExp(Co(M[A.TILDETRIM]),"g");var cR="$1~";le("TILDE");M[A.TILDE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAIN]+"$";le("TILDELOOSE");M[A.TILDELOOSE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAINLOOSE]+"$";le("LONECARET");M[A.LONECARET]="(?:\\^)";le("CARETTRIM");M[A.CARETTRIM]="(\\s*)"+M[A.LONECARET]+"\\s+";An[A.CARETTRIM]=new Line truncated
`),{implicitDescendants:!1});try{for(var d=!0,c=KR(l.globGenerator()),u;u=yield c.next(),e=u.done,!e;d=!0){r=u.value,d=!1;let m=r,f=Il.relative(p,m).replace(new RegExp(`\\${Il.sep}`,"g"),"/");To.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(iP,"resolvePaths");xe.resolvePaths=iP;function rP(t){return Ln(this,void 0,void 0,function*(){return ZR.promisify(l1.unlink)(t)})}o(rP,"unlinkFile");xe.unlinkFile=rP;function $3(t,e=[]){return Ln(this,void 0,void 0,function*(){let a="";e.push("--version"),To.debug(`Checking ${t} ${e.join(" ")}`);try{yield YR.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){To.debug(i.message)}return a=a.trim(),To.debug(a),a})}o($3,"getVersion");function nP(){return Ln(this,void 0,void 0,function*(){let t=yield $3("zstd",["--quiet"]),e=JR.clean(t);return To.debug(`zstd version: ${e}`),t===""?Hr.CompressionMethod.Gzip:Hr.CompressionMethod.ZstdWithoutLong})}o(nP,"getCompressionMethod");xe.getCompressionMethod=nP;function sP(t){return t===Hr.CompressionMethod.Gzip?Hr.CacheFilename.Gzip:Hr.CacheFilename.Zstd}o(sP,"getCacheFileName");xe.getCacheFileName=sP;function oP(){return Ln(this,void 0,void 0,function*(){return l1.existsSync(Hr.GnuTarPathOnWindows)?Hr.GnuTarPathOnWindows:(yield $3("tar")).toLowerCase().includes("gnu tar")?F3.which("tar"):""})}o(oP,"getGnuTarPathOnWindows");xe.getGnuTarPathOnWindows=oP;function pP(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(pP,"assertDefined");xe.assertDefined=pP;function lP(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(eP),V3.createHash("sha256").update(i.join("|")).digest("hex")}o(lP,"getCacheVersion");xe.getCacheVersion=lP;function dP(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(dP,"getRuntimeToken");xe.getRuntimeToken=dP});function Oo(){return Dl>Al.length-16&&(G3.default.randomFillSync(Al),Dl=0),Al.slice(Dl,Dl+=16)}var G3,Al,Dl,d1=jt(()=>{G3=ba(require("crypto")),Al=new Uint8Array(256),Dl=Al.length;o(Oo,"rng")});var W3,X3=jt(()=>{W3=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function cP(t){return typeof t=="string"&&W3.test(t)}var ar,Ro=jt(()=>{X3();o(cP,"validate");ar=cP});function uP(t,e=0){let a=(Mt[t[e+0]]+Mt[t[e+1]]+Mt[t[e+2]]+Mt[t[e+3]]+"-"+Mt[t[e+4]]+Mt[t[e+5]]+"-"+Mt[t[e+6]]+Mt[t[e+7]]+"-"+Mt[t[e+8]]+Mt[t[e+9]]+"-"+Mt[t[e+10]]+Mt[t[e+11]]+Mt[t[e+12]]+Mt[t[e+13]]+Mt[t[e+14]]+Mt[t[e+15]]).toLowerCase();if(!ar(a))throw TypeError("Stringified UUID is invalid");return a}var Mt,ir,Po=jt(()=>{Ro();Mt=[];for(let t=0;t<256;++t)Mt.push((t+256).toString(16).substr(1));o(uP,"stringify");ir=uP});function mP(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||K3,s=t.clockseq!==void 0?t.clockseq:c1;if(n==null||s==null){let m=t.random||(t.rng||Oo)();n==null&&(n=K3=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=c1=(m[6]<<8|m[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),l=t.nsecs!==void 0?t.nsecs:m1+1,d=p-u1+(l-m1)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||p>u1)&&t.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u1=p,m1=l,c1=s,p+=122192928e5;let c=((p&268435455)*1e4+l)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let u=p/4294967296*1e4&268435455;r[i++]=u>>>8&255,r[i++]=u&255,r[i++]=u>>>24&15|16,r[i++]=u>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||ir(r)}var K3,c1,u1,m1,Y3,Q3=jt(()=>{d1();Po();u1=0,m1=0;o(mP,"v1");Y3=mP});function fP(t){if(!ar(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var Bl,f1=jt(()=>{Ro();o(fP,"parse");Bl=fP});function hP(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function Io(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=hP(r)),typeof n=="string"&&(n=Bl(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+r.length);if(l.set(n),l.set(r,n.length),l=a(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,s){p=p||0;for(let d=0;d<16;++d)s[p+d]=l[d];return s}return ir(l)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=gP,i.URL=yP,i}var gP,yP,h1=jt(()=>{Po();f1();o(hP,"stringToBytes");gP="6ba7b810-9dad-11d1-80b4-00c04fd430c8",yP Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(v1)});var oi=N((zg,rr)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,l={}.hasOwnProperty;t=o(function(){var d,c,u,m,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,u=f.length;d<u;d++)if(m=f[d],m!=null)for(c in m)l.call(m,c)&&(h[c]=m[c]);return h},"assign"),r=o(function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},"isFunction"),n=o(function(d){var c;return!!d&&((c=typeof d)=="function"||c==="object")},"isObject"),a=o(function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},"isArray"),i=o(function(d){var c;if(a(d))return!d.length;for(c in d)if(l.call(d,c))return!1;return!0},"isEmpty"),s=o(function(d){var c,u;return n(d)&&(u=Object.getPrototypeOf(d))&&(c=u.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(d){return r(d.valueOf)?d.valueOf():d},"getValue"),rr.exports.assign=t,rr.exports.isFunction=r,rr.exports.isObject=n,rr.exports.isArray=a,rr.exports.isEmpty=i,rr.exports.isPlainObject=s,rr.exports.getValue=e}).call(zg)});var b1=N((jg,kg)=>{(function(){var t;kg.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(jg)});var Fg=N((Ug,Hg)=>{(function(){var t;Hg.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(Ug)});var Gg=N((Vg,$g)=>{(function(){var t;$g.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(Vg)});var Kg=N((Wg,Xg)=>{(function(){var t,e,a;e=Fg(),a=Gg(),Xg.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(Wg)});var st=N((Yg,Qg)=>{(function(){Qg.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Yg)});var x1=N((Jg,Zg)=>{(function(){var t,e,a;t=st(),a=ca(),Zg.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi Line truncated
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(_=(D=w.dontPrettyTextNodes)!=null?D:w.dontprettytextnodes)!=null?_:0,y.spaceBeforeSlash=(T=(P=w.spaceBeforeSlash)!=null?P:w.spacebeforeslash)!=null?T:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},I.prototype.indent=function(w,y,g){var S;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(S=(g||0)+y.offset+1,S>0)?new Array(S).join(y.indent):""},I.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},I.prototype.attribute=function(w,y,g){var S;return this.openAttribute(w,y,g),S=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),S},I.prototype.cdata=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.comment=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.declaration=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,S+=' version="'+w.version+'"',w.encoding!=null&&(S+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(S+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,S+=y.spaceBeforeSlash+"?>",S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.docType=function(w,y,g){var S,O,_,D,T;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,D=this.indent(w,y,g),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.endline(w,y,g),y.state=e.InsideTag,T=w.children,O=0,_=T.length;O<_;O++)S=T[O],D+=this.writeChildNode(S,y,g+1);y.state=e.CloseTag,D+="]"}return y.state=e.CloseTag,D+=y.spaceBeforeSlash+">",D+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),D},I.prototype.element=function(w,y,g){var S,O,_,D,T,P,B,k,pe,ve,Q,it,he,Ua;g||(g=0),ve=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,it=w.attribs;for(pe in it)E.call(it,pe)&&(S=it[pe],Q+=this.attribute(S,y,g));if(_=w.children.length,D=_===0?null:w.children[0],_===0||w.children.every(function(Wt){return(Wt.type===t.Text||Wt.type===t.Raw)&&Wt.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&_===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ve=!0,Q+=this.writeChildNode(D,y,g+1),y.suppressPrettyCount--,ve=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(he=w.children,T=0,B=he.length;T<B;T++)if(O=he[T],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ve=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,Ua=w.children,P=0,k=Ua.length;P<k;P++)O=Ua[P],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",ve&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},I.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},I.prototype.processingInstruction=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<?",y.state=e.InsideTag,S+=w.target,w.value&&(S+=" "+w.value),y.state=e.CloseTag,S+=y.spaceBeforeSlash+"?>",S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.raw=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g),y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.text=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g),y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.dtdAttList=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,S+=" "+w.elementName+" "+w.attributeName+" "+w.attribut Line truncated
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(_=(D=w.dontPrettyTextNodes)!=null?D:w.dontprettytextnodes)!=null?_:0,y.spaceBeforeSlash=(T=(P=w.spaceBeforeSlash)!=null?P:w.spacebeforeslash)!=null?T:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},I.prototype.indent=function(w,y,g){var S;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(S=(g||0)+y.offset+1,S>0)?new Array(S).join(y.indent):""},I.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},I.prototype.attribute=function(w,y,g){var S;return this.openAttribute(w,y,g),S=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),S},I.prototype.cdata=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.comment=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.declaration=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,S+=' version="'+w.version+'"',w.encoding!=null&&(S+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(S+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,S+=y.spaceBeforeSlash+"?>",S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.docType=function(w,y,g){var S,O,_,D,T;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,D=this.indent(w,y,g),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.endline(w,y,g),y.state=e.InsideTag,T=w.children,O=0,_=T.length;O<_;O++)S=T[O],D+=this.writeChildNode(S,y,g+1);y.state=e.CloseTag,D+="]"}return y.state=e.CloseTag,D+=y.spaceBeforeSlash+">",D+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),D},I.prototype.element=function(w,y,g){var S,O,_,D,T,P,B,k,pe,ve,Q,it,he,Ua;g||(g=0),ve=!1,Q="",this.openNode(w,y,g),y.state=e.OpenTag,Q+=this.indent(w,y,g)+"<"+w.name,it=w.attribs;for(pe in it)E.call(it,pe)&&(S=it[pe],Q+=this.attribute(S,y,g));if(_=w.children.length,D=_===0?null:w.children[0],_===0||w.children.every(function(Wt){return(Wt.type===t.Text||Wt.type===t.Raw)&&Wt.value===""}))y.allowEmpty?(Q+=">",y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Q+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&_===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)Q+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ve=!0,Q+=this.writeChildNode(D,y,g+1),y.suppressPrettyCount--,ve=!1,y.state=e.CloseTag,Q+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(he=w.children,T=0,B=he.length;T<B;T++)if(O=he[T],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ve=!0;break}}for(Q+=">"+this.endline(w,y,g),y.state=e.InsideTag,Ua=w.children,P=0,k=Ua.length;P<k;P++)O=Ua[P],Q+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Q+=this.indent(w,y,g)+"</"+w.name+">",ve&&y.suppressPrettyCount--,Q+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Q},I.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},I.prototype.processingInstruction=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<?",y.state=e.InsideTag,S+=w.target,w.value&&(S+=" "+w.value),y.state=e.CloseTag,S+=y.spaceBeforeSlash+"?>",S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.raw=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g),y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.text=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g),y.state=e.InsideTag,S+=w.value,y.state=e.CloseTag,S+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),S},I.prototype.dtdAttList=function(w,y,g){var S;return this.openNode(w,y,g),y.state=e.OpenTag,S=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,S+=" "+w.elementName+" "+w.attributeName+" "+w.attribut Line truncated
`||x==="\r"||x===" "}o(w,"isWhitespace");function y(x){return x==='"'||x==="'"}o(y,"isQuote");function g(x){return x===">"||w(x)}o(g,"isAttribEnd");function S(x,v){return x.test(v)}o(S,"isMatch");function O(x,v){return!S(x,v)}o(O,"notMatch");var _=0;t.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(x){var v=t.ENTITIES[x],L=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[x]=L});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;_=t.STATE;function T(x,v,L){x[v]&&x[v](L)}o(T,"emit");function P(x,v,L){x.textNode&&B(x),T(x,v,L)}o(P,"emitNode");function B(x){x.textNode=k(x.opt,x.textNode),x.textNode&&T(x,"ontext",x.textNode),x.textNode=""}o(B,"closeText");function k(x,v){return x.trim&&(v=v.trim()),x.normalize&&(v=v.replace(/\s+/g," ")),v}o(k,"textopts");function pe(x,v){return B(x),x.trackPosition&&(v+=`
Line: `+x.line+`
Column: `+x.column+`
Char: `+x.c),v=new Error(v),x.error=v,T(x,"onerror",v),x}o(pe,"error");function ve(x){return x.sawRoot&&!x.closedRoot&&Q(x,"Unclosed root tag"),x.state!==_.BEGIN&&x.state!==_.BEGIN_WHITESPACE&&x.state!==_.TEXT&&pe(x,"Unexpected end"),B(x),x.c="",x.closed=!0,T(x,"onend"),a.call(x,x.strict,x.opt),x}o(ve,"end");function Q(x,v){if(typeof x!="object"||!(x instanceof a))throw new Error("bad call to strictFail");x.strict&&pe(x,v)}o(Q,"strictFail");function it(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var v=x.tags[x.tags.length-1]||x,L=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(L.ns=v.ns),x.attribList.length=0,P(x,"onopentagstart",L)}o(it,"newTag");function he(x,v){var L=x.indexOf(":"),R=L<0?["",x]:x.split(":"),Re=R[0],ct=R[1];return v&&x==="xmlns"&&(Re="xmlns",ct=""),{prefix:Re,local:ct}}o(he,"qname");function Ua(x){if(x.strict||(x.attribName=x.attribName[x.looseCase]()),x.attribList.indexOf(x.attribName)!==-1||x.tag.attributes.hasOwnProperty(x.attribName)){x.attribName=x.attribValue="";return}if(x.opt.xmlns){var v=he(x.attribName,!0),L=v.prefix,R=v.local;if(L==="xmlns")if(R==="xml"&&x.attribValue!==m)Q(x,"xml: prefix must be bound to "+m+`
Actual: `+x.attribValue);else if(R==="xmlns"&&x.attribValue!==f)Q(x,"xmlns: prefix must be bound to "+f+`
Actual: `+x.attribValue);else{var Re=x.tag,ct=x.tags[x.tags.length-1]||x;Re.ns===ct.ns&&(Re.ns=Object.create(ct.ns)),Re.ns[R]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,P(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(Ua,"attrib");function Wt(x,v){if(x.opt.xmlns){var L=x.tag,R=he(x.tagName);L.prefix=R.prefix,L.local=R.local,L.uri=L.ns[R.prefix]||"",L.prefix&&!L.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),L.uri=R.prefix);var Re=x.tags[x.tags.length-1]||x;L.ns&&Re.ns!==L.ns&&Object.keys(L.ns).forEach(function(o4){P(x,"onopennamespace",{prefix:o4,uri:L.ns[o4]})});for(var ct=0,vt=x.attribList.length;ct<vt;ct++){var Xt=x.attribList[ct],ai=Xt[0],_n=Xt[1],At=he(ai,!0),_i=At.prefix,sC=At.local,s4=_i===""?"":L.ns[_i]||"",mm={name:ai,value:_n,prefix:_i,local:sC,uri:s4};_i&&_i!=="xmlns"&&!s4&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(_i)),mm.uri=_i),x.tag.attributes[ai]=mm,P(x,"onattribute",mm)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),P(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=_.SCRIPT:x.state=_.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o(Wt,"openTag");function Nn(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=_.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=_.SCRIPT;return}P(x,"onscript",x.script),x.script=""}var v=x.tags.length,L=x.tagName;x.strict||(L=L[x.looseCase]());for(var R=L;v--;){var Re=x.tags[v];if(Re.name!==R)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=_.TEXT;return}x.tagName=L;for(var ct=x.tags.length;ct-- >v;){var vt=x.tag=x.tags.pop();x.tagName=x.tag.name,P(x,"onclosetag",x.tagName);var Xt={};for(var ai in vt.ns)Xt[ai]=vt.ns[ai];var _n=x.tags[x.tags.length-1]||x;x.opt.xmlns&&vt.ns!==_n.ns&&Object.keys(vt.ns).forEach(function(At){var _i=vt.ns[At];P(x,"onclosenamespace",{prefix:At,uri:_i})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=_.TEXT}o(Nn,"closeTag");function mo(x){var v=x.entity,L=v.toLowerCase(),R,Re="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[L]?x.ENTITIES[L]:(v=L,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),R=parseInt(v,16),Re=R.toString(16)):(v=v.slice(1),R=parseInt(v,10),Re=R.toString(10))),v=v.replace(/^0+/,""),isNaN(R)||Re.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(R))}o(mo,"parseEntity");function r4(x,v){v==="<"?(x.state=_.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=_.TEXT)}o(r4,"beginWhiteSpace");function n4(x,v){var L="";return v<x.length&&(L=x.charAt(v)),L}o(n4,"charAt");function nC(x){var v=this;if(this.error)throw this.error;if(v.closed)return pe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return ve(v);typeof x=="object"&&(x=x.toString());for(var L=0,R="";R=n4(x,L++),v.c=R,!!R;)switch(v.trackPosition&&(v.position++,R===`
Actual: `+x.attribValue);else{var Re=x.tag,ct=x.tags[x.tags.length-1]||x;Re.ns===ct.ns&&(Re.ns=Object.create(ct.ns)),Re.ns[R]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,P(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}o(Ua,"attrib");function Wt(x,v){if(x.opt.xmlns){var L=x.tag,R=he(x.tagName);L.prefix=R.prefix,L.local=R.local,L.uri=L.ns[R.prefix]||"",L.prefix&&!L.uri&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),L.uri=R.prefix);var Re=x.tags[x.tags.length-1]||x;L.ns&&Re.ns!==L.ns&&Object.keys(L.ns).forEach(function(o4){P(x,"onopennamespace",{prefix:o4,uri:L.ns[o4]})});for(var ct=0,vt=x.attribList.length;ct<vt;ct++){var Xt=x.attribList[ct],ai=Xt[0],_n=Xt[1],At=he(ai,!0),_i=At.prefix,oC=At.local,s4=_i===""?"":L.ns[_i]||"",mm={name:ai,value:_n,prefix:_i,local:oC,uri:s4};_i&&_i!=="xmlns"&&!s4&&(Q(x,"Unbound namespace prefix: "+JSON.stringify(_i)),mm.uri=_i),x.tag.attributes[ai]=mm,P(x,"onattribute",mm)}x.attribList.length=0}x.tag.isSelfClosing=!!v,x.sawRoot=!0,x.tags.push(x.tag),P(x,"onopentag",x.tag),v||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=_.SCRIPT:x.state=_.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}o(Wt,"openTag");function Nn(x){if(!x.tagName){Q(x,"Weird empty close tag."),x.textNode+="</>",x.state=_.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=_.SCRIPT;return}P(x,"onscript",x.script),x.script=""}var v=x.tags.length,L=x.tagName;x.strict||(L=L[x.looseCase]());for(var R=L;v--;){var Re=x.tags[v];if(Re.name!==R)Q(x,"Unexpected close tag");else break}if(v<0){Q(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=_.TEXT;return}x.tagName=L;for(var ct=x.tags.length;ct-- >v;){var vt=x.tag=x.tags.pop();x.tagName=x.tag.name,P(x,"onclosetag",x.tagName);var Xt={};for(var ai in vt.ns)Xt[ai]=vt.ns[ai];var _n=x.tags[x.tags.length-1]||x;x.opt.xmlns&&vt.ns!==_n.ns&&Object.keys(vt.ns).forEach(function(At){var _i=vt.ns[At];P(x,"onclosenamespace",{prefix:At,uri:_i})})}v===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=_.TEXT}o(Nn,"closeTag");function mo(x){var v=x.entity,L=v.toLowerCase(),R,Re="";return x.ENTITIES[v]?x.ENTITIES[v]:x.ENTITIES[L]?x.ENTITIES[L]:(v=L,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),R=parseInt(v,16),Re=R.toString(16)):(v=v.slice(1),R=parseInt(v,10),Re=R.toString(10))),v=v.replace(/^0+/,""),isNaN(R)||Re.toLowerCase()!==v?(Q(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(R))}o(mo,"parseEntity");function r4(x,v){v==="<"?(x.state=_.OPEN_WAKA,x.startTagPosition=x.position):w(v)||(Q(x,"Non-whitespace before first tag."),x.textNode=v,x.state=_.TEXT)}o(r4,"beginWhiteSpace");function n4(x,v){var L="";return v<x.length&&(L=x.charAt(v)),L}o(n4,"charAt");function sC(x){var v=this;if(this.error)throw this.error;if(v.closed)return pe(v,"Cannot write after close. Assign an onready handler.");if(x===null)return ve(v);typeof x=="object"&&(x=x.toString());for(var L=0,R="";R=n4(x,L++),v.c=R,!!R;)switch(v.trackPosition&&(v.position++,R===`
`?(v.line++,v.column=0):v.column++),v.state){case _.BEGIN:if(v.state=_.BEGIN_WHITESPACE,R==="\uFEFF")continue;r4(v,R);continue;case _.BEGIN_WHITESPACE:r4(v,R);continue;case _.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Re=L-1;R&&R!=="<"&&R!=="&";)R=n4(x,L++),R&&v.trackPosition&&(v.position++,R===`
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Re,L-1)}R==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=_.OPEN_WAKA,v.startTagPosition=v.position):(!w(R)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),R==="&"?v.state=_.TEXT_ENTITY:v.textNode+=R);continue;case _.SCRIPT:R==="<"?v.state=_.SCRIPT_ENDING:v.script+=R;continue;case _.SCRIPT_ENDING:R==="/"?v.state=_.CLOSE_TAG:(v.script+="<"+R,v.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(R==="!")v.state=_.SGML_DECL,v.sgmlDecl="";else if(!w(R))if(S(b,R))v.state=_.OPEN_TAG,v.tagName=R;else if(R==="/")v.state=_.CLOSE_TAG,v.tagName="";else if(R==="?")v.state=_.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var ct=v.position-v.startTagPosition;R=new Array(ct).join(" ")+R}v.textNode+="<"+R,v.state=_.TEXT}continue;case _.SGML_DECL:(v.sgmlDecl+R).toUpperCase()===c?(P(v,"onopencdata"),v.state=_.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+R==="--"?(v.state=_.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+R).toUpperCase()===u?(v.state=_.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):R===">"?(P(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=_.TEXT):(y(R)&&(v.state=_.SGML_DECL_QUOTED),v.sgmlDecl+=R);continue;case _.SGML_DECL_QUOTED:R===v.q&&(v.state=_.SGML_DECL,v.q=""),v.sgmlDecl+=R;continue;case _.DOCTYPE:R===">"?(v.state=_.TEXT,P(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=R,R==="["?v.state=_.DOCTYPE_DTD:y(R)&&(v.state=_.DOCTYPE_QUOTED,v.q=R));continue;case _.DOCTYPE_QUOTED:v.doctype+=R,R===v.q&&(v.q="",v.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:v.doctype+=R,R==="]"?v.state=_.DOCTYPE:y(R)&&(v.state=_.DOCTYPE_DTD_QUOTED,v.q=R);continue;case _.DOCTYPE_DTD_QUOTED:v.doctype+=R,R===v.q&&(v.state=_.DOCTYPE_DTD,v.q="");continue;case _.COMMENT:R==="-"?v.state=_.COMMENT_ENDING:v.comment+=R;continue;case _.COMMENT_ENDING:R==="-"?(v.state=_.COMMENT_ENDED,v.comment=k(v.opt,v.comment),v.comment&&P(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+R,v.state=_.COMMENT);continue;case _.COMMENT_ENDED:R!==">"?(Q(v,"Malformed comment"),v.comment+="--"+R,v.state=_.COMMENT):v.state=_.TEXT;continue;case _.CDATA:R==="]"?v.state=_.CDATA_ENDING:v.cdata+=R;continue;case _.CDATA_ENDING:R==="]"?v.state=_.CDATA_ENDING_2:(v.cdata+="]"+R,v.state=_.CDATA);continue;case _.CDATA_ENDING_2:R===">"?(v.cdata&&P(v,"oncdata",v.cdata),P(v,"onclosecdata"),v.cdata="",v.state=_.TEXT):R==="]"?v.cdata+="]":(v.cdata+="]]"+R,v.state=_.CDATA);continue;case _.PROC_INST:R==="?"?v.state=_.PROC_INST_ENDING:w(R)?v.state=_.PROC_INST_BODY:v.procInstName+=R;continue;case _.PROC_INST_BODY:if(!v.procInstBody&&w(R))continue;R==="?"?v.state=_.PROC_INST_ENDING:v.procInstBody+=R;continue;case _.PROC_INST_ENDING:R===">"?(P(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=_.TEXT):(v.procInstBody+="?"+R,v.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:S(C,R)?v.tagName+=R:(it(v),R===">"?Wt(v):R==="/"?v.state=_.OPEN_TAG_SLASH:(w(R)||Q(v,"Invalid character in tag name"),v.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:R===">"?(Wt(v,!0),Nn(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=_.ATTRIB);continue;case _.ATTRIB:if(w(R))continue;R===">"?Wt(v):R==="/"?v.state=_.OPEN_TAG_SLASH:S(b,R)?(v.attribName=R,v.attribValue="",v.state=_.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case _.ATTRIB_NAME:R==="="?v.state=_.ATTRIB_VALUE:R===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,Ua(v),Wt(v)):w(R)?v.state=_.ATTRIB_NAME_SAW_WHITE:S(C,R)?v.attribName+=R:Q(v,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(R==="=")v.state=_.ATTRIB_VALUE;else{if(w(R))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",P(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",R===">"?Wt(v):S(b,R)?(v.attribName=R,v.state=_.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(w(R))continue;y(R)?(v.q=R,v.state=_.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=_.ATTRIB_VALUE_UNQUOTED,v.attribValue=R);continue;case _.ATTRIB_VALUE_QUOTED:if(R!==v.q){R==="&"?v.state=_.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=R;continue}Ua(v),v.q="",v.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:w(R)?v.state=_.ATTRIB:R===">"?Wt(v):R==="/"?v.state=_.OPEN_TAG_SLASH:S(b,R)?(Q(v,"No whitespace between attributes"),v.attribName=R,v.attribValue="",v.state=_.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!g(R)){R==="&"?v.state=_.ATTRIB_VALUE_ENTITY_U:v.attribValue+=R;continue}Ua(v),R===">"?Wt(v):v.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(v.tagName)R===">"?Nn(v):S(C,R)?v.tagName+=R:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=_.SCRIPT):(w(R)||Q(v,"Invalid tagname in closing tag"),v.state=_.CLOSE_TAG_SAW_WHITE);else{if(w(R))continue;O Line truncated
`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=cf.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ye.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=Number(a.knownLength):Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&or(e,"httpVersion"))&&!(e instanceof WD))&&(a.knownLength||this._valuesToMeasure.push(e))};ye.prototype._lengthRetriever=function(t,e){or(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):GD.stat(t.path,function(a,i){if(a){e(a);return}var r=i.size-(t.start?t.start:0);e(null,r)}):or(t,"httpVersion")?e(null,Number(t.headers["content-length"])):or(t,"httpModule")?(t.on("response",function(a){t.pause(),e(null,Number(a.headers["content-length"]))}),t.resume()):e("Unknown stream")};ye.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&df(s,a.header);var p;for(var l in s)if(or(s,l)){if(p=s[l],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(n+=l+": "+p.join("; ")+ye.LINE_BREAK)}return"--"+this.getBoundary()+ye.LINE_BREAK+n+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var a;if(typeof e.filepath=="string"?a=pf.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?a=pf.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&or(t,"httpVersion")&&(a=pf.basename(t.client._httpMessage.path||"")),a)return'filename="'+a+'"'};ye.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t&&t.name&&(a=lf.lookup(t.name)),!a&&t&&t.path&&(a=lf.lookup(t.path)),!a&&t&&t.readable&&or(t,"httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=lf.lookup(e.filepath||e.filename)),!a&&t&&typeof t=="object"&&(a=ye.DEFAULT_CONTENT_TYPE),a};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)or(t,e)&&(a[e.toLowerCase()]=t[e]);return a};ye.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ye.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ye.prototype._generateBoundary=function(){this._boundary="--------------------------"+XD.randomBytes(12).toString("hex")};ye.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ye.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ye.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}KD.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ye.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=$D(t),i=df({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=df(t,r),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol==="https:"?a=VD.request(i):a=FD.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,l=o(function(d,c){return a.removeListener("error",l),a.removeListener("response",p),e.call(this,d,c)},"callback");p=l.bind(this,null),a.on("error",l),a.on("response",p)}}.bind(this)),a};ye.prototype._error=function(t){this.error||(this.error=t,this. Line truncated
${FL.sanitize(this)}`}};ma.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ma.PARSE_ERROR="PARSE_ERROR";var Xa=UM.createClientLogger("core-http");function Ev(t,e){return t?e.httpsAgent:e.httpAgent}o(Ev,"getCachedAgent");var bc=class extends GM.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function uc(t){return t&&typeof t.pipe=="function"}o(uc,"isReadableStream");function Cv(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(Cv,"isStreamComplete");function VL(t){let e=new fr;return t.forEach((a,i)=>{e.set(i,a)}),e}o(VL,"parseHeaders");var xc=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new mc.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new mc.AbortError("The operation was aborted.");r=o(d=>{d.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,c=new KM.default,u=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(d)){let h=d[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)u(f,h[b]);else u(f,h)}e.body=c,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,c=new bc(d);uc(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),l;try{let d=await this.fetch(e.url,p),c=VL(d.headers),u=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;l={headers:c,request:e,status:d.status,readableStreamBody:u?d.body:void 0,bodyAsText:u?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let f=d.body||void 0;if(uc(f)){let h=new bc(m);f.pipe(h),l.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(l),l}catch(d){let c=d;throw c.code==="ENOTFOUND"?new ma(c.message,ma.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new mc.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let d=Promise.resolve();uc(n)&&(d=Cv(n));let c=Promise.resolve();uc(l?.readableStreamBody)&&(c=Cv(l.readableStreamBody,i)),Promise.all([d,c]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",r)}).catch(u=>{Xa.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var a;let i=xh(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,l=`${r}:${n}:${s}:${p}`,d=(a=this.proxyAgentMap.get(l))!==null&&a!==void 0?a:{},c=Ev(i,d);if(c)return c;let u=jL(e.url,e.proxySettings,e.headers);return c=u.agent,u.isHttps?d.httpsAgent=u.agent:d.httpAgent=u.agent,this.proxyAgentMap.set(l,d),c}else if(e.keepAlive){let r=Ev(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new xv.Agent(n):r=this.keepAliveAgents.httpAgent=new bv.Agent(n),r}else return i?xv.globalAgent:bv.globalAgent}async fetch(e,a){return YM.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};F.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(F.HttpPipelineLogLevel||(F.HttpPipelineLogLevel={}));function $L(t){let{requestOptions:e,tracingOptions:a}=t,r=jM.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o($L,"operationOptionsToRequestOptionsBase");var ft=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},wc=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==F.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},Gv={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:mt,explicitArray:!0,ignore Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},hc=Object.assign({},Gv);hc.explicitArray=!1;var op=Object.assign({},Gv);op.explicitArray=!1;op.renderOpts={pretty:!1};function wh(t,e={}){var a;return op.rootName=e.rootName,op.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Li,new Mv.Builder(op).buildObject(t)}o(wh,"stringifyXML");function Wv(t,e={}){var a;hc.explicitRoot=!!e.includeRoot,hc.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Li;let i=new Mv.Parser(hc);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(Wv,"parseXML");function $h(t,e){return{create:(a,i)=>new Nh(a,i,t,e)}}o($h,"deserializationPolicy");var Xv=["application/json","text/json"],Kv=["application/xml","application/atom+xml"],GL={expectedContentTypes:{json:Xv,xml:Kv}},Nh=class extends ft{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||Xv,this.xmlContentTypes=i&&i.xml||Kv,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Li}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Yv(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function WL(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(WL,"getOperationResponse");function XL(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(XL,"shouldDeserializeResponse");function Yv(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:Li};return QL(t,e,a,p).then(l=>{if(!XL(l))return l;let d=l.request.operationSpec;if(!d||!d.responses)return l;let c=WL(l),{error:u,shouldReturnResponse:m}=YL(l,d,c);if(u)throw u;if(m)return l;if(c){if(c.bodyMapper){let f=l.parsedBody;d.isXML&&c.bodyMapper.type.name===Zr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{l.parsedBody=d.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new ma(`Error ${h} occurred in deserializing the responseBody - ${l.bodyAsText}`,void 0,l.status,l.request,l)}}else d.httpMethod==="HEAD"&&(l.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(l.parsedHeaders=d.serializer.deserialize(c.headersMapper,l.headers.toJson(),"operationRes.parsedHeaders",i))}return l})}o(Yv,"deserializeResponseBody");function KL(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(KL,"isOperationSpecEmpty");function YL(t,e,a){var i;let r=200<=t.status&&t.status<300;if(KL(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,l=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new ma(l,void 0,t.status,t.request,t);if(!s)throw d;let c=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,f;if(c){let b=m;e.isXML&&c.type.name===Zr.Sequence&&(b=typeof m=="object"?m[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=m.error||f||m;d.code=h.code,h.message&&(d.message=h.message),c&&(d.response.parsedBody=f)}t.headers&&u&&(d.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}o(YL,"handleErrorResponse");function QL(t,e,a,i){var r;let n=o(p=>{let l=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,d=p.code||ma.PARSE_ERROR,c=new ma(l,d,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,l=a.headers.get("Content-Type")||"",d=l?l.split(";").map(c=>c.toLowerCase()):[];if(d.length===0||d.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(d.some(c=>e.indexOf(c)!==-1))return Wv(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(QL,"parse");var Qv={enable:!0};function Jv(t){return{create:(e,a)=>new _h(e,a,t||Qv)}}o(Jv,"keepAlivePolicy");var _h=class extends ft{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Tv=["GET","HEAD"],JL={handleRedirects:!0,maxRetries:20};function Gh(t=20){return{create:(e,a)=>new Sh(e,a,t)}}o(Gh,"redirectPolicy");var Sh=class extends ft{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Zv(this,a,0))}};functi Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},nb=[],sb=!1,cq=new Map;function uq(){if(!process)return;let t=fc(Ra.HTTPS_PROXY),e=fc(Ra.ALL_PROXY),a=fc(Ra.HTTP_PROXY);return t||e||a}o(uq,"loadEnvironmentProxyValue");function mq(t,e,a){if(e.length===0)return!1;let i=fi.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(mq,"isBypassed");function fq(){let t=fc(Ra.NO_PROXY);return sb=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(fq,"loadNoProxy");function ob(t){if(!t&&(t=uq(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=hq(t),r=fi.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(ob,"getDefaultProxySettings");function e0(t,e){return t||(t=ob()),sb||nb.push(...fq()),{create:(a,i)=>new Dh(a,i,t,e?.customNoProxyList)}}o(e0,"proxyPolicy");function hq(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,l=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:p,password:l,urlWithoutAuth:d}}o(hq,"extractAuthFromUrl");var Dh=class extends ft{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!mq(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:nb,this.customNoProxyList?void 0:cq)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function gq(t=30){return{create:(e,a)=>new Ah(e,a,t)}}o(gq,"rpRegistrationPolicy");var Ah=class extends ft{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>yq(this,e,a))}};function yq(t,e,a){if(a.status===409){let i=vq(a.bodyAsText);if(i){let r=bq(e.url);return xq(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Sc()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(yq,"registerIfNeeded");function pb(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Sc()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(pb,"getRequestEssentials");function vq(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(vq,"checkRPNotRegisteredError");function bq(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(bq,"extractSubscriptionUrl");async function xq(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=pb(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return lb(t,n,i)}o(xq,"registerRP");async function lb(t,e,a){let i=pb(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await mi.delay(t._retryTimeout*1e3),lb(t,e,a))}o(lb,"getRegistrationStatus");function db(t){return{create:(e,a)=>new Bh(e,a,t)}}o(db,"signingPolicy");var Bh=class extends ft{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function t0(t,e,a,i){return{create:(r,n)=>new Mh(r,n,t,e,a,i)}}o(t0,"systemErrorRetryPolicy");var Mh=class extends ft{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Jr(i)?i:Wh,this.retryInterval=Jr(r)?r:Xh,this.minRetryInterval=Jr(n)?n:ZL,this.maxRetryInterval=Jr(s)?s:Kh}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>cb(this,e,a.response,a))}};async function cb(t,e,a,i,r){r=tb(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),eb(t.retryCount,n,r,a,i))try{return await mi.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return cb(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(cb,"retry");var wq=3,Ov=Ra.HttpConstants.StatusCodes;function a0(){return{create:(t,e)=>new Lh(t,e)}}o(a0,"throttlingRetryPolicy");var Rv="The operation was aborted.",Lh=class t extends ft{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this. Line truncated
`?(v.line++,v.column=0):v.column++);v.textNode+=x.substring(Re,L-1)}R==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=_.OPEN_WAKA,v.startTagPosition=v.position):(!w(R)&&(!v.sawRoot||v.closedRoot)&&Q(v,"Text data outside of root node."),R==="&"?v.state=_.TEXT_ENTITY:v.textNode+=R);continue;case _.SCRIPT:R==="<"?v.state=_.SCRIPT_ENDING:v.script+=R;continue;case _.SCRIPT_ENDING:R==="/"?v.state=_.CLOSE_TAG:(v.script+="<"+R,v.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(R==="!")v.state=_.SGML_DECL,v.sgmlDecl="";else if(!w(R))if(S(b,R))v.state=_.OPEN_TAG,v.tagName=R;else if(R==="/")v.state=_.CLOSE_TAG,v.tagName="";else if(R==="?")v.state=_.PROC_INST,v.procInstName=v.procInstBody="";else{if(Q(v,"Unencoded <"),v.startTagPosition+1<v.position){var ct=v.position-v.startTagPosition;R=new Array(ct).join(" ")+R}v.textNode+="<"+R,v.state=_.TEXT}continue;case _.SGML_DECL:(v.sgmlDecl+R).toUpperCase()===c?(P(v,"onopencdata"),v.state=_.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+R==="--"?(v.state=_.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+R).toUpperCase()===u?(v.state=_.DOCTYPE,(v.doctype||v.sawRoot)&&Q(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):R===">"?(P(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=_.TEXT):(y(R)&&(v.state=_.SGML_DECL_QUOTED),v.sgmlDecl+=R);continue;case _.SGML_DECL_QUOTED:R===v.q&&(v.state=_.SGML_DECL,v.q=""),v.sgmlDecl+=R;continue;case _.DOCTYPE:R===">"?(v.state=_.TEXT,P(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=R,R==="["?v.state=_.DOCTYPE_DTD:y(R)&&(v.state=_.DOCTYPE_QUOTED,v.q=R));continue;case _.DOCTYPE_QUOTED:v.doctype+=R,R===v.q&&(v.q="",v.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:v.doctype+=R,R==="]"?v.state=_.DOCTYPE:y(R)&&(v.state=_.DOCTYPE_DTD_QUOTED,v.q=R);continue;case _.DOCTYPE_DTD_QUOTED:v.doctype+=R,R===v.q&&(v.state=_.DOCTYPE_DTD,v.q="");continue;case _.COMMENT:R==="-"?v.state=_.COMMENT_ENDING:v.comment+=R;continue;case _.COMMENT_ENDING:R==="-"?(v.state=_.COMMENT_ENDED,v.comment=k(v.opt,v.comment),v.comment&&P(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+R,v.state=_.COMMENT);continue;case _.COMMENT_ENDED:R!==">"?(Q(v,"Malformed comment"),v.comment+="--"+R,v.state=_.COMMENT):v.state=_.TEXT;continue;case _.CDATA:R==="]"?v.state=_.CDATA_ENDING:v.cdata+=R;continue;case _.CDATA_ENDING:R==="]"?v.state=_.CDATA_ENDING_2:(v.cdata+="]"+R,v.state=_.CDATA);continue;case _.CDATA_ENDING_2:R===">"?(v.cdata&&P(v,"oncdata",v.cdata),P(v,"onclosecdata"),v.cdata="",v.state=_.TEXT):R==="]"?v.cdata+="]":(v.cdata+="]]"+R,v.state=_.CDATA);continue;case _.PROC_INST:R==="?"?v.state=_.PROC_INST_ENDING:w(R)?v.state=_.PROC_INST_BODY:v.procInstName+=R;continue;case _.PROC_INST_BODY:if(!v.procInstBody&&w(R))continue;R==="?"?v.state=_.PROC_INST_ENDING:v.procInstBody+=R;continue;case _.PROC_INST_ENDING:R===">"?(P(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=_.TEXT):(v.procInstBody+="?"+R,v.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:S(C,R)?v.tagName+=R:(it(v),R===">"?Wt(v):R==="/"?v.state=_.OPEN_TAG_SLASH:(w(R)||Q(v,"Invalid character in tag name"),v.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:R===">"?(Wt(v,!0),Nn(v)):(Q(v,"Forward-slash in opening tag not followed by >"),v.state=_.ATTRIB);continue;case _.ATTRIB:if(w(R))continue;R===">"?Wt(v):R==="/"?v.state=_.OPEN_TAG_SLASH:S(b,R)?(v.attribName=R,v.attribValue="",v.state=_.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case _.ATTRIB_NAME:R==="="?v.state=_.ATTRIB_VALUE:R===">"?(Q(v,"Attribute without value"),v.attribValue=v.attribName,Ua(v),Wt(v)):w(R)?v.state=_.ATTRIB_NAME_SAW_WHITE:S(C,R)?v.attribName+=R:Q(v,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(R==="=")v.state=_.ATTRIB_VALUE;else{if(w(R))continue;Q(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",P(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",R===">"?Wt(v):S(b,R)?(v.attribName=R,v.state=_.ATTRIB_NAME):(Q(v,"Invalid attribute name"),v.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(w(R))continue;y(R)?(v.q=R,v.state=_.ATTRIB_VALUE_QUOTED):(Q(v,"Unquoted attribute value"),v.state=_.ATTRIB_VALUE_UNQUOTED,v.attribValue=R);continue;case _.ATTRIB_VALUE_QUOTED:if(R!==v.q){R==="&"?v.state=_.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=R;continue}Ua(v),v.q="",v.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:w(R)?v.state=_.ATTRIB:R===">"?Wt(v):R==="/"?v.state=_.OPEN_TAG_SLASH:S(b,R)?(Q(v,"No whitespace between attributes"),v.attribName=R,v.attribValue="",v.state=_.ATTRIB_NAME):Q(v,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!g(R)){R==="&"?v.state=_.ATTRIB_VALUE_ENTITY_U:v.attribValue+=R;continue}Ua(v),R===">"?Wt(v):v.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(v.tagName)R===">"?Nn(v):S(C,R)?v.tagName+=R:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=_.SCRIPT):(w(R)||Q(v,"Invalid tagname in closing tag"),v.state=_.CLOSE_TAG_SAW_WHITE);else{if(w(R))continue;O Line truncated
`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=cf.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ye.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=Number(a.knownLength):Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&or(e,"httpVersion"))&&!(e instanceof XD))&&(a.knownLength||this._valuesToMeasure.push(e))};ye.prototype._lengthRetriever=function(t,e){or(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):WD.stat(t.path,function(a,i){if(a){e(a);return}var r=i.size-(t.start?t.start:0);e(null,r)}):or(t,"httpVersion")?e(null,Number(t.headers["content-length"])):or(t,"httpModule")?(t.on("response",function(a){t.pause(),e(null,Number(a.headers["content-length"]))}),t.resume()):e("Unknown stream")};ye.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&df(s,a.header);var p;for(var l in s)if(or(s,l)){if(p=s[l],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(n+=l+": "+p.join("; ")+ye.LINE_BREAK)}return"--"+this.getBoundary()+ye.LINE_BREAK+n+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var a;if(typeof e.filepath=="string"?a=pf.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?a=pf.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&or(t,"httpVersion")&&(a=pf.basename(t.client._httpMessage.path||"")),a)return'filename="'+a+'"'};ye.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t&&t.name&&(a=lf.lookup(t.name)),!a&&t&&t.path&&(a=lf.lookup(t.path)),!a&&t&&t.readable&&or(t,"httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=lf.lookup(e.filepath||e.filename)),!a&&t&&typeof t=="object"&&(a=ye.DEFAULT_CONTENT_TYPE),a};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)or(t,e)&&(a[e.toLowerCase()]=t[e]);return a};ye.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ye.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ye.prototype._generateBoundary=function(){this._boundary="--------------------------"+KD.randomBytes(12).toString("hex")};ye.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ye.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ye.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}YD.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ye.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=GD(t),i=df({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=df(t,r),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol==="https:"?a=$D.request(i):a=VD.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,l=o(function(d,c){return a.removeListener("error",l),a.removeListener("response",p),e.call(this,d,c)},"callback");p=l.bind(this,null),a.on("error",l),a.on("response",p)}}.bind(this)),a};ye.prototype._error=function(t){this.error||(this.error=t,this. Line truncated
${VL.sanitize(this)}`}};ma.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ma.PARSE_ERROR="PARSE_ERROR";var Xa=HM.createClientLogger("core-http");function Ev(t,e){return t?e.httpsAgent:e.httpAgent}o(Ev,"getCachedAgent");var bc=class extends WM.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function uc(t){return t&&typeof t.pipe=="function"}o(uc,"isReadableStream");function Cv(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(Cv,"isStreamComplete");function $L(t){let e=new fr;return t.forEach((a,i)=>{e.set(i,a)}),e}o($L,"parseHeaders");var xc=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new mc.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new mc.AbortError("The operation was aborted.");r=o(d=>{d.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,c=new YM.default,u=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(d)){let h=d[f];if(Array.isArray(h))for(let b=0;b<h.length;b++)u(f,h[b]);else u(f,h)}e.body=c,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,c=new bc(d);uc(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),l;try{let d=await this.fetch(e.url,p),c=$L(d.headers),u=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;l={headers:c,request:e,status:d.status,readableStreamBody:u?d.body:void 0,bodyAsText:u?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let f=d.body||void 0;if(uc(f)){let h=new bc(m);f.pipe(h),l.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(l),l}catch(d){let c=d;throw c.code==="ENOTFOUND"?new ma(c.message,ma.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new mc.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let d=Promise.resolve();uc(n)&&(d=Cv(n));let c=Promise.resolve();uc(l?.readableStreamBody)&&(c=Cv(l.readableStreamBody,i)),Promise.all([d,c]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",r)}).catch(u=>{Xa.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var a;let i=xh(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,l=`${r}:${n}:${s}:${p}`,d=(a=this.proxyAgentMap.get(l))!==null&&a!==void 0?a:{},c=Ev(i,d);if(c)return c;let u=kL(e.url,e.proxySettings,e.headers);return c=u.agent,u.isHttps?d.httpsAgent=u.agent:d.httpAgent=u.agent,this.proxyAgentMap.set(l,d),c}else if(e.keepAlive){let r=Ev(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new xv.Agent(n):r=this.keepAliveAgents.httpAgent=new bv.Agent(n),r}else return i?xv.globalAgent:bv.globalAgent}async fetch(e,a){return QM.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};F.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(F.HttpPipelineLogLevel||(F.HttpPipelineLogLevel={}));function GL(t){let{requestOptions:e,tracingOptions:a}=t,r=kM.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(GL,"operationOptionsToRequestOptionsBase");var ft=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},wc=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==F.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},Gv={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:mt,explicitArray:!0,ignore Line truncated
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},hc=Object.assign({},Gv);hc.explicitArray=!1;var op=Object.assign({},Gv);op.explicitArray=!1;op.renderOpts={pretty:!1};function wh(t,e={}){var a;return op.rootName=e.rootName,op.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Li,new Mv.Builder(op).buildObject(t)}o(wh,"stringifyXML");function Wv(t,e={}){var a;hc.explicitRoot=!!e.includeRoot,hc.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Li;let i=new Mv.Parser(hc);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(Wv,"parseXML");function $h(t,e){return{create:(a,i)=>new Nh(a,i,t,e)}}o($h,"deserializationPolicy");var Xv=["application/json","text/json"],Kv=["application/xml","application/atom+xml"],WL={expectedContentTypes:{json:Xv,xml:Kv}},Nh=class extends ft{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||Xv,this.xmlContentTypes=i&&i.xml||Kv,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Li}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Yv(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function XL(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(XL,"getOperationResponse");function KL(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(KL,"shouldDeserializeResponse");function Yv(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:Li};return JL(t,e,a,p).then(l=>{if(!KL(l))return l;let d=l.request.operationSpec;if(!d||!d.responses)return l;let c=XL(l),{error:u,shouldReturnResponse:m}=QL(l,d,c);if(u)throw u;if(m)return l;if(c){if(c.bodyMapper){let f=l.parsedBody;d.isXML&&c.bodyMapper.type.name===Zr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{l.parsedBody=d.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new ma(`Error ${h} occurred in deserializing the responseBody - ${l.bodyAsText}`,void 0,l.status,l.request,l)}}else d.httpMethod==="HEAD"&&(l.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(l.parsedHeaders=d.serializer.deserialize(c.headersMapper,l.headers.toJson(),"operationRes.parsedHeaders",i))}return l})}o(Yv,"deserializeResponseBody");function YL(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(YL,"isOperationSpecEmpty");function QL(t,e,a){var i;let r=200<=t.status&&t.status<300;if(YL(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,l=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new ma(l,void 0,t.status,t.request,t);if(!s)throw d;let c=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,f;if(c){let b=m;e.isXML&&c.type.name===Zr.Sequence&&(b=typeof m=="object"?m[c.xmlElementName]:[]),f=e.serializer.deserialize(c,b,"error.response.parsedBody")}let h=m.error||f||m;d.code=h.code,h.message&&(d.message=h.message),c&&(d.response.parsedBody=f)}t.headers&&u&&(d.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}o(QL,"handleErrorResponse");function JL(t,e,a,i){var r;let n=o(p=>{let l=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,d=p.code||ma.PARSE_ERROR,c=new ma(l,d,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,l=a.headers.get("Content-Type")||"",d=l?l.split(";").map(c=>c.toLowerCase()):[];if(d.length===0||d.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(d.some(c=>e.indexOf(c)!==-1))return Wv(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(JL,"parse");var Qv={enable:!0};function Jv(t){return{create:(e,a)=>new _h(e,a,t||Qv)}}o(Jv,"keepAlivePolicy");var _h=class extends ft{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Tv=["GET","HEAD"],ZL={handleRedirects:!0,maxRetries:20};function Gh(t=20){return{create:(e,a)=>new Sh(e,a,t)}}o(Gh,"redirectPolicy");var Sh=class extends ft{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Zv(this,a,0))}};functi Line truncated
`).join(""))}return this._nextPolicy.sendRequest(e)}},nb=[],sb=!1,uq=new Map;function mq(){if(!process)return;let t=fc(Ra.HTTPS_PROXY),e=fc(Ra.ALL_PROXY),a=fc(Ra.HTTP_PROXY);return t||e||a}o(mq,"loadEnvironmentProxyValue");function fq(t,e,a){if(e.length===0)return!1;let i=fi.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(fq,"isBypassed");function hq(){let t=fc(Ra.NO_PROXY);return sb=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(hq,"loadNoProxy");function ob(t){if(!t&&(t=mq(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=gq(t),r=fi.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(ob,"getDefaultProxySettings");function e0(t,e){return t||(t=ob()),sb||nb.push(...hq()),{create:(a,i)=>new Dh(a,i,t,e?.customNoProxyList)}}o(e0,"proxyPolicy");function gq(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,l=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:p,password:l,urlWithoutAuth:d}}o(gq,"extractAuthFromUrl");var Dh=class extends ft{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!fq(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:nb,this.customNoProxyList?void 0:uq)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function yq(t=30){return{create:(e,a)=>new Ah(e,a,t)}}o(yq,"rpRegistrationPolicy");var Ah=class extends ft{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>vq(this,e,a))}};function vq(t,e,a){if(a.status===409){let i=bq(a.bodyAsText);if(i){let r=xq(e.url);return wq(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",Sc()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(vq,"registerIfNeeded");function pb(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",Sc()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(pb,"getRequestEssentials");function bq(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(bq,"checkRPNotRegisteredError");function xq(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(xq,"extractSubscriptionUrl");async function wq(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=pb(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return lb(t,n,i)}o(wq,"registerRP");async function lb(t,e,a){let i=pb(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await mi.delay(t._retryTimeout*1e3),lb(t,e,a))}o(lb,"getRegistrationStatus");function db(t){return{create:(e,a)=>new Bh(e,a,t)}}o(db,"signingPolicy");var Bh=class extends ft{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function t0(t,e,a,i){return{create:(r,n)=>new Mh(r,n,t,e,a,i)}}o(t0,"systemErrorRetryPolicy");var Mh=class extends ft{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Jr(i)?i:Wh,this.retryInterval=Jr(r)?r:Xh,this.minRetryInterval=Jr(n)?n:eq,this.maxRetryInterval=Jr(s)?s:Kh}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>cb(this,e,a.response,a))}};async function cb(t,e,a,i,r){r=tb(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),eb(t.retryCount,n,r,a,i))try{return await mi.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return cb(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(cb,"retry");var Nq=3,Ov=Ra.HttpConstants.StatusCodes;function a0(){return{create:(t,e)=>new Lh(t,e)}}o(a0,"throttlingRetryPolicy");var Rv="The operation was aborted.",Lh=class t extends ft{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this. Line truncated
Polling from: ${a.config.operationLocation}
Operation status: ${c}
Polling status: ${xb.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let u=s(d,a);if(u!==void 0)return{response:await e(u).catch(vb({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:d,status:c}}o(zq,"pollOperationHelper");async function Sb(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:l,withOperationLocation:d,getPollingInterval:c,processResult:u,getError:m,updateState:f,setDelay:h,isDone:b,setErrorAsResult:C}=t,{operationLocation:E}=a.config;if(E!==void 0){let{response:I,status:w}=await zq({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:E,getResourceLocation:s,isOperationError:l,options:r});if(Nb({status:w,response:I,state:a,stateProxy:i,isDone:b,processResult:u,getError:m,setErrorAsResult:C}),!xb.includes(w)){let y=c?.(I);y&&h(y);let g=p?.(I,a);if(g!==void 0){let S=E!==g;a.config.operationLocation=g,d?.(g,S)}else d?.(E,!1)}f?.(a,I)}}o(Sb,"pollOperation");function Eb(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(Eb,"getOperationLocationPollingUrl");function Cb(t){return t.headers.location}o(Cb,"getLocationHeader");function Tb(t){return t.headers["operation-location"]}o(Tb,"getOperationLocationHeader");function Ob(t){return t.headers["azure-asyncoperation"]}o(Ob,"getAzureAsyncOperationHeader");function jq(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(jq,"findResourceLocation");function Rb(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=Tb(e),s=Ob(e),p=Eb({operationLocation:n,azureAsyncOperation:s}),l=Cb(e),d=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:jq({requestMethod:d,location:l,requestPath:i,resourceLocationConfig:r})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(Rb,"inferLroMode");function Pb(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return s0(a);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:return tn.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Pb,"transformStatus");function kq(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return Pb({status:a,statusCode:t.statusCode})}o(kq,"getStatus");function Uq(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return Pb({status:n,statusCode:t.statusCode})}o(Uq,"getProvisioningState");function s0(t){return t===202?"running":t<300?"succeeded":"failed"}o(s0,"toOperationStatus");function Ib({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?Hq(new Date(e)):a*1e3}}o(Ib,"parseRetryAfter");function Db(t){let e=t.flatResponse.error;if(!e){tn.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){tn.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(Db,"getErrorFromResponse");function Hq(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(Hq,"calculatePollingIntervalFromDate");function Ab(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return s0(e.rawResponse.statusCode);case"Body":return o0(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(Ab,"getStatusFromInitialResponse");async function Fq(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return _b({init:async()=>{let s=await r.sendInitialRequest(),p=Rb({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:Ab,setErrorAsResult:n})}o(Fq,"initHttpOperation");function Bb({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
`,v_="HTTP/1.1",$k="AES256",Gk="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Wk=["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"],Xk=["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"],Kk="BlobUsesCustomerSpecifiedEncryption",Yk="BlobDoesNotUseCustomerSpecifiedEncryption",Qk=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Jk(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=eU(a),e.setPath(a),e.toString()}o(Jk,"escapeURLPath");function Zk(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(Zk,"getProxyUriFromDevConnString");function ps(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(ps,"getValueInConnString");function Os(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Zk(t),t=Gk);let a=ps(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=ps(t,"AccountName"),n=Buffer.from(ps(t,"AccountKey"),"base64"),!a){i=ps(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=ps(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=ps(t,"SharedAccessSignature"),r=x_(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(Os,"extractConnectionStringParts");function eU(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(eU,"escape");function Fe(t,e){let a=q.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(Fe,"appendToURLPath");function pn(t,e Line truncated
Polling status: ${xb.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let u=s(d,a);if(u!==void 0)return{response:await e(u).catch(vb({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:d,status:c}}o(jq,"pollOperationHelper");async function Sb(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:l,withOperationLocation:d,getPollingInterval:c,processResult:u,getError:m,updateState:f,setDelay:h,isDone:b,setErrorAsResult:C}=t,{operationLocation:E}=a.config;if(E!==void 0){let{response:I,status:w}=await jq({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:E,getResourceLocation:s,isOperationError:l,options:r});if(Nb({status:w,response:I,state:a,stateProxy:i,isDone:b,processResult:u,getError:m,setErrorAsResult:C}),!xb.includes(w)){let y=c?.(I);y&&h(y);let g=p?.(I,a);if(g!==void 0){let S=E!==g;a.config.operationLocation=g,d?.(g,S)}else d?.(E,!1)}f?.(a,I)}}o(Sb,"pollOperation");function Eb(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(Eb,"getOperationLocationPollingUrl");function Cb(t){return t.headers.location}o(Cb,"getLocationHeader");function Tb(t){return t.headers["operation-location"]}o(Tb,"getOperationLocationHeader");function Ob(t){return t.headers["azure-asyncoperation"]}o(Ob,"getAzureAsyncOperationHeader");function kq(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(kq,"findResourceLocation");function Rb(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=Tb(e),s=Ob(e),p=Eb({operationLocation:n,azureAsyncOperation:s}),l=Cb(e),d=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:kq({requestMethod:d,location:l,requestPath:i,resourceLocationConfig:r})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(Rb,"inferLroMode");function Pb(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return s0(a);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:return tn.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Pb,"transformStatus");function Uq(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return Pb({status:a,statusCode:t.statusCode})}o(Uq,"getStatus");function Hq(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return Pb({status:n,statusCode:t.statusCode})}o(Hq,"getProvisioningState");function s0(t){return t===202?"running":t<300?"succeeded":"failed"}o(s0,"toOperationStatus");function Ib({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?Fq(new Date(e)):a*1e3}}o(Ib,"parseRetryAfter");function Db(t){let e=t.flatResponse.error;if(!e){tn.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){tn.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(Db,"getErrorFromResponse");function Fq(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(Fq,"calculatePollingIntervalFromDate");function Ab(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return s0(e.rawResponse.statusCode);case"Body":return o0(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(Ab,"getStatusFromInitialResponse");async function Vq(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return _b({init:async()=>{let s=await r.sendInitialRequest(),p=Rb({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:Ab,setErrorAsResult:n})}o(Vq,"initHttpOperation");function Bb({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
`,v_="HTTP/1.1",Gk="AES256",Wk="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Xk=["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"],Kk=["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"],Yk="BlobUsesCustomerSpecifiedEncryption",Qk="BlobDoesNotUseCustomerSpecifiedEncryption",Jk=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Zk(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=tU(a),e.setPath(a),e.toString()}o(Zk,"escapeURLPath");function eU(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(eU,"getProxyUriFromDevConnString");function ps(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(ps,"getValueInConnString");function Os(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=eU(t),t=Wk);let a=ps(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=ps(t,"AccountName"),n=Buffer.from(ps(t,"AccountKey"),"base64"),!a){i=ps(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=ps(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=ps(t,"SharedAccessSignature"),r=x_(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(Os,"extractConnectionStringParts");function tU(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(tU,"escape");function Fe(t,e){let a=q.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(Fe,"appendToURLPath");function pn(t,e Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Me.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Me.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let a=c2(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=rU(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let l=p.toLowerCase();n[l]=r[p],s.push(l)}s.sort();for(let p of s)i+=`
${p}:${decodeURIComponent(n[p])}`}return i}},Je=class extends yp{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new Hc(e,a,this)}computeHMACSHA256(e){return Qb.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},bU="azure-storage-blob",xU="12.15.0",bp=class extends H.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${bU}/${xU} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},xp=class{static{o(this,"StorageClient")}constructor(e,a){this.url=Jk(e),this.accountName=x_(e),this.pipeline=a,this.storageClientContext=new bp(this.url,a.toServiceClientOptions()),this.isHttps=b_(aU(this.url)||"","https"),this.credential=new Ie;for(let r of this.pipeline.factories)q.isNode&&r instanceof Je||r instanceof Ie?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},j=z.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function X(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(X,"convertTracingToRequestOptionsBase");var ji=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},ki=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},N0=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return Qb.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Ui(t){return t.end?`${t.start}-${t.end}`:t.start}o(Ui,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var gi=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,l,d,c,u,m,f,h,b Line truncated
`),n=e.computeHMACSHA256(r);return new gi(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(wU,"generateBlobSASQueryParameters20150405");function NU(t,e){if(t=Ps(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(NU,"generateBlobSASQueryParameters20181109");function _U(t,e){if(t=Ps(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(_U,"generateBlobSASQueryParameters20201206");function SU(t,e){if(t=Ps(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(SU,"generateBlobSASQueryParametersUDK20181109");function EU(t,e){if(t=Ps(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(EU,"generateBlobSASQueryParametersUDK20200210");function CU(t,e){if(t=Ps(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(CU,"generateBlobSASQueryParametersUDK20201206");function Rs(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(Rs,"getCanonicalName");function Ps(t){let e=t.version?t.version:l2;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Ps,"SASSignatureValuesSanityCheckAndAutofill");var wp=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new bp(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new on(i)):(this._isContainer=!1,this._containerOrBlobOperation=new fp(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,l;let{span:d,updatedOptions:c}=j("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==hi||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==hi||!((p=a.conditions)===null||p===void 0)&&p.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:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),proposedLeaseId:this._leaseId},X(c)))}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,p,l;let{span:d,updatedOptions:c}=j("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==hi||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==hi||!((p=a.conditions)===null||p===void 0)&&p.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{let u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions})},X(c)));return this._leaseId=e,u}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:l,updatedOptions:d}=j("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==hi||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==hi||!((s=e.conditions)===null||s===void 0)&&s.tagCon Line truncated
`}),i}getCanonicalizedResourceString(e){let a=c2(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=nU(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let l=p.toLowerCase();n[l]=r[p],s.push(l)}s.sort();for(let p of s)i+=`
${p}:${decodeURIComponent(n[p])}`}return i}},Je=class extends yp{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new Hc(e,a,this)}computeHMACSHA256(e){return Qb.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},xU="azure-storage-blob",wU="12.15.0",bp=class extends H.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${xU}/${wU} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},xp=class{static{o(this,"StorageClient")}constructor(e,a){this.url=Zk(e),this.accountName=x_(e),this.pipeline=a,this.storageClientContext=new bp(this.url,a.toServiceClientOptions()),this.isHttps=b_(iU(this.url)||"","https"),this.credential=new Ie;for(let r of this.pipeline.factories)q.isNode&&r instanceof Je||r instanceof Ie?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},j=z.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function X(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(X,"convertTracingToRequestOptionsBase");var ji=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},ki=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},N0=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return Qb.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Ui(t){return t.end?`${t.start}-${t.end}`:t.start}o(Ui,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var gi=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,l,d,c,u,m,f,h,b Line truncated
`),n=e.computeHMACSHA256(r);return new gi(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(NU,"generateBlobSASQueryParameters20150405");function _U(t,e){if(t=Ps(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(_U,"generateBlobSASQueryParameters20181109");function SU(t,e){if(t=Ps(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(SU,"generateBlobSASQueryParameters20201206");function EU(t,e){if(t=Ps(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(EU,"generateBlobSASQueryParametersUDK20181109");function CU(t,e){if(t=Ps(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(CU,"generateBlobSASQueryParametersUDK20200210");function TU(t,e){if(t=Ps(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=ji.parse(t.permissions.toString()).toString():r=ki.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",Rs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new gi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(TU,"generateBlobSASQueryParametersUDK20201206");function Rs(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(Rs,"getCanonicalName");function Ps(t){let e=t.version?t.version:l2;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Ps,"SASSignatureValuesSanityCheckAndAutofill");var wp=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new bp(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new on(i)):(this._isContainer=!1,this._containerOrBlobOperation=new fp(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,l;let{span:d,updatedOptions:c}=j("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==hi||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==hi||!((p=a.conditions)===null||p===void 0)&&p.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:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),proposedLeaseId:this._leaseId},X(c)))}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,p,l;let{span:d,updatedOptions:c}=j("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==hi||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==hi||!((p=a.conditions)===null||p===void 0)&&p.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{let u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions})},X(c)));return this._leaseId=e,u}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:l,updatedOptions:d}=j("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==hi||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==hi||!((s=e.conditions)===null||s===void 0)&&s.tagCon Line truncated
`):s=[e.accountName,i,r,n,t.startsOn?Ce(t.startsOn,!1):"",Ce(t.expiresOn,!1),t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
`);let p=e.computeHMACSHA256(s);return new gi(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(N_,"generateAccountSASQueryParameters");var $0=class t extends xp{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;Er(a)?r=a:q.isNode&&a instanceof Je||a instanceof Ie||q.isTokenCredential(a)?r=Ae(a,i):r=Ae(new Ie,i),super(e,r),this.serviceContext=new Mc(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=Os(e);if(i.kind==="AccountConnString")if(q.isNode){let r=new Je(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=q.getDefaultProxySettings(i.proxyUri));let n=Ae(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=Ae(new Ie,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new Vc(Fe(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=j("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),l=await new on(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:l}}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=j("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),d=await new on(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:d}}catch(p){throw n.setStatus({code:z.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},X(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},X(r)))}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},X(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=j("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},X(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=j("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),X(r)))}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=j("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},X(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(l=>{var d;let c="";return((d=l.tags)===null||d===void 0?void 0:d.blobTagSet.length)===1&&(c=l.tags.blobTagSet[0].value),Object.assign(Object.assign({},l),{tags:cp(l.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return U.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield U.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield U.__await(n);wh Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(a),this.code=e,this.name="NetworkError"}};ra.NetworkError=Zc;Zc.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eu=class extends Error{static{o(this,"UsageError")}constructor(){let e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};ra.UsageError=eu;eu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var __=N(na=>{"use strict";var jU=na&&na.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),kU=na&&na.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),UU=na&&na.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&jU(e,t,a);return kU(e,t),e},HU=na&&na.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(na,"__esModule",{value:!0});na.uploadCacheArchiveSDK=na.UploadProgress=void 0;var w2=UU(nt()),FU=h2(),VU=x2(),tu=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);w2.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};na.UploadProgress=tu;function $U(t,e,a){var i;return HU(this,void 0,void 0,function*(){let r=new FU.BlobClient(t),n=r.getBlockBlobClient(),s=new tu((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),w2.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let l=yield n.uploadFile(e,p);if(l._response.status>=400)throw new VU.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw w2.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{s.stopDisplayTimer()}})}o($U,"uploadCacheArchiveSDK");na.uploadCacheArchiveSDK=$U});var _2=N(Ze=>{"use strict";var GU=Ze&&Ze.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),WU=Ze&&Ze.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),XU=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&GU(e,t,a);return WU(e,t),e},iu=Ze&&Ze.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.retryHttpClientResponse=Ze.retryTypedResponse=Ze.retry=Ze.isRetryableStatusCode=Ze.isServerErrorStatusCode=Ze.isSuccessStatusCode=void 0;var S_=XU(nt()),au=Lr(),Is=Mn();function KU(t){return t?t>=200&&t<300:!1}o(KU,"isSuccessStatusCode");Ze.isSuccessStatusCode=KU;function E_(t){return t?t>=500:!0}o(E_,"isServerErrorStatusCode");Ze.isServerErrorStatusCode=E_;function C_(t){return t?[au.HttpCodes.BadGateway,au.HttpCodes.ServiceUnavailable,au.HttpCodes.GatewayTimeout].includes(t):!1}o(C_,"isRetryableStatusCode");Ze.isRetryableStatusCode=C_;function YU(t){return iu(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(YU,"sleep");function N2(t,e,a,i=Is.DefaultRetryAttempts,r=Is.DefaultRetryDelay,n= Line truncated
Other caches with similar key:`);for(let p of n?.artifactCaches||[])ga.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(DH,"printCachesListForDiagnostics");function AH(t,e,a){return sa(this,void 0,void 0,function*(){let i=new EH.URL(t),r=(0,O2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,su.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,su.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,su.downloadCacheHttpClient)(t,e):yield(0,su.downloadCacheHttpClient)(t,e)})}o(AH,"downloadCache");Rt.downloadCache=AH;function BH(t,e,a){return sa(this,void 0,void 0,function*(){let i=R2(),r=As.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,Tr.retryTypedResponse)("reserveCache",()=>sa(this,void 0,void 0,function*(){return i.postJson(Bp("caches"),n)}))})}o(BH,"reserveCache");Rt.reserveCache=BH;function L_(t,e){return`bytes ${t}-${e}/*`}o(L_,"getContentRange");function MH(t,e,a,i,r){return sa(this,void 0,void 0,function*(){ga.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${L_(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":L_(i,r)},s=yield(0,Tr.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>sa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,Tr.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(MH,"uploadChunk");function LH(t,e,a,i){return sa(this,void 0,void 0,function*(){let r=As.getArchiveFileSizeInBytes(a),n=Bp(`caches/${e.toString()}`),s=C2.openSync(a,"r"),p=(0,O2.getUploadOptions)(i),l=As.assertDefined("uploadConcurrency",p.uploadConcurrency),d=As.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(l).keys()];ga.debug("Awaiting all uploads");let u=0;try{yield Promise.all(c.map(()=>sa(this,void 0,void 0,function*(){for(;u<r;){let m=Math.min(r-u,d),f=u,h=u+m-1;u+=d,yield MH(t,n,()=>C2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{C2.closeSync(s)}})}o(LH,"uploadFile");function qH(t,e,a){return sa(this,void 0,void 0,function*(){let i={size:a};return yield(0,Tr.retryTypedResponse)("commitCache",()=>sa(this,void 0,void 0,function*(){return t.postJson(Bp(`caches/${e.toString()}`),i)}))})}o(qH,"commitCache");function zH(t,e,a,i){return sa(this,void 0,void 0,function*(){if((0,O2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,CH.uploadCacheArchiveSDK)(a,e,i)}else{let n=R2();ga.debug("Upload cache"),yield LH(n,t,e,i),ga.debug("Commiting cache");let s=As.getArchiveFileSizeInBytes(e);ga.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield qH(n,t,s);if(!(0,Tr.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);ga.info("Cache saved successfully")}})}o(zH,"saveCache");Rt.saveCache=zH});var ou=N(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.isJsonObject=Bs.typeofJsonValue=void 0;function jH(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(jH,"typeofJsonValue");Bs.typeofJsonValue=jH;function kH(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(kH,"isJsonObject");Bs.isJsonObject=kH});var lu=N(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.base64encode=Ms.base64decode=void 0;var $i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pu=[];for(let t=0;t<$i.length;t++)pu[$i[t].charCodeAt(0)]=t;pu["-".charCodeAt(0)]=$i.indexOf("+");pu["_".charCodeAt(0)]=$i.indexOf("/");function UH(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=pu[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(UH,"base64decode");Ms.base64decode=UH;function HH(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=$i[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=$i[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=$i[r|i>>6],e+=$i[i&63],a=0;break}return a&&(e+=$i[r],e+="=",a==1&&(e+="=")),e}o(HH,"base64encode");Ms.base64encode=HH});var z_=N(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.utf8read=void 0;var P2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function FH(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(P2(i)),r=0);return a.length?(r&&a.push(P2(i.slice(0,r))),a.join("")):P2(i.slice(0,r))}o(FH,"utf8read");du.utf8read=FH});var Mp=N(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.WireType=vi.mergeBinaryOptions=vi.UnknownFieldHandler=void 0;var VH;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(VH=vi.UnknownFieldHandler||(vi.UnknownFieldHandler={}));function $H(t,e){return Object.assign(Object.assign({},t),e)}o($H,"mergeBinaryOptions");vi.mergeBinaryOptions=$H;var GH;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(GH=vi.WireType||(vi.WireType={}))});var uu=N(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.varint32read=oa.varint32write=oa.int64toString=oa.int64fromString=oa.varint64write=oa.varint64read=void 0;function WH(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(WH,"varint64read");oa.varint64read=WH;function XH(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),l=(p?s|128:s)&255;if(a.push(l),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),l=(p?s|128:s)&255;if(a.push(l),!p)return}a.push(e>>>31&1)}}o(XH,"varint64write");oa.varint64write=XH;var cu=65536*65536;function KH(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let l=Number(t.slice(s,p));r*=a,i=i*a+l,i>=cu&&(r=r+(i/cu|0),i=i%cu)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(KH,"int64fromString");oa.int64fromString=KH;function YH(t,e){if(e>>>0<=2097151)return""+(cu*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,l=1e7;n>=l&&(s+=Math.floor(n/l),n%=l),s>=l&&(p+=Math.floor(s/l),s%=l);function d(c,u){let m=c?String(c):"";return u?"0000000".slice(m.length)+m:m}return o(d,"decimalFrom1e7"),d(p,0)+d(s,p)+d(n,1)}o(YH,"int64toString");oa.int64toString=YH;function QH(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(QH,"varint32write");oa.varint32write=QH;function JH(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(JH,"varint32read");oa.varint32read=JH});var Rr=N(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.PbLong=Or.PbULong=Or.detectBi=void 0;var Lp=uu(),Be;function j_(){let t=new DataView(new ArrayBuffer(8));Be=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C: Line truncated
`)}};ju.RpcError=i6});var n6=N(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.mergeRpcOptions=void 0;var gS=lt();function xV(t,e){if(!e)return t;let a={};ku(t,a),ku(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=gS.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=gS.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},ku(t.meta,a.meta),ku(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(xV,"mergeRpcOptions");Uu.mergeRpcOptions=xV;function ku(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(ku,"copy")});var o6=N(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.Deferred=gn.DeferredState=void 0;var wi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(wi=gn.DeferredState||(gn.DeferredState={}));var s6=class{static{o(this,"Deferred")}constructor(e=!0){this._state=wi.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==wi.PENDING)throw new Error(`cannot resolve ${wi[this.state].toLowerCase()}`);this._resolve(e),this._state=wi.RESOLVED}reject(e){if(this.state!==wi.PENDING)throw new Error(`cannot reject ${wi[this.state].toLowerCase()}`);this._reject(e),this._state=wi.REJECTED}resolvePending(e){this._state===wi.PENDING&&this.resolve(e)}rejectPending(e){this._state===wi.PENDING&&this.reject(e)}};gn.Deferred=s6});var l6=N(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.RpcOutputStreamController=void 0;var yS=o6(),yn=lt(),p6=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){yn.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){yn.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){yn.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){yn.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;yn.assert(e,"bad state"),yn.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new yS.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;yn.assert(i.state==yS.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};Hu.RpcOutputStreamController=p6});var c6=N(Hs=>{"use strict";var wV=Hs&&Hs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.UnaryCall=void 0;var d6=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return wV(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};Hs.UnaryCall=d6});var m6=N(Fs=>{"use strict";var NV=Fs&&Fs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function Line truncated
`));let i=yield M6(a,"create");yield L6(i,t)})}o(g$,"createTar");Ut.createTar=g$});var jS=N(dt=>{"use strict";var y$=dt&&dt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),v$=dt&&dt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Yp=dt&&dt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&y$(e,t,a);return v$(e,t),e},ro=dt&&dt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(dt,"__esModule",{value:!0});dt.saveCache=dt.restoreCache=dt.isFeatureAvailable=dt.ReserveCacheError=dt.ValidationError=void 0;var re=Yp(nt()),Yu=Yp(require("path")),Ue=Yp(qn()),io=Yp(q_()),qS=Yp(AS()),Qu=ru(),Dr=LS(),b$=Mn(),qa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};dt.ValidationError=qa;var vn=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};dt.ReserveCacheError=vn;function zS(t){if(!t||t.length===0)throw new qa("Path Validation Error: At least one directory or file path is required")}o(zS,"checkPaths");function q6(t){if(t.length>512)throw new qa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qa(`Key Validation Error: ${t} cannot contain commas.`)}o(q6,"checkKey");function x$(){return!!process.env.ACTIONS_CACHE_URL}o(x$,"isFeatureAvailable");dt.isFeatureAvailable=x$;function w$(t,e,a,i,r=!1){return ro(this,void 0,void 0,function*(){let n=(0,Qu.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),zS(t),n){case"v2":return yield _$(t,e,a,i,r);case"v1":default:return yield N$(t,e,a,i,r)}})}o(w$,"restoreCache");dt.restoreCache=w$;function N$(t,e,a,i,r=!1){return ro(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of n)q6(l);let s=yield Ue.getCompressionMethod(),p="";try{let l=yield io.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!l?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),l.cacheKey;p=Yu.join(yield Ue.createTempDirectory(),Ue.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield io.downloadCache(l.archiveLocation,p,i),re.isDebug()&&(yield(0,Dr.listTar)(p,s));let d=Ue.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,Dr.extractTar)(p,s),re.info("Cache restored successfully"),l.cacheKey}catch(l){if(l.name===qa.name)throw l;re.warning(`Failed to restore: ${l.message}`)}finally{try{yield Ue.unlinkFile(p)}catch(l){re.debug(`Failed to delete archive: ${l}`)}}})}o(N$,"restoreCacheV1");function _$(t,e,a,i,r=!1){return ro(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)q6(p);let s="";try{let p=qS.internalCacheTwirpClient(),l=yield Ue.getCompressionMethod(),d={key:e,restoreKeys:a,version:Ue.getCacheVersion(t,l,r)},c=yield p.GetCacheEntryDownloadURL(d);if(!c.ok){re.debug(`Cache not found for version ${d.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${d.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=Yu.join(yield Ue.createTempDirectory(),Ue.getCacheFileName(l)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield io.downloadCache(c.signedDownloadUrl,s,i);let u=Ue.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),re.isDebug()&&(yield(0,Dr.listTar)(s,l)),yield(0,Dr.extractTar)(s,l),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===qa.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield Ue.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(_$,"restoreCacheV2");function S$(t,e,a,i=!1){return ro(this,void 0,void 0,function*(){let r=(0,Qu.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
`);for(let r of i){let n=r.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}o(A$,"_getOsVersion");Ht._getOsVersion=A$;function B$(){let t="/etc/lsb-release",e="/etc/os-release",a="";return Ju.existsSync(t)?a=Ju.readFileSync(t).toString():Ju.existsSync(e)&&(a=Ju.readFileSync(e).toString()),a}o(B$,"_readLinuxVersionFile");Ht._readLinuxVersionFile=B$});var VS=N((gte,FS)=>{var M$=require("crypto");FS.exports=o(function(){return M$.randomBytes(16)},"nodeRNG")});var WS=N((vte,GS)=>{var $S=[];for(Qp=0;Qp<256;++Qp)$S[Qp]=(Qp+256).toString(16).substr(1);var Qp;function L$(t,e){var a=e||0,i=$S;return[i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]]].join("")}o(L$,"bytesToUuid");GS.exports=L$});var KS=N((xte,XS)=>{var q$=VS(),z$=WS();function j$(t,e,a){var i=e&&a||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var r=t.random||(t.rng||q$)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var n=0;n<16;++n)e[i+n]=r[n];return e||z$(r)}o(j$,"v4");XS.exports=j$});var JS=N(za=>{"use strict";var k$=za&&za.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),U$=za&&za.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),H$=za&&za.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&k$(e,t,a);return U$(e,t),e},YS=za&&za.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(za,"__esModule",{value:!0});za.RetryHelper=void 0;var QS=H$(nt()),k6=class{static{o(this,"RetryHelper")}constructor(e,a,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(a),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,a){return YS(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(a&&!a(n))throw n;QS.info(n.message)}let r=this.getSleepAmount();QS.info(`Waiting ${r} seconds before trying again`),yield this.sleep(r),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return YS(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};za.RetryHelper=k6});var sE=N(oe=>{"use strict";var F$=oe&&oe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),V$=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ni=oe&&oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&F$(e,t,a);return V$(e,t),e},Gt=oe&&oe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})},$$=oe&&oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oe,"__esModule",{value:!0});oe.evaluateVersions=oe.isExplicitVersion=oe.findFromManifest=oe.getManifestFromRepo=oe.findAllVersions=oe.find=oe.cacheFile=oe.cacheDir=oe.extractZip=oe.extractXar=oe.extractTar=oe.extract7z=oe.downloadTool=oe.HTTPError=void 0;var we=Ni(nt()),va=Ni(ho()),ja=Ni(require("fs")),G$=Ni(HS()),Zp=Ni(require("os")),ti=Ni(require("path")),ZS=Ni(Lr()),Xi=Ni(Pl()),W$=Ni(require("stream")),X$=Ni(require("util")),no=require("assert"),eE=$$(KS()),Ar=Rn(),K$=JS(),Jp=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};oe.HTTPError=Jp;var H6=process.platform==="win32",Y$=process.platform==="darwin",Q$="actions/tool-cache";function J$(t,e,a,i){return Gt(this,void 0,void 0,function*(){e=e||ti.join(nE(),eE.default()),yield va.mkdirP(ti.dirname(e)),we.debug(`Downloading Line truncated
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}o(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}o(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}o(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}o(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}o(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}o(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}o(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}o(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}o(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}o(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}o(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}o(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}o(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{o(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}o(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}o(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}o(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}o(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}o(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{o(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(i){let r=this.ctx,n=i.key.pop();for(let s of i.key){if(hasKey(r,s)&&(!isTable(r[s])||r[s][_declared]))throw this.error(new TomlError("Can' Line truncated
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};ra.UsageError=eu;eu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var __=N(na=>{"use strict";var kU=na&&na.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),UU=na&&na.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),HU=na&&na.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&kU(e,t,a);return UU(e,t),e},FU=na&&na.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(na,"__esModule",{value:!0});na.uploadCacheArchiveSDK=na.UploadProgress=void 0;var w2=HU(nt()),VU=h2(),$U=x2(),tu=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);w2.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};na.UploadProgress=tu;function GU(t,e,a){var i;return FU(this,void 0,void 0,function*(){let r=new VU.BlobClient(t),n=r.getBlockBlobClient(),s=new tu((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),w2.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let l=yield n.uploadFile(e,p);if(l._response.status>=400)throw new $U.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw w2.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{s.stopDisplayTimer()}})}o(GU,"uploadCacheArchiveSDK");na.uploadCacheArchiveSDK=GU});var _2=N(Ze=>{"use strict";var WU=Ze&&Ze.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),XU=Ze&&Ze.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),KU=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&WU(e,t,a);return XU(e,t),e},iu=Ze&&Ze.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.retryHttpClientResponse=Ze.retryTypedResponse=Ze.retry=Ze.isRetryableStatusCode=Ze.isServerErrorStatusCode=Ze.isSuccessStatusCode=void 0;var S_=KU(nt()),au=Lr(),Is=Mn();function YU(t){return t?t>=200&&t<300:!1}o(YU,"isSuccessStatusCode");Ze.isSuccessStatusCode=YU;function E_(t){return t?t>=500:!0}o(E_,"isServerErrorStatusCode");Ze.isServerErrorStatusCode=E_;function C_(t){return t?[au.HttpCodes.BadGateway,au.HttpCodes.ServiceUnavailable,au.HttpCodes.GatewayTimeout].includes(t):!1}o(C_,"isRetryableStatusCode");Ze.isRetryableStatusCode=C_;function QU(t){return iu(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(QU,"sleep");function N2(t,e,a,i=Is.DefaultRetryAttempts,r=Is.DefaultRetryDelay,n= Line truncated
Other caches with similar key:`);for(let p of n?.artifactCaches||[])ga.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(AH,"printCachesListForDiagnostics");function BH(t,e,a){return sa(this,void 0,void 0,function*(){let i=new CH.URL(t),r=(0,O2.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,su.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,su.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,su.downloadCacheHttpClient)(t,e):yield(0,su.downloadCacheHttpClient)(t,e)})}o(BH,"downloadCache");Rt.downloadCache=BH;function MH(t,e,a){return sa(this,void 0,void 0,function*(){let i=R2(),r=As.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,Tr.retryTypedResponse)("reserveCache",()=>sa(this,void 0,void 0,function*(){return i.postJson(Bp("caches"),n)}))})}o(MH,"reserveCache");Rt.reserveCache=MH;function L_(t,e){return`bytes ${t}-${e}/*`}o(L_,"getContentRange");function LH(t,e,a,i,r){return sa(this,void 0,void 0,function*(){ga.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${L_(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":L_(i,r)},s=yield(0,Tr.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>sa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,Tr.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(LH,"uploadChunk");function qH(t,e,a,i){return sa(this,void 0,void 0,function*(){let r=As.getArchiveFileSizeInBytes(a),n=Bp(`caches/${e.toString()}`),s=C2.openSync(a,"r"),p=(0,O2.getUploadOptions)(i),l=As.assertDefined("uploadConcurrency",p.uploadConcurrency),d=As.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(l).keys()];ga.debug("Awaiting all uploads");let u=0;try{yield Promise.all(c.map(()=>sa(this,void 0,void 0,function*(){for(;u<r;){let m=Math.min(r-u,d),f=u,h=u+m-1;u+=d,yield LH(t,n,()=>C2.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",b=>{throw new Error(`Cache upload failed because file read failed with ${b.message}`)}),f,h)}})))}finally{C2.closeSync(s)}})}o(qH,"uploadFile");function zH(t,e,a){return sa(this,void 0,void 0,function*(){let i={size:a};return yield(0,Tr.retryTypedResponse)("commitCache",()=>sa(this,void 0,void 0,function*(){return t.postJson(Bp(`caches/${e.toString()}`),i)}))})}o(zH,"commitCache");function jH(t,e,a,i){return sa(this,void 0,void 0,function*(){if((0,O2.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,TH.uploadCacheArchiveSDK)(a,e,i)}else{let n=R2();ga.debug("Upload cache"),yield qH(n,t,e,i),ga.debug("Commiting cache");let s=As.getArchiveFileSizeInBytes(e);ga.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield zH(n,t,s);if(!(0,Tr.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);ga.info("Cache saved successfully")}})}o(jH,"saveCache");Rt.saveCache=jH});var ou=N(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.isJsonObject=Bs.typeofJsonValue=void 0;function kH(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(kH,"typeofJsonValue");Bs.typeofJsonValue=kH;function UH(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(UH,"isJsonObject");Bs.isJsonObject=UH});var lu=N(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.base64encode=Ms.base64decode=void 0;var $i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pu=[];for(let t=0;t<$i.length;t++)pu[$i[t].charCodeAt(0)]=t;pu["-".charCodeAt(0)]=$i.indexOf("+");pu["_".charCodeAt(0)]=$i.indexOf("/");function HH(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=pu[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(HH,"base64decode");Ms.base64decode=HH;function FH(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=$i[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=$i[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=$i[r|i>>6],e+=$i[i&63],a=0;break}return a&&(e+=$i[r],e+="=",a==1&&(e+="=")),e}o(FH,"base64encode");Ms.base64encode=FH});var z_=N(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.utf8read=void 0;var P2=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function VH(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(P2(i)),r=0);return a.length?(r&&a.push(P2(i.slice(0,r))),a.join("")):P2(i.slice(0,r))}o(VH,"utf8read");du.utf8read=VH});var Mp=N(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.WireType=vi.mergeBinaryOptions=vi.UnknownFieldHandler=void 0;var $H;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})($H=vi.UnknownFieldHandler||(vi.UnknownFieldHandler={}));function GH(t,e){return Object.assign(Object.assign({},t),e)}o(GH,"mergeBinaryOptions");vi.mergeBinaryOptions=GH;var WH;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(WH=vi.WireType||(vi.WireType={}))});var uu=N(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.varint32read=oa.varint32write=oa.int64toString=oa.int64fromString=oa.varint64write=oa.varint64read=void 0;function XH(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(XH,"varint64read");oa.varint64read=XH;function KH(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),l=(p?s|128:s)&255;if(a.push(l),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),l=(p?s|128:s)&255;if(a.push(l),!p)return}a.push(e>>>31&1)}}o(KH,"varint64write");oa.varint64write=KH;var cu=65536*65536;function YH(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let l=Number(t.slice(s,p));r*=a,i=i*a+l,i>=cu&&(r=r+(i/cu|0),i=i%cu)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(YH,"int64fromString");oa.int64fromString=YH;function QH(t,e){if(e>>>0<=2097151)return""+(cu*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,l=1e7;n>=l&&(s+=Math.floor(n/l),n%=l),s>=l&&(p+=Math.floor(s/l),s%=l);function d(c,u){let m=c?String(c):"";return u?"0000000".slice(m.length)+m:m}return o(d,"decimalFrom1e7"),d(p,0)+d(s,p)+d(n,1)}o(QH,"int64toString");oa.int64toString=QH;function JH(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(JH,"varint32write");oa.varint32write=JH;function ZH(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(ZH,"varint32read");oa.varint32read=ZH});var Rr=N(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.PbLong=Or.PbULong=Or.detectBi=void 0;var Lp=uu(),Be;function j_(){let t=new DataView(new ArrayBuffer(8));Be=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C: Line truncated
`)}};ju.RpcError=i6});var n6=N(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.mergeRpcOptions=void 0;var gS=lt();function wV(t,e){if(!e)return t;let a={};ku(t,a),ku(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=gS.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=gS.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},ku(t.meta,a.meta),ku(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(wV,"mergeRpcOptions");Uu.mergeRpcOptions=wV;function ku(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(ku,"copy")});var o6=N(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.Deferred=gn.DeferredState=void 0;var wi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(wi=gn.DeferredState||(gn.DeferredState={}));var s6=class{static{o(this,"Deferred")}constructor(e=!0){this._state=wi.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==wi.PENDING)throw new Error(`cannot resolve ${wi[this.state].toLowerCase()}`);this._resolve(e),this._state=wi.RESOLVED}reject(e){if(this.state!==wi.PENDING)throw new Error(`cannot reject ${wi[this.state].toLowerCase()}`);this._reject(e),this._state=wi.REJECTED}resolvePending(e){this._state===wi.PENDING&&this.resolve(e)}rejectPending(e){this._state===wi.PENDING&&this.reject(e)}};gn.Deferred=s6});var l6=N(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.RpcOutputStreamController=void 0;var yS=o6(),yn=lt(),p6=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){yn.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){yn.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){yn.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){yn.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;yn.assert(e,"bad state"),yn.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new yS.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;yn.assert(i.state==yS.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};Hu.RpcOutputStreamController=p6});var c6=N(Hs=>{"use strict";var NV=Hs&&Hs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.UnaryCall=void 0;var d6=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return NV(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};Hs.UnaryCall=d6});var m6=N(Fs=>{"use strict";var _V=Fs&&Fs.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function Line truncated
`));let i=yield M6(a,"create");yield L6(i,t)})}o(y$,"createTar");Ut.createTar=y$});var jS=N(dt=>{"use strict";var v$=dt&&dt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),b$=dt&&dt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Yp=dt&&dt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&v$(e,t,a);return b$(e,t),e},ro=dt&&dt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(dt,"__esModule",{value:!0});dt.saveCache=dt.restoreCache=dt.isFeatureAvailable=dt.ReserveCacheError=dt.ValidationError=void 0;var re=Yp(nt()),Yu=Yp(require("path")),Ue=Yp(qn()),io=Yp(q_()),qS=Yp(AS()),Qu=ru(),Dr=LS(),x$=Mn(),qa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};dt.ValidationError=qa;var vn=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};dt.ReserveCacheError=vn;function zS(t){if(!t||t.length===0)throw new qa("Path Validation Error: At least one directory or file path is required")}o(zS,"checkPaths");function q6(t){if(t.length>512)throw new qa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qa(`Key Validation Error: ${t} cannot contain commas.`)}o(q6,"checkKey");function w$(){return!!process.env.ACTIONS_CACHE_URL}o(w$,"isFeatureAvailable");dt.isFeatureAvailable=w$;function N$(t,e,a,i,r=!1){return ro(this,void 0,void 0,function*(){let n=(0,Qu.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),zS(t),n){case"v2":return yield S$(t,e,a,i,r);case"v1":default:return yield _$(t,e,a,i,r)}})}o(N$,"restoreCache");dt.restoreCache=N$;function _$(t,e,a,i,r=!1){return ro(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of n)q6(l);let s=yield Ue.getCompressionMethod(),p="";try{let l=yield io.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!l?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),l.cacheKey;p=Yu.join(yield Ue.createTempDirectory(),Ue.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield io.downloadCache(l.archiveLocation,p,i),re.isDebug()&&(yield(0,Dr.listTar)(p,s));let d=Ue.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,Dr.extractTar)(p,s),re.info("Cache restored successfully"),l.cacheKey}catch(l){if(l.name===qa.name)throw l;re.warning(`Failed to restore: ${l.message}`)}finally{try{yield Ue.unlinkFile(p)}catch(l){re.debug(`Failed to delete archive: ${l}`)}}})}o(_$,"restoreCacheV1");function S$(t,e,a,i,r=!1){return ro(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)q6(p);let s="";try{let p=qS.internalCacheTwirpClient(),l=yield Ue.getCompressionMethod(),d={key:e,restoreKeys:a,version:Ue.getCacheVersion(t,l,r)},c=yield p.GetCacheEntryDownloadURL(d);if(!c.ok){re.debug(`Cache not found for version ${d.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${d.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=Yu.join(yield Ue.createTempDirectory(),Ue.getCacheFileName(l)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield io.downloadCache(c.signedDownloadUrl,s,i);let u=Ue.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),re.isDebug()&&(yield(0,Dr.listTar)(s,l)),yield(0,Dr.extractTar)(s,l),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===qa.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield Ue.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(S$,"restoreCacheV2");function E$(t,e,a,i=!1){return ro(this,void 0,void 0,function*(){let r=(0,Qu.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
`);for(let r of i){let n=r.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}o(B$,"_getOsVersion");Ht._getOsVersion=B$;function M$(){let t="/etc/lsb-release",e="/etc/os-release",a="";return Ju.existsSync(t)?a=Ju.readFileSync(t).toString():Ju.existsSync(e)&&(a=Ju.readFileSync(e).toString()),a}o(M$,"_readLinuxVersionFile");Ht._readLinuxVersionFile=M$});var VS=N((yte,FS)=>{var L$=require("crypto");FS.exports=o(function(){return L$.randomBytes(16)},"nodeRNG")});var WS=N((bte,GS)=>{var $S=[];for(Qp=0;Qp<256;++Qp)$S[Qp]=(Qp+256).toString(16).substr(1);var Qp;function q$(t,e){var a=e||0,i=$S;return[i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]]].join("")}o(q$,"bytesToUuid");GS.exports=q$});var KS=N((wte,XS)=>{var z$=VS(),j$=WS();function k$(t,e,a){var i=e&&a||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var r=t.random||(t.rng||z$)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var n=0;n<16;++n)e[i+n]=r[n];return e||j$(r)}o(k$,"v4");XS.exports=k$});var JS=N(za=>{"use strict";var U$=za&&za.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),H$=za&&za.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),F$=za&&za.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&U$(e,t,a);return H$(e,t),e},YS=za&&za.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(za,"__esModule",{value:!0});za.RetryHelper=void 0;var QS=F$(nt()),k6=class{static{o(this,"RetryHelper")}constructor(e,a,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(a),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,a){return YS(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(a&&!a(n))throw n;QS.info(n.message)}let r=this.getSleepAmount();QS.info(`Waiting ${r} seconds before trying again`),yield this.sleep(r),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return YS(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};za.RetryHelper=k6});var sE=N(oe=>{"use strict";var V$=oe&&oe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),$$=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ni=oe&&oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&V$(e,t,a);return $$(e,t),e},Gt=oe&&oe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})},G$=oe&&oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oe,"__esModule",{value:!0});oe.evaluateVersions=oe.isExplicitVersion=oe.findFromManifest=oe.getManifestFromRepo=oe.findAllVersions=oe.find=oe.cacheFile=oe.cacheDir=oe.extractZip=oe.extractXar=oe.extractTar=oe.extract7z=oe.downloadTool=oe.HTTPError=void 0;var we=Ni(nt()),va=Ni(ho()),ja=Ni(require("fs")),W$=Ni(HS()),Zp=Ni(require("os")),ti=Ni(require("path")),ZS=Ni(Lr()),Xi=Ni(Pl()),X$=Ni(require("stream")),K$=Ni(require("util")),no=require("assert"),eE=G$(KS()),Ar=Rn(),Y$=JS(),Jp=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};oe.HTTPError=Jp;var H6=process.platform==="win32",Q$=process.platform==="darwin",J$="actions/tool-cache";function Z$(t,e,a,i){return Gt(this,void 0,void 0,function*(){e=e||ti.join(nE(),eE.default()),yield va.mkdirP(ti.dirname(e)),we.debug(`Downloading Line truncated
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}o(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}o(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}o(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}o(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}o(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}o(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}o(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}o(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}o(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}o(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}o(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}o(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}o(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{o(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}o(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}o(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}o(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}o(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}o(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{o(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(i){let r=this.ctx,n=i.key.pop();for(let s of i.key){if(hasKey(r,s)&&(!isTable(r[s])||r[s][_declared]))throw this.error(new TomlError("Can' Line truncated
`,e&&e.split){let i=e.split(/\n/),r=String(Math.min(i.length,t.line+3)).length,n=" ";for(;n.length<r;)n+=" ";for(let s=Math.max(0,t.line-1);s<Math.min(i.length,t.line+2);++s){let p=String(s+1);if(p.length<r&&(p=" "+p),t.line===s){a+=p+"> "+i[s]+`
`,a+=n+" ";for(let l=0;l<t.col;++l)a+=" ";a+=`^
`}else a+=p+": "+i[s]+`
`}}return t.message=a+`
`,t}o(mG,"prettyError")});var wE=N((jte,xE)=>{"use strict";xE.exports=gG;var fG=rm(),hG=nm();function gG(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new fG;try{return e.parse(t),e.finish()}catch(a){throw hG(a,t)}}o(gG,"parseString")});var SE=N((Ute,_E)=>{"use strict";_E.exports=vG;var yG=rm(),NE=nm();function vG(t,e){e||(e={});let a=0,i=e.blocksize||40960,r=new yG;return new Promise((s,p)=>{setImmediate(n,a,i,s,p)});function n(s,p,l,d){if(s>=t.length)try{return l(r.finish())}catch(c){return d(NE(c,t))}try{r.parse(t.slice(s,s+p)),setImmediate(n,s+p,p,l,d)}catch(c){d(NE(c,t))}}}o(vG,"parseAsync")});var TE=N((Fte,CE)=>{"use strict";CE.exports=xG;var bG=require("stream"),EE=rm();function xG(t){return t?wG(t):NG(t)}o(xG,"parseStream");function wG(t){let e=new EE;return t.setEncoding("utf8"),new Promise((a,i)=>{let r,n=!1,s=!1;function p(){if(n=!0,!r)try{a(e.finish())}catch(c){i(c)}}o(p,"finish");function l(c){s=!0,i(c)}o(l,"error"),t.once("end",p),t.once("error",l),d();function d(){r=!0;let c;for(;(c=t.read())!==null;)try{e.parse(c)}catch(u){return l(u)}if(r=!1,n)return p();s||t.once("readable",d)}o(d,"readNext")})}o(wG,"parseReadable");function NG(){let t=new EE;return new bG.Transform({objectMode:!0,transform(e,a,i){try{t.parse(e.toString(a))}catch(r){this.emit("error",r)}i()},flush(e){try{this.push(t.finish())}catch(a){this.emit("error",a)}e()}})}o(NG,"parseTransform")});var OE=N(($te,tl)=>{"use strict";tl.exports=wE();tl.exports.async=SE();tl.exports.stream=TE();tl.exports.prettyError=nm()});var LE=N((Gte,K6)=>{"use strict";K6.exports=_G;K6.exports.value=X6;function _G(t){if(t===null)throw xn("null");if(t===void 0)throw xn("undefined");if(typeof t!="object")throw xn(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=la(t);if(e!=="table")throw xn(e);return W6("","",t)}o(_G,"stringify");function xn(t){return new Error("Can only stringify objects, not "+t)}o(xn,"typeError");function SG(){return new Error("Array values can't have mixed types")}o(SG,"arrayOneTypeError");function RE(t){return Object.keys(t).filter(e=>PE(t[e]))}o(RE,"getInlineKeys");function EG(t){return Object.keys(t).filter(e=>!PE(t[e]))}o(EG,"getComplexKeys");function sm(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let a of Object.keys(t))t[a]&&typeof t[a].toJSON=="function"&&!("toISOString"in t[a])?e[a]=t[a].toJSON():e[a]=t[a];return e}o(sm,"toJSON");function W6(t,e,a){a=sm(a);var i,r;i=RE(a),r=EG(a);var n=[],s=e||"";i.forEach(l=>{var d=la(a[l]);d!=="undefined"&&d!=="null"&&n.push(s+om(l)+" = "+AE(a[l],!0))}),n.length>0&&n.push("");var p=t&&i.length>0?e+" ":"";return r.forEach(l=>{n.push(LG(t,p,l,a[l]))}),n.join(`
`)}o(W6,"stringifyObject");function PE(t){switch(la(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||la(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}o(PE,"isInline");function la(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}o(la,"tomlType");function om(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:IE(e)}o(om,"stringifyKey");function IE(t){return'"'+DE(t).replace(/"/g,'\\"')+'"'}o(IE,"stringifyBasicString");function CG(t){return"'"+t+"'"}o(CG,"stringifyLiteralString");function TG(t,e){for(;e.length<t;)e="0"+e;return e}o(TG,"numpad");function DE(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+TG(4,e.codePointAt(0).toString(16)))}o(DE,"escapeString");function OG(t){let e=t.split(/\n/).map(a=>DE(a).replace(/"(?="")/g,'\\"')).join(`
`,t}o(fG,"prettyError")});var wE=N((kte,xE)=>{"use strict";xE.exports=yG;var hG=rm(),gG=nm();function yG(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new hG;try{return e.parse(t),e.finish()}catch(a){throw gG(a,t)}}o(yG,"parseString")});var SE=N((Hte,_E)=>{"use strict";_E.exports=bG;var vG=rm(),NE=nm();function bG(t,e){e||(e={});let a=0,i=e.blocksize||40960,r=new vG;return new Promise((s,p)=>{setImmediate(n,a,i,s,p)});function n(s,p,l,d){if(s>=t.length)try{return l(r.finish())}catch(c){return d(NE(c,t))}try{r.parse(t.slice(s,s+p)),setImmediate(n,s+p,p,l,d)}catch(c){d(NE(c,t))}}}o(bG,"parseAsync")});var TE=N((Vte,CE)=>{"use strict";CE.exports=wG;var xG=require("stream"),EE=rm();function wG(t){return t?NG(t):_G(t)}o(wG,"parseStream");function NG(t){let e=new EE;return t.setEncoding("utf8"),new Promise((a,i)=>{let r,n=!1,s=!1;function p(){if(n=!0,!r)try{a(e.finish())}catch(c){i(c)}}o(p,"finish");function l(c){s=!0,i(c)}o(l,"error"),t.once("end",p),t.once("error",l),d();function d(){r=!0;let c;for(;(c=t.read())!==null;)try{e.parse(c)}catch(u){return l(u)}if(r=!1,n)return p();s||t.once("readable",d)}o(d,"readNext")})}o(NG,"parseReadable");function _G(){let t=new EE;return new xG.Transform({objectMode:!0,transform(e,a,i){try{t.parse(e.toString(a))}catch(r){this.emit("error",r)}i()},flush(e){try{this.push(t.finish())}catch(a){this.emit("error",a)}e()}})}o(_G,"parseTransform")});var OE=N((Gte,tl)=>{"use strict";tl.exports=wE();tl.exports.async=SE();tl.exports.stream=TE();tl.exports.prettyError=nm()});var LE=N((Wte,K6)=>{"use strict";K6.exports=SG;K6.exports.value=X6;function SG(t){if(t===null)throw xn("null");if(t===void 0)throw xn("undefined");if(typeof t!="object")throw xn(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=la(t);if(e!=="table")throw xn(e);return W6("","",t)}o(SG,"stringify");function xn(t){return new Error("Can only stringify objects, not "+t)}o(xn,"typeError");function EG(){return new Error("Array values can't have mixed types")}o(EG,"arrayOneTypeError");function RE(t){return Object.keys(t).filter(e=>PE(t[e]))}o(RE,"getInlineKeys");function CG(t){return Object.keys(t).filter(e=>!PE(t[e]))}o(CG,"getComplexKeys");function sm(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let a of Object.keys(t))t[a]&&typeof t[a].toJSON=="function"&&!("toISOString"in t[a])?e[a]=t[a].toJSON():e[a]=t[a];return e}o(sm,"toJSON");function W6(t,e,a){a=sm(a);var i,r;i=RE(a),r=CG(a);var n=[],s=e||"";i.forEach(l=>{var d=la(a[l]);d!=="undefined"&&d!=="null"&&n.push(s+om(l)+" = "+AE(a[l],!0))}),n.length>0&&n.push("");var p=t&&i.length>0?e+" ":"";return r.forEach(l=>{n.push(qG(t,p,l,a[l]))}),n.join(`
`)}o(W6,"stringifyObject");function PE(t){switch(la(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||la(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}o(PE,"isInline");function la(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}o(la,"tomlType");function om(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:IE(e)}o(om,"stringifyKey");function IE(t){return'"'+DE(t).replace(/"/g,'\\"')+'"'}o(IE,"stringifyBasicString");function TG(t){return"'"+t+"'"}o(TG,"stringifyLiteralString");function OG(t,e){for(;e.length<t;)e="0"+e;return e}o(OG,"numpad");function DE(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+OG(4,e.codePointAt(0).toString(16)))}o(DE,"escapeString");function RG(t){let e=t.split(/\n/).map(a=>DE(a).replace(/"(?="")/g,'\\"')).join(`
`);return e.slice(-1)==='"'&&(e+=`\\
`),`"""
`+e+'"""'}o(OG,"stringifyMultilineString");function AE(t,e){let a=la(t);return a==="string"&&(e&&/\n/.test(t)?a="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(a="string-literal")),X6(t,a)}o(AE,"stringifyAnyInline");function X6(t,e){switch(e||(e=la(t)),e){case"string-multiline":return OG(t);case"string":return IE(t);case"string-literal":return CG(t);case"integer":return BE(t);case"float":return RG(t);case"boolean":return PG(t);case"datetime":return IG(t);case"array":return BG(t.filter(a=>la(a)!=="null"&&la(a)!=="undefined"&&la(a)!=="nan"));case"table":return MG(t);default:throw xn(e)}}o(X6,"stringifyInline");function BE(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}o(BE,"stringifyInteger");function RG(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),a=e[0],i=e[1]||0;return BE(a)+"."+i}o(RG,"stringifyFloat");function PG(t){return String(t)}o(PG,"stringifyBoolean");function IG(t){return t.toISOString()}o(IG,"stringifyDatetime");function DG(t){return t==="float"||t==="integer"}o(DG,"isNumber");function AG(t){var e=la(t[0]);return t.every(a=>la(a)===e)?e:t.every(a=>DG(la(a)))?"float":"mixed"}o(AG,"arrayType");function ME(t){let e=AG(t);if(e==="mixed")throw SG();return e}o(ME,"validateArray");function BG(t){t=sm(t);let e=ME(t);var a="[",i=t.map(r=>X6(r,e));return i.join(", ").length>60||/\n/.test(i)?a+=`
`+e+'"""'}o(RG,"stringifyMultilineString");function AE(t,e){let a=la(t);return a==="string"&&(e&&/\n/.test(t)?a="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(a="string-literal")),X6(t,a)}o(AE,"stringifyAnyInline");function X6(t,e){switch(e||(e=la(t)),e){case"string-multiline":return RG(t);case"string":return IE(t);case"string-literal":return TG(t);case"integer":return BE(t);case"float":return PG(t);case"boolean":return IG(t);case"datetime":return DG(t);case"array":return MG(t.filter(a=>la(a)!=="null"&&la(a)!=="undefined"&&la(a)!=="nan"));case"table":return LG(t);default:throw xn(e)}}o(X6,"stringifyInline");function BE(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}o(BE,"stringifyInteger");function PG(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),a=e[0],i=e[1]||0;return BE(a)+"."+i}o(PG,"stringifyFloat");function IG(t){return String(t)}o(IG,"stringifyBoolean");function DG(t){return t.toISOString()}o(DG,"stringifyDatetime");function AG(t){return t==="float"||t==="integer"}o(AG,"isNumber");function BG(t){var e=la(t[0]);return t.every(a=>la(a)===e)?e:t.every(a=>AG(la(a)))?"float":"mixed"}o(BG,"arrayType");function ME(t){let e=BG(t);if(e==="mixed")throw EG();return e}o(ME,"validateArray");function MG(t){t=sm(t);let e=ME(t);var a="[",i=t.map(r=>X6(r,e));return i.join(", ").length>60||/\n/.test(i)?a+=`
`+i.join(`,
`)+`
`:a+=" "+i.join(", ")+(i.length>0?" ":""),a+"]"}o(BG,"stringifyInlineArray");function MG(t){t=sm(t);var e=[];return Object.keys(t).forEach(a=>{e.push(om(a)+" = "+AE(t[a],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}o(MG,"stringifyInlineTable");function LG(t,e,a,i){var r=la(i);if(r==="array")return qG(t,e,a,i);if(r==="table")return zG(t,e,a,i);throw xn(r)}o(LG,"stringifyComplex");function qG(t,e,a,i){i=sm(i),ME(i);var r=la(i[0]);if(r!=="table")throw xn(r);var n=t+om(a),s="";return i.forEach(p=>{s.length>0&&(s+=`
`:a+=" "+i.join(", ")+(i.length>0?" ":""),a+"]"}o(MG,"stringifyInlineArray");function LG(t){t=sm(t);var e=[];return Object.keys(t).forEach(a=>{e.push(om(a)+" = "+AE(t[a],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}o(LG,"stringifyInlineTable");function qG(t,e,a,i){var r=la(i);if(r==="array")return zG(t,e,a,i);if(r==="table")return jG(t,e,a,i);throw xn(r)}o(qG,"stringifyComplex");function zG(t,e,a,i){i=sm(i),ME(i);var r=la(i[0]);if(r!=="table")throw xn(r);var n=t+om(a),s="";return i.forEach(p=>{s.length>0&&(s+=`
`),s+=e+"[["+n+`]]
`,s+=W6(n+".",e,p)}),s}o(qG,"stringifyArrayOfTables");function zG(t,e,a,i){var r=t+om(a),n="";return RE(i).length>0&&(n+=e+"["+r+`]
`),n+W6(r+".",e,i)}o(zG,"stringifyComplexTable")});var qE=N(Y6=>{"use strict";Y6.parse=OE();Y6.stringify=LE()});var iC=require("node:os"),Dt=ba(nt());var YE=require("node:crypto"),QE=require("node:os"),uo=require("node:path"),ka=require("node:fs"),Mr=ba(nt()),um=ba(jS()),il=ba(sE()),t4=ba(Rn());var oo=require("node:fs"),Q6=ba(nt()),pm=ba(qE());function zE(t,e){if(!e.length)return;let a=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||a++}),a>1)throw new Error("You can't have more than one global registry.");(0,Q6.info)(`Writing bunfig.toml to '${t}'.`);let i={};if((0,oo.existsSync)(t))try{let n=(0,oo.readFileSync)(t,{encoding:"utf-8"});i=(0,pm.parse)(n)}catch(n){(0,Q6.info)(`Error reading existing bunfig: ${n.message}`),i={}}i.install=i?.install||{},i.install.scopes=i?.install.scopes||{};let r=e.find(n=>!n.scope);r&&(i.install.registry={url:r.url,...r.token?{token:r.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;i.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(i.install.scopes).length===0&&delete i.install.scopes,(0,oo.writeFileSync)(t,(0,pm.stringify)(i),{encoding:"utf8"})}o(zE,"writeBunfig");var JE=ba(nt());var wn=ba(nt()),jE=require("node:console"),po=require("node:fs"),lm=require("node:path");async function kE(t,e){let a=new Headers(e?.headers);a.has("User-Agent")||a.set("User-Agent","@oven-sh/setup-bun");let i=await fetch(t,{...e,headers:a});if(!i.ok){let r=await i.text().catch(()=>"");throw new Error(`Failed to fetch url ${t}. (status code: ${i.status}, status text: ${i.statusText})${r?`
${r}`:""}`)}return i}o(kE,"request");function UE(t,e){return t.endsWith(e)?t:((0,po.renameSync)(t,t+e),t+e)}o(UE,"addExtension");function dm(){let t=process.platform;return t==="win32"?"windows":t}o(dm,"getPlatform");function HE(t,e){return t==="windows"&&(e==="aarch64"||e==="arm64")?((0,wn.warning)(["\u26A0\uFE0F Bun does not provide native arm64 builds for Windows.","Using x64 baseline build which will run through Microsoft's x64 emulation layer.","This may result in reduced performance and potential compatibility issues.","\u{1F4A1} For best performance, consider using x64 Windows runners or other platforms with native support."].join(`
`)),"x64"):e==="arm64"?"aarch64":e}o(HE,"getArchitecture");function FE(t,e,a){return t==="windows"&&(e==="aarch64"||e==="arm64")?!1:a??!0}o(FE,"getAvx2");var jG={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function J6(t,e=!1){let a=process.env.GITHUB_WORKSPACE;if(!a||!t)return;(0,wn.debug)(`Reading version from ${t}`);let i=(0,lm.resolve)(a,t),r=(0,lm.basename)(t);if(!(0,po.existsSync)(i)){e||(0,wn.warning)(`File ${i} not found`);return}let n=jG[r]??(()=>{}),s;try{if(s=n((0,po.readFileSync)(i,"utf8"))?.trim(),!s){e||(0,wn.warning)(`Failed to read version from ${t}`);return}}catch(p){let{message:l}=p;e||(0,wn.warning)(`Failed to read ${t}: ${l}`)}finally{if(s)return(0,jE.info)(`Obtained version ${s} from ${t}`),s}}o(J6,"readVersionFromFile");var Z6=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lo=o(t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");let e=t.match(Z6);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},"validateAndParse"),VE=o(t=>t==="*"||t==="x"||t==="X","isWildcard"),$E=o(t=>{let e=parseInt(t,10);return isNaN(e)?t:e},"tryParse"),kG=o((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],"forceType"),UG=o((t,e)=>{if(VE(t)||VE(e))return 0;let[a,i]=kG($E(t),$E(e));return a>i?1:a<i?-1:0},"compareStrings"),Br=o((t,e)=>{for(let a=0;a<Math.max(t.length,e.length);a++){let i=UG(t[a]||"x",e[a]||"x");if(i!==0)return i}return 0},"compareSegments");var al=o((t,e)=>{let a=lo(t),i=lo(e),r=a.pop(),n=i.pop(),s=Br(a,i);return s!==0?s:r&&n?Br(r.split("."),n.split(".")):r||n?r?-1:1:0},"compareVersions");var WE=o((t,e,a)=>{HG(a);let i=al(t,e);return XE[a].includes(i)},"compare"),XE={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},GE=Object.keys(XE),HG=o(t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(GE.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${GE.join("|")}`)},"assertValidOperator");var co=o((t,e)=>{if(e=e.replace(/([><=]+)\s+/g,"$1"),e.includes("||"))return e.split("||").some(C=>co(t,C));if(e.includes(" - ")){let[C,E]=e.split(" - ",2);return co(t,`>=${C} <=${E}`)}else if(e.includes(" "))return e.trim().replace(/\s{2,}/g," ").split(" ").every(C=>co(t,C));let a=e.match(/^([<>=~^]+)/),i=a?a[1]:"=";if(i!=="^"&&i!=="~")return WE(t,e,i);let[r,n,s,,p]=lo(t),[l,d,c,,u]=lo(e),m=[r,n??"x",s??"x"],f=[l,d??"x",c??"x"];if(u&&(!p||Br(m,f)!==0||Br(p.split("."),u.split("."))===-1))return!1;let h=f.findIndex(C=>C!=="0")+1,b=i==="~"?2:h>1?h:1;return!(Br(m.slice(0,b),f.slice(0,b))!==0||Br(m.slice(b),f.slice(b))===-1)},"satisfies");var cm=o(t=>typeof t=="string"&&/^[v\d]/.test(t)&&Z6.test(t),"validate"),e4=o(t=>typeof t=="string"&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(t),"validateStrict");async function KE(t){let{customUrl:e}=t;return e||await FG(t)}o(KE,"getDownloadUrl");async function FG(t){let{version:e,os:a,arch:i,avx2:r,profile:n}=t,s;if(e4(e)&&(s=`bun-v${e}`),!s){let h=(await(await kE("https://api.github.com/repos/oven-sh/bun/git/refs/tags",{headers:t.token?{Authorization:`Bearer ${t.token}`}:{}})).json()).filter(b=>b.ref.startsWith("refs/tags/bun-v")||b.ref==="refs/tags/canary").map(b=>b.ref.replace(/refs\/tags\/(bun-v)?/g,"")).filter(Boolean);if(s=h.find(b=>b===e),s)cm(s)&&(s=`bun-v${s}`);else{h=h.filter(C=>cm(C)).sort(al);let b=e==="latest"||!e?h.at(-1):h.filter(C=>co(C,e)).at(-1);if(!b)throw new Error(`No Bun release found matching version '${e}'`);s=`bun-v${b}`}}let p=encodeURIComponent(s??e),l=encodeURIComponent(a??dm()),d=encodeURIComponent(HE(a??dm(),i??process.arch)),c=encodeURIComponent(FE(a??dm(),i??process.arch,r)===!1?"-baseline":""),u=encodeURIComponent(n===!0?"-profile":""),{href:m}=new URL(`${p}/bun-${l}-${d}${c}${u}.zip`,"https://github.com/oven-sh/bun/releases/download/");return m}o(FG,"getSemverDownloadUrl");var ZE=require("node:process");var eC=o(async t=>{let e=(0,uo.join)((0,ZE.cwd)(),"bunfig.toml");zE(e,t.registries);let a=await KE(t),i=GG(t),r=(0,uo.join)((0,QE.homedir)(),".bun","bin");try{(0,ka.mkdirSync)(r,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,Mr.addPath)(r);let n=o(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,uo.join)(r,n("bun"));try{(0,ka.symlinkSync)(s,(0,uo.join)(r,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let p,l=!1;if(!t.customUrl&&(0,ka.existsSync)(s)){let u=await i4(s);u&&VG(u,t.version)&&(p=u,l=!0,(0,Mr.info)(`Using existing Bun installation: ${p}`))}if(!p){if(i){let u=(0,YE.createHash)("sha1").update(a).digest("base64");await(0,um.restoreCache)([s],u)&&(p=await i4(s),p?(l=!0, Line truncated
`).map(e=>e.trim()).filter(Boolean).map(WG).filter(Boolean):[]}o(tC,"parseRegistries");function WG(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let a=e[1],i=e[2].trim(),[r,n]=i.split("|",2).map(s=>s?.trim());try{return new URL(r),{url:r,scope:a,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${r}`)}}else{let[a,i]=t.split("|",2).map(r=>r?.trim());try{return new URL(a),{url:a,scope:"",...i&&{token:i}}}catch{throw new Error(`Invalid URL in registry configuration: ${a}`)}}}o(WG,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,iC.tmpdir)());var rC=tC((0,Dt.getInput)("registries")),aC=(0,Dt.getInput)("registry-url"),XG=(0,Dt.getInput)("scope");aC&&rC.push({url:aC,scope:XG,token:"$BUN_AUTH_TOKEN"});eC({version:(0,Dt.getInput)("bun-version")||J6((0,Dt.getInput)("bun-version-file"))||J6("package.json",!0)||void 0,customUrl:(0,Dt.getInput)("bun-download-url")||void 0,registries:rC,noCache:(0,Dt.getBooleanInput)("no-cache")||!1,token:(0,Dt.getInput)("token")}).then(({version:t,revision:e,bunPath:a,url:i,cacheHit:r})=>{(0,Dt.setOutput)("bun-version",t),(0,Dt.setOutput)("bun-revision",e),(0,Dt.setOutput)("bun-path",a),(0,Dt.setOutput)("bun-download-url",i),(0,Dt.setOutput)("cache-hit",r),process.exit(0)}).catch(t=>{(0,Dt.setFailed)(t),process.exit(1)});
`,s+=W6(n+".",e,p)}),s}o(zG,"stringifyArrayOfTables");function jG(t,e,a,i){var r=t+om(a),n="";return RE(i).length>0&&(n+=e+"["+r+`]
`),n+W6(r+".",e,i)}o(jG,"stringifyComplexTable")});var qE=N(Y6=>{"use strict";Y6.parse=OE();Y6.stringify=LE()});var rC=require("node:os"),Dt=ba(nt());var JE=require("node:os"),uo=require("node:path"),ka=require("node:fs"),Mr=ba(nt()),um=ba(jS()),il=ba(sE()),t4=ba(Rn());var oo=require("node:fs"),Q6=ba(nt()),pm=ba(qE());function zE(t,e){if(!e.length)return;let a=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||a++}),a>1)throw new Error("You can't have more than one global registry.");(0,Q6.info)(`Writing bunfig.toml to '${t}'.`);let i={};if((0,oo.existsSync)(t))try{let n=(0,oo.readFileSync)(t,{encoding:"utf-8"});i=(0,pm.parse)(n)}catch(n){(0,Q6.info)(`Error reading existing bunfig: ${n.message}`),i={}}i.install=i?.install||{},i.install.scopes=i?.install.scopes||{};let r=e.find(n=>!n.scope);r&&(i.install.registry={url:r.url,...r.token?{token:r.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;i.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(i.install.scopes).length===0&&delete i.install.scopes,(0,oo.writeFileSync)(t,(0,pm.stringify)(i),{encoding:"utf8"})}o(zE,"writeBunfig");var ZE=ba(nt());var wn=ba(nt()),jE=require("node:console"),kE=require("node:crypto"),po=require("node:fs"),lm=require("node:path");function UE(t){return`bun-${(0,kE.createHash)("sha1").update(t).digest("base64")}`}o(UE,"getCacheKey");async function HE(t,e){let a=new Headers(e?.headers);a.has("User-Agent")||a.set("User-Agent","@oven-sh/setup-bun");let i=await fetch(t,{...e,headers:a});if(!i.ok){let r=await i.text().catch(()=>"");throw new Error(`Failed to fetch url ${t}. (status code: ${i.status}, status text: ${i.statusText})${r?`
${r}`:""}`)}return i}o(HE,"request");function FE(t,e){return t.endsWith(e)?t:((0,po.renameSync)(t,t+e),t+e)}o(FE,"addExtension");function dm(){let t=process.platform;return t==="win32"?"windows":t}o(dm,"getPlatform");function VE(t,e){return t==="windows"&&(e==="aarch64"||e==="arm64")?((0,wn.warning)(["\u26A0\uFE0F Bun does not provide native arm64 builds for Windows.","Using x64 baseline build which will run through Microsoft's x64 emulation layer.","This may result in reduced performance and potential compatibility issues.","\u{1F4A1} For best performance, consider using x64 Windows runners or other platforms with native support."].join(`
`)),"x64"):e==="arm64"?"aarch64":e}o(VE,"getArchitecture");function $E(t,e,a){return t==="windows"&&(e==="aarch64"||e==="arm64")?!1:a??!0}o($E,"getAvx2");var kG={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function J6(t,e=!1){let a=process.env.GITHUB_WORKSPACE;if(!a||!t)return;(0,wn.debug)(`Reading version from ${t}`);let i=(0,lm.resolve)(a,t),r=(0,lm.basename)(t);if(!(0,po.existsSync)(i)){e||(0,wn.warning)(`File ${i} not found`);return}let n=kG[r]??(()=>{}),s;try{if(s=n((0,po.readFileSync)(i,"utf8"))?.trim(),!s){e||(0,wn.warning)(`Failed to read version from ${t}`);return}}catch(p){let{message:l}=p;e||(0,wn.warning)(`Failed to read ${t}: ${l}`)}finally{if(s)return(0,jE.info)(`Obtained version ${s} from ${t}`),s}}o(J6,"readVersionFromFile");var Z6=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lo=o(t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");let e=t.match(Z6);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},"validateAndParse"),GE=o(t=>t==="*"||t==="x"||t==="X","isWildcard"),WE=o(t=>{let e=parseInt(t,10);return isNaN(e)?t:e},"tryParse"),UG=o((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],"forceType"),HG=o((t,e)=>{if(GE(t)||GE(e))return 0;let[a,i]=UG(WE(t),WE(e));return a>i?1:a<i?-1:0},"compareStrings"),Br=o((t,e)=>{for(let a=0;a<Math.max(t.length,e.length);a++){let i=HG(t[a]||"x",e[a]||"x");if(i!==0)return i}return 0},"compareSegments");var al=o((t,e)=>{let a=lo(t),i=lo(e),r=a.pop(),n=i.pop(),s=Br(a,i);return s!==0?s:r&&n?Br(r.split("."),n.split(".")):r||n?r?-1:1:0},"compareVersions");var KE=o((t,e,a)=>{FG(a);let i=al(t,e);return YE[a].includes(i)},"compare"),YE={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},XE=Object.keys(YE),FG=o(t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(XE.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${XE.join("|")}`)},"assertValidOperator");var co=o((t,e)=>{if(e=e.replace(/([><=]+)\s+/g,"$1"),e.includes("||"))return e.split("||").some(C=>co(t,C));if(e.includes(" - ")){let[C,E]=e.split(" - ",2);return co(t,`>=${C} <=${E}`)}else if(e.includes(" "))return e.trim().replace(/\s{2,}/g," ").split(" ").every(C=>co(t,C));let a=e.match(/^([<>=~^]+)/),i=a?a[1]:"=";if(i!=="^"&&i!=="~")return KE(t,e,i);let[r,n,s,,p]=lo(t),[l,d,c,,u]=lo(e),m=[r,n??"x",s??"x"],f=[l,d??"x",c??"x"];if(u&&(!p||Br(m,f)!==0||Br(p.split("."),u.split("."))===-1))return!1;let h=f.findIndex(C=>C!=="0")+1,b=i==="~"?2:h>1?h:1;return!(Br(m.slice(0,b),f.slice(0,b))!==0||Br(m.slice(b),f.slice(b))===-1)},"satisfies");var cm=o(t=>typeof t=="string"&&/^[v\d]/.test(t)&&Z6.test(t),"validate"),e4=o(t=>typeof t=="string"&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(t),"validateStrict");async function QE(t){let{customUrl:e}=t;return e||await VG(t)}o(QE,"getDownloadUrl");async function VG(t){let{version:e,os:a,arch:i,avx2:r,profile:n}=t,s;if(e4(e)&&(s=`bun-v${e}`),!s){let h=(await(await HE("https://api.github.com/repos/oven-sh/bun/git/refs/tags",{headers:t.token?{Authorization:`Bearer ${t.token}`}:{}})).json()).filter(b=>b.ref.startsWith("refs/tags/bun-v")||b.ref==="refs/tags/canary").map(b=>b.ref.replace(/refs\/tags\/(bun-v)?/g,"")).filter(Boolean);if(s=h.find(b=>b===e),s)cm(s)&&(s=`bun-v${s}`);else{h=h.filter(C=>cm(C)).sort(al);let b=e==="latest"||!e?h.at(-1):h.filter(C=>co(C,e)).at(-1);if(!b)throw new Error(`No Bun release found matching version '${e}'`);s=`bun-v${b}`}}let p=encodeURIComponent(s??e),l=encodeURIComponent(a??dm()),d=encodeURIComponent(VE(a??dm(),i??process.arch)),c=encodeURIComponent($E(a??dm(),i??process.arch,r)===!1?"-baseline":""),u=encodeURIComponent(n===!0?"-profile":""),{href:m}=new URL(`${p}/bun-${l}-${d}${c}${u}.zip`,"https://github.com/oven-sh/bun/releases/download/");return m}o(VG,"getSemverDownloadUrl");var eC=require("node:process");var tC=o(async t=>{let e=(0,uo.join)((0,eC.cwd)(),"bunfig.toml");zE(e,t.registries);let a=await QE(t),i=WG(t),r=(0,uo.join)((0,JE.homedir)(),".bun","bin");try{(0,ka.mkdirSync)(r,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,Mr.addPath)(r);let n=o(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,uo.join)(r,n("bun"));try{(0,ka.symlinkSync)(s,(0,uo.join)(r,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let p,l=!1;if(!t.customUrl&&(0,ka.existsSync)(s)){let u=await i4(s);u&&$G(u,t.version)&&(p=u,l=!0,(0,Mr.info)(`Using existing Bun installation: ${p}`))}if(!p){if(i){let u=UE(a);await(0,um.restoreCache)([s],u)&&(p=await i4(s),p?(l=!0,(0,Mr.info)(`Using a cached version of Bun: ${pLine truncated
`).map(e=>e.trim()).filter(Boolean).map(XG).filter(Boolean):[]}o(aC,"parseRegistries");function XG(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let a=e[1],i=e[2].trim(),[r,n]=i.split("|",2).map(s=>s?.trim());try{return new URL(r),{url:r,scope:a,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${r}`)}}else{let[a,i]=t.split("|",2).map(r=>r?.trim());try{return new URL(a),{url:a,scope:"",...i&&{token:i}}}catch{throw new Error(`Invalid URL in registry configuration: ${a}`)}}}o(XG,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,rC.tmpdir)());var nC=aC((0,Dt.getInput)("registries")),iC=(0,Dt.getInput)("registry-url"),KG=(0,Dt.getInput)("scope");iC&&nC.push({url:iC,scope:KG,token:"$BUN_AUTH_TOKEN"});tC({version:(0,Dt.getInput)("bun-version")||J6((0,Dt.getInput)("bun-version-file"))||J6("package.json",!0)||void 0,customUrl:(0,Dt.getInput)("bun-download-url")||void 0,registries:nC,noCache:(0,Dt.getBooleanInput)("no-cache")||!1,token:(0,Dt.getInput)("token")}).then(({version:t,revision:e,bunPath:a,url:i,cacheHit:r})=>{(0,Dt.setOutput)("bun-version",t),(0,Dt.setOutput)("bun-revision",e),(0,Dt.setOutput)("bun-path",a),(0,Dt.setOutput)("bun-download-url",i),(0,Dt.setOutput)("cache-hit",r),process.exit(0)}).catch(t=>{(0,Dt.setFailed)(t),process.exit(1)});
/*! Bundled license information:
sax/lib/sax.js:
+2 -3
View File
@@ -1,4 +1,3 @@
import { createHash } from "node:crypto";
import { homedir } from "node:os";
import { join } from "node:path";
import {
@@ -16,7 +15,7 @@ import { getExecOutput } from "@actions/exec";
import { Registry } from "./registry";
import { writeBunfig } from "./bunfig";
import { saveState } from "@actions/core";
import { addExtension } from "./utils";
import { addExtension, getCacheKey } from "./utils";
import { getDownloadUrl } from "./download-url";
import { cwd } from "node:process";
@@ -90,7 +89,7 @@ export default async (options: Input): Promise<Output> => {
if (!revision) {
if (cacheEnabled) {
const cacheKey = createHash("sha1").update(url).digest("base64");
const cacheKey = getCacheKey(url);
const cacheRestored = await restoreCache([bunPath], cacheKey);
if (cacheRestored) {
+2 -2
View File
@@ -1,11 +1,11 @@
import { saveCache } from "@actions/cache";
import { getState, warning } from "@actions/core";
import { CacheState } from "./action";
import { createHash } from "node:crypto";
import { getCacheKey } from "./utils";
(async () => {
const state: CacheState = JSON.parse(getState("cache"));
if (state.cacheEnabled && !state.cacheHit) {
const cacheKey = createHash("sha1").update(state.url).digest("base64");
const cacheKey = getCacheKey(state.url);
try {
await saveCache([state.bunPath], cacheKey);
+5
View File
@@ -1,8 +1,13 @@
import { debug, warning } from "@actions/core";
import { info } from "node:console";
import { createHash } from "node:crypto";
import { existsSync, readFileSync, renameSync } from "node:fs";
import { resolve, basename } from "node:path";
export function getCacheKey(url: string): string {
return `bun-${createHash("sha1").update(url).digest("base64")}`;
}
export async function request(
url: string,
init?: RequestInit,