mirror of
https://github.com/pnpm/action-setup.git
synced 2024-11-13 21:33:57 +00:00
1 line
75 KiB
JavaScript
1 line
75 KiB
JavaScript
module.exports=function(r,n){"use strict";var e={};function __webpack_require__(n){if(e[n]){return e[n].exports}var i=e[n]={i:n,l:false,exports:{}};r[n].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(803)}return startup()}({0:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.ref="301414cec74a2b6b63c95b42f2ad1790ccb980ed";n.url=`https://raw.githubusercontent.com/pnpm/self-installer/${n.ref}/install.js`;n.default=n.url},34:function(r){r.exports=require("https")},87:function(r){r.exports=require("os")},89:function(r,n,e){"use strict";var i=this&&this.__awaiter||function(r,n,e,i){function adopt(r){return r instanceof e?r:new e(function(n){n(r)})}return new(e||(e=Promise))(function(e,o){function fulfilled(r){try{step(i.next(r))}catch(r){o(r)}}function rejected(r){try{step(i["throw"](r))}catch(r){o(r)}}function step(r){r.done?e(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};var o=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var e in r)if(Object.hasOwnProperty.call(r,e))n[e]=r[e];n["default"]=r;return n};Object.defineProperty(n,"__esModule",{value:true});const u=e(486);const f=o(e(87));const t=o(e(622));var c;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(c=n.ExitCode||(n.ExitCode={}));function exportVariable(r,n){const e=u.toCommandValue(n);process.env[r]=e;u.issueCommand("set-env",{name:r},e)}n.exportVariable=exportVariable;function setSecret(r){u.issueCommand("add-mask",{},r)}n.setSecret=setSecret;function addPath(r){u.issueCommand("add-path",{},r);process.env["PATH"]=`${r}${t.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(r,n){const e=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!e){throw new Error(`Input required and not supplied: ${r}`)}return e.trim()}n.getInput=getInput;function setOutput(r,n){u.issueCommand("set-output",{name:r},n)}n.setOutput=setOutput;function setCommandEcho(r){u.issue("echo",r?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=c.Failure;error(r)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(r){u.issueCommand("debug",{},r)}n.debug=debug;function error(r){u.issue("error",r instanceof Error?r.toString():r)}n.error=error;function warning(r){u.issue("warning",r instanceof Error?r.toString():r)}n.warning=warning;function info(r){process.stdout.write(r+f.EOL)}n.info=info;function startGroup(r){u.issue("group",r)}n.startGroup=startGroup;function endGroup(){u.issue("endgroup")}n.endGroup=endGroup;function group(r,n){return i(this,void 0,void 0,function*(){startGroup(r);let e;try{e=yield n()}finally{endGroup()}return e})}n.group=group;function saveState(r,n){u.issueCommand("save-state",{name:r},n)}n.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}n.getState=getState},90:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptRegExp(r){if(r===null)return false;if(r.length===0)return false;var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];if(i.length>3)return false;if(n[n.length-i.length-1]!=="/")return false}return true}function constructJavascriptRegExp(r){var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];n=n.slice(1,n.length-i.length-1)}return new RegExp(n,i)}function representJavascriptRegExp(r){var n="/"+r.source+"/";if(r.global)n+="g";if(r.multiline)n+="m";if(r.ignoreCase)n+="i";return n}function isRegExp(r){return Object.prototype.toString.call(r)==="[object RegExp]"}r.exports=new i("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},129:function(r){r.exports=require("child_process")},147:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},191:function(r,n,e){"use strict";var i=e(87);if(typeof i.homedir!=="undefined"){r.exports=i.homedir}else{r.exports=e(394)}},203:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var i=_interopDefault(e(413));var o=_interopDefault(e(605));var u=_interopDefault(e(835));var f=_interopDefault(e(34));var t=_interopDefault(e(761));const c=i.Readable;const s=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const r=arguments[0];const n=arguments[1];const e=[];let i=0;if(r){const n=r;const o=Number(n.length);for(let r=0;r<o;r++){const o=n[r];let u;if(o instanceof Buffer){u=o}else if(ArrayBuffer.isView(o)){u=Buffer.from(o.buffer,o.byteOffset,o.byteLength)}else if(o instanceof ArrayBuffer){u=Buffer.from(o)}else if(o instanceof Blob){u=o[s]}else{u=Buffer.from(typeof o==="string"?o:String(o))}i+=u.length;e.push(u)}}this[s]=Buffer.concat(e);let o=n&&n.type!==undefined&&String(n.type).toLowerCase();if(o&&!/[^\u0020-\u007E]/.test(o)){this[l]=o}}get size(){return this[s].length}get type(){return this[l]}text(){return Promise.resolve(this[s].toString())}arrayBuffer(){const r=this[s];const n=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength);return Promise.resolve(n)}stream(){const r=new c;r._read=function(){};r.push(this[s]);r.push(null);return r}toString(){return"[object Blob]"}slice(){const r=this.size;const n=arguments[0];const e=arguments[1];let i,o;if(n===undefined){i=0}else if(n<0){i=Math.max(r+n,0)}else{i=Math.min(n,r)}if(e===undefined){o=r}else if(e<0){o=Math.max(r+e,0)}else{o=Math.min(e,r)}const u=Math.max(o-i,0);const f=this[s];const t=f.slice(i,i+u);const c=new Blob([],{type:arguments[2]});c[s]=t;return c}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(r,n,e){Error.call(this,r);this.message=r;this.type=n;if(e){this.code=this.errno=e.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let p;try{p=e(504).convert}catch(r){}const a=Symbol("Body internals");const h=i.PassThrough;function Body(r){var n=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},o=e.size;let u=o===undefined?0:o;var f=e.timeout;let t=f===undefined?0:f;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r)) ;else if(Buffer.isBuffer(r)) ;else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof i) ;else{r=Buffer.from(String(r))}this[a]={body:r,disturbed:false,error:null};this.size=u;this.timeout=t;if(r instanceof i){r.on("error",function(r){const e=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${n.url}: ${r.message}`,"system",r);n[a].error=e})}}Body.prototype={get body(){return this[a].body},get bodyUsed(){return this[a].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)})},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(n){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[s]:n})})},json(){var r=this;return consumeBody.call(this).then(function(n){try{return JSON.parse(n.toString())}catch(n){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${n.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(r){return r.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then(function(n){return convertBody(n,r.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const n of Object.getOwnPropertyNames(Body.prototype)){if(!(n in r)){const e=Object.getOwnPropertyDescriptor(Body.prototype,n);Object.defineProperty(r,n,e)}}};function consumeBody(){var r=this;if(this[a].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[a].disturbed=true;if(this[a].error){return Body.Promise.reject(this[a].error)}let n=this.body;if(n===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(n)){n=n.stream()}if(Buffer.isBuffer(n)){return Body.Promise.resolve(n)}if(!(n instanceof i)){return Body.Promise.resolve(Buffer.alloc(0))}let e=[];let o=0;let u=false;return new Body.Promise(function(i,f){let t;if(r.timeout){t=setTimeout(function(){u=true;f(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))},r.timeout)}n.on("error",function(n){if(n.name==="AbortError"){u=true;f(n)}else{f(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${n.message}`,"system",n))}});n.on("data",function(n){if(u||n===null){return}if(r.size&&o+n.length>r.size){u=true;f(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}o+=n.length;e.push(n)});n.on("end",function(){if(u){return}clearTimeout(t);try{i(Buffer.concat(e,o))}catch(n){f(new FetchError(`Could not create Buffer from response body for ${r.url}: ${n.message}`,"system",n))}})})}function convertBody(r,n){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const e=n.get("content-type");let i="utf-8";let o,u;if(e){o=/charset=([^;]*)/i.exec(e)}u=r.slice(0,1024).toString();if(!o&&u){o=/<meta.+?charset=(['"])(.+?)\1/i.exec(u)}if(!o&&u){o=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(u);if(o){o=/charset=(.*)/i.exec(o.pop())}}if(!o&&u){o=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(u)}if(o){i=o.pop();if(i==="gb2312"||i==="gbk"){i="gb18030"}}return p(r,"UTF-8",i).toString()}function isURLSearchParams(r){if(typeof r!=="object"||typeof r.append!=="function"||typeof r.delete!=="function"||typeof r.get!=="function"||typeof r.getAll!=="function"||typeof r.has!=="function"||typeof r.set!=="function"){return false}return r.constructor.name==="URLSearchParams"||Object.prototype.toString.call(r)==="[object URLSearchParams]"||typeof r.sort==="function"}function isBlob(r){return typeof r==="object"&&typeof r.arrayBuffer==="function"&&typeof r.type==="string"&&typeof r.stream==="function"&&typeof r.constructor==="function"&&typeof r.constructor.name==="string"&&/^(Blob|File)$/.test(r.constructor.name)&&/^(Blob|File)$/.test(r[Symbol.toStringTag])}function clone(r){let n,e;let o=r.body;if(r.bodyUsed){throw new Error("cannot clone body after it is used")}if(o instanceof i&&typeof o.getBoundary!=="function"){n=new h;e=new h;o.pipe(n);o.pipe(e);r[a].body=n;o=e}return o}function extractContentType(r){if(r===null){return null}else if(typeof r==="string"){return"text/plain;charset=UTF-8"}else if(isURLSearchParams(r)){return"application/x-www-form-urlencoded;charset=UTF-8"}else if(isBlob(r)){return r.type||null}else if(Buffer.isBuffer(r)){return null}else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){return null}else if(ArrayBuffer.isView(r)){return null}else if(typeof r.getBoundary==="function"){return`multipart/form-data;boundary=${r.getBoundary()}`}else if(r instanceof i){return null}else{return"text/plain;charset=UTF-8"}}function getTotalBytes(r){const n=r.body;if(n===null){return 0}else if(isBlob(n)){return n.size}else if(Buffer.isBuffer(n)){return n.length}else if(n&&typeof n.getLengthSync==="function"){if(n._lengthRetrievers&&n._lengthRetrievers.length==0||n.hasKnownLength&&n.hasKnownLength()){return n.getLengthSync()}return null}else{return null}}function writeToStream(r,n){const e=n.body;if(e===null){r.end()}else if(isBlob(e)){e.stream().pipe(r)}else if(Buffer.isBuffer(e)){r.write(e);r.end()}else{e.pipe(r)}}Body.Promise=global.Promise;const m=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;const g=/[^\t\x20-\x7e\x80-\xff]/;function validateName(r){r=`${r}`;if(m.test(r)||r===""){throw new TypeError(`${r} is not a legal HTTP header name`)}}function validateValue(r){r=`${r}`;if(g.test(r)){throw new TypeError(`${r} is not a legal HTTP header value`)}}function find(r,n){n=n.toLowerCase();for(const e in r){if(e.toLowerCase()===n){return e}}return undefined}const d=Symbol("map");class Headers{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this[d]=Object.create(null);if(r instanceof Headers){const n=r.raw();const e=Object.keys(n);for(const r of e){for(const e of n[r]){this.append(r,e)}}return}if(r==null) ;else if(typeof r==="object"){const n=r[Symbol.iterator];if(n!=null){if(typeof n!=="function"){throw new TypeError("Header pairs must be iterable")}const e=[];for(const n of r){if(typeof n!=="object"||typeof n[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}e.push(Array.from(n))}for(const r of e){if(r.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(r[0],r[1])}}else{for(const n of Object.keys(r)){const e=r[n];this.append(n,e)}}}else{throw new TypeError("Provided initializer must be an object")}}get(r){r=`${r}`;validateName(r);const n=find(this[d],r);if(n===undefined){return null}return this[d][n].join(", ")}forEach(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let e=getHeaders(this);let i=0;while(i<e.length){var o=e[i];const u=o[0],f=o[1];r.call(n,f,u,this);e=getHeaders(this);i++}}set(r,n){r=`${r}`;n=`${n}`;validateName(r);validateValue(n);const e=find(this[d],r);this[d][e!==undefined?e:r]=[n]}append(r,n){r=`${r}`;n=`${n}`;validateName(r);validateValue(n);const e=find(this[d],r);if(e!==undefined){this[d][e].push(n)}else{this[d][r]=[n]}}has(r){r=`${r}`;validateName(r);return find(this[d],r)!==undefined}delete(r){r=`${r}`;validateName(r);const n=find(this[d],r);if(n!==undefined){delete this[d][n]}}raw(){return this[d]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}Headers.prototype.entries=Headers.prototype[Symbol.iterator];Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:false,enumerable:false,configurable:true});Object.defineProperties(Headers.prototype,{get:{enumerable:true},forEach:{enumerable:true},set:{enumerable:true},append:{enumerable:true},has:{enumerable:true},delete:{enumerable:true},keys:{enumerable:true},values:{enumerable:true},entries:{enumerable:true}});function getHeaders(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"key+value";const e=Object.keys(r[d]).sort();return e.map(n==="key"?function(r){return r.toLowerCase()}:n==="value"?function(n){return r[d][n].join(", ")}:function(n){return[n.toLowerCase(),r[d][n].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(r,n){const e=Object.create(b);e[w]={target:r,kind:n,index:0};return e}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var r=this[w];const n=r.target,e=r.kind,i=r.index;const o=getHeaders(n,e);const u=o.length;if(i>=u){return{value:undefined,done:true}}this[w].index=i+1;return{value:o[i],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(r){const n=Object.assign({__proto__:null},r[d]);const e=find(r[d],"Host");if(e!==undefined){n[e]=n[e][0]}return n}function createHeadersLenient(r){const n=new Headers;for(const e of Object.keys(r)){if(m.test(e)){continue}if(Array.isArray(r[e])){for(const i of r[e]){if(g.test(i)){continue}if(n[d][e]===undefined){n[d][e]=[i]}else{n[d][e].push(i)}}}else if(!g.test(r[e])){n[d][e]=[r[e]]}}return n}const v=Symbol("Response internals");const S=o.STATUS_CODES;class Response{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,r,n);const e=n.status||200;const i=new Headers(n.headers);if(r!=null&&!i.has("Content-Type")){const n=extractContentType(r);if(n){i.append("Content-Type",n)}}this[v]={url:n.url,status:e,statusText:n.statusText||S[e],headers:i,counter:n.counter}}get url(){return this[v].url||""}get status(){return this[v].status}get ok(){return this[v].status>=200&&this[v].status<300}get redirected(){return this[v].counter>0}get statusText(){return this[v].statusText}get headers(){return this[v].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const A=Symbol("Request internals");const O=u.parse;const E=u.format;const F="destroy"in i.Readable.prototype;function isRequest(r){return typeof r==="object"&&typeof r[A]==="object"}function isAbortSignal(r){const n=r&&typeof r==="object"&&Object.getPrototypeOf(r);return!!(n&&n.constructor.name==="AbortSignal")}class Request{constructor(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let e;if(!isRequest(r)){if(r&&r.href){e=O(r.href)}else{e=O(`${r}`)}r={}}else{e=O(r.url)}let i=n.method||r.method||"GET";i=i.toUpperCase();if((n.body!=null||isRequest(r)&&r.body!==null)&&(i==="GET"||i==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let o=n.body!=null?n.body:isRequest(r)&&r.body!==null?clone(r):null;Body.call(this,o,{timeout:n.timeout||r.timeout||0,size:n.size||r.size||0});const u=new Headers(n.headers||r.headers||{});if(o!=null&&!u.has("Content-Type")){const r=extractContentType(o);if(r){u.append("Content-Type",r)}}let f=isRequest(r)?r.signal:null;if("signal"in n)f=n.signal;if(f!=null&&!isAbortSignal(f)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[A]={method:i,redirect:n.redirect||r.redirect||"follow",headers:u,parsedURL:e,signal:f};this.follow=n.follow!==undefined?n.follow:r.follow!==undefined?r.follow:20;this.compress=n.compress!==undefined?n.compress:r.compress!==undefined?r.compress:true;this.counter=n.counter||r.counter||0;this.agent=n.agent||r.agent}get method(){return this[A].method}get url(){return E(this[A].parsedURL)}get headers(){return this[A].headers}get redirect(){return this[A].redirect}get signal(){return this[A].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(r){const n=r[A].parsedURL;const e=new Headers(r[A].headers);if(!e.has("Accept")){e.set("Accept","*/*")}if(!n.protocol||!n.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(n.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(r.signal&&r.body instanceof i.Readable&&!F){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(r.body==null&&/^(POST|PUT)$/i.test(r.method)){o="0"}if(r.body!=null){const n=getTotalBytes(r);if(typeof n==="number"){o=String(n)}}if(o){e.set("Content-Length",o)}if(!e.has("User-Agent")){e.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(r.compress&&!e.has("Accept-Encoding")){e.set("Accept-Encoding","gzip,deflate")}let u=r.agent;if(typeof u==="function"){u=u(n)}if(!e.has("Connection")&&!u){e.set("Connection","close")}return Object.assign({},n,{method:r.method,headers:exportNodeCompatibleHeaders(e),agent:u})}function AbortError(r){Error.call(this,r);this.type="aborted";this.message=r;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const j=i.PassThrough;const B=u.resolve;function fetch(r,n){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(e,u){const c=new Request(r,n);const s=getNodeRequestOptions(c);const l=(s.protocol==="https:"?f:o).request;const p=c.signal;let a=null;const h=function abort(){let r=new AbortError("The user aborted a request.");u(r);if(c.body&&c.body instanceof i.Readable){c.body.destroy(r)}if(!a||!a.body)return;a.body.emit("error",r)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(s);let d;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(d)}if(c.timeout){g.once("socket",function(r){d=setTimeout(function(){u(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()},c.timeout)})}g.on("error",function(r){u(new FetchError(`request to ${c.url} failed, reason: ${r.message}`,"system",r));finalize()});g.on("response",function(r){clearTimeout(d);const n=createHeadersLenient(r.headers);if(fetch.isRedirect(r.statusCode)){const i=n.get("Location");const o=i===null?null:B(c.url,i);switch(c.redirect){case"error":u(new FetchError(`redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{n.set("Location",o)}catch(r){u(r)}}break;case"follow":if(o===null){break}if(c.counter>=c.follow){u(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const i={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout};if(r.statusCode!==303&&c.body&&getTotalBytes(c)===null){u(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(r.statusCode===303||(r.statusCode===301||r.statusCode===302)&&c.method==="POST"){i.method="GET";i.body=undefined;i.headers.delete("content-length")}e(fetch(new Request(o,i)));finalize();return}}r.once("end",function(){if(p)p.removeEventListener("abort",m)});let i=r.pipe(new j);const o={url:c.url,status:r.statusCode,statusText:r.statusMessage,headers:n,size:c.size,timeout:c.timeout,counter:c.counter};const f=n.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||f===null||r.statusCode===204||r.statusCode===304){a=new Response(i,o);e(a);return}const s={flush:t.Z_SYNC_FLUSH,finishFlush:t.Z_SYNC_FLUSH};if(f=="gzip"||f=="x-gzip"){i=i.pipe(t.createGunzip(s));a=new Response(i,o);e(a);return}if(f=="deflate"||f=="x-deflate"){const n=r.pipe(new j);n.once("data",function(r){if((r[0]&15)===8){i=i.pipe(t.createInflate())}else{i=i.pipe(t.createInflateRaw())}a=new Response(i,o);e(a)});return}if(f=="br"&&typeof t.createBrotliDecompress==="function"){i=i.pipe(t.createBrotliDecompress());a=new Response(i,o);e(a);return}a=new Response(i,o);e(a)});writeToStream(g,c)})}fetch.isRedirect=function(r){return r===301||r===302||r===303||r===307||r===308};fetch.Promise=global.Promise;r.exports=n=fetch;Object.defineProperty(n,"__esModule",{value:true});n.default=n;n.Headers=Headers;n.Request=Request;n.Response=Response;n.FetchError=FetchError},205:function(r,n,e){"use strict";var i=e(351);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var u=["scalar","sequence","mapping"];function compileStyleAliases(r){var n={};if(r!==null){Object.keys(r).forEach(function(e){r[e].forEach(function(r){n[String(r)]=e})})}return n}function Type(r,n){n=n||{};Object.keys(n).forEach(function(n){if(o.indexOf(n)===-1){throw new i('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}});this.tag=r;this.kind=n["kind"]||null;this.resolve=n["resolve"]||function(){return true};this.construct=n["construct"]||function(r){return r};this.instanceOf=n["instanceOf"]||null;this.predicate=n["predicate"]||null;this.represent=n["represent"]||null;this.defaultStyle=n["defaultStyle"]||null;this.styleAliases=compileStyleAliases(n["styleAliases"]||null);if(u.indexOf(this.kind)===-1){throw new i('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}r.exports=Type},211:function(r,n,e){"use strict";var i=e(205);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var n,e=r;for(n in e){if(o.call(e,n)){if(e[n]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new i("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},228:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});const i=e(129);const o=e(765);const u=e(839);async function runSelfInstaller(r){const n=i.spawn(o.execPath,{env:{PNPM_VERSION:r.version,PNPM_DEST:r.dest,PNPM_BIN_DEST:r.binDest,PNPM_REGISTRY:r.registry},stdio:["pipe","inherit","inherit"]});const e=await u.downloadSelfInstaller();e.body.pipe(n.stdin);return new Promise((r,e)=>{n.on("error",e);n.on("close",r)})}n.runSelfInstaller=runSelfInstaller;n.default=runSelfInstaller},237:function(r,n,e){"use strict";var i=e(447);r.exports=new i({explicit:[e(543),e(147),e(806)]})},261:function(r){"use strict";function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,n){var e,i,o,u;if(n){u=Object.keys(n);for(e=0,i=u.length;e<i;e+=1){o=u[e];r[o]=n[o]}}return r}function repeat(r,n){var e="",i;for(i=0;i<n;i+=1){e+=r}return e}function isNegativeZero(r){return r===0&&Number.NEGATIVE_INFINITY===1/r}r.exports.isNothing=isNothing;r.exports.isObject=isObject;r.exports.toArray=toArray;r.exports.repeat=repeat;r.exports.isNegativeZero=isNegativeZero;r.exports.extend=extend},271:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(966));const f=e(840);const t={required:true};const c=r=>u.default(o.getInput(r,t));n.getInputs=(()=>({version:o.getInput("version",t),dest:c("dest"),binDest:c("bin_dest"),registry:o.getInput("registry",t),runInstall:f.safeLoad(o.getInput("run_install",t))}));n.default=n.getInputs},300:function(r,n,e){"use strict";var i=e(261);var o=e(351);var u=e(478);var f=e(728);var t=Object.prototype.toString;var c=Object.prototype.hasOwnProperty;var s=9;var l=10;var p=32;var a=33;var h=34;var m=35;var g=37;var d=38;var w=39;var b=42;var v=44;var S=45;var A=58;var O=62;var E=63;var F=64;var j=91;var B=93;var C=96;var D=123;var P=124;var _=125;var Y={};Y[0]="\\0";Y[7]="\\a";Y[8]="\\b";Y[9]="\\t";Y[10]="\\n";Y[11]="\\v";Y[12]="\\f";Y[13]="\\r";Y[27]="\\e";Y[34]='\\"';Y[92]="\\\\";Y[133]="\\N";Y[160]="\\_";Y[8232]="\\L";Y[8233]="\\P";var $=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(r,n){var e,i,o,u,f,t,s;if(n===null)return{};e={};i=Object.keys(n);for(o=0,u=i.length;o<u;o+=1){f=i[o];t=String(n[f]);if(f.slice(0,2)==="!!"){f="tag:yaml.org,2002:"+f.slice(2)}s=r.compiledTypeMap["fallback"][f];if(s&&c.call(s.styleAliases,t)){t=s.styleAliases[t]}e[f]=t}return e}function encodeHex(r){var n,e,u;n=r.toString(16).toUpperCase();if(r<=255){e="x";u=2}else if(r<=65535){e="u";u=4}else if(r<=4294967295){e="U";u=8}else{throw new o("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+e+i.repeat("0",u-n.length)+n}function State(r){this.schema=r["schema"]||u;this.indent=Math.max(1,r["indent"]||2);this.noArrayIndent=r["noArrayIndent"]||false;this.skipInvalid=r["skipInvalid"]||false;this.flowLevel=i.isNothing(r["flowLevel"])?-1:r["flowLevel"];this.styleMap=compileStyleMap(this.schema,r["styles"]||null);this.sortKeys=r["sortKeys"]||false;this.lineWidth=r["lineWidth"]||80;this.noRefs=r["noRefs"]||false;this.noCompatMode=r["noCompatMode"]||false;this.condenseFlow=r["condenseFlow"]||false;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(r,n){var e=i.repeat(" ",n),o=0,u=-1,f="",t,c=r.length;while(o<c){u=r.indexOf("\n",o);if(u===-1){t=r.slice(o);o=c}else{t=r.slice(o,u+1);o=u+1}if(t.length&&t!=="\n")f+=e;f+=t}return f}function generateNextLine(r,n){return"\n"+i.repeat(" ",r.indent*n)}function testImplicitResolving(r,n){var e,i,o;for(e=0,i=r.implicitTypes.length;e<i;e+=1){o=r.implicitTypes[e];if(o.resolve(n)){return true}}return false}function isWhitespace(r){return r===p||r===s}function isPrintable(r){return 32<=r&&r<=126||161<=r&&r<=55295&&r!==8232&&r!==8233||57344<=r&&r<=65533&&r!==65279||65536<=r&&r<=1114111}function isPlainSafe(r){return isPrintable(r)&&r!==65279&&r!==v&&r!==j&&r!==B&&r!==D&&r!==_&&r!==A&&r!==m}function isPlainSafeFirst(r){return isPrintable(r)&&r!==65279&&!isWhitespace(r)&&r!==S&&r!==E&&r!==A&&r!==v&&r!==j&&r!==B&&r!==D&&r!==_&&r!==m&&r!==d&&r!==b&&r!==a&&r!==P&&r!==O&&r!==w&&r!==h&&r!==g&&r!==F&&r!==C}function needIndentIndicator(r){var n=/^\n* /;return n.test(r)}var M=1,q=2,U=3,H=4,W=5;function chooseScalarStyle(r,n,e,i,o){var u;var f;var t=false;var c=false;var s=i!==-1;var p=-1;var a=isPlainSafeFirst(r.charCodeAt(0))&&!isWhitespace(r.charCodeAt(r.length-1));if(n){for(u=0;u<r.length;u++){f=r.charCodeAt(u);if(!isPrintable(f)){return W}a=a&&isPlainSafe(f)}}else{for(u=0;u<r.length;u++){f=r.charCodeAt(u);if(f===l){t=true;if(s){c=c||u-p-1>i&&r[p+1]!==" ";p=u}}else if(!isPrintable(f)){return W}a=a&&isPlainSafe(f)}c=c||s&&(u-p-1>i&&r[p+1]!==" ")}if(!t&&!c){return a&&!o(r)?M:q}if(e>9&&needIndentIndicator(r)){return W}return c?H:U}function writeScalar(r,n,e,i){r.dump=function(){if(n.length===0){return"''"}if(!r.noCompatMode&&$.indexOf(n)!==-1){return"'"+n+"'"}var u=r.indent*Math.max(1,e);var f=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-u);var t=i||r.flowLevel>-1&&e>=r.flowLevel;function testAmbiguity(n){return testImplicitResolving(r,n)}switch(chooseScalarStyle(n,t,r.indent,f,testAmbiguity)){case M:return n;case q:return"'"+n.replace(/'/g,"''")+"'";case U:return"|"+blockHeader(n,r.indent)+dropEndingNewline(indentString(n,u));case H:return">"+blockHeader(n,r.indent)+dropEndingNewline(indentString(foldString(n,f),u));case W:return'"'+escapeString(n,f)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(r,n){var e=needIndentIndicator(r)?String(n):"";var i=r[r.length-1]==="\n";var o=i&&(r[r.length-2]==="\n"||r==="\n");var u=o?"+":i?"":"-";return e+u+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,n){var e=/(\n+)([^\n]*)/g;var i=function(){var i=r.indexOf("\n");i=i!==-1?i:r.length;e.lastIndex=i;return foldLine(r.slice(0,i),n)}();var o=r[0]==="\n"||r[0]===" ";var u;var f;while(f=e.exec(r)){var t=f[1],c=f[2];u=c[0]===" ";i+=t+(!o&&!u&&c!==""?"\n":"")+foldLine(c,n);o=u}return i}function foldLine(r,n){if(r===""||r[0]===" ")return r;var e=/ [^ ]/g;var i;var o=0,u,f=0,t=0;var c="";while(i=e.exec(r)){t=i.index;if(t-o>n){u=f>o?f:t;c+="\n"+r.slice(o,u);o=u+1}f=t}c+="\n";if(r.length-o>n&&f>o){c+=r.slice(o,f)+"\n"+r.slice(f+1)}else{c+=r.slice(o)}return c.slice(1)}function escapeString(r){var n="";var e,i;var o;for(var u=0;u<r.length;u++){e=r.charCodeAt(u);if(e>=55296&&e<=56319){i=r.charCodeAt(u+1);if(i>=56320&&i<=57343){n+=encodeHex((e-55296)*1024+i-56320+65536);u++;continue}}o=Y[e];n+=!o&&isPrintable(e)?r[u]:o||encodeHex(e)}return n}function writeFlowSequence(r,n,e){var i="",o=r.tag,u,f;for(u=0,f=e.length;u<f;u+=1){if(writeNode(r,n,e[u],false,false)){if(u!==0)i+=","+(!r.condenseFlow?" ":"");i+=r.dump}}r.tag=o;r.dump="["+i+"]"}function writeBlockSequence(r,n,e,i){var o="",u=r.tag,f,t;for(f=0,t=e.length;f<t;f+=1){if(writeNode(r,n+1,e[f],true,true)){if(!i||f!==0){o+=generateNextLine(r,n)}if(r.dump&&l===r.dump.charCodeAt(0)){o+="-"}else{o+="- "}o+=r.dump}}r.tag=u;r.dump=o||"[]"}function writeFlowMapping(r,n,e){var i="",o=r.tag,u=Object.keys(e),f,t,c,s,l;for(f=0,t=u.length;f<t;f+=1){l=r.condenseFlow?'"':"";if(f!==0)l+=", ";c=u[f];s=e[c];if(!writeNode(r,n,c,false,false)){continue}if(r.dump.length>1024)l+="? ";l+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,n,s,false,false)){continue}l+=r.dump;i+=l}r.tag=o;r.dump="{"+i+"}"}function writeBlockMapping(r,n,e,i){var u="",f=r.tag,t=Object.keys(e),c,s,p,a,h,m;if(r.sortKeys===true){t.sort()}else if(typeof r.sortKeys==="function"){t.sort(r.sortKeys)}else if(r.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(c=0,s=t.length;c<s;c+=1){m="";if(!i||c!==0){m+=generateNextLine(r,n)}p=t[c];a=e[p];if(!writeNode(r,n+1,p,true,true,true)){continue}h=r.tag!==null&&r.tag!=="?"||r.dump&&r.dump.length>1024;if(h){if(r.dump&&l===r.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=r.dump;if(h){m+=generateNextLine(r,n)}if(!writeNode(r,n+1,a,true,h)){continue}if(r.dump&&l===r.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=r.dump;u+=m}r.tag=f;r.dump=u||"{}"}function detectType(r,n,e){var i,u,f,s,l,p;u=e?r.explicitTypes:r.implicitTypes;for(f=0,s=u.length;f<s;f+=1){l=u[f];if((l.instanceOf||l.predicate)&&(!l.instanceOf||typeof n==="object"&&n instanceof l.instanceOf)&&(!l.predicate||l.predicate(n))){r.tag=e?l.tag:"?";if(l.represent){p=r.styleMap[l.tag]||l.defaultStyle;if(t.call(l.represent)==="[object Function]"){i=l.represent(n,p)}else if(c.call(l.represent,p)){i=l.represent[p](n,p)}else{throw new o("!<"+l.tag+'> tag resolver accepts not "'+p+'" style')}r.dump=i}return true}}return false}function writeNode(r,n,e,i,u,f){r.tag=null;r.dump=e;if(!detectType(r,e,false)){detectType(r,e,true)}var c=t.call(r.dump);if(i){i=r.flowLevel<0||r.flowLevel>n}var s=c==="[object Object]"||c==="[object Array]",l,p;if(s){l=r.duplicates.indexOf(e);p=l!==-1}if(r.tag!==null&&r.tag!=="?"||p||r.indent!==2&&n>0){u=false}if(p&&r.usedDuplicates[l]){r.dump="*ref_"+l}else{if(s&&p&&!r.usedDuplicates[l]){r.usedDuplicates[l]=true}if(c==="[object Object]"){if(i&&Object.keys(r.dump).length!==0){writeBlockMapping(r,n,r.dump,u);if(p){r.dump="&ref_"+l+r.dump}}else{writeFlowMapping(r,n,r.dump);if(p){r.dump="&ref_"+l+" "+r.dump}}}else if(c==="[object Array]"){var a=r.noArrayIndent&&n>0?n-1:n;if(i&&r.dump.length!==0){writeBlockSequence(r,a,r.dump,u);if(p){r.dump="&ref_"+l+r.dump}}else{writeFlowSequence(r,a,r.dump);if(p){r.dump="&ref_"+l+" "+r.dump}}}else if(c==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,n,f)}}else{if(r.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+c)}if(r.tag!==null&&r.tag!=="?"){r.dump="!<"+r.tag+"> "+r.dump}}return true}function getDuplicateReferences(r,n){var e=[],i=[],o,u;inspectNode(r,e,i);for(o=0,u=i.length;o<u;o+=1){n.duplicates.push(e[i[o]])}n.usedDuplicates=new Array(u)}function inspectNode(r,n,e){var i,o,u;if(r!==null&&typeof r==="object"){o=n.indexOf(r);if(o!==-1){if(e.indexOf(o)===-1){e.push(o)}}else{n.push(r);if(Array.isArray(r)){for(o=0,u=r.length;o<u;o+=1){inspectNode(r[o],n,e)}}else{i=Object.keys(r);for(o=0,u=i.length;o<u;o+=1){inspectNode(r[i[o]],n,e)}}}}}function dump(r,n){n=n||{};var e=new State(n);if(!e.noRefs)getDuplicateReferences(r,e);if(writeNode(e,0,r,true,true))return e.dump+"\n";return""}function safeDump(r,n){return dump(r,i.extend({schema:f},n))}r.exports.dump=dump;r.exports.safeDump=safeDump},326:function(r,n,e){"use strict";var i;try{var o=require;i=o("esprima")}catch(r){if(typeof window!=="undefined")i=window.esprima}var u=e(205);function resolveJavascriptFunction(r){if(r===null)return false;try{var n="("+r+")",e=i.parse(n,{range:true});if(e.type!=="Program"||e.body.length!==1||e.body[0].type!=="ExpressionStatement"||e.body[0].expression.type!=="ArrowFunctionExpression"&&e.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(r){return false}}function constructJavascriptFunction(r){var n="("+r+")",e=i.parse(n,{range:true}),o=[],u;if(e.type!=="Program"||e.body.length!==1||e.body[0].type!=="ExpressionStatement"||e.body[0].expression.type!=="ArrowFunctionExpression"&&e.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}e.body[0].expression.params.forEach(function(r){o.push(r.name)});u=e.body[0].expression.body.range;if(e.body[0].expression.body.type==="BlockStatement"){return new Function(o,n.slice(u[0]+1,u[1]-1))}return new Function(o,"return "+n.slice(u[0],u[1]))}function representJavascriptFunction(r){return r.toString()}function isFunction(r){return Object.prototype.toString.call(r)==="[object Function]"}r.exports=new u("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},327:function(r,n,e){"use strict";var i=e(205);var o=Object.prototype.hasOwnProperty;var u=Object.prototype.toString;function resolveYamlOmap(r){if(r===null)return true;var n=[],e,i,f,t,c,s=r;for(e=0,i=s.length;e<i;e+=1){f=s[e];c=false;if(u.call(f)!=="[object Object]")return false;for(t in f){if(o.call(f,t)){if(!c)c=true;else return false}}if(!c)return false;if(n.indexOf(t)===-1)n.push(t);else return false}return true}function constructYamlOmap(r){return r!==null?r:[]}r.exports=new i("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},335:function(r,n,e){"use strict";var i=e(261);var o=e(351);var u=e(387);var f=e(728);var t=e(478);var c=Object.prototype.hasOwnProperty;var s=1;var l=2;var p=3;var a=4;var h=1;var m=2;var g=3;var d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var w=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(r){return Object.prototype.toString.call(r)}function is_EOL(r){return r===10||r===13}function is_WHITE_SPACE(r){return r===9||r===32}function is_WS_OR_EOL(r){return r===9||r===32||r===10||r===13}function is_FLOW_INDICATOR(r){return r===44||r===91||r===93||r===123||r===125}function fromHexCode(r){var n;if(48<=r&&r<=57){return r-48}n=r|32;if(97<=n&&n<=102){return n-97+10}return-1}function escapedHexLen(r){if(r===120){return 2}if(r===117){return 4}if(r===85){return 8}return 0}function fromDecimalCode(r){if(48<=r&&r<=57){return r-48}return-1}function simpleEscapeSequence(r){return r===48?"\0":r===97?"":r===98?"\b":r===116?"\t":r===9?"\t":r===110?"\n":r===118?"\v":r===102?"\f":r===114?"\r":r===101?"":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"
":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function charFromCodepoint(r){if(r<=65535){return String.fromCharCode(r)}return String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}var A=new Array(256);var O=new Array(256);for(var E=0;E<256;E++){A[E]=simpleEscapeSequence(E)?1:0;O[E]=simpleEscapeSequence(E)}function State(r,n){this.input=r;this.filename=n["filename"]||null;this.schema=n["schema"]||t;this.onWarning=n["onWarning"]||null;this.legacy=n["legacy"]||false;this.json=n["json"]||false;this.listener=n["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(r,n){return new o(n,new u(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function throwError(r,n){throw generateError(r,n)}function throwWarning(r,n){if(r.onWarning){r.onWarning.call(null,generateError(r,n))}}var F={YAML:function handleYamlDirective(r,n,e){var i,o,u;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(e.length!==1){throwError(r,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(e[0]);if(i===null){throwError(r,"ill-formed argument of the YAML directive")}o=parseInt(i[1],10);u=parseInt(i[2],10);if(o!==1){throwError(r,"unacceptable YAML version of the document")}r.version=e[0];r.checkLineBreaks=u<2;if(u!==1&&u!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,n,e){var i,o;if(e.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}i=e[0];o=e[1];if(!v.test(i)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(r.tagMap,i)){throwError(r,'there is a previously declared suffix for "'+i+'" tag handle')}if(!S.test(o)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}r.tagMap[i]=o}};function captureSegment(r,n,e,i){var o,u,f,t;if(n<e){t=r.input.slice(n,e);if(i){for(o=0,u=t.length;o<u;o+=1){f=t.charCodeAt(o);if(!(f===9||32<=f&&f<=1114111)){throwError(r,"expected valid JSON character")}}}else if(d.test(t)){throwError(r,"the stream contains non-printable characters")}r.result+=t}}function mergeMappings(r,n,e,o){var u,f,t,s;if(!i.isObject(e)){throwError(r,"cannot merge mappings; the provided source object is unacceptable")}u=Object.keys(e);for(t=0,s=u.length;t<s;t+=1){f=u[t];if(!c.call(n,f)){n[f]=e[f];o[f]=true}}}function storeMappingPair(r,n,e,i,o,u,f,t){var s,l;if(Array.isArray(o)){o=Array.prototype.slice.call(o);for(s=0,l=o.length;s<l;s+=1){if(Array.isArray(o[s])){throwError(r,"nested arrays are not supported inside keys")}if(typeof o==="object"&&_class(o[s])==="[object Object]"){o[s]="[object Object]"}}}if(typeof o==="object"&&_class(o)==="[object Object]"){o="[object Object]"}o=String(o);if(n===null){n={}}if(i==="tag:yaml.org,2002:merge"){if(Array.isArray(u)){for(s=0,l=u.length;s<l;s+=1){mergeMappings(r,n,u[s],e)}}else{mergeMappings(r,n,u,e)}}else{if(!r.json&&!c.call(e,o)&&c.call(n,o)){r.line=f||r.line;r.position=t||r.position;throwError(r,"duplicated mapping key")}n[o]=u;delete e[o]}return n}function readLineBreak(r){var n;n=r.input.charCodeAt(r.position);if(n===10){r.position++}else if(n===13){r.position++;if(r.input.charCodeAt(r.position)===10){r.position++}}else{throwError(r,"a line break is expected")}r.line+=1;r.lineStart=r.position}function skipSeparationSpace(r,n,e){var i=0,o=r.input.charCodeAt(r.position);while(o!==0){while(is_WHITE_SPACE(o)){o=r.input.charCodeAt(++r.position)}if(n&&o===35){do{o=r.input.charCodeAt(++r.position)}while(o!==10&&o!==13&&o!==0)}if(is_EOL(o)){readLineBreak(r);o=r.input.charCodeAt(r.position);i++;r.lineIndent=0;while(o===32){r.lineIndent++;o=r.input.charCodeAt(++r.position)}}else{break}}if(e!==-1&&i!==0&&r.lineIndent<e){throwWarning(r,"deficient indentation")}return i}function testDocumentSeparator(r){var n=r.position,e;e=r.input.charCodeAt(n);if((e===45||e===46)&&e===r.input.charCodeAt(n+1)&&e===r.input.charCodeAt(n+2)){n+=3;e=r.input.charCodeAt(n);if(e===0||is_WS_OR_EOL(e)){return true}}return false}function writeFoldedLines(r,n){if(n===1){r.result+=" "}else if(n>1){r.result+=i.repeat("\n",n-1)}}function readPlainScalar(r,n,e){var i,o,u,f,t,c,s,l,p=r.kind,a=r.result,h;h=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){return false}}r.kind="scalar";r.result="";u=f=r.position;t=false;while(h!==0){if(h===58){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){break}}else if(h===35){i=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(i)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||e&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=r.line;s=r.lineStart;l=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=n){t=true;h=r.input.charCodeAt(r.position);continue}else{r.position=f;r.line=c;r.lineStart=s;r.lineIndent=l;break}}if(t){captureSegment(r,u,f,false);writeFoldedLines(r,r.line-c);u=f=r.position;t=false}if(!is_WHITE_SPACE(h)){f=r.position+1}h=r.input.charCodeAt(++r.position)}captureSegment(r,u,f,false);if(r.result){return true}r.kind=p;r.result=a;return false}function readSingleQuotedScalar(r,n){var e,i,o;e=r.input.charCodeAt(r.position);if(e!==39){return false}r.kind="scalar";r.result="";r.position++;i=o=r.position;while((e=r.input.charCodeAt(r.position))!==0){if(e===39){captureSegment(r,i,r.position,true);e=r.input.charCodeAt(++r.position);if(e===39){i=r.position;r.position++;o=r.position}else{return true}}else if(is_EOL(e)){captureSegment(r,i,o,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));i=o=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;o=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,n){var e,i,o,u,f,t;t=r.input.charCodeAt(r.position);if(t!==34){return false}r.kind="scalar";r.result="";r.position++;e=i=r.position;while((t=r.input.charCodeAt(r.position))!==0){if(t===34){captureSegment(r,e,r.position,true);r.position++;return true}else if(t===92){captureSegment(r,e,r.position,true);t=r.input.charCodeAt(++r.position);if(is_EOL(t)){skipSeparationSpace(r,false,n)}else if(t<256&&A[t]){r.result+=O[t];r.position++}else if((f=escapedHexLen(t))>0){o=f;u=0;for(;o>0;o--){t=r.input.charCodeAt(++r.position);if((f=fromHexCode(t))>=0){u=(u<<4)+f}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(u);r.position++}else{throwError(r,"unknown escape sequence")}e=i=r.position}else if(is_EOL(t)){captureSegment(r,e,i,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));e=i=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;i=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,n){var e=true,i,o=r.tag,u,f=r.anchor,t,c,l,p,a,h={},m,g,d,w;w=r.input.charCodeAt(r.position);if(w===91){c=93;a=false;u=[]}else if(w===123){c=125;a=true;u={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=u}w=r.input.charCodeAt(++r.position);while(w!==0){skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===c){r.position++;r.tag=o;r.anchor=f;r.kind=a?"mapping":"sequence";r.result=u;return true}else if(!e){throwError(r,"missed comma between flow collection entries")}g=m=d=null;l=p=false;if(w===63){t=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(t)){l=p=true;r.position++;skipSeparationSpace(r,true,n)}}i=r.line;composeNode(r,n,s,false,true);g=r.tag;m=r.result;skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if((p||r.line===i)&&w===58){l=true;w=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,n);composeNode(r,n,s,false,true);d=r.result}if(a){storeMappingPair(r,u,h,g,m,d)}else if(l){u.push(storeMappingPair(r,null,h,g,m,d))}else{u.push(m)}skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===44){e=true;w=r.input.charCodeAt(++r.position)}else{e=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,n){var e,o,u=h,f=false,t=false,c=n,s=0,l=false,p,a;a=r.input.charCodeAt(r.position);if(a===124){o=false}else if(a===62){o=true}else{return false}r.kind="scalar";r.result="";while(a!==0){a=r.input.charCodeAt(++r.position);if(a===43||a===45){if(h===u){u=a===43?g:m}else{throwError(r,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(a))>=0){if(p===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!t){c=n+p-1;t=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(a)){do{a=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(a));if(a===35){do{a=r.input.charCodeAt(++r.position)}while(!is_EOL(a)&&a!==0)}}while(a!==0){readLineBreak(r);r.lineIndent=0;a=r.input.charCodeAt(r.position);while((!t||r.lineIndent<c)&&a===32){r.lineIndent++;a=r.input.charCodeAt(++r.position)}if(!t&&r.lineIndent>c){c=r.lineIndent}if(is_EOL(a)){s++;continue}if(r.lineIndent<c){if(u===g){r.result+=i.repeat("\n",f?1+s:s)}else if(u===h){if(f){r.result+="\n"}}break}if(o){if(is_WHITE_SPACE(a)){l=true;r.result+=i.repeat("\n",f?1+s:s)}else if(l){l=false;r.result+=i.repeat("\n",s+1)}else if(s===0){if(f){r.result+=" "}}else{r.result+=i.repeat("\n",s)}}else{r.result+=i.repeat("\n",f?1+s:s)}f=true;t=true;s=0;e=r.position;while(!is_EOL(a)&&a!==0){a=r.input.charCodeAt(++r.position)}captureSegment(r,e,r.position,false)}return true}function readBlockSequence(r,n){var e,i=r.tag,o=r.anchor,u=[],f,t=false,c;if(r.anchor!==null){r.anchorMap[r.anchor]=u}c=r.input.charCodeAt(r.position);while(c!==0){if(c!==45){break}f=r.input.charCodeAt(r.position+1);if(!is_WS_OR_EOL(f)){break}t=true;r.position++;if(skipSeparationSpace(r,true,-1)){if(r.lineIndent<=n){u.push(null);c=r.input.charCodeAt(r.position);continue}}e=r.line;composeNode(r,n,p,false,true);u.push(r.result);skipSeparationSpace(r,true,-1);c=r.input.charCodeAt(r.position);if((r.line===e||r.lineIndent>n)&&c!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndent<n){break}}if(t){r.tag=i;r.anchor=o;r.kind="sequence";r.result=u;return true}return false}function readBlockMapping(r,n,e){var i,o,u,f,t=r.tag,c=r.anchor,s={},p={},h=null,m=null,g=null,d=false,w=false,b;if(r.anchor!==null){r.anchorMap[r.anchor]=s}b=r.input.charCodeAt(r.position);while(b!==0){i=r.input.charCodeAt(r.position+1);u=r.line;f=r.position;if((b===63||b===58)&&is_WS_OR_EOL(i)){if(b===63){if(d){storeMappingPair(r,s,p,h,m,null);h=m=g=null}w=true;d=true;o=true}else if(d){d=false;o=true}else{throwError(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}r.position+=1;b=i}else if(composeNode(r,e,l,false,true)){if(r.line===u){b=r.input.charCodeAt(r.position);while(is_WHITE_SPACE(b)){b=r.input.charCodeAt(++r.position)}if(b===58){b=r.input.charCodeAt(++r.position);if(!is_WS_OR_EOL(b)){throwError(r,"a whitespace character is expected after the key-value separator within a block mapping")}if(d){storeMappingPair(r,s,p,h,m,null);h=m=g=null}w=true;d=false;o=false;h=r.tag;m=r.result}else if(w){throwError(r,"can not read an implicit mapping pair; a colon is missed")}else{r.tag=t;r.anchor=c;return true}}else if(w){throwError(r,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{r.tag=t;r.anchor=c;return true}}else{break}if(r.line===u||r.lineIndent>n){if(composeNode(r,n,a,true,o)){if(d){m=r.result}else{g=r.result}}if(!d){storeMappingPair(r,s,p,h,m,g,u,f);h=m=g=null}skipSeparationSpace(r,true,-1);b=r.input.charCodeAt(r.position)}if(r.lineIndent>n&&b!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndent<n){break}}if(d){storeMappingPair(r,s,p,h,m,null)}if(w){r.tag=t;r.anchor=c;r.kind="mapping";r.result=s}return w}function readTagProperty(r){var n,e=false,i=false,o,u,f;f=r.input.charCodeAt(r.position);if(f!==33)return false;if(r.tag!==null){throwError(r,"duplication of a tag property")}f=r.input.charCodeAt(++r.position);if(f===60){e=true;f=r.input.charCodeAt(++r.position)}else if(f===33){i=true;o="!!";f=r.input.charCodeAt(++r.position)}else{o="!"}n=r.position;if(e){do{f=r.input.charCodeAt(++r.position)}while(f!==0&&f!==62);if(r.position<r.length){u=r.input.slice(n,r.position);f=r.input.charCodeAt(++r.position)}else{throwError(r,"unexpected end of the stream within a verbatim tag")}}else{while(f!==0&&!is_WS_OR_EOL(f)){if(f===33){if(!i){o=r.input.slice(n-1,r.position+1);if(!v.test(o)){throwError(r,"named tag handle cannot contain such characters")}i=true;n=r.position+1}else{throwError(r,"tag suffix cannot contain exclamation marks")}}f=r.input.charCodeAt(++r.position)}u=r.input.slice(n,r.position);if(b.test(u)){throwError(r,"tag suffix cannot contain flow indicator characters")}}if(u&&!S.test(u)){throwError(r,"tag name cannot contain such characters: "+u)}if(e){r.tag=u}else if(c.call(r.tagMap,o)){r.tag=r.tagMap[o]+u}else if(o==="!"){r.tag="!"+u}else if(o==="!!"){r.tag="tag:yaml.org,2002:"+u}else{throwError(r,'undeclared tag handle "'+o+'"')}return true}function readAnchorProperty(r){var n,e;e=r.input.charCodeAt(r.position);if(e!==38)return false;if(r.anchor!==null){throwError(r,"duplication of an anchor property")}e=r.input.charCodeAt(++r.position);n=r.position;while(e!==0&&!is_WS_OR_EOL(e)&&!is_FLOW_INDICATOR(e)){e=r.input.charCodeAt(++r.position)}if(r.position===n){throwError(r,"name of an anchor node must contain at least one character")}r.anchor=r.input.slice(n,r.position);return true}function readAlias(r){var n,e,i;i=r.input.charCodeAt(r.position);if(i!==42)return false;i=r.input.charCodeAt(++r.position);n=r.position;while(i!==0&&!is_WS_OR_EOL(i)&&!is_FLOW_INDICATOR(i)){i=r.input.charCodeAt(++r.position)}if(r.position===n){throwError(r,"name of an alias node must contain at least one character")}e=r.input.slice(n,r.position);if(!r.anchorMap.hasOwnProperty(e)){throwError(r,'unidentified alias "'+e+'"')}r.result=r.anchorMap[e];skipSeparationSpace(r,true,-1);return true}function composeNode(r,n,e,i,o){var u,f,t,h=1,m=false,g=false,d,w,b,v,S;if(r.listener!==null){r.listener("open",r)}r.tag=null;r.anchor=null;r.kind=null;r.result=null;u=f=t=a===e||p===e;if(i){if(skipSeparationSpace(r,true,-1)){m=true;if(r.lineIndent>n){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndent<n){h=-1}}}if(h===1){while(readTagProperty(r)||readAnchorProperty(r)){if(skipSeparationSpace(r,true,-1)){m=true;t=u;if(r.lineIndent>n){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndent<n){h=-1}}else{t=false}}}if(t){t=m||o}if(h===1||a===e){if(s===e||l===e){v=n}else{v=n+1}S=r.position-r.lineStart;if(h===1){if(t&&(readBlockSequence(r,S)||readBlockMapping(r,S,v))||readFlowCollection(r,v)){g=true}else{if(f&&readBlockScalar(r,v)||readSingleQuotedScalar(r,v)||readDoubleQuotedScalar(r,v)){g=true}else if(readAlias(r)){g=true;if(r.tag!==null||r.anchor!==null){throwError(r,"alias node should not have any properties")}}else if(readPlainScalar(r,v,s===e)){g=true;if(r.tag===null){r.tag="?"}}if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else if(h===0){g=t&&readBlockSequence(r,S)}}if(r.tag!==null&&r.tag!=="!"){if(r.tag==="?"){for(d=0,w=r.implicitTypes.length;d<w;d+=1){b=r.implicitTypes[d];if(b.resolve(r.result)){r.result=b.construct(r.result);r.tag=b.tag;if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}break}}}else if(c.call(r.typeMap[r.kind||"fallback"],r.tag)){b=r.typeMap[r.kind||"fallback"][r.tag];if(r.result!==null&&b.kind!==r.kind){throwError(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+b.kind+'", not "'+r.kind+'"')}if(!b.resolve(r.result)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=b.construct(r.result);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else{throwError(r,"unknown tag !<"+r.tag+">")}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||g}function readDocument(r){var n=r.position,e,i,o,u=false,f;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap={};r.anchorMap={};while((f=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);f=r.input.charCodeAt(r.position);if(r.lineIndent>0||f!==37){break}u=true;f=r.input.charCodeAt(++r.position);e=r.position;while(f!==0&&!is_WS_OR_EOL(f)){f=r.input.charCodeAt(++r.position)}i=r.input.slice(e,r.position);o=[];if(i.length<1){throwError(r,"directive name must not be less than one character in length")}while(f!==0){while(is_WHITE_SPACE(f)){f=r.input.charCodeAt(++r.position)}if(f===35){do{f=r.input.charCodeAt(++r.position)}while(f!==0&&!is_EOL(f));break}if(is_EOL(f))break;e=r.position;while(f!==0&&!is_WS_OR_EOL(f)){f=r.input.charCodeAt(++r.position)}o.push(r.input.slice(e,r.position))}if(f!==0)readLineBreak(r);if(c.call(F,i)){F[i](r,i,o)}else{throwWarning(r,'unknown document directive "'+i+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(u){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,a,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&w.test(r.input.slice(n,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position<r.length-1){throwError(r,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(r,n){r=String(r);n=n||{};if(r.length!==0){if(r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13){r+="\n"}if(r.charCodeAt(0)===65279){r=r.slice(1)}}var e=new State(r,n);e.input+="\0";while(e.input.charCodeAt(e.position)===32){e.lineIndent+=1;e.position+=1}while(e.position<e.length-1){readDocument(e)}return e.documents}function loadAll(r,n,e){var i=loadDocuments(r,e),o,u;if(typeof n!=="function"){return i}for(o=0,u=i.length;o<u;o+=1){n(i[o])}}function load(r,n){var e=loadDocuments(r,n);if(e.length===0){return undefined}else if(e.length===1){return e[0]}throw new o("expected a single document in the stream, but found more")}function safeLoadAll(r,n,e){if(typeof n==="function"){loadAll(r,n,i.extend({schema:f},e))}else{return loadAll(r,i.extend({schema:f},e))}}function safeLoad(r,n){return load(r,i.extend({schema:f},n))}r.exports.loadAll=loadAll;r.exports.load=load;r.exports.safeLoadAll=safeLoadAll;r.exports.safeLoad=safeLoad},351:function(r){"use strict";function YAMLException(r,n){Error.call(this);this.name="YAMLException";this.reason=r;this.mark=n;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(r){var n=this.name+": ";n+=this.reason||"(unknown reason)";if(!r&&this.mark){n+=" "+this.mark.toString()}return n};r.exports=YAMLException},367:function(r,n,e){"use strict";var i;try{var o=require;i=o("buffer").Buffer}catch(r){}var u=e(205);var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(r){if(r===null)return false;var n,e,i=0,o=r.length,u=f;for(e=0;e<o;e++){n=u.indexOf(r.charAt(e));if(n>64)continue;if(n<0)return false;i+=6}return i%8===0}function constructYamlBinary(r){var n,e,o=r.replace(/[\r\n=]/g,""),u=o.length,t=f,c=0,s=[];for(n=0;n<u;n++){if(n%4===0&&n){s.push(c>>16&255);s.push(c>>8&255);s.push(c&255)}c=c<<6|t.indexOf(o.charAt(n))}e=u%4*6;if(e===0){s.push(c>>16&255);s.push(c>>8&255);s.push(c&255)}else if(e===18){s.push(c>>10&255);s.push(c>>2&255)}else if(e===12){s.push(c>>4&255)}if(i){return i.from?i.from(s):new i(s)}return s}function representYamlBinary(r){var n="",e=0,i,o,u=r.length,t=f;for(i=0;i<u;i++){if(i%3===0&&i){n+=t[e>>18&63];n+=t[e>>12&63];n+=t[e>>6&63];n+=t[e&63]}e=(e<<8)+r[i]}o=u%3;if(o===0){n+=t[e>>18&63];n+=t[e>>12&63];n+=t[e>>6&63];n+=t[e&63]}else if(o===2){n+=t[e>>10&63];n+=t[e>>4&63];n+=t[e<<2&63];n+=t[64]}else if(o===1){n+=t[e>>2&63];n+=t[e<<4&63];n+=t[64];n+=t[64]}return n}function isBinary(r){return i&&i.isBuffer(r)}r.exports=new u("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},387:function(r,n,e){"use strict";var i=e(261);function Mark(r,n,e,i,o){this.name=r;this.buffer=n;this.position=e;this.line=i;this.column=o}Mark.prototype.getSnippet=function getSnippet(r,n){var e,o,u,f,t;if(!this.buffer)return null;r=r||4;n=n||75;e="";o=this.position;while(o>0&&"\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>n/2-1){e=" ... ";o+=5;break}}u="";f=this.position;while(f<this.buffer.length&&"\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(f))===-1){f+=1;if(f-this.position>n/2-1){u=" ... ";f-=5;break}}t=this.buffer.slice(o,f);return i.repeat(" ",r)+e+t+u+"\n"+i.repeat(" ",r+this.position-o+e.length)+"^"};Mark.prototype.toString=function toString(r){var n,e="";if(this.name){e+='in "'+this.name+'" '}e+="at line "+(this.line+1)+", column "+(this.column+1);if(!r){n=this.getSnippet();if(n){e+=":\n"+n}}return e};r.exports=Mark},394:function(r,n,e){"use strict";var i=e(747);var o=e(795);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var r=tryReadFileSync("/etc/passwd");var n=find(o(r),getuid());if(n){return n}var e=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!e){return null}if(process.platform==="darwin"){return"/Users/"+e}return"/home/"+e}function find(r,n){var e=r.length;for(var i=0;i<e;i++){if(+r[i].uid===n){return r[i].homedir}}}function getuid(){if(typeof process.geteuid==="function"){return process.geteuid()}return process.getuid()}function tryReadFileSync(r){try{return i.readFileSync(r,"utf8")}catch(r){return""}}r.exports=homedir},403:function(r,n,e){"use strict";var i=e(205);var o=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var n,e,i,u,f,t=r;f=new Array(t.length);for(n=0,e=t.length;n<e;n+=1){i=t[n];if(o.call(i)!=="[object Object]")return false;u=Object.keys(i);if(u.length!==1)return false;f[n]=[u[0],i[u[0]]]}return true}function constructYamlPairs(r){if(r===null)return[];var n,e,i,o,u,f=r;u=new Array(f.length);for(n=0,e=f.length;n<e;n+=1){i=f[n];o=Object.keys(i);u[n]=[o[0],i[o[0]]]}return u}r.exports=new i("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},413:function(r){r.exports=require("stream")},447:function(r,n,e){"use strict";var i=e(261);var o=e(351);var u=e(205);function compileList(r,n,e){var i=[];r.include.forEach(function(r){e=compileList(r,n,e)});r[n].forEach(function(r){e.forEach(function(n,e){if(n.tag===r.tag&&n.kind===r.kind){i.push(e)}});e.push(r)});return e.filter(function(r,n){return i.indexOf(n)===-1})}function compileMap(){var r={scalar:{},sequence:{},mapping:{},fallback:{}},n,e;function collectType(n){r[n.kind][n.tag]=r["fallback"][n.tag]=n}for(n=0,e=arguments.length;n<e;n+=1){arguments[n].forEach(collectType)}return r}function Schema(r){this.include=r.include||[];this.implicit=r.implicit||[];this.explicit=r.explicit||[];this.implicit.forEach(function(r){if(r.loadKind&&r.loadKind!=="scalar"){throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}});this.compiledImplicit=compileList(this,"implicit",[]);this.compiledExplicit=compileList(this,"explicit",[]);this.compiledTypeMap=compileMap(this.compiledImplicit,this.compiledExplicit)}Schema.DEFAULT=null;Schema.create=function createSchema(){var r,n;switch(arguments.length){case 1:r=Schema.DEFAULT;n=arguments[0];break;case 2:r=arguments[0];n=arguments[1];break;default:throw new o("Wrong number of arguments for Schema.create function")}r=i.toArray(r);n=i.toArray(n);if(!r.every(function(r){return r instanceof Schema})){throw new o("Specified list of super schemas (or a single Schema object) contains a non-Schema object.")}if(!n.every(function(r){return r instanceof u})){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}return new Schema({include:r,explicit:n})};r.exports=Schema},478:function(r,n,e){"use strict";var i=e(447);r.exports=i.DEFAULT=new i({include:[e(728)],explicit:[e(716),e(90),e(326)]})},486:function(r,n,e){"use strict";var i=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var e in r)if(Object.hasOwnProperty.call(r,e))n[e]=r[e];n["default"]=r;return n};Object.defineProperty(n,"__esModule",{value:true});const o=i(e(87));function issueCommand(r,n,e){const i=new Command(r,n,e);process.stdout.write(i.toString()+o.EOL)}n.issueCommand=issueCommand;function issue(r,n=""){issueCommand(r,{},n)}n.issue=issue;const u="::";class Command{constructor(r,n,e){if(!r){r="missing.command"}this.command=r;this.properties=n;this.message=e}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let n=true;for(const e in this.properties){if(this.properties.hasOwnProperty(e)){const i=this.properties[e];if(i){if(n){n=false}else{r+=","}r+=`${e}=${escapeProperty(i)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}n.toCommandValue=toCommandValue;function escapeData(r){return toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},504:function(module){module.exports=eval("require")("encoding")},543:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},585:function(r,n,e){"use strict";var i=e(335);var o=e(300);function deprecated(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}r.exports.Type=e(205);r.exports.Schema=e(447);r.exports.FAILSAFE_SCHEMA=e(237);r.exports.JSON_SCHEMA=e(606);r.exports.CORE_SCHEMA=e(652);r.exports.DEFAULT_SAFE_SCHEMA=e(728);r.exports.DEFAULT_FULL_SCHEMA=e(478);r.exports.load=i.load;r.exports.loadAll=i.loadAll;r.exports.safeLoad=i.safeLoad;r.exports.safeLoadAll=i.safeLoadAll;r.exports.dump=o.dump;r.exports.safeDump=o.safeDump;r.exports.YAMLException=e(351);r.exports.MINIMAL_SCHEMA=e(237);r.exports.SAFE_SCHEMA=e(728);r.exports.DEFAULT_SCHEMA=e(478);r.exports.scan=deprecated("scan");r.exports.parse=deprecated("parse");r.exports.compose=deprecated("compose");r.exports.addConstructor=deprecated("addConstructor")},601:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(228));n.runSelfInstaller=u.default;async function install(r){const n=await u.default(r);if(n){return o.setFailed(`Something does wrong, self-installer exits with code ${n}`)}}n.install=install;n.default=install},605:function(r){r.exports=require("http")},606:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(237)],implicit:[e(674),e(797),e(632),e(989)]})},622:function(r){r.exports=require("path")},632:function(r,n,e){"use strict";var i=e(261);var o=e(205);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var n=r.length,e=0,i=false,o;if(!n)return false;o=r[e];if(o==="-"||o==="+"){o=r[++e]}if(o==="0"){if(e+1===n)return true;o=r[++e];if(o==="b"){e++;for(;e<n;e++){o=r[e];if(o==="_")continue;if(o!=="0"&&o!=="1")return false;i=true}return i&&o!=="_"}if(o==="x"){e++;for(;e<n;e++){o=r[e];if(o==="_")continue;if(!isHexCode(r.charCodeAt(e)))return false;i=true}return i&&o!=="_"}for(;e<n;e++){o=r[e];if(o==="_")continue;if(!isOctCode(r.charCodeAt(e)))return false;i=true}return i&&o!=="_"}if(o==="_")return false;for(;e<n;e++){o=r[e];if(o==="_")continue;if(o===":")break;if(!isDecCode(r.charCodeAt(e))){return false}i=true}if(!i||o==="_")return false;if(o!==":")return true;return/^(:[0-5]?[0-9])+$/.test(r.slice(e))}function constructYamlInteger(r){var n=r,e=1,i,o,u=[];if(n.indexOf("_")!==-1){n=n.replace(/_/g,"")}i=n[0];if(i==="-"||i==="+"){if(i==="-")e=-1;n=n.slice(1);i=n[0]}if(n==="0")return 0;if(i==="0"){if(n[1]==="b")return e*parseInt(n.slice(2),2);if(n[1]==="x")return e*parseInt(n,16);return e*parseInt(n,8)}if(n.indexOf(":")!==-1){n.split(":").forEach(function(r){u.unshift(parseInt(r,10))});n=0;o=1;u.forEach(function(r){n+=r*o;o*=60});return e*n}return e*parseInt(n,10)}function isInteger(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1===0&&!i.isNegativeZero(r))}r.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(r){return r>=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},652:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(606)]})},658:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=i(e(203));const u=i(e(0));n.downloadSelfInstaller=(()=>o.default(u.default));n.default=n.downloadSelfInstaller},674:function(r,n,e){"use strict";var i=e(205);function resolveYamlNull(r){if(r===null)return true;var n=r.length;return n===1&&r==="~"||n===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new i("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},716:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(r){return typeof r==="undefined"}r.exports=new i("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},728:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(652)],implicit:[e(808),e(799)],explicit:[e(367),e(327),e(403),e(211)]})},747:function(r){r.exports=require("fs")},761:function(r){r.exports=require("zlib")},765:function(r){r.exports=require("process")},795:function(r){"use strict";r.exports=function(r){if(typeof r!=="string"){throw new Error("expected a string")}return r.split("\n").map(user).filter(Boolean)};function user(r,n){if(!r||!r.length||r.charAt(0)==="#"){return null}var e=r.split(":");return{username:e[0],password:e[1],uid:e[2],gid:e[3],gecos:e[4],homedir:e[5],shell:e[6]}}},797:function(r,n,e){"use strict";var i=e(205);function resolveYamlBoolean(r){if(r===null)return false;var n=r.length;return n===4&&(r==="true"||r==="True"||r==="TRUE")||n===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}r.exports=new i("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})},799:function(r,n,e){"use strict";var i=e(205);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},803:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(271));const f=i(e(897));const t=i(e(601));async function main(){const r=u.default();await t.default(r);console.log("Installation Completed!");f.default(r)}main().catch(r=>{console.error(r);o.setFailed(r)})},806:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},808:function(r,n,e){"use strict";var i=e(205);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var u=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(o.exec(r)!==null)return true;if(u.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var n,e,i,f,t,c,s,l=0,p=null,a,h,m;n=o.exec(r);if(n===null)n=u.exec(r);if(n===null)throw new Error("Date resolve error");e=+n[1];i=+n[2]-1;f=+n[3];if(!n[4]){return new Date(Date.UTC(e,i,f))}t=+n[4];c=+n[5];s=+n[6];if(n[7]){l=n[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(n[9]){a=+n[10];h=+(n[11]||0);p=(a*60+h)*6e4;if(n[9]==="-")p=-p}m=new Date(Date.UTC(e,i,f,t,c,s,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(r){return r.toISOString()}r.exports=new i("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},835:function(r){r.exports=require("url")},839:function(r,n,e){"use strict";function __export(r){for(var e in r)if(!n.hasOwnProperty(e))n[e]=r[e]}Object.defineProperty(n,"__esModule",{value:true});__export(e(0));__export(e(658))},840:function(r,n,e){"use strict";var i=e(585);r.exports=i},897:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});const i=e(89);function setOutputs(r){i.addPath(r.binDest);i.setOutput("dest",r.dest);i.setOutput("bin_dest",r.binDest)}n.setOutputs=setOutputs;n.default=setOutputs},966:function(r,n,e){var i=e(191);var o=e(622);r.exports=function expandTilde(r){var n=i();if(r.charCodeAt(0)===126){if(r.charCodeAt(1)===43){return o.join(process.cwd(),r.slice(2))}return n?o.join(n,r.slice(1)):r}return r}},989:function(r,n,e){"use strict";var i=e(261);var o=e(205);var u=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!u.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var n,e,i,o;n=r.replace(/_/g,"").toLowerCase();e=n[0]==="-"?-1:1;o=[];if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return e===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}else if(n.indexOf(":")>=0){n.split(":").forEach(function(r){o.unshift(parseFloat(r,10))});n=0;i=1;o.forEach(function(r){n+=r*i;i*=60});return e*n}return e*parseFloat(n,10)}var f=/^[-+]?[0-9]+e/;function representYamlFloat(r,n){var e;if(isNaN(r)){switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(i.isNegativeZero(r)){return"-0.0"}e=r.toString(10);return f.test(e)?e.replace("e",".e"):e}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||i.isNegativeZero(r))}r.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})}}); |