var PKe=Object.create;var SB=Object.defineProperty;var QKe=Object.getOwnPropertyDescriptor;var kKe=Object.getOwnPropertyNames;var UKe=Object.getPrototypeOf,GKe=Object.prototype.hasOwnProperty;var o=(t,e)=>SB(t,"name",{value:e,configurable:!0});var HKe=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Lne=(t,e)=>{for(var r in e)SB(t,r,{get:e[r],enumerable:!0})},XKe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kKe(e))!GKe.call(t,n)&&n!==r&&SB(t,n,{get:()=>e[n],enumerable:!(s=QKe(e,n))||s.enumerable});return t};var _=(t,e,r)=>(r=t!=null?PKe(UKe(t)):{},XKe(e||!t||!t.__esModule?SB(r,"default",{value:t,enumerable:!0}):r,t));var Xne=b(Ih=>{"use strict";var Cd0=require("net"),KKe=require("tls"),Z_=require("http"),Une=require("https"),ZKe=require("events"),Bd0=require("assert"),eZe=require("util");Ih.httpOverHttp=tZe;Ih.httpsOverHttp=rZe;Ih.httpOverHttps=sZe;Ih.httpsOverHttps=nZe;function tZe(t){var e=new qu(t);return e.request=Z_.request,e}o(tZe,"httpOverHttp");function rZe(t){var e=new qu(t);return e.request=Z_.request,e.createSocket=Gne,e.defaultPort=443,e}o(rZe,"httpsOverHttp");function sZe(t){var e=new qu(t);return e.request=Une.request,e}o(sZe,"httpOverHttps");function nZe(t){var e=new qu(t);return e.request=Une.request,e.createSocket=Gne,e.defaultPort=443,e}o(nZe,"httpsOverHttps");function qu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Z_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=Hne(n,i,a),u=0,p=e.requests.length;u
=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}o(u,"onFree");function p(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");qu.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=eW({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Dl("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function u(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");function p(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){Dl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var M=new Error("tunneling socket could not be established, statusCode="+A.statusCode);M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}if(h.length>0){Dl("got illegal response body from proxy"),d.destroy();var M=new Error("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}return Dl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),Dl(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}o(l,"onError")},"createSocket");qu.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function Gne(t,e){var r=this;qu.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=eW({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=KKe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(Gne,"createSecureSocket");function Hne(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(Hne,"toOptions");function eW(t){for(var e=1,r=arguments.length;e 0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(s+=", alias"+ ++i+"="+u,p.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(USt(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,u=o(function(l){a.replaceStack(function(A){var d=a.nameLookup(A,r[l],e);return n?[" && ",d]:[" != null ? ",d," : ",A]})},"_loop"),p=s;p2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(n,s)}o(KL,"chunksDecode");function Vce(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),s=0;for(let n=0;n>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(fCt,"varint64write");un.varint64write=fCt;var Z5=65536*65536;function hCt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let u=Number(t.slice(a,c));n*=r,s=s*r+u,s>=Z5&&(n=n+(s/Z5|0),s=s%Z5)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(hCt,"int64fromString");un.int64fromString=hCt;function bCt(t,e){if(e>>>0<=2097151)return""+(Z5*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(l,A){let d=l?String(l):"";return A?"0000000".slice(d.length)+d:d}return o(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}o(bCt,"int64toString");un.int64toString=bCt;function mCt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(mCt,"varint32write");un.varint32write=mCt;function MCt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(MCt,"varint32read");un.varint32read=MCt});var dA=b(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});AA.PbLong=AA.PbULong=AA.detectBi=void 0;var sE=ew(),Kt;function sEe(){let t=new DataView(new ArrayBuffer(8));Kt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(sEe,"detectBi");AA.detectBi=sEe;sEe();function nEe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(nEe,"assertBi");var iEe=/^-?[0-9]+$/,rw=4294967296,tw=2147483648,sw=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*rw+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},nE=class t extends sw{static{o(this,"PbULong")}static from(e){if(Kt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Kt.C(e);case"number":if(e===0)return this.ZERO;e=Kt.C(e);case"bigint":if(!e)return this.ZERO;if(e{"use strict";SE.__esModule=!0;SE.createProtoAccessControl=owt;SE.resultIsAllowed=awt;SE.resetLoggedProperties=uwt;function swt(t){return t&&t.__esModule?t:{default:t}}o(swt,"_interopRequireDefault");var xBe=ys(),nwt=s$(),iwt=swt(nwt),DS=Object.create(null);function owt(t){var e=Object.create(null);e.__proto__=!1,xBe.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,xBe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(owt,"createProtoAccessControl");function awt(t,e,r){return _Be(typeof t=="function"?e.methods:e.properties,r)}o(awt,"resultIsAllowed");function _Be(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(cwt(e),!1)}o(_Be,"checkWhiteList");function cwt(t){DS[t]!==!0&&(DS[t]=!0,iwt.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(cwt,"logUnexpecedPropertyAccessOnce");function uwt(){Object.keys(DS).forEach(function(t){delete DS[t]})}o(uwt,"resetLoggedProperties")});var IS=b(Ic=>{"use strict";Ic.__esModule=!0;Ic.HandlebarsEnvironment=a$;function WBe(t){return t&&t.__esModule?t:{default:t}}o(WBe,"_interopRequireDefault");var Q2=ys(),pwt=ai(),i$=WBe(pwt),lwt=t$(),Awt=vBe(),dwt=s$(),qS=WBe(dwt),fwt=n$(),hwt="4.7.9";Ic.VERSION=hwt;var bwt=8;Ic.COMPILER_REVISION=bwt;var mwt=7;Ic.LAST_COMPATIBLE_COMPILER_REVISION=mwt;var Mwt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Ic.REVISION_CHANGES=Mwt;var o$="[object Object]";function a$(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},lwt.registerDefaultHelpers(this),Awt.registerDefaultDecorators(this)}o(a$,"HandlebarsEnvironment");a$.prototype={constructor:a$,logger:qS.default,log:qS.default.log,registerHelper:o(function(e,r){if(Q2.toString.call(e)===o$){if(r)throw new i$.default("Arg not supported with multiple helpers");Q2.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Q2.toString.call(e)===o$)Q2.extend(this.partials,e);else{if(typeof r>"u")throw new i$.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Q2.toString.call(e)===o$){if(r)throw new i$.default("Arg not supported with multiple decorators");Q2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){fwt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var gwt=qS.default.log;Ic.log=gwt;Ic.createFrame=Q2.createFrame;Ic.logger=qS.default});var PBe=b((RS,LBe)=>{"use strict";RS.__esModule=!0;function c$(t){this.string=t}o(c$,"SafeString");c$.prototype.toString=c$.prototype.toHTML=function(){return""+this.string};RS.default=c$;LBe.exports=RS.default});var QBe=b(u$=>{"use strict";u$.__esModule=!0;u$.wrapHelper=zwt;function zwt(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(zwt,"wrapHelper")});var VBe=b(gA=>{"use strict";gA.__esModule=!0;gA.checkRevision=Dwt;gA.template=qwt;gA.wrapProgram=wS;gA.resolvePartial=Iwt;gA.invokePartial=Rwt;gA.noop=HBe;function Owt(t){return t&&t.__esModule?t:{default:t}}o(Owt,"_interopRequireDefault");function Ewt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Ewt,"_interopRequireWildcard");var ywt=ys(),km=Ewt(ywt),Cwt=ai(),fp=Owt(Cwt),hp=IS(),kBe=t$(),Bwt=QBe(),UBe=n$();function Dwt(t){var e=t&&t[0]||1,r=hp.COMPILER_REVISION;if(!(e>=hp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=hp.COMPILER_REVISION))if(e{"use strict";PS.__esModule=!0;function Gwt(t){return t&&t.__esModule?t:{default:t}}o(Gwt,"_interopRequireDefault");var Hwt=LS(),Xwt=Gwt(Hwt);function Rc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(Rc,"WhitespaceControl");Rc.prototype=new Xwt.default;Rc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var s=t.body,n=0,i=s.length;n{"use strict";ro.__esModule=!0;ro.SourceLocation=jwt;ro.id=Ywt;ro.stripFlags=Jwt;ro.stripComment=Kwt;ro.preparePath=Zwt;ro.prepareMustache=eSt;ro.prepareRawBlock=tSt;ro.prepareBlock=rSt;ro.prepareProgram=sSt;ro.preparePartialBlock=nSt;function Vwt(t){return t&&t.__esModule?t:{default:t}}o(Vwt,"_interopRequireDefault");var $wt=ai(),M$=Vwt($wt);function g$(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new M$.default(t.path.original+" doesn't match "+e,r)}}o(g$,"validateClose");function jwt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}o(jwt,"SourceLocation");function Ywt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(Ywt,"id");function Jwt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o(Jwt,"stripFlags");function Kwt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(Kwt,"stripComment");function Zwt(t,e,r){r=this.locInfo(r);for(var s=t?"@":"",n=[],i=0,a=0,c=e.length;a{var De=Hm(),x$=NDe(),Xm=S$().ArraySet,xSt=q$(),QE=vDe().quickSort;function m0(t,e){var r=t;return typeof t=="string"&&(r=De.parseSourceMapInput(t)),r.sections!=null?new aa(r,e):new Br(r,e)}o(m0,"SourceMapConsumer");m0.fromSourceMap=function(t,e){return Br.fromSourceMap(t,e)};m0.prototype._version=3;m0.prototype.__generatedMappings=null;Object.defineProperty(m0.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});m0.prototype.__originalMappings=null;Object.defineProperty(m0.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});m0.prototype._charIsMappingSeparator=o(function(e,r){var s=e.charAt(r);return s===";"||s===","},"SourceMapConsumer_charIsMappingSeparator");m0.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");m0.GENERATED_ORDER=1;m0.ORIGINAL_ORDER=2;m0.GREATEST_LOWER_BOUND=1;m0.LEAST_UPPER_BOUND=2;m0.prototype.eachMapping=o(function(e,r,s){var n=r||null,i=s||m0.GENERATED_ORDER,a;switch(i){case m0.GENERATED_ORDER:a=this._generatedMappings;break;case m0.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var p=u.source===null?null:this._sources.at(u.source);return p=De.computeSourceURL(c,p,this._sourceMapURL),{source:p,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(e,n)},"SourceMapConsumer_eachMapping");m0.prototype.allGeneratedPositionsFor=o(function(e){var r=De.getArg(e,"line"),s={source:De.getArg(e,"source"),originalLine:r,originalColumn:De.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var n=[],i=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",De.compareByOriginalPositions,x$.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)n.push({line:De.getArg(a,"generatedLine",null),column:De.getArg(a,"generatedColumn",null),lastColumn:De.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)n.push({line:De.getArg(a,"generatedLine",null),column:De.getArg(a,"generatedColumn",null),lastColumn:De.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n},"SourceMapConsumer_allGeneratedPositionsFor");GS.SourceMapConsumer=m0;function Br(t,e){var r=t;typeof t=="string"&&(r=De.parseSourceMapInput(t));var s=De.getArg(r,"version"),n=De.getArg(r,"sources"),i=De.getArg(r,"names",[]),a=De.getArg(r,"sourceRoot",null),c=De.getArg(r,"sourcesContent",null),u=De.getArg(r,"mappings"),p=De.getArg(r,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);a&&(a=De.normalize(a)),n=n.map(String).map(De.normalize).map(function(l){return a&&De.isAbsolute(a)&&De.isAbsolute(l)?De.relative(a,l):l}),this._names=Xm.fromArray(i.map(String),!0),this._sources=Xm.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(l){return De.computeSourceURL(a,l,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=e,this.file=p}o(Br,"BasicSourceMapConsumer");Br.prototype=Object.create(m0.prototype);Br.prototype.consumer=m0;Br.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=De.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r{"use strict";jS.__esModule=!0;function kE(t){return t&&t.__esModule?t:{default:t}}o(kE,"_interopRequireDefault");var GSt=ZBe(),HSt=kE(GSt),XSt=f$(),VSt=kE(XSt),P$=lDe(),Q$=hDe(),$St=$De(),jSt=kE($St),YSt=LS(),JSt=kE(YSt),KSt=p$(),ZSt=kE(KSt),eNt=HSt.default.create;function jDe(){var t=eNt();return t.compile=function(e,r){return Q$.compile(e,r,t)},t.precompile=function(e,r){return Q$.precompile(e,r,t)},t.AST=VSt.default,t.Compiler=Q$.Compiler,t.JavaScriptCompiler=jSt.default,t.Parser=P$.parser,t.parse=P$.parse,t.parseWithoutProcessing=P$.parseWithoutProcessing,t}o(jDe,"create");var Ym=jDe();Ym.create=jDe;ZSt.default(Ym);Ym.Visitor=JSt.default;Ym.default=Ym;jS.default=Ym;YDe.exports=jS.default});var KDe=b(YS=>{"use strict";YS.__esModule=!0;YS.print=nNt;YS.PrintVisitor=X0;function tNt(t){return t&&t.__esModule?t:{default:t}}o(tNt,"_interopRequireDefault");var rNt=LS(),sNt=tNt(rNt);function nNt(t){return new X0().accept(t)}o(nNt,"print");function X0(){this.padding=0}o(X0,"PrintVisitor");X0.prototype=new sNt.default;X0.prototype.pad=function(t){for(var e="",r=0,s=this.padding;r "+e+" }}")};X0.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};X0.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};X0.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};X0.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n{var JS=JDe().default,eqe=KDe();JS.PrintVisitor=eqe.PrintVisitor;JS.print=eqe.print;tqe.exports=JS;function ZDe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=JS.compile(s)}o(ZDe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ZDe,require.extensions[".hbs"]=ZDe)});var rN=b(OA=>{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});OA.Signature=OA.Envelope=void 0;OA.Envelope={fromJSON(t){return{payload:tN(t.payload)?Buffer.from(Aqe(t.payload)):Buffer.alloc(0),payloadType:tN(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>OA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=dqe(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>OA.Signature.toJSON(r))),e}};OA.Signature={fromJSON(t){return{sig:tN(t.sig)?Buffer.from(Aqe(t.sig)):Buffer.alloc(0),keyid:tN(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=dqe(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function Aqe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(Aqe,"bytesFromBase64");function dqe(t){return globalThis.Buffer.from(t).toString("base64")}o(dqe,"base64FromBytes");function tN(t){return t!=null}o(tN,"isSet")});var hqe=b(sN=>{"use strict";Object.defineProperty(sN,"__esModule",{value:!0});sN.Timestamp=void 0;sN.Timestamp={fromJSON(t){return{seconds:fqe(t.seconds)?globalThis.String(t.seconds):"0",nanos:fqe(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function fqe(t){return t!=null}o(fqe,"isSet")});var Mp=b(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.TimeRange=Ge.X509CertificateChain=Ge.SubjectAlternativeName=Ge.X509Certificate=Ge.DistinguishedName=Ge.ObjectIdentifierValuePair=Ge.ObjectIdentifier=Ge.PublicKeyIdentifier=Ge.PublicKey=Ge.RFC3161SignedTimestamp=Ge.LogId=Ge.MessageSignature=Ge.HashOutput=Ge.SubjectAlternativeNameType=Ge.PublicKeyDetails=Ge.HashAlgorithm=void 0;Ge.hashAlgorithmFromJSON=mqe;Ge.hashAlgorithmToJSON=Mqe;Ge.publicKeyDetailsFromJSON=gqe;Ge.publicKeyDetailsToJSON=zqe;Ge.subjectAlternativeNameTypeFromJSON=Oqe;Ge.subjectAlternativeNameTypeToJSON=Eqe;var ANt=hqe(),fn;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SHA3_256",t[t.SHA3_384=5]="SHA3_384"})(fn||(Ge.HashAlgorithm=fn={}));function mqe(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return fn.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return fn.SHA2_256;case 2:case"SHA2_384":return fn.SHA2_384;case 3:case"SHA2_512":return fn.SHA2_512;case 4:case"SHA3_256":return fn.SHA3_256;case 5:case"SHA3_384":return fn.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(mqe,"hashAlgorithmFromJSON");function Mqe(t){switch(t){case fn.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case fn.SHA2_256:return"SHA2_256";case fn.SHA2_384:return"SHA2_384";case fn.SHA2_512:return"SHA2_512";case fn.SHA3_256:return"SHA3_256";case fn.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(Mqe,"hashAlgorithmToJSON");var Ue;(function(t){t[t.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",t[t.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",t[t.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",t[t.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",t[t.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",t[t.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",t[t.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",t[t.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",t[t.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",t[t.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",t[t.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",t[t.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",t[t.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",t[t.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",t[t.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",t[t.PKIX_ED25519=7]="PKIX_ED25519",t[t.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",t[t.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",t[t.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",t[t.LMS_SHA256=14]="LMS_SHA256",t[t.LMOTS_SHA256=15]="LMOTS_SHA256",t[t.ML_DSA_65=21]="ML_DSA_65",t[t.ML_DSA_87=22]="ML_DSA_87"})(Ue||(Ge.PublicKeyDetails=Ue={}));function gqe(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Ue.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Ue.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Ue.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Ue.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Ue.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Ue.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Ue.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Ue.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Ue.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Ue.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Ue.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Ue.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Ue.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Ue.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Ue.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Ue.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Ue.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Ue.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Ue.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Ue.LMS_SHA256;case 15:case"LMOTS_SHA256":return Ue.LMOTS_SHA256;case 21:case"ML_DSA_65":return Ue.ML_DSA_65;case 22:case"ML_DSA_87":return Ue.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(gqe,"publicKeyDetailsFromJSON");function zqe(t){switch(t){case Ue.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Ue.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Ue.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Ue.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Ue.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Ue.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Ue.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Ue.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Ue.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Ue.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Ue.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Ue.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Ue.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Ue.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Ue.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Ue.PKIX_ED25519:return"PKIX_ED25519";case Ue.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Ue.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Ue.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Ue.LMS_SHA256:return"LMS_SHA256";case Ue.LMOTS_SHA256:return"LMOTS_SHA256";case Ue.ML_DSA_65:return"ML_DSA_65";case Ue.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(zqe,"publicKeyDetailsToJSON");var wc;(function(t){t[t.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",t[t.EMAIL=1]="EMAIL",t[t.URI=2]="URI",t[t.OTHER_NAME=3]="OTHER_NAME"})(wc||(Ge.SubjectAlternativeNameType=wc={}));function Oqe(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return wc.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return wc.EMAIL;case 2:case"URI":return wc.URI;case 3:case"OTHER_NAME":return wc.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(Oqe,"subjectAlternativeNameTypeFromJSON");function Eqe(t){switch(t){case wc.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case wc.EMAIL:return"EMAIL";case wc.URI:return"URI";case wc.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(Eqe,"subjectAlternativeNameTypeToJSON");Ge.HashOutput={fromJSON(t){return{algorithm:B1(t.algorithm)?mqe(t.algorithm):0,digest:B1(t.digest)?Buffer.from(V2(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=Mqe(t.algorithm)),t.digest.length!==0&&(e.digest=$2(t.digest)),e}};Ge.MessageSignature={fromJSON(t){return{messageDigest:B1(t.messageDigest)?Ge.HashOutput.fromJSON(t.messageDigest):void 0,signature:B1(t.signature)?Buffer.from(V2(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=Ge.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=$2(t.signature)),e}};Ge.LogId={fromJSON(t){return{keyId:B1(t.keyId)?Buffer.from(V2(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=$2(t.keyId)),e}};Ge.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:B1(t.signedTimestamp)?Buffer.from(V2(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=$2(t.signedTimestamp)),e}};Ge.PublicKey={fromJSON(t){return{rawBytes:B1(t.rawBytes)?Buffer.from(V2(t.rawBytes)):void 0,keyDetails:B1(t.keyDetails)?gqe(t.keyDetails):0,validFor:B1(t.validFor)?Ge.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=$2(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=zqe(t.keyDetails)),t.validFor!==void 0&&(e.validFor=Ge.TimeRange.toJSON(t.validFor)),e}};Ge.PublicKeyIdentifier={fromJSON(t){return{hint:B1(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};Ge.ObjectIdentifier={fromJSON(t){return{id:globalThis.Array.isArray(t?.id)?t.id.map(e=>globalThis.Number(e)):[]}},toJSON(t){let e={};return t.id?.length&&(e.id=t.id.map(r=>Math.round(r))),e}};Ge.ObjectIdentifierValuePair={fromJSON(t){return{oid:B1(t.oid)?Ge.ObjectIdentifier.fromJSON(t.oid):void 0,value:B1(t.value)?Buffer.from(V2(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=Ge.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=$2(t.value)),e}};Ge.DistinguishedName={fromJSON(t){return{organization:B1(t.organization)?globalThis.String(t.organization):"",commonName:B1(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};Ge.X509Certificate={fromJSON(t){return{rawBytes:B1(t.rawBytes)?Buffer.from(V2(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=$2(t.rawBytes)),e}};Ge.SubjectAlternativeName={fromJSON(t){return{type:B1(t.type)?Oqe(t.type):0,identity:B1(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:B1(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=Eqe(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};Ge.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>Ge.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>Ge.X509Certificate.toJSON(r))),e}};Ge.TimeRange={fromJSON(t){return{start:B1(t.start)?bqe(t.start):void 0,end:B1(t.end)?bqe(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=t.start.toISOString()),t.end!==void 0&&(e.end=t.end.toISOString()),e}};function V2(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(V2,"bytesFromBase64");function $2(t){return globalThis.Buffer.from(t).toString("base64")}o($2,"base64FromBytes");function dNt(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(dNt,"fromTimestamp");function bqe(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):dNt(ANt.Timestamp.fromJSON(t))}o(bqe,"fromJsonTimestamp");function B1(t){return t!=null}o(B1,"isSet")});var Y$=b(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});D1.TransparencyLogEntry=D1.InclusionPromise=D1.InclusionProof=D1.Checkpoint=D1.KindVersion=void 0;var yqe=Mp();D1.KindVersion={fromJSON(t){return{kind:Cs(t.kind)?globalThis.String(t.kind):"",version:Cs(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};D1.Checkpoint={fromJSON(t){return{envelope:Cs(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};D1.InclusionProof={fromJSON(t){return{logIndex:Cs(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:Cs(t.rootHash)?Buffer.from(nN(t.rootHash)):Buffer.alloc(0),treeSize:Cs(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(nN(e))):[],checkpoint:Cs(t.checkpoint)?D1.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=iN(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>iN(r))),t.checkpoint!==void 0&&(e.checkpoint=D1.Checkpoint.toJSON(t.checkpoint)),e}};D1.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:Cs(t.signedEntryTimestamp)?Buffer.from(nN(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=iN(t.signedEntryTimestamp)),e}};D1.TransparencyLogEntry={fromJSON(t){return{logIndex:Cs(t.logIndex)?globalThis.String(t.logIndex):"0",logId:Cs(t.logId)?yqe.LogId.fromJSON(t.logId):void 0,kindVersion:Cs(t.kindVersion)?D1.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:Cs(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:Cs(t.inclusionPromise)?D1.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:Cs(t.inclusionProof)?D1.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:Cs(t.canonicalizedBody)?Buffer.from(nN(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=yqe.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=D1.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=D1.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=D1.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=iN(t.canonicalizedBody)),e}};function nN(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(nN,"bytesFromBase64");function iN(t){return globalThis.Buffer.from(t).toString("base64")}o(iN,"base64FromBytes");function Cs(t){return t!=null}o(Cs,"isSet")});var J$=b(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.Bundle=io.VerificationMaterial=io.TimestampVerificationData=void 0;var Cqe=rN(),Sc=Mp(),Bqe=Y$();io.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>Sc.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>Sc.RFC3161SignedTimestamp.toJSON(r))),e}};io.VerificationMaterial={fromJSON(t){return{content:EA(t.publicKey)?{$case:"publicKey",publicKey:Sc.PublicKeyIdentifier.fromJSON(t.publicKey)}:EA(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:Sc.X509CertificateChain.fromJSON(t.x509CertificateChain)}:EA(t.certificate)?{$case:"certificate",certificate:Sc.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>Bqe.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:EA(t.timestampVerificationData)?io.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=Sc.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=Sc.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=Sc.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>Bqe.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=io.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};io.Bundle={fromJSON(t){return{mediaType:EA(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:EA(t.verificationMaterial)?io.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:EA(t.messageSignature)?{$case:"messageSignature",messageSignature:Sc.MessageSignature.fromJSON(t.messageSignature)}:EA(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:Cqe.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=io.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=Sc.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=Cqe.Envelope.toJSON(t.content.dsseEnvelope)),e}};function EA(t){return t!=null}o(EA,"isSet")});var K$=b(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.ClientTrustConfig=Je.ServiceConfiguration=Je.Service=Je.SigningConfig=Je.TrustedRoot=Je.CertificateAuthority=Je.TransparencyLogInstance=Je.ServiceSelector=void 0;Je.serviceSelectorFromJSON=Dqe;Je.serviceSelectorToJSON=qqe;var Lr=Mp(),Nc;(function(t){t[t.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.EXACT=3]="EXACT"})(Nc||(Je.ServiceSelector=Nc={}));function Dqe(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return Nc.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return Nc.ALL;case 2:case"ANY":return Nc.ANY;case 3:case"EXACT":return Nc.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(Dqe,"serviceSelectorFromJSON");function qqe(t){switch(t){case Nc.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case Nc.ALL:return"ALL";case Nc.ANY:return"ANY";case Nc.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(qqe,"serviceSelectorToJSON");Je.TransparencyLogInstance={fromJSON(t){return{baseUrl:R0(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:R0(t.hashAlgorithm)?(0,Lr.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:R0(t.publicKey)?Lr.PublicKey.fromJSON(t.publicKey):void 0,logId:R0(t.logId)?Lr.LogId.fromJSON(t.logId):void 0,checkpointKeyId:R0(t.checkpointKeyId)?Lr.LogId.fromJSON(t.checkpointKeyId):void 0,operator:R0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,Lr.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=Lr.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=Lr.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=Lr.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};Je.CertificateAuthority={fromJSON(t){return{subject:R0(t.subject)?Lr.DistinguishedName.fromJSON(t.subject):void 0,uri:R0(t.uri)?globalThis.String(t.uri):"",certChain:R0(t.certChain)?Lr.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:R0(t.validFor)?Lr.TimeRange.fromJSON(t.validFor):void 0,operator:R0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=Lr.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=Lr.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=Lr.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Je.TrustedRoot={fromJSON(t){return{mediaType:R0(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>Je.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>Je.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>Je.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>Je.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>Je.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>Je.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>Je.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>Je.CertificateAuthority.toJSON(r))),e}};Je.SigningConfig={fromJSON(t){return{mediaType:R0(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>Je.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>Je.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>Je.Service.fromJSON(e)):[],rekorTlogConfig:R0(t.rekorTlogConfig)?Je.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>Je.Service.fromJSON(e)):[],tsaConfig:R0(t.tsaConfig)?Je.ServiceConfiguration.fromJSON(t.tsaConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.caUrls?.length&&(e.caUrls=t.caUrls.map(r=>Je.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>Je.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>Je.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=Je.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>Je.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=Je.ServiceConfiguration.toJSON(t.tsaConfig)),e}};Je.Service={fromJSON(t){return{url:R0(t.url)?globalThis.String(t.url):"",majorApiVersion:R0(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:R0(t.validFor)?Lr.TimeRange.fromJSON(t.validFor):void 0,operator:R0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.url!==""&&(e.url=t.url),t.majorApiVersion!==0&&(e.majorApiVersion=Math.round(t.majorApiVersion)),t.validFor!==void 0&&(e.validFor=Lr.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Je.ServiceConfiguration={fromJSON(t){return{selector:R0(t.selector)?Dqe(t.selector):0,count:R0(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=qqe(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};Je.ClientTrustConfig={fromJSON(t){return{mediaType:R0(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:R0(t.trustedRoot)?Je.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:R0(t.signingConfig)?Je.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=Je.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=Je.SigningConfig.toJSON(t.signingConfig)),e}};function R0(t){return t!=null}o(R0,"isSet")});var wqe=b(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Input=Ke.Artifact=Ke.ArtifactVerificationOptions_ObserverTimestampOptions=Ke.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=Ke.ArtifactVerificationOptions_TimestampAuthorityOptions=Ke.ArtifactVerificationOptions_CtlogOptions=Ke.ArtifactVerificationOptions_TlogOptions=Ke.ArtifactVerificationOptions=Ke.PublicKeyIdentities=Ke.CertificateIdentities=Ke.CertificateIdentity=void 0;var Iqe=J$(),yA=Mp(),Rqe=K$();Ke.CertificateIdentity={fromJSON(t){return{issuer:Zt(t.issuer)?globalThis.String(t.issuer):"",san:Zt(t.san)?yA.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>yA.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=yA.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>yA.ObjectIdentifierValuePair.toJSON(r))),e}};Ke.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>Ke.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>Ke.CertificateIdentity.toJSON(r))),e}};Ke.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>yA.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>yA.PublicKey.toJSON(r))),e}};Ke.ArtifactVerificationOptions={fromJSON(t){return{signers:Zt(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:Ke.CertificateIdentities.fromJSON(t.certificateIdentities)}:Zt(t.publicKeys)?{$case:"publicKeys",publicKeys:Ke.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:Zt(t.tlogOptions)?Ke.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:Zt(t.ctlogOptions)?Ke.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:Zt(t.tsaOptions)?Ke.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:Zt(t.integratedTsOptions)?Ke.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:Zt(t.observerOptions)?Ke.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=Ke.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=Ke.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=Ke.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=Ke.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=Ke.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=Ke.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=Ke.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};Ke.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:Zt(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:Zt(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:Zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(e.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(e.disable=t.disable),e}};Ke.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:Zt(t.threshold)?globalThis.Number(t.threshold):0,disable:Zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ke.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:Zt(t.threshold)?globalThis.Number(t.threshold):0,disable:Zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ke.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:Zt(t.threshold)?globalThis.Number(t.threshold):0,disable:Zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ke.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:Zt(t.threshold)?globalThis.Number(t.threshold):0,disable:Zt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Ke.Artifact={fromJSON(t){return{data:Zt(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:Zt(t.artifact)?{$case:"artifact",artifact:Buffer.from(fNt(t.artifact))}:Zt(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:yA.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let e={};return t.data?.$case==="artifactUri"?e.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?e.artifact=hNt(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=yA.HashOutput.toJSON(t.data.artifactDigest)),e}};Ke.Input={fromJSON(t){return{artifactTrustRoot:Zt(t.artifactTrustRoot)?Rqe.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:Zt(t.artifactVerificationOptions)?Ke.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:Zt(t.bundle)?Iqe.Bundle.fromJSON(t.bundle):void 0,artifact:Zt(t.artifact)?Ke.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=Rqe.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=Ke.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=Iqe.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=Ke.Artifact.toJSON(t.artifact)),e}};function fNt(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(fNt,"bytesFromBase64");function hNt(t){return globalThis.Buffer.from(t).toString("base64")}o(hNt,"base64FromBytes");function Zt(t){return t!=null}o(Zt,"isSet")});var gp=b(oo=>{"use strict";var bNt=oo&&oo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Km=oo&&oo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&bNt(e,t,r)};Object.defineProperty(oo,"__esModule",{value:!0});Km(rN(),oo);Km(J$(),oo);Km(Mp(),oo);Km(Y$(),oo);Km(K$(),oo);Km(wqe(),oo)});var oN=b(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.BUNDLE_V03_MEDIA_TYPE=hn.BUNDLE_V03_LEGACY_MEDIA_TYPE=hn.BUNDLE_V02_MEDIA_TYPE=hn.BUNDLE_V01_MEDIA_TYPE=void 0;hn.isBundleWithCertificateChain=mNt;hn.isBundleWithPublicKey=MNt;hn.isBundleWithMessageSignature=gNt;hn.isBundleWithDsseEnvelope=zNt;hn.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";hn.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";hn.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";hn.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function mNt(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(mNt,"isBundleWithCertificateChain");function MNt(t){return t.verificationMaterial.content.$case==="publicKey"}o(MNt,"isBundleWithPublicKey");function gNt(t){return t.content.$case==="messageSignature"}o(gNt,"isBundleWithMessageSignature");function zNt(t){return t.content.$case==="dsseEnvelope"}o(zNt,"isBundleWithDsseEnvelope")});var Nqe=b(cN=>{"use strict";Object.defineProperty(cN,"__esModule",{value:!0});cN.toMessageSignatureBundle=ENt;cN.toDSSEBundle=yNt;var ONt=gp(),aN=oN();function ENt(t){return{mediaType:t.certificateChain?aN.BUNDLE_V02_MEDIA_TYPE:aN.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:ONt.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:Sqe(t)}}o(ENt,"toMessageSignatureBundle");function yNt(t){return{mediaType:t.certificateChain?aN.BUNDLE_V02_MEDIA_TYPE:aN.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:CNt(t)},verificationMaterial:Sqe(t)}}o(yNt,"toDSSEBundle");function CNt(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[BNt(t)]}}o(CNt,"toEnvelope");function BNt(t){return{keyid:t.keyHint||"",sig:t.signature}}o(BNt,"toSignature");function Sqe(t){return{content:DNt(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(Sqe,"toVerificationMaterial");function DNt(t){return t.certificate?t.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:t.certificate}]}}:{$case:"certificate",certificate:{rawBytes:t.certificate}}:{$case:"publicKey",publicKey:{hint:t.keyHint||""}}}o(DNt,"toKeyContent")});var ej=b(uN=>{"use strict";Object.defineProperty(uN,"__esModule",{value:!0});uN.ValidationError=void 0;var Z$=class extends Error{static{o(this,"ValidationError")}constructor(e,r){super(e),this.fields=r}};uN.ValidationError=Z$});var tj=b(j2=>{"use strict";Object.defineProperty(j2,"__esModule",{value:!0});j2.assertBundle=qNt;j2.assertBundleV01=Fqe;j2.isBundleV01=INt;j2.assertBundleV02=RNt;j2.assertBundleLatest=wNt;var pN=ej();function qNt(t){let e=lN(t);if(e.length>0)throw new pN.ValidationError("invalid bundle",e)}o(qNt,"assertBundle");function Fqe(t){let e=[];if(e.push(...lN(t)),e.push(...SNt(t)),e.length>0)throw new pN.ValidationError("invalid v0.1 bundle",e)}o(Fqe,"assertBundleV01");function INt(t){try{return Fqe(t),!0}catch{return!1}}o(INt,"isBundleV01");function RNt(t){let e=[];if(e.push(...lN(t)),e.push(...vqe(t)),e.length>0)throw new pN.ValidationError("invalid v0.2 bundle",e)}o(RNt,"assertBundleV02");function wNt(t){let e=[];if(e.push(...lN(t)),e.push(...vqe(t)),e.push(...NNt(t)),e.length>0)throw new pN.ValidationError("invalid bundle",e)}o(wNt,"assertBundleLatest");function lN(t){let e=[];if((t.mediaType===void 0||!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&e.push("mediaType"),t.content===void 0)e.push("content");else switch(t.content.$case){case"messageSignature":t.content.messageSignature.messageDigest===void 0?e.push("content.messageSignature.messageDigest"):t.content.messageSignature.messageDigest.digest.length===0&&e.push("content.messageSignature.messageDigest.digest"),t.content.messageSignature.signature.length===0&&e.push("content.messageSignature.signature");break;case"dsseEnvelope":t.content.dsseEnvelope.payload.length===0&&e.push("content.dsseEnvelope.payload"),t.content.dsseEnvelope.signatures.length!==1?e.push("content.dsseEnvelope.signatures"):t.content.dsseEnvelope.signatures[0].sig.length===0&&e.push("content.dsseEnvelope.signatures[0].sig");break}if(t.verificationMaterial===void 0)e.push("verificationMaterial");else{if(t.verificationMaterial.content===void 0)e.push("verificationMaterial.content");else switch(t.verificationMaterial.content.$case){case"x509CertificateChain":t.verificationMaterial.content.x509CertificateChain.certificates.length===0&&e.push("verificationMaterial.content.x509CertificateChain.certificates"),t.verificationMaterial.content.x509CertificateChain.certificates.forEach((r,s)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${s}].rawBytes`)});break;case"certificate":t.verificationMaterial.content.certificate.rawBytes.length===0&&e.push("verificationMaterial.content.certificate.rawBytes");break}t.verificationMaterial.tlogEntries===void 0?e.push("verificationMaterial.tlogEntries"):t.verificationMaterial.tlogEntries.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].kindVersion`)})}return e}o(lN,"validateBundleBase");function SNt(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].inclusionPromise`)}),e}o(SNt,"validateInclusionPromise");function vqe(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${s}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].inclusionProof.checkpoint`)}),e}o(vqe,"validateInclusionProof");function NNt(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(NNt,"validateNoCertificateChain")});var xqe=b(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.envelopeToJSON=Fc.envelopeFromJSON=Fc.bundleToJSON=Fc.bundleFromJSON=void 0;var AN=gp(),Tqe=oN(),rj=tj(),FNt=o(t=>{let e=AN.Bundle.fromJSON(t);switch(e.mediaType){case Tqe.BUNDLE_V01_MEDIA_TYPE:(0,rj.assertBundleV01)(e);break;case Tqe.BUNDLE_V02_MEDIA_TYPE:(0,rj.assertBundleV02)(e);break;default:(0,rj.assertBundleLatest)(e);break}return e},"bundleFromJSON");Fc.bundleFromJSON=FNt;var vNt=o(t=>AN.Bundle.toJSON(t),"bundleToJSON");Fc.bundleToJSON=vNt;var TNt=o(t=>AN.Envelope.fromJSON(t),"envelopeFromJSON");Fc.envelopeFromJSON=TNt;var xNt=o(t=>AN.Envelope.toJSON(t),"envelopeToJSON");Fc.envelopeToJSON=xNt});var XE=b(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.isBundleV01=ot.assertBundleV02=ot.assertBundleV01=ot.assertBundleLatest=ot.assertBundle=ot.envelopeToJSON=ot.envelopeFromJSON=ot.bundleToJSON=ot.bundleFromJSON=ot.ValidationError=ot.isBundleWithPublicKey=ot.isBundleWithMessageSignature=ot.isBundleWithDsseEnvelope=ot.isBundleWithCertificateChain=ot.BUNDLE_V03_MEDIA_TYPE=ot.BUNDLE_V03_LEGACY_MEDIA_TYPE=ot.BUNDLE_V02_MEDIA_TYPE=ot.BUNDLE_V01_MEDIA_TYPE=ot.toMessageSignatureBundle=ot.toDSSEBundle=void 0;var _qe=Nqe();Object.defineProperty(ot,"toDSSEBundle",{enumerable:!0,get:o(function(){return _qe.toDSSEBundle},"get")});Object.defineProperty(ot,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return _qe.toMessageSignatureBundle},"get")});var CA=oN();Object.defineProperty(ot,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return CA.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(ot,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return CA.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(ot,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return CA.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(ot,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return CA.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(ot,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return CA.isBundleWithCertificateChain},"get")});Object.defineProperty(ot,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return CA.isBundleWithDsseEnvelope},"get")});Object.defineProperty(ot,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return CA.isBundleWithMessageSignature},"get")});Object.defineProperty(ot,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return CA.isBundleWithPublicKey},"get")});var _Nt=ej();Object.defineProperty(ot,"ValidationError",{enumerable:!0,get:o(function(){return _Nt.ValidationError},"get")});var dN=xqe();Object.defineProperty(ot,"bundleFromJSON",{enumerable:!0,get:o(function(){return dN.bundleFromJSON},"get")});Object.defineProperty(ot,"bundleToJSON",{enumerable:!0,get:o(function(){return dN.bundleToJSON},"get")});Object.defineProperty(ot,"envelopeFromJSON",{enumerable:!0,get:o(function(){return dN.envelopeFromJSON},"get")});Object.defineProperty(ot,"envelopeToJSON",{enumerable:!0,get:o(function(){return dN.envelopeToJSON},"get")});var HE=tj();Object.defineProperty(ot,"assertBundle",{enumerable:!0,get:o(function(){return HE.assertBundle},"get")});Object.defineProperty(ot,"assertBundleLatest",{enumerable:!0,get:o(function(){return HE.assertBundleLatest},"get")});Object.defineProperty(ot,"assertBundleV01",{enumerable:!0,get:o(function(){return HE.assertBundleV01},"get")});Object.defineProperty(ot,"assertBundleV02",{enumerable:!0,get:o(function(){return HE.assertBundleV02},"get")});Object.defineProperty(ot,"isBundleV01",{enumerable:!0,get:o(function(){return HE.isBundleV01},"get")})});var VE=b(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.ByteStream=void 0;var sj=class extends Error{static{o(this,"StreamError")}},nj=class t{static{o(this,"ByteStream")}static BLOCK_SIZE=1024;buf;view;start=0;constructor(e){e?(this.buf=e,this.view=Buffer.from(e)):(this.buf=Buffer.alloc(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(e){this.start=e}slice(e,r){let s=e+r;if(s>this.length)throw new sj("request past end of buffer");return this.view.subarray(e,s)}appendChar(e){this.ensureCapacity(1),this.view[this.start]=e,this.start+=1}appendUint16(e){this.ensureCapacity(2);let r=new Uint16Array([e]),s=new Uint8Array(r.buffer);this.view[this.start]=s[1],this.view[this.start+1]=s[0],this.start+=2}appendUint24(e){this.ensureCapacity(3);let r=new Uint32Array([e]),s=new Uint8Array(r.buffer);this.view[this.start]=s[2],this.view[this.start+1]=s[1],this.view[this.start+2]=s[0],this.start+=3}appendView(e){this.ensureCapacity(e.length),this.view.set(e,this.start),this.start+=e.length}getBlock(e){if(e<=0)return Buffer.alloc(0);if(this.start+e>this.view.length)throw new Error("request past end of buffer");let r=this.view.subarray(this.start,this.start+e);return this.start+=e,r}getUint8(){return this.getBlock(1)[0]}getUint16(){let e=this.getBlock(2);return e[0]<<8|e[1]}ensureCapacity(e){if(this.start+e>this.view.byteLength){let r=t.BLOCK_SIZE+(e>t.BLOCK_SIZE?e:0);this.realloc(this.view.byteLength+r)}}realloc(e){let r=Buffer.alloc(e),s=Buffer.from(r);s.set(this.view),this.buf=r,this.view=s}};fN.ByteStream=nj});var hN=b(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.ASN1TypeError=Zm.ASN1ParseError=void 0;var ij=class extends Error{static{o(this,"ASN1ParseError")}};Zm.ASN1ParseError=ij;var oj=class extends Error{static{o(this,"ASN1TypeError")}};Zm.ASN1TypeError=oj});var Lqe=b(bN=>{"use strict";Object.defineProperty(bN,"__esModule",{value:!0});bN.decodeLength=WNt;bN.encodeLength=LNt;var Wqe=hN();function WNt(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new Wqe.ASN1ParseError("length exceeds 6 byte limit");let s=0;for(let n=0;n{"use strict";var I6t=pi&&pi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),R6t=pi&&pi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aIe=pi&&pi.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;s!==null;n++)r=t(r,s.value,n),s=s.next;return r};vt.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;s!==null;n--)r=t(r,s.value,n),s=s.prev;return r};vt.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};vt.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};vt.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new vt;if(e