gpg/dist/index.js

17 lines
737 KiB
JavaScript
Raw Normal View History

2023-05-05 16:17:08 -04:00
require('./sourcemap-register.js');(()=>{var Ae={7351:function(Ae,Se,Ke){"use strict";var qe=this&&this.__createBinding||(Object.create?function(Ae,Se,Ke,qe){if(qe===undefined)qe=Ke;Object.defineProperty(Ae,qe,{enumerable:true,get:function(){return Se[Ke]}})}:function(Ae,Se,Ke,qe){if(qe===undefined)qe=Ke;Ae[qe]=Se[Ke]});var Fe=this&&this.__setModuleDefault||(Object.create?function(Ae,Se){Object.defineProperty(Ae,"default",{enumerable:true,value:Se})}:function(Ae,Se){Ae["default"]=Se});var $e=this&&this.__importStar||function(Ae){if(Ae&&Ae.__esModule)return Ae;var Se={};if(Ae!=null)for(var Ke in Ae)if(Ke!=="default"&&Object.hasOwnProperty.call(Ae,Ke))qe(Se,Ae,Ke);Fe(Se,Ae);return Se};Object.defineProperty(Se,"__esModule",{value:true});Se.issue=Se.issueCommand=void 0;const rt=$e(Ke(2037));const it=Ke(5278);function issueCommand(Ae,Se,Ke){const qe=new Command(Ae,Se,Ke);process.stdout.write(qe.toString()+rt.EOL)}Se.issueCommand=issueCommand;function issue(Ae,Se=""){issueCommand(Ae,{},Se)}Se.issue=issue;const nt="::";class Command{constructor(Ae,Se,Ke){if(!Ae){Ae="missing.command"}this.command=Ae;this.properties=Se;this.message=Ke}toString(){let Ae=nt+this.command;if(this.properties&&Object.keys(this.properties).length>0){Ae+=" ";let Se=true;for(const Ke in this.properties){if(this.properties.hasOwnProperty(Ke)){const qe=this.properties[Ke];if(qe){if(Se){Se=false}else{Ae+=","}Ae+=`${Ke}=${escapeProperty(qe)}`}}}}Ae+=`${nt}${escapeData(this.message)}`;return Ae}}function escapeData(Ae){return it.toCommandValue(Ae).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(Ae){return it.toCommandValue(Ae).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(Ae,Se,Ke){"use strict";var qe=this&&this.__createBinding||(Object.create?function(Ae,Se,Ke,qe){if(qe===undefined)qe=Ke;Object.defineProperty(Ae,qe,{enumerable:true,get:function(){return Se[Ke]}})}:function(Ae,Se,Ke,qe){if(qe===undefined)qe=Ke;Ae[qe]=Se[Ke]});var Fe=this&&this.__setModuleDefault||(Object.create?function(Ae,Se){Object.defineProperty(Ae,"default",{enumerable:true,value:Se})}:function(Ae,Se){Ae["default"]=Se});var $e=this&&this.__importStar||function(Ae){if(Ae&&Ae.__esModule)return Ae;var Se={};if(Ae!=null)for(var Ke in Ae)if(Ke!=="default"&&Object.hasOwnProperty.call(Ae,Ke))qe(Se,Ae,Ke);Fe(Se,Ae);return Se};var rt=this&&this.__awaiter||function(Ae,Se,Ke,qe){function adopt(Ae){return Ae instanceof Ke?Ae:new Ke((function(Se){Se(Ae)}))}return new(Ke||(Ke=Promise))((function(Ke,Fe){function fulfilled(Ae){try{step(qe.next(Ae))}catch(Ae){Fe(Ae)}}function rejected(Ae){try{step(qe["throw"](Ae))}catch(Ae){Fe(Ae)}}function step(Ae){Ae.done?Ke(Ae.value):adopt(Ae.value).then(fulfilled,rejected)}step((qe=qe.apply(Ae,Se||[])).next())}))};Object.defineProperty(Se,"__esModule",{value:true});Se.getIDToken=Se.getState=Se.saveState=Se.group=Se.endGroup=Se.startGroup=Se.info=Se.notice=Se.warning=Se.error=Se.debug=Se.isDebug=Se.setFailed=Se.setCommandEcho=Se.setOutput=Se.getBooleanInput=Se.getMultilineInput=Se.getInput=Se.addPath=Se.setSecret=Se.exportVariable=Se.ExitCode=void 0;const it=Ke(7351);const nt=Ke(717);const st=Ke(5278);const ut=$e(Ke(2037));const ht=$e(Ke(1017));const ft=Ke(8041);var yt;(function(Ae){Ae[Ae["Success"]=0]="Success";Ae[Ae["Failure"]=1]="Failure"})(yt=Se.ExitCode||(Se.ExitCode={}));function exportVariable(Ae,Se){const Ke=st.toCommandValue(Se);process.env[Ae]=Ke;const qe=process.env["GITHUB_ENV"]||"";if(qe){return nt.issueFileCommand("ENV",nt.prepareKeyValueMessage(Ae,Se))}it.issueCommand("set-env",{name:Ae},Ke)}Se.exportVariable=exportVariable;function setSecret(Ae){it.issueCommand("add-mask",{},Ae)}Se.setSecret=setSecret;function addPath(Ae){const Se=process.env["GITHUB_PATH"]||"";if(Se){nt.issueFileCommand("PATH",Ae)}else{it.issueCommand("add-path",{},Ae)}process.env["PATH"]=`${Ae}${ht.delimiter}${process.env["PATH"]}`}Se.addPath=addPath;function getInput(Ae,Se){const Ke=process.env[`INPUT_${Ae.replace(/ /g,"_").toUpperCase()}`]||"";if(Se&&Se.required&&!Ke){throw
/*! OpenPGP.js v5.8.0 - 2023-04-18 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */const qe="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.defineProperty(Se,"__esModule",{value:!0});var Fe=Ke(4300),$e=Ke(2781),rt=Ke(6113),it=Ke(9796),nt=Ke(2037),st=Ke(3837),ut=Ke(4293);function c(Ae){return Ae&&"object"==typeof Ae&&"default"in Ae?Ae:{default:Ae}}var ht=c(Fe),ft=c($e),yt=c(rt),mt=c(it),vt=c(nt),_t=c(st),Rt=c(ut);const Kt=Symbol("doneWritingPromise"),It=Symbol("doneWritingResolve"),Ut=Symbol("doneWritingReject"),Ot=Symbol("readingIndex");class v extends Array{constructor(){super(),this[Kt]=new Promise(((Ae,Se)=>{this[It]=Ae,this[Ut]=Se})),this[Kt].catch((()=>{}))}}function _(Ae){return Ae&&Ae.getReader&&Array.isArray(Ae)}function k(Ae){if(!_(Ae)){const Se=Ae.getWriter(),Ke=Se.releaseLock;return Se.releaseLock=()=>{Se.closed.catch((function(){})),Ke.call(Se)},Se}this.stream=Ae}v.prototype.getReader=function(){return void 0===this[Ot]&&(this[Ot]=0),{read:async()=>(await this[Kt],this[Ot]===this.length?{value:void 0,done:!0}:{value:this[this[Ot]++],done:!1})}},v.prototype.readToEnd=async function(Ae){await this[Kt];const Se=Ae(this.slice(this[Ot]));return this.length=0,Se},v.prototype.clone=function(){const Ae=new v;return Ae[Kt]=this[Kt].then((()=>{Ae.push(...this)})),Ae},k.prototype.write=async function(Ae){this.stream.push(Ae)},k.prototype.close=async function(){this.stream[It]()},k.prototype.abort=async function(Ae){return this.stream[Ut](Ae),Ae},k.prototype.releaseLock=function(){};const Nt="object"==typeof qe.process&&"object"==typeof qe.process.versions,jt=Nt&&ft.default.Readable;function E(Ae){return _(Ae)?"array":qe.ReadableStream&&qe.ReadableStream.prototype.isPrototypeOf(Ae)?"web":Zt&&Zt.prototype.isPrototypeOf(Ae)?"ponyfill":jt&&jt.prototype.isPrototypeOf(Ae)?"node":!(!Ae||!Ae.getReader)&&"web-like"}function P(Ae){return Uint8Array.prototype.isPrototypeOf(Ae)}function x(Ae){if(1===Ae.length)return Ae[0];let Se=0;for(let Ke=0;Ke<Ae.length;Ke++){if(!P(Ae[Ke]))throw Error("concatUint8Array: Data must be in the form of a Uint8Array");Se+=Ae[Ke].length}const Ke=new Uint8Array(Se);let qe=0;return Ae.forEach((function(Ae){Ke.set(Ae,qe),qe+=Ae.length})),Ke}const Ft=Nt&&ht.default.Buffer,Lt=Nt&&ft.default.Readable;let Ht,Wt;if(Lt){Ht=function(Ae){let Se=!1;return new Zt({start(Ke){Ae.pause(),Ae.on("data",(qe=>{Se||(Ft.isBuffer(qe)&&(qe=new Uint8Array(qe.buffer,qe.byteOffset,qe.byteLength)),Ke.enqueue(qe),Ae.pause())})),Ae.on("end",(()=>{Se||Ke.close()})),Ae.on("error",(Ae=>Ke.error(Ae)))},pull(){Ae.resume()},cancel(Ke){Se=!0,Ae.destroy(Ke)}})};class e extends Lt{constructor(Ae,Se){super(Se),this._reader=H(Ae)}async _read(Ae){try{for(;;){const{done:Ae,value:Se}=await this._reader.read();if(Ae){this.push(null);break}if(!this.push(Se)||this._cancelling){this._reading=!1;break}}}catch(Ae){this.emit("error",Ae)}}_destroy(Ae){this._reader.cancel(Ae)}}Wt=function(Ae,Se){return new e(Ae,Se)}}const Gt=new WeakSet,$t=Symbol("externalBuffer");function I(Ae){if(this.stream=Ae,Ae[$t]&&(this[$t]=Ae[$t].slice()),_(Ae)){const Se=Ae.getReader();return this._read=Se.read.bind(Se),this._releaseLock=()=>{},void(this._cancel=()=>{})}let Se=E(Ae);if("node"===Se&&(Ae=Ht(Ae)),Se){const Se=Ae.getReader();return this._read=Se.read.bind(Se),this._releaseLock=()=>{Se.closed.catch((function(){})),Se.releaseLock()},void(this._cancel=Se.cancel.bind(Se))}let Ke=!1;this._read=async()=>Ke||Gt.has(Ae)?{value:void 0,done:!0}:(Ke=!0,{value:Ae,done:!1}),this._releaseLock=()=>{if(Ke)try{Gt.add(Ae)}catch(Ae){}}}I.prototype.read=async function(){if(this[$t]&&this[$t].length){return{done:!1,value:this[$t].shift()}}return this._read()},I.prototype.releaseLock=function(){this[$t]&&(this.stream[$t]=this[$t]),this._releaseLock()},I.prototype.cancel=function(Ae){return this._cancel(Ae)},I.prototype.readLine=async function(){let Ae,Se=[];for(;!Ae;){let{done:Ke,value:qe}=await this.read();if(qe+="",Ke)return Se.length?W(Se):void 0;const Fe=qe.indexOf("\n")+1
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
2023-05-05 16:17:08 -04:00
***************************************************************************** */};function kp(Ae,Se){if("function"!=typeof Se&&null!==Se)throw new TypeError("Class extends value "+Se+" is not a constructor or null");function r(){this.constructor=Ae}_p(Ae,Se),Ae.prototype=null===Se?Object.create(Se):(r.prototype=Se.prototype,new r)}function Ap(Ae){if(!Ae)throw new TypeError("Assertion failed")}function Sp(){}function Ep(Ae){return"object"==typeof Ae&&null!==Ae||"function"==typeof Ae}function Pp(Ae){if("function"!=typeof Ae)return!1;var Se=!1;try{new Ae({start:function(){Se=!0}})}catch(Ae){}return Se}function xp(Ae){return!!Ep(Ae)&&"function"==typeof Ae.getReader}function Mp(Ae){return!!Ep(Ae)&&"function"==typeof Ae.getWriter}function Cp(Ae){return!!Ep(Ae)&&(!!xp(Ae.readable)&&!!Mp(Ae.writable))}function Kp(Ae){try{return Ae.getReader({mode:"byob"}).releaseLock(),!0}catch(Ae){return!1}}function Dp(Ae,Se){var Ke=(void 0===Se?{}:Se).type;return Ap(xp(Ae)),Ap(!1===Ae.locked),"bytes"===(Ke=Rp(Ke))?new Jy(Ae):new Xy(Ae)}function Rp(Ae){var Se=Ae+"";if("bytes"===Se)return Se;if(void 0===Ae)return Ae;throw new RangeError("Invalid type is specified")}var Qy=function(){function e(Ae){this._underlyingReader=void 0,this._readerMode=void 0,this._readableStreamController=void 0,this._pendingRead=void 0,this._underlyingStream=Ae,this._attachDefaultReader()}return e.prototype.start=function(Ae){this._readableStreamController=Ae},e.prototype.cancel=function(Ae){return Ap(void 0!==this._underlyingReader),this._underlyingReader.cancel(Ae)},e.prototype._attachDefaultReader=function(){if("default"!==this._readerMode){this._detachReader();var Ae=this._underlyingStream.getReader();this._readerMode="default",this._attachReader(Ae)}},e.prototype._attachReader=function(Ae){var Se=this;Ap(void 0===this._underlyingReader),this._underlyingReader=Ae;var Ke=this._underlyingReader.closed;Ke&&Ke.then((function(){return Se._finishPendingRead()})).then((function(){Ae===Se._underlyingReader&&Se._readableStreamController.close()}),(function(Ke){Ae===Se._underlyingReader&&Se._readableStreamController.error(Ke)})).catch(Sp)},e.prototype._detachReader=function(){void 0!==this._underlyingReader&&(this._underlyingReader.releaseLock(),this._underlyingReader=void 0,this._readerMode=void 0)},e.prototype._pullWithDefaultReader=function(){var Ae=this;this._attachDefaultReader();var Se=this._underlyingReader.read().then((function(Se){var Ke=Ae._readableStreamController;Se.done?Ae._tryClose():Ke.enqueue(Se.value)}));return this._setPendingRead(Se),Se},e.prototype._tryClose=function(){try{this._readableStreamController.close()}catch(Ae){}},e.prototype._setPendingRead=function(Ae){var Se,Ke=this,i=function(){Ke._pendingRead===Se&&(Ke._pendingRead=void 0)};this._pendingRead=Se=Ae.then(i,i)},e.prototype._finishPendingRead=function(){var Ae=this;if(this._pendingRead){var t=function(){return Ae._finishPendingRead()};return this._pendingRead.then(t,t)}},e}(),Xy=function(Ae){function t(){return null!==Ae&&Ae.apply(this,arguments)||this}return kp(t,Ae),t.prototype.pull=function(){return this._pullWithDefaultReader()},t}(Qy);function Bp(Ae){return new Uint8Array(Ae.buffer,Ae.byteOffset,Ae.byteLength)}var Jy=function(Ae){function t(Se){var Ke=this,qe=Kp(Se);return(Ke=Ae.call(this,Se)||this)._supportsByob=qe,Ke}return kp(t,Ae),Object.defineProperty(t.prototype,"type",{get:function(){return"bytes"},enumerable:!1,configurable:!0}),t.prototype._attachByobReader=function(){if("byob"!==this._readerMode){Ap(this._supportsByob),this._detachReader();var Ae=this._underlyingStream.getReader({mode:"byob"});this._readerMode="byob",this._attachReader(Ae)}},t.prototype.pull=function(){if(this._supportsByob){var Ae=this._readableStreamController.byobRequest;if(Ae)return this._pullWithByobRequest(Ae)}return this._pullWithDefaultReader()},t.prototype._pullWithByobRequest=function(Ae){var Se=this;this._attachByobReader();var Ke=new Uint8Array(Ae.view.byteLength),qe=this._underlyingReader.read(Ke).then((function(Ke){var qe,Fe,$e;Se._readableStreamController,Ke.done?(Se._tryClose(),Ae.respond(0)):(qe
//# sourceMappingURL=index.js.map