/*! OpenPGP.js v5.5.0 - 2022-08-31 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */constqe="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{};Object.defineProperty(Ae,"__esModule",{value:!0});varze=Ce(4300),Ve=Ce(2781),tt=Ce(6113),rt=Ce(9796),it=Ce(2037),nt=Ce(3837),ot=Ce(4293);functionc(ke){returnke&&"object"==typeofke&&"default"inke?ke:{default:ke}}varct=c(ze),ht=c(Ve),ft=c(tt),yt=c(rt),mt=c(it),kt=c(nt),St=c(ot);constEt=Symbol("doneWritingPromise"),Pt=Symbol("doneWritingResolve"),Dt=Symbol("doneWritingReject"),Rt=Symbol("readingIndex");classvextendsArray{constructor(){super(),this[Et]=newPromise(((ke,Ae)=>{this[Pt]=ke,this[Dt]=Ae})),this[Et].catch((()=>{}))}}function_(ke){returnke&&ke.getReader&&Array.isArray(ke)}functionk(ke){if(!_(ke)){constAe=ke.getWriter(),Ce=Ae.releaseLock;returnAe.releaseLock=()=>{Ae.closed.catch((function(){})),Ce.call(Ae)},Ae}this.stream=ke}v.prototype.getReader=function(){returnvoid0===this[Rt]&&(this[Rt]=0),{read:async()=>(awaitthis[Et],this[Rt]===this.length?{value:void0,done:!0}:{value:this[this[Rt]++],done:!1})}},v.prototype.readToEnd=asyncfunction(ke){awaitthis[Et];constAe=ke(this.slice(this[Rt]));returnthis.length=0,Ae},v.prototype.clone=function(){constke=newv;returnke[Et]=this[Et].then((()=>{ke.push(...this)})),ke},k.prototype.write=asyncfunction(ke){this.stream.push(ke)},k.prototype.close=asyncfunction(){this.stream[Pt]()},k.prototype.abort=asyncfunction(ke){returnthis.stream[Dt](ke),ke},k.prototype.releaseLock=function(){};constBt="object"==typeofqe.process&&"object"==typeofqe.process.versions,Tt=Bt&&ht.default.Readable;functionE(ke){return_(ke)?"array":qe.ReadableStream&&qe.ReadableStream.prototype.isPrototypeOf(ke)?"web":Lt&&Lt.prototype.isPrototypeOf(ke)?"ponyfill":Tt&&Tt.prototype.isPrototypeOf(ke)?"node":!(!ke||!ke.getReader)&&"web-like"}functionP(ke){returnUint8Array.prototype.isPrototypeOf(ke)}functionx(ke){if(1===ke.length)returnke[0];letAe=0;for(letCe=0;Ce<ke.length;Ce++){if(!P(ke[Ce]))throwError("concatUint8Array: Data must be in the form of a Uint8Array");Ae+=ke[Ce].length}constCe=newUint8Array(Ae);letqe=0;returnke.forEach((function(ke){Ce.set(ke,qe),qe+=ke.length})),Ce}constUt=Bt&&ct.default.Buffer,Kt=Bt&&ht.default.Readable;letIt,Ot;if(Kt){It=function(ke){letAe=!1;returnnewLt({start(Ce){ke.pause(),ke.on("data",(qe=>{Ae||(Ut.isBuffer(qe)&&(qe=newUint8Array(qe.buffer,qe.byteOffset,qe.byteLength)),Ce.enqueue(qe),ke.pause())})),ke.on("end",(()=>{Ae||Ce.close()})),ke.on("error",(ke=>Ce.error(ke)))},pull(){ke.resume()},cancel(Ce){Ae=!0,ke.destroy(Ce)}})};classeextendsKt{constructor(ke,Ae){super(Ae),this._reader=H(ke)}async_read(ke){try{for(;;){const{done:ke,value:Ae}=awaitthis._reader.read();if(ke){this.push(null);break}if(!this.push(Ae)||this._cancelling){this._reading=!1;break}}}catch(ke){this.emit("error",ke)}}_destroy(ke){this._reader.cancel(ke)}}Ot=function(ke,Ae){returnnewe(ke,Ae)}}constNt=newWeakSet,qt=Symbol("externalBuffer");functionI(ke){if(this.stream=ke,ke[qt]&&(this[qt]=ke[qt].slice()),_(ke)){constAe=ke.getReader();returnthis._read=Ae.read.bind(Ae),this._releaseLock=()=>{},void(this._cancel=()=>{})}letAe=E(ke);if("node"===Ae&&(ke=It(ke)),Ae){constAe=ke.getReader();returnthis._read=Ae.read.bind(Ae),this._releaseLock=()=>{Ae.closed.catch((function(){})),Ae.releaseLock()},void(this._cancel=Ae.cancel.bind(Ae))}letCe=!1;this._read=async()=>Ce||Nt.has(ke)?{value:void0,done:!0}:(Ce=!0,{value:ke,done:!1}),this._releaseLock=()=>{if(Ce)try{Nt.add(ke)}catch(ke){}}}I.prototype.read=asyncfunction(){if(this[qt]&&this[qt].length){return{done:!1,value:this[qt].shift()}}returnthis._read()},I.prototype.releaseLock=function(){this[qt]&&(this.stream[qt]=this[qt]),this._releaseLock()},I.prototype.cancel=function(ke){returnthis._cancel(ke)},I.prototype.readLine=asyncfunction(){letke,Ae=[];for(;!ke;){let{done:Ce,value:qe}=awaitthis.read();if(qe+="",Ce)returnAe.length?W(Ae):void0;constze=qe.indexOf("\n")+1