vare=require("path"),t=require("os"),r=require("fs"),i=require("util"),a=require("assert"),n=require("crypto"),o=require("url"),s=require("buffer"),u=require("stream"),c=require("events"),l=require("timers"),p=require("string_decoder"),d=require("http"),m=require("https"),x=require("zlib"),h=require("child_process");functionf(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0});}functiong(e){returne&&e.__esModule?e.default:e;}varD="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},y=D.parcelRequire810d;y.register("8L9T2",function(t,r){f(t.exports,"setupActionsPython",()=>x);vari=y("b7exe"),a=y("kMkjA"),n=y("hHq4F"),o=y("2heqc"),s=y("A8hFE"),u=y("cLprm"),c=y("gNskp"),l=y("fYh8x"),p=y("3WkGD"),d=e.resolve(__dirname,"../../src/python");asyncfunctionm(e,t){letr=(0,l.getCacheDistributor)(e,t,void0);awaitr.restoreCache();}asyncfunctionx(e,t,r){vars;c.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");letl=null===(s=process.env.AGENT_TOOLSDIRECTORY)||void0===s?void0:s.trim();if("string"==typeofl&&""!==l&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,o.debug)(`Python is expected to be installed into ${process.env.RUNNER_TOOL_CACHE}`),e){lett;if(e.startsWith("pypy")){leti=await(0,a.findPyPyVersion)(e,r,!0,!1,!1);t=`${i.resolvedPyPyVersion}-${i.resolvedPythonVersion}`,(0,n.info)(`Successfully set up PyPy ${i.resolvedPyPyVersion} with Python (${i.resolvedPythonVersion})`);}else{leta=await(0,i.useCpythonVersion)(e,r,!0,!1,!1);t=a.version,(0,n.info)(`Successfully set up ${a.impl} (${t})`);}(0,c.isCacheFeatureAvailable)()&&(awaitm("pip",t));}u.GITHUB_ACTIONS&&(awaith());}asyncfunctionh(){lete=(0,s.join)(d,"python_matcher.json");if(!(await(0,p.pathExists)(e)))return(0,n.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,n.info)(`::add-matcher::${e}`);}}),y.register("b7exe",function(r,i){f(r.exports,"useCpythonVersion",()=>c);vara=y("gNskp"),n=y("4Htdd"),o=y("kVKAE"),s=y("2heqc"),u=y("9aCWy");asyncfunctionc(r,i,c,l,p){vard,m;letx;leth=null,f=r.replace(/^(\d+)\.(\d+)-dev$/,"~$1.$2.0-0"),g=(x=f.replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2"),p&&(x=x.replace(/^(\d+)\.(\d+)$/,"~$1.$2.0-0")),x);if(s.debug(`Semantic version spec of ${r} is ${g}`),l){h=awaito.getManifest();lete=null===(d=awaito.findReleaseFromManifest(g,i,h))||void0===d?void0:d.version;e?(g=e,s.info(`Resolved as '${g}'`)):s.info(`Failed to resolve version ${g} from manifest`);}letD=u.find("Python",g,i);if(!D){s.info(`Version ${g} was not found in the local cache`);lete=awaito.findReleaseFromManifest(g,i,h);e&&e.files&&e.files.length>0&&(s.info(`Version ${g} is available for downloading`),awaito.installCpythonFromRelease(e),D=u.find("Python",g,i));}if(!D){lete=await(0,a.getOSInfo)();throwError([`The version '${r}' with architecture '${i}' was not found for ${e?`${e.osName}${e.osVersion}`:"this operating system"}.`,`The list of all available versions can be found here: ${o.MANIFEST_URL}`].join(t.EOL));}lety=(m=D,a.IS_WINDOWS?e.join(m,"Scripts"):e.join(m,"bin")),b=a.IS_WINDOWS?".exe":"",v=e.join(a.IS_WINDOWS?D:y,`python${b}`);if(c){if(s.exportVariable("pythonLocation",D),s.exportVariable("PKG_CONFIG_PATH",D+"/lib/pkgconfig"),s.exportVariable("pythonLocation",D),s.exportVariable("Python_ROOT_DIR",D),s.exportVariable("Python2_ROOT_DIR",D),s.exportVariable("Python3_ROOT_DIR",D),s.exportVariable("PKG_CONFIG_PATH",D+"/lib/pkgconfig"),a.IS_LINUX){lett=process.env.LD_LIBRARY_PATH?`:${process.env.LD_LIBRARY_PATH}`:"",r=e.join(D,"lib");t.split(":").includes(r)||s.exportVariable("LD_LIBRARY_PATH",r+t);}if(s.addPath(D),s.addPath(y),a.IS_WINDOWS){lett=e.basename(e.dirname(D)),r=n.major(t),i=n.minor(t),a=e.join(process.env.APPDATA||"","Python",`Python${r}${i}`,"Scripts");s.addPath(a);}}letC=function(t){letr=t.split(e.sep),i=r.findIndex(e=>"PyPy"===e||"Python"===e);returnr[i+1]||"";}(D);returns.setOutput("python-version",C),s.setOutput
`;}),i;}getCanonicalizedResourceString(e){let t=(0,i.getURLPath)(e.url)||"/",r="";r+=`/${this.factory.accountName}${t}`;let a=(0,i.getURLQueries)(e.url),n={};if(a){let e=[];for(let t in a)if(Object.prototype.hasOwnProperty.call(a,t)){let r=t.toLowerCase();n[r]=a[t],e.push(r);}for(let t of(e.sort(),e))r+=`