var PXe=Object.create;var _4=Object.defineProperty;var kXe=Object.getOwnPropertyDescriptor;var UXe=Object.getOwnPropertyNames;var GXe=Object.getPrototypeOf,HXe=Object.prototype.hasOwnProperty;var o=(t,e)=>_4(t,"name",{value:e,configurable:!0});var XXe=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wre=(t,e)=>{for(var r in e)_4(t,r,{get:e[r],enumerable:!0})},VXe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of UXe(e))!HXe.call(t,n)&&n!==r&&_4(t,n,{get:()=>e[n],enumerable:!(s=kXe(e,n))||s.enumerable});return t};var x=(t,e,r)=>(r=t!=null?PXe(GXe(t)):{},VXe(e||!t||!t.__esModule?_4(r,"default",{value:t,enumerable:!0}):r,t));var Wre=b(Zf=>{"use strict";var f1t=require("net"),ZXe=require("tls"),vx=require("http"),vre=require("https"),eVe=require("events"),h1t=require("assert"),tVe=require("util");Zf.httpOverHttp=rVe;Zf.httpsOverHttp=sVe;Zf.httpOverHttps=nVe;Zf.httpsOverHttps=iVe;function rVe(t){var e=new su(t);return e.request=vx.request,e}o(rVe,"httpOverHttp");function sVe(t){var e=new su(t);return e.request=vx.request,e.createSocket=Tre,e.defaultPort=443,e}o(sVe,"httpsOverHttp");function nVe(t){var e=new su(t);return e.request=vre.request,e}o(nVe,"httpOverHttps");function iVe(t){var e=new su(t);return e.request=vre.request,e.createSocket=Tre,e.defaultPort=443,e}o(iVe,"httpsOverHttps");function su(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||vx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=xre(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");su.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=Tx({},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")),tl("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){tl("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){tl("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 tl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),tl(`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");su.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 Tre(t,e){var r=this;su.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=Tx({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=ZXe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(Tre,"createSecureSocket");function xre(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(xre,"toOptions");function Tx(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(PC0(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(N_,"chunksDecode");function voe(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(Mg0,"varint64write");Hs.varint64write=Mg0;var oR=65536*65536;function mg0(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>=oR&&(n=n+(s/oR|0),s=s%oR)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(mg0,"int64fromString");Hs.int64fromString=mg0;function gg0(t,e){if(e>>>0<=2097151)return""+(oR*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(gg0,"int64toString");Hs.int64toString=gg0;function zg0(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(zg0,"varint32write");Hs.varint32write=zg0;function Og0(){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(Og0,"varint32read");Hs.varint32read=Og0});var Ul=b(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.PbLong=kl.PbULong=kl.detectBi=void 0;var O3=aR(),U0;function Uze(){let t=new DataView(new ArrayBuffer(8));U0=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(Uze,"detectBi");kl.detectBi=Uze;Uze();function Gze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(Gze,"assertBi");var Hze=/^-?[0-9]+$/,uR=4294967296,cR=2147483648,pR=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*uR+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},E3=class t extends pR{static{o(this,"PbULong")}static from(e){if(U0)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=U0.C(e);case"number":if(e===0)return this.ZERO;e=U0.C(e);case"bigint":if(!e)return this.ZERO;if(e{"use strict";G3.__esModule=!0;G3.createProtoAccessControl=ny0;G3.resultIsAllowed=iy0;G3.resetLoggedProperties=ay0;function ty0(t){return t&&t.__esModule?t:{default:t}}o(ty0,"_interopRequireDefault");var NEe=cs(),ry0=bX(),sy0=ty0(ry0),Ow=Object.create(null);function ny0(t){var e=Object.create(null);e.__proto__=!1,NEe.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,NEe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(ny0,"createProtoAccessControl");function iy0(t,e,r){return FEe(typeof t=="function"?e.methods:e.properties,r)}o(iy0,"resultIsAllowed");function FEe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(oy0(e),!1)}o(FEe,"checkWhiteList");function oy0(t){Ow[t]!==!0&&(Ow[t]=!0,sy0.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(oy0,"logUnexpecedPropertyAccessOnce");function ay0(){Object.keys(Ow).forEach(function(t){delete Ow[t]})}o(ay0,"resetLoggedProperties")});var yw=b(ic=>{"use strict";ic.__esModule=!0;ic.HandlebarsEnvironment=zX;function vEe(t){return t&&t.__esModule?t:{default:t}}o(vEe,"_interopRequireDefault");var d2=cs(),cy0=Un(),mX=vEe(cy0),uy0=fX(),py0=wEe(),ly0=bX(),Ew=vEe(ly0),Ay0=MX(),dy0="4.7.9";ic.VERSION=dy0;var fy0=8;ic.COMPILER_REVISION=fy0;var hy0=7;ic.LAST_COMPATIBLE_COMPILER_REVISION=hy0;var by0={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=by0;var gX="[object Object]";function zX(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},uy0.registerDefaultHelpers(this),py0.registerDefaultDecorators(this)}o(zX,"HandlebarsEnvironment");zX.prototype={constructor:zX,logger:Ew.default,log:Ew.default.log,registerHelper:o(function(e,r){if(d2.toString.call(e)===gX){if(r)throw new mX.default("Arg not supported with multiple helpers");d2.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(d2.toString.call(e)===gX)d2.extend(this.partials,e);else{if(typeof r>"u")throw new mX.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(d2.toString.call(e)===gX){if(r)throw new mX.default("Arg not supported with multiple decorators");d2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Ay0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var My0=Ew.default.log;ic.log=My0;ic.createFrame=d2.createFrame;ic.logger=Ew.default});var xEe=b((Cw,TEe)=>{"use strict";Cw.__esModule=!0;function OX(t){this.string=t}o(OX,"SafeString");OX.prototype.toString=OX.prototype.toHTML=function(){return""+this.string};Cw.default=OX;TEe.exports=Cw.default});var WEe=b(EX=>{"use strict";EX.__esModule=!0;EX.wrapHelper=my0;function my0(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(my0,"wrapHelper")});var UEe=b(jl=>{"use strict";jl.__esModule=!0;jl.checkRevision=Cy0;jl.template=By0;jl.wrapProgram=Bw;jl.resolvePartial=Dy0;jl.invokePartial=qy0;jl.noop=PEe;function gy0(t){return t&&t.__esModule?t:{default:t}}o(gy0,"_interopRequireDefault");function zy0(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(zy0,"_interopRequireWildcard");var Oy0=cs(),lM=zy0(Oy0),Ey0=Un(),Uu=gy0(Ey0),Gu=yw(),_Ee=fX(),yy0=WEe(),LEe=MX();function Cy0(t){var e=t&&t[0]||1,r=Gu.COMPILER_REVISION;if(!(e>=Gu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Gu.COMPILER_REVISION))if(e{"use strict";Tw.__esModule=!0;function ky0(t){return t&&t.__esModule?t:{default:t}}o(ky0,"_interopRequireDefault");var Uy0=vw(),Gy0=ky0(Uy0);function oc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(oc,"WhitespaceControl");oc.prototype=new Gy0.default;oc.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";Ti.__esModule=!0;Ti.SourceLocation=Vy0;Ti.id=jy0;Ti.stripFlags=$y0;Ti.stripComment=Yy0;Ti.preparePath=Jy0;Ti.prepareMustache=Ky0;Ti.prepareRawBlock=Zy0;Ti.prepareBlock=eC0;Ti.prepareProgram=tC0;Ti.preparePartialBlock=rC0;function Hy0(t){return t&&t.__esModule?t:{default:t}}o(Hy0,"_interopRequireDefault");var Xy0=Un(),SX=Hy0(Xy0);function NX(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new SX.default(t.path.original+" doesn't match "+e,r)}}o(NX,"validateClose");function Vy0(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(Vy0,"SourceLocation");function jy0(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(jy0,"id");function $y0(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o($y0,"stripFlags");function Yy0(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(Yy0,"stripComment");function Jy0(t,e,r){r=this.locInfo(r);for(var s=t?"@":"",n=[],i=0,a=0,c=e.length;a{var me=fM(),$X=Iye(),hM=GX().ArraySet,vC0=QX(),eE=wye().quickSort;function it(t,e){var r=t;return typeof t=="string"&&(r=me.parseSourceMapInput(t)),r.sections!=null?new _o(r,e):new dr(r,e)}o(it,"SourceMapConsumer");it.fromSourceMap=function(t,e){return dr.fromSourceMap(t,e)};it.prototype._version=3;it.prototype.__generatedMappings=null;Object.defineProperty(it.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});it.prototype.__originalMappings=null;Object.defineProperty(it.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});it.prototype._charIsMappingSeparator=o(function(e,r){var s=e.charAt(r);return s===";"||s===","},"SourceMapConsumer_charIsMappingSeparator");it.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");it.GENERATED_ORDER=1;it.ORIGINAL_ORDER=2;it.GREATEST_LOWER_BOUND=1;it.LEAST_UPPER_BOUND=2;it.prototype.eachMapping=o(function(e,r,s){var n=r||null,i=s||it.GENERATED_ORDER,a;switch(i){case it.GENERATED_ORDER:a=this._generatedMappings;break;case it.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=me.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");it.prototype.allGeneratedPositionsFor=o(function(e){var r=me.getArg(e,"line"),s={source:me.getArg(e,"source"),originalLine:r,originalColumn:me.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",me.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:me.getArg(a,"generatedLine",null),column:me.getArg(a,"generatedColumn",null),lastColumn:me.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)n.push({line:me.getArg(a,"generatedLine",null),column:me.getArg(a,"generatedColumn",null),lastColumn:me.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n},"SourceMapConsumer_allGeneratedPositionsFor");Lw.SourceMapConsumer=it;function dr(t,e){var r=t;typeof t=="string"&&(r=me.parseSourceMapInput(t));var s=me.getArg(r,"version"),n=me.getArg(r,"sources"),i=me.getArg(r,"names",[]),a=me.getArg(r,"sourceRoot",null),c=me.getArg(r,"sourcesContent",null),u=me.getArg(r,"mappings"),p=me.getArg(r,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);a&&(a=me.normalize(a)),n=n.map(String).map(me.normalize).map(function(l){return a&&me.isAbsolute(a)&&me.isAbsolute(l)?me.relative(a,l):l}),this._names=hM.fromArray(i.map(String),!0),this._sources=hM.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(l){return me.computeSourceURL(a,l,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=e,this.file=p}o(dr,"BasicSourceMapConsumer");dr.prototype=Object.create(it.prototype);dr.prototype.consumer=it;dr.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=me.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r{"use strict";Gw.__esModule=!0;function tE(t){return t&&t.__esModule?t:{default:t}}o(tE,"_interopRequireDefault");var kC0=$Ee(),UC0=tE(kC0),GC0=qX(),HC0=tE(GC0),ZX=aye(),eV=lye(),XC0=Gye(),VC0=tE(XC0),jC0=vw(),$C0=tE(jC0),YC0=yX(),JC0=tE(YC0),KC0=UC0.default.create;function Hye(){var t=KC0();return t.compile=function(e,r){return eV.compile(e,r,t)},t.precompile=function(e,r){return eV.precompile(e,r,t)},t.AST=HC0.default,t.Compiler=eV.Compiler,t.JavaScriptCompiler=VC0.default,t.Parser=ZX.parser,t.parse=ZX.parse,t.parseWithoutProcessing=ZX.parseWithoutProcessing,t}o(Hye,"create");var gM=Hye();gM.create=Hye;JC0.default(gM);gM.Visitor=$C0.default;gM.default=gM;Gw.default=gM;Xye.exports=Gw.default});var jye=b(Hw=>{"use strict";Hw.__esModule=!0;Hw.print=r40;Hw.PrintVisitor=vt;function ZC0(t){return t&&t.__esModule?t:{default:t}}o(ZC0,"_interopRequireDefault");var e40=vw(),t40=ZC0(e40);function r40(t){return new vt().accept(t)}o(r40,"print");function vt(){this.padding=0}o(vt,"PrintVisitor");vt.prototype=new t40.default;vt.prototype.pad=function(t){for(var e="",r=0,s=this.padding;r "+e+" }}")};vt.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+" }}")};vt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};vt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};vt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n{var Xw=Vye().default,Yye=jye();Xw.PrintVisitor=Yye.PrintVisitor;Xw.print=Yye.print;Jye.exports=Xw;function $ye(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=Xw.compile(s)}o($ye,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=$ye,require.extensions[".hbs"]=$ye)});var Jw=b(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.Signature=Yl.Envelope=void 0;Yl.Envelope={fromJSON(t){return{payload:Yw(t.payload)?Buffer.from(cCe(t.payload)):Buffer.alloc(0),payloadType:Yw(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>Yl.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=uCe(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>Yl.Signature.toJSON(r))),e}};Yl.Signature={fromJSON(t){return{sig:Yw(t.sig)?Buffer.from(cCe(t.sig)):Buffer.alloc(0),keyid:Yw(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=uCe(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function cCe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(cCe,"bytesFromBase64");function uCe(t){return globalThis.Buffer.from(t).toString("base64")}o(uCe,"base64FromBytes");function Yw(t){return t!=null}o(Yw,"isSet")});var lCe=b(Kw=>{"use strict";Object.defineProperty(Kw,"__esModule",{value:!0});Kw.Timestamp=void 0;Kw.Timestamp={fromJSON(t){return{seconds:pCe(t.seconds)?globalThis.String(t.seconds):"0",nanos:pCe(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 pCe(t){return t!=null}o(pCe,"isSet")});var Vu=b(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.TimeRange=xe.X509CertificateChain=xe.SubjectAlternativeName=xe.X509Certificate=xe.DistinguishedName=xe.ObjectIdentifierValuePair=xe.ObjectIdentifier=xe.PublicKeyIdentifier=xe.PublicKey=xe.RFC3161SignedTimestamp=xe.LogId=xe.MessageSignature=xe.HashOutput=xe.SubjectAlternativeNameType=xe.PublicKeyDetails=xe.HashAlgorithm=void 0;xe.hashAlgorithmFromJSON=dCe;xe.hashAlgorithmToJSON=fCe;xe.publicKeyDetailsFromJSON=hCe;xe.publicKeyDetailsToJSON=bCe;xe.subjectAlternativeNameTypeFromJSON=MCe;xe.subjectAlternativeNameTypeToJSON=mCe;var p40=lCe(),Ys;(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"})(Ys||(xe.HashAlgorithm=Ys={}));function dCe(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return Ys.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return Ys.SHA2_256;case 2:case"SHA2_384":return Ys.SHA2_384;case 3:case"SHA2_512":return Ys.SHA2_512;case 4:case"SHA3_256":return Ys.SHA3_256;case 5:case"SHA3_384":return Ys.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(dCe,"hashAlgorithmFromJSON");function fCe(t){switch(t){case Ys.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case Ys.SHA2_256:return"SHA2_256";case Ys.SHA2_384:return"SHA2_384";case Ys.SHA2_512:return"SHA2_512";case Ys.SHA3_256:return"SHA3_256";case Ys.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(fCe,"hashAlgorithmToJSON");var Te;(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"})(Te||(xe.PublicKeyDetails=Te={}));function hCe(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Te.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Te.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Te.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Te.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Te.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Te.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Te.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Te.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Te.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Te.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Te.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Te.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Te.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Te.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Te.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Te.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Te.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Te.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Te.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Te.LMS_SHA256;case 15:case"LMOTS_SHA256":return Te.LMOTS_SHA256;case 21:case"ML_DSA_65":return Te.ML_DSA_65;case 22:case"ML_DSA_87":return Te.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(hCe,"publicKeyDetailsFromJSON");function bCe(t){switch(t){case Te.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Te.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Te.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Te.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Te.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Te.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Te.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Te.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Te.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Te.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Te.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Te.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Te.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Te.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Te.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Te.PKIX_ED25519:return"PKIX_ED25519";case Te.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Te.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Te.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Te.LMS_SHA256:return"LMS_SHA256";case Te.LMOTS_SHA256:return"LMOTS_SHA256";case Te.ML_DSA_65:return"ML_DSA_65";case Te.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(bCe,"publicKeyDetailsToJSON");var ac;(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"})(ac||(xe.SubjectAlternativeNameType=ac={}));function MCe(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return ac.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return ac.EMAIL;case 2:case"URI":return ac.URI;case 3:case"OTHER_NAME":return ac.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(MCe,"subjectAlternativeNameTypeFromJSON");function mCe(t){switch(t){case ac.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case ac.EMAIL:return"EMAIL";case ac.URI:return"URI";case ac.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(mCe,"subjectAlternativeNameTypeToJSON");xe.HashOutput={fromJSON(t){return{algorithm:f1(t.algorithm)?dCe(t.algorithm):0,digest:f1(t.digest)?Buffer.from(g2(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=fCe(t.algorithm)),t.digest.length!==0&&(e.digest=z2(t.digest)),e}};xe.MessageSignature={fromJSON(t){return{messageDigest:f1(t.messageDigest)?xe.HashOutput.fromJSON(t.messageDigest):void 0,signature:f1(t.signature)?Buffer.from(g2(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=xe.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=z2(t.signature)),e}};xe.LogId={fromJSON(t){return{keyId:f1(t.keyId)?Buffer.from(g2(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=z2(t.keyId)),e}};xe.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:f1(t.signedTimestamp)?Buffer.from(g2(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=z2(t.signedTimestamp)),e}};xe.PublicKey={fromJSON(t){return{rawBytes:f1(t.rawBytes)?Buffer.from(g2(t.rawBytes)):void 0,keyDetails:f1(t.keyDetails)?hCe(t.keyDetails):0,validFor:f1(t.validFor)?xe.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=z2(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=bCe(t.keyDetails)),t.validFor!==void 0&&(e.validFor=xe.TimeRange.toJSON(t.validFor)),e}};xe.PublicKeyIdentifier={fromJSON(t){return{hint:f1(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};xe.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}};xe.ObjectIdentifierValuePair={fromJSON(t){return{oid:f1(t.oid)?xe.ObjectIdentifier.fromJSON(t.oid):void 0,value:f1(t.value)?Buffer.from(g2(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=xe.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=z2(t.value)),e}};xe.DistinguishedName={fromJSON(t){return{organization:f1(t.organization)?globalThis.String(t.organization):"",commonName:f1(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};xe.X509Certificate={fromJSON(t){return{rawBytes:f1(t.rawBytes)?Buffer.from(g2(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=z2(t.rawBytes)),e}};xe.SubjectAlternativeName={fromJSON(t){return{type:f1(t.type)?MCe(t.type):0,identity:f1(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:f1(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=mCe(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};xe.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>xe.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>xe.X509Certificate.toJSON(r))),e}};xe.TimeRange={fromJSON(t){return{start:f1(t.start)?ACe(t.start):void 0,end:f1(t.end)?ACe(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 g2(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(g2,"bytesFromBase64");function z2(t){return globalThis.Buffer.from(t).toString("base64")}o(z2,"base64FromBytes");function l40(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(l40,"fromTimestamp");function ACe(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):l40(p40.Timestamp.fromJSON(t))}o(ACe,"fromJsonTimestamp");function f1(t){return t!=null}o(f1,"isSet")});var uV=b(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});h1.TransparencyLogEntry=h1.InclusionPromise=h1.InclusionProof=h1.Checkpoint=h1.KindVersion=void 0;var gCe=Vu();h1.KindVersion={fromJSON(t){return{kind:us(t.kind)?globalThis.String(t.kind):"",version:us(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};h1.Checkpoint={fromJSON(t){return{envelope:us(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};h1.InclusionProof={fromJSON(t){return{logIndex:us(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:us(t.rootHash)?Buffer.from(Zw(t.rootHash)):Buffer.alloc(0),treeSize:us(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(Zw(e))):[],checkpoint:us(t.checkpoint)?h1.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=eS(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>eS(r))),t.checkpoint!==void 0&&(e.checkpoint=h1.Checkpoint.toJSON(t.checkpoint)),e}};h1.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:us(t.signedEntryTimestamp)?Buffer.from(Zw(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=eS(t.signedEntryTimestamp)),e}};h1.TransparencyLogEntry={fromJSON(t){return{logIndex:us(t.logIndex)?globalThis.String(t.logIndex):"0",logId:us(t.logId)?gCe.LogId.fromJSON(t.logId):void 0,kindVersion:us(t.kindVersion)?h1.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:us(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:us(t.inclusionPromise)?h1.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:us(t.inclusionProof)?h1.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:us(t.canonicalizedBody)?Buffer.from(Zw(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=gCe.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=h1.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=h1.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=h1.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=eS(t.canonicalizedBody)),e}};function Zw(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(Zw,"bytesFromBase64");function eS(t){return globalThis.Buffer.from(t).toString("base64")}o(eS,"base64FromBytes");function us(t){return t!=null}o(us,"isSet")});var pV=b(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.Bundle=_i.VerificationMaterial=_i.TimestampVerificationData=void 0;var zCe=Jw(),cc=Vu(),OCe=uV();_i.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>cc.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>cc.RFC3161SignedTimestamp.toJSON(r))),e}};_i.VerificationMaterial={fromJSON(t){return{content:Jl(t.publicKey)?{$case:"publicKey",publicKey:cc.PublicKeyIdentifier.fromJSON(t.publicKey)}:Jl(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:cc.X509CertificateChain.fromJSON(t.x509CertificateChain)}:Jl(t.certificate)?{$case:"certificate",certificate:cc.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>OCe.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:Jl(t.timestampVerificationData)?_i.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=cc.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=cc.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=cc.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>OCe.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=_i.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};_i.Bundle={fromJSON(t){return{mediaType:Jl(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:Jl(t.verificationMaterial)?_i.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:Jl(t.messageSignature)?{$case:"messageSignature",messageSignature:cc.MessageSignature.fromJSON(t.messageSignature)}:Jl(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:zCe.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=_i.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=cc.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=zCe.Envelope.toJSON(t.content.dsseEnvelope)),e}};function Jl(t){return t!=null}o(Jl,"isSet")});var lV=b(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ClientTrustConfig=Ge.ServiceConfiguration=Ge.Service=Ge.SigningConfig=Ge.TrustedRoot=Ge.CertificateAuthority=Ge.TransparencyLogInstance=Ge.ServiceSelector=void 0;Ge.serviceSelectorFromJSON=ECe;Ge.serviceSelectorToJSON=yCe;var qr=Vu(),uc;(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"})(uc||(Ge.ServiceSelector=uc={}));function ECe(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return uc.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return uc.ALL;case 2:case"ANY":return uc.ANY;case 3:case"EXACT":return uc.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(ECe,"serviceSelectorFromJSON");function yCe(t){switch(t){case uc.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case uc.ALL:return"ALL";case uc.ANY:return"ANY";case uc.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(yCe,"serviceSelectorToJSON");Ge.TransparencyLogInstance={fromJSON(t){return{baseUrl:bt(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:bt(t.hashAlgorithm)?(0,qr.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:bt(t.publicKey)?qr.PublicKey.fromJSON(t.publicKey):void 0,logId:bt(t.logId)?qr.LogId.fromJSON(t.logId):void 0,checkpointKeyId:bt(t.checkpointKeyId)?qr.LogId.fromJSON(t.checkpointKeyId):void 0,operator:bt(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,qr.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=qr.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=qr.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=qr.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};Ge.CertificateAuthority={fromJSON(t){return{subject:bt(t.subject)?qr.DistinguishedName.fromJSON(t.subject):void 0,uri:bt(t.uri)?globalThis.String(t.uri):"",certChain:bt(t.certChain)?qr.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:bt(t.validFor)?qr.TimeRange.fromJSON(t.validFor):void 0,operator:bt(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=qr.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=qr.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=qr.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Ge.TrustedRoot={fromJSON(t){return{mediaType:bt(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>Ge.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>Ge.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>Ge.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>Ge.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>Ge.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>Ge.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>Ge.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>Ge.CertificateAuthority.toJSON(r))),e}};Ge.SigningConfig={fromJSON(t){return{mediaType:bt(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>Ge.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>Ge.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>Ge.Service.fromJSON(e)):[],rekorTlogConfig:bt(t.rekorTlogConfig)?Ge.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>Ge.Service.fromJSON(e)):[],tsaConfig:bt(t.tsaConfig)?Ge.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=>Ge.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>Ge.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>Ge.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=Ge.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>Ge.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=Ge.ServiceConfiguration.toJSON(t.tsaConfig)),e}};Ge.Service={fromJSON(t){return{url:bt(t.url)?globalThis.String(t.url):"",majorApiVersion:bt(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:bt(t.validFor)?qr.TimeRange.fromJSON(t.validFor):void 0,operator:bt(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=qr.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Ge.ServiceConfiguration={fromJSON(t){return{selector:bt(t.selector)?ECe(t.selector):0,count:bt(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=yCe(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};Ge.ClientTrustConfig={fromJSON(t){return{mediaType:bt(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:bt(t.trustedRoot)?Ge.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:bt(t.signingConfig)?Ge.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=Ge.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=Ge.SigningConfig.toJSON(t.signingConfig)),e}};function bt(t){return t!=null}o(bt,"isSet")});var DCe=b(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Input=He.Artifact=He.ArtifactVerificationOptions_ObserverTimestampOptions=He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=He.ArtifactVerificationOptions_TimestampAuthorityOptions=He.ArtifactVerificationOptions_CtlogOptions=He.ArtifactVerificationOptions_TlogOptions=He.ArtifactVerificationOptions=He.PublicKeyIdentities=He.CertificateIdentities=He.CertificateIdentity=void 0;var CCe=pV(),Kl=Vu(),BCe=lV();He.CertificateIdentity={fromJSON(t){return{issuer:G0(t.issuer)?globalThis.String(t.issuer):"",san:G0(t.san)?Kl.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>Kl.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=Kl.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>Kl.ObjectIdentifierValuePair.toJSON(r))),e}};He.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>He.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>He.CertificateIdentity.toJSON(r))),e}};He.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>Kl.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>Kl.PublicKey.toJSON(r))),e}};He.ArtifactVerificationOptions={fromJSON(t){return{signers:G0(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:He.CertificateIdentities.fromJSON(t.certificateIdentities)}:G0(t.publicKeys)?{$case:"publicKeys",publicKeys:He.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:G0(t.tlogOptions)?He.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:G0(t.ctlogOptions)?He.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:G0(t.tsaOptions)?He.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:G0(t.integratedTsOptions)?He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:G0(t.observerOptions)?He.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=He.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=He.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=He.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=He.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=He.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=He.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};He.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:G0(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:G0(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:G0(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}};He.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:G0(t.threshold)?globalThis.Number(t.threshold):0,disable:G0(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}};He.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:G0(t.threshold)?globalThis.Number(t.threshold):0,disable:G0(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}};He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:G0(t.threshold)?globalThis.Number(t.threshold):0,disable:G0(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}};He.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:G0(t.threshold)?globalThis.Number(t.threshold):0,disable:G0(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}};He.Artifact={fromJSON(t){return{data:G0(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:G0(t.artifact)?{$case:"artifact",artifact:Buffer.from(A40(t.artifact))}:G0(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:Kl.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=d40(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=Kl.HashOutput.toJSON(t.data.artifactDigest)),e}};He.Input={fromJSON(t){return{artifactTrustRoot:G0(t.artifactTrustRoot)?BCe.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:G0(t.artifactVerificationOptions)?He.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:G0(t.bundle)?CCe.Bundle.fromJSON(t.bundle):void 0,artifact:G0(t.artifact)?He.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=BCe.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=He.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=CCe.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=He.Artifact.toJSON(t.artifact)),e}};function A40(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(A40,"bytesFromBase64");function d40(t){return globalThis.Buffer.from(t).toString("base64")}o(d40,"base64FromBytes");function G0(t){return t!=null}o(G0,"isSet")});var ju=b(Li=>{"use strict";var f40=Li&&Li.__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]})),OM=Li&&Li.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&f40(e,t,r)};Object.defineProperty(Li,"__esModule",{value:!0});OM(Jw(),Li);OM(pV(),Li);OM(Vu(),Li);OM(uV(),Li);OM(lV(),Li);OM(DCe(),Li)});var tS=b(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.BUNDLE_V03_MEDIA_TYPE=Js.BUNDLE_V03_LEGACY_MEDIA_TYPE=Js.BUNDLE_V02_MEDIA_TYPE=Js.BUNDLE_V01_MEDIA_TYPE=void 0;Js.isBundleWithCertificateChain=h40;Js.isBundleWithPublicKey=b40;Js.isBundleWithMessageSignature=M40;Js.isBundleWithDsseEnvelope=m40;Js.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Js.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Js.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Js.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function h40(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(h40,"isBundleWithCertificateChain");function b40(t){return t.verificationMaterial.content.$case==="publicKey"}o(b40,"isBundleWithPublicKey");function M40(t){return t.content.$case==="messageSignature"}o(M40,"isBundleWithMessageSignature");function m40(t){return t.content.$case==="dsseEnvelope"}o(m40,"isBundleWithDsseEnvelope")});var ICe=b(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});sS.toMessageSignatureBundle=z40;sS.toDSSEBundle=O40;var g40=ju(),rS=tS();function z40(t){return{mediaType:t.certificateChain?rS.BUNDLE_V02_MEDIA_TYPE:rS.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:g40.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:qCe(t)}}o(z40,"toMessageSignatureBundle");function O40(t){return{mediaType:t.certificateChain?rS.BUNDLE_V02_MEDIA_TYPE:rS.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:E40(t)},verificationMaterial:qCe(t)}}o(O40,"toDSSEBundle");function E40(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[y40(t)]}}o(E40,"toEnvelope");function y40(t){return{keyid:t.keyHint||"",sig:t.signature}}o(y40,"toSignature");function qCe(t){return{content:C40(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(qCe,"toVerificationMaterial");function C40(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(C40,"toKeyContent")});var dV=b(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.ValidationError=void 0;var AV=class extends Error{static{o(this,"ValidationError")}constructor(e,r){super(e),this.fields=r}};nS.ValidationError=AV});var fV=b(O2=>{"use strict";Object.defineProperty(O2,"__esModule",{value:!0});O2.assertBundle=B40;O2.assertBundleV01=RCe;O2.isBundleV01=D40;O2.assertBundleV02=q40;O2.assertBundleLatest=I40;var iS=dV();function B40(t){let e=oS(t);if(e.length>0)throw new iS.ValidationError("invalid bundle",e)}o(B40,"assertBundle");function RCe(t){let e=[];if(e.push(...oS(t)),e.push(...R40(t)),e.length>0)throw new iS.ValidationError("invalid v0.1 bundle",e)}o(RCe,"assertBundleV01");function D40(t){try{return RCe(t),!0}catch{return!1}}o(D40,"isBundleV01");function q40(t){let e=[];if(e.push(...oS(t)),e.push(...wCe(t)),e.length>0)throw new iS.ValidationError("invalid v0.2 bundle",e)}o(q40,"assertBundleV02");function I40(t){let e=[];if(e.push(...oS(t)),e.push(...wCe(t)),e.push(...w40(t)),e.length>0)throw new iS.ValidationError("invalid bundle",e)}o(I40,"assertBundleLatest");function oS(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(oS,"validateBundleBase");function R40(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(R40,"validateInclusionPromise");function wCe(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(wCe,"validateInclusionProof");function w40(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(w40,"validateNoCertificateChain")});var NCe=b(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.envelopeToJSON=pc.envelopeFromJSON=pc.bundleToJSON=pc.bundleFromJSON=void 0;var aS=ju(),SCe=tS(),hV=fV(),S40=o(t=>{let e=aS.Bundle.fromJSON(t);switch(e.mediaType){case SCe.BUNDLE_V01_MEDIA_TYPE:(0,hV.assertBundleV01)(e);break;case SCe.BUNDLE_V02_MEDIA_TYPE:(0,hV.assertBundleV02)(e);break;default:(0,hV.assertBundleLatest)(e);break}return e},"bundleFromJSON");pc.bundleFromJSON=S40;var N40=o(t=>aS.Bundle.toJSON(t),"bundleToJSON");pc.bundleToJSON=N40;var F40=o(t=>aS.Envelope.fromJSON(t),"envelopeFromJSON");pc.envelopeFromJSON=F40;var v40=o(t=>aS.Envelope.toJSON(t),"envelopeToJSON");pc.envelopeToJSON=v40});var iE=b(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.isBundleV01=Je.assertBundleV02=Je.assertBundleV01=Je.assertBundleLatest=Je.assertBundle=Je.envelopeToJSON=Je.envelopeFromJSON=Je.bundleToJSON=Je.bundleFromJSON=Je.ValidationError=Je.isBundleWithPublicKey=Je.isBundleWithMessageSignature=Je.isBundleWithDsseEnvelope=Je.isBundleWithCertificateChain=Je.BUNDLE_V03_MEDIA_TYPE=Je.BUNDLE_V03_LEGACY_MEDIA_TYPE=Je.BUNDLE_V02_MEDIA_TYPE=Je.BUNDLE_V01_MEDIA_TYPE=Je.toMessageSignatureBundle=Je.toDSSEBundle=void 0;var FCe=ICe();Object.defineProperty(Je,"toDSSEBundle",{enumerable:!0,get:o(function(){return FCe.toDSSEBundle},"get")});Object.defineProperty(Je,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return FCe.toMessageSignatureBundle},"get")});var Zl=tS();Object.defineProperty(Je,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Zl.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(Je,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Zl.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(Je,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Zl.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(Je,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return Zl.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(Je,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return Zl.isBundleWithCertificateChain},"get")});Object.defineProperty(Je,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return Zl.isBundleWithDsseEnvelope},"get")});Object.defineProperty(Je,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return Zl.isBundleWithMessageSignature},"get")});Object.defineProperty(Je,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return Zl.isBundleWithPublicKey},"get")});var T40=dV();Object.defineProperty(Je,"ValidationError",{enumerable:!0,get:o(function(){return T40.ValidationError},"get")});var cS=NCe();Object.defineProperty(Je,"bundleFromJSON",{enumerable:!0,get:o(function(){return cS.bundleFromJSON},"get")});Object.defineProperty(Je,"bundleToJSON",{enumerable:!0,get:o(function(){return cS.bundleToJSON},"get")});Object.defineProperty(Je,"envelopeFromJSON",{enumerable:!0,get:o(function(){return cS.envelopeFromJSON},"get")});Object.defineProperty(Je,"envelopeToJSON",{enumerable:!0,get:o(function(){return cS.envelopeToJSON},"get")});var nE=fV();Object.defineProperty(Je,"assertBundle",{enumerable:!0,get:o(function(){return nE.assertBundle},"get")});Object.defineProperty(Je,"assertBundleLatest",{enumerable:!0,get:o(function(){return nE.assertBundleLatest},"get")});Object.defineProperty(Je,"assertBundleV01",{enumerable:!0,get:o(function(){return nE.assertBundleV01},"get")});Object.defineProperty(Je,"assertBundleV02",{enumerable:!0,get:o(function(){return nE.assertBundleV02},"get")});Object.defineProperty(Je,"isBundleV01",{enumerable:!0,get:o(function(){return nE.isBundleV01},"get")})});var oE=b(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.ByteStream=void 0;var bV=class extends Error{static{o(this,"StreamError")}},MV=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 bV("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}};uS.ByteStream=MV});var pS=b(EM=>{"use strict";Object.defineProperty(EM,"__esModule",{value:!0});EM.ASN1TypeError=EM.ASN1ParseError=void 0;var mV=class extends Error{static{o(this,"ASN1ParseError")}};EM.ASN1ParseError=mV;var gV=class extends Error{static{o(this,"ASN1TypeError")}};EM.ASN1TypeError=gV});var TCe=b(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.decodeLength=x40;lS.encodeLength=W40;var vCe=pS();function x40(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new vCe.ASN1ParseError("length exceeds 6 byte limit");let s=0;for(let n=0;n{"use strict";var DB0=Hn&&Hn.__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]})),qB0=Hn&&Hn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),s4e=Hn&&Hn.__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};B0.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};B0.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};B0.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};B0.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 B0;if(e