functione(e){returne&&e.__esModule?e.default:e}functiont(e,t,a,i){Object.defineProperty(e,t,{get:a,set:i,enumerable:!0,configurable:!0})}vara=require("path"),i=require("os"),r=require("fs"),s=require("util"),o=require("assert"),n=require("crypto"),p=require("url"),d=require("buffer"),l=require("stream"),c=require("events"),m=require("timers"),u=require("string_decoder"),h=require("http"),f=require("https"),g=require("zlib"),y=require("punycode"),x=require("child_process"),v="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},b=v.parcelRequire810d;b.register("gN3Li",((i,r)=>{asyncfunctions(t,a,i){varr;m.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");consts=null===(r=process.env.AGENT_TOOLSDIRECTORY)||void0===r?void0:r.trim();if("string"==typeofs&&""!==s&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,d.debug)("Python is expected to be installed into "+process.env.RUNNER_TOOL_CACHE),t){lete;if(t.startsWith("pypy")){consta=await(0,n.findPyPyVersion)(t,i,!0,g,!1);e=`${a.resolvedPyPyVersion}-${a.resolvedPythonVersion}`,(0,p.info)(`Successfully set up PyPy ${a.resolvedPyPyVersion} with Python (${a.resolvedPythonVersion})`)}else{consta=await(0,o.useCpythonVersion)(t,i,!0,g,!1);e=a.version,(0,p.info)(`Successfully set up ${a.impl} (${e})`)}if((0,m.isCacheFeatureAvailable)()){constt="pip";await(async(e,t)=>{consta=(0,u.getCacheDistributor)(e,t,void0);awaita.restoreCache()})(t,e)}}"github-actions"===e(c)()&&await(async()=>{constt=(0,l.join)(f,"python_matcher.json");if(!awaite(h)(t))return(0,p.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,p.info)("::add-matcher::"+t)})()}t(i.exports,"setupActionsPython",(()=>s));varo=b("kll7s"),n=b("krpgQ"),p=b("78ze2"),d=b("2GhAz"),l=b("hE1s9"),c=b("6q1Wj"),m=b("8FjG8"),u=b("7OqSY"),h=b("4Fey4"),f=a.resolve(__dirname,"../../src/python");constg=!1})),b.register("kll7s",((e,r)=>{asyncfunctions(e,t,r,s,c){letm=null,u=((e,t)=>{leta=e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");returnt&&(a=a.replace(/^(\d+)\.(\d+)$/,"~$1.$2.0-0")),a})(e.replace(/^(\d+)\.(\d+)-dev$/,"~$1.$2.0-0"),c);if(d.debug(`Semantic version spec of ${e} is ${u}`),s){varh;m=awaitp.getManifest();conste=null===(h=awaitp.findReleaseFromManifest(u,t,m))||void0===h?void0:h.version;e?(u=e,d.info(`Resolved as '${u}'`)):d.info(`Failed to resolve version ${u} from manifest`)}letf=l.find("Python",u,t);if(!f){d.info(`Version ${u} was not found in the local cache`);conste=awaitp.findReleaseFromManifest(u,t,m);e&&e.files&&e.files.length>0&&(d.info(`Version ${u} is available for downloading`),awaitp.installCpythonFromRelease(e),f=l.find("Python",u,t))}if(!f){consta=await(0,o.getOSInfo)();throwError([`The version '${e}' with architecture '${t}' was not found for ${a?`${a.osName}${a.osVersion}`:"this operating system"}.`,"The list of all available versions can be found here: "+p.MANIFEST_URL].join(i.EOL))}constg=(e=>a.join(e,o.IS_WINDOWS?"Scripts":"bin"))(f),y=a.join(o.IS_WINDOWS?f:g,"python"+(o.IS_WINDOWS?".exe":""));if(r){if(d.exportVariable("pythonLocation",f),d.exportVariable("PKG_CONFIG_PATH",f+"/lib/pkgconfig"),d.exportVariable("pythonLocation",f),d.exportVariable("Python_ROOT_DIR",f),d.exportVariable("Python2_ROOT_DIR",f),d.exportVariable("Python3_ROOT_DIR",f),d.exportVariable("PKG_CONFIG_PATH",f+"/lib/pkgconfig"),o.IS_LINUX){conste=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=a.join(f,"lib");e.split(":").includes(t)||d.exportVariable("LD_LIBRARY_PATH",t+e)}if(d.addPath(f),d.addPath(g),o.IS_WINDOWS){conste=a.basename(a.dirname(f)),t=n.major(e),i=n.minor(e),r=a.join(process.env.APPDATA||"","Python",`Python${t}${i}`,"Scripts");d.addPath(r)}}constx=(e=>{constt=e.split(a.sep),i=t.findIndex((e=>"PyPy"===e||"Python"===e));returnt[i+1]||""})(f);returnd.setOutput("python-version",x),d.setOutput("python-path",y),{impl:"CPython",version:x}}t(e.exports,"useCpythonVersion",(()=>s));varo=b("8FjG8