function$parcel$export(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0});}function$parcel$interopDefault(e){returne&&e.__esModule?e.default:e;}var$k14yv$path=require("path"),$k14yv$os=require("os"),$k14yv$fs=require("fs"),$k14yv$stream=require("stream"),$k14yv$util=require("util"),$k14yv$assert=require("assert"),$k14yv$child_process=require("child_process"),$k14yv$http=require("http"),$k14yv$https=require("https"),$parcel$global=globalThis,parcelRequire=$parcel$global.parcelRequire810d,parcelRegister=parcelRequire.register;parcelRegister("4kQHk",function(e,t){varr,i,s,n,o,a,h,l,c;functionu(e){returne.startsWith("pypy");}asyncfunctionp(e,t,a){l.IS_MAC&&(process.env.AGENT_TOOLSDIRECTORY="/Users/runner/hostedtoolcache");leth=process.env.AGENT_TOOLSDIRECTORY?.trim();if("string"==typeofh&&""!==h&&(process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,s.debug)("Python is expected to be installed into "+process.env.RUNNER_TOOL_CACHE),e){lett;if(u(e)){leti=await(0,r.findPyPyVersion)(e,a,!0,d,!1);t=`${i.resolvedPyPyVersion}-${i.resolvedPythonVersion}`,(0,o.info)(`Successfully set up PyPy ${i.resolvedPyPyVersion} with Python (${i.resolvedPythonVersion})`);}else{letr=await(0,i.useCpythonVersion)(e,a,!0,d,!1);t=r.version,(0,o.info)(`Successfully set up ${r.impl} (${t})`);}}n.GITHUB_ACTIONS&&(awaitf());}asyncfunctionf(){lete=(0,h.join)(c,"python_matcher.json");if(!(await(0,a.pathExists)(e)))return(0,o.warning)("the python_matcher.json file does not exist in the same folder as setup-cpp.js");(0,o.info)("::add-matcher::"+e);}$parcel$export(e.exports,"setupActionsPython",()=>p),r=parcelRequire("4BQAg"),i=parcelRequire("90sLx"),s=parcelRequire("9yJgU"),n=parcelRequire("9ne19"),o=parcelRequire("ER74K"),a=parcelRequire("dOmbL"),h=parcelRequire("ceI0e"),l=parcelRequire("1FYOu"),c=$k14yv$path.resolve(__dirname,"../../src/python");letd=!1;}),parcelRegister("4BQAg",function(e,t){varr,i,s,n,o;asyncfunctiona(e,t,s,o,a){letc,u,p="",f="",d=l(e);if(o&&(u=awaitr.getAvailablePyPyVersions())&&u.length>0){lete=r.findRelease(u,d.pythonVersion,d.pypyVersion,t,!1);e?(n.info(`Resolved as PyPy ${e.resolvedPyPyVersion} with Python (${e.resolvedPythonVersion})`),d.pythonVersion=e.resolvedPythonVersion,d.pypyVersion=e.resolvedPyPyVersion):n.info(`Failed to resolve PyPy ${d.pypyVersion} with Python (${d.pythonVersion}) from manifest`);}({installDir:c,resolvedPythonVersion:f,resolvedPyPyVersion:p}=h(d.pythonVersion,d.pypyVersion,t)),c||({installDir:c,resolvedPythonVersion:f,resolvedPyPyVersion:p}=awaitr.installPyPy(d.pypyVersion,d.pythonVersion,t,a,u));lety=i.IS_WINDOWS?"Scripts":"bin",m=$k14yv$path.join(c,y),g=i.IS_WINDOWS?".exe":"",x=$k14yv$path.join(i.IS_WINDOWS?c:m,"python"+g),w=r.getPyPyBinaryPath(c);returns&&(n.exportVariable("pythonLocation",c),n.exportVariable("Python_ROOT_DIR",c),n.exportVariable("Python2_ROOT_DIR",c),n.exportVariable("Python3_ROOT_DIR",c),n.exportVariable("PKG_CONFIG_PATH",w+"/lib/pkgconfig"),n.addPath(w),n.addPath(m)),n.setOutput("python-version","pypy"+p),n.setOutput("python-path",x),{resolvedPyPyVersion:p,resolvedPythonVersion:f};}functionh(e,t,r){leta="",h="",l=i.IS_WINDOWS?c(e):o.find("PyPy",e,r);returnl&&(h=(0,i.getPyPyVersionFromPath)(l),a=(0,i.readExactPyPyVersionFile)(l),s.satisfies(a,t)||(l=null,a="",h="")),l||n.info(`PyPy version ${e} (${t}) was not found in the local cache`),{installDir:l,resolvedPythonVersion:h,resolvedPyPyVersion:a};}functionl(e){lett;lets=e.split("-").filter(e=>!!e);if(/^(pypy)(.+)/.test(s[0])){lete=s[0].replace("pypy","");s.splice(0,1,"pypy",e);}if(s.length<2||"pypy"!=s[0])throwError("Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy<python-version>' or 'pypy-<python-version>'. See README for examples and documentation.");letn=s[1];if(t=s.length>2?r.pypyVersionToSemantic(s[2]):"x",!(0,i.validateVersion)(n)||!(0,i.validateVersion)(t))throwError("Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.");