var cIe=Object.create;var cz=Object.defineProperty;var uIe=Object.getOwnPropertyDescriptor;var pIe=Object.getOwnPropertyNames;var AIe=Object.getPrototypeOf,lIe=Object.prototype.hasOwnProperty;var i=(t,e)=>cz(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dIe=(t,e)=>{for(var r in e)cz(t,r,{get:e[r],enumerable:!0})},bIe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of pIe(e))!lIe.call(t,o)&&o!==r&&cz(t,o,{get:()=>e[o],enumerable:!(n=uIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?cIe(AIe(t)):{},bIe(e||!t||!t.__esModule?cz(r,"default",{value:t,enumerable:!0}):r,t));var k9=m(pA=>{"use strict";var V40=require("net"),OIe=require("tls"),YD=require("http"),Q9=require("https"),gIe=require("events"),Y40=require("assert"),EIe=require("util");pA.httpOverHttp=CIe;pA.httpsOverHttp=yIe;pA.httpOverHttps=BIe;pA.httpsOverHttps=qIe;function CIe(t){var e=new zi(t);return e.request=YD.request,e}i(CIe,"httpOverHttp");function yIe(t){var e=new zi(t);return e.request=YD.request,e.createSocket=_9,e.defaultPort=443,e}i(yIe,"httpsOverHttp");function BIe(t){var e=new zi(t);return e.request=Q9.request,e}i(BIe,"httpOverHttps");function qIe(t){var e=new zi(t);return e.request=Q9.request,e.createSocket=_9,e.defaultPort=443,e}i(qIe,"httpsOverHttps");function zi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||YD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=P9(o,s,a),u=0,p=e.requests.length;u
=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");zi.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=JD({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Na("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}i(c,"onResponse");function u(l,b,f){process.nextTick(function(){p(l,b,f)})}i(u,"onUpgrade");function p(l,b,f){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){Na("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(f.length>0){Na("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return Na("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function A(l){a.removeAllListeners(),Na(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(A,"onError")},"createSocket");zi.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function _9(t,e){var r=this;zi.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=JD({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=OIe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(_9,"createSecureSocket");function P9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(P9,"toOptions");function JD(t){for(var e=1,r=arguments.length;e 0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+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(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(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:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(di0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p{"use strict";var Xd=require("node:assert"),{kDestroyed:EU,kBodyUsed:AA,kListeners:OI,kBody:gU}=k0(),{IncomingMessage:IIe}=require("node:http"),zz=require("node:stream"),RIe=require("node:net"),{Blob:NIe}=require("node:buffer"),wIe=require("node:util"),{stringify:SIe}=require("node:querystring"),{EventEmitter:FIe}=require("node:events"),{InvalidArgumentError:Y1}=i0(),{headerNameLowerCasedRecord:WIe}=Mz(),{tree:CU}=OU(),[xIe,TIe]=process.versions.node.split(".").map(t=>Number(t)),hz=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[gU]=e,this[AA]=!1}async*[Symbol.asyncIterator](){Xd(!this[AA],"disturbed"),this[AA]=!0,yield*this[gU]}};function vIe(t){return Oz(t)?(IU(t)===0&&t.on("data",function(){Xd(!1)}),typeof t.readableDidRead!="boolean"&&(t[AA]=!1,FIe.prototype.on.call(t,"data",function(){this[AA]=!0})),t):t&&typeof t.pipeTo=="function"?new hz(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&DU(t)?new hz(t):t}i(vIe,"wrapRequestBody");function LIe(){}i(LIe,"nop");function Oz(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(Oz,"isStream");function yU(t){if(t===null)return!1;if(t instanceof NIe)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}i(yU,"isBlobLike");function QIe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=SIe(e);return r&&(t+="?"+r),t}i(QIe,"buildURL");function BU(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(BU,"isValidPort");function mz(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(mz,"isHttpOrHttpsPrefixed");function qU(t){if(typeof t=="string"){if(t=new URL(t),!mz(t.origin||t.protocol))throw new Y1("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new Y1("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&BU(t.port)===!1)throw new Y1("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new Y1("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new Y1("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new Y1("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new Y1("Invalid URL origin: the origin must be a string or null/undefined.");if(!mz(t.origin||t.protocol))throw new Y1("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!mz(t.origin||t.protocol))throw new Y1("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(qU,"parseURL");function _Ie(t){if(t=qU(t),t.pathname!=="/"||t.search||t.hash)throw new Y1("invalid url");return t}i(_Ie,"parseOrigin");function PIe(t){if(t[0]==="["){let r=t.indexOf("]");return Xd(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(PIe,"getHostname");function kIe(t){if(!t)return null;Xd(typeof t=="string");let e=PIe(t);return RIe.isIP(e)?"":e}i(kIe,"getServerName");function UIe(t){return JSON.parse(JSON.stringify(t))}i(UIe,"deepClone");function GIe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(GIe,"isAsyncIterable");function DU(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(DU,"isIterable");function IU(t){if(t==null)return 0;if(Oz(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(yU(t))return t.size!=null?t.size:null;if(wU(t))return t.byteLength}return null}i(IU,"bodyLength");function RU(t){return t&&!!(t.destroyed||t[EU]||zz.isDestroyed?.(t))}i(RU,"isDestroyed");function HIe(t,e){t==null||!Oz(t)||RU(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===IIe&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[EU]=!0))}i(HIe,"destroy");var XIe=/timeout=(\d+)/;function VIe(t){let e=t.toString().match(XIe);return e?parseInt(e[1],10)*1e3:null}i(VIe,"parseKeepAliveTimeout");function NU(t){return typeof t=="string"?WIe[t]??t.toLowerCase():CU.lookup(t)??t.toString("latin1").toLowerCase()}i(NU,"headerNameToString");function YIe(t){return CU.lookup(t)??t.toString("latin1").toLowerCase()}i(YIe,"bufferToLowerCasedHeaderName");function JIe(t,e){e===void 0&&(e={});for(let r=0;ro)throw Q.errors.exception({header:"Integer conversion",message:`Value must be between ${s}-${o}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,s),o),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=Q.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};Q.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};Q.util.Stringify=function(t){switch(Q.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return gRe(t);case"String":return`"${t}"`;default:return`${t}`}};Q.sequenceConverter=function(t){return(e,r,n,o)=>{if(Q.util.Type(e)!=="Object")throw Q.errors.exception({header:r,message:`${n} (${Q.util.Stringify(e)}) is not iterable.`});let s=typeof o=="function"?o():e?.[Symbol.iterator]?.(),a=[],c=0;if(s===void 0||typeof s.next!="function")throw Q.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:u,value:p}=s.next();if(u)break;a.push(t(p,r,`${n}[${c++}]`))}return a}};Q.recordConverter=function(t,e){return(r,n,o)=>{if(Q.util.Type(r)!=="Object")throw Q.errors.exception({header:n,message:`${o} ("${Q.util.Type(r)}") is not an Object.`});let s={};if(!ko.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let u of c){let p=t(u,n,o),A=e(r[u],n,o);s[p]=A}return s}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let p=t(c,n,o),A=e(r[c],n,o);s[p]=A}return s}};Q.interfaceConverter=function(t){return(e,r,n,o)=>{if(o?.strict!==!1&&!(e instanceof t))throw Q.errors.exception({header:r,message:`Expected ${n} ("${Q.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};Q.dictionaryConverter=function(t){return(e,r,n)=>{let o=Q.util.Type(e),s={};if(o==="Null"||o==="Undefined")return s;if(o!=="Object")throw Q.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:u,required:p,converter:A}=a;if(p===!0&&!Object.hasOwn(e,c))throw Q.errors.exception({header:r,message:`Missing required key "${c}".`});let l=e[c],b=Object.hasOwn(a,"defaultValue");if(b&&l!==null&&(l??=u()),p||b||l!==void 0){if(l=A(l,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(l))throw Q.errors.exception({header:r,message:`${l} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});s[c]=l}}return s}};Q.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};Q.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw Q.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};Q.converters.ByteString=function(t,e,r){let n=Q.converters.DOMString(t,e,r);for(let o=0;o=0?u:p;n.length&&(c=[s,a])}return c}i(aee,"range")});var mee=m((Cw0,fee)=>{var Ew0=oee(),pee=uee();fee.exports=hke;var Aee="\0SLASH"+Math.random()+"\0",lee="\0OPEN"+Math.random()+"\0",Ew="\0CLOSE"+Math.random()+"\0",dee="\0COMMA"+Math.random()+"\0",bee="\0PERIOD"+Math.random()+"\0",bke=1e5,Mke=4e6;function Ow(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}i(Ow,"numeric");function fke(t){return t.split("\\\\").join(Aee).split("\\{").join(lee).split("\\}").join(Ew).split("\\,").join(dee).split("\\.").join(bee)}i(fke,"escapeBraces");function mke(t){return t.split(Aee).join("\\").split(lee).join("{").split(Ew).join("}").split(dee).join(",").split(bee).join(".")}i(mke,"unescapeBraces");function Mee(t){if(!t)return[""];var e=[],r=pee("{","}",t);if(!r)return t.split(",");var n=r.pre,o=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+o+"}";var c=Mee(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(Mee,"parseCommaParts");function hke(t,e){if(!t)return[];e=e||{};var r=e.max==null?bke:e.max,n=e.maxLength==null?Mke:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),gw(fke(t),r,n,!0).map(mke)}i(hke,"expandTop");function zke(t){return"{"+t+"}"}i(zke,"embrace");function Oke(t){return/^-?0\d/.test(t)}i(Oke,"isPadded");function gke(t,e){return t<=e}i(gke,"lte");function Eke(t,e){return t>=e}i(Eke,"gte");function lM(t,e,r,n,o,s,a,c){for(var u=[],p=0,A=0;A0){var g=new Array(z+1).join("0");b<0?f="-"+g+f.slice(1):f=g+f}}o.push(f)}return o}i(Cke,"expandSequence");function gw(t,e,r,n){for(var o=[""],s=[0],a=!1,c=!0,u;;){var p=pee("{","}",t);if(!p)return lM(o,s,t,[""],e,r,a,[]);var A=p.pre;if(/\$$/.test(A))return lM(o,s,t,[""],e,r,a,[]);var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body),b=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),f=l||b,z=p.body.indexOf(",")>=0;if(!f&&!z){if(p.post.match(/,(?!,).*\}/)){t=p.pre+"{"+p.body+Ew+p.post,n=!0,c=!0,a=!1,s=[];for(var g=0;g"u"?this.pattern:t,wg(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:yke(t)}i(gee,"braceExpand");var wke=1024*64,wg=i(function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>wke)throw new TypeError("pattern is too long")},"assertValidPattern");ct.prototype.parse=Ske;var Ng={};function Ske(t,e){wg(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return Bw;if(t==="")return"";var n="",o=!!r.nocase,s=!1,a=[],c=[],u,p=!1,A=-1,l=-1,b=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function z(){if(u){switch(u){case"*":n+=yw,o=!0;break;case"?":n+=Cw,o=!0;break;default:n+="\\"+u;break}f.debug("clearStateChar %j %j",u,n),u=!1}}i(z,"clearStateChar");for(var g=0,y=t.length,E;g{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.ReflectionBinaryWriter=void 0;var Kr=Rf(),R0=yo(),s2=r2(),Lf=mc(),GT=class{static{i(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let s of this.fields){let a,c,u=s.repeat,p=s.localName;if(s.oneof){let A=e[s.oneof];if(A.oneofKind!==p)continue;a=A[p],c=!0}else a=e[p],c=!1;switch(s.kind){case"scalar":case"enum":let A=s.kind=="enum"?R0.ScalarType.INT32:s.T;if(u)if(s2.assert(Array.isArray(a)),u==R0.RepeatType.PACKED)this.packed(r,A,s.no,a);else for(let l of a)this.scalar(r,A,s.no,l,!0);else a===void 0?s2.assert(s.opt):this.scalar(r,A,s.no,a,c||s.opt);break;case"message":if(u){s2.assert(Array.isArray(a));for(let l of a)this.message(r,n,s.T(),s.no,l)}else this.message(r,n,s.T(),s.no,a);break;case"map":s2.assert(typeof a=="object"&&a!==null);for(let[l,b]of Object.entries(a))this.mapEntry(r,n,s,l,b);break}}let o=n.writeUnknownFields;o!==!1&&(o===!0?Kr.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,r)}mapEntry(e,r,n,o,s){e.tag(n.no,Kr.WireType.LengthDelimited),e.fork();let a=o;switch(n.K){case R0.ScalarType.INT32:case R0.ScalarType.FIXED32:case R0.ScalarType.UINT32:case R0.ScalarType.SFIXED32:case R0.ScalarType.SINT32:a=Number.parseInt(o);break;case R0.ScalarType.BOOL:s2.assert(o=="true"||o=="false"),a=o=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,s,!0);break;case"enum":this.scalar(e,R0.ScalarType.INT32,2,s,!0);break;case"message":this.message(e,r,n.V.T(),2,s);break}e.join()}message(e,r,n,o,s){s!==void 0&&(n.internalBinaryWrite(s,e.tag(o,Kr.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,o,s){let[a,c,u]=this.scalarInfo(r,o);(!u||s)&&(e.tag(n,a),e[c](o))}packed(e,r,n,o){if(!o.length)return;s2.assert(r!==R0.ScalarType.BYTES&&r!==R0.ScalarType.STRING),e.tag(n,Kr.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(r);for(let a=0;a{"use strict";Pn.__esModule=!0;Pn.SourceLocation=zs0;Pn.id=Os0;Pn.stripFlags=gs0;Pn.stripComment=Es0;Pn.preparePath=Cs0;Pn.prepareMustache=ys0;Pn.prepareRawBlock=Bs0;Pn.prepareBlock=qs0;Pn.prepareProgram=Ds0;Pn.preparePartialBlock=Is0;function ms0(t){return t&&t.__esModule?t:{default:t}}i(ms0,"_interopRequireDefault");var hs0=rn(),bQ=ms0(hs0);function MQ(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new bQ.default(t.path.original+" doesn't match "+e,r)}}i(MQ,"validateClose");function zs0(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}}i(zs0,"SourceLocation");function Os0(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(Os0,"id");function gs0(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(gs0,"stripFlags");function Es0(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(Es0,"stripComment");function Cs0(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",o=[],s=0,a=0,c=e.length;a=0)return r}else{var n=BQ.toSetString(e);if(qQ.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");ca.prototype.at=i(function(e){if(e>=0&&e{"use strict";q4.__esModule=!0;function GAe(t){return t&&t.__esModule?t:{default:t}}i(GAe,"_interopRequireDefault");var kAe=i4(),pi0=rn(),xQ=GAe(pi0),Ai0=Yt(),li0=PAe(),UAe=GAe(li0);function R2(t){this.value=t}i(R2,"Literal");function N2(){}i(N2,"JavaScriptCompiler");N2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=kAe.COMPILER_REVISION,r=kAe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Ai0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u{var R4=JAe().default,KAe=jAe();R4.PrintVisitor=KAe.PrintVisitor;R4.print=KAe.print;ZAe.exports=R4;function $Ae(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=R4.compile(n)}i($Ae,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=$Ae,require.extensions[".hbs"]=$Ae)});var x4=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.Signature=Bc.Envelope=void 0;Bc.Envelope={fromJSON(t){return{payload:W4(t.payload)?Buffer.from(ule(t.payload)):Buffer.alloc(0),payloadType:W4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>Bc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=ple(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>Bc.Signature.toJSON(r))),e}};Bc.Signature={fromJSON(t){return{sig:W4(t.sig)?Buffer.from(ule(t.sig)):Buffer.alloc(0),keyid:W4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=ple(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function ule(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(ule,"bytesFromBase64");function ple(t){return globalThis.Buffer.from(t).toString("base64")}i(ple,"base64FromBytes");function W4(t){return t!=null}i(W4,"isSet")});var lle=m(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.Timestamp=void 0;T4.Timestamp={fromJSON(t){return{seconds:Ale(t.seconds)?globalThis.String(t.seconds):"0",nanos:Ale(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 Ale(t){return t!=null}i(Ale,"isSet")});var pa=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.TimeRange=Ee.X509CertificateChain=Ee.SubjectAlternativeName=Ee.X509Certificate=Ee.DistinguishedName=Ee.ObjectIdentifierValuePair=Ee.ObjectIdentifier=Ee.PublicKeyIdentifier=Ee.PublicKey=Ee.RFC3161SignedTimestamp=Ee.LogId=Ee.MessageSignature=Ee.HashOutput=Ee.SubjectAlternativeNameType=Ee.PublicKeyDetails=Ee.HashAlgorithm=void 0;Ee.hashAlgorithmFromJSON=ble;Ee.hashAlgorithmToJSON=Mle;Ee.publicKeyDetailsFromJSON=fle;Ee.publicKeyDetailsToJSON=mle;Ee.subjectAlternativeNameTypeFromJSON=hle;Ee.subjectAlternativeNameTypeToJSON=zle;var Si0=lle(),zr;(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"})(zr||(Ee.HashAlgorithm=zr={}));function ble(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return zr.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return zr.SHA2_256;case 2:case"SHA2_384":return zr.SHA2_384;case 3:case"SHA2_512":return zr.SHA2_512;case 4:case"SHA3_256":return zr.SHA3_256;case 5:case"SHA3_384":return zr.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}i(ble,"hashAlgorithmFromJSON");function Mle(t){switch(t){case zr.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case zr.SHA2_256:return"SHA2_256";case zr.SHA2_384:return"SHA2_384";case zr.SHA2_512:return"SHA2_512";case zr.SHA3_256:return"SHA3_256";case zr.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}i(Mle,"hashAlgorithmToJSON");var ge;(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"})(ge||(Ee.PublicKeyDetails=ge={}));function fle(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return ge.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return ge.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return ge.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return ge.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return ge.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return ge.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return ge.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return ge.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return ge.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return ge.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return ge.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return ge.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return ge.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return ge.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return ge.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return ge.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return ge.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return ge.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return ge.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return ge.LMS_SHA256;case 15:case"LMOTS_SHA256":return ge.LMOTS_SHA256;case 21:case"ML_DSA_65":return ge.ML_DSA_65;case 22:case"ML_DSA_87":return ge.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}i(fle,"publicKeyDetailsFromJSON");function mle(t){switch(t){case ge.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case ge.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case ge.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case ge.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case ge.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case ge.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case ge.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case ge.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case ge.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case ge.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case ge.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case ge.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case ge.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case ge.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case ge.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case ge.PKIX_ED25519:return"PKIX_ED25519";case ge.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case ge.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case ge.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case ge.LMS_SHA256:return"LMS_SHA256";case ge.LMOTS_SHA256:return"LMOTS_SHA256";case ge.ML_DSA_65:return"ML_DSA_65";case ge.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}i(mle,"publicKeyDetailsToJSON");var ks;(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"})(ks||(Ee.SubjectAlternativeNameType=ks={}));function hle(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return ks.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return ks.EMAIL;case 2:case"URI":return ks.URI;case 3:case"OTHER_NAME":return ks.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}i(hle,"subjectAlternativeNameTypeFromJSON");function zle(t){switch(t){case ks.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case ks.EMAIL:return"EMAIL";case ks.URI:return"URI";case ks.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}i(zle,"subjectAlternativeNameTypeToJSON");Ee.HashOutput={fromJSON(t){return{algorithm:W1(t.algorithm)?ble(t.algorithm):0,digest:W1(t.digest)?Buffer.from(yp(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=Mle(t.algorithm)),t.digest.length!==0&&(e.digest=Bp(t.digest)),e}};Ee.MessageSignature={fromJSON(t){return{messageDigest:W1(t.messageDigest)?Ee.HashOutput.fromJSON(t.messageDigest):void 0,signature:W1(t.signature)?Buffer.from(yp(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=Ee.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=Bp(t.signature)),e}};Ee.LogId={fromJSON(t){return{keyId:W1(t.keyId)?Buffer.from(yp(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=Bp(t.keyId)),e}};Ee.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:W1(t.signedTimestamp)?Buffer.from(yp(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=Bp(t.signedTimestamp)),e}};Ee.PublicKey={fromJSON(t){return{rawBytes:W1(t.rawBytes)?Buffer.from(yp(t.rawBytes)):void 0,keyDetails:W1(t.keyDetails)?fle(t.keyDetails):0,validFor:W1(t.validFor)?Ee.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=Bp(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=mle(t.keyDetails)),t.validFor!==void 0&&(e.validFor=Ee.TimeRange.toJSON(t.validFor)),e}};Ee.PublicKeyIdentifier={fromJSON(t){return{hint:W1(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};Ee.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}};Ee.ObjectIdentifierValuePair={fromJSON(t){return{oid:W1(t.oid)?Ee.ObjectIdentifier.fromJSON(t.oid):void 0,value:W1(t.value)?Buffer.from(yp(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=Ee.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=Bp(t.value)),e}};Ee.DistinguishedName={fromJSON(t){return{organization:W1(t.organization)?globalThis.String(t.organization):"",commonName:W1(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};Ee.X509Certificate={fromJSON(t){return{rawBytes:W1(t.rawBytes)?Buffer.from(yp(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=Bp(t.rawBytes)),e}};Ee.SubjectAlternativeName={fromJSON(t){return{type:W1(t.type)?hle(t.type):0,identity:W1(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:W1(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=zle(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};Ee.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>Ee.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>Ee.X509Certificate.toJSON(r))),e}};Ee.TimeRange={fromJSON(t){return{start:W1(t.start)?dle(t.start):void 0,end:W1(t.end)?dle(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 yp(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(yp,"bytesFromBase64");function Bp(t){return globalThis.Buffer.from(t).toString("base64")}i(Bp,"base64FromBytes");function Fi0(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}i(Fi0,"fromTimestamp");function dle(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):Fi0(Si0.Timestamp.fromJSON(t))}i(dle,"fromJsonTimestamp");function W1(t){return t!=null}i(W1,"isSet")});var HQ=m(x1=>{"use strict";Object.defineProperty(x1,"__esModule",{value:!0});x1.TransparencyLogEntry=x1.InclusionPromise=x1.InclusionProof=x1.Checkpoint=x1.KindVersion=void 0;var Ole=pa();x1.KindVersion={fromJSON(t){return{kind:Jt(t.kind)?globalThis.String(t.kind):"",version:Jt(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};x1.Checkpoint={fromJSON(t){return{envelope:Jt(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};x1.InclusionProof={fromJSON(t){return{logIndex:Jt(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:Jt(t.rootHash)?Buffer.from(v4(t.rootHash)):Buffer.alloc(0),treeSize:Jt(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(v4(e))):[],checkpoint:Jt(t.checkpoint)?x1.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=L4(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>L4(r))),t.checkpoint!==void 0&&(e.checkpoint=x1.Checkpoint.toJSON(t.checkpoint)),e}};x1.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:Jt(t.signedEntryTimestamp)?Buffer.from(v4(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=L4(t.signedEntryTimestamp)),e}};x1.TransparencyLogEntry={fromJSON(t){return{logIndex:Jt(t.logIndex)?globalThis.String(t.logIndex):"0",logId:Jt(t.logId)?Ole.LogId.fromJSON(t.logId):void 0,kindVersion:Jt(t.kindVersion)?x1.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:Jt(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:Jt(t.inclusionPromise)?x1.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:Jt(t.inclusionProof)?x1.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:Jt(t.canonicalizedBody)?Buffer.from(v4(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=Ole.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=x1.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=x1.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=x1.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=L4(t.canonicalizedBody)),e}};function v4(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(v4,"bytesFromBase64");function L4(t){return globalThis.Buffer.from(t).toString("base64")}i(L4,"base64FromBytes");function Jt(t){return t!=null}i(Jt,"isSet")});var XQ=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.Bundle=Gn.VerificationMaterial=Gn.TimestampVerificationData=void 0;var gle=x4(),Us=pa(),Ele=HQ();Gn.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>Us.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>Us.RFC3161SignedTimestamp.toJSON(r))),e}};Gn.VerificationMaterial={fromJSON(t){return{content:qc(t.publicKey)?{$case:"publicKey",publicKey:Us.PublicKeyIdentifier.fromJSON(t.publicKey)}:qc(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:Us.X509CertificateChain.fromJSON(t.x509CertificateChain)}:qc(t.certificate)?{$case:"certificate",certificate:Us.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>Ele.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:qc(t.timestampVerificationData)?Gn.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=Us.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=Us.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=Us.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>Ele.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=Gn.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};Gn.Bundle={fromJSON(t){return{mediaType:qc(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:qc(t.verificationMaterial)?Gn.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:qc(t.messageSignature)?{$case:"messageSignature",messageSignature:Us.MessageSignature.fromJSON(t.messageSignature)}:qc(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:gle.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=Gn.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=Us.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=gle.Envelope.toJSON(t.content.dsseEnvelope)),e}};function qc(t){return t!=null}i(qc,"isSet")});var VQ=m(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ClientTrustConfig=Ie.ServiceConfiguration=Ie.Service=Ie.SigningConfig=Ie.TrustedRoot=Ie.CertificateAuthority=Ie.TransparencyLogInstance=Ie.ServiceSelector=void 0;Ie.serviceSelectorFromJSON=Cle;Ie.serviceSelectorToJSON=yle;var qt=pa(),Gs;(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"})(Gs||(Ie.ServiceSelector=Gs={}));function Cle(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return Gs.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return Gs.ALL;case 2:case"ANY":return Gs.ANY;case 3:case"EXACT":return Gs.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}i(Cle,"serviceSelectorFromJSON");function yle(t){switch(t){case Gs.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case Gs.ALL:return"ALL";case Gs.ANY:return"ANY";case Gs.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}i(yle,"serviceSelectorToJSON");Ie.TransparencyLogInstance={fromJSON(t){return{baseUrl:J0(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:J0(t.hashAlgorithm)?(0,qt.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:J0(t.publicKey)?qt.PublicKey.fromJSON(t.publicKey):void 0,logId:J0(t.logId)?qt.LogId.fromJSON(t.logId):void 0,checkpointKeyId:J0(t.checkpointKeyId)?qt.LogId.fromJSON(t.checkpointKeyId):void 0,operator:J0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,qt.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=qt.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=qt.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=qt.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};Ie.CertificateAuthority={fromJSON(t){return{subject:J0(t.subject)?qt.DistinguishedName.fromJSON(t.subject):void 0,uri:J0(t.uri)?globalThis.String(t.uri):"",certChain:J0(t.certChain)?qt.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:J0(t.validFor)?qt.TimeRange.fromJSON(t.validFor):void 0,operator:J0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=qt.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=qt.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=qt.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Ie.TrustedRoot={fromJSON(t){return{mediaType:J0(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>Ie.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>Ie.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>Ie.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>Ie.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>Ie.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>Ie.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>Ie.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>Ie.CertificateAuthority.toJSON(r))),e}};Ie.SigningConfig={fromJSON(t){return{mediaType:J0(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>Ie.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>Ie.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>Ie.Service.fromJSON(e)):[],rekorTlogConfig:J0(t.rekorTlogConfig)?Ie.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>Ie.Service.fromJSON(e)):[],tsaConfig:J0(t.tsaConfig)?Ie.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=>Ie.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>Ie.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>Ie.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=Ie.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>Ie.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=Ie.ServiceConfiguration.toJSON(t.tsaConfig)),e}};Ie.Service={fromJSON(t){return{url:J0(t.url)?globalThis.String(t.url):"",majorApiVersion:J0(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:J0(t.validFor)?qt.TimeRange.fromJSON(t.validFor):void 0,operator:J0(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=qt.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Ie.ServiceConfiguration={fromJSON(t){return{selector:J0(t.selector)?Cle(t.selector):0,count:J0(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=yle(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};Ie.ClientTrustConfig={fromJSON(t){return{mediaType:J0(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:J0(t.trustedRoot)?Ie.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:J0(t.signingConfig)?Ie.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=Ie.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=Ie.SigningConfig.toJSON(t.signingConfig)),e}};function J0(t){return t!=null}i(J0,"isSet")});var Dle=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.Input=Re.Artifact=Re.ArtifactVerificationOptions_ObserverTimestampOptions=Re.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=Re.ArtifactVerificationOptions_TimestampAuthorityOptions=Re.ArtifactVerificationOptions_CtlogOptions=Re.ArtifactVerificationOptions_TlogOptions=Re.ArtifactVerificationOptions=Re.PublicKeyIdentities=Re.CertificateIdentities=Re.CertificateIdentity=void 0;var Ble=XQ(),Dc=pa(),qle=VQ();Re.CertificateIdentity={fromJSON(t){return{issuer:C0(t.issuer)?globalThis.String(t.issuer):"",san:C0(t.san)?Dc.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>Dc.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=Dc.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>Dc.ObjectIdentifierValuePair.toJSON(r))),e}};Re.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>Re.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>Re.CertificateIdentity.toJSON(r))),e}};Re.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>Dc.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>Dc.PublicKey.toJSON(r))),e}};Re.ArtifactVerificationOptions={fromJSON(t){return{signers:C0(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:Re.CertificateIdentities.fromJSON(t.certificateIdentities)}:C0(t.publicKeys)?{$case:"publicKeys",publicKeys:Re.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:C0(t.tlogOptions)?Re.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:C0(t.ctlogOptions)?Re.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:C0(t.tsaOptions)?Re.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:C0(t.integratedTsOptions)?Re.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:C0(t.observerOptions)?Re.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=Re.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=Re.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=Re.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=Re.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=Re.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=Re.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=Re.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};Re.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:C0(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:C0(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:C0(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}};Re.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:C0(t.threshold)?globalThis.Number(t.threshold):0,disable:C0(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}};Re.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:C0(t.threshold)?globalThis.Number(t.threshold):0,disable:C0(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}};Re.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:C0(t.threshold)?globalThis.Number(t.threshold):0,disable:C0(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}};Re.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:C0(t.threshold)?globalThis.Number(t.threshold):0,disable:C0(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}};Re.Artifact={fromJSON(t){return{data:C0(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:C0(t.artifact)?{$case:"artifact",artifact:Buffer.from(Wi0(t.artifact))}:C0(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:Dc.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=xi0(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=Dc.HashOutput.toJSON(t.data.artifactDigest)),e}};Re.Input={fromJSON(t){return{artifactTrustRoot:C0(t.artifactTrustRoot)?qle.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:C0(t.artifactVerificationOptions)?Re.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:C0(t.bundle)?Ble.Bundle.fromJSON(t.bundle):void 0,artifact:C0(t.artifact)?Re.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=qle.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=Re.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=Ble.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=Re.Artifact.toJSON(t.artifact)),e}};function Wi0(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(Wi0,"bytesFromBase64");function xi0(t){return globalThis.Buffer.from(t).toString("base64")}i(xi0,"base64FromBytes");function C0(t){return t!=null}i(C0,"isSet")});var x2=m(Hn=>{"use strict";var Ti0=Hn&&Hn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),W2=Hn&&Hn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ti0(e,t,r)};Object.defineProperty(Hn,"__esModule",{value:!0});W2(x4(),Hn);W2(XQ(),Hn);W2(pa(),Hn);W2(HQ(),Hn);W2(VQ(),Hn);W2(Dle(),Hn)});var Q4=m(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.BUNDLE_V03_MEDIA_TYPE=Or.BUNDLE_V03_LEGACY_MEDIA_TYPE=Or.BUNDLE_V02_MEDIA_TYPE=Or.BUNDLE_V01_MEDIA_TYPE=void 0;Or.isBundleWithCertificateChain=vi0;Or.isBundleWithPublicKey=Li0;Or.isBundleWithMessageSignature=Qi0;Or.isBundleWithDsseEnvelope=_i0;Or.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Or.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Or.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Or.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function vi0(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}i(vi0,"isBundleWithCertificateChain");function Li0(t){return t.verificationMaterial.content.$case==="publicKey"}i(Li0,"isBundleWithPublicKey");function Qi0(t){return t.content.$case==="messageSignature"}i(Qi0,"isBundleWithMessageSignature");function _i0(t){return t.content.$case==="dsseEnvelope"}i(_i0,"isBundleWithDsseEnvelope")});var Rle=m(P4=>{"use strict";Object.defineProperty(P4,"__esModule",{value:!0});P4.toMessageSignatureBundle=ki0;P4.toDSSEBundle=Ui0;var Pi0=x2(),_4=Q4();function ki0(t){return{mediaType:t.certificateChain?_4.BUNDLE_V02_MEDIA_TYPE:_4.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:Pi0.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:Ile(t)}}i(ki0,"toMessageSignatureBundle");function Ui0(t){return{mediaType:t.certificateChain?_4.BUNDLE_V02_MEDIA_TYPE:_4.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:Gi0(t)},verificationMaterial:Ile(t)}}i(Ui0,"toDSSEBundle");function Gi0(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[Hi0(t)]}}i(Gi0,"toEnvelope");function Hi0(t){return{keyid:t.keyHint||"",sig:t.signature}}i(Hi0,"toSignature");function Ile(t){return{content:Xi0(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}i(Ile,"toVerificationMaterial");function Xi0(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||""}}}i(Xi0,"toKeyContent")});var JQ=m(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});k4.ValidationError=void 0;var YQ=class extends Error{static{i(this,"ValidationError")}fields;constructor(e,r){super(e),this.fields=r}};k4.ValidationError=YQ});var jQ=m(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.assertBundle=Vi0;qp.assertBundleV01=Nle;qp.isBundleV01=Yi0;qp.assertBundleV02=Ji0;qp.assertBundleLatest=ji0;var U4=JQ();function Vi0(t){let e=G4(t);if(e.length>0)throw new U4.ValidationError("invalid bundle",e)}i(Vi0,"assertBundle");function Nle(t){let e=[];if(e.push(...G4(t)),e.push(...$i0(t)),e.length>0)throw new U4.ValidationError("invalid v0.1 bundle",e)}i(Nle,"assertBundleV01");function Yi0(t){try{return Nle(t),!0}catch{return!1}}i(Yi0,"isBundleV01");function Ji0(t){let e=[];if(e.push(...G4(t)),e.push(...wle(t)),e.length>0)throw new U4.ValidationError("invalid v0.2 bundle",e)}i(Ji0,"assertBundleV02");function ji0(t){let e=[];if(e.push(...G4(t)),e.push(...wle(t)),e.push(...Ki0(t)),e.length>0)throw new U4.ValidationError("invalid bundle",e)}i(ji0,"assertBundleLatest");function G4(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,n)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${n}].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,n)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].kindVersion`)})}return e}i(G4,"validateBundleBase");function $i0(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionPromise`)}),e}i($i0,"validateInclusionPromise");function wle(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof.checkpoint`)}),e}i(wle,"validateInclusionProof");function Ki0(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}i(Ki0,"validateNoCertificateChain")});var Fle=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.envelopeToJSON=Hs.envelopeFromJSON=Hs.bundleToJSON=Hs.bundleFromJSON=void 0;var H4=x2(),Sle=Q4(),$Q=jQ(),Zi0=i(t=>{let e=H4.Bundle.fromJSON(t);switch(e.mediaType){case Sle.BUNDLE_V01_MEDIA_TYPE:(0,$Q.assertBundleV01)(e);break;case Sle.BUNDLE_V02_MEDIA_TYPE:(0,$Q.assertBundleV02)(e);break;default:(0,$Q.assertBundleLatest)(e);break}return e},"bundleFromJSON");Hs.bundleFromJSON=Zi0;var ea0=i(t=>H4.Bundle.toJSON(t),"bundleToJSON");Hs.bundleToJSON=ea0;var ta0=i(t=>H4.Envelope.fromJSON(t),"envelopeFromJSON");Hs.envelopeFromJSON=ta0;var ra0=i(t=>H4.Envelope.toJSON(t),"envelopeToJSON");Hs.envelopeToJSON=ra0});var KQ=m(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.isBundleV01=Le.assertBundleV02=Le.assertBundleV01=Le.assertBundleLatest=Le.assertBundle=Le.envelopeToJSON=Le.envelopeFromJSON=Le.bundleToJSON=Le.bundleFromJSON=Le.ValidationError=Le.isBundleWithPublicKey=Le.isBundleWithMessageSignature=Le.isBundleWithDsseEnvelope=Le.isBundleWithCertificateChain=Le.BUNDLE_V03_MEDIA_TYPE=Le.BUNDLE_V03_LEGACY_MEDIA_TYPE=Le.BUNDLE_V02_MEDIA_TYPE=Le.BUNDLE_V01_MEDIA_TYPE=Le.toMessageSignatureBundle=Le.toDSSEBundle=void 0;var Wle=Rle();Object.defineProperty(Le,"toDSSEBundle",{enumerable:!0,get:i(function(){return Wle.toDSSEBundle},"get")});Object.defineProperty(Le,"toMessageSignatureBundle",{enumerable:!0,get:i(function(){return Wle.toMessageSignatureBundle},"get")});var Ic=Q4();Object.defineProperty(Le,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Ic.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(Le,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Ic.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(Le,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Ic.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(Le,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Ic.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(Le,"isBundleWithCertificateChain",{enumerable:!0,get:i(function(){return Ic.isBundleWithCertificateChain},"get")});Object.defineProperty(Le,"isBundleWithDsseEnvelope",{enumerable:!0,get:i(function(){return Ic.isBundleWithDsseEnvelope},"get")});Object.defineProperty(Le,"isBundleWithMessageSignature",{enumerable:!0,get:i(function(){return Ic.isBundleWithMessageSignature},"get")});Object.defineProperty(Le,"isBundleWithPublicKey",{enumerable:!0,get:i(function(){return Ic.isBundleWithPublicKey},"get")});var na0=JQ();Object.defineProperty(Le,"ValidationError",{enumerable:!0,get:i(function(){return na0.ValidationError},"get")});var X4=Fle();Object.defineProperty(Le,"bundleFromJSON",{enumerable:!0,get:i(function(){return X4.bundleFromJSON},"get")});Object.defineProperty(Le,"bundleToJSON",{enumerable:!0,get:i(function(){return X4.bundleToJSON},"get")});Object.defineProperty(Le,"envelopeFromJSON",{enumerable:!0,get:i(function(){return X4.envelopeFromJSON},"get")});Object.defineProperty(Le,"envelopeToJSON",{enumerable:!0,get:i(function(){return X4.envelopeToJSON},"get")});var zm=jQ();Object.defineProperty(Le,"assertBundle",{enumerable:!0,get:i(function(){return zm.assertBundle},"get")});Object.defineProperty(Le,"assertBundleLatest",{enumerable:!0,get:i(function(){return zm.assertBundleLatest},"get")});Object.defineProperty(Le,"assertBundleV01",{enumerable:!0,get:i(function(){return zm.assertBundleV01},"get")});Object.defineProperty(Le,"assertBundleV02",{enumerable:!0,get:i(function(){return zm.assertBundleV02},"get")});Object.defineProperty(Le,"isBundleV01",{enumerable:!0,get:i(function(){return zm.isBundleV01},"get")})});var Tle=m(Om=>{"use strict";var xle=Om&&Om.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Om,"__esModule",{value:!0});Om.appDataPath=sa0;var oa0=xle(require("os")),T2=xle(require("path"));function sa0(t){let e=oa0.default.homedir();switch(process.platform){case"darwin":{let r=T2.default.join(e,"Library","Application Support");return T2.default.join(r,t)}case"win32":{let r=process.env.LOCALAPPDATA||T2.default.join(e,"AppData","Local");return T2.default.join(r,t,"Data")}default:{let r=process.env.XDG_DATA_HOME||T2.default.join(e,".local","share");return T2.default.join(r,t)}}}i(sa0,"appDataPath")});var Xs=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.UnsupportedAlgorithmError=gr.CryptoError=gr.LengthOrHashMismatchError=gr.UnsignedMetadataError=gr.RepositoryError=gr.ValueError=void 0;var ZQ=class extends Error{static{i(this,"ValueError")}};gr.ValueError=ZQ;var gm=class extends Error{static{i(this,"RepositoryError")}};gr.RepositoryError=gm;var e8=class extends gm{static{i(this,"UnsignedMetadataError")}};gr.UnsignedMetadataError=e8;var t8=class extends gm{static{i(this,"LengthOrHashMismatchError")}};gr.LengthOrHashMismatchError=t8;var V4=class extends Error{static{i(this,"CryptoError")}};gr.CryptoError=V4;var r8=class extends V4{static{i(this,"UnsupportedAlgorithmError")}};gr.UnsupportedAlgorithmError=r8});var Lle=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.isDefined=ia0;Rc.isObject=vle;Rc.isStringArray=aa0;Rc.isObjectArray=ca0;Rc.isStringRecord=ua0;Rc.isObjectRecord=pa0;function ia0(t){return t!==void 0}i(ia0,"isDefined");function vle(t){return typeof t=="object"&&t!==null}i(vle,"isObject");function aa0(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}i(aa0,"isStringArray");function ca0(t){return Array.isArray(t)&&t.every(vle)}i(ca0,"isObjectArray");function ua0(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="string")}i(ua0,"isStringRecord");function pa0(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="object"&&e!==null)}i(pa0,"isObjectRecord")});var o8=m((Tn1,_le)=>{function n8(t){let e=[];if(typeof t=="string")e.push(Qle(t));else if(typeof t=="boolean")e.push(JSON.stringify(t));else if(Number.isInteger(t))e.push(JSON.stringify(t));else if(t===null)e.push(JSON.stringify(t));else if(Array.isArray(t)){e.push("[");let r=!0;t.forEach(n=>{r||e.push(","),r=!1,e.push(n8(n))}),e.push("]")}else if(typeof t=="object"){e.push("{");let r=!0;Object.keys(t).sort().forEach(n=>{r||e.push(","),r=!1,e.push(Qle(n)),e.push(":"),e.push(n8(t[n]))}),e.push("}")}else throw new TypeError("cannot encode "+t.toString());return e.join("")}i(n8,"canonicalize");function Qle(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}i(Qle,"canonicalizeString");_le.exports={canonicalize:n8}});var Ple=m(v2=>{"use strict";var Aa0=v2&&v2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(v2,"__esModule",{value:!0});v2.verifySignature=void 0;var la0=o8(),da0=Aa0(require("crypto")),ba0=i((t,e,r)=>{let n=Buffer.from((0,la0.canonicalize)(t));return da0.default.verify(void 0,n,e,Buffer.from(r,"hex"))},"verifySignature");v2.verifySignature=ba0});var Io=m(Xn=>{"use strict";var Ma0=Xn&&Xn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fa0=Xn&&Xn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kle=Xn&&Xn.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o=0?u:p}n.length&&a!==void 0&&(c=[s,a])}return c},"range");Ip.range=va0});var c2e=m(_2=>{"use strict";Object.defineProperty(_2,"__esModule",{value:!0});_2.EXPANSION_MAX=void 0;_2.expand=ja0;var r2e=t2e(),n2e="\0SLASH"+Math.random()+"\0",o2e="\0OPEN"+Math.random()+"\0",M8="\0CLOSE"+Math.random()+"\0",s2e="\0COMMA"+Math.random()+"\0",i2e="\0PERIOD"+Math.random()+"\0",La0=new RegExp(n2e,"g"),Qa0=new RegExp(o2e,"g"),_a0=new RegExp(M8,"g"),Pa0=new RegExp(s2e,"g"),ka0=new RegExp(i2e,"g"),Ua0=/\\\\/g,Ga0=/\\{/g,Ha0=/\\}/g,Xa0=/\\,/g,Va0=/\\\./g;_2.EXPANSION_MAX=1e5;function b8(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(b8,"numeric");function Ya0(t){return t.replace(Ua0,n2e).replace(Ga0,o2e).replace(Ha0,M8).replace(Xa0,s2e).replace(Va0,i2e)}i(Ya0,"escapeBraces");function Ja0(t){return t.replace(La0,"\\").replace(Qa0,"{").replace(_a0,"}").replace(Pa0,",").replace(ka0,".")}i(Ja0,"unescapeBraces");function a2e(t){if(!t)return[""];let e=[],r=(0,r2e.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:o,post:s}=r,a=n.split(",");a[a.length-1]+="{"+o+"}";let c=a2e(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(a2e,"parseCommaParts");function ja0(t,e={}){if(!t)return[];let{max:r=_2.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Dm(Ya0(t),r,!0).map(Ja0)}i(ja0,"expand");function $a0(t){return"{"+t+"}"}i($a0,"embrace");function Ka0(t){return/^-?0\d/.test(t)}i(Ka0,"isPadded");function Za0(t,e){return t<=e}i(Za0,"lte");function ec0(t,e){return t>=e}i(ec0,"gte");function Dm(t,e,r){let n=[];for(;;){let o=(0,r2e.balanced)("{","}",t);if(!o)return[t];let s=o.pre;if(/\$$/.test(o.pre)){let f=o.post.length?Dm(o.post,e,!1):[""];for(let z=0;z{"use strict";Object.defineProperty(eB,"__esModule",{value:!0});eB.unescape=void 0;var ic0=i((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");eB.unescape=ic0});var h8=m(sB=>{"use strict";var Er;Object.defineProperty(sB,"__esModule",{value:!0});sB.AST=void 0;var ac0=A2e(),rB=tB(),cc0=new Set(["!","?","+","*","@"]),f8=i(t=>cc0.has(t),"isExtglobType"),l2e=i(t=>f8(t.type),"isExtglobAST"),uc0=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),pc0=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Ac0=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),d2e=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),lc0="(?!(?:^|/)\\.\\.?(?:$|/))",nB="(?!\\.)",dc0=new Set(["[","."]),bc0=new Set(["..","."]),Mc0=new Set("().*{}+?[]^$\\!"),fc0=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),m8="[^/]",b2e=m8+"*?",M2e=m8+"+?",mc0=0,oB=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#o;#s;#a;#i=!1;#u;#c;#p=!1;id=++mc0;get depth(){return(this.#o?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#o?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,r,n={}){this.type=e,e&&(this.#t=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#u=this.#e===this?n:this.#e.#u,this.#a=this.#e===this?[]:this.#e.#a,e==="!"&&!this.#e.#i&&this.#a.push(this),this.#s=this.#o?this.#o.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#c=this.#r.map(e=>String(e)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#i)return this;this.toString(),this.#i=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let r=e,n=r.#o;for(;n;){for(let o=r.#s+1;!n.type&&o