@activepieces/piece-google-bigquery 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var yN=Object.create;var Ja=Object.defineProperty;var _N=Object.getOwnPropertyDescriptor;var bN=Object.getOwnPropertyNames;var vN=Object.getPrototypeOf,EN=Object.prototype.hasOwnProperty;var a=(e,t)=>Ja(e,"name",{value:t,configurable:!0});var bt=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var B=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Jt=(e,t)=>{for(var n in t)Ja(e,n,{get:t[n],enumerable:!0})},sS=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bN(t))!EN.call(e,r)&&r!==n&&Ja(e,r,{get:()=>t[r],enumerable:!(o=_N(t,r))||o.enumerable});return e};var Rt=(e,t,n)=>(n=e!=null?yN(vN(e)):{},sS(t||!e||!e.__esModule?Ja(n,"default",{value:e,enumerable:!0}):n,e)),PN=e=>sS(Ja({},"__esModule",{value:!0}),e);var iA=B((oA,Rp)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},o=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function d(h,_){if(h.indexOf("::")!==h.lastIndexOf("::"))return null;let P=0,S=-1,T=(h.match(u.zoneIndex)||[])[0],R,V;for(T&&(T=T.substring(1),h=h.replace(/%.+$/,""));(S=h.indexOf(":",S+1))>=0;)P++;if(h.substr(0,2)==="::"&&P--,h.substr(-2,2)==="::"&&P--,P>_)return null;for(V=_-P,R=":";V--;)R+="0:";return h=h.replace("::",R),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let W=h.split(":"),H=[];for(let G=0;G<W.length;G++)H.push(parseInt(W[G],16));return H})(),{parts:_,zoneId:T}}a(d,"expandIPv6");function p(h,_,P,S){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let T=0,R;for(;S>0;){if(R=P-S,R<0&&(R=0),h[T]>>R!==_[T]>>R)return!1;S-=P,T+=1}return!0}a(p,"matchCIDR");function f(h){if(r.test(h))return parseInt(h,16);if(h[0]==="0"&&!isNaN(parseInt(h[1],10))){if(o.test(h))return parseInt(h,8);throw new Error(`ipaddr: cannot parse ${h} as octal`)}return parseInt(h,10)}a(f,"parseIntAuto");function g(h,_){for(;h.length<_;)h=`0${h}`;return h}a(g,"padPart");let y={};y.IPv4=(function(){function h(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let P,S;for(P=0;P<_.length;P++)if(S=_[P],!(0<=S&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return a(h,"IPv4"),h.prototype.SpecialRanges={unspecified:[[new h([0,0,0,0]),8]],broadcast:[[new h([255,255,255,255]),32]],multicast:[[new h([224,0,0,0]),4]],linkLocal:[[new h([169,254,0,0]),16]],loopback:[[new h([127,0,0,0]),8]],carrierGradeNat:[[new h([100,64,0,0]),10]],private:[[new h([10,0,0,0]),8],[new h([172,16,0,0]),12],[new h([192,168,0,0]),16]],reserved:[[new h([192,0,0,0]),24],[new h([192,0,2,0]),24],[new h([192,88,99,0]),24],[new h([198,18,0,0]),15],[new h([198,51,100,0]),24],[new h([203,0,113,0]),24],[new h([240,0,0,0]),4]],as112:[[new h([192,175,48,0]),24],[new h([192,31,196,0]),24]],amt:[[new h([192,52,193,0]),24]]},h.prototype.kind=function(){return"ipv4"},h.prototype.match=function(_,P){let S;if(P===void 0&&(S=_,_=S[0],P=S[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},T,R,V;for(T=3;T>=0;T-=1)if(R=this.octets[T],R in S){if(V=S[R],P&&V!==0)return null;V!==8&&(P=!0),_+=V}else return null;return 32-_},h.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){return this.octets.slice(0)},h.prototype.toIPv4MappedAddress=function(){return y.IPv6.parse(`::ffff:${this.toString()}`)},h.prototype.toNormalizedString=function(){return this.toString()},h.prototype.toString=function(){return this.octets.join(".")},h})(),y.IPv4.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],R=0;for(;R<4;)T.push(parseInt(P[R],10)|parseInt(S[R],10)^255),R++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.isIPv4=function(h){return this.parser(h)!==null},y.IPv4.isValid=function(h){try{return new this(this.parser(h)),!0}catch{return!1}},y.IPv4.isValidCIDR=function(h){try{return this.parseCIDR(h),!0}catch{return!1}},y.IPv4.isValidFourPartDecimal=function(h){return!!(y.IPv4.isValid(h)&&h.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},y.IPv4.isValidCIDRFourPartDecimal=function(h){let _=h.match(/^(.+)\/(\d+)$/);return!y.IPv4.isValidCIDR(h)||!_?!1:y.IPv4.isValidFourPartDecimal(_[1])},y.IPv4.networkAddressFromCIDR=function(h){let _,P,S,T,R;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),R=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],P=0;P<4;)T.push(parseInt(S[P],10)&parseInt(R[P],10)),P++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.parse=function(h){let _=this.parser(h);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},y.IPv4.parseCIDR=function(h){let _;if(_=h.match(/^(.+)\/(\d+)$/)){let P=parseInt(_[2]);if(P>=0&&P<=32){let S=[this.parse(_[1]),P];return Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},y.IPv4.parser=function(h){let _,P,S;if(_=h.match(n.fourOctet))return(function(){let T=_.slice(1,6),R=[];for(let V=0;V<T.length;V++)P=T[V],R.push(f(P));return R})();if(_=h.match(n.longValue)){if(S=f(_[1]),S>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return(function(){let T=[],R;for(R=0;R<=24;R+=8)T.push(S>>R&255);return T})().reverse()}else return(_=h.match(n.twoOctet))?(function(){let T=_.slice(1,4),R=[];if(S=f(T[1]),S>16777215||S<0)throw new Error("ipaddr: address outside defined range");return R.push(f(T[0])),R.push(S>>16&255),R.push(S>>8&255),R.push(S&255),R})():(_=h.match(n.threeOctet))?(function(){let T=_.slice(1,5),R=[];if(S=f(T[2]),S>65535||S<0)throw new Error("ipaddr: address outside defined range");return R.push(f(T[0])),R.push(f(T[1])),R.push(S>>8&255),R.push(S&255),R})():null},y.IPv4.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],P=0,S=Math.floor(h/8);for(;P<S;)_[P]=255,P++;return S<4&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},y.IPv6=(function(){function h(_,P){let S,T;if(_.length===16)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(_[S]<<8|_[S+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(S=0;S<this.parts.length;S++)if(T=this.parts[S],!(0<=T&&T<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");P&&(this.zoneId=P)}return a(h,"IPv6"),h.prototype.SpecialRanges={unspecified:[new h([0,0,0,0,0,0,0,0]),128],linkLocal:[new h([65152,0,0,0,0,0,0,0]),10],multicast:[new h([65280,0,0,0,0,0,0,0]),8],loopback:[new h([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new h([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new h([0,0,0,0,0,65535,0,0]),96],discard:[new h([256,0,0,0,0,0,0,0]),64],rfc6145:[new h([0,0,0,0,65535,0,0,0]),96],rfc6052:[new h([100,65435,0,0,0,0,0,0]),96],"6to4":[new h([8194,0,0,0,0,0,0,0]),16],teredo:[new h([8193,0,0,0,0,0,0,0]),32],benchmarking:[new h([8193,2,0,0,0,0,0,0]),48],amt:[new h([8193,3,0,0,0,0,0,0]),32],as112v6:[[new h([8193,4,274,0,0,0,0,0]),48],[new h([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new h([8193,16,0,0,0,0,0,0]),28],orchid2:[new h([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new h([8193,48,0,0,0,0,0,0]),28],reserved:[[new h([8193,0,0,0,0,0,0,0]),23],[new h([8193,3512,0,0,0,0,0,0]),32]]},h.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},h.prototype.kind=function(){return"ipv6"},h.prototype.match=function(_,P){let S;if(P===void 0&&(S=_,_=S[0],P=S[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},T,R;for(let V=7;V>=0;V-=1)if(T=this.parts[V],T in S){if(R=S[T],P&&R!==0)return null;R!==16&&(P=!0),_+=R}else return null;return 128-_},h.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,P=[],S=this.parts;for(let T=0;T<S.length;T++)_=S[T],P.push(_>>8),P.push(_&255);return P},h.prototype.toFixedLengthString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(g(this.parts[T].toString(16),4));return S}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),P=_[0],S=_[1];return new y.IPv4([P>>8,P&255,S>>8,S&255])},h.prototype.toNormalizedString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(this.parts[T].toString(16));return S}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,P=this.toNormalizedString(),S=0,T=-1,R;for(;R=_.exec(P);)R[0].length>T&&(S=R.index,T=R[0].length);return T<0?P:`${P.substring(0,S)}::${P.substring(S+T)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),y.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],R=0;for(;R<16;)T.push(parseInt(P[R],10)|parseInt(S[R],10)^255),R++;return new this(T)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},y.IPv6.isIPv6=function(h){return this.parser(h)!==null},y.IPv6.isValid=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{let _=this.parser(h);return new this(_.parts,_.zoneId),!0}catch{return!1}},y.IPv6.isValidCIDR=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{return this.parseCIDR(h),!0}catch{return!1}},y.IPv6.networkAddressFromCIDR=function(h){let _,P,S,T,R;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),R=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],P=0;P<16;)T.push(parseInt(S[P],10)&parseInt(R[P],10)),P++;return new this(T)}catch(V){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${V})`)}},y.IPv6.parse=function(h){let _=this.parser(h);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},y.IPv6.parseCIDR=function(h){let _,P,S;if((P=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(P[2]),_>=0&&_<=128))return S=[this.parse(P[1]),_],Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},y.IPv6.parser=function(h){let _,P,S,T,R,V;if(S=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${S[1]}`);if(u.native.test(h))return d(h,8);if((S=h.match(u.transitional))&&(V=S[6]||"",_=S[1],S[1].endsWith("::")||(_=_.slice(0,-1)),_=d(_+V,6),_.parts)){for(R=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],P=0;P<R.length;P++)if(T=R[P],!(0<=T&&T<=255))return null;return _.parts.push(R[0]<<8|R[1]),_.parts.push(R[2]<<8|R[3]),{parts:_.parts,zoneId:_.zoneId}}return null},y.IPv6.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,S=Math.floor(h/8);for(;P<S;)_[P]=255,P++;return S<16&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},y.fromByteArray=function(h){let _=h.length;if(_===4)return new y.IPv4(h);if(_===16)return new y.IPv6(h);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},y.isValid=function(h){return y.IPv6.isValid(h)||y.IPv4.isValid(h)},y.isValidCIDR=function(h){return y.IPv6.isValidCIDR(h)||y.IPv4.isValidCIDR(h)},y.parse=function(h){if(y.IPv6.isValid(h))return y.IPv6.parse(h);if(y.IPv4.isValid(h))return y.IPv4.parse(h);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},y.parseCIDR=function(h){try{return y.IPv6.parseCIDR(h)}catch{try{return y.IPv4.parseCIDR(h)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},y.process=function(h){let _=this.parse(h);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},y.subnetMatch=function(h,_,P){let S,T,R,V;P==null&&(P="unicast");for(T in _)if(Object.prototype.hasOwnProperty.call(_,T)){for(R=_[T],R[0]&&!(R[0]instanceof Array)&&(R=[R]),S=0;S<R.length;S++)if(V=R[S],h.kind()===V[0].kind()&&h.match.apply(h,V))return T}return P},typeof Rp<"u"&&Rp.exports?Rp.exports=y:e.ipaddr=y})(oA)});var dw=B((w8,lw)=>{var uw=require("stream").Stream,gM=require("util");lw.exports=Hr;function Hr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Hr,"DelayedStream");gM.inherits(Hr,uw);Hr.create=function(e,t){var n=new this;t=t||{};for(var o in t)n[o]=t[o];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n};Object.defineProperty(Hr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Hr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Hr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Hr.prototype.pause=function(){this.source.pause()};Hr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Hr.prototype.pipe=function(){var e=uw.prototype.pipe.apply(this,arguments);return this.resume(),e};Hr.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Hr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var hw=B((R8,mw)=>{var yM=require("util"),fw=require("stream").Stream,pw=dw();mw.exports=ut;function ut(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}a(ut,"CombinedStream");yM.inherits(ut,fw);ut.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};ut.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};ut.prototype.append=function(e){var t=ut.isStreamLike(e);if(t){if(!(e instanceof pw)){var n=pw.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};ut.prototype.pipe=function(e,t){return fw.prototype.pipe.call(this,e,t),this.resume(),e};ut.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};ut.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(n){var o=ut.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};ut.prototype._pipeNext=function(e){this._currentStream=e;var t=ut.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var n=e;this.write(n),this._getNext()};ut.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};ut.prototype.write=function(e){this.emit("data",e)};ut.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ut.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};ut.prototype.end=function(){this._reset(),this.emit("end")};ut.prototype.destroy=function(){this._reset(),this.emit("close")};ut.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ut.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};ut.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};ut.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var yw=B((O8,gw)=>{"use strict";gw.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var vw=B(er=>{"use strict";var Dp=yw(),_M=require("path").extname,_w=/^\s*([^;\s]*)(?:;|\s|$)/,bM=/^text\//i;er.charset=bw;er.charsets={lookup:bw};er.contentType=vM;er.extension=EM;er.extensions=Object.create(null);er.lookup=PM;er.types=Object.create(null);SM(er.extensions,er.types);function bw(e){if(!e||typeof e!="string")return!1;var t=_w.exec(e),n=t&&Dp[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&bM.test(t[1])?"UTF-8":!1}a(bw,"charset");function vM(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?er.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=er.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}a(vM,"contentType");function EM(e){if(!e||typeof e!="string")return!1;var t=_w.exec(e),n=t&&er.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}a(EM,"extension");function PM(e){if(!e||typeof e!="string")return!1;var t=_M("x."+e).toLowerCase().substr(1);return t&&er.types[t]||!1}a(PM,"lookup");function SM(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Dp).forEach(a(function(r){var i=Dp[r],s=i.extensions;if(!(!s||!s.length)){e[r]=s;for(var u=0;u<s.length;u++){var d=s[u];if(t[d]){var p=n.indexOf(Dp[t[d]].source),f=n.indexOf(i.source);if(t[d]!=="application/octet-stream"&&(p>f||p===f&&t[d].substr(0,12)==="application/"))continue}t[d]=r}}},"forEachMimeType"))}a(SM,"populateMaps")});var Pw=B((N8,Ew)=>{Ew.exports=TM;function TM(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}a(TM,"defer")});var yb=B((D8,Tw)=>{var Sw=Pw();Tw.exports=xM;function xM(e){var t=!1;return Sw(function(){t=!0}),a(function(o,r){t?e(o,r):Sw(a(function(){e(o,r)},"nextTick_callback"))},"async_callback")}a(xM,"async")});var _b=B((j8,xw)=>{xw.exports=AM;function AM(e){Object.keys(e.jobs).forEach(wM.bind(e)),e.jobs={}}a(AM,"abort");function wM(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}a(wM,"clean")});var bb=B((L8,ww)=>{var Aw=yb(),IM=_b();ww.exports=RM;function RM(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=CM(t,r,e[r],function(i,s){r in n.jobs&&(delete n.jobs[r],i?IM(n):n.results[r]=s,o(i,n.results))})}a(RM,"iterate");function CM(e,t,n,o){var r;return e.length==2?r=e(n,Aw(o)):r=e(n,t,Aw(o)),r}a(CM,"runJob")});var vb=B((B8,Iw)=>{Iw.exports=OM;function OM(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&o.keyedList.sort(n?t:function(r,i){return t(e[r],e[i])}),o}a(OM,"state")});var Eb=B((V8,Rw)=>{var kM=_b(),$M=yb();Rw.exports=NM;function NM(e){Object.keys(this.jobs).length&&(this.index=this.size,kM(this),$M(e)(null,this.results))}a(NM,"terminator")});var Ow=B((Z8,Cw)=>{var zM=bb(),DM=vb(),UM=Eb();Cw.exports=jM;function jM(e,t,n){for(var o=DM(e);o.index<(o.keyedList||e).length;)zM(e,t,o,function(r,i){if(r){n(r,i);return}if(Object.keys(o.jobs).length===0){n(null,o.results);return}}),o.index++;return UM.bind(o,n)}a(jM,"parallel")});var Pb=B((W8,Up)=>{var kw=bb(),MM=vb(),LM=Eb();Up.exports=FM;Up.exports.ascending=$w;Up.exports.descending=BM;function FM(e,t,n,o){var r=MM(e,n);return kw(e,t,r,a(function i(s,u){if(s){o(s,u);return}if(r.index++,r.index<(r.keyedList||e).length){kw(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),LM.bind(r,o)}a(FM,"serialOrdered");function $w(e,t){return e<t?-1:e>t?1:0}a($w,"ascending");function BM(e,t){return-1*$w(e,t)}a(BM,"descending")});var zw=B((K8,Nw)=>{var qM=Pb();Nw.exports=VM;function VM(e,t,n){return qM(e,t,null,n)}a(VM,"serial")});var Uw=B((Q8,Dw)=>{Dw.exports={parallel:Ow(),serial:zw(),serialOrdered:Pb()}});var Sb=B((Y8,jw)=>{"use strict";jw.exports=Object});var Lw=B((e9,Mw)=>{"use strict";Mw.exports=Error});var Bw=B((t9,Fw)=>{"use strict";Fw.exports=EvalError});var Vw=B((r9,qw)=>{"use strict";qw.exports=RangeError});var Zw=B((n9,Hw)=>{"use strict";Hw.exports=ReferenceError});var Ww=B((o9,Gw)=>{"use strict";Gw.exports=SyntaxError});var jp=B((i9,Jw)=>{"use strict";Jw.exports=TypeError});var Xw=B((a9,Kw)=>{"use strict";Kw.exports=URIError});var Yw=B((s9,Qw)=>{"use strict";Qw.exports=Math.abs});var tI=B((c9,eI)=>{"use strict";eI.exports=Math.floor});var nI=B((u9,rI)=>{"use strict";rI.exports=Math.max});var iI=B((l9,oI)=>{"use strict";oI.exports=Math.min});var sI=B((d9,aI)=>{"use strict";aI.exports=Math.pow});var uI=B((p9,cI)=>{"use strict";cI.exports=Math.round});var dI=B((f9,lI)=>{"use strict";lI.exports=Number.isNaN||a(function(t){return t!==t},"isNaN")});var fI=B((h9,pI)=>{"use strict";var HM=dI();pI.exports=a(function(t){return HM(t)||t===0?t:t<0?-1:1},"sign")});var hI=B((y9,mI)=>{"use strict";mI.exports=Object.getOwnPropertyDescriptor});var Tb=B((_9,gI)=>{"use strict";var Mp=hI();if(Mp)try{Mp([],"length")}catch{Mp=null}gI.exports=Mp});var _I=B((b9,yI)=>{"use strict";var Lp=Object.defineProperty||!1;if(Lp)try{Lp({},"a",{value:1})}catch{Lp=!1}yI.exports=Lp});var xb=B((v9,bI)=>{"use strict";bI.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;t[n]=r;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,n);if(u.value!==r||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var PI=B((P9,EI)=>{"use strict";var vI=typeof Symbol<"u"&&Symbol,ZM=xb();EI.exports=a(function(){return typeof vI!="function"||typeof Symbol!="function"||typeof vI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ZM()},"hasNativeSymbols")});var Ab=B((T9,SI)=>{"use strict";SI.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var wb=B((x9,TI)=>{"use strict";var GM=Sb();TI.exports=GM.getPrototypeOf||null});var wI=B((A9,AI)=>{"use strict";var WM="Function.prototype.bind called on incompatible ",JM=Object.prototype.toString,KM=Math.max,XM="[object Function]",xI=a(function(t,n){for(var o=[],r=0;r<t.length;r+=1)o[r]=t[r];for(var i=0;i<n.length;i+=1)o[i+t.length]=n[i];return o},"concatty"),QM=a(function(t,n){for(var o=[],r=n||0,i=0;r<t.length;r+=1,i+=1)o[i]=t[r];return o},"slicy"),YM=a(function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n},"joiny");AI.exports=a(function(t){var n=this;if(typeof n!="function"||JM.apply(n)!==XM)throw new TypeError(WM+n);for(var o=QM(arguments,1),r,i=a(function(){if(this instanceof r){var f=n.apply(this,xI(o,arguments));return Object(f)===f?f:this}return n.apply(t,xI(o,arguments))},"binder"),s=KM(0,n.length-o.length),u=[],d=0;d<s;d++)u[d]="$"+d;if(r=Function("binder","return function ("+YM(u,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var p=a(function(){},"Empty");p.prototype=n.prototype,r.prototype=new p,p.prototype=null}return r},"bind")});var sa=B((I9,II)=>{"use strict";var eL=wI();II.exports=Function.prototype.bind||eL});var Fp=B((R9,RI)=>{"use strict";RI.exports=Function.prototype.call});var Ib=B((C9,CI)=>{"use strict";CI.exports=Function.prototype.apply});var kI=B((O9,OI)=>{"use strict";OI.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var NI=B((k9,$I)=>{"use strict";var tL=sa(),rL=Ib(),nL=Fp(),oL=kI();$I.exports=oL||tL.call(nL,rL)});var DI=B(($9,zI)=>{"use strict";var iL=sa(),aL=jp(),sL=Fp(),cL=NI();zI.exports=a(function(t){if(t.length<1||typeof t[0]!="function")throw new aL("a function is required");return cL(iL,sL,t)},"callBindBasic")});var BI=B((z9,FI)=>{"use strict";var uL=DI(),UI=Tb(),MI;try{MI=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Rb=!!MI&&UI&&UI(Object.prototype,"__proto__"),LI=Object,jI=LI.getPrototypeOf;FI.exports=Rb&&typeof Rb.get=="function"?uL([Rb.get]):typeof jI=="function"?a(function(t){return jI(t==null?t:LI(t))},"getDunder"):!1});var GI=B((U9,ZI)=>{"use strict";var qI=Ab(),VI=wb(),HI=BI();ZI.exports=qI?a(function(t){return qI(t)},"getProto"):VI?a(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return VI(t)},"getProto"):HI?a(function(t){return HI(t)},"getProto"):null});var Cb=B((M9,WI)=>{"use strict";var lL=Function.prototype.call,dL=Object.prototype.hasOwnProperty,pL=sa();WI.exports=pL.call(lL,dL)});var tR=B((L9,eR)=>{"use strict";var Re,fL=Sb(),mL=Lw(),hL=Bw(),gL=Vw(),yL=Zw(),da=Ww(),la=jp(),_L=Xw(),bL=Yw(),vL=tI(),EL=nI(),PL=iI(),SL=sI(),TL=uI(),xL=fI(),QI=Function,Ob=a(function(e){try{return QI('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Kc=Tb(),AL=_I(),kb=a(function(){throw new la},"throwTypeError"),wL=Kc?(function(){try{return arguments.callee,kb}catch{try{return Kc(arguments,"callee").get}catch{return kb}}})():kb,ca=PI()(),St=GI(),IL=wb(),RL=Ab(),YI=Ib(),Xc=Fp(),ua={},CL=typeof Uint8Array>"u"||!St?Re:St(Uint8Array),Qo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Re:ArrayBuffer,"%ArrayIteratorPrototype%":ca&&St?St([][Symbol.iterator]()):Re,"%AsyncFromSyncIteratorPrototype%":Re,"%AsyncFunction%":ua,"%AsyncGenerator%":ua,"%AsyncGeneratorFunction%":ua,"%AsyncIteratorPrototype%":ua,"%Atomics%":typeof Atomics>"u"?Re:Atomics,"%BigInt%":typeof BigInt>"u"?Re:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mL,"%eval%":eval,"%EvalError%":hL,"%Float16Array%":typeof Float16Array>"u"?Re:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Re:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Re:FinalizationRegistry,"%Function%":QI,"%GeneratorFunction%":ua,"%Int8Array%":typeof Int8Array>"u"?Re:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Re:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ca&&St?St(St([][Symbol.iterator]())):Re,"%JSON%":typeof JSON=="object"?JSON:Re,"%Map%":typeof Map>"u"?Re:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ca||!St?Re:St(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fL,"%Object.getOwnPropertyDescriptor%":Kc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Re:Promise,"%Proxy%":typeof Proxy>"u"?Re:Proxy,"%RangeError%":gL,"%ReferenceError%":yL,"%Reflect%":typeof Reflect>"u"?Re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Re:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ca||!St?Re:St(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ca&&St?St(""[Symbol.iterator]()):Re,"%Symbol%":ca?Symbol:Re,"%SyntaxError%":da,"%ThrowTypeError%":wL,"%TypedArray%":CL,"%TypeError%":la,"%Uint8Array%":typeof Uint8Array>"u"?Re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Re:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Re:Uint32Array,"%URIError%":_L,"%WeakMap%":typeof WeakMap>"u"?Re:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Re:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Re:WeakSet,"%Function.prototype.call%":Xc,"%Function.prototype.apply%":YI,"%Object.defineProperty%":AL,"%Object.getPrototypeOf%":IL,"%Math.abs%":bL,"%Math.floor%":vL,"%Math.max%":EL,"%Math.min%":PL,"%Math.pow%":SL,"%Math.round%":TL,"%Math.sign%":xL,"%Reflect.getPrototypeOf%":RL};if(St)try{null.error}catch(e){JI=St(St(e)),Qo["%Error.prototype%"]=JI}var JI,OL=a(function e(t){var n;if(t==="%AsyncFunction%")n=Ob("async function () {}");else if(t==="%GeneratorFunction%")n=Ob("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Ob("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&St&&(n=St(r.prototype))}return Qo[t]=n,n},"doEval"),KI={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qc=sa(),Bp=Cb(),kL=Qc.call(Xc,Array.prototype.concat),$L=Qc.call(YI,Array.prototype.splice),XI=Qc.call(Xc,String.prototype.replace),qp=Qc.call(Xc,String.prototype.slice),NL=Qc.call(Xc,RegExp.prototype.exec),zL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,DL=/\\(\\)?/g,UL=a(function(t){var n=qp(t,0,1),o=qp(t,-1);if(n==="%"&&o!=="%")throw new da("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new da("invalid intrinsic syntax, expected opening `%`");var r=[];return XI(t,zL,function(i,s,u,d){r[r.length]=u?XI(d,DL,"$1"):s||i}),r},"stringToPath"),jL=a(function(t,n){var o=t,r;if(Bp(KI,o)&&(r=KI[o],o="%"+r[0]+"%"),Bp(Qo,o)){var i=Qo[o];if(i===ua&&(i=OL(o)),typeof i>"u"&&!n)throw new la("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new da("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");eR.exports=a(function(t,n){if(typeof t!="string"||t.length===0)throw new la("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new la('"allowMissing" argument must be a boolean');if(NL(/^%?[^%]*%?$/,t)===null)throw new da("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=UL(t),r=o.length>0?o[0]:"",i=jL("%"+r+"%",n),s=i.name,u=i.value,d=!1,p=i.alias;p&&(r=p[0],$L(o,kL([0,1],p)));for(var f=1,g=!0;f<o.length;f+=1){var y=o[f],h=qp(y,0,1),_=qp(y,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new da("property names with quotes must have matching quotes");if((y==="constructor"||!g)&&(d=!0),r+="."+y,s="%"+r+"%",Bp(Qo,s))u=Qo[s];else if(u!=null){if(!(y in u)){if(!n)throw new la("base intrinsic for "+t+" exists, but the property is not available.");return}if(Kc&&f+1>=o.length){var P=Kc(u,y);g=!!P,g&&"get"in P&&!("originalValue"in P.get)?u=P.get:u=u[y]}else g=Bp(u,y),u=u[y];g&&!d&&(Qo[s]=u)}}return u},"GetIntrinsic")});var nR=B((B9,rR)=>{"use strict";var ML=xb();rR.exports=a(function(){return ML()&&!!Symbol.toStringTag},"hasToStringTagShams")});var aR=B((V9,iR)=>{"use strict";var LL=tR(),oR=LL("%Object.defineProperty%",!0),FL=nR()(),BL=Cb(),qL=jp(),Vp=FL?Symbol.toStringTag:null;iR.exports=a(function(t,n){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new qL("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Vp&&(o||!BL(t,Vp))&&(oR?oR(t,Vp,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Vp]=n)},"setToStringTag")});var cR=B((Z9,sR)=>{"use strict";var VL=Function.prototype.call,HL=Object.prototype.hasOwnProperty,ZL=sa();sR.exports=ZL.call(VL,HL)});var lR=B((G9,uR)=>{"use strict";uR.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var fR=B((W9,pR)=>{"use strict";var Db=hw(),GL=require("util"),$b=require("path"),WL=require("http"),JL=require("https"),KL=require("url").parse,XL=require("fs"),QL=require("stream").Stream,YL=require("crypto"),Nb=vw(),e1=Uw(),t1=aR(),po=cR(),zb=lR();function dR(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(dR,"escapeHeaderParam");function Ue(e){if(!(this instanceof Ue))return new Ue(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Db.call(this),e=e||{};for(var t in e)this[t]=e[t]}a(Ue,"FormData");GL.inherits(Ue,Db);Ue.LINE_BREAK=`\r
1
+ "use strict";var yN=Object.create;var Ja=Object.defineProperty;var _N=Object.getOwnPropertyDescriptor;var bN=Object.getOwnPropertyNames;var vN=Object.getPrototypeOf,EN=Object.prototype.hasOwnProperty;var a=(e,t)=>Ja(e,"name",{value:t,configurable:!0});var bt=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var B=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Jt=(e,t)=>{for(var n in t)Ja(e,n,{get:t[n],enumerable:!0})},sS=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bN(t))!EN.call(e,r)&&r!==n&&Ja(e,r,{get:()=>t[r],enumerable:!(o=_N(t,r))||o.enumerable});return e};var Rt=(e,t,n)=>(n=e!=null?yN(vN(e)):{},sS(t||!e||!e.__esModule?Ja(n,"default",{value:e,enumerable:!0}):n,e)),PN=e=>sS(Ja({},"__esModule",{value:!0}),e);var iA=B((oA,Rp)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},o=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function d(h,_){if(h.indexOf("::")!==h.lastIndexOf("::"))return null;let P=0,S=-1,T=(h.match(u.zoneIndex)||[])[0],R,V;for(T&&(T=T.substring(1),h=h.replace(/%.+$/,""));(S=h.indexOf(":",S+1))>=0;)P++;if(h.substr(0,2)==="::"&&P--,h.substr(-2,2)==="::"&&P--,P>_)return null;for(V=_-P,R=":";V--;)R+="0:";return h=h.replace("::",R),h[0]===":"&&(h=h.slice(1)),h[h.length-1]===":"&&(h=h.slice(0,-1)),_=(function(){let W=h.split(":"),H=[];for(let G=0;G<W.length;G++)H.push(parseInt(W[G],16));return H})(),{parts:_,zoneId:T}}a(d,"expandIPv6");function p(h,_,P,S){if(h.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let T=0,R;for(;S>0;){if(R=P-S,R<0&&(R=0),h[T]>>R!==_[T]>>R)return!1;S-=P,T+=1}return!0}a(p,"matchCIDR");function f(h){if(r.test(h))return parseInt(h,16);if(h[0]==="0"&&!isNaN(parseInt(h[1],10))){if(o.test(h))return parseInt(h,8);throw new Error(`ipaddr: cannot parse ${h} as octal`)}return parseInt(h,10)}a(f,"parseIntAuto");function g(h,_){for(;h.length<_;)h=`0${h}`;return h}a(g,"padPart");let y={};y.IPv4=(function(){function h(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let P,S;for(P=0;P<_.length;P++)if(S=_[P],!(0<=S&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return a(h,"IPv4"),h.prototype.SpecialRanges={unspecified:[[new h([0,0,0,0]),8]],broadcast:[[new h([255,255,255,255]),32]],multicast:[[new h([224,0,0,0]),4]],linkLocal:[[new h([169,254,0,0]),16]],loopback:[[new h([127,0,0,0]),8]],carrierGradeNat:[[new h([100,64,0,0]),10]],private:[[new h([10,0,0,0]),8],[new h([172,16,0,0]),12],[new h([192,168,0,0]),16]],reserved:[[new h([192,0,0,0]),24],[new h([192,0,2,0]),24],[new h([192,88,99,0]),24],[new h([198,18,0,0]),15],[new h([198,51,100,0]),24],[new h([203,0,113,0]),24],[new h([240,0,0,0]),4]],as112:[[new h([192,175,48,0]),24],[new h([192,31,196,0]),24]],amt:[[new h([192,52,193,0]),24]]},h.prototype.kind=function(){return"ipv4"},h.prototype.match=function(_,P){let S;if(P===void 0&&(S=_,_=S[0],P=S[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,_.octets,8,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},T,R,V;for(T=3;T>=0;T-=1)if(R=this.octets[T],R in S){if(V=S[R],P&&V!==0)return null;V!==8&&(P=!0),_+=V}else return null;return 32-_},h.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){return this.octets.slice(0)},h.prototype.toIPv4MappedAddress=function(){return y.IPv6.parse(`::ffff:${this.toString()}`)},h.prototype.toNormalizedString=function(){return this.toString()},h.prototype.toString=function(){return this.octets.join(".")},h})(),y.IPv4.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],R=0;for(;R<4;)T.push(parseInt(P[R],10)|parseInt(S[R],10)^255),R++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.isIPv4=function(h){return this.parser(h)!==null},y.IPv4.isValid=function(h){try{return new this(this.parser(h)),!0}catch{return!1}},y.IPv4.isValidCIDR=function(h){try{return this.parseCIDR(h),!0}catch{return!1}},y.IPv4.isValidFourPartDecimal=function(h){return!!(y.IPv4.isValid(h)&&h.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},y.IPv4.isValidCIDRFourPartDecimal=function(h){let _=h.match(/^(.+)\/(\d+)$/);return!y.IPv4.isValidCIDR(h)||!_?!1:y.IPv4.isValidFourPartDecimal(_[1])},y.IPv4.networkAddressFromCIDR=function(h){let _,P,S,T,R;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),R=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],P=0;P<4;)T.push(parseInt(S[P],10)&parseInt(R[P],10)),P++;return new this(T)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.parse=function(h){let _=this.parser(h);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},y.IPv4.parseCIDR=function(h){let _;if(_=h.match(/^(.+)\/(\d+)$/)){let P=parseInt(_[2]);if(P>=0&&P<=32){let S=[this.parse(_[1]),P];return Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},y.IPv4.parser=function(h){let _,P,S;if(_=h.match(n.fourOctet))return(function(){let T=_.slice(1,6),R=[];for(let V=0;V<T.length;V++)P=T[V],R.push(f(P));return R})();if(_=h.match(n.longValue)){if(S=f(_[1]),S>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return(function(){let T=[],R;for(R=0;R<=24;R+=8)T.push(S>>R&255);return T})().reverse()}else return(_=h.match(n.twoOctet))?(function(){let T=_.slice(1,4),R=[];if(S=f(T[1]),S>16777215||S<0)throw new Error("ipaddr: address outside defined range");return R.push(f(T[0])),R.push(S>>16&255),R.push(S>>8&255),R.push(S&255),R})():(_=h.match(n.threeOctet))?(function(){let T=_.slice(1,5),R=[];if(S=f(T[2]),S>65535||S<0)throw new Error("ipaddr: address outside defined range");return R.push(f(T[0])),R.push(f(T[1])),R.push(S>>8&255),R.push(S&255),R})():null},y.IPv4.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],P=0,S=Math.floor(h/8);for(;P<S;)_[P]=255,P++;return S<4&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},y.IPv6=(function(){function h(_,P){let S,T;if(_.length===16)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(_[S]<<8|_[S+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(S=0;S<this.parts.length;S++)if(T=this.parts[S],!(0<=T&&T<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");P&&(this.zoneId=P)}return a(h,"IPv6"),h.prototype.SpecialRanges={unspecified:[new h([0,0,0,0,0,0,0,0]),128],linkLocal:[new h([65152,0,0,0,0,0,0,0]),10],multicast:[new h([65280,0,0,0,0,0,0,0]),8],loopback:[new h([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new h([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new h([0,0,0,0,0,65535,0,0]),96],discard:[new h([256,0,0,0,0,0,0,0]),64],rfc6145:[new h([0,0,0,0,65535,0,0,0]),96],rfc6052:[new h([100,65435,0,0,0,0,0,0]),96],"6to4":[new h([8194,0,0,0,0,0,0,0]),16],teredo:[new h([8193,0,0,0,0,0,0,0]),32],benchmarking:[new h([8193,2,0,0,0,0,0,0]),48],amt:[new h([8193,3,0,0,0,0,0,0]),32],as112v6:[[new h([8193,4,274,0,0,0,0,0]),48],[new h([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new h([8193,16,0,0,0,0,0,0]),28],orchid2:[new h([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new h([8193,48,0,0,0,0,0,0]),28],reserved:[[new h([8193,0,0,0,0,0,0,0]),23],[new h([8193,3512,0,0,0,0,0,0]),32]]},h.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},h.prototype.kind=function(){return"ipv6"},h.prototype.match=function(_,P){let S;if(P===void 0&&(S=_,_=S[0],P=S[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,_.parts,16,P)},h.prototype.prefixLengthFromSubnetMask=function(){let _=0,P=!1,S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},T,R;for(let V=7;V>=0;V-=1)if(T=this.parts[V],T in S){if(R=S[T],P&&R!==0)return null;R!==16&&(P=!0),_+=R}else return null;return 128-_},h.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},h.prototype.toByteArray=function(){let _,P=[],S=this.parts;for(let T=0;T<S.length;T++)_=S[T],P.push(_>>8),P.push(_&255);return P},h.prototype.toFixedLengthString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(g(this.parts[T].toString(16),4));return S}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),P=_[0],S=_[1];return new y.IPv4([P>>8,P&255,S>>8,S&255])},h.prototype.toNormalizedString=function(){let _=(function(){let S=[];for(let T=0;T<this.parts.length;T++)S.push(this.parts[T].toString(16));return S}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),_+P},h.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,P=this.toNormalizedString(),S=0,T=-1,R;for(;R=_.exec(P);)R[0].length>T&&(S=R.index,T=R[0].length);return T<0?P:`${P.substring(0,S)}::${P.substring(S+T)}`},h.prototype.toString=function(){return this.toRFC5952String()},h})(),y.IPv6.broadcastAddressFromCIDR=function(h){try{let _=this.parseCIDR(h),P=_[0].toByteArray(),S=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],R=0;for(;R<16;)T.push(parseInt(P[R],10)|parseInt(S[R],10)^255),R++;return new this(T)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},y.IPv6.isIPv6=function(h){return this.parser(h)!==null},y.IPv6.isValid=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{let _=this.parser(h);return new this(_.parts,_.zoneId),!0}catch{return!1}},y.IPv6.isValidCIDR=function(h){if(typeof h=="string"&&h.indexOf(":")===-1)return!1;try{return this.parseCIDR(h),!0}catch{return!1}},y.IPv6.networkAddressFromCIDR=function(h){let _,P,S,T,R;try{for(_=this.parseCIDR(h),S=_[0].toByteArray(),R=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),T=[],P=0;P<16;)T.push(parseInt(S[P],10)&parseInt(R[P],10)),P++;return new this(T)}catch(V){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${V})`)}},y.IPv6.parse=function(h){let _=this.parser(h);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},y.IPv6.parseCIDR=function(h){let _,P,S;if((P=h.match(/^(.+)\/(\d+)$/))&&(_=parseInt(P[2]),_>=0&&_<=128))return S=[this.parse(P[1]),_],Object.defineProperty(S,"toString",{value:a(function(){return this.join("/")},"value")}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},y.IPv6.parser=function(h){let _,P,S,T,R,V;if(S=h.match(u.deprecatedTransitional))return this.parser(`::ffff:${S[1]}`);if(u.native.test(h))return d(h,8);if((S=h.match(u.transitional))&&(V=S[6]||"",_=S[1],S[1].endsWith("::")||(_=_.slice(0,-1)),_=d(_+V,6),_.parts)){for(R=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],P=0;P<R.length;P++)if(T=R[P],!(0<=T&&T<=255))return null;return _.parts.push(R[0]<<8|R[1]),_.parts.push(R[2]<<8|R[3]),{parts:_.parts,zoneId:_.zoneId}}return null},y.IPv6.subnetMaskFromPrefixLength=function(h){if(h=parseInt(h),h<0||h>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,S=Math.floor(h/8);for(;P<S;)_[P]=255,P++;return S<16&&(_[S]=Math.pow(2,h%8)-1<<8-h%8),new this(_)},y.fromByteArray=function(h){let _=h.length;if(_===4)return new y.IPv4(h);if(_===16)return new y.IPv6(h);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},y.isValid=function(h){return y.IPv6.isValid(h)||y.IPv4.isValid(h)},y.isValidCIDR=function(h){return y.IPv6.isValidCIDR(h)||y.IPv4.isValidCIDR(h)},y.parse=function(h){if(y.IPv6.isValid(h))return y.IPv6.parse(h);if(y.IPv4.isValid(h))return y.IPv4.parse(h);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},y.parseCIDR=function(h){try{return y.IPv6.parseCIDR(h)}catch{try{return y.IPv4.parseCIDR(h)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},y.process=function(h){let _=this.parse(h);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},y.subnetMatch=function(h,_,P){let S,T,R,V;P==null&&(P="unicast");for(T in _)if(Object.prototype.hasOwnProperty.call(_,T)){for(R=_[T],R[0]&&!(R[0]instanceof Array)&&(R=[R]),S=0;S<R.length;S++)if(V=R[S],h.kind()===V[0].kind()&&h.match.apply(h,V))return T}return P},typeof Rp<"u"&&Rp.exports?Rp.exports=y:e.ipaddr=y})(oA)});var dw=B((w5,lw)=>{var uw=require("stream").Stream,gM=require("util");lw.exports=Hr;function Hr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}a(Hr,"DelayedStream");gM.inherits(Hr,uw);Hr.create=function(e,t){var n=new this;t=t||{};for(var o in t)n[o]=t[o];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n};Object.defineProperty(Hr.prototype,"readable",{configurable:!0,enumerable:!0,get:a(function(){return this.source.readable},"get")});Hr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Hr.prototype.resume=function(){this._released||this.release(),this.source.resume()};Hr.prototype.pause=function(){this.source.pause()};Hr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Hr.prototype.pipe=function(){var e=uw.prototype.pipe.apply(this,arguments);return this.resume(),e};Hr.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Hr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var hw=B((R5,mw)=>{var yM=require("util"),fw=require("stream").Stream,pw=dw();mw.exports=ut;function ut(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}a(ut,"CombinedStream");yM.inherits(ut,fw);ut.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};ut.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};ut.prototype.append=function(e){var t=ut.isStreamLike(e);if(t){if(!(e instanceof pw)){var n=pw.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};ut.prototype.pipe=function(e,t){return fw.prototype.pipe.call(this,e,t),this.resume(),e};ut.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};ut.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(n){var o=ut.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};ut.prototype._pipeNext=function(e){this._currentStream=e;var t=ut.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var n=e;this.write(n),this._getNext()};ut.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};ut.prototype.write=function(e){this.emit("data",e)};ut.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ut.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};ut.prototype.end=function(){this._reset(),this.emit("end")};ut.prototype.destroy=function(){this._reset(),this.emit("close")};ut.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ut.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};ut.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};ut.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var yw=B((O5,gw)=>{"use strict";gw.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var vw=B(er=>{"use strict";var Dp=yw(),_M=require("path").extname,_w=/^\s*([^;\s]*)(?:;|\s|$)/,bM=/^text\//i;er.charset=bw;er.charsets={lookup:bw};er.contentType=vM;er.extension=EM;er.extensions=Object.create(null);er.lookup=PM;er.types=Object.create(null);SM(er.extensions,er.types);function bw(e){if(!e||typeof e!="string")return!1;var t=_w.exec(e),n=t&&Dp[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&bM.test(t[1])?"UTF-8":!1}a(bw,"charset");function vM(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?er.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=er.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}a(vM,"contentType");function EM(e){if(!e||typeof e!="string")return!1;var t=_w.exec(e),n=t&&er.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}a(EM,"extension");function PM(e){if(!e||typeof e!="string")return!1;var t=_M("x."+e).toLowerCase().substr(1);return t&&er.types[t]||!1}a(PM,"lookup");function SM(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Dp).forEach(a(function(r){var i=Dp[r],s=i.extensions;if(!(!s||!s.length)){e[r]=s;for(var u=0;u<s.length;u++){var d=s[u];if(t[d]){var p=n.indexOf(Dp[t[d]].source),f=n.indexOf(i.source);if(t[d]!=="application/octet-stream"&&(p>f||p===f&&t[d].substr(0,12)==="application/"))continue}t[d]=r}}},"forEachMimeType"))}a(SM,"populateMaps")});var Pw=B((N5,Ew)=>{Ew.exports=TM;function TM(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}a(TM,"defer")});var yb=B((D5,Tw)=>{var Sw=Pw();Tw.exports=xM;function xM(e){var t=!1;return Sw(function(){t=!0}),a(function(o,r){t?e(o,r):Sw(a(function(){e(o,r)},"nextTick_callback"))},"async_callback")}a(xM,"async")});var _b=B((j5,xw)=>{xw.exports=AM;function AM(e){Object.keys(e.jobs).forEach(wM.bind(e)),e.jobs={}}a(AM,"abort");function wM(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}a(wM,"clean")});var bb=B((L5,ww)=>{var Aw=yb(),IM=_b();ww.exports=RM;function RM(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=CM(t,r,e[r],function(i,s){r in n.jobs&&(delete n.jobs[r],i?IM(n):n.results[r]=s,o(i,n.results))})}a(RM,"iterate");function CM(e,t,n,o){var r;return e.length==2?r=e(n,Aw(o)):r=e(n,t,Aw(o)),r}a(CM,"runJob")});var vb=B((B5,Iw)=>{Iw.exports=OM;function OM(e,t){var n=!Array.isArray(e),o={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&o.keyedList.sort(n?t:function(r,i){return t(e[r],e[i])}),o}a(OM,"state")});var Eb=B((V5,Rw)=>{var kM=_b(),$M=yb();Rw.exports=NM;function NM(e){Object.keys(this.jobs).length&&(this.index=this.size,kM(this),$M(e)(null,this.results))}a(NM,"terminator")});var Ow=B((Z5,Cw)=>{var zM=bb(),DM=vb(),UM=Eb();Cw.exports=jM;function jM(e,t,n){for(var o=DM(e);o.index<(o.keyedList||e).length;)zM(e,t,o,function(r,i){if(r){n(r,i);return}if(Object.keys(o.jobs).length===0){n(null,o.results);return}}),o.index++;return UM.bind(o,n)}a(jM,"parallel")});var Pb=B((W5,Up)=>{var kw=bb(),MM=vb(),LM=Eb();Up.exports=FM;Up.exports.ascending=$w;Up.exports.descending=BM;function FM(e,t,n,o){var r=MM(e,n);return kw(e,t,r,a(function i(s,u){if(s){o(s,u);return}if(r.index++,r.index<(r.keyedList||e).length){kw(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),LM.bind(r,o)}a(FM,"serialOrdered");function $w(e,t){return e<t?-1:e>t?1:0}a($w,"ascending");function BM(e,t){return-1*$w(e,t)}a(BM,"descending")});var zw=B((K5,Nw)=>{var qM=Pb();Nw.exports=VM;function VM(e,t,n){return qM(e,t,null,n)}a(VM,"serial")});var Uw=B((Q5,Dw)=>{Dw.exports={parallel:Ow(),serial:zw(),serialOrdered:Pb()}});var Sb=B((Y5,jw)=>{"use strict";jw.exports=Object});var Lw=B((e9,Mw)=>{"use strict";Mw.exports=Error});var Bw=B((t9,Fw)=>{"use strict";Fw.exports=EvalError});var Vw=B((r9,qw)=>{"use strict";qw.exports=RangeError});var Zw=B((n9,Hw)=>{"use strict";Hw.exports=ReferenceError});var Ww=B((o9,Gw)=>{"use strict";Gw.exports=SyntaxError});var jp=B((i9,Jw)=>{"use strict";Jw.exports=TypeError});var Xw=B((a9,Kw)=>{"use strict";Kw.exports=URIError});var Yw=B((s9,Qw)=>{"use strict";Qw.exports=Math.abs});var tI=B((c9,eI)=>{"use strict";eI.exports=Math.floor});var nI=B((u9,rI)=>{"use strict";rI.exports=Math.max});var iI=B((l9,oI)=>{"use strict";oI.exports=Math.min});var sI=B((d9,aI)=>{"use strict";aI.exports=Math.pow});var uI=B((p9,cI)=>{"use strict";cI.exports=Math.round});var dI=B((f9,lI)=>{"use strict";lI.exports=Number.isNaN||a(function(t){return t!==t},"isNaN")});var fI=B((h9,pI)=>{"use strict";var HM=dI();pI.exports=a(function(t){return HM(t)||t===0?t:t<0?-1:1},"sign")});var hI=B((y9,mI)=>{"use strict";mI.exports=Object.getOwnPropertyDescriptor});var Tb=B((_9,gI)=>{"use strict";var Mp=hI();if(Mp)try{Mp([],"length")}catch{Mp=null}gI.exports=Mp});var _I=B((b9,yI)=>{"use strict";var Lp=Object.defineProperty||!1;if(Lp)try{Lp({},"a",{value:1})}catch{Lp=!1}yI.exports=Lp});var xb=B((v9,bI)=>{"use strict";bI.exports=a(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;t[n]=r;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,n);if(u.value!==r||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var PI=B((P9,EI)=>{"use strict";var vI=typeof Symbol<"u"&&Symbol,ZM=xb();EI.exports=a(function(){return typeof vI!="function"||typeof Symbol!="function"||typeof vI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ZM()},"hasNativeSymbols")});var Ab=B((T9,SI)=>{"use strict";SI.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var wb=B((x9,TI)=>{"use strict";var GM=Sb();TI.exports=GM.getPrototypeOf||null});var wI=B((A9,AI)=>{"use strict";var WM="Function.prototype.bind called on incompatible ",JM=Object.prototype.toString,KM=Math.max,XM="[object Function]",xI=a(function(t,n){for(var o=[],r=0;r<t.length;r+=1)o[r]=t[r];for(var i=0;i<n.length;i+=1)o[i+t.length]=n[i];return o},"concatty"),QM=a(function(t,n){for(var o=[],r=n||0,i=0;r<t.length;r+=1,i+=1)o[i]=t[r];return o},"slicy"),YM=a(function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n},"joiny");AI.exports=a(function(t){var n=this;if(typeof n!="function"||JM.apply(n)!==XM)throw new TypeError(WM+n);for(var o=QM(arguments,1),r,i=a(function(){if(this instanceof r){var f=n.apply(this,xI(o,arguments));return Object(f)===f?f:this}return n.apply(t,xI(o,arguments))},"binder"),s=KM(0,n.length-o.length),u=[],d=0;d<s;d++)u[d]="$"+d;if(r=Function("binder","return function ("+YM(u,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var p=a(function(){},"Empty");p.prototype=n.prototype,r.prototype=new p,p.prototype=null}return r},"bind")});var sa=B((I9,II)=>{"use strict";var eL=wI();II.exports=Function.prototype.bind||eL});var Fp=B((R9,RI)=>{"use strict";RI.exports=Function.prototype.call});var Ib=B((C9,CI)=>{"use strict";CI.exports=Function.prototype.apply});var kI=B((O9,OI)=>{"use strict";OI.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var NI=B((k9,$I)=>{"use strict";var tL=sa(),rL=Ib(),nL=Fp(),oL=kI();$I.exports=oL||tL.call(nL,rL)});var DI=B(($9,zI)=>{"use strict";var iL=sa(),aL=jp(),sL=Fp(),cL=NI();zI.exports=a(function(t){if(t.length<1||typeof t[0]!="function")throw new aL("a function is required");return cL(iL,sL,t)},"callBindBasic")});var BI=B((z9,FI)=>{"use strict";var uL=DI(),UI=Tb(),MI;try{MI=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Rb=!!MI&&UI&&UI(Object.prototype,"__proto__"),LI=Object,jI=LI.getPrototypeOf;FI.exports=Rb&&typeof Rb.get=="function"?uL([Rb.get]):typeof jI=="function"?a(function(t){return jI(t==null?t:LI(t))},"getDunder"):!1});var GI=B((U9,ZI)=>{"use strict";var qI=Ab(),VI=wb(),HI=BI();ZI.exports=qI?a(function(t){return qI(t)},"getProto"):VI?a(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return VI(t)},"getProto"):HI?a(function(t){return HI(t)},"getProto"):null});var Cb=B((M9,WI)=>{"use strict";var lL=Function.prototype.call,dL=Object.prototype.hasOwnProperty,pL=sa();WI.exports=pL.call(lL,dL)});var tR=B((L9,eR)=>{"use strict";var Re,fL=Sb(),mL=Lw(),hL=Bw(),gL=Vw(),yL=Zw(),da=Ww(),la=jp(),_L=Xw(),bL=Yw(),vL=tI(),EL=nI(),PL=iI(),SL=sI(),TL=uI(),xL=fI(),QI=Function,Ob=a(function(e){try{return QI('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Kc=Tb(),AL=_I(),kb=a(function(){throw new la},"throwTypeError"),wL=Kc?(function(){try{return arguments.callee,kb}catch{try{return Kc(arguments,"callee").get}catch{return kb}}})():kb,ca=PI()(),St=GI(),IL=wb(),RL=Ab(),YI=Ib(),Xc=Fp(),ua={},CL=typeof Uint8Array>"u"||!St?Re:St(Uint8Array),Qo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Re:ArrayBuffer,"%ArrayIteratorPrototype%":ca&&St?St([][Symbol.iterator]()):Re,"%AsyncFromSyncIteratorPrototype%":Re,"%AsyncFunction%":ua,"%AsyncGenerator%":ua,"%AsyncGeneratorFunction%":ua,"%AsyncIteratorPrototype%":ua,"%Atomics%":typeof Atomics>"u"?Re:Atomics,"%BigInt%":typeof BigInt>"u"?Re:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mL,"%eval%":eval,"%EvalError%":hL,"%Float16Array%":typeof Float16Array>"u"?Re:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Re:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Re:FinalizationRegistry,"%Function%":QI,"%GeneratorFunction%":ua,"%Int8Array%":typeof Int8Array>"u"?Re:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Re:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ca&&St?St(St([][Symbol.iterator]())):Re,"%JSON%":typeof JSON=="object"?JSON:Re,"%Map%":typeof Map>"u"?Re:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ca||!St?Re:St(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fL,"%Object.getOwnPropertyDescriptor%":Kc,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Re:Promise,"%Proxy%":typeof Proxy>"u"?Re:Proxy,"%RangeError%":gL,"%ReferenceError%":yL,"%Reflect%":typeof Reflect>"u"?Re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Re:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ca||!St?Re:St(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ca&&St?St(""[Symbol.iterator]()):Re,"%Symbol%":ca?Symbol:Re,"%SyntaxError%":da,"%ThrowTypeError%":wL,"%TypedArray%":CL,"%TypeError%":la,"%Uint8Array%":typeof Uint8Array>"u"?Re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Re:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Re:Uint32Array,"%URIError%":_L,"%WeakMap%":typeof WeakMap>"u"?Re:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Re:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Re:WeakSet,"%Function.prototype.call%":Xc,"%Function.prototype.apply%":YI,"%Object.defineProperty%":AL,"%Object.getPrototypeOf%":IL,"%Math.abs%":bL,"%Math.floor%":vL,"%Math.max%":EL,"%Math.min%":PL,"%Math.pow%":SL,"%Math.round%":TL,"%Math.sign%":xL,"%Reflect.getPrototypeOf%":RL};if(St)try{null.error}catch(e){JI=St(St(e)),Qo["%Error.prototype%"]=JI}var JI,OL=a(function e(t){var n;if(t==="%AsyncFunction%")n=Ob("async function () {}");else if(t==="%GeneratorFunction%")n=Ob("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Ob("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&St&&(n=St(r.prototype))}return Qo[t]=n,n},"doEval"),KI={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qc=sa(),Bp=Cb(),kL=Qc.call(Xc,Array.prototype.concat),$L=Qc.call(YI,Array.prototype.splice),XI=Qc.call(Xc,String.prototype.replace),qp=Qc.call(Xc,String.prototype.slice),NL=Qc.call(Xc,RegExp.prototype.exec),zL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,DL=/\\(\\)?/g,UL=a(function(t){var n=qp(t,0,1),o=qp(t,-1);if(n==="%"&&o!=="%")throw new da("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new da("invalid intrinsic syntax, expected opening `%`");var r=[];return XI(t,zL,function(i,s,u,d){r[r.length]=u?XI(d,DL,"$1"):s||i}),r},"stringToPath"),jL=a(function(t,n){var o=t,r;if(Bp(KI,o)&&(r=KI[o],o="%"+r[0]+"%"),Bp(Qo,o)){var i=Qo[o];if(i===ua&&(i=OL(o)),typeof i>"u"&&!n)throw new la("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new da("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");eR.exports=a(function(t,n){if(typeof t!="string"||t.length===0)throw new la("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new la('"allowMissing" argument must be a boolean');if(NL(/^%?[^%]*%?$/,t)===null)throw new da("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=UL(t),r=o.length>0?o[0]:"",i=jL("%"+r+"%",n),s=i.name,u=i.value,d=!1,p=i.alias;p&&(r=p[0],$L(o,kL([0,1],p)));for(var f=1,g=!0;f<o.length;f+=1){var y=o[f],h=qp(y,0,1),_=qp(y,-1);if((h==='"'||h==="'"||h==="`"||_==='"'||_==="'"||_==="`")&&h!==_)throw new da("property names with quotes must have matching quotes");if((y==="constructor"||!g)&&(d=!0),r+="."+y,s="%"+r+"%",Bp(Qo,s))u=Qo[s];else if(u!=null){if(!(y in u)){if(!n)throw new la("base intrinsic for "+t+" exists, but the property is not available.");return}if(Kc&&f+1>=o.length){var P=Kc(u,y);g=!!P,g&&"get"in P&&!("originalValue"in P.get)?u=P.get:u=u[y]}else g=Bp(u,y),u=u[y];g&&!d&&(Qo[s]=u)}}return u},"GetIntrinsic")});var nR=B((B9,rR)=>{"use strict";var ML=xb();rR.exports=a(function(){return ML()&&!!Symbol.toStringTag},"hasToStringTagShams")});var aR=B((V9,iR)=>{"use strict";var LL=tR(),oR=LL("%Object.defineProperty%",!0),FL=nR()(),BL=Cb(),qL=jp(),Vp=FL?Symbol.toStringTag:null;iR.exports=a(function(t,n){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new qL("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Vp&&(o||!BL(t,Vp))&&(oR?oR(t,Vp,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Vp]=n)},"setToStringTag")});var cR=B((Z9,sR)=>{"use strict";var VL=Function.prototype.call,HL=Object.prototype.hasOwnProperty,ZL=sa();sR.exports=ZL.call(VL,HL)});var lR=B((G9,uR)=>{"use strict";uR.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var fR=B((W9,pR)=>{"use strict";var Db=hw(),GL=require("util"),$b=require("path"),WL=require("http"),JL=require("https"),KL=require("url").parse,XL=require("fs"),QL=require("stream").Stream,YL=require("crypto"),Nb=vw(),e1=Uw(),t1=aR(),po=cR(),zb=lR();function dR(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}a(dR,"escapeHeaderParam");function Ue(e){if(!(this instanceof Ue))return new Ue(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Db.call(this),e=e||{};for(var t in e)this[t]=e[t]}a(Ue,"FormData");GL.inherits(Ue,Db);Ue.LINE_BREAK=`\r
2
2
  `;Ue.DEFAULT_CONTENT_TYPE="application/octet-stream";Ue.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=Db.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(e,t,n),i=this._multiPartFooter();o(r),o(t),o(i),this._trackLength(r,t,n)};Ue.prototype._trackLength=function(e,t,n){var o=0;n.knownLength!=null?o+=Number(n.knownLength):Buffer.isBuffer(t)?o=t.length:typeof t=="string"&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+Ue.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&po(t,"httpVersion"))&&!(t instanceof QL))&&(n.knownLength||this._valuesToMeasure.push(t))};Ue.prototype._lengthRetriever=function(e,t){po(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):XL.stat(e.path,function(n,o){if(n){t(n);return}var r=o.size-(e.start?e.start:0);t(null,r)}):po(e,"httpVersion")?t(null,Number(e.headers["content-length"])):po(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")};Ue.prototype._multiPartHeader=function(e,t,n){if(typeof n.header=="string")return n.header;var o=this._getContentDisposition(t,n),r=this._getContentType(t,n),i="",s={"Content-Disposition":["form-data",'name="'+dR(e)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&zb(s,n.header);var u;for(var d in s)if(po(s,d)){if(u=s[d],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=d+": "+u.join("; ")+Ue.LINE_BREAK)}return"--"+this.getBoundary()+Ue.LINE_BREAK+i+Ue.LINE_BREAK};Ue.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath=="string"?n=$b.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=$b.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&po(e,"httpVersion")&&(n=$b.basename(e.client._httpMessage.path||"")),n)return'filename="'+dR(n)+'"'};Ue.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=Nb.lookup(e.name)),!n&&e&&e.path&&(n=Nb.lookup(e.path)),!n&&e&&e.readable&&po(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=Nb.lookup(t.filepath||t.filename)),!n&&e&&typeof e=="object"&&(n=Ue.DEFAULT_CONTENT_TYPE),n};Ue.prototype._multiPartFooter=function(){return function(e){var t=Ue.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};Ue.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ue.LINE_BREAK};Ue.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)po(e,t)&&(n[t.toLowerCase()]=e[t]);return n};Ue.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};Ue.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ue.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,o=this._streams.length;n<o;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?e=Buffer.concat([e,this._streams[n]]):e=Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(Ue.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};Ue.prototype._generateBoundary=function(){this._boundary="--------------------------"+YL.randomBytes(12).toString("hex")};Ue.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};Ue.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};Ue.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}e1.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){e(n);return}o.forEach(function(r){t+=r}),e(null,t)})};Ue.prototype.submit=function(e,t){var n,o,r={method:"post"};return typeof e=="string"?(e=KL(e),o=zb({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(o=zb(e,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?n=JL.request(o):n=WL.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&n.setHeader("Content-Length",s),this.pipe(n),t){var u,d=a(function(p,f){return n.removeListener("error",d),n.removeListener("response",u),t.call(this,p,f)},"callback");u=d.bind(this,null),n.on("error",d),n.on("response",u)}}.bind(this)),n};Ue.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};Ue.prototype.toString=function(){return"[object FormData]"};t1(Ue.prototype,"FormData");pR.exports=Ue});var Ub=B((yY,PR)=>{"use strict";var Hp=Object.prototype.hasOwnProperty,ER=Object.prototype.toString,hR=Object.defineProperty,gR=Object.getOwnPropertyDescriptor,yR=a(function(t){return typeof Array.isArray=="function"?Array.isArray(t):ER.call(t)==="[object Array]"},"isArray"),_R=a(function(t){if(!t||ER.call(t)!=="[object Object]")return!1;var n=Hp.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&Hp.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;var r;for(r in t);return typeof r>"u"||Hp.call(t,r)},"isPlainObject"),bR=a(function(t,n){hR&&n.name==="__proto__"?hR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},"setProperty"),vR=a(function(t,n){if(n==="__proto__")if(Hp.call(t,n)){if(gR)return gR(t,n).value}else return;return t[n]},"getProperty");PR.exports=a(function e(){var t,n,o,r,i,s,u=arguments[0],d=1,p=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},d=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});d<p;++d)if(t=arguments[d],t!=null)for(n in t)o=vR(u,n),r=vR(t,n),u!==r&&(f&&r&&(_R(r)||(i=yR(r)))?(i?(i=!1,s=o&&yR(o)?o:[]):s=o&&_R(o)?o:{},bR(u,{name:n,newValue:e(f,s,r)})):typeof r<"u"&&bR(u,{name:n,newValue:r}));return u},"extend")});var SR=B((bY,l1)=>{l1.exports={name:"gaxios",version:"7.1.3",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^22.0.0","@types/sinon":"^17.0.0","@types/tmp":"0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.0.0",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.0","is-docker":"^3.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.0-beta.13","null-loader":"^4.0.0","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"^5.8.3",webpack:"^5.35.0","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2",rimraf:"^5.0.1"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var xR=B((vY,TR)=>{"use strict";var d1=SR();TR.exports={pkg:d1}});var Lb=B(Rr=>{"use strict";var wR=Rr&&Rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.GaxiosError=Rr.GAXIOS_ERROR_SYMBOL=void 0;Rr.defaultErrorRedactor=IR;var AR=wR(Ub()),p1=wR(xR()),jb=p1.default.pkg;Rr.GAXIOS_ERROR_SYMBOL=Symbol.for(`${jb.name}-gaxios-error`);var Mb=class e extends Error{static{a(this,"GaxiosError")}config;response;code;status;error;[Rr.GAXIOS_ERROR_SYMBOL]=jb.version;static[Symbol.hasInstance](t){return t&&typeof t=="object"&&Rr.GAXIOS_ERROR_SYMBOL in t&&t[Rr.GAXIOS_ERROR_SYMBOL]===jb.version?!0:Function.prototype[Symbol.hasInstance].call(e,t)}constructor(t,n,o,r){if(super(t,{cause:r}),this.config=n,this.response=o,this.error=r instanceof Error?r:void 0,this.config=(0,AR.default)(!0,{},n),this.response&&(this.response.config=(0,AR.default)(!0,{},this.response.config)),this.response){try{this.response.data=f1(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}r instanceof DOMException?this.code=r.name:r&&typeof r=="object"&&"code"in r&&(typeof r.code=="string"||typeof r.code=="number")&&(this.code=r.code)}static extractAPIErrorFromResponse(t,n="The request failed"){let o=n;if(typeof t.data=="string"&&(o=t.data),t.data&&typeof t.data=="object"&&"error"in t.data&&t.data.error&&!t.ok){if(typeof t.data.error=="string")return{message:t.data.error,code:t.status,status:t.statusText};if(typeof t.data.error=="object"){o="message"in t.data.error&&typeof t.data.error.message=="string"?t.data.error.message:o;let r="status"in t.data.error&&typeof t.data.error.status=="string"?t.data.error.status:t.statusText,i="code"in t.data.error&&typeof t.data.error.code=="number"?t.data.error.code:t.status;if("errors"in t.data.error&&Array.isArray(t.data.error.errors)){let s=[];for(let u of t.data.error.errors)typeof u=="object"&&"message"in u&&typeof u.message=="string"&&s.push(u.message);return Object.assign({message:s.join(`
3
3
  `)||o,code:i,status:r},t.data.error)}return Object.assign({message:o,code:i,status:r},t.data.error)}}return{message:o,code:t.status,status:t.statusText}}};Rr.GaxiosError=Mb;function f1(e,t){switch(e){case"stream":return t;case"json":return JSON.parse(JSON.stringify(t));case"arraybuffer":return JSON.parse(Buffer.from(t).toString("utf8"));case"blob":return JSON.parse(t.text());default:return t}}a(f1,"translateData");function IR(e){let t="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function n(i){i&&i.forEach((s,u)=>{(/^authentication$/i.test(u)||/^authorization$/i.test(u)||/secret/i.test(u))&&i.set(u,t)})}a(n,"redactHeaders");function o(i,s){if(typeof i=="object"&&i!==null&&typeof i[s]=="string"){let u=i[s];(/grant_type=/i.test(u)||/assertion=/i.test(u)||/secret/i.test(u))&&(i[s]=t)}}a(o,"redactString");function r(i){!i||typeof i!="object"||(i instanceof FormData||i instanceof URLSearchParams||"forEach"in i&&"set"in i?i.forEach((s,u)=>{(["grant_type","assertion"].includes(u)||/secret/.test(u))&&i.set(u,t)}):("grant_type"in i&&(i.grant_type=t),"assertion"in i&&(i.assertion=t),"client_secret"in i&&(i.client_secret=t)))}return a(r,"redactObject"),e.config&&(n(e.config.headers),o(e.config,"data"),r(e.config.data),o(e.config,"body"),r(e.config.body),e.config.url.searchParams.has("token")&&e.config.url.searchParams.set("token",t),e.config.url.searchParams.has("client_secret")&&e.config.url.searchParams.set("client_secret",t)),e.response&&(IR({config:e.response.config}),n(e.response.headers),e.response.bodyUsed&&(o(e.response,"data"),r(e.response.data))),e}a(IR,"defaultErrorRedactor")});var CR=B(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});Fb.getRetryConfig=m1;async function m1(e){let t=RR(e);if(!e||!e.config||!t&&!e.config.retry)return{shouldRetry:!1};t=t||{},t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry=t.retry===void 0||t.retry===null?3:t.retry,t.httpMethodsToRetry=t.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries=t.noResponseRetries===void 0||t.noResponseRetries===null?2:t.noResponseRetries,t.retryDelayMultiplier=t.retryDelayMultiplier?t.retryDelayMultiplier:2,t.timeOfFirstRequest=t.timeOfFirstRequest?t.timeOfFirstRequest:Date.now(),t.totalTimeout=t.totalTimeout?t.totalTimeout:Number.MAX_SAFE_INTEGER,t.maxRetryDelay=t.maxRetryDelay?t.maxRetryDelay:Number.MAX_SAFE_INTEGER;let n=[[100,199],[408,408],[429,429],[500,599]];if(t.statusCodesToRetry=t.statusCodesToRetry||n,e.config.retryConfig=t,!await(t.shouldRetry||h1)(e))return{shouldRetry:!1,config:e.config};let r=g1(t);e.config.retryConfig.currentRetryAttempt+=1;let i=t.retryBackoff?t.retryBackoff(e,r):new Promise(s=>{setTimeout(s,r)});return t.onRetryAttempt&&await t.onRetryAttempt(e),await i,{shouldRetry:!0,config:e.config}}a(m1,"getRetryConfig");function h1(e){let t=RR(e);if(e.config.signal?.aborted&&e.code!=="TimeoutError"||e.code==="AbortError"||!t||t.retry===0||!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries||!t.httpMethodsToRetry||!t.httpMethodsToRetry.includes(e.config.method?.toUpperCase()||"GET"))return!1;if(e.response&&e.response.status){let n=!1;for(let[o,r]of t.statusCodesToRetry){let i=e.response.status;if(i>=o&&i<=r){n=!0;break}}if(!n)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}a(h1,"shouldRetryRequest");function RR(e){if(e&&e.config&&e.config.retryConfig)return e.config.retryConfig}a(RR,"getConfig");function g1(e){let n=(e.currentRetryAttempt?0:e.retryDelay??100)+(Math.pow(e.retryDelayMultiplier,e.currentRetryAttempt)-1)/2*1e3,o=e.totalTimeout-(Date.now()-e.timeOfFirstRequest);return Math.min(n,o,e.maxRetryDelay)}a(g1,"getNextRetryDelay")});var qb=B(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.GaxiosInterceptorManager=void 0;var Bb=class extends Set{static{a(this,"GaxiosInterceptorManager")}};Zp.GaxiosInterceptorManager=Bb});var kR=B((wY,OR)=>{var pa=1e3,fa=pa*60,ma=fa*60,Yo=ma*24,y1=Yo*7,_1=Yo*365.25;OR.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return b1(e);if(n==="number"&&isFinite(e))return t.long?E1(e):v1(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function b1(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*_1;case"weeks":case"week":case"w":return n*y1;case"days":case"day":case"d":return n*Yo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ma;case"minutes":case"minute":case"mins":case"min":case"m":return n*fa;case"seconds":case"second":case"secs":case"sec":case"s":return n*pa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}a(b1,"parse");function v1(e){var t=Math.abs(e);return t>=Yo?Math.round(e/Yo)+"d":t>=ma?Math.round(e/ma)+"h":t>=fa?Math.round(e/fa)+"m":t>=pa?Math.round(e/pa)+"s":e+"ms"}a(v1,"fmtShort");function E1(e){var t=Math.abs(e);return t>=Yo?Gp(e,t,Yo,"day"):t>=ma?Gp(e,t,ma,"hour"):t>=fa?Gp(e,t,fa,"minute"):t>=pa?Gp(e,t,pa,"second"):e+" ms"}a(E1,"fmtLong");function Gp(e,t,n,o){var r=t>=n*1.5;return Math.round(e/n)+" "+o+(r?"s":"")}a(Gp,"plural")});var Vb=B((RY,$R)=>{function P1(e){n.debug=n,n.default=n,n.coerce=d,n.disable=s,n.enable=r,n.enabled=u,n.humanize=kR(),n.destroy=p,Object.keys(e).forEach(f=>{n[f]=e[f]}),n.names=[],n.skips=[],n.formatters={};function t(f){let g=0;for(let y=0;y<f.length;y++)g=(g<<5)-g+f.charCodeAt(y),g|=0;return n.colors[Math.abs(g)%n.colors.length]}a(t,"selectColor"),n.selectColor=t;function n(f){let g,y=null,h,_;function P(...S){if(!P.enabled)return;let T=P,R=Number(new Date),V=R-(g||R);T.diff=V,T.prev=g,T.curr=R,g=R,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let W=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(G,re)=>{if(G==="%%")return"%";W++;let ue=n.formatters[re];if(typeof ue=="function"){let Y=S[W];G=ue.call(T,Y),S.splice(W,1),W--}return G}),n.formatArgs.call(T,S),(T.log||n.log).apply(T,S)}return a(P,"debug"),P.namespace=f,P.useColors=n.useColors(),P.color=n.selectColor(f),P.extend=o,P.destroy=n.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:a(()=>y!==null?y:(h!==n.namespaces&&(h=n.namespaces,_=n.enabled(f)),_),"get"),set:a(S=>{y=S},"set")}),typeof n.init=="function"&&n.init(P),P}a(n,"createDebug");function o(f,g){let y=n(this.namespace+(typeof g>"u"?":":g)+f);return y.log=this.log,y}a(o,"extend");function r(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let g=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let y of g)y[0]==="-"?n.skips.push(y.slice(1)):n.names.push(y)}a(r,"enable");function i(f,g){let y=0,h=0,_=-1,P=0;for(;y<f.length;)if(h<g.length&&(g[h]===f[y]||g[h]==="*"))g[h]==="*"?(_=h,P=y,h++):(y++,h++);else if(_!==-1)h=_+1,P++,y=P;else return!1;for(;h<g.length&&g[h]==="*";)h++;return h===g.length}a(i,"matchesTemplate");function s(){let f=[...n.names,...n.skips.map(g=>"-"+g)].join(",");return n.enable(""),f}a(s,"disable");function u(f){for(let g of n.skips)if(i(f,g))return!1;for(let g of n.names)if(i(f,g))return!0;return!1}a(u,"enabled");function d(f){return f instanceof Error?f.stack||f.message:f}a(d,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(p,"destroy"),n.enable(n.load()),n}a(P1,"setup");$R.exports=P1});var NR=B((tr,Wp)=>{tr.formatArgs=T1;tr.save=x1;tr.load=A1;tr.useColors=S1;tr.storage=w1();tr.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();tr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S1(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(S1,"useColors");function T1(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Wp.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(n++,r==="%c"&&(o=n))}),e.splice(o,0,t)}a(T1,"formatArgs");tr.log=console.debug||console.log||(()=>{});function x1(e){try{e?tr.storage.setItem("debug",e):tr.storage.removeItem("debug")}catch{}}a(x1,"save");function A1(){let e;try{e=tr.storage.getItem("debug")||tr.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}a(A1,"load");function w1(){try{return localStorage}catch{}}a(w1,"localstorage");Wp.exports=Vb()(tr);var{formatters:I1}=Wp.exports;I1.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var DR=B((kY,zR)=>{"use strict";zR.exports=(e,t=process.argv)=>{let n=e.startsWith("-")?"":e.length===1?"-":"--",o=t.indexOf(n+e),r=t.indexOf("--");return o!==-1&&(r===-1||o<r)}});var MR=B(($Y,jR)=>{"use strict";var R1=require("os"),UR=require("tty"),Cr=DR(),{env:Tt}=process,fo;Cr("no-color")||Cr("no-colors")||Cr("color=false")||Cr("color=never")?fo=0:(Cr("color")||Cr("colors")||Cr("color=true")||Cr("color=always"))&&(fo=1);"FORCE_COLOR"in Tt&&(Tt.FORCE_COLOR==="true"?fo=1:Tt.FORCE_COLOR==="false"?fo=0:fo=Tt.FORCE_COLOR.length===0?1:Math.min(parseInt(Tt.FORCE_COLOR,10),3));function Hb(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}a(Hb,"translateLevel");function Zb(e,t){if(fo===0)return 0;if(Cr("color=16m")||Cr("color=full")||Cr("color=truecolor"))return 3;if(Cr("color=256"))return 2;if(e&&!t&&fo===void 0)return 0;let n=fo||0;if(Tt.TERM==="dumb")return n;if(process.platform==="win32"){let o=R1.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Tt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in Tt)||Tt.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Tt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Tt.TEAMCITY_VERSION)?1:0;if(Tt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Tt){let o=parseInt((Tt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Tt.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Tt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Tt.TERM)||"COLORTERM"in Tt?1:n}a(Zb,"supportsColor");function C1(e){let t=Zb(e,e&&e.isTTY);return Hb(t)}a(C1,"getSupportLevel");jR.exports={supportsColor:C1,stdout:Hb(Zb(!0,UR.isatty(1))),stderr:Hb(Zb(!0,UR.isatty(2)))}});var FR=B((xt,Kp)=>{var O1=require("tty"),Jp=require("util");xt.init=j1;xt.log=z1;xt.formatArgs=$1;xt.save=D1;xt.load=U1;xt.useColors=k1;xt.destroy=Jp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");xt.colors=[6,2,3,4,5,1];try{let e=MR();e&&(e.stderr||e).level>=2&&(xt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}xt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(r,i)=>i.toUpperCase()),o=process.env[t];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),e[n]=o,e},{});function k1(){return"colors"in xt.inspectOpts?!!xt.inspectOpts.colors:O1.isatty(process.stderr.fd)}a(k1,"useColors");function $1(e){let{namespace:t,useColors:n}=this;if(n){let o=this.color,r="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${r};1m${t} \x1B[0m`;e[0]=i+e[0].split(`
4
4
  `).join(`
@@ -11,7 +11,7 @@
11
11
  `),_=h.shift();if(!_)return e.destroy(),n(new Error("No header received from proxy CONNECT response"));let P=_.split(" "),S=+P[1],T=P.slice(2).join(" "),R={};for(let V of h){if(!V)continue;let W=V.indexOf(":");if(W===-1)return e.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${V}"`));let H=V.slice(0,W).toLowerCase(),G=V.slice(W+1).trimStart(),re=R[H];typeof re=="string"?R[H]=[re,G]:Array.isArray(re)?re.push(G):R[H]=G}Xp("got proxy server response: %o %o",_,R),s(),t({connect:{statusCode:S,statusText:T,headers:R},buffered:g})}a(p,"ondata"),e.on("error",d),e.on("end",u),i()})}a(X1,"parseProxyResponse");ha.parseProxyResponse=X1});var tC=B(Or=>{"use strict";var Q1=Or&&Or.__createBinding||(Object.create?(function(e,t,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:a(function(){return t[n]},"get")}),Object.defineProperty(e,o,r)}):(function(e,t,n,o){o===void 0&&(o=n),e[o]=t[n]})),Y1=Or&&Or.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),YR=Or&&Or.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Q1(t,e,n);return Y1(t,e),t},eC=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Or,"__esModule",{value:!0});Or.HttpsProxyAgent=void 0;var Qp=YR(require("net")),KR=YR(require("tls")),eF=eC(require("assert")),tF=eC(Wb()),rF=WR(),nF=require("url"),oF=JR(),Yc=(0,tF.default)("https-proxy-agent"),XR=a(e=>e.servername===void 0&&e.host&&!Qp.isIP(e.host)?{...e,servername:e.host}:e,"setServernameFromNonIpHost"),Yp=class extends rF.Agent{static{a(this,"HttpsProxyAgent")}constructor(t,n){super(n),this.options={path:void 0},this.proxy=typeof t=="string"?new nF.URL(t):t,this.proxyHeaders=n?.headers??{},Yc("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...n?QR(n,"headers"):null,host:o,port:r}}async connect(t,n){let{proxy:o}=this;if(!n.host)throw new TypeError('No "host" provided');let r;o.protocol==="https:"?(Yc("Creating `tls.Socket`: %o",this.connectOpts),r=KR.connect(XR(this.connectOpts))):(Yc("Creating `net.Socket`: %o",this.connectOpts),r=Qp.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=Qp.isIPv6(n.host)?`[${n.host}]`:n.host,u=`CONNECT ${s}:${n.port} HTTP/1.1\r
12
12
  `;if(o.username||o.password){let y=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(y).toString("base64")}`}i.Host=`${s}:${n.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let y of Object.keys(i))u+=`${y}: ${i[y]}\r
13
13
  `;let d=(0,oF.parseProxyResponse)(r);r.write(`${u}\r
14
- `);let{connect:p,buffered:f}=await d;if(t.emit("proxyConnect",p),this.emit("proxyConnect",p,t),p.statusCode===200)return t.once("socket",iF),n.secureEndpoint?(Yc("Upgrading socket connection to TLS"),KR.connect({...QR(XR(n),"host","path","port"),socket:r})):r;r.destroy();let g=new Qp.Socket({writable:!1});return g.readable=!0,t.once("socket",y=>{Yc("Replaying proxy buffer for failed request"),(0,eF.default)(y.listenerCount("data")>0),y.push(f),y.push(null)}),g}};Yp.protocols=["http","https"];Or.HttpsProxyAgent=Yp;function iF(e){e.resume()}a(iF,"resume");function QR(e,...t){let n={},o;for(o in e)t.includes(o)||(n[o]=e[o]);return n}a(QR,"omit")});function aF(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let n=e.substring(5,t).split(";"),o="",r=!1,i=n[0]||"text/plain",s=i;for(let f=1;f<n.length;f++)n[f]==="base64"?r=!0:n[f]&&(s+=`;${n[f]}`,n[f].indexOf("charset=")===0&&(o=n[f].substring(8)));!n[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=r?"base64":"ascii",d=unescape(e.substring(t+1)),p=Buffer.from(d,u);return p.type=i,p.typeFull=s,p.charset=o,p}var rC,nC=bt(()=>{a(aF,"dataUriToBuffer");rC=aF});var iC=B((ef,oC)=>{(function(e,t){typeof ef=="object"&&typeof oC<"u"?t(ef):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WebStreamsPolyfill={}))})(ef,(function(e){"use strict";function t(){}a(t,"noop");function n(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(n,"typeIsObject");let o=t;function r(c,l){try{Object.defineProperty(c,"name",{value:l,configurable:!0})}catch{}}a(r,"setFunctionName");let i=Promise,s=Promise.prototype.then,u=Promise.reject.bind(i);function d(c){return new i(c)}a(d,"newPromise");function p(c){return d(l=>l(c))}a(p,"promiseResolvedWith");function f(c){return u(c)}a(f,"promiseRejectedWith");function g(c,l,m){return s.call(c,l,m)}a(g,"PerformPromiseThen");function y(c,l,m){g(g(c,l,m),void 0,o)}a(y,"uponPromise");function h(c,l){y(c,l)}a(h,"uponFulfillment");function _(c,l){y(c,void 0,l)}a(_,"uponRejection");function P(c,l,m){return g(c,l,m)}a(P,"transformPromiseWith");function S(c){g(c,void 0,o)}a(S,"setPromiseIsHandledToTrue");let T=a(c=>{if(typeof queueMicrotask=="function")T=queueMicrotask;else{let l=p(void 0);T=a(m=>g(l,m),"_queueMicrotask")}return T(c)},"_queueMicrotask");function R(c,l,m){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,l,m)}a(R,"reflectCall");function V(c,l,m){try{return p(R(c,l,m))}catch(E){return f(E)}}a(V,"promiseCall");let W=16384;class H{static{a(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(l){let m=this._back,E=m;m._elements.length===W-1&&(E={_elements:[],_next:void 0}),m._elements.push(l),E!==m&&(this._back=E,m._next=E),++this._size}shift(){let l=this._front,m=l,E=this._cursor,I=E+1,j=l._elements,q=j[E];return I===W&&(m=l._next,I=0),--this._size,this._cursor=I,l!==m&&(this._front=m),j[E]=void 0,q}forEach(l){let m=this._cursor,E=this._front,I=E._elements;for(;(m!==I.length||E._next!==void 0)&&!(m===I.length&&(E=E._next,I=E._elements,m=0,I.length===0));)l(I[m]),++m}peek(){let l=this._front,m=this._cursor;return l._elements[m]}}let G=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ue=Symbol("[[CancelSteps]]"),Y=Symbol("[[PullSteps]]"),Ze=Symbol("[[ReleaseSteps]]");function Ce(c,l){c._ownerReadableStream=l,l._reader=c,l._state==="readable"?Ge(c):l._state==="closed"?it(c):He(c,l._storedError)}a(Ce,"ReadableStreamReaderGenericInitialize");function Se(c,l){let m=c._ownerReadableStream;return jr(m,l)}a(Se,"ReadableStreamReaderGenericCancel");function Le(c){let l=c._ownerReadableStream;l._state==="readable"?ar(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):Ut(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),l._readableStreamController[Ze](),l._reader=void 0,c._ownerReadableStream=void 0}a(Le,"ReadableStreamReaderGenericRelease");function Me(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(Me,"readerLockException");function Ge(c){c._closedPromise=d((l,m)=>{c._closedPromise_resolve=l,c._closedPromise_reject=m})}a(Ge,"defaultReaderClosedPromiseInitialize");function He(c,l){Ge(c),ar(c,l)}a(He,"defaultReaderClosedPromiseInitializeAsRejected");function it(c){Ge(c),li(c)}a(it,"defaultReaderClosedPromiseInitializeAsResolved");function ar(c,l){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(l),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(ar,"defaultReaderClosedPromiseReject");function Ut(c,l){He(c,l)}a(Ut,"defaultReaderClosedPromiseResetToRejected");function li(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(li,"defaultReaderClosedPromiseResolve");let tn=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},Ma=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function ee(c){return typeof c=="object"||typeof c=="function"}a(ee,"isDictionary");function Gt(c,l){if(c!==void 0&&!ee(c))throw new TypeError(`${l} is not an object.`)}a(Gt,"assertDictionary");function jt(c,l){if(typeof c!="function")throw new TypeError(`${l} is not a function.`)}a(jt,"assertFunction");function La(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(La,"isObject");function Mt(c,l){if(!La(c))throw new TypeError(`${l} is not an object.`)}a(Mt,"assertObject");function ht(c,l,m){if(c===void 0)throw new TypeError(`Parameter ${l} is required in '${m}'.`)}a(ht,"assertRequiredArgument");function v(c,l,m){if(c===void 0)throw new TypeError(`${l} is required in '${m}'.`)}a(v,"assertRequiredField");function x(c){return Number(c)}a(x,"convertUnrestrictedDouble");function A(c){return c===0?0:c}a(A,"censorNegativeZero");function D(c){return A(Ma(c))}a(D,"integerPart");function O(c,l){let E=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!tn(I))throw new TypeError(`${l} is not a finite number`);if(I=D(I),I<0||I>E)throw new TypeError(`${l} is outside the accepted range of 0 to ${E}, inclusive`);return!tn(I)||I===0?0:I}a(O,"convertUnsignedLongLongWithEnforceRange");function N(c,l){if(!qn(c))throw new TypeError(`${l} is not a ReadableStream.`)}a(N,"assertReadableStream");function M(c){return new Z(c)}a(M,"AcquireReadableStreamDefaultReader");function C(c,l){c._reader._readRequests.push(l)}a(C,"ReadableStreamAddReadRequest");function $(c,l,m){let I=c._reader._readRequests.shift();m?I._closeSteps():I._chunkSteps(l)}a($,"ReadableStreamFulfillReadRequest");function U(c){return c._reader._readRequests.length}a(U,"ReadableStreamGetNumReadRequests");function z(c){let l=c._reader;return!(l===void 0||!ae(l))}a(z,"ReadableStreamHasDefaultReader");class Z{static{a(this,"ReadableStreamDefaultReader")}constructor(l){if(ht(l,1,"ReadableStreamDefaultReader"),N(l,"First parameter"),Vn(l))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Ce(this,l),this._readRequests=new H}get closed(){return ae(this)?this._closedPromise:f(nt("closed"))}cancel(l=void 0){return ae(this)?this._ownerReadableStream===void 0?f(Me("cancel")):Se(this,l):f(nt("cancel"))}read(){if(!ae(this))return f(nt("read"));if(this._ownerReadableStream===void 0)return f(Me("read from"));let l,m,E=d((j,q)=>{l=j,m=q});return ce(this,{_chunkSteps:a(j=>l({value:j,done:!1}),"_chunkSteps"),_closeSteps:a(()=>l({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(j=>m(j),"_errorSteps")}),E}releaseLock(){if(!ae(this))throw nt("releaseLock");this._ownerReadableStream!==void 0&&De(this)}}Object.defineProperties(Z.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),r(Z.prototype.cancel,"cancel"),r(Z.prototype.read,"read"),r(Z.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Z.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function ae(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof Z}a(ae,"IsReadableStreamDefaultReader");function ce(c,l){let m=c._ownerReadableStream;m._disturbed=!0,m._state==="closed"?l._closeSteps():m._state==="errored"?l._errorSteps(m._storedError):m._readableStreamController[Y](l)}a(ce,"ReadableStreamDefaultReaderRead");function De(c){Le(c);let l=new TypeError("Reader was released");rt(c,l)}a(De,"ReadableStreamDefaultReaderRelease");function rt(c,l){let m=c._readRequests;c._readRequests=new H,m.forEach(E=>{E._errorSteps(l)})}a(rt,"ReadableStreamDefaultReaderErrorReadRequests");function nt(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(nt,"defaultReaderBrandCheckException");let Ne=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Be{static{a(this,"ReadableStreamAsyncIteratorImpl")}constructor(l,m){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=l,this._preventCancel=m}next(){let l=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?P(this._ongoingPromise,l,l):l(),this._ongoingPromise}return(l){let m=a(()=>this._returnSteps(l),"returnSteps");return this._ongoingPromise?P(this._ongoingPromise,m,m):m()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let l=this._reader,m,E,I=d((q,ie)=>{m=q,E=ie});return ce(l,{_chunkSteps:a(q=>{this._ongoingPromise=void 0,T(()=>m({value:q,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,Le(l),m({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(q=>{this._ongoingPromise=void 0,this._isFinished=!0,Le(l),E(q)},"_errorSteps")}),I}_returnSteps(l){if(this._isFinished)return Promise.resolve({value:l,done:!0});this._isFinished=!0;let m=this._reader;if(!this._preventCancel){let E=Se(m,l);return Le(m),P(E,()=>({value:l,done:!0}))}return Le(m),p({value:l,done:!0})}}let gt={next(){return pi(this)?this._asyncIteratorImpl.next():f(fi("next"))},return(c){return pi(this)?this._asyncIteratorImpl.return(c):f(fi("return"))}};Object.setPrototypeOf(gt,Ne);function di(c,l){let m=M(c),E=new Be(m,l),I=Object.create(gt);return I._asyncIteratorImpl=E,I}a(di,"AcquireReadableStreamAsyncIterator");function pi(c){if(!n(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Be}catch{return!1}}a(pi,"IsReadableStreamAsyncIterator");function fi(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(fi,"streamAsyncIteratorBrandCheckException");let sr=Number.isNaN||function(c){return c!==c};var yn,$t,yt;function We(c){return c.slice()}a(We,"CreateArrayFromList");function iP(c,l,m,E,I){new Uint8Array(c).set(new Uint8Array(m,E,I),l)}a(iP,"CopyDataBlockBytes");let _n=a(c=>(typeof c.transfer=="function"?_n=a(l=>l.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?_n=a(l=>structuredClone(l,{transfer:[l]}),"TransferArrayBuffer"):_n=a(l=>l,"TransferArrayBuffer"),_n(c)),"TransferArrayBuffer"),Mn=a(c=>(typeof c.detached=="boolean"?Mn=a(l=>l.detached,"IsDetachedBuffer"):Mn=a(l=>l.byteLength===0,"IsDetachedBuffer"),Mn(c)),"IsDetachedBuffer");function aP(c,l,m){if(c.slice)return c.slice(l,m);let E=m-l,I=new ArrayBuffer(E);return iP(I,0,c,l,E),I}a(aP,"ArrayBufferSlice");function Ru(c,l){let m=c[l];if(m!=null){if(typeof m!="function")throw new TypeError(`${String(l)} is not a function`);return m}}a(Ru,"GetMethod");function D0(c){let l={[Symbol.iterator]:()=>c.iterator},m=(async function*(){return yield*l})(),E=m.next;return{iterator:m,nextMethod:E,done:!1}}a(D0,"CreateAsyncFromSyncIterator");let fm=(yt=(yn=Symbol.asyncIterator)!==null&&yn!==void 0?yn:($t=Symbol.for)===null||$t===void 0?void 0:$t.call(Symbol,"Symbol.asyncIterator"))!==null&&yt!==void 0?yt:"@@asyncIterator";function sP(c,l="sync",m){if(m===void 0)if(l==="async"){if(m=Ru(c,fm),m===void 0){let j=Ru(c,Symbol.iterator),q=sP(c,"sync",j);return D0(q)}}else m=Ru(c,Symbol.iterator);if(m===void 0)throw new TypeError("The object is not iterable");let E=R(m,c,[]);if(!n(E))throw new TypeError("The iterator method must return an object");let I=E.next;return{iterator:E,nextMethod:I,done:!1}}a(sP,"GetIterator");function U0(c){let l=R(c.nextMethod,c.iterator,[]);if(!n(l))throw new TypeError("The iterator.next() method must return an object");return l}a(U0,"IteratorNext");function j0(c){return!!c.done}a(j0,"IteratorComplete");function M0(c){return c.value}a(M0,"IteratorValue");function L0(c){return!(typeof c!="number"||sr(c)||c<0)}a(L0,"IsNonNegativeNumber");function cP(c){let l=aP(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(l)}a(cP,"CloneAsUint8Array");function mm(c){let l=c._queue.shift();return c._queueTotalSize-=l.size,c._queueTotalSize<0&&(c._queueTotalSize=0),l.value}a(mm,"DequeueValue");function hm(c,l,m){if(!L0(m)||m===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:l,size:m}),c._queueTotalSize+=m}a(hm,"EnqueueValueWithSize");function F0(c){return c._queue.peek().value}a(F0,"PeekQueueValue");function Ln(c){c._queue=new H,c._queueTotalSize=0}a(Ln,"ResetQueue");function uP(c){return c===DataView}a(uP,"isDataViewConstructor");function B0(c){return uP(c.constructor)}a(B0,"isDataView");function q0(c){return uP(c)?1:c.BYTES_PER_ELEMENT}a(q0,"arrayBufferViewElementSize");class Eo{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!gm(this))throw Em("view");return this._view}respond(l){if(!gm(this))throw Em("respond");if(ht(l,1,"respond"),l=O(l,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Mn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");$u(this._associatedReadableByteStreamController,l)}respondWithNewView(l){if(!gm(this))throw Em("respondWithNewView");if(ht(l,1,"respondWithNewView"),!ArrayBuffer.isView(l))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Mn(l.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Nu(this._associatedReadableByteStreamController,l)}}Object.defineProperties(Eo.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),r(Eo.prototype.respond,"respond"),r(Eo.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Eo.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class bn{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Po(this))throw Ba("byobRequest");return vm(this)}get desiredSize(){if(!Po(this))throw Ba("desiredSize");return bP(this)}close(){if(!Po(this))throw Ba("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let l=this._controlledReadableByteStream._state;if(l!=="readable")throw new TypeError(`The stream (in ${l} state) is not in the readable state and cannot be closed`);Fa(this)}enqueue(l){if(!Po(this))throw Ba("enqueue");if(ht(l,1,"enqueue"),!ArrayBuffer.isView(l))throw new TypeError("chunk must be an array buffer view");if(l.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(l.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let m=this._controlledReadableByteStream._state;if(m!=="readable")throw new TypeError(`The stream (in ${m} state) is not in the readable state and cannot be enqueued to`);ku(this,l)}error(l=void 0){if(!Po(this))throw Ba("error");Tr(this,l)}[ue](l){lP(this),Ln(this);let m=this._cancelAlgorithm(l);return Ou(this),m}[Y](l){let m=this._controlledReadableByteStream;if(this._queueTotalSize>0){_P(this,l);return}let E=this._autoAllocateChunkSize;if(E!==void 0){let I;try{I=new ArrayBuffer(E)}catch(q){l._errorSteps(q);return}let j={buffer:I,bufferByteLength:E,byteOffset:0,byteLength:E,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(j)}C(m,l),So(this)}[Ze](){if(this._pendingPullIntos.length>0){let l=this._pendingPullIntos.peek();l.readerType="none",this._pendingPullIntos=new H,this._pendingPullIntos.push(l)}}}Object.defineProperties(bn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),r(bn.prototype.close,"close"),r(bn.prototype.enqueue,"enqueue"),r(bn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(bn.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Po(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof bn}a(Po,"IsReadableByteStreamController");function gm(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Eo}a(gm,"IsReadableStreamBYOBRequest");function So(c){if(!W0(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let m=c._pullAlgorithm();y(m,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,So(c)),null),E=>(Tr(c,E),null))}a(So,"ReadableByteStreamControllerCallPullIfNeeded");function lP(c){_m(c),c._pendingPullIntos=new H}a(lP,"ReadableByteStreamControllerClearPendingPullIntos");function ym(c,l){let m=!1;c._state==="closed"&&(m=!0);let E=dP(l);l.readerType==="default"?$(c,E,m):e$(c,E,m)}a(ym,"ReadableByteStreamControllerCommitPullIntoDescriptor");function dP(c){let l=c.bytesFilled,m=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,l/m)}a(dP,"ReadableByteStreamControllerConvertPullIntoDescriptor");function Cu(c,l,m,E){c._queue.push({buffer:l,byteOffset:m,byteLength:E}),c._queueTotalSize+=E}a(Cu,"ReadableByteStreamControllerEnqueueChunkToQueue");function pP(c,l,m,E){let I;try{I=aP(l,m,m+E)}catch(j){throw Tr(c,j),j}Cu(c,I,0,E)}a(pP,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function fP(c,l){l.bytesFilled>0&&pP(c,l.buffer,l.byteOffset,l.bytesFilled),mi(c)}a(fP,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function mP(c,l){let m=Math.min(c._queueTotalSize,l.byteLength-l.bytesFilled),E=l.bytesFilled+m,I=m,j=!1,q=E%l.elementSize,ie=E-q;ie>=l.minimumFill&&(I=ie-l.bytesFilled,j=!0);let _e=c._queue;for(;I>0;){let le=_e.peek(),Pe=Math.min(I,le.byteLength),we=l.byteOffset+l.bytesFilled;iP(l.buffer,we,le.buffer,le.byteOffset,Pe),le.byteLength===Pe?_e.shift():(le.byteOffset+=Pe,le.byteLength-=Pe),c._queueTotalSize-=Pe,hP(c,Pe,l),I-=Pe}return j}a(mP,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function hP(c,l,m){m.bytesFilled+=l}a(hP,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function gP(c){c._queueTotalSize===0&&c._closeRequested?(Ou(c),Wa(c._controlledReadableByteStream)):So(c)}a(gP,"ReadableByteStreamControllerHandleQueueDrain");function _m(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(_m,"ReadableByteStreamControllerInvalidateBYOBRequest");function bm(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let l=c._pendingPullIntos.peek();mP(c,l)&&(mi(c),ym(c._controlledReadableByteStream,l))}}a(bm,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function V0(c){let l=c._controlledReadableByteStream._reader;for(;l._readRequests.length>0;){if(c._queueTotalSize===0)return;let m=l._readRequests.shift();_P(c,m)}}a(V0,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function H0(c,l,m,E){let I=c._controlledReadableByteStream,j=l.constructor,q=q0(j),{byteOffset:ie,byteLength:_e}=l,le=m*q,Pe;try{Pe=_n(l.buffer)}catch(Qe){E._errorSteps(Qe);return}let we={buffer:Pe,bufferByteLength:Pe.byteLength,byteOffset:ie,byteLength:_e,bytesFilled:0,minimumFill:le,elementSize:q,viewConstructor:j,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(we),PP(I,E);return}if(I._state==="closed"){let Qe=new j(we.buffer,we.byteOffset,0);E._closeSteps(Qe);return}if(c._queueTotalSize>0){if(mP(c,we)){let Qe=dP(we);gP(c),E._chunkSteps(Qe);return}if(c._closeRequested){let Qe=new TypeError("Insufficient bytes to fill elements in the given buffer");Tr(c,Qe),E._errorSteps(Qe);return}}c._pendingPullIntos.push(we),PP(I,E),So(c)}a(H0,"ReadableByteStreamControllerPullInto");function Z0(c,l){l.readerType==="none"&&mi(c);let m=c._controlledReadableByteStream;if(Pm(m))for(;SP(m)>0;){let E=mi(c);ym(m,E)}}a(Z0,"ReadableByteStreamControllerRespondInClosedState");function G0(c,l,m){if(hP(c,l,m),m.readerType==="none"){fP(c,m),bm(c);return}if(m.bytesFilled<m.minimumFill)return;mi(c);let E=m.bytesFilled%m.elementSize;if(E>0){let I=m.byteOffset+m.bytesFilled;pP(c,m.buffer,I-E,E)}m.bytesFilled-=E,ym(c._controlledReadableByteStream,m),bm(c)}a(G0,"ReadableByteStreamControllerRespondInReadableState");function yP(c,l){let m=c._pendingPullIntos.peek();_m(c),c._controlledReadableByteStream._state==="closed"?Z0(c,m):G0(c,l,m),So(c)}a(yP,"ReadableByteStreamControllerRespondInternal");function mi(c){return c._pendingPullIntos.shift()}a(mi,"ReadableByteStreamControllerShiftPendingPullInto");function W0(c){let l=c._controlledReadableByteStream;return l._state!=="readable"||c._closeRequested||!c._started?!1:!!(z(l)&&U(l)>0||Pm(l)&&SP(l)>0||bP(c)>0)}a(W0,"ReadableByteStreamControllerShouldCallPull");function Ou(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Ou,"ReadableByteStreamControllerClearAlgorithms");function Fa(c){let l=c._controlledReadableByteStream;if(!(c._closeRequested||l._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let m=c._pendingPullIntos.peek();if(m.bytesFilled%m.elementSize!==0){let E=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Tr(c,E),E}}Ou(c),Wa(l)}}a(Fa,"ReadableByteStreamControllerClose");function ku(c,l){let m=c._controlledReadableByteStream;if(c._closeRequested||m._state!=="readable")return;let{buffer:E,byteOffset:I,byteLength:j}=l;if(Mn(E))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let q=_n(E);if(c._pendingPullIntos.length>0){let ie=c._pendingPullIntos.peek();if(Mn(ie.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");_m(c),ie.buffer=_n(ie.buffer),ie.readerType==="none"&&fP(c,ie)}if(z(m))if(V0(c),U(m)===0)Cu(c,q,I,j);else{c._pendingPullIntos.length>0&&mi(c);let ie=new Uint8Array(q,I,j);$(m,ie,!1)}else Pm(m)?(Cu(c,q,I,j),bm(c)):Cu(c,q,I,j);So(c)}a(ku,"ReadableByteStreamControllerEnqueue");function Tr(c,l){let m=c._controlledReadableByteStream;m._state==="readable"&&(lP(c),Ln(c),Ou(c),GP(m,l))}a(Tr,"ReadableByteStreamControllerError");function _P(c,l){let m=c._queue.shift();c._queueTotalSize-=m.byteLength,gP(c);let E=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);l._chunkSteps(E)}a(_P,"ReadableByteStreamControllerFillReadRequestFromQueue");function vm(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let l=c._pendingPullIntos.peek(),m=new Uint8Array(l.buffer,l.byteOffset+l.bytesFilled,l.byteLength-l.bytesFilled),E=Object.create(Eo.prototype);K0(E,c,m),c._byobRequest=E}return c._byobRequest}a(vm,"ReadableByteStreamControllerGetBYOBRequest");function bP(c){let l=c._controlledReadableByteStream._state;return l==="errored"?null:l==="closed"?0:c._strategyHWM-c._queueTotalSize}a(bP,"ReadableByteStreamControllerGetDesiredSize");function $u(c,l){let m=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(l!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(l===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(m.bytesFilled+l>m.byteLength)throw new RangeError("bytesWritten out of range")}m.buffer=_n(m.buffer),yP(c,l)}a($u,"ReadableByteStreamControllerRespond");function Nu(c,l){let m=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(l.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(l.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(m.byteOffset+m.bytesFilled!==l.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(m.bufferByteLength!==l.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(m.bytesFilled+l.byteLength>m.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let I=l.byteLength;m.buffer=_n(l.buffer),yP(c,I)}a(Nu,"ReadableByteStreamControllerRespondWithNewView");function vP(c,l,m,E,I,j,q){l._controlledReadableByteStream=c,l._pullAgain=!1,l._pulling=!1,l._byobRequest=null,l._queue=l._queueTotalSize=void 0,Ln(l),l._closeRequested=!1,l._started=!1,l._strategyHWM=j,l._pullAlgorithm=E,l._cancelAlgorithm=I,l._autoAllocateChunkSize=q,l._pendingPullIntos=new H,c._readableStreamController=l;let ie=m();y(p(ie),()=>(l._started=!0,So(l),null),_e=>(Tr(l,_e),null))}a(vP,"SetUpReadableByteStreamController");function J0(c,l,m){let E=Object.create(bn.prototype),I,j,q;l.start!==void 0?I=a(()=>l.start(E),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),l.pull!==void 0?j=a(()=>l.pull(E),"pullAlgorithm"):j=a(()=>p(void 0),"pullAlgorithm"),l.cancel!==void 0?q=a(_e=>l.cancel(_e),"cancelAlgorithm"):q=a(()=>p(void 0),"cancelAlgorithm");let ie=l.autoAllocateChunkSize;if(ie===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");vP(c,E,I,j,q,m,ie)}a(J0,"SetUpReadableByteStreamControllerFromUnderlyingSource");function K0(c,l,m){c._associatedReadableByteStreamController=l,c._view=m}a(K0,"SetUpReadableStreamBYOBRequest");function Em(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(Em,"byobRequestBrandCheckException");function Ba(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(Ba,"byteStreamControllerBrandCheckException");function X0(c,l){Gt(c,l);let m=c?.mode;return{mode:m===void 0?void 0:Q0(m,`${l} has member 'mode' that`)}}a(X0,"convertReaderOptions");function Q0(c,l){if(c=`${c}`,c!=="byob")throw new TypeError(`${l} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a(Q0,"convertReadableStreamReaderMode");function Y0(c,l){var m;Gt(c,l);let E=(m=c?.min)!==null&&m!==void 0?m:1;return{min:O(E,`${l} has member 'min' that`)}}a(Y0,"convertByobReadOptions");function EP(c){return new Fn(c)}a(EP,"AcquireReadableStreamBYOBReader");function PP(c,l){c._reader._readIntoRequests.push(l)}a(PP,"ReadableStreamAddReadIntoRequest");function e$(c,l,m){let I=c._reader._readIntoRequests.shift();m?I._closeSteps(l):I._chunkSteps(l)}a(e$,"ReadableStreamFulfillReadIntoRequest");function SP(c){return c._reader._readIntoRequests.length}a(SP,"ReadableStreamGetNumReadIntoRequests");function Pm(c){let l=c._reader;return!(l===void 0||!To(l))}a(Pm,"ReadableStreamHasBYOBReader");class Fn{static{a(this,"ReadableStreamBYOBReader")}constructor(l){if(ht(l,1,"ReadableStreamBYOBReader"),N(l,"First parameter"),Vn(l))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Po(l._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Ce(this,l),this._readIntoRequests=new H}get closed(){return To(this)?this._closedPromise:f(zu("closed"))}cancel(l=void 0){return To(this)?this._ownerReadableStream===void 0?f(Me("cancel")):Se(this,l):f(zu("cancel"))}read(l,m={}){if(!To(this))return f(zu("read"));if(!ArrayBuffer.isView(l))return f(new TypeError("view must be an array buffer view"));if(l.byteLength===0)return f(new TypeError("view must have non-zero byteLength"));if(l.buffer.byteLength===0)return f(new TypeError("view's buffer must have non-zero byteLength"));if(Mn(l.buffer))return f(new TypeError("view's buffer has been detached"));let E;try{E=Y0(m,"options")}catch(le){return f(le)}let I=E.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(B0(l)){if(I>l.byteLength)return f(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(I>l.length)return f(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return f(Me("read from"));let j,q,ie=d((le,Pe)=>{j=le,q=Pe});return TP(this,l,I,{_chunkSteps:a(le=>j({value:le,done:!1}),"_chunkSteps"),_closeSteps:a(le=>j({value:le,done:!0}),"_closeSteps"),_errorSteps:a(le=>q(le),"_errorSteps")}),ie}releaseLock(){if(!To(this))throw zu("releaseLock");this._ownerReadableStream!==void 0&&t$(this)}}Object.defineProperties(Fn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),r(Fn.prototype.cancel,"cancel"),r(Fn.prototype.read,"read"),r(Fn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Fn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function To(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Fn}a(To,"IsReadableStreamBYOBReader");function TP(c,l,m,E){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?E._errorSteps(I._storedError):H0(I._readableStreamController,l,m,E)}a(TP,"ReadableStreamBYOBReaderRead");function t$(c){Le(c);let l=new TypeError("Reader was released");xP(c,l)}a(t$,"ReadableStreamBYOBReaderRelease");function xP(c,l){let m=c._readIntoRequests;c._readIntoRequests=new H,m.forEach(E=>{E._errorSteps(l)})}a(xP,"ReadableStreamBYOBReaderErrorReadIntoRequests");function zu(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(zu,"byobReaderBrandCheckException");function qa(c,l){let{highWaterMark:m}=c;if(m===void 0)return l;if(sr(m)||m<0)throw new RangeError("Invalid highWaterMark");return m}a(qa,"ExtractHighWaterMark");function Du(c){let{size:l}=c;return l||(()=>1)}a(Du,"ExtractSizeAlgorithm");function Uu(c,l){Gt(c,l);let m=c?.highWaterMark,E=c?.size;return{highWaterMark:m===void 0?void 0:x(m),size:E===void 0?void 0:r$(E,`${l} has member 'size' that`)}}a(Uu,"convertQueuingStrategy");function r$(c,l){return jt(c,l),m=>x(c(m))}a(r$,"convertQueuingStrategySize");function n$(c,l){Gt(c,l);let m=c?.abort,E=c?.close,I=c?.start,j=c?.type,q=c?.write;return{abort:m===void 0?void 0:o$(m,c,`${l} has member 'abort' that`),close:E===void 0?void 0:i$(E,c,`${l} has member 'close' that`),start:I===void 0?void 0:a$(I,c,`${l} has member 'start' that`),write:q===void 0?void 0:s$(q,c,`${l} has member 'write' that`),type:j}}a(n$,"convertUnderlyingSink");function o$(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(o$,"convertUnderlyingSinkAbortCallback");function i$(c,l,m){return jt(c,m),()=>V(c,l,[])}a(i$,"convertUnderlyingSinkCloseCallback");function a$(c,l,m){return jt(c,m),E=>R(c,l,[E])}a(a$,"convertUnderlyingSinkStartCallback");function s$(c,l,m){return jt(c,m),(E,I)=>V(c,l,[E,I])}a(s$,"convertUnderlyingSinkWriteCallback");function AP(c,l){if(!hi(c))throw new TypeError(`${l} is not a WritableStream.`)}a(AP,"assertWritableStream");function c$(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(c$,"isAbortSignal");let u$=typeof AbortController=="function";function l$(){if(u$)return new AbortController}a(l$,"createAbortController");class Bn{static{a(this,"WritableStream")}constructor(l={},m={}){l===void 0?l=null:Mt(l,"First parameter");let E=Uu(m,"Second parameter"),I=n$(l,"First parameter");if(IP(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let q=Du(E),ie=qa(E,1);T$(this,I,ie,q)}get locked(){if(!hi(this))throw Bu("locked");return gi(this)}abort(l=void 0){return hi(this)?gi(this)?f(new TypeError("Cannot abort a stream that already has a writer")):ju(this,l):f(Bu("abort"))}close(){return hi(this)?gi(this)?f(new TypeError("Cannot close a stream that already has a writer")):rn(this)?f(new TypeError("Cannot close an already-closing stream")):RP(this):f(Bu("close"))}getWriter(){if(!hi(this))throw Bu("getWriter");return wP(this)}}Object.defineProperties(Bn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),r(Bn.prototype.abort,"abort"),r(Bn.prototype.close,"close"),r(Bn.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Bn.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function wP(c){return new vn(c)}a(wP,"AcquireWritableStreamDefaultWriter");function d$(c,l,m,E,I=1,j=()=>1){let q=Object.create(Bn.prototype);IP(q);let ie=Object.create(yi.prototype);return zP(q,ie,c,l,m,E,I,j),q}a(d$,"CreateWritableStream");function IP(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new H,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(IP,"InitializeWritableStream");function hi(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof Bn}a(hi,"IsWritableStream");function gi(c){return c._writer!==void 0}a(gi,"IsWritableStreamLocked");function ju(c,l){var m;if(c._state==="closed"||c._state==="errored")return p(void 0);c._writableStreamController._abortReason=l,(m=c._writableStreamController._abortController)===null||m===void 0||m.abort(l);let E=c._state;if(E==="closed"||E==="errored")return p(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let I=!1;E==="erroring"&&(I=!0,l=void 0);let j=d((q,ie)=>{c._pendingAbortRequest={_promise:void 0,_resolve:q,_reject:ie,_reason:l,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=j,I||Tm(c,l),j}a(ju,"WritableStreamAbort");function RP(c){let l=c._state;if(l==="closed"||l==="errored")return f(new TypeError(`The stream (in ${l} state) is not in the writable state and cannot be closed`));let m=d((I,j)=>{let q={_resolve:I,_reject:j};c._closeRequest=q}),E=c._writer;return E!==void 0&&c._backpressure&&l==="writable"&&km(E),x$(c._writableStreamController),m}a(RP,"WritableStreamClose");function p$(c){return d((m,E)=>{let I={_resolve:m,_reject:E};c._writeRequests.push(I)})}a(p$,"WritableStreamAddWriteRequest");function Sm(c,l){if(c._state==="writable"){Tm(c,l);return}xm(c)}a(Sm,"WritableStreamDealWithRejection");function Tm(c,l){let m=c._writableStreamController;c._state="erroring",c._storedError=l;let E=c._writer;E!==void 0&&OP(E,l),!y$(c)&&m._started&&xm(c)}a(Tm,"WritableStreamStartErroring");function xm(c){c._state="errored",c._writableStreamController[re]();let l=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(l)}),c._writeRequests=new H,c._pendingAbortRequest===void 0){Mu(c);return}let m=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,m._wasAlreadyErroring){m._reject(l),Mu(c);return}let E=c._writableStreamController[G](m._reason);y(E,()=>(m._resolve(),Mu(c),null),I=>(m._reject(I),Mu(c),null))}a(xm,"WritableStreamFinishErroring");function f$(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(f$,"WritableStreamFinishInFlightWrite");function m$(c,l){c._inFlightWriteRequest._reject(l),c._inFlightWriteRequest=void 0,Sm(c,l)}a(m$,"WritableStreamFinishInFlightWriteWithError");function h$(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let m=c._writer;m!==void 0&&MP(m)}a(h$,"WritableStreamFinishInFlightClose");function g$(c,l){c._inFlightCloseRequest._reject(l),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(l),c._pendingAbortRequest=void 0),Sm(c,l)}a(g$,"WritableStreamFinishInFlightCloseWithError");function rn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(rn,"WritableStreamCloseQueuedOrInFlight");function y$(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(y$,"WritableStreamHasOperationMarkedInFlight");function _$(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(_$,"WritableStreamMarkCloseRequestInFlight");function b$(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(b$,"WritableStreamMarkFirstWriteRequestInFlight");function Mu(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let l=c._writer;l!==void 0&&Cm(l,c._storedError)}a(Mu,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Am(c,l){let m=c._writer;m!==void 0&&l!==c._backpressure&&(l?k$(m):km(m)),c._backpressure=l}a(Am,"WritableStreamUpdateBackpressure");class vn{static{a(this,"WritableStreamDefaultWriter")}constructor(l){if(ht(l,1,"WritableStreamDefaultWriter"),AP(l,"First parameter"),gi(l))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=l,l._writer=this;let m=l._state;if(m==="writable")!rn(l)&&l._backpressure?Vu(this):LP(this),qu(this);else if(m==="erroring")Om(this,l._storedError),qu(this);else if(m==="closed")LP(this),C$(this);else{let E=l._storedError;Om(this,E),jP(this,E)}}get closed(){return xo(this)?this._closedPromise:f(Ao("closed"))}get desiredSize(){if(!xo(this))throw Ao("desiredSize");if(this._ownerWritableStream===void 0)throw Ha("desiredSize");return S$(this)}get ready(){return xo(this)?this._readyPromise:f(Ao("ready"))}abort(l=void 0){return xo(this)?this._ownerWritableStream===void 0?f(Ha("abort")):v$(this,l):f(Ao("abort"))}close(){if(!xo(this))return f(Ao("close"));let l=this._ownerWritableStream;return l===void 0?f(Ha("close")):rn(l)?f(new TypeError("Cannot close an already-closing stream")):CP(this)}releaseLock(){if(!xo(this))throw Ao("releaseLock");this._ownerWritableStream!==void 0&&kP(this)}write(l=void 0){return xo(this)?this._ownerWritableStream===void 0?f(Ha("write to")):$P(this,l):f(Ao("write"))}}Object.defineProperties(vn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),r(vn.prototype.abort,"abort"),r(vn.prototype.close,"close"),r(vn.prototype.releaseLock,"releaseLock"),r(vn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(vn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function xo(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof vn}a(xo,"IsWritableStreamDefaultWriter");function v$(c,l){let m=c._ownerWritableStream;return ju(m,l)}a(v$,"WritableStreamDefaultWriterAbort");function CP(c){let l=c._ownerWritableStream;return RP(l)}a(CP,"WritableStreamDefaultWriterClose");function E$(c){let l=c._ownerWritableStream,m=l._state;return rn(l)||m==="closed"?p(void 0):m==="errored"?f(l._storedError):CP(c)}a(E$,"WritableStreamDefaultWriterCloseWithErrorPropagation");function P$(c,l){c._closedPromiseState==="pending"?Cm(c,l):O$(c,l)}a(P$,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function OP(c,l){c._readyPromiseState==="pending"?FP(c,l):$$(c,l)}a(OP,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function S$(c){let l=c._ownerWritableStream,m=l._state;return m==="errored"||m==="erroring"?null:m==="closed"?0:DP(l._writableStreamController)}a(S$,"WritableStreamDefaultWriterGetDesiredSize");function kP(c){let l=c._ownerWritableStream,m=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");OP(c,m),P$(c,m),l._writer=void 0,c._ownerWritableStream=void 0}a(kP,"WritableStreamDefaultWriterRelease");function $P(c,l){let m=c._ownerWritableStream,E=m._writableStreamController,I=A$(E,l);if(m!==c._ownerWritableStream)return f(Ha("write to"));let j=m._state;if(j==="errored")return f(m._storedError);if(rn(m)||j==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(j==="erroring")return f(m._storedError);let q=p$(m);return w$(E,l,I),q}a($P,"WritableStreamDefaultWriterWrite");let NP={};class yi{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!wm(this))throw Rm("abortReason");return this._abortReason}get signal(){if(!wm(this))throw Rm("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(l=void 0){if(!wm(this))throw Rm("error");this._controlledWritableStream._state==="writable"&&UP(this,l)}[G](l){let m=this._abortAlgorithm(l);return Lu(this),m}[re](){Ln(this)}}Object.defineProperties(yi.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(yi.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function wm(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof yi}a(wm,"IsWritableStreamDefaultController");function zP(c,l,m,E,I,j,q,ie){l._controlledWritableStream=c,c._writableStreamController=l,l._queue=void 0,l._queueTotalSize=void 0,Ln(l),l._abortReason=void 0,l._abortController=l$(),l._started=!1,l._strategySizeAlgorithm=ie,l._strategyHWM=q,l._writeAlgorithm=E,l._closeAlgorithm=I,l._abortAlgorithm=j;let _e=Im(l);Am(c,_e);let le=m(),Pe=p(le);y(Pe,()=>(l._started=!0,Fu(l),null),we=>(l._started=!0,Sm(c,we),null))}a(zP,"SetUpWritableStreamDefaultController");function T$(c,l,m,E){let I=Object.create(yi.prototype),j,q,ie,_e;l.start!==void 0?j=a(()=>l.start(I),"startAlgorithm"):j=a(()=>{},"startAlgorithm"),l.write!==void 0?q=a(le=>l.write(le,I),"writeAlgorithm"):q=a(()=>p(void 0),"writeAlgorithm"),l.close!==void 0?ie=a(()=>l.close(),"closeAlgorithm"):ie=a(()=>p(void 0),"closeAlgorithm"),l.abort!==void 0?_e=a(le=>l.abort(le),"abortAlgorithm"):_e=a(()=>p(void 0),"abortAlgorithm"),zP(c,I,j,q,ie,_e,m,E)}a(T$,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Lu(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Lu,"WritableStreamDefaultControllerClearAlgorithms");function x$(c){hm(c,NP,0),Fu(c)}a(x$,"WritableStreamDefaultControllerClose");function A$(c,l){try{return c._strategySizeAlgorithm(l)}catch(m){return Va(c,m),1}}a(A$,"WritableStreamDefaultControllerGetChunkSize");function DP(c){return c._strategyHWM-c._queueTotalSize}a(DP,"WritableStreamDefaultControllerGetDesiredSize");function w$(c,l,m){try{hm(c,l,m)}catch(I){Va(c,I);return}let E=c._controlledWritableStream;if(!rn(E)&&E._state==="writable"){let I=Im(c);Am(E,I)}Fu(c)}a(w$,"WritableStreamDefaultControllerWrite");function Fu(c){let l=c._controlledWritableStream;if(!c._started||l._inFlightWriteRequest!==void 0)return;if(l._state==="erroring"){xm(l);return}if(c._queue.length===0)return;let E=F0(c);E===NP?I$(c):R$(c,E)}a(Fu,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function Va(c,l){c._controlledWritableStream._state==="writable"&&UP(c,l)}a(Va,"WritableStreamDefaultControllerErrorIfNeeded");function I$(c){let l=c._controlledWritableStream;_$(l),mm(c);let m=c._closeAlgorithm();Lu(c),y(m,()=>(h$(l),null),E=>(g$(l,E),null))}a(I$,"WritableStreamDefaultControllerProcessClose");function R$(c,l){let m=c._controlledWritableStream;b$(m);let E=c._writeAlgorithm(l);y(E,()=>{f$(m);let I=m._state;if(mm(c),!rn(m)&&I==="writable"){let j=Im(c);Am(m,j)}return Fu(c),null},I=>(m._state==="writable"&&Lu(c),m$(m,I),null))}a(R$,"WritableStreamDefaultControllerProcessWrite");function Im(c){return DP(c)<=0}a(Im,"WritableStreamDefaultControllerGetBackpressure");function UP(c,l){let m=c._controlledWritableStream;Lu(c),Tm(m,l)}a(UP,"WritableStreamDefaultControllerError");function Bu(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(Bu,"streamBrandCheckException$2");function Rm(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(Rm,"defaultControllerBrandCheckException$2");function Ao(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(Ao,"defaultWriterBrandCheckException");function Ha(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(Ha,"defaultWriterLockException");function qu(c){c._closedPromise=d((l,m)=>{c._closedPromise_resolve=l,c._closedPromise_reject=m,c._closedPromiseState="pending"})}a(qu,"defaultWriterClosedPromiseInitialize");function jP(c,l){qu(c),Cm(c,l)}a(jP,"defaultWriterClosedPromiseInitializeAsRejected");function C$(c){qu(c),MP(c)}a(C$,"defaultWriterClosedPromiseInitializeAsResolved");function Cm(c,l){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(l),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(Cm,"defaultWriterClosedPromiseReject");function O$(c,l){jP(c,l)}a(O$,"defaultWriterClosedPromiseResetToRejected");function MP(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}a(MP,"defaultWriterClosedPromiseResolve");function Vu(c){c._readyPromise=d((l,m)=>{c._readyPromise_resolve=l,c._readyPromise_reject=m}),c._readyPromiseState="pending"}a(Vu,"defaultWriterReadyPromiseInitialize");function Om(c,l){Vu(c),FP(c,l)}a(Om,"defaultWriterReadyPromiseInitializeAsRejected");function LP(c){Vu(c),km(c)}a(LP,"defaultWriterReadyPromiseInitializeAsResolved");function FP(c,l){c._readyPromise_reject!==void 0&&(S(c._readyPromise),c._readyPromise_reject(l),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(FP,"defaultWriterReadyPromiseReject");function k$(c){Vu(c)}a(k$,"defaultWriterReadyPromiseReset");function $$(c,l){Om(c,l)}a($$,"defaultWriterReadyPromiseResetToRejected");function km(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}a(km,"defaultWriterReadyPromiseResolve");function N$(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(N$,"getGlobals");let $m=N$();function z$(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(z$,"isDOMExceptionConstructor");function D$(){let c=$m?.DOMException;return z$(c)?c:void 0}a(D$,"getFromGlobal");function U$(){let c=a(function(m,E){this.message=m||"",this.name=E||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return r(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(U$,"createPolyfill");let j$=D$()||U$();function BP(c,l,m,E,I,j){let q=M(c),ie=wP(l);c._disturbed=!0;let _e=!1,le=p(void 0);return d((Pe,we)=>{let Qe;if(j!==void 0){if(Qe=a(()=>{let pe=j.reason!==void 0?j.reason:new j$("Aborted","AbortError"),Oe=[];E||Oe.push(()=>l._state==="writable"?ju(l,pe):p(void 0)),I||Oe.push(()=>c._state==="readable"?jr(c,pe):p(void 0)),Wt(()=>Promise.all(Oe.map(Ye=>Ye())),!0,pe)},"abortAlgorithm"),j.aborted){Qe();return}j.addEventListener("abort",Qe)}function Mr(){return d((pe,Oe)=>{function Ye(cr){cr?pe():g(Ei(),Ye,Oe)}a(Ye,"next"),Ye(!1)})}a(Mr,"pipeLoop");function Ei(){return _e?p(!0):g(ie._readyPromise,()=>d((pe,Oe)=>{ce(q,{_chunkSteps:a(Ye=>{le=g($P(ie,Ye),void 0,t),pe(!1)},"_chunkSteps"),_closeSteps:a(()=>pe(!0),"_closeSteps"),_errorSteps:Oe})}))}if(a(Ei,"pipeStep"),Pn(c,q._closedPromise,pe=>(E?xr(!0,pe):Wt(()=>ju(l,pe),!0,pe),null)),Pn(l,ie._closedPromise,pe=>(I?xr(!0,pe):Wt(()=>jr(c,pe),!0,pe),null)),Lt(c,q._closedPromise,()=>(m?xr():Wt(()=>E$(ie)),null)),rn(l)||l._state==="closed"){let pe=new TypeError("the destination writable stream closed before all data could be piped to it");I?xr(!0,pe):Wt(()=>jr(c,pe),!0,pe)}S(Mr());function Zn(){let pe=le;return g(le,()=>pe!==le?Zn():void 0)}a(Zn,"waitForWritesToFinish");function Pn(pe,Oe,Ye){pe._state==="errored"?Ye(pe._storedError):_(Oe,Ye)}a(Pn,"isOrBecomesErrored");function Lt(pe,Oe,Ye){pe._state==="closed"?Ye():h(Oe,Ye)}a(Lt,"isOrBecomesClosed");function Wt(pe,Oe,Ye){if(_e)return;_e=!0,l._state==="writable"&&!rn(l)?h(Zn(),cr):cr();function cr(){return y(pe(),()=>Sn(Oe,Ye),Pi=>Sn(!0,Pi)),null}a(cr,"doTheRest")}a(Wt,"shutdownWithAction");function xr(pe,Oe){_e||(_e=!0,l._state==="writable"&&!rn(l)?h(Zn(),()=>Sn(pe,Oe)):Sn(pe,Oe))}a(xr,"shutdown");function Sn(pe,Oe){return kP(ie),Le(q),j!==void 0&&j.removeEventListener("abort",Qe),pe?we(Oe):Pe(void 0),null}a(Sn,"finalize")})}a(BP,"ReadableStreamPipeTo");class En{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Hu(this))throw Gu("desiredSize");return Nm(this)}close(){if(!Hu(this))throw Gu("close");if(!bi(this))throw new TypeError("The stream is not in a state that permits close");wo(this)}enqueue(l=void 0){if(!Hu(this))throw Gu("enqueue");if(!bi(this))throw new TypeError("The stream is not in a state that permits enqueue");return _i(this,l)}error(l=void 0){if(!Hu(this))throw Gu("error");Ur(this,l)}[ue](l){Ln(this);let m=this._cancelAlgorithm(l);return Zu(this),m}[Y](l){let m=this._controlledReadableStream;if(this._queue.length>0){let E=mm(this);this._closeRequested&&this._queue.length===0?(Zu(this),Wa(m)):Za(this),l._chunkSteps(E)}else C(m,l),Za(this)}[Ze](){}}Object.defineProperties(En.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),r(En.prototype.close,"close"),r(En.prototype.enqueue,"enqueue"),r(En.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(En.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Hu(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof En}a(Hu,"IsReadableStreamDefaultController");function Za(c){if(!qP(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let m=c._pullAlgorithm();y(m,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Za(c)),null),E=>(Ur(c,E),null))}a(Za,"ReadableStreamDefaultControllerCallPullIfNeeded");function qP(c){let l=c._controlledReadableStream;return!bi(c)||!c._started?!1:!!(Vn(l)&&U(l)>0||Nm(c)>0)}a(qP,"ReadableStreamDefaultControllerShouldCallPull");function Zu(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Zu,"ReadableStreamDefaultControllerClearAlgorithms");function wo(c){if(!bi(c))return;let l=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Zu(c),Wa(l))}a(wo,"ReadableStreamDefaultControllerClose");function _i(c,l){if(!bi(c))return;let m=c._controlledReadableStream;if(Vn(m)&&U(m)>0)$(m,l,!1);else{let E;try{E=c._strategySizeAlgorithm(l)}catch(I){throw Ur(c,I),I}try{hm(c,l,E)}catch(I){throw Ur(c,I),I}}Za(c)}a(_i,"ReadableStreamDefaultControllerEnqueue");function Ur(c,l){let m=c._controlledReadableStream;m._state==="readable"&&(Ln(c),Zu(c),GP(m,l))}a(Ur,"ReadableStreamDefaultControllerError");function Nm(c){let l=c._controlledReadableStream._state;return l==="errored"?null:l==="closed"?0:c._strategyHWM-c._queueTotalSize}a(Nm,"ReadableStreamDefaultControllerGetDesiredSize");function M$(c){return!qP(c)}a(M$,"ReadableStreamDefaultControllerHasBackpressure");function bi(c){let l=c._controlledReadableStream._state;return!c._closeRequested&&l==="readable"}a(bi,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function VP(c,l,m,E,I,j,q){l._controlledReadableStream=c,l._queue=void 0,l._queueTotalSize=void 0,Ln(l),l._started=!1,l._closeRequested=!1,l._pullAgain=!1,l._pulling=!1,l._strategySizeAlgorithm=q,l._strategyHWM=j,l._pullAlgorithm=E,l._cancelAlgorithm=I,c._readableStreamController=l;let ie=m();y(p(ie),()=>(l._started=!0,Za(l),null),_e=>(Ur(l,_e),null))}a(VP,"SetUpReadableStreamDefaultController");function L$(c,l,m,E){let I=Object.create(En.prototype),j,q,ie;l.start!==void 0?j=a(()=>l.start(I),"startAlgorithm"):j=a(()=>{},"startAlgorithm"),l.pull!==void 0?q=a(()=>l.pull(I),"pullAlgorithm"):q=a(()=>p(void 0),"pullAlgorithm"),l.cancel!==void 0?ie=a(_e=>l.cancel(_e),"cancelAlgorithm"):ie=a(()=>p(void 0),"cancelAlgorithm"),VP(c,I,j,q,ie,m,E)}a(L$,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Gu(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Gu,"defaultControllerBrandCheckException$1");function F$(c,l){return Po(c._readableStreamController)?q$(c):B$(c)}a(F$,"ReadableStreamTee");function B$(c,l){let m=M(c),E=!1,I=!1,j=!1,q=!1,ie,_e,le,Pe,we,Qe=d(Lt=>{we=Lt});function Mr(){return E?(I=!0,p(void 0)):(E=!0,ce(m,{_chunkSteps:a(Wt=>{T(()=>{I=!1;let xr=Wt,Sn=Wt;j||_i(le._readableStreamController,xr),q||_i(Pe._readableStreamController,Sn),E=!1,I&&Mr()})},"_chunkSteps"),_closeSteps:a(()=>{E=!1,j||wo(le._readableStreamController),q||wo(Pe._readableStreamController),(!j||!q)&&we(void 0)},"_closeSteps"),_errorSteps:a(()=>{E=!1},"_errorSteps")}),p(void 0))}a(Mr,"pullAlgorithm");function Ei(Lt){if(j=!0,ie=Lt,q){let Wt=We([ie,_e]),xr=jr(c,Wt);we(xr)}return Qe}a(Ei,"cancel1Algorithm");function Zn(Lt){if(q=!0,_e=Lt,j){let Wt=We([ie,_e]),xr=jr(c,Wt);we(xr)}return Qe}a(Zn,"cancel2Algorithm");function Pn(){}return a(Pn,"startAlgorithm"),le=Ga(Pn,Mr,Ei),Pe=Ga(Pn,Mr,Zn),_(m._closedPromise,Lt=>(Ur(le._readableStreamController,Lt),Ur(Pe._readableStreamController,Lt),(!j||!q)&&we(void 0),null)),[le,Pe]}a(B$,"ReadableStreamDefaultTee");function q$(c){let l=M(c),m=!1,E=!1,I=!1,j=!1,q=!1,ie,_e,le,Pe,we,Qe=d(pe=>{we=pe});function Mr(pe){_(pe._closedPromise,Oe=>(pe!==l||(Tr(le._readableStreamController,Oe),Tr(Pe._readableStreamController,Oe),(!j||!q)&&we(void 0)),null))}a(Mr,"forwardReaderError");function Ei(){To(l)&&(Le(l),l=M(c),Mr(l)),ce(l,{_chunkSteps:a(Oe=>{T(()=>{E=!1,I=!1;let Ye=Oe,cr=Oe;if(!j&&!q)try{cr=cP(Oe)}catch(Pi){Tr(le._readableStreamController,Pi),Tr(Pe._readableStreamController,Pi),we(jr(c,Pi));return}j||ku(le._readableStreamController,Ye),q||ku(Pe._readableStreamController,cr),m=!1,E?Pn():I&&Lt()})},"_chunkSteps"),_closeSteps:a(()=>{m=!1,j||Fa(le._readableStreamController),q||Fa(Pe._readableStreamController),le._readableStreamController._pendingPullIntos.length>0&&$u(le._readableStreamController,0),Pe._readableStreamController._pendingPullIntos.length>0&&$u(Pe._readableStreamController,0),(!j||!q)&&we(void 0)},"_closeSteps"),_errorSteps:a(()=>{m=!1},"_errorSteps")})}a(Ei,"pullWithDefaultReader");function Zn(pe,Oe){ae(l)&&(Le(l),l=EP(c),Mr(l));let Ye=Oe?Pe:le,cr=Oe?le:Pe;TP(l,pe,1,{_chunkSteps:a(Si=>{T(()=>{E=!1,I=!1;let Ti=Oe?q:j;if(Oe?j:q)Ti||Nu(Ye._readableStreamController,Si);else{let aS;try{aS=cP(Si)}catch(Mm){Tr(Ye._readableStreamController,Mm),Tr(cr._readableStreamController,Mm),we(jr(c,Mm));return}Ti||Nu(Ye._readableStreamController,Si),ku(cr._readableStreamController,aS)}m=!1,E?Pn():I&&Lt()})},"_chunkSteps"),_closeSteps:a(Si=>{m=!1;let Ti=Oe?q:j,tl=Oe?j:q;Ti||Fa(Ye._readableStreamController),tl||Fa(cr._readableStreamController),Si!==void 0&&(Ti||Nu(Ye._readableStreamController,Si),!tl&&cr._readableStreamController._pendingPullIntos.length>0&&$u(cr._readableStreamController,0)),(!Ti||!tl)&&we(void 0)},"_closeSteps"),_errorSteps:a(()=>{m=!1},"_errorSteps")})}a(Zn,"pullWithBYOBReader");function Pn(){if(m)return E=!0,p(void 0);m=!0;let pe=vm(le._readableStreamController);return pe===null?Ei():Zn(pe._view,!1),p(void 0)}a(Pn,"pull1Algorithm");function Lt(){if(m)return I=!0,p(void 0);m=!0;let pe=vm(Pe._readableStreamController);return pe===null?Ei():Zn(pe._view,!0),p(void 0)}a(Lt,"pull2Algorithm");function Wt(pe){if(j=!0,ie=pe,q){let Oe=We([ie,_e]),Ye=jr(c,Oe);we(Ye)}return Qe}a(Wt,"cancel1Algorithm");function xr(pe){if(q=!0,_e=pe,j){let Oe=We([ie,_e]),Ye=jr(c,Oe);we(Ye)}return Qe}a(xr,"cancel2Algorithm");function Sn(){}return a(Sn,"startAlgorithm"),le=ZP(Sn,Pn,Wt),Pe=ZP(Sn,Lt,xr),Mr(l),[le,Pe]}a(q$,"ReadableByteStreamTee");function V$(c){return n(c)&&typeof c.getReader<"u"}a(V$,"isReadableStreamLike");function H$(c){return V$(c)?G$(c.getReader()):Z$(c)}a(H$,"ReadableStreamFrom");function Z$(c){let l,m=sP(c,"async"),E=t;function I(){let q;try{q=U0(m)}catch(_e){return f(_e)}let ie=p(q);return P(ie,_e=>{if(!n(_e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(j0(_e))wo(l._readableStreamController);else{let Pe=M0(_e);_i(l._readableStreamController,Pe)}})}a(I,"pullAlgorithm");function j(q){let ie=m.iterator,_e;try{_e=Ru(ie,"return")}catch(we){return f(we)}if(_e===void 0)return p(void 0);let le;try{le=R(_e,ie,[q])}catch(we){return f(we)}let Pe=p(le);return P(Pe,we=>{if(!n(we))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(j,"cancelAlgorithm"),l=Ga(E,I,j,0),l}a(Z$,"ReadableStreamFromIterable");function G$(c){let l,m=t;function E(){let j;try{j=c.read()}catch(q){return f(q)}return P(j,q=>{if(!n(q))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(q.done)wo(l._readableStreamController);else{let ie=q.value;_i(l._readableStreamController,ie)}})}a(E,"pullAlgorithm");function I(j){try{return p(c.cancel(j))}catch(q){return f(q)}}return a(I,"cancelAlgorithm"),l=Ga(m,E,I,0),l}a(G$,"ReadableStreamFromDefaultReader");function W$(c,l){Gt(c,l);let m=c,E=m?.autoAllocateChunkSize,I=m?.cancel,j=m?.pull,q=m?.start,ie=m?.type;return{autoAllocateChunkSize:E===void 0?void 0:O(E,`${l} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:J$(I,m,`${l} has member 'cancel' that`),pull:j===void 0?void 0:K$(j,m,`${l} has member 'pull' that`),start:q===void 0?void 0:X$(q,m,`${l} has member 'start' that`),type:ie===void 0?void 0:Q$(ie,`${l} has member 'type' that`)}}a(W$,"convertUnderlyingDefaultOrByteSource");function J$(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(J$,"convertUnderlyingSourceCancelCallback");function K$(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(K$,"convertUnderlyingSourcePullCallback");function X$(c,l,m){return jt(c,m),E=>R(c,l,[E])}a(X$,"convertUnderlyingSourceStartCallback");function Q$(c,l){if(c=`${c}`,c!=="bytes")throw new TypeError(`${l} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a(Q$,"convertReadableStreamType");function Y$(c,l){return Gt(c,l),{preventCancel:!!c?.preventCancel}}a(Y$,"convertIteratorOptions");function HP(c,l){Gt(c,l);let m=c?.preventAbort,E=c?.preventCancel,I=c?.preventClose,j=c?.signal;return j!==void 0&&eN(j,`${l} has member 'signal' that`),{preventAbort:!!m,preventCancel:!!E,preventClose:!!I,signal:j}}a(HP,"convertPipeOptions");function eN(c,l){if(!c$(c))throw new TypeError(`${l} is not an AbortSignal.`)}a(eN,"assertAbortSignal");function tN(c,l){Gt(c,l);let m=c?.readable;v(m,"readable","ReadableWritablePair"),N(m,`${l} has member 'readable' that`);let E=c?.writable;return v(E,"writable","ReadableWritablePair"),AP(E,`${l} has member 'writable' that`),{readable:m,writable:E}}a(tN,"convertReadableWritablePair");class Nt{static{a(this,"ReadableStream")}constructor(l={},m={}){l===void 0?l=null:Mt(l,"First parameter");let E=Uu(m,"Second parameter"),I=W$(l,"First parameter");if(zm(this),I.type==="bytes"){if(E.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let j=qa(E,0);J0(this,I,j)}else{let j=Du(E),q=qa(E,1);L$(this,I,q,j)}}get locked(){if(!qn(this))throw Io("locked");return Vn(this)}cancel(l=void 0){return qn(this)?Vn(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):jr(this,l):f(Io("cancel"))}getReader(l=void 0){if(!qn(this))throw Io("getReader");return X0(l,"First parameter").mode===void 0?M(this):EP(this)}pipeThrough(l,m={}){if(!qn(this))throw Io("pipeThrough");ht(l,1,"pipeThrough");let E=tN(l,"First parameter"),I=HP(m,"Second parameter");if(Vn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(gi(E.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let j=BP(this,E.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return S(j),E.readable}pipeTo(l,m={}){if(!qn(this))return f(Io("pipeTo"));if(l===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!hi(l))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let E;try{E=HP(m,"Second parameter")}catch(I){return f(I)}return Vn(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):gi(l)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):BP(this,l,E.preventClose,E.preventAbort,E.preventCancel,E.signal)}tee(){if(!qn(this))throw Io("tee");let l=F$(this);return We(l)}values(l=void 0){if(!qn(this))throw Io("values");let m=Y$(l,"First parameter");return di(this,m.preventCancel)}[fm](l){return this.values(l)}static from(l){return H$(l)}}Object.defineProperties(Nt,{from:{enumerable:!0}}),Object.defineProperties(Nt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),r(Nt.from,"from"),r(Nt.prototype.cancel,"cancel"),r(Nt.prototype.getReader,"getReader"),r(Nt.prototype.pipeThrough,"pipeThrough"),r(Nt.prototype.pipeTo,"pipeTo"),r(Nt.prototype.tee,"tee"),r(Nt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Nt.prototype,fm,{value:Nt.prototype.values,writable:!0,configurable:!0});function Ga(c,l,m,E=1,I=()=>1){let j=Object.create(Nt.prototype);zm(j);let q=Object.create(En.prototype);return VP(j,q,c,l,m,E,I),j}a(Ga,"CreateReadableStream");function ZP(c,l,m){let E=Object.create(Nt.prototype);zm(E);let I=Object.create(bn.prototype);return vP(E,I,c,l,m,0,void 0),E}a(ZP,"CreateReadableByteStream");function zm(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(zm,"InitializeReadableStream");function qn(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof Nt}a(qn,"IsReadableStream");function Vn(c){return c._reader!==void 0}a(Vn,"IsReadableStreamLocked");function jr(c,l){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);Wa(c);let m=c._reader;if(m!==void 0&&To(m)){let I=m._readIntoRequests;m._readIntoRequests=new H,I.forEach(j=>{j._closeSteps(void 0)})}let E=c._readableStreamController[ue](l);return P(E,t)}a(jr,"ReadableStreamCancel");function Wa(c){c._state="closed";let l=c._reader;if(l!==void 0&&(li(l),ae(l))){let m=l._readRequests;l._readRequests=new H,m.forEach(E=>{E._closeSteps()})}}a(Wa,"ReadableStreamClose");function GP(c,l){c._state="errored",c._storedError=l;let m=c._reader;m!==void 0&&(ar(m,l),ae(m)?rt(m,l):xP(m,l))}a(GP,"ReadableStreamError");function Io(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Io,"streamBrandCheckException$1");function WP(c,l){Gt(c,l);let m=c?.highWaterMark;return v(m,"highWaterMark","QueuingStrategyInit"),{highWaterMark:x(m)}}a(WP,"convertQueuingStrategyInit");let JP=a(c=>c.byteLength,"byteLengthSizeFunction");r(JP,"size");class Wu{static{a(this,"ByteLengthQueuingStrategy")}constructor(l){ht(l,1,"ByteLengthQueuingStrategy"),l=WP(l,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=l.highWaterMark}get highWaterMark(){if(!XP(this))throw KP("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!XP(this))throw KP("size");return JP}}Object.defineProperties(Wu.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Wu.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function KP(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(KP,"byteLengthBrandCheckException");function XP(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Wu}a(XP,"IsByteLengthQueuingStrategy");let QP=a(()=>1,"countSizeFunction");r(QP,"size");class Ju{static{a(this,"CountQueuingStrategy")}constructor(l){ht(l,1,"CountQueuingStrategy"),l=WP(l,"First parameter"),this._countQueuingStrategyHighWaterMark=l.highWaterMark}get highWaterMark(){if(!eS(this))throw YP("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!eS(this))throw YP("size");return QP}}Object.defineProperties(Ju.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ju.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function YP(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(YP,"countBrandCheckException");function eS(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof Ju}a(eS,"IsCountQueuingStrategy");function rN(c,l){Gt(c,l);let m=c?.cancel,E=c?.flush,I=c?.readableType,j=c?.start,q=c?.transform,ie=c?.writableType;return{cancel:m===void 0?void 0:aN(m,c,`${l} has member 'cancel' that`),flush:E===void 0?void 0:nN(E,c,`${l} has member 'flush' that`),readableType:I,start:j===void 0?void 0:oN(j,c,`${l} has member 'start' that`),transform:q===void 0?void 0:iN(q,c,`${l} has member 'transform' that`),writableType:ie}}a(rN,"convertTransformer");function nN(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(nN,"convertTransformerFlushCallback");function oN(c,l,m){return jt(c,m),E=>R(c,l,[E])}a(oN,"convertTransformerStartCallback");function iN(c,l,m){return jt(c,m),(E,I)=>V(c,l,[E,I])}a(iN,"convertTransformerTransformCallback");function aN(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(aN,"convertTransformerCancelCallback");class Ku{static{a(this,"TransformStream")}constructor(l={},m={},E={}){l===void 0&&(l=null);let I=Uu(m,"Second parameter"),j=Uu(E,"Third parameter"),q=rN(l,"First parameter");if(q.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(q.writableType!==void 0)throw new RangeError("Invalid writableType specified");let ie=qa(j,0),_e=Du(j),le=qa(I,1),Pe=Du(I),we,Qe=d(Mr=>{we=Mr});sN(this,Qe,le,Pe,ie,_e),uN(this,q),q.start!==void 0?we(q.start(this._transformStreamController)):we(void 0)}get readable(){if(!tS(this))throw iS("readable");return this._readable}get writable(){if(!tS(this))throw iS("writable");return this._writable}}Object.defineProperties(Ku.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ku.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function sN(c,l,m,E,I,j){function q(){return l}a(q,"startAlgorithm");function ie(Qe){return pN(c,Qe)}a(ie,"writeAlgorithm");function _e(Qe){return fN(c,Qe)}a(_e,"abortAlgorithm");function le(){return mN(c)}a(le,"closeAlgorithm"),c._writable=d$(q,ie,le,_e,m,E);function Pe(){return hN(c)}a(Pe,"pullAlgorithm");function we(Qe){return gN(c,Qe)}a(we,"cancelAlgorithm"),c._readable=Ga(q,Pe,we,I,j),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,Xu(c,!0),c._transformStreamController=void 0}a(sN,"InitializeTransformStream");function tS(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Ku}a(tS,"IsTransformStream");function rS(c,l){Ur(c._readable._readableStreamController,l),Dm(c,l)}a(rS,"TransformStreamError");function Dm(c,l){Yu(c._transformStreamController),Va(c._writable._writableStreamController,l),Um(c)}a(Dm,"TransformStreamErrorWritableAndUnblockWrite");function Um(c){c._backpressure&&Xu(c,!1)}a(Um,"TransformStreamUnblockWrite");function Xu(c,l){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=d(m=>{c._backpressureChangePromise_resolve=m}),c._backpressure=l}a(Xu,"TransformStreamSetBackpressure");class Hn{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Qu(this))throw el("desiredSize");let l=this._controlledTransformStream._readable._readableStreamController;return Nm(l)}enqueue(l=void 0){if(!Qu(this))throw el("enqueue");nS(this,l)}error(l=void 0){if(!Qu(this))throw el("error");lN(this,l)}terminate(){if(!Qu(this))throw el("terminate");dN(this)}}Object.defineProperties(Hn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),r(Hn.prototype.enqueue,"enqueue"),r(Hn.prototype.error,"error"),r(Hn.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Hn.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Qu(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof Hn}a(Qu,"IsTransformStreamDefaultController");function cN(c,l,m,E,I){l._controlledTransformStream=c,c._transformStreamController=l,l._transformAlgorithm=m,l._flushAlgorithm=E,l._cancelAlgorithm=I,l._finishPromise=void 0,l._finishPromise_resolve=void 0,l._finishPromise_reject=void 0}a(cN,"SetUpTransformStreamDefaultController");function uN(c,l){let m=Object.create(Hn.prototype),E,I,j;l.transform!==void 0?E=a(q=>l.transform(q,m),"transformAlgorithm"):E=a(q=>{try{return nS(m,q),p(void 0)}catch(ie){return f(ie)}},"transformAlgorithm"),l.flush!==void 0?I=a(()=>l.flush(m),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),l.cancel!==void 0?j=a(q=>l.cancel(q),"cancelAlgorithm"):j=a(()=>p(void 0),"cancelAlgorithm"),cN(c,m,E,I,j)}a(uN,"SetUpTransformStreamDefaultControllerFromTransformer");function Yu(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Yu,"TransformStreamDefaultControllerClearAlgorithms");function nS(c,l){let m=c._controlledTransformStream,E=m._readable._readableStreamController;if(!bi(E))throw new TypeError("Readable side is not in a state that permits enqueue");try{_i(E,l)}catch(j){throw Dm(m,j),m._readable._storedError}M$(E)!==m._backpressure&&Xu(m,!0)}a(nS,"TransformStreamDefaultControllerEnqueue");function lN(c,l){rS(c._controlledTransformStream,l)}a(lN,"TransformStreamDefaultControllerError");function oS(c,l){let m=c._transformAlgorithm(l);return P(m,void 0,E=>{throw rS(c._controlledTransformStream,E),E})}a(oS,"TransformStreamDefaultControllerPerformTransform");function dN(c){let l=c._controlledTransformStream,m=l._readable._readableStreamController;wo(m);let E=new TypeError("TransformStream terminated");Dm(l,E)}a(dN,"TransformStreamDefaultControllerTerminate");function pN(c,l){let m=c._transformStreamController;if(c._backpressure){let E=c._backpressureChangePromise;return P(E,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return oS(m,l)})}return oS(m,l)}a(pN,"TransformStreamDefaultSinkWriteAlgorithm");function fN(c,l){let m=c._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let E=c._readable;m._finishPromise=d((j,q)=>{m._finishPromise_resolve=j,m._finishPromise_reject=q});let I=m._cancelAlgorithm(l);return Yu(m),y(I,()=>(E._state==="errored"?vi(m,E._storedError):(Ur(E._readableStreamController,l),jm(m)),null),j=>(Ur(E._readableStreamController,j),vi(m,j),null)),m._finishPromise}a(fN,"TransformStreamDefaultSinkAbortAlgorithm");function mN(c){let l=c._transformStreamController;if(l._finishPromise!==void 0)return l._finishPromise;let m=c._readable;l._finishPromise=d((I,j)=>{l._finishPromise_resolve=I,l._finishPromise_reject=j});let E=l._flushAlgorithm();return Yu(l),y(E,()=>(m._state==="errored"?vi(l,m._storedError):(wo(m._readableStreamController),jm(l)),null),I=>(Ur(m._readableStreamController,I),vi(l,I),null)),l._finishPromise}a(mN,"TransformStreamDefaultSinkCloseAlgorithm");function hN(c){return Xu(c,!1),c._backpressureChangePromise}a(hN,"TransformStreamDefaultSourcePullAlgorithm");function gN(c,l){let m=c._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let E=c._writable;m._finishPromise=d((j,q)=>{m._finishPromise_resolve=j,m._finishPromise_reject=q});let I=m._cancelAlgorithm(l);return Yu(m),y(I,()=>(E._state==="errored"?vi(m,E._storedError):(Va(E._writableStreamController,l),Um(c),jm(m)),null),j=>(Va(E._writableStreamController,j),Um(c),vi(m,j),null)),m._finishPromise}a(gN,"TransformStreamDefaultSourceCancelAlgorithm");function el(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(el,"defaultControllerBrandCheckException");function jm(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(jm,"defaultControllerFinishPromiseResolve");function vi(c,l){c._finishPromise_reject!==void 0&&(S(c._finishPromise),c._finishPromise_reject(l),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(vi,"defaultControllerFinishPromiseReject");function iS(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(iS,"streamBrandCheckException"),e.ByteLengthQueuingStrategy=Wu,e.CountQueuingStrategy=Ju,e.ReadableByteStreamController=bn,e.ReadableStream=Nt,e.ReadableStreamBYOBReader=Fn,e.ReadableStreamBYOBRequest=Eo,e.ReadableStreamDefaultController=En,e.ReadableStreamDefaultReader=Z,e.TransformStream=Ku,e.TransformStreamDefaultController=Hn,e.WritableStream=Bn,e.WritableStreamDefaultController=yi,e.WritableStreamDefaultWriter=vn}))});var aC=B(()=>{if(!globalThis.ReadableStream)try{let e=require("node:process"),{emitWarning:t}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),e.emitWarning=t}catch(n){throw e.emitWarning=t,n}}catch{Object.assign(globalThis,iC())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=a(function(n){let o=0,r=this;return new ReadableStream({type:"bytes",async pull(i){let u=await r.slice(o,Math.min(r.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===r.size&&i.close()}})},"name"))}catch{}});async function*Kb(e,t=!0){for(let n of e)if("stream"in n)yield*n.stream();else if(ArrayBuffer.isView(n))if(t){let o=n.byteOffset,r=n.byteOffset+n.byteLength;for(;o!==r;){let i=Math.min(r-o,sC),s=n.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield n;else{let o=0,r=n;for(;o!==r.size;){let s=await r.slice(o,Math.min(r.size,o+sC)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var XY,sC,cC,sF,Zr,eu=bt(()=>{XY=Rt(aC(),1);sC=65536;a(Kb,"toIterator");cC=class Xb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(t=[],n={}){if(typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof t[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof n!="object"&&typeof n!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");n===null&&(n={});let o=new TextEncoder;for(let i of t){let s;ArrayBuffer.isView(i)?s=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)):i instanceof ArrayBuffer?s=new Uint8Array(i.slice(0)):i instanceof Xb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${n.endings===void 0?"transparent":n.endings}`;let r=n.type===void 0?"":String(n.type);this.#t=/^[\x20-\x7E]*$/.test(r)?r:""}get size(){return this.#r}get type(){return this.#t}async text(){let t=new TextDecoder,n="";for await(let o of Kb(this.#e,!1))n+=t.decode(o,{stream:!0});return n+=t.decode(),n}async arrayBuffer(){let t=new Uint8Array(this.size),n=0;for await(let o of Kb(this.#e,!1))t.set(o,n),n+=o.length;return t.buffer}stream(){let t=Kb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(n){let o=await t.next();o.done?n.close():n.enqueue(o.value)},async cancel(){await t.return()}})}slice(t=0,n=this.size,o=""){let{size:r}=this,i=t<0?Math.max(r+t,0):Math.min(t,r),s=n<0?Math.max(r+n,0):Math.min(n,r),u=Math.max(s-i,0),d=this.#e,p=[],f=0;for(let y of d){if(f>=u)break;let h=ArrayBuffer.isView(y)?y.byteLength:y.size;if(i&&h<=i)i-=h,s-=h;else{let _;ArrayBuffer.isView(y)?(_=y.subarray(i,Math.min(h,s)),f+=_.byteLength):(_=y.slice(i,Math.min(h,s)),f+=_.size),s-=h,p.push(_),i=0}}let g=new Xb([],{type:String(o).toLowerCase()});return g.#r=u,g.#e=p,g}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](t){return t&&typeof t=="object"&&typeof t.constructor=="function"&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}};Object.defineProperties(cC.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});sF=cC,Zr=sF});var cF,uF,mo,Qb=bt(()=>{eu();cF=class extends Zr{static{a(this,"File")}#e=0;#t="";constructor(t,n,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(t,o),o===null&&(o={});let r=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(r)||(this.#e=r),this.#t=String(n)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](t){return!!t&&t instanceof Zr&&/^(File)$/.test(t[Symbol.toStringTag])}},uF=cF,mo=uF});function dC(e,t=Zr){var n=`${uC()}${uC()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],r=`--${n}\r
14
+ `);let{connect:p,buffered:f}=await d;if(t.emit("proxyConnect",p),this.emit("proxyConnect",p,t),p.statusCode===200)return t.once("socket",iF),n.secureEndpoint?(Yc("Upgrading socket connection to TLS"),KR.connect({...QR(XR(n),"host","path","port"),socket:r})):r;r.destroy();let g=new Qp.Socket({writable:!1});return g.readable=!0,t.once("socket",y=>{Yc("Replaying proxy buffer for failed request"),(0,eF.default)(y.listenerCount("data")>0),y.push(f),y.push(null)}),g}};Yp.protocols=["http","https"];Or.HttpsProxyAgent=Yp;function iF(e){e.resume()}a(iF,"resume");function QR(e,...t){let n={},o;for(o in e)t.includes(o)||(n[o]=e[o]);return n}a(QR,"omit")});function aF(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let n=e.substring(5,t).split(";"),o="",r=!1,i=n[0]||"text/plain",s=i;for(let f=1;f<n.length;f++)n[f]==="base64"?r=!0:n[f]&&(s+=`;${n[f]}`,n[f].indexOf("charset=")===0&&(o=n[f].substring(8)));!n[0]&&!o.length&&(s+=";charset=US-ASCII",o="US-ASCII");let u=r?"base64":"ascii",d=unescape(e.substring(t+1)),p=Buffer.from(d,u);return p.type=i,p.typeFull=s,p.charset=o,p}var rC,nC=bt(()=>{a(aF,"dataUriToBuffer");rC=aF});var iC=B((ef,oC)=>{(function(e,t){typeof ef=="object"&&typeof oC<"u"?t(ef):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WebStreamsPolyfill={}))})(ef,(function(e){"use strict";function t(){}a(t,"noop");function n(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(n,"typeIsObject");let o=t;function r(c,l){try{Object.defineProperty(c,"name",{value:l,configurable:!0})}catch{}}a(r,"setFunctionName");let i=Promise,s=Promise.prototype.then,u=Promise.reject.bind(i);function d(c){return new i(c)}a(d,"newPromise");function p(c){return d(l=>l(c))}a(p,"promiseResolvedWith");function f(c){return u(c)}a(f,"promiseRejectedWith");function g(c,l,m){return s.call(c,l,m)}a(g,"PerformPromiseThen");function y(c,l,m){g(g(c,l,m),void 0,o)}a(y,"uponPromise");function h(c,l){y(c,l)}a(h,"uponFulfillment");function _(c,l){y(c,void 0,l)}a(_,"uponRejection");function P(c,l,m){return g(c,l,m)}a(P,"transformPromiseWith");function S(c){g(c,void 0,o)}a(S,"setPromiseIsHandledToTrue");let T=a(c=>{if(typeof queueMicrotask=="function")T=queueMicrotask;else{let l=p(void 0);T=a(m=>g(l,m),"_queueMicrotask")}return T(c)},"_queueMicrotask");function R(c,l,m){if(typeof c!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(c,l,m)}a(R,"reflectCall");function V(c,l,m){try{return p(R(c,l,m))}catch(E){return f(E)}}a(V,"promiseCall");let W=16384;class H{static{a(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(l){let m=this._back,E=m;m._elements.length===W-1&&(E={_elements:[],_next:void 0}),m._elements.push(l),E!==m&&(this._back=E,m._next=E),++this._size}shift(){let l=this._front,m=l,E=this._cursor,I=E+1,j=l._elements,q=j[E];return I===W&&(m=l._next,I=0),--this._size,this._cursor=I,l!==m&&(this._front=m),j[E]=void 0,q}forEach(l){let m=this._cursor,E=this._front,I=E._elements;for(;(m!==I.length||E._next!==void 0)&&!(m===I.length&&(E=E._next,I=E._elements,m=0,I.length===0));)l(I[m]),++m}peek(){let l=this._front,m=this._cursor;return l._elements[m]}}let G=Symbol("[[AbortSteps]]"),re=Symbol("[[ErrorSteps]]"),ue=Symbol("[[CancelSteps]]"),Y=Symbol("[[PullSteps]]"),Ze=Symbol("[[ReleaseSteps]]");function Ce(c,l){c._ownerReadableStream=l,l._reader=c,l._state==="readable"?Ge(c):l._state==="closed"?it(c):He(c,l._storedError)}a(Ce,"ReadableStreamReaderGenericInitialize");function Se(c,l){let m=c._ownerReadableStream;return jr(m,l)}a(Se,"ReadableStreamReaderGenericCancel");function Le(c){let l=c._ownerReadableStream;l._state==="readable"?ar(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):Ut(c,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),l._readableStreamController[Ze](),l._reader=void 0,c._ownerReadableStream=void 0}a(Le,"ReadableStreamReaderGenericRelease");function Me(c){return new TypeError("Cannot "+c+" a stream using a released reader")}a(Me,"readerLockException");function Ge(c){c._closedPromise=d((l,m)=>{c._closedPromise_resolve=l,c._closedPromise_reject=m})}a(Ge,"defaultReaderClosedPromiseInitialize");function He(c,l){Ge(c),ar(c,l)}a(He,"defaultReaderClosedPromiseInitializeAsRejected");function it(c){Ge(c),li(c)}a(it,"defaultReaderClosedPromiseInitializeAsResolved");function ar(c,l){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(l),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(ar,"defaultReaderClosedPromiseReject");function Ut(c,l){He(c,l)}a(Ut,"defaultReaderClosedPromiseResetToRejected");function li(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0)}a(li,"defaultReaderClosedPromiseResolve");let tn=Number.isFinite||function(c){return typeof c=="number"&&isFinite(c)},Ma=Math.trunc||function(c){return c<0?Math.ceil(c):Math.floor(c)};function ee(c){return typeof c=="object"||typeof c=="function"}a(ee,"isDictionary");function Gt(c,l){if(c!==void 0&&!ee(c))throw new TypeError(`${l} is not an object.`)}a(Gt,"assertDictionary");function jt(c,l){if(typeof c!="function")throw new TypeError(`${l} is not a function.`)}a(jt,"assertFunction");function La(c){return typeof c=="object"&&c!==null||typeof c=="function"}a(La,"isObject");function Mt(c,l){if(!La(c))throw new TypeError(`${l} is not an object.`)}a(Mt,"assertObject");function ht(c,l,m){if(c===void 0)throw new TypeError(`Parameter ${l} is required in '${m}'.`)}a(ht,"assertRequiredArgument");function v(c,l,m){if(c===void 0)throw new TypeError(`${l} is required in '${m}'.`)}a(v,"assertRequiredField");function x(c){return Number(c)}a(x,"convertUnrestrictedDouble");function A(c){return c===0?0:c}a(A,"censorNegativeZero");function D(c){return A(Ma(c))}a(D,"integerPart");function O(c,l){let E=Number.MAX_SAFE_INTEGER,I=Number(c);if(I=A(I),!tn(I))throw new TypeError(`${l} is not a finite number`);if(I=D(I),I<0||I>E)throw new TypeError(`${l} is outside the accepted range of 0 to ${E}, inclusive`);return!tn(I)||I===0?0:I}a(O,"convertUnsignedLongLongWithEnforceRange");function N(c,l){if(!qn(c))throw new TypeError(`${l} is not a ReadableStream.`)}a(N,"assertReadableStream");function M(c){return new Z(c)}a(M,"AcquireReadableStreamDefaultReader");function C(c,l){c._reader._readRequests.push(l)}a(C,"ReadableStreamAddReadRequest");function $(c,l,m){let I=c._reader._readRequests.shift();m?I._closeSteps():I._chunkSteps(l)}a($,"ReadableStreamFulfillReadRequest");function U(c){return c._reader._readRequests.length}a(U,"ReadableStreamGetNumReadRequests");function z(c){let l=c._reader;return!(l===void 0||!ae(l))}a(z,"ReadableStreamHasDefaultReader");class Z{static{a(this,"ReadableStreamDefaultReader")}constructor(l){if(ht(l,1,"ReadableStreamDefaultReader"),N(l,"First parameter"),Vn(l))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Ce(this,l),this._readRequests=new H}get closed(){return ae(this)?this._closedPromise:f(nt("closed"))}cancel(l=void 0){return ae(this)?this._ownerReadableStream===void 0?f(Me("cancel")):Se(this,l):f(nt("cancel"))}read(){if(!ae(this))return f(nt("read"));if(this._ownerReadableStream===void 0)return f(Me("read from"));let l,m,E=d((j,q)=>{l=j,m=q});return ce(this,{_chunkSteps:a(j=>l({value:j,done:!1}),"_chunkSteps"),_closeSteps:a(()=>l({value:void 0,done:!0}),"_closeSteps"),_errorSteps:a(j=>m(j),"_errorSteps")}),E}releaseLock(){if(!ae(this))throw nt("releaseLock");this._ownerReadableStream!==void 0&&De(this)}}Object.defineProperties(Z.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),r(Z.prototype.cancel,"cancel"),r(Z.prototype.read,"read"),r(Z.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Z.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function ae(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readRequests")?!1:c instanceof Z}a(ae,"IsReadableStreamDefaultReader");function ce(c,l){let m=c._ownerReadableStream;m._disturbed=!0,m._state==="closed"?l._closeSteps():m._state==="errored"?l._errorSteps(m._storedError):m._readableStreamController[Y](l)}a(ce,"ReadableStreamDefaultReaderRead");function De(c){Le(c);let l=new TypeError("Reader was released");rt(c,l)}a(De,"ReadableStreamDefaultReaderRelease");function rt(c,l){let m=c._readRequests;c._readRequests=new H,m.forEach(E=>{E._errorSteps(l)})}a(rt,"ReadableStreamDefaultReaderErrorReadRequests");function nt(c){return new TypeError(`ReadableStreamDefaultReader.prototype.${c} can only be used on a ReadableStreamDefaultReader`)}a(nt,"defaultReaderBrandCheckException");let Ne=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Be{static{a(this,"ReadableStreamAsyncIteratorImpl")}constructor(l,m){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=l,this._preventCancel=m}next(){let l=a(()=>this._nextSteps(),"nextSteps");return this._ongoingPromise=this._ongoingPromise?P(this._ongoingPromise,l,l):l(),this._ongoingPromise}return(l){let m=a(()=>this._returnSteps(l),"returnSteps");return this._ongoingPromise?P(this._ongoingPromise,m,m):m()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let l=this._reader,m,E,I=d((q,ie)=>{m=q,E=ie});return ce(l,{_chunkSteps:a(q=>{this._ongoingPromise=void 0,T(()=>m({value:q,done:!1}))},"_chunkSteps"),_closeSteps:a(()=>{this._ongoingPromise=void 0,this._isFinished=!0,Le(l),m({value:void 0,done:!0})},"_closeSteps"),_errorSteps:a(q=>{this._ongoingPromise=void 0,this._isFinished=!0,Le(l),E(q)},"_errorSteps")}),I}_returnSteps(l){if(this._isFinished)return Promise.resolve({value:l,done:!0});this._isFinished=!0;let m=this._reader;if(!this._preventCancel){let E=Se(m,l);return Le(m),P(E,()=>({value:l,done:!0}))}return Le(m),p({value:l,done:!0})}}let gt={next(){return pi(this)?this._asyncIteratorImpl.next():f(fi("next"))},return(c){return pi(this)?this._asyncIteratorImpl.return(c):f(fi("return"))}};Object.setPrototypeOf(gt,Ne);function di(c,l){let m=M(c),E=new Be(m,l),I=Object.create(gt);return I._asyncIteratorImpl=E,I}a(di,"AcquireReadableStreamAsyncIterator");function pi(c){if(!n(c)||!Object.prototype.hasOwnProperty.call(c,"_asyncIteratorImpl"))return!1;try{return c._asyncIteratorImpl instanceof Be}catch{return!1}}a(pi,"IsReadableStreamAsyncIterator");function fi(c){return new TypeError(`ReadableStreamAsyncIterator.${c} can only be used on a ReadableSteamAsyncIterator`)}a(fi,"streamAsyncIteratorBrandCheckException");let sr=Number.isNaN||function(c){return c!==c};var yn,$t,yt;function We(c){return c.slice()}a(We,"CreateArrayFromList");function iP(c,l,m,E,I){new Uint8Array(c).set(new Uint8Array(m,E,I),l)}a(iP,"CopyDataBlockBytes");let _n=a(c=>(typeof c.transfer=="function"?_n=a(l=>l.transfer(),"TransferArrayBuffer"):typeof structuredClone=="function"?_n=a(l=>structuredClone(l,{transfer:[l]}),"TransferArrayBuffer"):_n=a(l=>l,"TransferArrayBuffer"),_n(c)),"TransferArrayBuffer"),Mn=a(c=>(typeof c.detached=="boolean"?Mn=a(l=>l.detached,"IsDetachedBuffer"):Mn=a(l=>l.byteLength===0,"IsDetachedBuffer"),Mn(c)),"IsDetachedBuffer");function aP(c,l,m){if(c.slice)return c.slice(l,m);let E=m-l,I=new ArrayBuffer(E);return iP(I,0,c,l,E),I}a(aP,"ArrayBufferSlice");function Ru(c,l){let m=c[l];if(m!=null){if(typeof m!="function")throw new TypeError(`${String(l)} is not a function`);return m}}a(Ru,"GetMethod");function D$(c){let l={[Symbol.iterator]:()=>c.iterator},m=(async function*(){return yield*l})(),E=m.next;return{iterator:m,nextMethod:E,done:!1}}a(D$,"CreateAsyncFromSyncIterator");let fm=(yt=(yn=Symbol.asyncIterator)!==null&&yn!==void 0?yn:($t=Symbol.for)===null||$t===void 0?void 0:$t.call(Symbol,"Symbol.asyncIterator"))!==null&&yt!==void 0?yt:"@@asyncIterator";function sP(c,l="sync",m){if(m===void 0)if(l==="async"){if(m=Ru(c,fm),m===void 0){let j=Ru(c,Symbol.iterator),q=sP(c,"sync",j);return D$(q)}}else m=Ru(c,Symbol.iterator);if(m===void 0)throw new TypeError("The object is not iterable");let E=R(m,c,[]);if(!n(E))throw new TypeError("The iterator method must return an object");let I=E.next;return{iterator:E,nextMethod:I,done:!1}}a(sP,"GetIterator");function U$(c){let l=R(c.nextMethod,c.iterator,[]);if(!n(l))throw new TypeError("The iterator.next() method must return an object");return l}a(U$,"IteratorNext");function j$(c){return!!c.done}a(j$,"IteratorComplete");function M$(c){return c.value}a(M$,"IteratorValue");function L$(c){return!(typeof c!="number"||sr(c)||c<0)}a(L$,"IsNonNegativeNumber");function cP(c){let l=aP(c.buffer,c.byteOffset,c.byteOffset+c.byteLength);return new Uint8Array(l)}a(cP,"CloneAsUint8Array");function mm(c){let l=c._queue.shift();return c._queueTotalSize-=l.size,c._queueTotalSize<0&&(c._queueTotalSize=0),l.value}a(mm,"DequeueValue");function hm(c,l,m){if(!L$(m)||m===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");c._queue.push({value:l,size:m}),c._queueTotalSize+=m}a(hm,"EnqueueValueWithSize");function F$(c){return c._queue.peek().value}a(F$,"PeekQueueValue");function Ln(c){c._queue=new H,c._queueTotalSize=0}a(Ln,"ResetQueue");function uP(c){return c===DataView}a(uP,"isDataViewConstructor");function B$(c){return uP(c.constructor)}a(B$,"isDataView");function q$(c){return uP(c)?1:c.BYTES_PER_ELEMENT}a(q$,"arrayBufferViewElementSize");class Eo{static{a(this,"ReadableStreamBYOBRequest")}constructor(){throw new TypeError("Illegal constructor")}get view(){if(!gm(this))throw Em("view");return this._view}respond(l){if(!gm(this))throw Em("respond");if(ht(l,1,"respond"),l=O(l,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Mn(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");$u(this._associatedReadableByteStreamController,l)}respondWithNewView(l){if(!gm(this))throw Em("respondWithNewView");if(ht(l,1,"respondWithNewView"),!ArrayBuffer.isView(l))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Mn(l.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Nu(this._associatedReadableByteStreamController,l)}}Object.defineProperties(Eo.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),r(Eo.prototype.respond,"respond"),r(Eo.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Eo.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class bn{static{a(this,"ReadableByteStreamController")}constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Po(this))throw Ba("byobRequest");return vm(this)}get desiredSize(){if(!Po(this))throw Ba("desiredSize");return bP(this)}close(){if(!Po(this))throw Ba("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let l=this._controlledReadableByteStream._state;if(l!=="readable")throw new TypeError(`The stream (in ${l} state) is not in the readable state and cannot be closed`);Fa(this)}enqueue(l){if(!Po(this))throw Ba("enqueue");if(ht(l,1,"enqueue"),!ArrayBuffer.isView(l))throw new TypeError("chunk must be an array buffer view");if(l.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(l.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let m=this._controlledReadableByteStream._state;if(m!=="readable")throw new TypeError(`The stream (in ${m} state) is not in the readable state and cannot be enqueued to`);ku(this,l)}error(l=void 0){if(!Po(this))throw Ba("error");Tr(this,l)}[ue](l){lP(this),Ln(this);let m=this._cancelAlgorithm(l);return Ou(this),m}[Y](l){let m=this._controlledReadableByteStream;if(this._queueTotalSize>0){_P(this,l);return}let E=this._autoAllocateChunkSize;if(E!==void 0){let I;try{I=new ArrayBuffer(E)}catch(q){l._errorSteps(q);return}let j={buffer:I,bufferByteLength:E,byteOffset:0,byteLength:E,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(j)}C(m,l),So(this)}[Ze](){if(this._pendingPullIntos.length>0){let l=this._pendingPullIntos.peek();l.readerType="none",this._pendingPullIntos=new H,this._pendingPullIntos.push(l)}}}Object.defineProperties(bn.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),r(bn.prototype.close,"close"),r(bn.prototype.enqueue,"enqueue"),r(bn.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(bn.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Po(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableByteStream")?!1:c instanceof bn}a(Po,"IsReadableByteStreamController");function gm(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_associatedReadableByteStreamController")?!1:c instanceof Eo}a(gm,"IsReadableStreamBYOBRequest");function So(c){if(!W$(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let m=c._pullAlgorithm();y(m,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,So(c)),null),E=>(Tr(c,E),null))}a(So,"ReadableByteStreamControllerCallPullIfNeeded");function lP(c){_m(c),c._pendingPullIntos=new H}a(lP,"ReadableByteStreamControllerClearPendingPullIntos");function ym(c,l){let m=!1;c._state==="closed"&&(m=!0);let E=dP(l);l.readerType==="default"?$(c,E,m):e0(c,E,m)}a(ym,"ReadableByteStreamControllerCommitPullIntoDescriptor");function dP(c){let l=c.bytesFilled,m=c.elementSize;return new c.viewConstructor(c.buffer,c.byteOffset,l/m)}a(dP,"ReadableByteStreamControllerConvertPullIntoDescriptor");function Cu(c,l,m,E){c._queue.push({buffer:l,byteOffset:m,byteLength:E}),c._queueTotalSize+=E}a(Cu,"ReadableByteStreamControllerEnqueueChunkToQueue");function pP(c,l,m,E){let I;try{I=aP(l,m,m+E)}catch(j){throw Tr(c,j),j}Cu(c,I,0,E)}a(pP,"ReadableByteStreamControllerEnqueueClonedChunkToQueue");function fP(c,l){l.bytesFilled>0&&pP(c,l.buffer,l.byteOffset,l.bytesFilled),mi(c)}a(fP,"ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");function mP(c,l){let m=Math.min(c._queueTotalSize,l.byteLength-l.bytesFilled),E=l.bytesFilled+m,I=m,j=!1,q=E%l.elementSize,ie=E-q;ie>=l.minimumFill&&(I=ie-l.bytesFilled,j=!0);let _e=c._queue;for(;I>0;){let le=_e.peek(),Pe=Math.min(I,le.byteLength),we=l.byteOffset+l.bytesFilled;iP(l.buffer,we,le.buffer,le.byteOffset,Pe),le.byteLength===Pe?_e.shift():(le.byteOffset+=Pe,le.byteLength-=Pe),c._queueTotalSize-=Pe,hP(c,Pe,l),I-=Pe}return j}a(mP,"ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");function hP(c,l,m){m.bytesFilled+=l}a(hP,"ReadableByteStreamControllerFillHeadPullIntoDescriptor");function gP(c){c._queueTotalSize===0&&c._closeRequested?(Ou(c),Wa(c._controlledReadableByteStream)):So(c)}a(gP,"ReadableByteStreamControllerHandleQueueDrain");function _m(c){c._byobRequest!==null&&(c._byobRequest._associatedReadableByteStreamController=void 0,c._byobRequest._view=null,c._byobRequest=null)}a(_m,"ReadableByteStreamControllerInvalidateBYOBRequest");function bm(c){for(;c._pendingPullIntos.length>0;){if(c._queueTotalSize===0)return;let l=c._pendingPullIntos.peek();mP(c,l)&&(mi(c),ym(c._controlledReadableByteStream,l))}}a(bm,"ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");function V$(c){let l=c._controlledReadableByteStream._reader;for(;l._readRequests.length>0;){if(c._queueTotalSize===0)return;let m=l._readRequests.shift();_P(c,m)}}a(V$,"ReadableByteStreamControllerProcessReadRequestsUsingQueue");function H$(c,l,m,E){let I=c._controlledReadableByteStream,j=l.constructor,q=q$(j),{byteOffset:ie,byteLength:_e}=l,le=m*q,Pe;try{Pe=_n(l.buffer)}catch(Qe){E._errorSteps(Qe);return}let we={buffer:Pe,bufferByteLength:Pe.byteLength,byteOffset:ie,byteLength:_e,bytesFilled:0,minimumFill:le,elementSize:q,viewConstructor:j,readerType:"byob"};if(c._pendingPullIntos.length>0){c._pendingPullIntos.push(we),PP(I,E);return}if(I._state==="closed"){let Qe=new j(we.buffer,we.byteOffset,0);E._closeSteps(Qe);return}if(c._queueTotalSize>0){if(mP(c,we)){let Qe=dP(we);gP(c),E._chunkSteps(Qe);return}if(c._closeRequested){let Qe=new TypeError("Insufficient bytes to fill elements in the given buffer");Tr(c,Qe),E._errorSteps(Qe);return}}c._pendingPullIntos.push(we),PP(I,E),So(c)}a(H$,"ReadableByteStreamControllerPullInto");function Z$(c,l){l.readerType==="none"&&mi(c);let m=c._controlledReadableByteStream;if(Pm(m))for(;SP(m)>0;){let E=mi(c);ym(m,E)}}a(Z$,"ReadableByteStreamControllerRespondInClosedState");function G$(c,l,m){if(hP(c,l,m),m.readerType==="none"){fP(c,m),bm(c);return}if(m.bytesFilled<m.minimumFill)return;mi(c);let E=m.bytesFilled%m.elementSize;if(E>0){let I=m.byteOffset+m.bytesFilled;pP(c,m.buffer,I-E,E)}m.bytesFilled-=E,ym(c._controlledReadableByteStream,m),bm(c)}a(G$,"ReadableByteStreamControllerRespondInReadableState");function yP(c,l){let m=c._pendingPullIntos.peek();_m(c),c._controlledReadableByteStream._state==="closed"?Z$(c,m):G$(c,l,m),So(c)}a(yP,"ReadableByteStreamControllerRespondInternal");function mi(c){return c._pendingPullIntos.shift()}a(mi,"ReadableByteStreamControllerShiftPendingPullInto");function W$(c){let l=c._controlledReadableByteStream;return l._state!=="readable"||c._closeRequested||!c._started?!1:!!(z(l)&&U(l)>0||Pm(l)&&SP(l)>0||bP(c)>0)}a(W$,"ReadableByteStreamControllerShouldCallPull");function Ou(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Ou,"ReadableByteStreamControllerClearAlgorithms");function Fa(c){let l=c._controlledReadableByteStream;if(!(c._closeRequested||l._state!=="readable")){if(c._queueTotalSize>0){c._closeRequested=!0;return}if(c._pendingPullIntos.length>0){let m=c._pendingPullIntos.peek();if(m.bytesFilled%m.elementSize!==0){let E=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Tr(c,E),E}}Ou(c),Wa(l)}}a(Fa,"ReadableByteStreamControllerClose");function ku(c,l){let m=c._controlledReadableByteStream;if(c._closeRequested||m._state!=="readable")return;let{buffer:E,byteOffset:I,byteLength:j}=l;if(Mn(E))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");let q=_n(E);if(c._pendingPullIntos.length>0){let ie=c._pendingPullIntos.peek();if(Mn(ie.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");_m(c),ie.buffer=_n(ie.buffer),ie.readerType==="none"&&fP(c,ie)}if(z(m))if(V$(c),U(m)===0)Cu(c,q,I,j);else{c._pendingPullIntos.length>0&&mi(c);let ie=new Uint8Array(q,I,j);$(m,ie,!1)}else Pm(m)?(Cu(c,q,I,j),bm(c)):Cu(c,q,I,j);So(c)}a(ku,"ReadableByteStreamControllerEnqueue");function Tr(c,l){let m=c._controlledReadableByteStream;m._state==="readable"&&(lP(c),Ln(c),Ou(c),GP(m,l))}a(Tr,"ReadableByteStreamControllerError");function _P(c,l){let m=c._queue.shift();c._queueTotalSize-=m.byteLength,gP(c);let E=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);l._chunkSteps(E)}a(_P,"ReadableByteStreamControllerFillReadRequestFromQueue");function vm(c){if(c._byobRequest===null&&c._pendingPullIntos.length>0){let l=c._pendingPullIntos.peek(),m=new Uint8Array(l.buffer,l.byteOffset+l.bytesFilled,l.byteLength-l.bytesFilled),E=Object.create(Eo.prototype);K$(E,c,m),c._byobRequest=E}return c._byobRequest}a(vm,"ReadableByteStreamControllerGetBYOBRequest");function bP(c){let l=c._controlledReadableByteStream._state;return l==="errored"?null:l==="closed"?0:c._strategyHWM-c._queueTotalSize}a(bP,"ReadableByteStreamControllerGetDesiredSize");function $u(c,l){let m=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(l!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(l===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(m.bytesFilled+l>m.byteLength)throw new RangeError("bytesWritten out of range")}m.buffer=_n(m.buffer),yP(c,l)}a($u,"ReadableByteStreamControllerRespond");function Nu(c,l){let m=c._pendingPullIntos.peek();if(c._controlledReadableByteStream._state==="closed"){if(l.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(l.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(m.byteOffset+m.bytesFilled!==l.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(m.bufferByteLength!==l.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(m.bytesFilled+l.byteLength>m.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let I=l.byteLength;m.buffer=_n(l.buffer),yP(c,I)}a(Nu,"ReadableByteStreamControllerRespondWithNewView");function vP(c,l,m,E,I,j,q){l._controlledReadableByteStream=c,l._pullAgain=!1,l._pulling=!1,l._byobRequest=null,l._queue=l._queueTotalSize=void 0,Ln(l),l._closeRequested=!1,l._started=!1,l._strategyHWM=j,l._pullAlgorithm=E,l._cancelAlgorithm=I,l._autoAllocateChunkSize=q,l._pendingPullIntos=new H,c._readableStreamController=l;let ie=m();y(p(ie),()=>(l._started=!0,So(l),null),_e=>(Tr(l,_e),null))}a(vP,"SetUpReadableByteStreamController");function J$(c,l,m){let E=Object.create(bn.prototype),I,j,q;l.start!==void 0?I=a(()=>l.start(E),"startAlgorithm"):I=a(()=>{},"startAlgorithm"),l.pull!==void 0?j=a(()=>l.pull(E),"pullAlgorithm"):j=a(()=>p(void 0),"pullAlgorithm"),l.cancel!==void 0?q=a(_e=>l.cancel(_e),"cancelAlgorithm"):q=a(()=>p(void 0),"cancelAlgorithm");let ie=l.autoAllocateChunkSize;if(ie===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");vP(c,E,I,j,q,m,ie)}a(J$,"SetUpReadableByteStreamControllerFromUnderlyingSource");function K$(c,l,m){c._associatedReadableByteStreamController=l,c._view=m}a(K$,"SetUpReadableStreamBYOBRequest");function Em(c){return new TypeError(`ReadableStreamBYOBRequest.prototype.${c} can only be used on a ReadableStreamBYOBRequest`)}a(Em,"byobRequestBrandCheckException");function Ba(c){return new TypeError(`ReadableByteStreamController.prototype.${c} can only be used on a ReadableByteStreamController`)}a(Ba,"byteStreamControllerBrandCheckException");function X$(c,l){Gt(c,l);let m=c?.mode;return{mode:m===void 0?void 0:Q$(m,`${l} has member 'mode' that`)}}a(X$,"convertReaderOptions");function Q$(c,l){if(c=`${c}`,c!=="byob")throw new TypeError(`${l} '${c}' is not a valid enumeration value for ReadableStreamReaderMode`);return c}a(Q$,"convertReadableStreamReaderMode");function Y$(c,l){var m;Gt(c,l);let E=(m=c?.min)!==null&&m!==void 0?m:1;return{min:O(E,`${l} has member 'min' that`)}}a(Y$,"convertByobReadOptions");function EP(c){return new Fn(c)}a(EP,"AcquireReadableStreamBYOBReader");function PP(c,l){c._reader._readIntoRequests.push(l)}a(PP,"ReadableStreamAddReadIntoRequest");function e0(c,l,m){let I=c._reader._readIntoRequests.shift();m?I._closeSteps(l):I._chunkSteps(l)}a(e0,"ReadableStreamFulfillReadIntoRequest");function SP(c){return c._reader._readIntoRequests.length}a(SP,"ReadableStreamGetNumReadIntoRequests");function Pm(c){let l=c._reader;return!(l===void 0||!To(l))}a(Pm,"ReadableStreamHasBYOBReader");class Fn{static{a(this,"ReadableStreamBYOBReader")}constructor(l){if(ht(l,1,"ReadableStreamBYOBReader"),N(l,"First parameter"),Vn(l))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Po(l._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Ce(this,l),this._readIntoRequests=new H}get closed(){return To(this)?this._closedPromise:f(zu("closed"))}cancel(l=void 0){return To(this)?this._ownerReadableStream===void 0?f(Me("cancel")):Se(this,l):f(zu("cancel"))}read(l,m={}){if(!To(this))return f(zu("read"));if(!ArrayBuffer.isView(l))return f(new TypeError("view must be an array buffer view"));if(l.byteLength===0)return f(new TypeError("view must have non-zero byteLength"));if(l.buffer.byteLength===0)return f(new TypeError("view's buffer must have non-zero byteLength"));if(Mn(l.buffer))return f(new TypeError("view's buffer has been detached"));let E;try{E=Y$(m,"options")}catch(le){return f(le)}let I=E.min;if(I===0)return f(new TypeError("options.min must be greater than 0"));if(B$(l)){if(I>l.byteLength)return f(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(I>l.length)return f(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return f(Me("read from"));let j,q,ie=d((le,Pe)=>{j=le,q=Pe});return TP(this,l,I,{_chunkSteps:a(le=>j({value:le,done:!1}),"_chunkSteps"),_closeSteps:a(le=>j({value:le,done:!0}),"_closeSteps"),_errorSteps:a(le=>q(le),"_errorSteps")}),ie}releaseLock(){if(!To(this))throw zu("releaseLock");this._ownerReadableStream!==void 0&&t0(this)}}Object.defineProperties(Fn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),r(Fn.prototype.cancel,"cancel"),r(Fn.prototype.read,"read"),r(Fn.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Fn.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function To(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readIntoRequests")?!1:c instanceof Fn}a(To,"IsReadableStreamBYOBReader");function TP(c,l,m,E){let I=c._ownerReadableStream;I._disturbed=!0,I._state==="errored"?E._errorSteps(I._storedError):H$(I._readableStreamController,l,m,E)}a(TP,"ReadableStreamBYOBReaderRead");function t0(c){Le(c);let l=new TypeError("Reader was released");xP(c,l)}a(t0,"ReadableStreamBYOBReaderRelease");function xP(c,l){let m=c._readIntoRequests;c._readIntoRequests=new H,m.forEach(E=>{E._errorSteps(l)})}a(xP,"ReadableStreamBYOBReaderErrorReadIntoRequests");function zu(c){return new TypeError(`ReadableStreamBYOBReader.prototype.${c} can only be used on a ReadableStreamBYOBReader`)}a(zu,"byobReaderBrandCheckException");function qa(c,l){let{highWaterMark:m}=c;if(m===void 0)return l;if(sr(m)||m<0)throw new RangeError("Invalid highWaterMark");return m}a(qa,"ExtractHighWaterMark");function Du(c){let{size:l}=c;return l||(()=>1)}a(Du,"ExtractSizeAlgorithm");function Uu(c,l){Gt(c,l);let m=c?.highWaterMark,E=c?.size;return{highWaterMark:m===void 0?void 0:x(m),size:E===void 0?void 0:r0(E,`${l} has member 'size' that`)}}a(Uu,"convertQueuingStrategy");function r0(c,l){return jt(c,l),m=>x(c(m))}a(r0,"convertQueuingStrategySize");function n0(c,l){Gt(c,l);let m=c?.abort,E=c?.close,I=c?.start,j=c?.type,q=c?.write;return{abort:m===void 0?void 0:o0(m,c,`${l} has member 'abort' that`),close:E===void 0?void 0:i0(E,c,`${l} has member 'close' that`),start:I===void 0?void 0:a0(I,c,`${l} has member 'start' that`),write:q===void 0?void 0:s0(q,c,`${l} has member 'write' that`),type:j}}a(n0,"convertUnderlyingSink");function o0(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(o0,"convertUnderlyingSinkAbortCallback");function i0(c,l,m){return jt(c,m),()=>V(c,l,[])}a(i0,"convertUnderlyingSinkCloseCallback");function a0(c,l,m){return jt(c,m),E=>R(c,l,[E])}a(a0,"convertUnderlyingSinkStartCallback");function s0(c,l,m){return jt(c,m),(E,I)=>V(c,l,[E,I])}a(s0,"convertUnderlyingSinkWriteCallback");function AP(c,l){if(!hi(c))throw new TypeError(`${l} is not a WritableStream.`)}a(AP,"assertWritableStream");function c0(c){if(typeof c!="object"||c===null)return!1;try{return typeof c.aborted=="boolean"}catch{return!1}}a(c0,"isAbortSignal");let u0=typeof AbortController=="function";function l0(){if(u0)return new AbortController}a(l0,"createAbortController");class Bn{static{a(this,"WritableStream")}constructor(l={},m={}){l===void 0?l=null:Mt(l,"First parameter");let E=Uu(m,"Second parameter"),I=n0(l,"First parameter");if(IP(this),I.type!==void 0)throw new RangeError("Invalid type is specified");let q=Du(E),ie=qa(E,1);T0(this,I,ie,q)}get locked(){if(!hi(this))throw Bu("locked");return gi(this)}abort(l=void 0){return hi(this)?gi(this)?f(new TypeError("Cannot abort a stream that already has a writer")):ju(this,l):f(Bu("abort"))}close(){return hi(this)?gi(this)?f(new TypeError("Cannot close a stream that already has a writer")):rn(this)?f(new TypeError("Cannot close an already-closing stream")):RP(this):f(Bu("close"))}getWriter(){if(!hi(this))throw Bu("getWriter");return wP(this)}}Object.defineProperties(Bn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),r(Bn.prototype.abort,"abort"),r(Bn.prototype.close,"close"),r(Bn.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Bn.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});function wP(c){return new vn(c)}a(wP,"AcquireWritableStreamDefaultWriter");function d0(c,l,m,E,I=1,j=()=>1){let q=Object.create(Bn.prototype);IP(q);let ie=Object.create(yi.prototype);return zP(q,ie,c,l,m,E,I,j),q}a(d0,"CreateWritableStream");function IP(c){c._state="writable",c._storedError=void 0,c._writer=void 0,c._writableStreamController=void 0,c._writeRequests=new H,c._inFlightWriteRequest=void 0,c._closeRequest=void 0,c._inFlightCloseRequest=void 0,c._pendingAbortRequest=void 0,c._backpressure=!1}a(IP,"InitializeWritableStream");function hi(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_writableStreamController")?!1:c instanceof Bn}a(hi,"IsWritableStream");function gi(c){return c._writer!==void 0}a(gi,"IsWritableStreamLocked");function ju(c,l){var m;if(c._state==="closed"||c._state==="errored")return p(void 0);c._writableStreamController._abortReason=l,(m=c._writableStreamController._abortController)===null||m===void 0||m.abort(l);let E=c._state;if(E==="closed"||E==="errored")return p(void 0);if(c._pendingAbortRequest!==void 0)return c._pendingAbortRequest._promise;let I=!1;E==="erroring"&&(I=!0,l=void 0);let j=d((q,ie)=>{c._pendingAbortRequest={_promise:void 0,_resolve:q,_reject:ie,_reason:l,_wasAlreadyErroring:I}});return c._pendingAbortRequest._promise=j,I||Tm(c,l),j}a(ju,"WritableStreamAbort");function RP(c){let l=c._state;if(l==="closed"||l==="errored")return f(new TypeError(`The stream (in ${l} state) is not in the writable state and cannot be closed`));let m=d((I,j)=>{let q={_resolve:I,_reject:j};c._closeRequest=q}),E=c._writer;return E!==void 0&&c._backpressure&&l==="writable"&&km(E),x0(c._writableStreamController),m}a(RP,"WritableStreamClose");function p0(c){return d((m,E)=>{let I={_resolve:m,_reject:E};c._writeRequests.push(I)})}a(p0,"WritableStreamAddWriteRequest");function Sm(c,l){if(c._state==="writable"){Tm(c,l);return}xm(c)}a(Sm,"WritableStreamDealWithRejection");function Tm(c,l){let m=c._writableStreamController;c._state="erroring",c._storedError=l;let E=c._writer;E!==void 0&&OP(E,l),!y0(c)&&m._started&&xm(c)}a(Tm,"WritableStreamStartErroring");function xm(c){c._state="errored",c._writableStreamController[re]();let l=c._storedError;if(c._writeRequests.forEach(I=>{I._reject(l)}),c._writeRequests=new H,c._pendingAbortRequest===void 0){Mu(c);return}let m=c._pendingAbortRequest;if(c._pendingAbortRequest=void 0,m._wasAlreadyErroring){m._reject(l),Mu(c);return}let E=c._writableStreamController[G](m._reason);y(E,()=>(m._resolve(),Mu(c),null),I=>(m._reject(I),Mu(c),null))}a(xm,"WritableStreamFinishErroring");function f0(c){c._inFlightWriteRequest._resolve(void 0),c._inFlightWriteRequest=void 0}a(f0,"WritableStreamFinishInFlightWrite");function m0(c,l){c._inFlightWriteRequest._reject(l),c._inFlightWriteRequest=void 0,Sm(c,l)}a(m0,"WritableStreamFinishInFlightWriteWithError");function h0(c){c._inFlightCloseRequest._resolve(void 0),c._inFlightCloseRequest=void 0,c._state==="erroring"&&(c._storedError=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._resolve(),c._pendingAbortRequest=void 0)),c._state="closed";let m=c._writer;m!==void 0&&MP(m)}a(h0,"WritableStreamFinishInFlightClose");function g0(c,l){c._inFlightCloseRequest._reject(l),c._inFlightCloseRequest=void 0,c._pendingAbortRequest!==void 0&&(c._pendingAbortRequest._reject(l),c._pendingAbortRequest=void 0),Sm(c,l)}a(g0,"WritableStreamFinishInFlightCloseWithError");function rn(c){return!(c._closeRequest===void 0&&c._inFlightCloseRequest===void 0)}a(rn,"WritableStreamCloseQueuedOrInFlight");function y0(c){return!(c._inFlightWriteRequest===void 0&&c._inFlightCloseRequest===void 0)}a(y0,"WritableStreamHasOperationMarkedInFlight");function _0(c){c._inFlightCloseRequest=c._closeRequest,c._closeRequest=void 0}a(_0,"WritableStreamMarkCloseRequestInFlight");function b0(c){c._inFlightWriteRequest=c._writeRequests.shift()}a(b0,"WritableStreamMarkFirstWriteRequestInFlight");function Mu(c){c._closeRequest!==void 0&&(c._closeRequest._reject(c._storedError),c._closeRequest=void 0);let l=c._writer;l!==void 0&&Cm(l,c._storedError)}a(Mu,"WritableStreamRejectCloseAndClosedPromiseIfNeeded");function Am(c,l){let m=c._writer;m!==void 0&&l!==c._backpressure&&(l?k0(m):km(m)),c._backpressure=l}a(Am,"WritableStreamUpdateBackpressure");class vn{static{a(this,"WritableStreamDefaultWriter")}constructor(l){if(ht(l,1,"WritableStreamDefaultWriter"),AP(l,"First parameter"),gi(l))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=l,l._writer=this;let m=l._state;if(m==="writable")!rn(l)&&l._backpressure?Vu(this):LP(this),qu(this);else if(m==="erroring")Om(this,l._storedError),qu(this);else if(m==="closed")LP(this),C0(this);else{let E=l._storedError;Om(this,E),jP(this,E)}}get closed(){return xo(this)?this._closedPromise:f(Ao("closed"))}get desiredSize(){if(!xo(this))throw Ao("desiredSize");if(this._ownerWritableStream===void 0)throw Ha("desiredSize");return S0(this)}get ready(){return xo(this)?this._readyPromise:f(Ao("ready"))}abort(l=void 0){return xo(this)?this._ownerWritableStream===void 0?f(Ha("abort")):v0(this,l):f(Ao("abort"))}close(){if(!xo(this))return f(Ao("close"));let l=this._ownerWritableStream;return l===void 0?f(Ha("close")):rn(l)?f(new TypeError("Cannot close an already-closing stream")):CP(this)}releaseLock(){if(!xo(this))throw Ao("releaseLock");this._ownerWritableStream!==void 0&&kP(this)}write(l=void 0){return xo(this)?this._ownerWritableStream===void 0?f(Ha("write to")):$P(this,l):f(Ao("write"))}}Object.defineProperties(vn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),r(vn.prototype.abort,"abort"),r(vn.prototype.close,"close"),r(vn.prototype.releaseLock,"releaseLock"),r(vn.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(vn.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function xo(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_ownerWritableStream")?!1:c instanceof vn}a(xo,"IsWritableStreamDefaultWriter");function v0(c,l){let m=c._ownerWritableStream;return ju(m,l)}a(v0,"WritableStreamDefaultWriterAbort");function CP(c){let l=c._ownerWritableStream;return RP(l)}a(CP,"WritableStreamDefaultWriterClose");function E0(c){let l=c._ownerWritableStream,m=l._state;return rn(l)||m==="closed"?p(void 0):m==="errored"?f(l._storedError):CP(c)}a(E0,"WritableStreamDefaultWriterCloseWithErrorPropagation");function P0(c,l){c._closedPromiseState==="pending"?Cm(c,l):O0(c,l)}a(P0,"WritableStreamDefaultWriterEnsureClosedPromiseRejected");function OP(c,l){c._readyPromiseState==="pending"?FP(c,l):$0(c,l)}a(OP,"WritableStreamDefaultWriterEnsureReadyPromiseRejected");function S0(c){let l=c._ownerWritableStream,m=l._state;return m==="errored"||m==="erroring"?null:m==="closed"?0:DP(l._writableStreamController)}a(S0,"WritableStreamDefaultWriterGetDesiredSize");function kP(c){let l=c._ownerWritableStream,m=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");OP(c,m),P0(c,m),l._writer=void 0,c._ownerWritableStream=void 0}a(kP,"WritableStreamDefaultWriterRelease");function $P(c,l){let m=c._ownerWritableStream,E=m._writableStreamController,I=A0(E,l);if(m!==c._ownerWritableStream)return f(Ha("write to"));let j=m._state;if(j==="errored")return f(m._storedError);if(rn(m)||j==="closed")return f(new TypeError("The stream is closing or closed and cannot be written to"));if(j==="erroring")return f(m._storedError);let q=p0(m);return w0(E,l,I),q}a($P,"WritableStreamDefaultWriterWrite");let NP={};class yi{static{a(this,"WritableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!wm(this))throw Rm("abortReason");return this._abortReason}get signal(){if(!wm(this))throw Rm("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(l=void 0){if(!wm(this))throw Rm("error");this._controlledWritableStream._state==="writable"&&UP(this,l)}[G](l){let m=this._abortAlgorithm(l);return Lu(this),m}[re](){Ln(this)}}Object.defineProperties(yi.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(yi.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function wm(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledWritableStream")?!1:c instanceof yi}a(wm,"IsWritableStreamDefaultController");function zP(c,l,m,E,I,j,q,ie){l._controlledWritableStream=c,c._writableStreamController=l,l._queue=void 0,l._queueTotalSize=void 0,Ln(l),l._abortReason=void 0,l._abortController=l0(),l._started=!1,l._strategySizeAlgorithm=ie,l._strategyHWM=q,l._writeAlgorithm=E,l._closeAlgorithm=I,l._abortAlgorithm=j;let _e=Im(l);Am(c,_e);let le=m(),Pe=p(le);y(Pe,()=>(l._started=!0,Fu(l),null),we=>(l._started=!0,Sm(c,we),null))}a(zP,"SetUpWritableStreamDefaultController");function T0(c,l,m,E){let I=Object.create(yi.prototype),j,q,ie,_e;l.start!==void 0?j=a(()=>l.start(I),"startAlgorithm"):j=a(()=>{},"startAlgorithm"),l.write!==void 0?q=a(le=>l.write(le,I),"writeAlgorithm"):q=a(()=>p(void 0),"writeAlgorithm"),l.close!==void 0?ie=a(()=>l.close(),"closeAlgorithm"):ie=a(()=>p(void 0),"closeAlgorithm"),l.abort!==void 0?_e=a(le=>l.abort(le),"abortAlgorithm"):_e=a(()=>p(void 0),"abortAlgorithm"),zP(c,I,j,q,ie,_e,m,E)}a(T0,"SetUpWritableStreamDefaultControllerFromUnderlyingSink");function Lu(c){c._writeAlgorithm=void 0,c._closeAlgorithm=void 0,c._abortAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Lu,"WritableStreamDefaultControllerClearAlgorithms");function x0(c){hm(c,NP,0),Fu(c)}a(x0,"WritableStreamDefaultControllerClose");function A0(c,l){try{return c._strategySizeAlgorithm(l)}catch(m){return Va(c,m),1}}a(A0,"WritableStreamDefaultControllerGetChunkSize");function DP(c){return c._strategyHWM-c._queueTotalSize}a(DP,"WritableStreamDefaultControllerGetDesiredSize");function w0(c,l,m){try{hm(c,l,m)}catch(I){Va(c,I);return}let E=c._controlledWritableStream;if(!rn(E)&&E._state==="writable"){let I=Im(c);Am(E,I)}Fu(c)}a(w0,"WritableStreamDefaultControllerWrite");function Fu(c){let l=c._controlledWritableStream;if(!c._started||l._inFlightWriteRequest!==void 0)return;if(l._state==="erroring"){xm(l);return}if(c._queue.length===0)return;let E=F$(c);E===NP?I0(c):R0(c,E)}a(Fu,"WritableStreamDefaultControllerAdvanceQueueIfNeeded");function Va(c,l){c._controlledWritableStream._state==="writable"&&UP(c,l)}a(Va,"WritableStreamDefaultControllerErrorIfNeeded");function I0(c){let l=c._controlledWritableStream;_0(l),mm(c);let m=c._closeAlgorithm();Lu(c),y(m,()=>(h0(l),null),E=>(g0(l,E),null))}a(I0,"WritableStreamDefaultControllerProcessClose");function R0(c,l){let m=c._controlledWritableStream;b0(m);let E=c._writeAlgorithm(l);y(E,()=>{f0(m);let I=m._state;if(mm(c),!rn(m)&&I==="writable"){let j=Im(c);Am(m,j)}return Fu(c),null},I=>(m._state==="writable"&&Lu(c),m0(m,I),null))}a(R0,"WritableStreamDefaultControllerProcessWrite");function Im(c){return DP(c)<=0}a(Im,"WritableStreamDefaultControllerGetBackpressure");function UP(c,l){let m=c._controlledWritableStream;Lu(c),Tm(m,l)}a(UP,"WritableStreamDefaultControllerError");function Bu(c){return new TypeError(`WritableStream.prototype.${c} can only be used on a WritableStream`)}a(Bu,"streamBrandCheckException$2");function Rm(c){return new TypeError(`WritableStreamDefaultController.prototype.${c} can only be used on a WritableStreamDefaultController`)}a(Rm,"defaultControllerBrandCheckException$2");function Ao(c){return new TypeError(`WritableStreamDefaultWriter.prototype.${c} can only be used on a WritableStreamDefaultWriter`)}a(Ao,"defaultWriterBrandCheckException");function Ha(c){return new TypeError("Cannot "+c+" a stream using a released writer")}a(Ha,"defaultWriterLockException");function qu(c){c._closedPromise=d((l,m)=>{c._closedPromise_resolve=l,c._closedPromise_reject=m,c._closedPromiseState="pending"})}a(qu,"defaultWriterClosedPromiseInitialize");function jP(c,l){qu(c),Cm(c,l)}a(jP,"defaultWriterClosedPromiseInitializeAsRejected");function C0(c){qu(c),MP(c)}a(C0,"defaultWriterClosedPromiseInitializeAsResolved");function Cm(c,l){c._closedPromise_reject!==void 0&&(S(c._closedPromise),c._closedPromise_reject(l),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="rejected")}a(Cm,"defaultWriterClosedPromiseReject");function O0(c,l){jP(c,l)}a(O0,"defaultWriterClosedPromiseResetToRejected");function MP(c){c._closedPromise_resolve!==void 0&&(c._closedPromise_resolve(void 0),c._closedPromise_resolve=void 0,c._closedPromise_reject=void 0,c._closedPromiseState="resolved")}a(MP,"defaultWriterClosedPromiseResolve");function Vu(c){c._readyPromise=d((l,m)=>{c._readyPromise_resolve=l,c._readyPromise_reject=m}),c._readyPromiseState="pending"}a(Vu,"defaultWriterReadyPromiseInitialize");function Om(c,l){Vu(c),FP(c,l)}a(Om,"defaultWriterReadyPromiseInitializeAsRejected");function LP(c){Vu(c),km(c)}a(LP,"defaultWriterReadyPromiseInitializeAsResolved");function FP(c,l){c._readyPromise_reject!==void 0&&(S(c._readyPromise),c._readyPromise_reject(l),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="rejected")}a(FP,"defaultWriterReadyPromiseReject");function k0(c){Vu(c)}a(k0,"defaultWriterReadyPromiseReset");function $0(c,l){Om(c,l)}a($0,"defaultWriterReadyPromiseResetToRejected");function km(c){c._readyPromise_resolve!==void 0&&(c._readyPromise_resolve(void 0),c._readyPromise_resolve=void 0,c._readyPromise_reject=void 0,c._readyPromiseState="fulfilled")}a(km,"defaultWriterReadyPromiseResolve");function N0(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof global<"u")return global}a(N0,"getGlobals");let $m=N0();function z0(c){if(!(typeof c=="function"||typeof c=="object")||c.name!=="DOMException")return!1;try{return new c,!0}catch{return!1}}a(z0,"isDOMExceptionConstructor");function D0(){let c=$m?.DOMException;return z0(c)?c:void 0}a(D0,"getFromGlobal");function U0(){let c=a(function(m,E){this.message=m||"",this.name=E||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)},"DOMException");return r(c,"DOMException"),c.prototype=Object.create(Error.prototype),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,configurable:!0}),c}a(U0,"createPolyfill");let j0=D0()||U0();function BP(c,l,m,E,I,j){let q=M(c),ie=wP(l);c._disturbed=!0;let _e=!1,le=p(void 0);return d((Pe,we)=>{let Qe;if(j!==void 0){if(Qe=a(()=>{let pe=j.reason!==void 0?j.reason:new j0("Aborted","AbortError"),Oe=[];E||Oe.push(()=>l._state==="writable"?ju(l,pe):p(void 0)),I||Oe.push(()=>c._state==="readable"?jr(c,pe):p(void 0)),Wt(()=>Promise.all(Oe.map(Ye=>Ye())),!0,pe)},"abortAlgorithm"),j.aborted){Qe();return}j.addEventListener("abort",Qe)}function Mr(){return d((pe,Oe)=>{function Ye(cr){cr?pe():g(Ei(),Ye,Oe)}a(Ye,"next"),Ye(!1)})}a(Mr,"pipeLoop");function Ei(){return _e?p(!0):g(ie._readyPromise,()=>d((pe,Oe)=>{ce(q,{_chunkSteps:a(Ye=>{le=g($P(ie,Ye),void 0,t),pe(!1)},"_chunkSteps"),_closeSteps:a(()=>pe(!0),"_closeSteps"),_errorSteps:Oe})}))}if(a(Ei,"pipeStep"),Pn(c,q._closedPromise,pe=>(E?xr(!0,pe):Wt(()=>ju(l,pe),!0,pe),null)),Pn(l,ie._closedPromise,pe=>(I?xr(!0,pe):Wt(()=>jr(c,pe),!0,pe),null)),Lt(c,q._closedPromise,()=>(m?xr():Wt(()=>E0(ie)),null)),rn(l)||l._state==="closed"){let pe=new TypeError("the destination writable stream closed before all data could be piped to it");I?xr(!0,pe):Wt(()=>jr(c,pe),!0,pe)}S(Mr());function Zn(){let pe=le;return g(le,()=>pe!==le?Zn():void 0)}a(Zn,"waitForWritesToFinish");function Pn(pe,Oe,Ye){pe._state==="errored"?Ye(pe._storedError):_(Oe,Ye)}a(Pn,"isOrBecomesErrored");function Lt(pe,Oe,Ye){pe._state==="closed"?Ye():h(Oe,Ye)}a(Lt,"isOrBecomesClosed");function Wt(pe,Oe,Ye){if(_e)return;_e=!0,l._state==="writable"&&!rn(l)?h(Zn(),cr):cr();function cr(){return y(pe(),()=>Sn(Oe,Ye),Pi=>Sn(!0,Pi)),null}a(cr,"doTheRest")}a(Wt,"shutdownWithAction");function xr(pe,Oe){_e||(_e=!0,l._state==="writable"&&!rn(l)?h(Zn(),()=>Sn(pe,Oe)):Sn(pe,Oe))}a(xr,"shutdown");function Sn(pe,Oe){return kP(ie),Le(q),j!==void 0&&j.removeEventListener("abort",Qe),pe?we(Oe):Pe(void 0),null}a(Sn,"finalize")})}a(BP,"ReadableStreamPipeTo");class En{static{a(this,"ReadableStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Hu(this))throw Gu("desiredSize");return Nm(this)}close(){if(!Hu(this))throw Gu("close");if(!bi(this))throw new TypeError("The stream is not in a state that permits close");wo(this)}enqueue(l=void 0){if(!Hu(this))throw Gu("enqueue");if(!bi(this))throw new TypeError("The stream is not in a state that permits enqueue");return _i(this,l)}error(l=void 0){if(!Hu(this))throw Gu("error");Ur(this,l)}[ue](l){Ln(this);let m=this._cancelAlgorithm(l);return Zu(this),m}[Y](l){let m=this._controlledReadableStream;if(this._queue.length>0){let E=mm(this);this._closeRequested&&this._queue.length===0?(Zu(this),Wa(m)):Za(this),l._chunkSteps(E)}else C(m,l),Za(this)}[Ze](){}}Object.defineProperties(En.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),r(En.prototype.close,"close"),r(En.prototype.enqueue,"enqueue"),r(En.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(En.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Hu(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledReadableStream")?!1:c instanceof En}a(Hu,"IsReadableStreamDefaultController");function Za(c){if(!qP(c))return;if(c._pulling){c._pullAgain=!0;return}c._pulling=!0;let m=c._pullAlgorithm();y(m,()=>(c._pulling=!1,c._pullAgain&&(c._pullAgain=!1,Za(c)),null),E=>(Ur(c,E),null))}a(Za,"ReadableStreamDefaultControllerCallPullIfNeeded");function qP(c){let l=c._controlledReadableStream;return!bi(c)||!c._started?!1:!!(Vn(l)&&U(l)>0||Nm(c)>0)}a(qP,"ReadableStreamDefaultControllerShouldCallPull");function Zu(c){c._pullAlgorithm=void 0,c._cancelAlgorithm=void 0,c._strategySizeAlgorithm=void 0}a(Zu,"ReadableStreamDefaultControllerClearAlgorithms");function wo(c){if(!bi(c))return;let l=c._controlledReadableStream;c._closeRequested=!0,c._queue.length===0&&(Zu(c),Wa(l))}a(wo,"ReadableStreamDefaultControllerClose");function _i(c,l){if(!bi(c))return;let m=c._controlledReadableStream;if(Vn(m)&&U(m)>0)$(m,l,!1);else{let E;try{E=c._strategySizeAlgorithm(l)}catch(I){throw Ur(c,I),I}try{hm(c,l,E)}catch(I){throw Ur(c,I),I}}Za(c)}a(_i,"ReadableStreamDefaultControllerEnqueue");function Ur(c,l){let m=c._controlledReadableStream;m._state==="readable"&&(Ln(c),Zu(c),GP(m,l))}a(Ur,"ReadableStreamDefaultControllerError");function Nm(c){let l=c._controlledReadableStream._state;return l==="errored"?null:l==="closed"?0:c._strategyHWM-c._queueTotalSize}a(Nm,"ReadableStreamDefaultControllerGetDesiredSize");function M0(c){return!qP(c)}a(M0,"ReadableStreamDefaultControllerHasBackpressure");function bi(c){let l=c._controlledReadableStream._state;return!c._closeRequested&&l==="readable"}a(bi,"ReadableStreamDefaultControllerCanCloseOrEnqueue");function VP(c,l,m,E,I,j,q){l._controlledReadableStream=c,l._queue=void 0,l._queueTotalSize=void 0,Ln(l),l._started=!1,l._closeRequested=!1,l._pullAgain=!1,l._pulling=!1,l._strategySizeAlgorithm=q,l._strategyHWM=j,l._pullAlgorithm=E,l._cancelAlgorithm=I,c._readableStreamController=l;let ie=m();y(p(ie),()=>(l._started=!0,Za(l),null),_e=>(Ur(l,_e),null))}a(VP,"SetUpReadableStreamDefaultController");function L0(c,l,m,E){let I=Object.create(En.prototype),j,q,ie;l.start!==void 0?j=a(()=>l.start(I),"startAlgorithm"):j=a(()=>{},"startAlgorithm"),l.pull!==void 0?q=a(()=>l.pull(I),"pullAlgorithm"):q=a(()=>p(void 0),"pullAlgorithm"),l.cancel!==void 0?ie=a(_e=>l.cancel(_e),"cancelAlgorithm"):ie=a(()=>p(void 0),"cancelAlgorithm"),VP(c,I,j,q,ie,m,E)}a(L0,"SetUpReadableStreamDefaultControllerFromUnderlyingSource");function Gu(c){return new TypeError(`ReadableStreamDefaultController.prototype.${c} can only be used on a ReadableStreamDefaultController`)}a(Gu,"defaultControllerBrandCheckException$1");function F0(c,l){return Po(c._readableStreamController)?q0(c):B0(c)}a(F0,"ReadableStreamTee");function B0(c,l){let m=M(c),E=!1,I=!1,j=!1,q=!1,ie,_e,le,Pe,we,Qe=d(Lt=>{we=Lt});function Mr(){return E?(I=!0,p(void 0)):(E=!0,ce(m,{_chunkSteps:a(Wt=>{T(()=>{I=!1;let xr=Wt,Sn=Wt;j||_i(le._readableStreamController,xr),q||_i(Pe._readableStreamController,Sn),E=!1,I&&Mr()})},"_chunkSteps"),_closeSteps:a(()=>{E=!1,j||wo(le._readableStreamController),q||wo(Pe._readableStreamController),(!j||!q)&&we(void 0)},"_closeSteps"),_errorSteps:a(()=>{E=!1},"_errorSteps")}),p(void 0))}a(Mr,"pullAlgorithm");function Ei(Lt){if(j=!0,ie=Lt,q){let Wt=We([ie,_e]),xr=jr(c,Wt);we(xr)}return Qe}a(Ei,"cancel1Algorithm");function Zn(Lt){if(q=!0,_e=Lt,j){let Wt=We([ie,_e]),xr=jr(c,Wt);we(xr)}return Qe}a(Zn,"cancel2Algorithm");function Pn(){}return a(Pn,"startAlgorithm"),le=Ga(Pn,Mr,Ei),Pe=Ga(Pn,Mr,Zn),_(m._closedPromise,Lt=>(Ur(le._readableStreamController,Lt),Ur(Pe._readableStreamController,Lt),(!j||!q)&&we(void 0),null)),[le,Pe]}a(B0,"ReadableStreamDefaultTee");function q0(c){let l=M(c),m=!1,E=!1,I=!1,j=!1,q=!1,ie,_e,le,Pe,we,Qe=d(pe=>{we=pe});function Mr(pe){_(pe._closedPromise,Oe=>(pe!==l||(Tr(le._readableStreamController,Oe),Tr(Pe._readableStreamController,Oe),(!j||!q)&&we(void 0)),null))}a(Mr,"forwardReaderError");function Ei(){To(l)&&(Le(l),l=M(c),Mr(l)),ce(l,{_chunkSteps:a(Oe=>{T(()=>{E=!1,I=!1;let Ye=Oe,cr=Oe;if(!j&&!q)try{cr=cP(Oe)}catch(Pi){Tr(le._readableStreamController,Pi),Tr(Pe._readableStreamController,Pi),we(jr(c,Pi));return}j||ku(le._readableStreamController,Ye),q||ku(Pe._readableStreamController,cr),m=!1,E?Pn():I&&Lt()})},"_chunkSteps"),_closeSteps:a(()=>{m=!1,j||Fa(le._readableStreamController),q||Fa(Pe._readableStreamController),le._readableStreamController._pendingPullIntos.length>0&&$u(le._readableStreamController,0),Pe._readableStreamController._pendingPullIntos.length>0&&$u(Pe._readableStreamController,0),(!j||!q)&&we(void 0)},"_closeSteps"),_errorSteps:a(()=>{m=!1},"_errorSteps")})}a(Ei,"pullWithDefaultReader");function Zn(pe,Oe){ae(l)&&(Le(l),l=EP(c),Mr(l));let Ye=Oe?Pe:le,cr=Oe?le:Pe;TP(l,pe,1,{_chunkSteps:a(Si=>{T(()=>{E=!1,I=!1;let Ti=Oe?q:j;if(Oe?j:q)Ti||Nu(Ye._readableStreamController,Si);else{let aS;try{aS=cP(Si)}catch(Mm){Tr(Ye._readableStreamController,Mm),Tr(cr._readableStreamController,Mm),we(jr(c,Mm));return}Ti||Nu(Ye._readableStreamController,Si),ku(cr._readableStreamController,aS)}m=!1,E?Pn():I&&Lt()})},"_chunkSteps"),_closeSteps:a(Si=>{m=!1;let Ti=Oe?q:j,tl=Oe?j:q;Ti||Fa(Ye._readableStreamController),tl||Fa(cr._readableStreamController),Si!==void 0&&(Ti||Nu(Ye._readableStreamController,Si),!tl&&cr._readableStreamController._pendingPullIntos.length>0&&$u(cr._readableStreamController,0)),(!Ti||!tl)&&we(void 0)},"_closeSteps"),_errorSteps:a(()=>{m=!1},"_errorSteps")})}a(Zn,"pullWithBYOBReader");function Pn(){if(m)return E=!0,p(void 0);m=!0;let pe=vm(le._readableStreamController);return pe===null?Ei():Zn(pe._view,!1),p(void 0)}a(Pn,"pull1Algorithm");function Lt(){if(m)return I=!0,p(void 0);m=!0;let pe=vm(Pe._readableStreamController);return pe===null?Ei():Zn(pe._view,!0),p(void 0)}a(Lt,"pull2Algorithm");function Wt(pe){if(j=!0,ie=pe,q){let Oe=We([ie,_e]),Ye=jr(c,Oe);we(Ye)}return Qe}a(Wt,"cancel1Algorithm");function xr(pe){if(q=!0,_e=pe,j){let Oe=We([ie,_e]),Ye=jr(c,Oe);we(Ye)}return Qe}a(xr,"cancel2Algorithm");function Sn(){}return a(Sn,"startAlgorithm"),le=ZP(Sn,Pn,Wt),Pe=ZP(Sn,Lt,xr),Mr(l),[le,Pe]}a(q0,"ReadableByteStreamTee");function V0(c){return n(c)&&typeof c.getReader<"u"}a(V0,"isReadableStreamLike");function H0(c){return V0(c)?G0(c.getReader()):Z0(c)}a(H0,"ReadableStreamFrom");function Z0(c){let l,m=sP(c,"async"),E=t;function I(){let q;try{q=U$(m)}catch(_e){return f(_e)}let ie=p(q);return P(ie,_e=>{if(!n(_e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(j$(_e))wo(l._readableStreamController);else{let Pe=M$(_e);_i(l._readableStreamController,Pe)}})}a(I,"pullAlgorithm");function j(q){let ie=m.iterator,_e;try{_e=Ru(ie,"return")}catch(we){return f(we)}if(_e===void 0)return p(void 0);let le;try{le=R(_e,ie,[q])}catch(we){return f(we)}let Pe=p(le);return P(Pe,we=>{if(!n(we))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return a(j,"cancelAlgorithm"),l=Ga(E,I,j,0),l}a(Z0,"ReadableStreamFromIterable");function G0(c){let l,m=t;function E(){let j;try{j=c.read()}catch(q){return f(q)}return P(j,q=>{if(!n(q))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(q.done)wo(l._readableStreamController);else{let ie=q.value;_i(l._readableStreamController,ie)}})}a(E,"pullAlgorithm");function I(j){try{return p(c.cancel(j))}catch(q){return f(q)}}return a(I,"cancelAlgorithm"),l=Ga(m,E,I,0),l}a(G0,"ReadableStreamFromDefaultReader");function W0(c,l){Gt(c,l);let m=c,E=m?.autoAllocateChunkSize,I=m?.cancel,j=m?.pull,q=m?.start,ie=m?.type;return{autoAllocateChunkSize:E===void 0?void 0:O(E,`${l} has member 'autoAllocateChunkSize' that`),cancel:I===void 0?void 0:J0(I,m,`${l} has member 'cancel' that`),pull:j===void 0?void 0:K0(j,m,`${l} has member 'pull' that`),start:q===void 0?void 0:X0(q,m,`${l} has member 'start' that`),type:ie===void 0?void 0:Q0(ie,`${l} has member 'type' that`)}}a(W0,"convertUnderlyingDefaultOrByteSource");function J0(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(J0,"convertUnderlyingSourceCancelCallback");function K0(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(K0,"convertUnderlyingSourcePullCallback");function X0(c,l,m){return jt(c,m),E=>R(c,l,[E])}a(X0,"convertUnderlyingSourceStartCallback");function Q0(c,l){if(c=`${c}`,c!=="bytes")throw new TypeError(`${l} '${c}' is not a valid enumeration value for ReadableStreamType`);return c}a(Q0,"convertReadableStreamType");function Y0(c,l){return Gt(c,l),{preventCancel:!!c?.preventCancel}}a(Y0,"convertIteratorOptions");function HP(c,l){Gt(c,l);let m=c?.preventAbort,E=c?.preventCancel,I=c?.preventClose,j=c?.signal;return j!==void 0&&eN(j,`${l} has member 'signal' that`),{preventAbort:!!m,preventCancel:!!E,preventClose:!!I,signal:j}}a(HP,"convertPipeOptions");function eN(c,l){if(!c0(c))throw new TypeError(`${l} is not an AbortSignal.`)}a(eN,"assertAbortSignal");function tN(c,l){Gt(c,l);let m=c?.readable;v(m,"readable","ReadableWritablePair"),N(m,`${l} has member 'readable' that`);let E=c?.writable;return v(E,"writable","ReadableWritablePair"),AP(E,`${l} has member 'writable' that`),{readable:m,writable:E}}a(tN,"convertReadableWritablePair");class Nt{static{a(this,"ReadableStream")}constructor(l={},m={}){l===void 0?l=null:Mt(l,"First parameter");let E=Uu(m,"Second parameter"),I=W0(l,"First parameter");if(zm(this),I.type==="bytes"){if(E.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let j=qa(E,0);J$(this,I,j)}else{let j=Du(E),q=qa(E,1);L0(this,I,q,j)}}get locked(){if(!qn(this))throw Io("locked");return Vn(this)}cancel(l=void 0){return qn(this)?Vn(this)?f(new TypeError("Cannot cancel a stream that already has a reader")):jr(this,l):f(Io("cancel"))}getReader(l=void 0){if(!qn(this))throw Io("getReader");return X$(l,"First parameter").mode===void 0?M(this):EP(this)}pipeThrough(l,m={}){if(!qn(this))throw Io("pipeThrough");ht(l,1,"pipeThrough");let E=tN(l,"First parameter"),I=HP(m,"Second parameter");if(Vn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(gi(E.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let j=BP(this,E.writable,I.preventClose,I.preventAbort,I.preventCancel,I.signal);return S(j),E.readable}pipeTo(l,m={}){if(!qn(this))return f(Io("pipeTo"));if(l===void 0)return f("Parameter 1 is required in 'pipeTo'.");if(!hi(l))return f(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let E;try{E=HP(m,"Second parameter")}catch(I){return f(I)}return Vn(this)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):gi(l)?f(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):BP(this,l,E.preventClose,E.preventAbort,E.preventCancel,E.signal)}tee(){if(!qn(this))throw Io("tee");let l=F0(this);return We(l)}values(l=void 0){if(!qn(this))throw Io("values");let m=Y0(l,"First parameter");return di(this,m.preventCancel)}[fm](l){return this.values(l)}static from(l){return H0(l)}}Object.defineProperties(Nt,{from:{enumerable:!0}}),Object.defineProperties(Nt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),r(Nt.from,"from"),r(Nt.prototype.cancel,"cancel"),r(Nt.prototype.getReader,"getReader"),r(Nt.prototype.pipeThrough,"pipeThrough"),r(Nt.prototype.pipeTo,"pipeTo"),r(Nt.prototype.tee,"tee"),r(Nt.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Nt.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Nt.prototype,fm,{value:Nt.prototype.values,writable:!0,configurable:!0});function Ga(c,l,m,E=1,I=()=>1){let j=Object.create(Nt.prototype);zm(j);let q=Object.create(En.prototype);return VP(j,q,c,l,m,E,I),j}a(Ga,"CreateReadableStream");function ZP(c,l,m){let E=Object.create(Nt.prototype);zm(E);let I=Object.create(bn.prototype);return vP(E,I,c,l,m,0,void 0),E}a(ZP,"CreateReadableByteStream");function zm(c){c._state="readable",c._reader=void 0,c._storedError=void 0,c._disturbed=!1}a(zm,"InitializeReadableStream");function qn(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_readableStreamController")?!1:c instanceof Nt}a(qn,"IsReadableStream");function Vn(c){return c._reader!==void 0}a(Vn,"IsReadableStreamLocked");function jr(c,l){if(c._disturbed=!0,c._state==="closed")return p(void 0);if(c._state==="errored")return f(c._storedError);Wa(c);let m=c._reader;if(m!==void 0&&To(m)){let I=m._readIntoRequests;m._readIntoRequests=new H,I.forEach(j=>{j._closeSteps(void 0)})}let E=c._readableStreamController[ue](l);return P(E,t)}a(jr,"ReadableStreamCancel");function Wa(c){c._state="closed";let l=c._reader;if(l!==void 0&&(li(l),ae(l))){let m=l._readRequests;l._readRequests=new H,m.forEach(E=>{E._closeSteps()})}}a(Wa,"ReadableStreamClose");function GP(c,l){c._state="errored",c._storedError=l;let m=c._reader;m!==void 0&&(ar(m,l),ae(m)?rt(m,l):xP(m,l))}a(GP,"ReadableStreamError");function Io(c){return new TypeError(`ReadableStream.prototype.${c} can only be used on a ReadableStream`)}a(Io,"streamBrandCheckException$1");function WP(c,l){Gt(c,l);let m=c?.highWaterMark;return v(m,"highWaterMark","QueuingStrategyInit"),{highWaterMark:x(m)}}a(WP,"convertQueuingStrategyInit");let JP=a(c=>c.byteLength,"byteLengthSizeFunction");r(JP,"size");class Wu{static{a(this,"ByteLengthQueuingStrategy")}constructor(l){ht(l,1,"ByteLengthQueuingStrategy"),l=WP(l,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=l.highWaterMark}get highWaterMark(){if(!XP(this))throw KP("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!XP(this))throw KP("size");return JP}}Object.defineProperties(Wu.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Wu.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function KP(c){return new TypeError(`ByteLengthQueuingStrategy.prototype.${c} can only be used on a ByteLengthQueuingStrategy`)}a(KP,"byteLengthBrandCheckException");function XP(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_byteLengthQueuingStrategyHighWaterMark")?!1:c instanceof Wu}a(XP,"IsByteLengthQueuingStrategy");let QP=a(()=>1,"countSizeFunction");r(QP,"size");class Ju{static{a(this,"CountQueuingStrategy")}constructor(l){ht(l,1,"CountQueuingStrategy"),l=WP(l,"First parameter"),this._countQueuingStrategyHighWaterMark=l.highWaterMark}get highWaterMark(){if(!eS(this))throw YP("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!eS(this))throw YP("size");return QP}}Object.defineProperties(Ju.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ju.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function YP(c){return new TypeError(`CountQueuingStrategy.prototype.${c} can only be used on a CountQueuingStrategy`)}a(YP,"countBrandCheckException");function eS(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_countQueuingStrategyHighWaterMark")?!1:c instanceof Ju}a(eS,"IsCountQueuingStrategy");function rN(c,l){Gt(c,l);let m=c?.cancel,E=c?.flush,I=c?.readableType,j=c?.start,q=c?.transform,ie=c?.writableType;return{cancel:m===void 0?void 0:aN(m,c,`${l} has member 'cancel' that`),flush:E===void 0?void 0:nN(E,c,`${l} has member 'flush' that`),readableType:I,start:j===void 0?void 0:oN(j,c,`${l} has member 'start' that`),transform:q===void 0?void 0:iN(q,c,`${l} has member 'transform' that`),writableType:ie}}a(rN,"convertTransformer");function nN(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(nN,"convertTransformerFlushCallback");function oN(c,l,m){return jt(c,m),E=>R(c,l,[E])}a(oN,"convertTransformerStartCallback");function iN(c,l,m){return jt(c,m),(E,I)=>V(c,l,[E,I])}a(iN,"convertTransformerTransformCallback");function aN(c,l,m){return jt(c,m),E=>V(c,l,[E])}a(aN,"convertTransformerCancelCallback");class Ku{static{a(this,"TransformStream")}constructor(l={},m={},E={}){l===void 0&&(l=null);let I=Uu(m,"Second parameter"),j=Uu(E,"Third parameter"),q=rN(l,"First parameter");if(q.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(q.writableType!==void 0)throw new RangeError("Invalid writableType specified");let ie=qa(j,0),_e=Du(j),le=qa(I,1),Pe=Du(I),we,Qe=d(Mr=>{we=Mr});sN(this,Qe,le,Pe,ie,_e),uN(this,q),q.start!==void 0?we(q.start(this._transformStreamController)):we(void 0)}get readable(){if(!tS(this))throw iS("readable");return this._readable}get writable(){if(!tS(this))throw iS("writable");return this._writable}}Object.defineProperties(Ku.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Ku.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});function sN(c,l,m,E,I,j){function q(){return l}a(q,"startAlgorithm");function ie(Qe){return pN(c,Qe)}a(ie,"writeAlgorithm");function _e(Qe){return fN(c,Qe)}a(_e,"abortAlgorithm");function le(){return mN(c)}a(le,"closeAlgorithm"),c._writable=d0(q,ie,le,_e,m,E);function Pe(){return hN(c)}a(Pe,"pullAlgorithm");function we(Qe){return gN(c,Qe)}a(we,"cancelAlgorithm"),c._readable=Ga(q,Pe,we,I,j),c._backpressure=void 0,c._backpressureChangePromise=void 0,c._backpressureChangePromise_resolve=void 0,Xu(c,!0),c._transformStreamController=void 0}a(sN,"InitializeTransformStream");function tS(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_transformStreamController")?!1:c instanceof Ku}a(tS,"IsTransformStream");function rS(c,l){Ur(c._readable._readableStreamController,l),Dm(c,l)}a(rS,"TransformStreamError");function Dm(c,l){Yu(c._transformStreamController),Va(c._writable._writableStreamController,l),Um(c)}a(Dm,"TransformStreamErrorWritableAndUnblockWrite");function Um(c){c._backpressure&&Xu(c,!1)}a(Um,"TransformStreamUnblockWrite");function Xu(c,l){c._backpressureChangePromise!==void 0&&c._backpressureChangePromise_resolve(),c._backpressureChangePromise=d(m=>{c._backpressureChangePromise_resolve=m}),c._backpressure=l}a(Xu,"TransformStreamSetBackpressure");class Hn{static{a(this,"TransformStreamDefaultController")}constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Qu(this))throw el("desiredSize");let l=this._controlledTransformStream._readable._readableStreamController;return Nm(l)}enqueue(l=void 0){if(!Qu(this))throw el("enqueue");nS(this,l)}error(l=void 0){if(!Qu(this))throw el("error");lN(this,l)}terminate(){if(!Qu(this))throw el("terminate");dN(this)}}Object.defineProperties(Hn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),r(Hn.prototype.enqueue,"enqueue"),r(Hn.prototype.error,"error"),r(Hn.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Hn.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Qu(c){return!n(c)||!Object.prototype.hasOwnProperty.call(c,"_controlledTransformStream")?!1:c instanceof Hn}a(Qu,"IsTransformStreamDefaultController");function cN(c,l,m,E,I){l._controlledTransformStream=c,c._transformStreamController=l,l._transformAlgorithm=m,l._flushAlgorithm=E,l._cancelAlgorithm=I,l._finishPromise=void 0,l._finishPromise_resolve=void 0,l._finishPromise_reject=void 0}a(cN,"SetUpTransformStreamDefaultController");function uN(c,l){let m=Object.create(Hn.prototype),E,I,j;l.transform!==void 0?E=a(q=>l.transform(q,m),"transformAlgorithm"):E=a(q=>{try{return nS(m,q),p(void 0)}catch(ie){return f(ie)}},"transformAlgorithm"),l.flush!==void 0?I=a(()=>l.flush(m),"flushAlgorithm"):I=a(()=>p(void 0),"flushAlgorithm"),l.cancel!==void 0?j=a(q=>l.cancel(q),"cancelAlgorithm"):j=a(()=>p(void 0),"cancelAlgorithm"),cN(c,m,E,I,j)}a(uN,"SetUpTransformStreamDefaultControllerFromTransformer");function Yu(c){c._transformAlgorithm=void 0,c._flushAlgorithm=void 0,c._cancelAlgorithm=void 0}a(Yu,"TransformStreamDefaultControllerClearAlgorithms");function nS(c,l){let m=c._controlledTransformStream,E=m._readable._readableStreamController;if(!bi(E))throw new TypeError("Readable side is not in a state that permits enqueue");try{_i(E,l)}catch(j){throw Dm(m,j),m._readable._storedError}M0(E)!==m._backpressure&&Xu(m,!0)}a(nS,"TransformStreamDefaultControllerEnqueue");function lN(c,l){rS(c._controlledTransformStream,l)}a(lN,"TransformStreamDefaultControllerError");function oS(c,l){let m=c._transformAlgorithm(l);return P(m,void 0,E=>{throw rS(c._controlledTransformStream,E),E})}a(oS,"TransformStreamDefaultControllerPerformTransform");function dN(c){let l=c._controlledTransformStream,m=l._readable._readableStreamController;wo(m);let E=new TypeError("TransformStream terminated");Dm(l,E)}a(dN,"TransformStreamDefaultControllerTerminate");function pN(c,l){let m=c._transformStreamController;if(c._backpressure){let E=c._backpressureChangePromise;return P(E,()=>{let I=c._writable;if(I._state==="erroring")throw I._storedError;return oS(m,l)})}return oS(m,l)}a(pN,"TransformStreamDefaultSinkWriteAlgorithm");function fN(c,l){let m=c._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let E=c._readable;m._finishPromise=d((j,q)=>{m._finishPromise_resolve=j,m._finishPromise_reject=q});let I=m._cancelAlgorithm(l);return Yu(m),y(I,()=>(E._state==="errored"?vi(m,E._storedError):(Ur(E._readableStreamController,l),jm(m)),null),j=>(Ur(E._readableStreamController,j),vi(m,j),null)),m._finishPromise}a(fN,"TransformStreamDefaultSinkAbortAlgorithm");function mN(c){let l=c._transformStreamController;if(l._finishPromise!==void 0)return l._finishPromise;let m=c._readable;l._finishPromise=d((I,j)=>{l._finishPromise_resolve=I,l._finishPromise_reject=j});let E=l._flushAlgorithm();return Yu(l),y(E,()=>(m._state==="errored"?vi(l,m._storedError):(wo(m._readableStreamController),jm(l)),null),I=>(Ur(m._readableStreamController,I),vi(l,I),null)),l._finishPromise}a(mN,"TransformStreamDefaultSinkCloseAlgorithm");function hN(c){return Xu(c,!1),c._backpressureChangePromise}a(hN,"TransformStreamDefaultSourcePullAlgorithm");function gN(c,l){let m=c._transformStreamController;if(m._finishPromise!==void 0)return m._finishPromise;let E=c._writable;m._finishPromise=d((j,q)=>{m._finishPromise_resolve=j,m._finishPromise_reject=q});let I=m._cancelAlgorithm(l);return Yu(m),y(I,()=>(E._state==="errored"?vi(m,E._storedError):(Va(E._writableStreamController,l),Um(c),jm(m)),null),j=>(Va(E._writableStreamController,j),Um(c),vi(m,j),null)),m._finishPromise}a(gN,"TransformStreamDefaultSourceCancelAlgorithm");function el(c){return new TypeError(`TransformStreamDefaultController.prototype.${c} can only be used on a TransformStreamDefaultController`)}a(el,"defaultControllerBrandCheckException");function jm(c){c._finishPromise_resolve!==void 0&&(c._finishPromise_resolve(),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(jm,"defaultControllerFinishPromiseResolve");function vi(c,l){c._finishPromise_reject!==void 0&&(S(c._finishPromise),c._finishPromise_reject(l),c._finishPromise_resolve=void 0,c._finishPromise_reject=void 0)}a(vi,"defaultControllerFinishPromiseReject");function iS(c){return new TypeError(`TransformStream.prototype.${c} can only be used on a TransformStream`)}a(iS,"streamBrandCheckException"),e.ByteLengthQueuingStrategy=Wu,e.CountQueuingStrategy=Ju,e.ReadableByteStreamController=bn,e.ReadableStream=Nt,e.ReadableStreamBYOBReader=Fn,e.ReadableStreamBYOBRequest=Eo,e.ReadableStreamDefaultController=En,e.ReadableStreamDefaultReader=Z,e.TransformStream=Ku,e.TransformStreamDefaultController=Hn,e.WritableStream=Bn,e.WritableStreamDefaultController=yi,e.WritableStreamDefaultWriter=vn}))});var aC=B(()=>{if(!globalThis.ReadableStream)try{let e=require("node:process"),{emitWarning:t}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("node:stream/web")),e.emitWarning=t}catch(n){throw e.emitWarning=t,n}}catch{Object.assign(globalThis,iC())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=a(function(n){let o=0,r=this;return new ReadableStream({type:"bytes",async pull(i){let u=await r.slice(o,Math.min(r.size,o+65536)).arrayBuffer();o+=u.byteLength,i.enqueue(new Uint8Array(u)),o===r.size&&i.close()}})},"name"))}catch{}});async function*Kb(e,t=!0){for(let n of e)if("stream"in n)yield*n.stream();else if(ArrayBuffer.isView(n))if(t){let o=n.byteOffset,r=n.byteOffset+n.byteLength;for(;o!==r;){let i=Math.min(r-o,sC),s=n.buffer.slice(o,o+i);o+=s.byteLength,yield new Uint8Array(s)}}else yield n;else{let o=0,r=n;for(;o!==r.size;){let s=await r.slice(o,Math.min(r.size,o+sC)).arrayBuffer();o+=s.byteLength,yield new Uint8Array(s)}}}var XY,sC,cC,sF,Zr,eu=bt(()=>{XY=Rt(aC(),1);sC=65536;a(Kb,"toIterator");cC=class Xb{static{a(this,"Blob")}#e=[];#t="";#r=0;#n="transparent";constructor(t=[],n={}){if(typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof t[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof n!="object"&&typeof n!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");n===null&&(n={});let o=new TextEncoder;for(let i of t){let s;ArrayBuffer.isView(i)?s=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)):i instanceof ArrayBuffer?s=new Uint8Array(i.slice(0)):i instanceof Xb?s=i:s=o.encode(`${i}`),this.#r+=ArrayBuffer.isView(s)?s.byteLength:s.size,this.#e.push(s)}this.#n=`${n.endings===void 0?"transparent":n.endings}`;let r=n.type===void 0?"":String(n.type);this.#t=/^[\x20-\x7E]*$/.test(r)?r:""}get size(){return this.#r}get type(){return this.#t}async text(){let t=new TextDecoder,n="";for await(let o of Kb(this.#e,!1))n+=t.decode(o,{stream:!0});return n+=t.decode(),n}async arrayBuffer(){let t=new Uint8Array(this.size),n=0;for await(let o of Kb(this.#e,!1))t.set(o,n),n+=o.length;return t.buffer}stream(){let t=Kb(this.#e,!0);return new globalThis.ReadableStream({type:"bytes",async pull(n){let o=await t.next();o.done?n.close():n.enqueue(o.value)},async cancel(){await t.return()}})}slice(t=0,n=this.size,o=""){let{size:r}=this,i=t<0?Math.max(r+t,0):Math.min(t,r),s=n<0?Math.max(r+n,0):Math.min(n,r),u=Math.max(s-i,0),d=this.#e,p=[],f=0;for(let y of d){if(f>=u)break;let h=ArrayBuffer.isView(y)?y.byteLength:y.size;if(i&&h<=i)i-=h,s-=h;else{let _;ArrayBuffer.isView(y)?(_=y.subarray(i,Math.min(h,s)),f+=_.byteLength):(_=y.slice(i,Math.min(h,s)),f+=_.size),s-=h,p.push(_),i=0}}let g=new Xb([],{type:String(o).toLowerCase()});return g.#r=u,g.#e=p,g}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](t){return t&&typeof t=="object"&&typeof t.constructor=="function"&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}};Object.defineProperties(cC.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});sF=cC,Zr=sF});var cF,uF,mo,Qb=bt(()=>{eu();cF=class extends Zr{static{a(this,"File")}#e=0;#t="";constructor(t,n,o={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(t,o),o===null&&(o={});let r=o.lastModified===void 0?Date.now():Number(o.lastModified);Number.isNaN(r)||(this.#e=r),this.#t=String(n)}get name(){return this.#t}get lastModified(){return this.#e}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](t){return!!t&&t instanceof Zr&&/^(File)$/.test(t[Symbol.toStringTag])}},uF=cF,mo=uF});function dC(e,t=Zr){var n=`${uC()}${uC()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),o=[],r=`--${n}\r
15
15
  Content-Disposition: form-data; name="`;return e.forEach((i,s)=>typeof i=="string"?o.push(r+Yb(s)+`"\r
16
16
  \r
17
17
  ${i.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
@@ -46,13 +46,13 @@ ${f}
46
46
  ${g}`,h=`${s}/${e.region}/${o}/${z6}`,_=`${Qk}
47
47
  ${i}
48
48
  ${h}
49
- `+await e.crypto.sha256DigestHex(y),P=await D6(e.crypto,e.securityCredentials.secretAccessKey,s,e.region,o),S=await Tu(e.crypto,P,_),T=`${Qk} Credential=${e.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,Yk.fromArrayBufferToHex)(S)}`;return{amzDate:t.has("date")?void 0:i,authorizationHeader:T,canonicalQuerystring:e.canonicalQuerystring}}a(U6,"generateAuthenticationHeaderMap")});var e0=B(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.DefaultAwsSecurityCredentialsSupplier=void 0;var Jf=br(),CE=class{static{a(this,"DefaultAwsSecurityCredentialsSupplier")}regionUrl;securityCredentialsUrl;imdsV2SessionTokenUrl;additionalGaxiosOptions;constructor(t){this.regionUrl=t.regionUrl,this.securityCredentialsUrl=t.securityCredentialsUrl,this.imdsV2SessionTokenUrl=t.imdsV2SessionTokenUrl,this.additionalGaxiosOptions=t.additionalGaxiosOptions}async getAwsRegion(t){if(this.#n)return this.#n;let n=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&n.set("x-aws-ec2-metadata-token",await this.#e(t.transporter)),!this.regionUrl)throw new RangeError('Unable to determine AWS region due to missing "options.credential_source.region_url"');let o={...this.additionalGaxiosOptions,url:this.regionUrl,method:"GET",headers:n};Jf.AuthClient.setMethodName(o,"getAwsRegion");let r=await t.transporter.request(o);return r.data.substr(0,r.data.length-1)}async getAwsSecurityCredentials(t){if(this.#o)return this.#o;let n=new Headers;this.imdsV2SessionTokenUrl&&n.set("x-aws-ec2-metadata-token",await this.#e(t.transporter));let o=await this.#t(n,t.transporter),r=await this.#r(o,n,t.transporter);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,token:r.Token}}async#e(t){let n={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return Jf.AuthClient.setMethodName(n,"#getImdsV2SessionToken"),(await t.request(n)).data}async#t(t,n){if(!this.securityCredentialsUrl)throw new Error('Unable to determine AWS role name due to missing "options.credential_source.url"');let o={...this.additionalGaxiosOptions,url:this.securityCredentialsUrl,method:"GET",headers:t};return Jf.AuthClient.setMethodName(o,"#getAwsRoleName"),(await n.request(o)).data}async#r(t,n,o){let r={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${t}`,headers:n};return Jf.AuthClient.setMethodName(r,"#retrieveAwsSecurityCredentials"),(await o.request(r)).data}get#n(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||null}get#o(){return process.env.AWS_ACCESS_KEY_ID&&process.env.AWS_SECRET_ACCESS_KEY?{accessKeyId:process.env.AWS_ACCESS_KEY_ID,secretAccessKey:process.env.AWS_SECRET_ACCESS_KEY,token:process.env.AWS_SESSION_TOKEN}:null}};Kf.DefaultAwsSecurityCredentialsSupplier=CE});var kE=B(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.AwsClient=void 0;var j6=RE(),M6=vo(),L6=e0(),t0=Kr(),F6=kt(),OE=class e extends M6.BaseExternalAccountClient{static{a(this,"AwsClient")}environmentId;awsSecurityCredentialsSupplier;regionalCredVerificationUrl;awsRequestSigner;region;static#e="https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15";static AWS_EC2_METADATA_IPV4_ADDRESS="169.254.169.254";static AWS_EC2_METADATA_IPV6_ADDRESS="fd00:ec2::254";constructor(t){super(t);let n=(0,t0.originalOrCamelOptions)(t),o=n.get("credential_source"),r=n.get("aws_security_credentials_supplier");if(!o&&!r)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&r)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(r)this.awsSecurityCredentialsSupplier=r,this.regionalCredVerificationUrl=e.#e,this.credentialSourceType="programmatic";else{let i=(0,t0.originalOrCamelOptions)(o);this.environmentId=i.get("environment_id");let s=i.get("region_url"),u=i.get("url"),d=i.get("imdsv2_session_token_url");this.awsSecurityCredentialsSupplier=new L6.DefaultAwsSecurityCredentialsSupplier({regionUrl:s,securityCredentialsUrl:u,imdsV2SessionTokenUrl:d}),this.regionalCredVerificationUrl=i.get("regional_cred_verification_url"),this.credentialSourceType="aws",this.validateEnvironmentId()}this.awsRequestSigner=null,this.region=""}validateEnvironmentId(){let t=this.environmentId?.match(/^(aws)(\d+)$/);if(!t||!this.regionalCredVerificationUrl)throw new Error('No valid AWS "credential_source" provided');if(parseInt(t[2],10)!==1)throw new Error(`aws version "${t[2]}" is not supported in the current build.`)}async retrieveSubjectToken(){this.awsRequestSigner||(this.region=await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext),this.awsRequestSigner=new j6.AwsRequestSigner(async()=>this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext),this.region));let t=await this.awsRequestSigner.getRequestOptions({...e.RETRY_CONFIG,url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"}),n=[];return F6.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},t.headers).forEach((r,i)=>n.push({key:i,value:r})),encodeURIComponent(JSON.stringify({url:t.url,method:t.method,headers:n}))}};Xf.AwsClient=OE});var UE=B(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.InvalidSubjectTokenError=mt.InvalidMessageFieldError=mt.InvalidCodeFieldError=mt.InvalidTokenTypeFieldError=mt.InvalidExpirationTimeFieldError=mt.InvalidSuccessFieldError=mt.InvalidVersionFieldError=mt.ExecutableResponseError=mt.ExecutableResponse=void 0;var Qf="urn:ietf:params:oauth:token-type:saml2",$E="urn:ietf:params:oauth:token-type:id_token",NE="urn:ietf:params:oauth:token-type:jwt",zE=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(t){if(!t.version)throw new Yf("Executable response must contain a 'version' field.");if(t.success===void 0)throw new em("Executable response must contain a 'success' field.");if(this.version=t.version,this.success=t.success,this.success){if(this.expirationTime=t.expiration_time,this.tokenType=t.token_type,this.tokenType!==Qf&&this.tokenType!==$E&&this.tokenType!==NE)throw new tm(`Executable response must contain a 'token_type' field when successful and it must be one of ${$E}, ${NE}, or ${Qf}.`);if(this.tokenType===Qf){if(!t.saml_response)throw new xu(`Executable response must contain a 'saml_response' field when token_type=${Qf}.`);this.subjectToken=t.saml_response}else{if(!t.id_token)throw new xu(`Executable response must contain a 'id_token' field when token_type=${$E} or ${NE}.`);this.subjectToken=t.id_token}}else{if(!t.code)throw new rm("Executable response must contain a 'code' field when unsuccessful.");if(!t.message)throw new nm("Executable response must contain a 'message' field when unsuccessful.");this.errorCode=t.code,this.errorMessage=t.message}}isValid(){return!this.isExpired()&&this.success}isExpired(){return this.expirationTime!==void 0&&this.expirationTime<Math.round(Date.now()/1e3)}};mt.ExecutableResponse=zE;var hn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}};mt.ExecutableResponseError=hn;var Yf=class extends hn{static{a(this,"InvalidVersionFieldError")}};mt.InvalidVersionFieldError=Yf;var em=class extends hn{static{a(this,"InvalidSuccessFieldError")}};mt.InvalidSuccessFieldError=em;var DE=class extends hn{static{a(this,"InvalidExpirationTimeFieldError")}};mt.InvalidExpirationTimeFieldError=DE;var tm=class extends hn{static{a(this,"InvalidTokenTypeFieldError")}};mt.InvalidTokenTypeFieldError=tm;var rm=class extends hn{static{a(this,"InvalidCodeFieldError")}};mt.InvalidCodeFieldError=rm;var nm=class extends hn{static{a(this,"InvalidMessageFieldError")}};mt.InvalidMessageFieldError=nm;var xu=class extends hn{static{a(this,"InvalidSubjectTokenError")}};mt.InvalidSubjectTokenError=xu});var LE=B($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.PluggableAuthHandler=$a.ExecutableError=void 0;var ui=UE(),B6=require("child_process"),jE=require("fs"),om=class extends Error{static{a(this,"ExecutableError")}code;constructor(t,n){super(`The executable failed with exit code: ${n} and error message: ${t}.`),this.code=n,Object.setPrototypeOf(this,new.target.prototype)}};$a.ExecutableError=om;var ME=class e{static{a(this,"PluggableAuthHandler")}commandComponents;timeoutMillis;outputFile;constructor(t){if(!t.command)throw new Error("No command provided.");if(this.commandComponents=e.parseCommand(t.command),this.timeoutMillis=t.timeoutMillis,!this.timeoutMillis)throw new Error("No timeoutMillis provided.");this.outputFile=t.outputFile}retrieveResponseFromExecutable(t){return new Promise((n,o)=>{let r=B6.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(t)}}),i="";r.stdout.on("data",u=>{i+=u}),r.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(r.removeAllListeners(),r.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);r.on("close",u=>{if(clearTimeout(s),u===0)try{let d=JSON.parse(i),p=new ui.ExecutableResponse(d);return n(p)}catch(d){return d instanceof ui.ExecutableResponseError?o(d):o(new ui.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new om(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let t;try{t=await jE.promises.realpath(this.outputFile)}catch{return}if(!(await jE.promises.lstat(t)).isFile())return;let n=await jE.promises.readFile(t,{encoding:"utf8"});if(n!=="")try{let o=JSON.parse(n);return new ui.ExecutableResponse(o).isValid()?new ui.ExecutableResponse(o):void 0}catch(o){throw o instanceof ui.ExecutableResponseError?o:new ui.ExecutableResponseError(`The output file contained an invalid response: ${n}`)}}static parseCommand(t){let n=t.match(/(?:[^\s"]+|"[^"]*")+/g);if(!n)throw new Error(`Provided command: "${t}" could not be parsed.`);for(let o=0;o<n.length;o++)n[o][0]==='"'&&n[o].slice(-1)==='"'&&(n[o]=n[o].slice(1,-1));return n}};$a.PluggableAuthHandler=ME});var BE=B(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.PluggableAuthClient=Na.ExecutableError=void 0;var q6=vo(),V6=UE(),r0=LE(),H6=LE();Object.defineProperty(Na,"ExecutableError",{enumerable:!0,get:a(function(){return H6.ExecutableError},"get")});var Z6=30*1e3,n0=5*1e3,o0=120*1e3,G6="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",i0=1,FE=class extends q6.BaseExternalAccountClient{static{a(this,"PluggableAuthClient")}command;timeoutMillis;outputFile;handler;constructor(t){if(super(t),!t.credential_source.executable)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(this.command=t.credential_source.executable.command,!this.command)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(t.credential_source.executable.timeout_millis===void 0)this.timeoutMillis=Z6;else if(this.timeoutMillis=t.credential_source.executable.timeout_millis,this.timeoutMillis<n0||this.timeoutMillis>o0)throw new Error(`Timeout must be between ${n0} and ${o0} milliseconds.`);this.outputFile=t.credential_source.executable.output_file,this.handler=new r0.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[G6]!=="1")throw new Error("Pluggable Auth executables need to be explicitly allowed to run by setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment Variable to 1.");let t;if(this.outputFile&&(t=await this.handler.retrieveCachedResponse()),!t){let n=new Map;n.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),n.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),n.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&n.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&n.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),t=await this.handler.retrieveResponseFromExecutable(n)}if(t.version>i0)throw new Error(`Version of executable is not currently supported, maximum supported version is ${i0}.`);if(!t.success)throw new r0.ExecutableError(t.errorMessage,t.errorCode);if(this.outputFile&&!t.expirationTime)throw new V6.InvalidExpirationTimeFieldError("The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.");if(t.isExpired())throw new Error("Executable response is expired.");return t.subjectToken}};Na.PluggableAuthClient=FE});var VE=B(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.ExternalAccountClient=void 0;var W6=vo(),J6=wE(),K6=kE(),X6=BE(),qE=class{static{a(this,"ExternalAccountClient")}constructor(){throw new Error("ExternalAccountClients should be initialized via: ExternalAccountClient.fromJSON(), directly via explicit constructors, eg. new AwsClient(options), new IdentityPoolClient(options), newPluggableAuthClientOptions, or via new GoogleAuth(options).getClient()")}static fromJSON(t){return t&&t.type===W6.EXTERNAL_ACCOUNT_TYPE?t.credential_source?.environment_id?new K6.AwsClient(t):t.credential_source?.executable?new X6.PluggableAuthClient(t):new J6.IdentityPoolClient(t):null}};im.ExternalAccountClient=qE});var GE=B(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ExternalAccountAuthorizedUserClient=za.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var s0=br(),a0=hE(),c0=kt(),Q6=require("stream"),Y6=vo();za.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var eq="https://sts.{universeDomain}/v1/oauthtoken",HE=class e extends a0.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(t){super(t),this.#e=t.tokenRefreshEndpoint}async refreshToken(t,n){let o={...e.RETRY_CONFIG,url:this.#e,method:"POST",headers:n,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:t})};s0.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let r=await this.transporter.request(o),i=r.data;return i.res=r,i}catch(r){throw r instanceof c0.GaxiosError&&r.response?(0,a0.getErrorFromOAuthErrorResponse)(r.response.data,r):r}}},ZE=class extends s0.AuthClient{static{a(this,"ExternalAccountAuthorizedUserClient")}cachedAccessToken;externalAccountAuthorizedUserHandler;refreshToken;constructor(t){super(t),t.universe_domain&&(this.universeDomain=t.universe_domain),this.refreshToken=t.refresh_token;let n={confidentialClientType:"basic",clientId:t.client_id,clientSecret:t.client_secret};this.externalAccountAuthorizedUserHandler=new HE({tokenRefreshEndpoint:t.token_url??eq.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:n}),this.cachedAccessToken=null,this.quotaProjectId=t.quota_project_id,typeof t?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=Y6.EXPIRATION_TIME_OFFSET:this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,this.forceRefreshOnFailure=!!t?.forceRefreshOnFailure}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let t=await this.getAccessToken(),n=new Headers({authorization:`Bearer ${t.token}`});return this.addSharedMetadataHeaders(n)}request(t,n){if(n)this.requestAsync(t).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(t)}async requestAsync(t,n=!1){let o;try{let r=await this.getRequestHeaders();t.headers=c0.Gaxios.mergeHeaders(t.headers),this.addUserProjectAndAuthHeaders(t.headers,r),o=await this.transporter.request(t)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof Q6.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(t,!0)}throw r}return o}async refreshAccessTokenAsync(){let t=await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken);return this.cachedAccessToken={access_token:t.access_token,expiry_date:new Date().getTime()+t.expires_in*1e3,res:t.res},t.refresh_token!==void 0&&(this.refreshToken=t.refresh_token),this.cachedAccessToken}isExpired(t){let n=new Date().getTime();return t.expiry_date?n>=t.expiry_date-this.eagerRefreshThresholdMillis:!1}};za.ExternalAccountAuthorizedUserClient=ZE});var p0=B(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.GoogleAuth=en.GoogleAuthExceptionMessages=void 0;var tq=require("child_process"),Au=require("fs"),rq=kt(),wu=pu(),nq=require("os"),WE=require("path"),oq=fu(),iq=Fv(),aq=qv(),sq=Vv(),Da=uE(),u0=dE(),Ua=fE(),cq=VE(),Iu=vo(),JE=br(),l0=GE(),d0=Kr();en.GoogleAuthExceptionMessages={API_KEY_WITH_CREDENTIALS:"API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",NO_PROJECT_ID_FOUND:`Unable to detect a Project Id in the current environment.
49
+ `+await e.crypto.sha256DigestHex(y),P=await D6(e.crypto,e.securityCredentials.secretAccessKey,s,e.region,o),S=await Tu(e.crypto,P,_),T=`${Qk} Credential=${e.securityCredentials.accessKeyId}/${h}, SignedHeaders=${f}, Signature=${(0,Yk.fromArrayBufferToHex)(S)}`;return{amzDate:t.has("date")?void 0:i,authorizationHeader:T,canonicalQuerystring:e.canonicalQuerystring}}a(U6,"generateAuthenticationHeaderMap")});var e$=B(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.DefaultAwsSecurityCredentialsSupplier=void 0;var Jf=br(),CE=class{static{a(this,"DefaultAwsSecurityCredentialsSupplier")}regionUrl;securityCredentialsUrl;imdsV2SessionTokenUrl;additionalGaxiosOptions;constructor(t){this.regionUrl=t.regionUrl,this.securityCredentialsUrl=t.securityCredentialsUrl,this.imdsV2SessionTokenUrl=t.imdsV2SessionTokenUrl,this.additionalGaxiosOptions=t.additionalGaxiosOptions}async getAwsRegion(t){if(this.#n)return this.#n;let n=new Headers;if(!this.#n&&this.imdsV2SessionTokenUrl&&n.set("x-aws-ec2-metadata-token",await this.#e(t.transporter)),!this.regionUrl)throw new RangeError('Unable to determine AWS region due to missing "options.credential_source.region_url"');let o={...this.additionalGaxiosOptions,url:this.regionUrl,method:"GET",headers:n};Jf.AuthClient.setMethodName(o,"getAwsRegion");let r=await t.transporter.request(o);return r.data.substr(0,r.data.length-1)}async getAwsSecurityCredentials(t){if(this.#o)return this.#o;let n=new Headers;this.imdsV2SessionTokenUrl&&n.set("x-aws-ec2-metadata-token",await this.#e(t.transporter));let o=await this.#t(n,t.transporter),r=await this.#r(o,n,t.transporter);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,token:r.Token}}async#e(t){let n={...this.additionalGaxiosOptions,url:this.imdsV2SessionTokenUrl,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"300"}};return Jf.AuthClient.setMethodName(n,"#getImdsV2SessionToken"),(await t.request(n)).data}async#t(t,n){if(!this.securityCredentialsUrl)throw new Error('Unable to determine AWS role name due to missing "options.credential_source.url"');let o={...this.additionalGaxiosOptions,url:this.securityCredentialsUrl,method:"GET",headers:t};return Jf.AuthClient.setMethodName(o,"#getAwsRoleName"),(await n.request(o)).data}async#r(t,n,o){let r={...this.additionalGaxiosOptions,url:`${this.securityCredentialsUrl}/${t}`,headers:n};return Jf.AuthClient.setMethodName(r,"#retrieveAwsSecurityCredentials"),(await o.request(r)).data}get#n(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||null}get#o(){return process.env.AWS_ACCESS_KEY_ID&&process.env.AWS_SECRET_ACCESS_KEY?{accessKeyId:process.env.AWS_ACCESS_KEY_ID,secretAccessKey:process.env.AWS_SECRET_ACCESS_KEY,token:process.env.AWS_SESSION_TOKEN}:null}};Kf.DefaultAwsSecurityCredentialsSupplier=CE});var kE=B(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.AwsClient=void 0;var j6=RE(),M6=vo(),L6=e$(),t$=Kr(),F6=kt(),OE=class e extends M6.BaseExternalAccountClient{static{a(this,"AwsClient")}environmentId;awsSecurityCredentialsSupplier;regionalCredVerificationUrl;awsRequestSigner;region;static#e="https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15";static AWS_EC2_METADATA_IPV4_ADDRESS="169.254.169.254";static AWS_EC2_METADATA_IPV6_ADDRESS="fd00:ec2::254";constructor(t){super(t);let n=(0,t$.originalOrCamelOptions)(t),o=n.get("credential_source"),r=n.get("aws_security_credentials_supplier");if(!o&&!r)throw new Error("A credential source or AWS security credentials supplier must be specified.");if(o&&r)throw new Error("Only one of credential source or AWS security credentials supplier can be specified.");if(r)this.awsSecurityCredentialsSupplier=r,this.regionalCredVerificationUrl=e.#e,this.credentialSourceType="programmatic";else{let i=(0,t$.originalOrCamelOptions)(o);this.environmentId=i.get("environment_id");let s=i.get("region_url"),u=i.get("url"),d=i.get("imdsv2_session_token_url");this.awsSecurityCredentialsSupplier=new L6.DefaultAwsSecurityCredentialsSupplier({regionUrl:s,securityCredentialsUrl:u,imdsV2SessionTokenUrl:d}),this.regionalCredVerificationUrl=i.get("regional_cred_verification_url"),this.credentialSourceType="aws",this.validateEnvironmentId()}this.awsRequestSigner=null,this.region=""}validateEnvironmentId(){let t=this.environmentId?.match(/^(aws)(\d+)$/);if(!t||!this.regionalCredVerificationUrl)throw new Error('No valid AWS "credential_source" provided');if(parseInt(t[2],10)!==1)throw new Error(`aws version "${t[2]}" is not supported in the current build.`)}async retrieveSubjectToken(){this.awsRequestSigner||(this.region=await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext),this.awsRequestSigner=new j6.AwsRequestSigner(async()=>this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext),this.region));let t=await this.awsRequestSigner.getRequestOptions({...e.RETRY_CONFIG,url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"}),n=[];return F6.Gaxios.mergeHeaders({"x-goog-cloud-target-resource":this.audience},t.headers).forEach((r,i)=>n.push({key:i,value:r})),encodeURIComponent(JSON.stringify({url:t.url,method:t.method,headers:n}))}};Xf.AwsClient=OE});var UE=B(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.InvalidSubjectTokenError=mt.InvalidMessageFieldError=mt.InvalidCodeFieldError=mt.InvalidTokenTypeFieldError=mt.InvalidExpirationTimeFieldError=mt.InvalidSuccessFieldError=mt.InvalidVersionFieldError=mt.ExecutableResponseError=mt.ExecutableResponse=void 0;var Qf="urn:ietf:params:oauth:token-type:saml2",$E="urn:ietf:params:oauth:token-type:id_token",NE="urn:ietf:params:oauth:token-type:jwt",zE=class{static{a(this,"ExecutableResponse")}version;success;expirationTime;tokenType;errorCode;errorMessage;subjectToken;constructor(t){if(!t.version)throw new Yf("Executable response must contain a 'version' field.");if(t.success===void 0)throw new em("Executable response must contain a 'success' field.");if(this.version=t.version,this.success=t.success,this.success){if(this.expirationTime=t.expiration_time,this.tokenType=t.token_type,this.tokenType!==Qf&&this.tokenType!==$E&&this.tokenType!==NE)throw new tm(`Executable response must contain a 'token_type' field when successful and it must be one of ${$E}, ${NE}, or ${Qf}.`);if(this.tokenType===Qf){if(!t.saml_response)throw new xu(`Executable response must contain a 'saml_response' field when token_type=${Qf}.`);this.subjectToken=t.saml_response}else{if(!t.id_token)throw new xu(`Executable response must contain a 'id_token' field when token_type=${$E} or ${NE}.`);this.subjectToken=t.id_token}}else{if(!t.code)throw new rm("Executable response must contain a 'code' field when unsuccessful.");if(!t.message)throw new nm("Executable response must contain a 'message' field when unsuccessful.");this.errorCode=t.code,this.errorMessage=t.message}}isValid(){return!this.isExpired()&&this.success}isExpired(){return this.expirationTime!==void 0&&this.expirationTime<Math.round(Date.now()/1e3)}};mt.ExecutableResponse=zE;var hn=class extends Error{static{a(this,"ExecutableResponseError")}constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}};mt.ExecutableResponseError=hn;var Yf=class extends hn{static{a(this,"InvalidVersionFieldError")}};mt.InvalidVersionFieldError=Yf;var em=class extends hn{static{a(this,"InvalidSuccessFieldError")}};mt.InvalidSuccessFieldError=em;var DE=class extends hn{static{a(this,"InvalidExpirationTimeFieldError")}};mt.InvalidExpirationTimeFieldError=DE;var tm=class extends hn{static{a(this,"InvalidTokenTypeFieldError")}};mt.InvalidTokenTypeFieldError=tm;var rm=class extends hn{static{a(this,"InvalidCodeFieldError")}};mt.InvalidCodeFieldError=rm;var nm=class extends hn{static{a(this,"InvalidMessageFieldError")}};mt.InvalidMessageFieldError=nm;var xu=class extends hn{static{a(this,"InvalidSubjectTokenError")}};mt.InvalidSubjectTokenError=xu});var LE=B($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.PluggableAuthHandler=$a.ExecutableError=void 0;var ui=UE(),B6=require("child_process"),jE=require("fs"),om=class extends Error{static{a(this,"ExecutableError")}code;constructor(t,n){super(`The executable failed with exit code: ${n} and error message: ${t}.`),this.code=n,Object.setPrototypeOf(this,new.target.prototype)}};$a.ExecutableError=om;var ME=class e{static{a(this,"PluggableAuthHandler")}commandComponents;timeoutMillis;outputFile;constructor(t){if(!t.command)throw new Error("No command provided.");if(this.commandComponents=e.parseCommand(t.command),this.timeoutMillis=t.timeoutMillis,!this.timeoutMillis)throw new Error("No timeoutMillis provided.");this.outputFile=t.outputFile}retrieveResponseFromExecutable(t){return new Promise((n,o)=>{let r=B6.spawn(this.commandComponents[0],this.commandComponents.slice(1),{env:{...process.env,...Object.fromEntries(t)}}),i="";r.stdout.on("data",u=>{i+=u}),r.stderr.on("data",u=>{i+=u});let s=setTimeout(()=>(r.removeAllListeners(),r.kill(),o(new Error("The executable failed to finish within the timeout specified."))),this.timeoutMillis);r.on("close",u=>{if(clearTimeout(s),u===0)try{let d=JSON.parse(i),p=new ui.ExecutableResponse(d);return n(p)}catch(d){return d instanceof ui.ExecutableResponseError?o(d):o(new ui.ExecutableResponseError(`The executable returned an invalid response: ${i}`))}else return o(new om(i,u.toString()))})})}async retrieveCachedResponse(){if(!this.outputFile||this.outputFile.length===0)return;let t;try{t=await jE.promises.realpath(this.outputFile)}catch{return}if(!(await jE.promises.lstat(t)).isFile())return;let n=await jE.promises.readFile(t,{encoding:"utf8"});if(n!=="")try{let o=JSON.parse(n);return new ui.ExecutableResponse(o).isValid()?new ui.ExecutableResponse(o):void 0}catch(o){throw o instanceof ui.ExecutableResponseError?o:new ui.ExecutableResponseError(`The output file contained an invalid response: ${n}`)}}static parseCommand(t){let n=t.match(/(?:[^\s"]+|"[^"]*")+/g);if(!n)throw new Error(`Provided command: "${t}" could not be parsed.`);for(let o=0;o<n.length;o++)n[o][0]==='"'&&n[o].slice(-1)==='"'&&(n[o]=n[o].slice(1,-1));return n}};$a.PluggableAuthHandler=ME});var BE=B(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.PluggableAuthClient=Na.ExecutableError=void 0;var q6=vo(),V6=UE(),r$=LE(),H6=LE();Object.defineProperty(Na,"ExecutableError",{enumerable:!0,get:a(function(){return H6.ExecutableError},"get")});var Z6=30*1e3,n$=5*1e3,o$=120*1e3,G6="GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES",i$=1,FE=class extends q6.BaseExternalAccountClient{static{a(this,"PluggableAuthClient")}command;timeoutMillis;outputFile;handler;constructor(t){if(super(t),!t.credential_source.executable)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(this.command=t.credential_source.executable.command,!this.command)throw new Error('No valid Pluggable Auth "credential_source" provided.');if(t.credential_source.executable.timeout_millis===void 0)this.timeoutMillis=Z6;else if(this.timeoutMillis=t.credential_source.executable.timeout_millis,this.timeoutMillis<n$||this.timeoutMillis>o$)throw new Error(`Timeout must be between ${n$} and ${o$} milliseconds.`);this.outputFile=t.credential_source.executable.output_file,this.handler=new r$.PluggableAuthHandler({command:this.command,timeoutMillis:this.timeoutMillis,outputFile:this.outputFile}),this.credentialSourceType="executable"}async retrieveSubjectToken(){if(process.env[G6]!=="1")throw new Error("Pluggable Auth executables need to be explicitly allowed to run by setting the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment Variable to 1.");let t;if(this.outputFile&&(t=await this.handler.retrieveCachedResponse()),!t){let n=new Map;n.set("GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE",this.audience),n.set("GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE",this.subjectTokenType),n.set("GOOGLE_EXTERNAL_ACCOUNT_INTERACTIVE","0"),this.outputFile&&n.set("GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE",this.outputFile);let o=this.getServiceAccountEmail();o&&n.set("GOOGLE_EXTERNAL_ACCOUNT_IMPERSONATED_EMAIL",o),t=await this.handler.retrieveResponseFromExecutable(n)}if(t.version>i$)throw new Error(`Version of executable is not currently supported, maximum supported version is ${i$}.`);if(!t.success)throw new r$.ExecutableError(t.errorMessage,t.errorCode);if(this.outputFile&&!t.expirationTime)throw new V6.InvalidExpirationTimeFieldError("The executable response must contain the `expiration_time` field for successful responses when an output_file has been specified in the configuration.");if(t.isExpired())throw new Error("Executable response is expired.");return t.subjectToken}};Na.PluggableAuthClient=FE});var VE=B(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.ExternalAccountClient=void 0;var W6=vo(),J6=wE(),K6=kE(),X6=BE(),qE=class{static{a(this,"ExternalAccountClient")}constructor(){throw new Error("ExternalAccountClients should be initialized via: ExternalAccountClient.fromJSON(), directly via explicit constructors, eg. new AwsClient(options), new IdentityPoolClient(options), newPluggableAuthClientOptions, or via new GoogleAuth(options).getClient()")}static fromJSON(t){return t&&t.type===W6.EXTERNAL_ACCOUNT_TYPE?t.credential_source?.environment_id?new K6.AwsClient(t):t.credential_source?.executable?new X6.PluggableAuthClient(t):new J6.IdentityPoolClient(t):null}};im.ExternalAccountClient=qE});var GE=B(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ExternalAccountAuthorizedUserClient=za.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=void 0;var s$=br(),a$=hE(),c$=kt(),Q6=require("stream"),Y6=vo();za.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE="external_account_authorized_user";var eq="https://sts.{universeDomain}/v1/oauthtoken",HE=class e extends a$.OAuthClientAuthHandler{static{a(this,"ExternalAccountAuthorizedUserHandler")}#e;constructor(t){super(t),this.#e=t.tokenRefreshEndpoint}async refreshToken(t,n){let o={...e.RETRY_CONFIG,url:this.#e,method:"POST",headers:n,data:new URLSearchParams({grant_type:"refresh_token",refresh_token:t})};s$.AuthClient.setMethodName(o,"refreshToken"),this.applyClientAuthenticationOptions(o);try{let r=await this.transporter.request(o),i=r.data;return i.res=r,i}catch(r){throw r instanceof c$.GaxiosError&&r.response?(0,a$.getErrorFromOAuthErrorResponse)(r.response.data,r):r}}},ZE=class extends s$.AuthClient{static{a(this,"ExternalAccountAuthorizedUserClient")}cachedAccessToken;externalAccountAuthorizedUserHandler;refreshToken;constructor(t){super(t),t.universe_domain&&(this.universeDomain=t.universe_domain),this.refreshToken=t.refresh_token;let n={confidentialClientType:"basic",clientId:t.client_id,clientSecret:t.client_secret};this.externalAccountAuthorizedUserHandler=new HE({tokenRefreshEndpoint:t.token_url??eq.replace("{universeDomain}",this.universeDomain),transporter:this.transporter,clientAuthentication:n}),this.cachedAccessToken=null,this.quotaProjectId=t.quota_project_id,typeof t?.eagerRefreshThresholdMillis!="number"?this.eagerRefreshThresholdMillis=Y6.EXPIRATION_TIME_OFFSET:this.eagerRefreshThresholdMillis=t.eagerRefreshThresholdMillis,this.forceRefreshOnFailure=!!t?.forceRefreshOnFailure}async getAccessToken(){return(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){let t=await this.getAccessToken(),n=new Headers({authorization:`Bearer ${t.token}`});return this.addSharedMetadataHeaders(n)}request(t,n){if(n)this.requestAsync(t).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(t)}async requestAsync(t,n=!1){let o;try{let r=await this.getRequestHeaders();t.headers=c$.Gaxios.mergeHeaders(t.headers),this.addUserProjectAndAuthHeaders(t.headers,r),o=await this.transporter.request(t)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof Q6.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(t,!0)}throw r}return o}async refreshAccessTokenAsync(){let t=await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken);return this.cachedAccessToken={access_token:t.access_token,expiry_date:new Date().getTime()+t.expires_in*1e3,res:t.res},t.refresh_token!==void 0&&(this.refreshToken=t.refresh_token),this.cachedAccessToken}isExpired(t){let n=new Date().getTime();return t.expiry_date?n>=t.expiry_date-this.eagerRefreshThresholdMillis:!1}};za.ExternalAccountAuthorizedUserClient=ZE});var p$=B(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.GoogleAuth=en.GoogleAuthExceptionMessages=void 0;var tq=require("child_process"),Au=require("fs"),rq=kt(),wu=pu(),nq=require("os"),WE=require("path"),oq=fu(),iq=Fv(),aq=qv(),sq=Vv(),Da=uE(),u$=dE(),Ua=fE(),cq=VE(),Iu=vo(),JE=br(),l$=GE(),d$=Kr();en.GoogleAuthExceptionMessages={API_KEY_WITH_CREDENTIALS:"API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",NO_PROJECT_ID_FOUND:`Unable to detect a Project Id in the current environment.
50
50
  To learn more about authentication and Google APIs, visit:
51
51
  https://cloud.google.com/docs/authentication/getting-started`,NO_CREDENTIALS_FOUND:`Unable to find credentials in current environment.
52
52
  To learn more about authentication and Google APIs, visit:
53
53
  https://cloud.google.com/docs/authentication/getting-started`,NO_ADC_FOUND:"Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.",NO_UNIVERSE_DOMAIN_FOUND:`Unable to detect a Universe Domain in the current environment.
54
54
  To learn more about Universe Domain retrieval, visit:
55
- https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var KE=class{static{a(this,"GoogleAuth")}checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#e=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(t={}){if(this._cachedProjectId=t.projectId||null,this.cachedCredential=t.authClient||null,this.keyFilename=t.keyFilename||t.keyFile,this.scopes=t.scopes,this.clientOptions=t.clientOptions||{},this.jsonContent=t.credentials||null,this.apiKey=t.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw new RangeError(en.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);t.universeDomain&&(this.clientOptions.universeDomain=t.universeDomain)}setGapicJWTValues(t){t.defaultServicePath=this.defaultServicePath,t.useJWTAccessWithScope=this.useJWTAccessWithScope,t.defaultScopes=this.defaultScopes}getProjectId(t){if(t)this.getProjectIdAsync().then(n=>t(null,n),t);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(t){if(t instanceof Error&&t.message===en.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;throw t}}async findAndCacheProjectId(){let t=null;if(t||=await this.getProductionProjectId(),t||=await this.getFileProjectId(),t||=await this.getDefaultServiceProjectId(),t||=await this.getGCEProjectId(),t||=await this.getExternalAccountClientProjectId(),t)return this._cachedProjectId=t,t;throw new Error(en.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){return this._cachedProjectId?this._cachedProjectId:(this._findProjectIdPromise||(this._findProjectIdPromise=this.findAndCacheProjectId()),this._findProjectIdPromise)}async getUniverseDomainFromMetadataServer(){let t;try{t=await wu.universe("universe-domain"),t||=JE.DEFAULT_UNIVERSE}catch(n){if(n&&n?.response?.status===404)t=JE.DEFAULT_UNIVERSE;else throw n}return t}async getUniverseDomain(){let t=(0,d0.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{t??=(await this.getClient()).universeDomain}catch{t??=JE.DEFAULT_UNIVERSE}return t}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(t={},n){let o;if(typeof t=="function"?n=t:o=t,n)this.getApplicationDefaultAsync(o).then(r=>n(null,r.credential,r.projectId),n);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(t={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let n;if(n=await this._tryGetApplicationCredentialsFromEnvironmentVariable(t),n)return n instanceof Da.JWT?n.scopes=this.scopes:n instanceof Iu.BaseExternalAccountClient&&(n.scopes=this.getAnyScopes()),await this.#t(n);if(n=await this._tryGetApplicationCredentialsFromWellKnownFile(t),n)return n instanceof Da.JWT?n.scopes=this.scopes:n instanceof Iu.BaseExternalAccountClient&&(n.scopes=this.getAnyScopes()),await this.#t(n);if(await this._checkIsGCE())return t.scopes=this.getAnyScopes(),await this.#t(new iq.Compute(t));throw new Error(en.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(t,n=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return n&&(t.quotaProjectId=n),this.cachedCredential=t,{credential:t,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=wu.getGCPResidency()||await wu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(t){let n=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!n||n.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(n,t)}catch(o){throw o instanceof Error&&(o.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${o.message}`),o}}async _tryGetApplicationCredentialsFromWellKnownFile(t){let n=null;if(this._isWindows())n=process.env.APPDATA;else{let r=process.env.HOME;r&&(n=WE.join(r,".config"))}return n&&(n=WE.join(n,"gcloud","application_default_credentials.json"),Au.existsSync(n)||(n=null)),n?await this._getApplicationCredentialsFromFilePath(n,t):null}async _getApplicationCredentialsFromFilePath(t,n={}){if(!t||t.length===0)throw new Error("The file path is invalid.");try{if(t=Au.realpathSync(t),!Au.lstatSync(t).isFile())throw new Error}catch(r){throw r instanceof Error&&(r.message=`The file at ${t} does not exist, or it is not a file. ${r.message}`),r}let o=Au.createReadStream(t);return this.fromStream(o,n)}fromImpersonatedJSON(t){if(!t)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(t.type!==Ua.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${Ua.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!t.source_credentials)throw new Error("The incoming JSON object does not contain a source_credentials field");if(!t.service_account_impersonation_url)throw new Error("The incoming JSON object does not contain a service_account_impersonation_url field");let n=this.fromJSON(t.source_credentials);if(t.service_account_impersonation_url?.length>256)throw new RangeError(`Target principal is too long: ${t.service_account_impersonation_url}`);let o=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(t.service_account_impersonation_url)?.groups?.target;if(!o)throw new RangeError(`Cannot extract target principal from ${t.service_account_impersonation_url}`);let r=(this.scopes||t.scopes||this.defaultScopes)??[];return new Ua.Impersonated({...t,sourceClient:n,targetPrincipal:o,targetScopes:Array.isArray(r)?r:[r]})}fromJSON(t,n={}){let o,r=(0,d0.originalOrCamelOptions)(n).get("universe_domain");return t.type===u0.USER_REFRESH_ACCOUNT_TYPE?(o=new u0.UserRefreshClient(n),o.fromJSON(t)):t.type===Ua.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(t):t.type===Iu.EXTERNAL_ACCOUNT_TYPE?(o=cq.ExternalAccountClient.fromJSON({...t,...n}),o.scopes=this.getAnyScopes()):t.type===l0.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new l0.ExternalAccountAuthorizedUserClient({...t,...n}):(n.scopes=this.scopes,o=new Da.JWT(n),this.setGapicJWTValues(o),o.fromJSON(t)),r&&(o.universeDomain=r),o}_cacheClientFromJSON(t,n){let o=this.fromJSON(t,n);return this.jsonContent=t,this.cachedCredential=o,o}fromStream(t,n={},o){let r={};if(typeof n=="function"?o=n:r=n,o)this.fromStreamAsync(t,r).then(i=>o(null,i),o);else return this.fromStreamAsync(t,r)}fromStreamAsync(t,n){return new Promise((o,r)=>{if(!t)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];t.setEncoding("utf8").on("error",r).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,n);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new Da.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return r(s)}})})}fromAPIKey(t,n={}){return new Da.JWT({...n,apiKey:t})}_isWindows(){let t=nq.platform();return!!(t&&t.length>=3&&t.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(t=>{(0,tq.exec)("gcloud config config-helper --format json",(n,o)=>{if(!n&&o)try{let r=JSON.parse(o).configuration.properties.core.project;t(r);return}catch{}t(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let n=await this.getClient();if(n&&n.projectId)return n.projectId}let t=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return t?t.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==Iu.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await wu.project("project-id")}catch{return null}}getCredentials(t){if(t)this.getCredentialsAsync().then(n=>t(null,n),t);else return this.getCredentialsAsync()}async getCredentialsAsync(){let t=await this.getClient();if(t instanceof Ua.Impersonated)return{client_email:t.getTargetPrincipal()};if(t instanceof Iu.BaseExternalAccountClient){let n=t.getServiceAccountEmail();if(n)return{client_email:n,universe_domain:t.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[n,o]=await Promise.all([wu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:n,universe_domain:o}}throw new Error(en.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#e=this.#e||this.#r();try{return await this.#e}finally{this.#e=null}}async#r(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);if(this.keyFilename){let t=WE.resolve(this.keyFilename),n=Au.createReadStream(t);return await this.fromStreamAsync(n,this.clientOptions)}else if(this.apiKey){let t=await this.fromAPIKey(this.apiKey,this.clientOptions);t.scopes=this.scopes;let{credential:n}=await this.#t(t);return n}else{let{credential:t}=await this.getApplicationDefaultAsync(this.clientOptions);return t}}async getIdTokenClient(t){let n=await this.getClient();if(!("fetchIdToken"in n))throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new aq.IdTokenClient({targetAudience:t,idTokenProvider:n})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(t){return(await this.getClient()).getRequestHeaders(t)}async authorizeRequest(t={}){let n=t.url,r=await(await this.getClient()).getRequestHeaders(n);return t.headers=rq.Gaxios.mergeHeaders(t.headers,r),t}async fetch(...t){return(await this.getClient()).fetch(...t)}async request(t){return(await this.getClient()).request(t)}getEnv(){return(0,sq.getEnv)()}async sign(t,n){let o=await this.getClient(),r=await this.getUniverseDomain();if(n=n||`https://iamcredentials.${r}/v1/projects/-/serviceAccounts/`,o instanceof Ua.Impersonated)return(await o.sign(t)).signedBlob;let i=(0,oq.createCrypto)();if(o instanceof Da.JWT&&o.key)return await i.sign(o.key,t);let s=await this.getCredentials();if(!s.client_email)throw new Error("Cannot sign data without `client_email`.");return this.signBlob(i,s.client_email,t,n)}async signBlob(t,n,o,r){let i=new URL(r+`${n}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:t.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};en.GoogleAuth=KE});var f0=B(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.IAMAuth=void 0;var XE=class{static{a(this,"IAMAuth")}selector;token;constructor(t,n){this.selector=t,this.token=n,this.selector=t,this.token=n}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};am.IAMAuth=XE});var m0=B(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.DownscopedClient=gn.EXPIRATION_TIME_OFFSET=gn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var uq=kt(),lq=require("stream"),QE=br(),dq=Lf(),pq="urn:ietf:params:oauth:grant-type:token-exchange",fq="urn:ietf:params:oauth:token-type:access_token",mq="urn:ietf:params:oauth:token-type:access_token";gn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;gn.EXPIRATION_TIME_OFFSET=300*1e3;var YE=class extends QE.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(t,n={accessBoundary:{accessBoundaryRules:[]}}){if(super(t instanceof QE.AuthClient?{}:t),t instanceof QE.AuthClient?(this.authClient=t,this.credentialAccessBoundary=n):(this.authClient=t.authClient,this.credentialAccessBoundary=t.credentialAccessBoundary),this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw new Error("At least one access boundary rule needs to be defined.");if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>gn.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw new Error(`The provided access boundary has more than ${gn.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let o of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(o.availablePermissions.length===0)throw new Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new dq.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(t){if(!t.expiry_date)throw new Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(t),this.cachedDownscopedAccessToken=t}async getAccessToken(){return(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let t=await this.getAccessToken(),n=new Headers({authorization:`Bearer ${t.token}`});return this.addSharedMetadataHeaders(n)}request(t,n){if(n)this.requestAsync(t).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(t)}async requestAsync(t,n=!1){let o;try{let r=await this.getRequestHeaders();t.headers=uq.Gaxios.mergeHeaders(t.headers),this.addUserProjectAndAuthHeaders(t.headers,r),o=await this.transporter.request(t)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof lq.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(t,!0)}throw r}return o}async refreshAccessTokenAsync(){let t=(await this.authClient.getAccessToken()).token,n={grantType:pq,requestedTokenType:fq,subjectToken:t,subjectTokenType:mq},o=await this.stsCredential.exchangeToken(n,void 0,this.credentialAccessBoundary),r=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:r;return this.cachedDownscopedAccessToken={access_token:o.access_token,expiry_date:i,res:o.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(t){let n=new Date().getTime();return t.expiry_date?n>=t.expiry_date-this.eagerRefreshThresholdMillis:!1}};gn.DownscopedClient=YE});var h0=B(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.PassThroughClient=void 0;var hq=br(),eP=class extends hq.AuthClient{static{a(this,"PassThroughClient")}async request(t){return this.transporter.request(t)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};sm.PassThroughClient=eP});var v0=B(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.GoogleAuth=se.auth=se.PassThroughClient=se.ExternalAccountAuthorizedUserClient=se.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=se.ExecutableError=se.PluggableAuthClient=se.DownscopedClient=se.BaseExternalAccountClient=se.ExternalAccountClient=se.IdentityPoolClient=se.AwsRequestSigner=se.AwsClient=se.UserRefreshClient=se.LoginTicket=se.ClientAuthentication=se.OAuth2Client=se.CodeChallengeMethod=se.Impersonated=se.JWT=se.JWTAccess=se.IdTokenClient=se.IAMAuth=se.GCPEnv=se.Compute=se.DEFAULT_UNIVERSE=se.AuthClient=se.gaxios=se.gcpMetadata=void 0;var g0=p0();Object.defineProperty(se,"GoogleAuth",{enumerable:!0,get:a(function(){return g0.GoogleAuth},"get")});se.gcpMetadata=pu();se.gaxios=kt();var y0=br();Object.defineProperty(se,"AuthClient",{enumerable:!0,get:a(function(){return y0.AuthClient},"get")});Object.defineProperty(se,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return y0.DEFAULT_UNIVERSE},"get")});var gq=Fv();Object.defineProperty(se,"Compute",{enumerable:!0,get:a(function(){return gq.Compute},"get")});var yq=Vv();Object.defineProperty(se,"GCPEnv",{enumerable:!0,get:a(function(){return yq.GCPEnv},"get")});var _q=f0();Object.defineProperty(se,"IAMAuth",{enumerable:!0,get:a(function(){return _q.IAMAuth},"get")});var bq=qv();Object.defineProperty(se,"IdTokenClient",{enumerable:!0,get:a(function(){return bq.IdTokenClient},"get")});var vq=sE();Object.defineProperty(se,"JWTAccess",{enumerable:!0,get:a(function(){return vq.JWTAccess},"get")});var Eq=uE();Object.defineProperty(se,"JWT",{enumerable:!0,get:a(function(){return Eq.JWT},"get")});var Pq=fE();Object.defineProperty(se,"Impersonated",{enumerable:!0,get:a(function(){return Pq.Impersonated},"get")});var tP=ci();Object.defineProperty(se,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return tP.CodeChallengeMethod},"get")});Object.defineProperty(se,"OAuth2Client",{enumerable:!0,get:a(function(){return tP.OAuth2Client},"get")});Object.defineProperty(se,"ClientAuthentication",{enumerable:!0,get:a(function(){return tP.ClientAuthentication},"get")});var Sq=Uv();Object.defineProperty(se,"LoginTicket",{enumerable:!0,get:a(function(){return Sq.LoginTicket},"get")});var Tq=dE();Object.defineProperty(se,"UserRefreshClient",{enumerable:!0,get:a(function(){return Tq.UserRefreshClient},"get")});var xq=kE();Object.defineProperty(se,"AwsClient",{enumerable:!0,get:a(function(){return xq.AwsClient},"get")});var Aq=RE();Object.defineProperty(se,"AwsRequestSigner",{enumerable:!0,get:a(function(){return Aq.AwsRequestSigner},"get")});var wq=wE();Object.defineProperty(se,"IdentityPoolClient",{enumerable:!0,get:a(function(){return wq.IdentityPoolClient},"get")});var Iq=VE();Object.defineProperty(se,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Iq.ExternalAccountClient},"get")});var Rq=vo();Object.defineProperty(se,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Rq.BaseExternalAccountClient},"get")});var Cq=m0();Object.defineProperty(se,"DownscopedClient",{enumerable:!0,get:a(function(){return Cq.DownscopedClient},"get")});var _0=BE();Object.defineProperty(se,"PluggableAuthClient",{enumerable:!0,get:a(function(){return _0.PluggableAuthClient},"get")});Object.defineProperty(se,"ExecutableError",{enumerable:!0,get:a(function(){return _0.ExecutableError},"get")});var b0=GE();Object.defineProperty(se,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return b0.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(se,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return b0.ExternalAccountAuthorizedUserClient},"get")});var Oq=h0();Object.defineProperty(se,"PassThroughClient",{enumerable:!0,get:a(function(){return Oq.PassThroughClient},"get")});var kq=new g0.GoogleAuth;se.auth=kq});var Lq={};Jt(Lq,{bigQueryAuth:()=>je,googleBigQuery:()=>Mq});module.exports=PN(Lq);var lr={};Jt(lr,{$ZodAny:()=>ms,$ZodArray:()=>_s,$ZodAsyncError:()=>Lr,$ZodBase64:()=>Ll,$ZodBase64URL:()=>Fl,$ZodBigInt:()=>ji,$ZodBigIntFormat:()=>Hl,$ZodBoolean:()=>$o,$ZodCIDRv4:()=>jl,$ZodCIDRv6:()=>Ml,$ZodCUID:()=>Cl,$ZodCUID2:()=>Ol,$ZodCatch:()=>sd,$ZodCheck:()=>Je,$ZodCheckBigIntFormat:()=>xh,$ZodCheckEndsWith:()=>Uh,$ZodCheckGreaterThan:()=>bl,$ZodCheckIncludes:()=>zh,$ZodCheckLengthEquals:()=>Oh,$ZodCheckLessThan:()=>_l,$ZodCheckLowerCase:()=>$h,$ZodCheckMaxLength:()=>Rh,$ZodCheckMaxSize:()=>Ah,$ZodCheckMimeType:()=>Mh,$ZodCheckMinLength:()=>Ch,$ZodCheckMinSize:()=>wh,$ZodCheckMultipleOf:()=>Sh,$ZodCheckNumberFormat:()=>Th,$ZodCheckOverwrite:()=>Lh,$ZodCheckProperty:()=>jh,$ZodCheckRegex:()=>kh,$ZodCheckSizeEquals:()=>Ih,$ZodCheckStartsWith:()=>Dh,$ZodCheckStringFormat:()=>Di,$ZodCheckUpperCase:()=>Nh,$ZodCodec:()=>Li,$ZodCustom:()=>ws,$ZodCustomStringFormat:()=>Vl,$ZodDate:()=>ys,$ZodDefault:()=>nd,$ZodDiscriminatedUnion:()=>bs,$ZodE164:()=>Bl,$ZodEmail:()=>wl,$ZodEmoji:()=>Il,$ZodEncodeError:()=>Gn,$ZodEnum:()=>Ps,$ZodError:()=>os,$ZodExactOptional:()=>rd,$ZodFile:()=>td,$ZodFunction:()=>dd,$ZodGUID:()=>xl,$ZodIPv4:()=>zl,$ZodIPv6:()=>Dl,$ZodISODate:()=>ls,$ZodISODateTime:()=>us,$ZodISODuration:()=>ps,$ZodISOTime:()=>ds,$ZodIntersection:()=>Ql,$ZodJWT:()=>ql,$ZodKSUID:()=>Nl,$ZodLazy:()=>fd,$ZodLiteral:()=>Ss,$ZodMAC:()=>Ul,$ZodMap:()=>Yl,$ZodNaN:()=>cd,$ZodNanoID:()=>Rl,$ZodNever:()=>Jl,$ZodNonOptional:()=>id,$ZodNull:()=>Wl,$ZodNullable:()=>xs,$ZodNumber:()=>Ui,$ZodNumberFormat:()=>fs,$ZodObject:()=>Kl,$ZodObjectJIT:()=>Vh,$ZodOptional:()=>Mi,$ZodPipe:()=>As,$ZodPrefault:()=>od,$ZodPromise:()=>pd,$ZodReadonly:()=>ud,$ZodRealError:()=>Xt,$ZodRecord:()=>Es,$ZodRegistry:()=>md,$ZodSet:()=>ed,$ZodString:()=>xn,$ZodStringFormat:()=>qe,$ZodSuccess:()=>ad,$ZodSymbol:()=>Zl,$ZodTemplateLiteral:()=>ld,$ZodTransform:()=>Ts,$ZodTuple:()=>vs,$ZodType:()=>ge,$ZodULID:()=>kl,$ZodURL:()=>cs,$ZodUUID:()=>Al,$ZodUndefined:()=>Gl,$ZodUnion:()=>No,$ZodUnknown:()=>hs,$ZodVoid:()=>gs,$ZodXID:()=>$l,$ZodXor:()=>Xl,$brand:()=>Xa,$constructor:()=>w,$input:()=>gd,$output:()=>hd,Doc:()=>ss,JSONSchema:()=>eT,JSONSchemaGenerator:()=>Ld,NEVER:()=>rl,TimePrecision:()=>_d,_any:()=>dc,_array:()=>Ug,_base64:()=>Xs,_base64url:()=>Qs,_bigint:()=>Sd,_boolean:()=>cc,_catch:()=>ID,_check:()=>YS,_cidrv4:()=>Js,_cidrv6:()=>Ks,_coercedBigint:()=>lc,_coercedBoolean:()=>uc,_coercedDate:()=>mc,_coercedNumber:()=>ac,_coercedString:()=>Ns,_cuid:()=>Bs,_cuid2:()=>qs,_custom:()=>vc,_date:()=>Cd,_decode:()=>ul,_decodeAsync:()=>dl,_default:()=>xD,_discriminatedUnion:()=>fD,_e164:()=>Ys,_email:()=>zs,_emoji:()=>Ls,_encode:()=>cl,_encodeAsync:()=>ll,_endsWith:()=>Lo,_enum:()=>bD,_file:()=>kd,_float32:()=>bd,_float64:()=>vd,_gt:()=>Br,_gte:()=>_t,_guid:()=>qi,_includes:()=>jo,_int:()=>sc,_int32:()=>Ed,_int64:()=>Td,_intersection:()=>mD,_ipv4:()=>Gs,_ipv6:()=>Ws,_isoDate:()=>rc,_isoDateTime:()=>tc,_isoDuration:()=>oc,_isoTime:()=>nc,_jwt:()=>ec,_ksuid:()=>Zs,_lazy:()=>kD,_length:()=>eo,_literal:()=>ED,_lowercase:()=>Do,_lt:()=>Fr,_lte:()=>Ft,_mac:()=>yd,_map:()=>yD,_max:()=>Ft,_maxLength:()=>Yn,_maxSize:()=>wn,_mime:()=>Fo,_min:()=>_t,_minLength:()=>lt,_minSize:()=>qr,_multipleOf:()=>An,_nan:()=>Od,_nanoid:()=>Fs,_nativeEnum:()=>vD,_negative:()=>gc,_never:()=>Rd,_nonnegative:()=>_c,_nonoptional:()=>AD,_nonpositive:()=>yc,_normalize:()=>Bo,_null:()=>Id,_nullable:()=>TD,_number:()=>ic,_optional:()=>SD,_overwrite:()=>wr,_parse:()=>Ci,_parseAsync:()=>Oi,_pipe:()=>RD,_positive:()=>hc,_promise:()=>$D,_property:()=>bc,_readonly:()=>CD,_record:()=>gD,_refine:()=>Ec,_regex:()=>Ct,_safeDecode:()=>fl,_safeDecodeAsync:()=>hl,_safeEncode:()=>pl,_safeEncodeAsync:()=>ml,_safeParse:()=>ki,_safeParseAsync:()=>Ni,_set:()=>_D,_size:()=>Qn,_slugify:()=>Vi,_startsWith:()=>Mo,_string:()=>$s,_stringFormat:()=>Zo,_stringbool:()=>Dd,_success:()=>wD,_superRefine:()=>$d,_symbol:()=>Ad,_templateLiteral:()=>OD,_toLowerCase:()=>Vo,_toUpperCase:()=>Ho,_transform:()=>PD,_trim:()=>qo,_tuple:()=>hD,_uint32:()=>Pd,_uint64:()=>xd,_ulid:()=>Vs,_undefined:()=>wd,_union:()=>dD,_unknown:()=>pc,_uppercase:()=>Uo,_url:()=>zo,_uuid:()=>Ds,_uuidv4:()=>Us,_uuidv6:()=>js,_uuidv7:()=>Ms,_void:()=>fc,_xid:()=>Hs,_xor:()=>pD,clone:()=>vt,config:()=>at,createStandardJSONSchemaMethod:()=>Hi,createToJSONSchemaMethod:()=>jg,decode:()=>vS,decodeAsync:()=>PS,describe:()=>Nd,encode:()=>bS,encodeAsync:()=>ES,extractDefs:()=>ro,finalize:()=>no,flattenError:()=>Ii,formatError:()=>Ri,globalConfig:()=>Ka,globalRegistry:()=>Et,initializeContext:()=>to,isValidBase64:()=>qh,isValidBase64URL:()=>VS,isValidJWT:()=>HS,locales:()=>Bi,meta:()=>zd,parse:()=>Co,parseAsync:()=>Oo,prettifyError:()=>sl,process:()=>Ve,regexes:()=>Qt,registry:()=>ks,safeDecode:()=>TS,safeDecodeAsync:()=>AS,safeEncode:()=>SS,safeEncodeAsync:()=>xS,safeParse:()=>$i,safeParseAsync:()=>zi,toDotPath:()=>_S,toJSONSchema:()=>Pc,treeifyError:()=>al,util:()=>X,version:()=>Fh});var rl=Object.freeze({status:"aborted"});function w(e,t,n){function o(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);let p=s.prototype,f=Object.keys(p);for(let g=0;g<f.length;g++){let y=f[g];y in u||(u[y]=p[y].bind(u))}}a(o,"init");let r=n?.Parent??Object;class i extends r{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function s(u){var d;let p=n?.Parent?new i:this;o(p,u),(d=p._zod).deferred??(d.deferred=[]);for(let f of p._zod.deferred)f();return p}return a(s,"_"),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}a(w,"$constructor");var Xa=Symbol("zod_brand"),Lr=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Gn=class extends Error{static{a(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ka={};function at(e){return e&&Object.assign(Ka,e),Ka}a(at,"config");var X={};Jt(X,{BIGINT_FORMAT_RANGES:()=>Wm,Class:()=>Fm,NUMBER_FORMAT_RANGES:()=>Gm,aborted:()=>Xn,allowsEval:()=>Vm,assert:()=>wN,assertEqual:()=>SN,assertIs:()=>xN,assertNever:()=>AN,assertNotEqual:()=>TN,assignProp:()=>Jn,base64ToUint8Array:()=>hS,base64urlToUint8Array:()=>jN,cached:()=>Ai,captureStackTrace:()=>ol,cleanEnum:()=>UN,cleanRegex:()=>es,clone:()=>vt,cloneDef:()=>RN,createTransparentProxy:()=>zN,defineLazy:()=>Te,esc:()=>nl,escapeRegex:()=>Ar,extend:()=>dS,finalizeIssue:()=>Kt,floatSafeRemainder:()=>Bm,getElementAtPath:()=>CN,getEnumValues:()=>Ya,getLengthableOrigin:()=>ns,getParsedType:()=>NN,getSizableOrigin:()=>rs,hexToUint8Array:()=>LN,isObject:()=>Ro,isPlainObject:()=>Kn,issue:()=>wi,joinValues:()=>F,jsonStringifyReplacer:()=>xi,merge:()=>DN,mergeDefs:()=>Tn,normalizeParams:()=>J,nullish:()=>Wn,numKeys:()=>$N,objectClone:()=>IN,omit:()=>lS,optionalKeys:()=>Zm,parsedType:()=>Q,partial:()=>fS,pick:()=>uS,prefixIssues:()=>ur,primitiveTypes:()=>Hm,promiseAllObject:()=>ON,propertyKeyTypes:()=>ts,randomString:()=>kN,required:()=>mS,safeExtend:()=>pS,shallowClone:()=>il,slugify:()=>qm,stringifyPrimitive:()=>K,uint8ArrayToBase64:()=>gS,uint8ArrayToBase64url:()=>MN,uint8ArrayToHex:()=>FN,unwrapMessage:()=>Qa});function SN(e){return e}a(SN,"assertEqual");function TN(e){return e}a(TN,"assertNotEqual");function xN(e){}a(xN,"assertIs");function AN(e){throw new Error("Unexpected value in exhaustive check")}a(AN,"assertNever");function wN(e){}a(wN,"assert");function Ya(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}a(Ya,"getEnumValues");function F(e,t="|"){return e.map(n=>K(n)).join(t)}a(F,"joinValues");function xi(e,t){return typeof t=="bigint"?t.toString():t}a(xi,"jsonStringifyReplacer");function Ai(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}a(Ai,"cached");function Wn(e){return e==null}a(Wn,"nullish");function es(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}a(es,"cleanRegex");function Bm(e,t){let n=(e.toString().split(".")[1]||"").length,o=t.toString(),r=(o.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(o)){let d=o.match(/\d?e-(\d?)/);d?.[1]&&(r=Number.parseInt(d[1]))}let i=n>r?n:r,s=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return s%u/10**i}a(Bm,"floatSafeRemainder");var cS=Symbol("evaluating");function Te(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==cS)return o===void 0&&(o=cS,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}a(Te,"defineLazy");function IN(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}a(IN,"objectClone");function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}a(Jn,"assignProp");function Tn(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}a(Tn,"mergeDefs");function RN(e){return Tn(e._zod.def)}a(RN,"cloneDef");function CN(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}a(CN,"getElementAtPath");function ON(e){let t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}a(ON,"promiseAllObject");function kN(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}a(kN,"randomString");function nl(e){return JSON.stringify(e)}a(nl,"esc");function qm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(qm,"slugify");var ol="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ro(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}a(Ro,"isObject");var Vm=Ai(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Kn(e){if(Ro(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Ro(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}a(Kn,"isPlainObject");function il(e){return Kn(e)?{...e}:Array.isArray(e)?[...e]:e}a(il,"shallowClone");function $N(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}a($N,"numKeys");var NN=a(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),ts=new Set(["string","number","symbol"]),Hm=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ar(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Ar,"escapeRegex");function vt(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}a(vt,"clone");function J(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:a(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:a(()=>t.error,"error")}:t}a(J,"normalizeParams");function zN(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}a(zN,"createTransparentProxy");function K(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}a(K,"stringifyPrimitive");function Zm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}a(Zm,"optionalKeys");var Gm={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function uS(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Tn(e._zod.def,{get shape(){let s={};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(s[u]=n.shape[u])}return Jn(this,"shape",s),s},checks:[]});return vt(e,i)}a(uS,"pick");function lS(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Tn(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete s[u]}return Jn(this,"shape",s),s},checks:[]});return vt(e,i)}a(lS,"omit");function dS(e,t){if(!Kn(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=Tn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Jn(this,"shape",i),i}});return vt(e,r)}a(dS,"extend");function pS(e,t){if(!Kn(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Tn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Jn(this,"shape",o),o}});return vt(e,n)}a(pS,"safeExtend");function DN(e,t){let n=Tn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Jn(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return vt(e,n)}a(DN,"merge");function fS(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Tn(t._zod.def,{get shape(){let u=t._zod.def.shape,d={...u};if(n)for(let p in n){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);n[p]&&(d[p]=e?new e({type:"optional",innerType:u[p]}):u[p])}else for(let p in u)d[p]=e?new e({type:"optional",innerType:u[p]}):u[p];return Jn(this,"shape",d),d},checks:[]});return vt(t,s)}a(fS,"partial");function mS(e,t,n){let o=Tn(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(let s in r)i[s]=new e({type:"nonoptional",innerType:r[s]});return Jn(this,"shape",i),i}});return vt(t,o)}a(mS,"required");function Xn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}a(Xn,"aborted");function ur(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}a(ur,"prefixIssues");function Qa(e){return typeof e=="string"?e:e?.message}a(Qa,"unwrapMessage");function Kt(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=Qa(e.inst?._zod.def?.error?.(e))??Qa(t?.error?.(e))??Qa(n.customError?.(e))??Qa(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}a(Kt,"finalizeIssue");function rs(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}a(rs,"getSizableOrigin");function ns(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}a(ns,"getLengthableOrigin");function Q(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}a(Q,"parsedType");function wi(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}a(wi,"issue");function UN(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}a(UN,"cleanEnum");function hS(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}a(hS,"base64ToUint8Array");function gS(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}a(gS,"uint8ArrayToBase64");function jN(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return hS(t+n)}a(jN,"base64urlToUint8Array");function MN(e){return gS(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(MN,"uint8ArrayToBase64url");function LN(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}a(LN,"hexToUint8Array");function FN(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}a(FN,"uint8ArrayToHex");var Fm=class{static{a(this,"Class")}constructor(...t){}};var yS=a((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xi,2),Object.defineProperty(e,"toString",{value:a(()=>e.message,"value"),enumerable:!1})},"initializer"),os=w("$ZodError",yS),Xt=w("$ZodError",yS,{Parent:Error});function Ii(e,t=n=>n.message){let n={},o=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}a(Ii,"flattenError");function Ri(e,t=n=>n.message){let n={_errors:[]},o=a(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<i.path.length;){let d=i.path[u];u===i.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(i))):s[d]=s[d]||{_errors:[]},s=s[d],u++}}},"processError");return o(e),n}a(Ri,"formatError");function al(e,t=n=>n.message){let n={errors:[]},o=a((r,i=[])=>{var s,u;for(let d of r.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(p=>o({issues:p},d.path));else if(d.code==="invalid_key")o({issues:d.issues},d.path);else if(d.code==="invalid_element")o({issues:d.issues},d.path);else{let p=[...i,...d.path];if(p.length===0){n.errors.push(t(d));continue}let f=n,g=0;for(;g<p.length;){let y=p[g],h=g===p.length-1;typeof y=="string"?(f.properties??(f.properties={}),(s=f.properties)[y]??(s[y]={errors:[]}),f=f.properties[y]):(f.items??(f.items=[]),(u=f.items)[y]??(u[y]={errors:[]}),f=f.items[y]),h&&f.errors.push(t(d)),g++}}},"processError");return o(e),n}a(al,"treeifyError");function _S(e){let t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}a(_S,"toDotPath");function sl(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${_S(o.path)}`);return t.join(`
55
+ https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var KE=class{static{a(this,"GoogleAuth")}checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#e=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(t={}){if(this._cachedProjectId=t.projectId||null,this.cachedCredential=t.authClient||null,this.keyFilename=t.keyFilename||t.keyFile,this.scopes=t.scopes,this.clientOptions=t.clientOptions||{},this.jsonContent=t.credentials||null,this.apiKey=t.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw new RangeError(en.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);t.universeDomain&&(this.clientOptions.universeDomain=t.universeDomain)}setGapicJWTValues(t){t.defaultServicePath=this.defaultServicePath,t.useJWTAccessWithScope=this.useJWTAccessWithScope,t.defaultScopes=this.defaultScopes}getProjectId(t){if(t)this.getProjectIdAsync().then(n=>t(null,n),t);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(t){if(t instanceof Error&&t.message===en.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;throw t}}async findAndCacheProjectId(){let t=null;if(t||=await this.getProductionProjectId(),t||=await this.getFileProjectId(),t||=await this.getDefaultServiceProjectId(),t||=await this.getGCEProjectId(),t||=await this.getExternalAccountClientProjectId(),t)return this._cachedProjectId=t,t;throw new Error(en.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){return this._cachedProjectId?this._cachedProjectId:(this._findProjectIdPromise||(this._findProjectIdPromise=this.findAndCacheProjectId()),this._findProjectIdPromise)}async getUniverseDomainFromMetadataServer(){let t;try{t=await wu.universe("universe-domain"),t||=JE.DEFAULT_UNIVERSE}catch(n){if(n&&n?.response?.status===404)t=JE.DEFAULT_UNIVERSE;else throw n}return t}async getUniverseDomain(){let t=(0,d$.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{t??=(await this.getClient()).universeDomain}catch{t??=JE.DEFAULT_UNIVERSE}return t}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(t={},n){let o;if(typeof t=="function"?n=t:o=t,n)this.getApplicationDefaultAsync(o).then(r=>n(null,r.credential,r.projectId),n);else return this.getApplicationDefaultAsync(o)}async getApplicationDefaultAsync(t={}){if(this.cachedCredential)return await this.#t(this.cachedCredential,null);let n;if(n=await this._tryGetApplicationCredentialsFromEnvironmentVariable(t),n)return n instanceof Da.JWT?n.scopes=this.scopes:n instanceof Iu.BaseExternalAccountClient&&(n.scopes=this.getAnyScopes()),await this.#t(n);if(n=await this._tryGetApplicationCredentialsFromWellKnownFile(t),n)return n instanceof Da.JWT?n.scopes=this.scopes:n instanceof Iu.BaseExternalAccountClient&&(n.scopes=this.getAnyScopes()),await this.#t(n);if(await this._checkIsGCE())return t.scopes=this.getAnyScopes(),await this.#t(new iq.Compute(t));throw new Error(en.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#t(t,n=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let o=await this.getProjectIdOptional();return n&&(t.quotaProjectId=n),this.cachedCredential=t,{credential:t,projectId:o}}async _checkIsGCE(){return this.checkIsGCE===void 0&&(this.checkIsGCE=wu.getGCPResidency()||await wu.isAvailable()),this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(t){let n=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!n||n.length===0)return null;try{return this._getApplicationCredentialsFromFilePath(n,t)}catch(o){throw o instanceof Error&&(o.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${o.message}`),o}}async _tryGetApplicationCredentialsFromWellKnownFile(t){let n=null;if(this._isWindows())n=process.env.APPDATA;else{let r=process.env.HOME;r&&(n=WE.join(r,".config"))}return n&&(n=WE.join(n,"gcloud","application_default_credentials.json"),Au.existsSync(n)||(n=null)),n?await this._getApplicationCredentialsFromFilePath(n,t):null}async _getApplicationCredentialsFromFilePath(t,n={}){if(!t||t.length===0)throw new Error("The file path is invalid.");try{if(t=Au.realpathSync(t),!Au.lstatSync(t).isFile())throw new Error}catch(r){throw r instanceof Error&&(r.message=`The file at ${t} does not exist, or it is not a file. ${r.message}`),r}let o=Au.createReadStream(t);return this.fromStream(o,n)}fromImpersonatedJSON(t){if(!t)throw new Error("Must pass in a JSON object containing an impersonated refresh token");if(t.type!==Ua.IMPERSONATED_ACCOUNT_TYPE)throw new Error(`The incoming JSON object does not have the "${Ua.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!t.source_credentials)throw new Error("The incoming JSON object does not contain a source_credentials field");if(!t.service_account_impersonation_url)throw new Error("The incoming JSON object does not contain a service_account_impersonation_url field");let n=this.fromJSON(t.source_credentials);if(t.service_account_impersonation_url?.length>256)throw new RangeError(`Target principal is too long: ${t.service_account_impersonation_url}`);let o=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(t.service_account_impersonation_url)?.groups?.target;if(!o)throw new RangeError(`Cannot extract target principal from ${t.service_account_impersonation_url}`);let r=(this.scopes||t.scopes||this.defaultScopes)??[];return new Ua.Impersonated({...t,sourceClient:n,targetPrincipal:o,targetScopes:Array.isArray(r)?r:[r]})}fromJSON(t,n={}){let o,r=(0,d$.originalOrCamelOptions)(n).get("universe_domain");return t.type===u$.USER_REFRESH_ACCOUNT_TYPE?(o=new u$.UserRefreshClient(n),o.fromJSON(t)):t.type===Ua.IMPERSONATED_ACCOUNT_TYPE?o=this.fromImpersonatedJSON(t):t.type===Iu.EXTERNAL_ACCOUNT_TYPE?(o=cq.ExternalAccountClient.fromJSON({...t,...n}),o.scopes=this.getAnyScopes()):t.type===l$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE?o=new l$.ExternalAccountAuthorizedUserClient({...t,...n}):(n.scopes=this.scopes,o=new Da.JWT(n),this.setGapicJWTValues(o),o.fromJSON(t)),r&&(o.universeDomain=r),o}_cacheClientFromJSON(t,n){let o=this.fromJSON(t,n);return this.jsonContent=t,this.cachedCredential=o,o}fromStream(t,n={},o){let r={};if(typeof n=="function"?o=n:r=n,o)this.fromStreamAsync(t,r).then(i=>o(null,i),o);else return this.fromStreamAsync(t,r)}fromStreamAsync(t,n){return new Promise((o,r)=>{if(!t)throw new Error("Must pass in a stream containing the Google auth settings.");let i=[];t.setEncoding("utf8").on("error",r).on("data",s=>i.push(s)).on("end",()=>{try{try{let s=JSON.parse(i.join("")),u=this._cacheClientFromJSON(s,n);return o(u)}catch(s){if(!this.keyFilename)throw s;let u=new Da.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=u,this.setGapicJWTValues(u),o(u)}}catch(s){return r(s)}})})}fromAPIKey(t,n={}){return new Da.JWT({...n,apiKey:t})}_isWindows(){let t=nq.platform();return!!(t&&t.length>=3&&t.substring(0,3).toLowerCase()==="win")}async getDefaultServiceProjectId(){return new Promise(t=>{(0,tq.exec)("gcloud config config-helper --format json",(n,o)=>{if(!n&&o)try{let r=JSON.parse(o).configuration.properties.core.project;t(r);return}catch{}t(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let n=await this.getClient();if(n&&n.projectId)return n.projectId}let t=await this._tryGetApplicationCredentialsFromEnvironmentVariable();return t?t.projectId:null}async getExternalAccountClientProjectId(){return!this.jsonContent||this.jsonContent.type!==Iu.EXTERNAL_ACCOUNT_TYPE?null:await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await wu.project("project-id")}catch{return null}}getCredentials(t){if(t)this.getCredentialsAsync().then(n=>t(null,n),t);else return this.getCredentialsAsync()}async getCredentialsAsync(){let t=await this.getClient();if(t instanceof Ua.Impersonated)return{client_email:t.getTargetPrincipal()};if(t instanceof Iu.BaseExternalAccountClient){let n=t.getServiceAccountEmail();if(n)return{client_email:n,universe_domain:t.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[n,o]=await Promise.all([wu.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:n,universe_domain:o}}throw new Error(en.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#e=this.#e||this.#r();try{return await this.#e}finally{this.#e=null}}async#r(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);if(this.keyFilename){let t=WE.resolve(this.keyFilename),n=Au.createReadStream(t);return await this.fromStreamAsync(n,this.clientOptions)}else if(this.apiKey){let t=await this.fromAPIKey(this.apiKey,this.clientOptions);t.scopes=this.scopes;let{credential:n}=await this.#t(t);return n}else{let{credential:t}=await this.getApplicationDefaultAsync(this.clientOptions);return t}}async getIdTokenClient(t){let n=await this.getClient();if(!("fetchIdToken"in n))throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new aq.IdTokenClient({targetAudience:t,idTokenProvider:n})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(t){return(await this.getClient()).getRequestHeaders(t)}async authorizeRequest(t={}){let n=t.url,r=await(await this.getClient()).getRequestHeaders(n);return t.headers=rq.Gaxios.mergeHeaders(t.headers,r),t}async fetch(...t){return(await this.getClient()).fetch(...t)}async request(t){return(await this.getClient()).request(t)}getEnv(){return(0,sq.getEnv)()}async sign(t,n){let o=await this.getClient(),r=await this.getUniverseDomain();if(n=n||`https://iamcredentials.${r}/v1/projects/-/serviceAccounts/`,o instanceof Ua.Impersonated)return(await o.sign(t)).signedBlob;let i=(0,oq.createCrypto)();if(o instanceof Da.JWT&&o.key)return await i.sign(o.key,t);let s=await this.getCredentials();if(!s.client_email)throw new Error("Cannot sign data without `client_email`.");return this.signBlob(i,s.client_email,t,n)}async signBlob(t,n,o,r){let i=new URL(r+`${n}:signBlob`);return(await this.request({method:"POST",url:i.href,data:{payload:t.encodeBase64StringUtf8(o)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}};en.GoogleAuth=KE});var f$=B(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.IAMAuth=void 0;var XE=class{static{a(this,"IAMAuth")}selector;token;constructor(t,n){this.selector=t,this.token=n,this.selector=t,this.token=n}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}};am.IAMAuth=XE});var m$=B(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.DownscopedClient=gn.EXPIRATION_TIME_OFFSET=gn.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var uq=kt(),lq=require("stream"),QE=br(),dq=Lf(),pq="urn:ietf:params:oauth:grant-type:token-exchange",fq="urn:ietf:params:oauth:token-type:access_token",mq="urn:ietf:params:oauth:token-type:access_token";gn.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;gn.EXPIRATION_TIME_OFFSET=300*1e3;var YE=class extends QE.AuthClient{static{a(this,"DownscopedClient")}authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(t,n={accessBoundary:{accessBoundaryRules:[]}}){if(super(t instanceof QE.AuthClient?{}:t),t instanceof QE.AuthClient?(this.authClient=t,this.credentialAccessBoundary=n):(this.authClient=t.authClient,this.credentialAccessBoundary=t.credentialAccessBoundary),this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw new Error("At least one access boundary rule needs to be defined.");if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>gn.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw new Error(`The provided access boundary has more than ${gn.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let o of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(o.availablePermissions.length===0)throw new Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new dq.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(t){if(!t.expiry_date)throw new Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(t),this.cachedDownscopedAccessToken=t}async getAccessToken(){return(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))&&await this.refreshAccessTokenAsync(),{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let t=await this.getAccessToken(),n=new Headers({authorization:`Bearer ${t.token}`});return this.addSharedMetadataHeaders(n)}request(t,n){if(n)this.requestAsync(t).then(o=>n(null,o),o=>n(o,o.response));else return this.requestAsync(t)}async requestAsync(t,n=!1){let o;try{let r=await this.getRequestHeaders();t.headers=uq.Gaxios.mergeHeaders(t.headers),this.addUserProjectAndAuthHeaders(t.headers,r),o=await this.transporter.request(t)}catch(r){let i=r.response;if(i){let s=i.status,u=i.config.data instanceof lq.Readable;if(!n&&(s===401||s===403)&&!u&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(t,!0)}throw r}return o}async refreshAccessTokenAsync(){let t=(await this.authClient.getAccessToken()).token,n={grantType:pq,requestedTokenType:fq,subjectToken:t,subjectTokenType:mq},o=await this.stsCredential.exchangeToken(n,void 0,this.credentialAccessBoundary),r=this.authClient.credentials?.expiry_date||null,i=o.expires_in?new Date().getTime()+o.expires_in*1e3:r;return this.cachedDownscopedAccessToken={access_token:o.access_token,expiry_date:i,res:o.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(t){let n=new Date().getTime();return t.expiry_date?n>=t.expiry_date-this.eagerRefreshThresholdMillis:!1}};gn.DownscopedClient=YE});var h$=B(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.PassThroughClient=void 0;var hq=br(),eP=class extends hq.AuthClient{static{a(this,"PassThroughClient")}async request(t){return this.transporter.request(t)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}};sm.PassThroughClient=eP});var v$=B(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.GoogleAuth=se.auth=se.PassThroughClient=se.ExternalAccountAuthorizedUserClient=se.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=se.ExecutableError=se.PluggableAuthClient=se.DownscopedClient=se.BaseExternalAccountClient=se.ExternalAccountClient=se.IdentityPoolClient=se.AwsRequestSigner=se.AwsClient=se.UserRefreshClient=se.LoginTicket=se.ClientAuthentication=se.OAuth2Client=se.CodeChallengeMethod=se.Impersonated=se.JWT=se.JWTAccess=se.IdTokenClient=se.IAMAuth=se.GCPEnv=se.Compute=se.DEFAULT_UNIVERSE=se.AuthClient=se.gaxios=se.gcpMetadata=void 0;var g$=p$();Object.defineProperty(se,"GoogleAuth",{enumerable:!0,get:a(function(){return g$.GoogleAuth},"get")});se.gcpMetadata=pu();se.gaxios=kt();var y$=br();Object.defineProperty(se,"AuthClient",{enumerable:!0,get:a(function(){return y$.AuthClient},"get")});Object.defineProperty(se,"DEFAULT_UNIVERSE",{enumerable:!0,get:a(function(){return y$.DEFAULT_UNIVERSE},"get")});var gq=Fv();Object.defineProperty(se,"Compute",{enumerable:!0,get:a(function(){return gq.Compute},"get")});var yq=Vv();Object.defineProperty(se,"GCPEnv",{enumerable:!0,get:a(function(){return yq.GCPEnv},"get")});var _q=f$();Object.defineProperty(se,"IAMAuth",{enumerable:!0,get:a(function(){return _q.IAMAuth},"get")});var bq=qv();Object.defineProperty(se,"IdTokenClient",{enumerable:!0,get:a(function(){return bq.IdTokenClient},"get")});var vq=sE();Object.defineProperty(se,"JWTAccess",{enumerable:!0,get:a(function(){return vq.JWTAccess},"get")});var Eq=uE();Object.defineProperty(se,"JWT",{enumerable:!0,get:a(function(){return Eq.JWT},"get")});var Pq=fE();Object.defineProperty(se,"Impersonated",{enumerable:!0,get:a(function(){return Pq.Impersonated},"get")});var tP=ci();Object.defineProperty(se,"CodeChallengeMethod",{enumerable:!0,get:a(function(){return tP.CodeChallengeMethod},"get")});Object.defineProperty(se,"OAuth2Client",{enumerable:!0,get:a(function(){return tP.OAuth2Client},"get")});Object.defineProperty(se,"ClientAuthentication",{enumerable:!0,get:a(function(){return tP.ClientAuthentication},"get")});var Sq=Uv();Object.defineProperty(se,"LoginTicket",{enumerable:!0,get:a(function(){return Sq.LoginTicket},"get")});var Tq=dE();Object.defineProperty(se,"UserRefreshClient",{enumerable:!0,get:a(function(){return Tq.UserRefreshClient},"get")});var xq=kE();Object.defineProperty(se,"AwsClient",{enumerable:!0,get:a(function(){return xq.AwsClient},"get")});var Aq=RE();Object.defineProperty(se,"AwsRequestSigner",{enumerable:!0,get:a(function(){return Aq.AwsRequestSigner},"get")});var wq=wE();Object.defineProperty(se,"IdentityPoolClient",{enumerable:!0,get:a(function(){return wq.IdentityPoolClient},"get")});var Iq=VE();Object.defineProperty(se,"ExternalAccountClient",{enumerable:!0,get:a(function(){return Iq.ExternalAccountClient},"get")});var Rq=vo();Object.defineProperty(se,"BaseExternalAccountClient",{enumerable:!0,get:a(function(){return Rq.BaseExternalAccountClient},"get")});var Cq=m$();Object.defineProperty(se,"DownscopedClient",{enumerable:!0,get:a(function(){return Cq.DownscopedClient},"get")});var _$=BE();Object.defineProperty(se,"PluggableAuthClient",{enumerable:!0,get:a(function(){return _$.PluggableAuthClient},"get")});Object.defineProperty(se,"ExecutableError",{enumerable:!0,get:a(function(){return _$.ExecutableError},"get")});var b$=GE();Object.defineProperty(se,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:a(function(){return b$.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE},"get")});Object.defineProperty(se,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:a(function(){return b$.ExternalAccountAuthorizedUserClient},"get")});var Oq=h$();Object.defineProperty(se,"PassThroughClient",{enumerable:!0,get:a(function(){return Oq.PassThroughClient},"get")});var kq=new g$.GoogleAuth;se.auth=kq});var Lq={};Jt(Lq,{bigQueryAuth:()=>je,googleBigQuery:()=>Mq});module.exports=PN(Lq);var lr={};Jt(lr,{$ZodAny:()=>ms,$ZodArray:()=>_s,$ZodAsyncError:()=>Lr,$ZodBase64:()=>Ll,$ZodBase64URL:()=>Fl,$ZodBigInt:()=>ji,$ZodBigIntFormat:()=>Hl,$ZodBoolean:()=>$o,$ZodCIDRv4:()=>jl,$ZodCIDRv6:()=>Ml,$ZodCUID:()=>Cl,$ZodCUID2:()=>Ol,$ZodCatch:()=>sd,$ZodCheck:()=>Je,$ZodCheckBigIntFormat:()=>xh,$ZodCheckEndsWith:()=>Uh,$ZodCheckGreaterThan:()=>bl,$ZodCheckIncludes:()=>zh,$ZodCheckLengthEquals:()=>Oh,$ZodCheckLessThan:()=>_l,$ZodCheckLowerCase:()=>$h,$ZodCheckMaxLength:()=>Rh,$ZodCheckMaxSize:()=>Ah,$ZodCheckMimeType:()=>Mh,$ZodCheckMinLength:()=>Ch,$ZodCheckMinSize:()=>wh,$ZodCheckMultipleOf:()=>Sh,$ZodCheckNumberFormat:()=>Th,$ZodCheckOverwrite:()=>Lh,$ZodCheckProperty:()=>jh,$ZodCheckRegex:()=>kh,$ZodCheckSizeEquals:()=>Ih,$ZodCheckStartsWith:()=>Dh,$ZodCheckStringFormat:()=>Di,$ZodCheckUpperCase:()=>Nh,$ZodCodec:()=>Li,$ZodCustom:()=>ws,$ZodCustomStringFormat:()=>Vl,$ZodDate:()=>ys,$ZodDefault:()=>nd,$ZodDiscriminatedUnion:()=>bs,$ZodE164:()=>Bl,$ZodEmail:()=>wl,$ZodEmoji:()=>Il,$ZodEncodeError:()=>Gn,$ZodEnum:()=>Ps,$ZodError:()=>os,$ZodExactOptional:()=>rd,$ZodFile:()=>td,$ZodFunction:()=>dd,$ZodGUID:()=>xl,$ZodIPv4:()=>zl,$ZodIPv6:()=>Dl,$ZodISODate:()=>ls,$ZodISODateTime:()=>us,$ZodISODuration:()=>ps,$ZodISOTime:()=>ds,$ZodIntersection:()=>Ql,$ZodJWT:()=>ql,$ZodKSUID:()=>Nl,$ZodLazy:()=>fd,$ZodLiteral:()=>Ss,$ZodMAC:()=>Ul,$ZodMap:()=>Yl,$ZodNaN:()=>cd,$ZodNanoID:()=>Rl,$ZodNever:()=>Jl,$ZodNonOptional:()=>id,$ZodNull:()=>Wl,$ZodNullable:()=>xs,$ZodNumber:()=>Ui,$ZodNumberFormat:()=>fs,$ZodObject:()=>Kl,$ZodObjectJIT:()=>Vh,$ZodOptional:()=>Mi,$ZodPipe:()=>As,$ZodPrefault:()=>od,$ZodPromise:()=>pd,$ZodReadonly:()=>ud,$ZodRealError:()=>Xt,$ZodRecord:()=>Es,$ZodRegistry:()=>md,$ZodSet:()=>ed,$ZodString:()=>xn,$ZodStringFormat:()=>qe,$ZodSuccess:()=>ad,$ZodSymbol:()=>Zl,$ZodTemplateLiteral:()=>ld,$ZodTransform:()=>Ts,$ZodTuple:()=>vs,$ZodType:()=>ge,$ZodULID:()=>kl,$ZodURL:()=>cs,$ZodUUID:()=>Al,$ZodUndefined:()=>Gl,$ZodUnion:()=>No,$ZodUnknown:()=>hs,$ZodVoid:()=>gs,$ZodXID:()=>$l,$ZodXor:()=>Xl,$brand:()=>Xa,$constructor:()=>w,$input:()=>gd,$output:()=>hd,Doc:()=>ss,JSONSchema:()=>eT,JSONSchemaGenerator:()=>Ld,NEVER:()=>rl,TimePrecision:()=>_d,_any:()=>dc,_array:()=>Ug,_base64:()=>Xs,_base64url:()=>Qs,_bigint:()=>Sd,_boolean:()=>cc,_catch:()=>ID,_check:()=>YS,_cidrv4:()=>Js,_cidrv6:()=>Ks,_coercedBigint:()=>lc,_coercedBoolean:()=>uc,_coercedDate:()=>mc,_coercedNumber:()=>ac,_coercedString:()=>Ns,_cuid:()=>Bs,_cuid2:()=>qs,_custom:()=>vc,_date:()=>Cd,_decode:()=>ul,_decodeAsync:()=>dl,_default:()=>xD,_discriminatedUnion:()=>fD,_e164:()=>Ys,_email:()=>zs,_emoji:()=>Ls,_encode:()=>cl,_encodeAsync:()=>ll,_endsWith:()=>Lo,_enum:()=>bD,_file:()=>kd,_float32:()=>bd,_float64:()=>vd,_gt:()=>Br,_gte:()=>_t,_guid:()=>qi,_includes:()=>jo,_int:()=>sc,_int32:()=>Ed,_int64:()=>Td,_intersection:()=>mD,_ipv4:()=>Gs,_ipv6:()=>Ws,_isoDate:()=>rc,_isoDateTime:()=>tc,_isoDuration:()=>oc,_isoTime:()=>nc,_jwt:()=>ec,_ksuid:()=>Zs,_lazy:()=>kD,_length:()=>eo,_literal:()=>ED,_lowercase:()=>Do,_lt:()=>Fr,_lte:()=>Ft,_mac:()=>yd,_map:()=>yD,_max:()=>Ft,_maxLength:()=>Yn,_maxSize:()=>wn,_mime:()=>Fo,_min:()=>_t,_minLength:()=>lt,_minSize:()=>qr,_multipleOf:()=>An,_nan:()=>Od,_nanoid:()=>Fs,_nativeEnum:()=>vD,_negative:()=>gc,_never:()=>Rd,_nonnegative:()=>_c,_nonoptional:()=>AD,_nonpositive:()=>yc,_normalize:()=>Bo,_null:()=>Id,_nullable:()=>TD,_number:()=>ic,_optional:()=>SD,_overwrite:()=>wr,_parse:()=>Ci,_parseAsync:()=>Oi,_pipe:()=>RD,_positive:()=>hc,_promise:()=>$D,_property:()=>bc,_readonly:()=>CD,_record:()=>gD,_refine:()=>Ec,_regex:()=>Ct,_safeDecode:()=>fl,_safeDecodeAsync:()=>hl,_safeEncode:()=>pl,_safeEncodeAsync:()=>ml,_safeParse:()=>ki,_safeParseAsync:()=>Ni,_set:()=>_D,_size:()=>Qn,_slugify:()=>Vi,_startsWith:()=>Mo,_string:()=>$s,_stringFormat:()=>Zo,_stringbool:()=>Dd,_success:()=>wD,_superRefine:()=>$d,_symbol:()=>Ad,_templateLiteral:()=>OD,_toLowerCase:()=>Vo,_toUpperCase:()=>Ho,_transform:()=>PD,_trim:()=>qo,_tuple:()=>hD,_uint32:()=>Pd,_uint64:()=>xd,_ulid:()=>Vs,_undefined:()=>wd,_union:()=>dD,_unknown:()=>pc,_uppercase:()=>Uo,_url:()=>zo,_uuid:()=>Ds,_uuidv4:()=>Us,_uuidv6:()=>js,_uuidv7:()=>Ms,_void:()=>fc,_xid:()=>Hs,_xor:()=>pD,clone:()=>vt,config:()=>at,createStandardJSONSchemaMethod:()=>Hi,createToJSONSchemaMethod:()=>jg,decode:()=>vS,decodeAsync:()=>PS,describe:()=>Nd,encode:()=>bS,encodeAsync:()=>ES,extractDefs:()=>ro,finalize:()=>no,flattenError:()=>Ii,formatError:()=>Ri,globalConfig:()=>Ka,globalRegistry:()=>Et,initializeContext:()=>to,isValidBase64:()=>qh,isValidBase64URL:()=>VS,isValidJWT:()=>HS,locales:()=>Bi,meta:()=>zd,parse:()=>Co,parseAsync:()=>Oo,prettifyError:()=>sl,process:()=>Ve,regexes:()=>Qt,registry:()=>ks,safeDecode:()=>TS,safeDecodeAsync:()=>AS,safeEncode:()=>SS,safeEncodeAsync:()=>xS,safeParse:()=>$i,safeParseAsync:()=>zi,toDotPath:()=>_S,toJSONSchema:()=>Pc,treeifyError:()=>al,util:()=>X,version:()=>Fh});var rl=Object.freeze({status:"aborted"});function w(e,t,n){function o(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);let p=s.prototype,f=Object.keys(p);for(let g=0;g<f.length;g++){let y=f[g];y in u||(u[y]=p[y].bind(u))}}a(o,"init");let r=n?.Parent??Object;class i extends r{static{a(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function s(u){var d;let p=n?.Parent?new i:this;o(p,u),(d=p._zod).deferred??(d.deferred=[]);for(let f of p._zod.deferred)f();return p}return a(s,"_"),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a(u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}a(w,"$constructor");var Xa=Symbol("zod_brand"),Lr=class extends Error{static{a(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Gn=class extends Error{static{a(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ka={};function at(e){return e&&Object.assign(Ka,e),Ka}a(at,"config");var X={};Jt(X,{BIGINT_FORMAT_RANGES:()=>Wm,Class:()=>Fm,NUMBER_FORMAT_RANGES:()=>Gm,aborted:()=>Xn,allowsEval:()=>Vm,assert:()=>wN,assertEqual:()=>SN,assertIs:()=>xN,assertNever:()=>AN,assertNotEqual:()=>TN,assignProp:()=>Jn,base64ToUint8Array:()=>hS,base64urlToUint8Array:()=>jN,cached:()=>Ai,captureStackTrace:()=>ol,cleanEnum:()=>UN,cleanRegex:()=>es,clone:()=>vt,cloneDef:()=>RN,createTransparentProxy:()=>zN,defineLazy:()=>Te,esc:()=>nl,escapeRegex:()=>Ar,extend:()=>dS,finalizeIssue:()=>Kt,floatSafeRemainder:()=>Bm,getElementAtPath:()=>CN,getEnumValues:()=>Ya,getLengthableOrigin:()=>ns,getParsedType:()=>NN,getSizableOrigin:()=>rs,hexToUint8Array:()=>LN,isObject:()=>Ro,isPlainObject:()=>Kn,issue:()=>wi,joinValues:()=>F,jsonStringifyReplacer:()=>xi,merge:()=>DN,mergeDefs:()=>Tn,normalizeParams:()=>J,nullish:()=>Wn,numKeys:()=>$N,objectClone:()=>IN,omit:()=>lS,optionalKeys:()=>Zm,parsedType:()=>Q,partial:()=>fS,pick:()=>uS,prefixIssues:()=>ur,primitiveTypes:()=>Hm,promiseAllObject:()=>ON,propertyKeyTypes:()=>ts,randomString:()=>kN,required:()=>mS,safeExtend:()=>pS,shallowClone:()=>il,slugify:()=>qm,stringifyPrimitive:()=>K,uint8ArrayToBase64:()=>gS,uint8ArrayToBase64url:()=>MN,uint8ArrayToHex:()=>FN,unwrapMessage:()=>Qa});function SN(e){return e}a(SN,"assertEqual");function TN(e){return e}a(TN,"assertNotEqual");function xN(e){}a(xN,"assertIs");function AN(e){throw new Error("Unexpected value in exhaustive check")}a(AN,"assertNever");function wN(e){}a(wN,"assert");function Ya(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}a(Ya,"getEnumValues");function F(e,t="|"){return e.map(n=>K(n)).join(t)}a(F,"joinValues");function xi(e,t){return typeof t=="bigint"?t.toString():t}a(xi,"jsonStringifyReplacer");function Ai(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}a(Ai,"cached");function Wn(e){return e==null}a(Wn,"nullish");function es(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}a(es,"cleanRegex");function Bm(e,t){let n=(e.toString().split(".")[1]||"").length,o=t.toString(),r=(o.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(o)){let d=o.match(/\d?e-(\d?)/);d?.[1]&&(r=Number.parseInt(d[1]))}let i=n>r?n:r,s=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return s%u/10**i}a(Bm,"floatSafeRemainder");var cS=Symbol("evaluating");function Te(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==cS)return o===void 0&&(o=cS,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}a(Te,"defineLazy");function IN(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}a(IN,"objectClone");function Jn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}a(Jn,"assignProp");function Tn(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}a(Tn,"mergeDefs");function RN(e){return Tn(e._zod.def)}a(RN,"cloneDef");function CN(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}a(CN,"getElementAtPath");function ON(e){let t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}a(ON,"promiseAllObject");function kN(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}a(kN,"randomString");function nl(e){return JSON.stringify(e)}a(nl,"esc");function qm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}a(qm,"slugify");var ol="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ro(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}a(Ro,"isObject");var Vm=Ai(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Kn(e){if(Ro(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Ro(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}a(Kn,"isPlainObject");function il(e){return Kn(e)?{...e}:Array.isArray(e)?[...e]:e}a(il,"shallowClone");function $N(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}a($N,"numKeys");var NN=a(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),ts=new Set(["string","number","symbol"]),Hm=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ar(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}a(Ar,"escapeRegex");function vt(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}a(vt,"clone");function J(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:a(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:a(()=>t.error,"error")}:t}a(J,"normalizeParams");function zN(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}a(zN,"createTransparentProxy");function K(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}a(K,"stringifyPrimitive");function Zm(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}a(Zm,"optionalKeys");var Gm={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function uS(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Tn(e._zod.def,{get shape(){let s={};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(s[u]=n.shape[u])}return Jn(this,"shape",s),s},checks:[]});return vt(e,i)}a(uS,"pick");function lS(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Tn(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete s[u]}return Jn(this,"shape",s),s},checks:[]});return vt(e,i)}a(lS,"omit");function dS(e,t){if(!Kn(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=Tn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Jn(this,"shape",i),i}});return vt(e,r)}a(dS,"extend");function pS(e,t){if(!Kn(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Tn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Jn(this,"shape",o),o}});return vt(e,n)}a(pS,"safeExtend");function DN(e,t){let n=Tn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Jn(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return vt(e,n)}a(DN,"merge");function fS(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Tn(t._zod.def,{get shape(){let u=t._zod.def.shape,d={...u};if(n)for(let p in n){if(!(p in u))throw new Error(`Unrecognized key: "${p}"`);n[p]&&(d[p]=e?new e({type:"optional",innerType:u[p]}):u[p])}else for(let p in u)d[p]=e?new e({type:"optional",innerType:u[p]}):u[p];return Jn(this,"shape",d),d},checks:[]});return vt(t,s)}a(fS,"partial");function mS(e,t,n){let o=Tn(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(let s in r)i[s]=new e({type:"nonoptional",innerType:r[s]});return Jn(this,"shape",i),i}});return vt(t,o)}a(mS,"required");function Xn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}a(Xn,"aborted");function ur(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}a(ur,"prefixIssues");function Qa(e){return typeof e=="string"?e:e?.message}a(Qa,"unwrapMessage");function Kt(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=Qa(e.inst?._zod.def?.error?.(e))??Qa(t?.error?.(e))??Qa(n.customError?.(e))??Qa(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}a(Kt,"finalizeIssue");function rs(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}a(rs,"getSizableOrigin");function ns(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}a(ns,"getLengthableOrigin");function Q(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}a(Q,"parsedType");function wi(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}a(wi,"issue");function UN(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}a(UN,"cleanEnum");function hS(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}a(hS,"base64ToUint8Array");function gS(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}a(gS,"uint8ArrayToBase64");function jN(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return hS(t+n)}a(jN,"base64urlToUint8Array");function MN(e){return gS(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}a(MN,"uint8ArrayToBase64url");function LN(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}a(LN,"hexToUint8Array");function FN(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}a(FN,"uint8ArrayToHex");var Fm=class{static{a(this,"Class")}constructor(...t){}};var yS=a((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xi,2),Object.defineProperty(e,"toString",{value:a(()=>e.message,"value"),enumerable:!1})},"initializer"),os=w("$ZodError",yS),Xt=w("$ZodError",yS,{Parent:Error});function Ii(e,t=n=>n.message){let n={},o=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}a(Ii,"flattenError");function Ri(e,t=n=>n.message){let n={_errors:[]},o=a(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<i.path.length;){let d=i.path[u];u===i.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(i))):s[d]=s[d]||{_errors:[]},s=s[d],u++}}},"processError");return o(e),n}a(Ri,"formatError");function al(e,t=n=>n.message){let n={errors:[]},o=a((r,i=[])=>{var s,u;for(let d of r.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(p=>o({issues:p},d.path));else if(d.code==="invalid_key")o({issues:d.issues},d.path);else if(d.code==="invalid_element")o({issues:d.issues},d.path);else{let p=[...i,...d.path];if(p.length===0){n.errors.push(t(d));continue}let f=n,g=0;for(;g<p.length;){let y=p[g],h=g===p.length-1;typeof y=="string"?(f.properties??(f.properties={}),(s=f.properties)[y]??(s[y]={errors:[]}),f=f.properties[y]):(f.items??(f.items=[]),(u=f.items)[y]??(u[y]={errors:[]}),f=f.items[y]),h&&f.errors.push(t(d)),g++}}},"processError");return o(e),n}a(al,"treeifyError");function _S(e){let t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}a(_S,"toDotPath");function sl(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${_S(o.path)}`);return t.join(`
56
56
  `)}a(sl,"prettifyError");var Ci=a(e=>(t,n,o,r)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Lr;if(s.issues.length){let u=new(r?.Err??e)(s.issues.map(d=>Kt(d,i,at())));throw ol(u,r?.callee),u}return s.value},"_parse"),Co=Ci(Xt),Oi=a(e=>async(t,n,o,r)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(r?.Err??e)(s.issues.map(d=>Kt(d,i,at())));throw ol(u,r?.callee),u}return s.value},"_parseAsync"),Oo=Oi(Xt),ki=a(e=>(t,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Lr;return i.issues.length?{success:!1,error:new(e??os)(i.issues.map(s=>Kt(s,r,at())))}:{success:!0,data:i.value}},"_safeParse"),$i=ki(Xt),Ni=a(e=>async(t,n,o)=>{let r=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Kt(s,r,at())))}:{success:!0,data:i.value}},"_safeParseAsync"),zi=Ni(Xt),cl=a(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ci(e)(t,n,r)},"_encode"),bS=cl(Xt),ul=a(e=>(t,n,o)=>Ci(e)(t,n,o),"_decode"),vS=ul(Xt),ll=a(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Oi(e)(t,n,r)},"_encodeAsync"),ES=ll(Xt),dl=a(e=>async(t,n,o)=>Oi(e)(t,n,o),"_decodeAsync"),PS=dl(Xt),pl=a(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return ki(e)(t,n,r)},"_safeEncode"),SS=pl(Xt),fl=a(e=>(t,n,o)=>ki(e)(t,n,o),"_safeDecode"),TS=fl(Xt),ml=a(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ni(e)(t,n,r)},"_safeEncodeAsync"),xS=ml(Xt),hl=a(e=>async(t,n,o)=>Ni(e)(t,n,o),"_safeDecodeAsync"),AS=hl(Xt);var Qt={};Jt(Qt,{base64:()=>lh,base64url:()=>gl,bigint:()=>gh,boolean:()=>_h,browserEmail:()=>KN,cidrv4:()=>ch,cidrv6:()=>uh,cuid:()=>Jm,cuid2:()=>Km,date:()=>ph,datetime:()=>mh,domain:()=>YN,duration:()=>th,e164:()=>dh,email:()=>nh,emoji:()=>oh,extendedDuration:()=>qN,guid:()=>rh,hex:()=>ez,hostname:()=>QN,html5Email:()=>GN,idnEmail:()=>JN,integer:()=>yh,ipv4:()=>ih,ipv6:()=>ah,ksuid:()=>Ym,lowercase:()=>Eh,mac:()=>sh,md5_base64:()=>rz,md5_base64url:()=>nz,md5_hex:()=>tz,nanoid:()=>eh,null:()=>bh,number:()=>yl,rfc5322Email:()=>WN,sha1_base64:()=>iz,sha1_base64url:()=>az,sha1_hex:()=>oz,sha256_base64:()=>cz,sha256_base64url:()=>uz,sha256_hex:()=>sz,sha384_base64:()=>dz,sha384_base64url:()=>pz,sha384_hex:()=>lz,sha512_base64:()=>mz,sha512_base64url:()=>hz,sha512_hex:()=>fz,string:()=>hh,time:()=>fh,ulid:()=>Xm,undefined:()=>vh,unicodeEmail:()=>wS,uppercase:()=>Ph,uuid:()=>ko,uuid4:()=>VN,uuid6:()=>HN,uuid7:()=>ZN,xid:()=>Qm});var Jm=/^[cC][^\s-]{8,}$/,Km=/^[0-9a-z]+$/,Xm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Qm=/^[0-9a-vA-V]{20}$/,Ym=/^[A-Za-z0-9]{27}$/,eh=/^[a-zA-Z0-9_-]{21}$/,th=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,rh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ko=a(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),VN=ko(4),HN=ko(6),ZN=ko(7),nh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,GN=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,WN=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wS=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,JN=wS,KN=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,XN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function oh(){return new RegExp(XN,"u")}a(oh,"emoji");var ih=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ah=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,sh=a(e=>{let t=Ar(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),ch=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,uh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gl=/^[A-Za-z0-9_-]*$/,QN=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,YN=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,dh=/^\+[1-9]\d{6,14}$/,IS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ph=new RegExp(`^${IS}$`);function RS(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}a(RS,"timeSource");function fh(e){return new RegExp(`^${RS(e)}$`)}a(fh,"time");function mh(e){let t=RS({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${n.join("|")})`;return new RegExp(`^${IS}T(?:${o})$`)}a(mh,"datetime");var hh=a(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),gh=/^-?\d+n?$/,yh=/^-?\d+$/,yl=/^-?\d+(?:\.\d+)?$/,_h=/^(?:true|false)$/i,bh=/^null$/i;var vh=/^undefined$/i;var Eh=/^[^A-Z]*$/,Ph=/^[^a-z]*$/,ez=/^[0-9a-fA-F]*$/;function is(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}a(is,"fixedBase64");function as(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}a(as,"fixedBase64url");var tz=/^[0-9a-fA-F]{32}$/,rz=is(22,"=="),nz=as(22),oz=/^[0-9a-fA-F]{40}$/,iz=is(27,"="),az=as(27),sz=/^[0-9a-fA-F]{64}$/,cz=is(43,"="),uz=as(43),lz=/^[0-9a-fA-F]{96}$/,dz=is(64,""),pz=as(64),fz=/^[0-9a-fA-F]{128}$/,mz=is(86,"=="),hz=as(86);var Je=w("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),OS={number:"number",bigint:"bigint",object:"date"},_l=w("$ZodCheckLessThan",(e,t)=>{Je.init(e,t);let n=OS[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bl=w("$ZodCheckGreaterThan",(e,t)=>{Je.init(e,t);let n=OS[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Sh=w("$ZodCheckMultipleOf",(e,t)=>{Je.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Bm(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Th=w("$ZodCheckNumberFormat",(e,t)=>{Je.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=Gm[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=r,u.maximum=i,n&&(u.pattern=yh)}),e._zod.check=s=>{let u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}u<r&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u>i&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),xh=w("$ZodCheckBigIntFormat",(e,t)=>{Je.init(e,t);let[n,o]=Wm[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=r=>{let i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Ah=w("$ZodCheckMaxSize",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Wn(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;r.size<=t.maximum||o.issues.push({origin:rs(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),wh=w("$ZodCheckMinSize",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Wn(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;r.size>=t.minimum||o.issues.push({origin:rs(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ih=w("$ZodCheckSizeEquals",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Wn(r)&&r.size!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=o=>{let r=o.value,i=r.size;if(i===t.size)return;let s=i>t.size;o.issues.push({origin:rs(r),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Rh=w("$ZodCheckMaxLength",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Wn(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;if(r.length<=t.maximum)return;let s=ns(r);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ch=w("$ZodCheckMinLength",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Wn(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;if(r.length>=t.minimum)return;let s=ns(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Oh=w("$ZodCheckLengthEquals",(e,t)=>{var n;Je.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!Wn(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{let r=o.value,i=r.length;if(i===t.length)return;let s=ns(r),u=i>t.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Di=w("$ZodCheckStringFormat",(e,t)=>{var n,o;Je.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),kh=w("$ZodCheckRegex",(e,t)=>{Di.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),$h=w("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Eh),Di.init(e,t)}),Nh=w("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ph),Di.init(e,t)}),zh=w("$ZodCheckIncludes",(e,t)=>{Je.init(e,t);let n=Ar(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Dh=w("$ZodCheckStartsWith",(e,t)=>{Je.init(e,t);let n=new RegExp(`^${Ar(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Uh=w("$ZodCheckEndsWith",(e,t)=>{Je.init(e,t);let n=new RegExp(`.*${Ar(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function CS(e,t,n){e.issues.length&&t.issues.push(...ur(n,e.issues))}a(CS,"handleCheckPropertyResult");var jh=w("$ZodCheckProperty",(e,t)=>{Je.init(e,t),e._zod.check=n=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>CS(r,n,t.property));CS(o,n,t.property)}}),Mh=w("$ZodCheckMimeType",(e,t)=>{Je.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Lh=w("$ZodCheckOverwrite",(e,t)=>{Je.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var ss=class{static{a(this,"Doc")}constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
57
57
  `).filter(s=>s),r=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
58
58
  `))}};var Fh={major:4,minor:3,patch:6};var ge=w("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Fh;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let r of o)for(let i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=a((s,u,d)=>{let p=Xn(s),f;for(let g of u){if(g._zod.def.when){if(!g._zod.def.when(s))continue}else if(p)continue;let y=s.issues.length,h=g._zod.check(s);if(h instanceof Promise&&d?.async===!1)throw new Lr;if(f||h instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await h,s.issues.length!==y&&(p||(p=Xn(s,y)))});else{if(s.issues.length===y)continue;p||(p=Xn(s,y))}}return f?f.then(()=>s):s},"runChecks"),i=a((s,u,d)=>{if(Xn(s))return s.aborted=!0,s;let p=r(u,o,d);if(p instanceof Promise){if(d.async===!1)throw new Lr;return p.then(f=>e._zod.parse(f,d))}return e._zod.parse(p,d)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let p=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(f=>i(f,s,u)):i(p,s,u)}let d=e._zod.parse(s,u);if(d instanceof Promise){if(u.async===!1)throw new Lr;return d.then(p=>r(p,o,u))}return r(d,o,u)}}Te(e,"~standard",()=>({validate:a(r=>{try{let i=$i(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return zi(e,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),xn=w("$ZodString",(e,t)=>{ge.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??hh(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),qe=w("$ZodStringFormat",(e,t)=>{Di.init(e,t),xn.init(e,t)}),xl=w("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rh),qe.init(e,t)}),Al=w("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ko(o))}else t.pattern??(t.pattern=ko());qe.init(e,t)}),wl=w("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=nh),qe.init(e,t)}),cs=w("$ZodURL",(e,t)=>{qe.init(e,t),e._zod.check=n=>{try{let o=n.value.trim(),r=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Il=w("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=oh()),qe.init(e,t)}),Rl=w("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=eh),qe.init(e,t)}),Cl=w("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Jm),qe.init(e,t)}),Ol=w("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Km),qe.init(e,t)}),kl=w("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Xm),qe.init(e,t)}),$l=w("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Qm),qe.init(e,t)}),Nl=w("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ym),qe.init(e,t)}),us=w("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=mh(t)),qe.init(e,t)}),ls=w("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ph),qe.init(e,t)}),ds=w("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=fh(t)),qe.init(e,t)}),ps=w("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=th),qe.init(e,t)}),zl=w("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ih),qe.init(e,t),e._zod.bag.format="ipv4"}),Dl=w("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ah),qe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Ul=w("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=sh(t.delimiter)),qe.init(e,t),e._zod.bag.format="mac"}),jl=w("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ch),qe.init(e,t)}),Ml=w("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=uh),qe.init(e,t),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[r,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function qh(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}a(qh,"isValidBase64");var Ll=w("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=lh),qe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{qh(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function VS(e){if(!gl.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return qh(n)}a(VS,"isValidBase64URL");var Fl=w("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=gl),qe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{VS(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Bl=w("$ZodE164",(e,t)=>{t.pattern??(t.pattern=dh),qe.init(e,t)});function HS(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}a(HS,"isValidJWT");var ql=w("$ZodJWT",(e,t)=>{qe.init(e,t),e._zod.check=n=>{HS(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Vl=w("$ZodCustomStringFormat",(e,t)=>{qe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Ui=w("$ZodNumber",(e,t)=>{ge.init(e,t),e._zod.pattern=e._zod.bag.pattern??yl,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),fs=w("$ZodNumberFormat",(e,t)=>{Th.init(e,t),Ui.init(e,t)}),$o=w("$ZodBoolean",(e,t)=>{ge.init(e,t),e._zod.pattern=_h,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),ji=w("$ZodBigInt",(e,t)=>{ge.init(e,t),e._zod.pattern=gh,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Hl=w("$ZodBigIntFormat",(e,t)=>{xh.init(e,t),ji.init(e,t)}),Zl=w("$ZodSymbol",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Gl=w("$ZodUndefined",(e,t)=>{ge.init(e,t),e._zod.pattern=vh,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Wl=w("$ZodNull",(e,t)=>{ge.init(e,t),e._zod.pattern=bh,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),ms=w("$ZodAny",(e,t)=>{ge.init(e,t),e._zod.parse=n=>n}),hs=w("$ZodUnknown",(e,t)=>{ge.init(e,t),e._zod.parse=n=>n}),Jl=w("$ZodNever",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),gs=w("$ZodVoid",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),ys=w("$ZodDate",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function $S(e,t,n){e.issues.length&&t.issues.push(...ur(n,e.issues)),t.value[n]=e.value}a($S,"handleArrayResult");var _s=w("$ZodArray",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let i=[];for(let s=0;s<r.length;s++){let u=r[s],d=t.element._zod.run({value:u,issues:[]},o);d instanceof Promise?i.push(d.then(p=>$S(p,n,s))):$S(d,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Tl(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...ur(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}a(Tl,"handlePropertyResult");function ZS(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=Zm(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}a(ZS,"normalizeDef");function GS(e,t,n,o,r,i){let s=[],u=r.keySet,d=r.catchall._zod,p=d.def.type,f=d.optout==="optional";for(let g in t){if(u.has(g))continue;if(p==="never"){s.push(g);continue}let y=d.run({value:t[g],issues:[]},o);y instanceof Promise?e.push(y.then(h=>Tl(h,n,g,t,f))):Tl(y,n,g,t,f)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}a(GS,"handleCatchall");var Kl=w("$ZodObject",(e,t)=>{if(ge.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:a(()=>{let d={...u};return Object.defineProperty(t,"shape",{value:d}),d},"get")})}let o=Ai(()=>ZS(t));Te(e._zod,"propValues",()=>{let u=t.shape,d={};for(let p in u){let f=u[p]._zod;if(f.values){d[p]??(d[p]=new Set);for(let g of f.values)d[p].add(g)}}return d});let r=Ro,i=t.catchall,s;e._zod.parse=(u,d)=>{s??(s=o.value);let p=u.value;if(!r(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let f=[],g=s.shape;for(let y of s.keys){let h=g[y],_=h._zod.optout==="optional",P=h._zod.run({value:p[y],issues:[]},d);P instanceof Promise?f.push(P.then(S=>Tl(S,u,y,p,_))):Tl(P,u,y,p,_)}return i?GS(f,p,u,d,o.value,e):f.length?Promise.all(f).then(()=>u):u}}),Vh=w("$ZodObjectJIT",(e,t)=>{Kl.init(e,t);let n=e._zod.parse,o=Ai(()=>ZS(t)),r=a(y=>{let h=new ss(["shape","payload","ctx"]),_=o.value,P=a(V=>{let W=nl(V);return`shape[${W}]._zod.run({ value: input[${W}], issues: [] }, ctx)`},"parseStr");h.write("const input = payload.value;");let S=Object.create(null),T=0;for(let V of _.keys)S[V]=`key_${T++}`;h.write("const newResult = {};");for(let V of _.keys){let W=S[V],H=nl(V),re=y[V]?._zod?.optout==="optional";h.write(`const ${W} = ${P(V)};`),re?h.write(`
@@ -91,7 +91,7 @@ https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};var KE
91
91
 
92
92
  `)}h.write("payload.value = newResult;"),h.write("return payload;");let R=h.compile();return(V,W)=>R(y,V,W)},"generateFastpass"),i,s=Ro,u=!Ka.jitless,p=u&&Vm.value,f=t.catchall,g;e._zod.parse=(y,h)=>{g??(g=o.value);let _=y.value;return s(_)?u&&p&&h?.async===!1&&h.jitless!==!0?(i||(i=r(t.shape)),y=i(y,h),f?GS([],_,y,h,g,e):y):n(y,h):(y.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),y)}});function NS(e,t,n,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!Xn(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>Kt(s,o,at())))}),t)}a(NS,"handleUnionResults");var No=w("$ZodUnion",(e,t)=>{ge.init(e,t),Te(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Te(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Te(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Te(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>es(i.source)).join("|")})$`)}});let n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let s=!1,u=[];for(let d of t.options){let p=d._zod.run({value:r.value,issues:[]},i);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(d=>NS(d,r,e,i)):NS(u,r,e,i)}});function zS(e,t,n,o){let r=e.filter(i=>i.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>Kt(s,o,at())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}a(zS,"handleExclusiveUnionResults");var Xl=w("$ZodXor",(e,t)=>{No.init(e,t),t.inclusive=!1;let n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let s=!1,u=[];for(let d of t.options){let p=d._zod.run({value:r.value,issues:[]},i);p instanceof Promise?(u.push(p),s=!0):u.push(p)}return s?Promise.all(u).then(d=>zS(d,r,e,i)):zS(u,r,e,i)}}),bs=w("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,No.init(e,t);let n=e._zod.parse;Te(e._zod,"propValues",()=>{let r={};for(let i of t.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[u,d]of Object.entries(s)){r[u]||(r[u]=new Set);for(let p of d)r[u].add(p)}}return r});let o=Ai(()=>{let r=t.options,i=new Map;for(let s of r){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let d of u){if(i.has(d))throw new Error(`Duplicate discriminator value "${String(d)}"`);i.set(d,s)}}return i});e._zod.parse=(r,i)=>{let s=r.value;if(!Ro(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),r;let u=o.value.get(s?.[t.discriminator]);return u?u._zod.run(r,i):t.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),r)}}),Ql=w("$ZodIntersection",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),s=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([d,p])=>DS(n,d,p)):DS(n,i,s)}});function Bh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kn(e)&&Kn(t)){let n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(let i of o){let s=Bh(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r[i]=s.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t[o],s=Bh(r,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}a(Bh,"mergeValues");function DS(e,t,n){let o=new Map,r;for(let u of t.issues)if(u.code==="unrecognized_keys"){r??(r=u);for(let d of u.keys)o.has(d)||o.set(d,{}),o.get(d).l=!0}else e.issues.push(u);for(let u of n.issues)if(u.code==="unrecognized_keys")for(let d of u.keys)o.has(d)||o.set(d,{}),o.get(d).r=!0;else e.issues.push(u);let i=[...o].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&r&&e.issues.push({...r,keys:i}),Xn(e))return e;let s=Bh(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}a(DS,"handleIntersectionResults");var vs=w("$ZodTuple",(e,t)=>{ge.init(e,t);let n=t.items;e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],u=[...n].reverse().findIndex(f=>f._zod.optin!=="optional"),d=u===-1?0:n.length-u;if(!t.rest){let f=i.length>n.length,g=i.length<d-1;if(f||g)return o.issues.push({...f?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),o}let p=-1;for(let f of n){if(p++,p>=i.length&&p>=d)continue;let g=f._zod.run({value:i[p],issues:[]},r);g instanceof Promise?s.push(g.then(y=>vl(y,o,p))):vl(g,o,p)}if(t.rest){let f=i.slice(n.length);for(let g of f){p++;let y=t.rest._zod.run({value:g,issues:[]},r);y instanceof Promise?s.push(y.then(h=>vl(h,o,p))):vl(y,o,p)}}return s.length?Promise.all(s).then(()=>o):o}});function vl(e,t,n){e.issues.length&&t.issues.push(...ur(n,e.issues)),t.value[n]=e.value}a(vl,"handleTupleResult");var Es=w("$ZodRecord",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Kn(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let i=[],s=t.keyType._zod.values;if(s){n.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let f=t.valueType._zod.run({value:r[p],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&n.issues.push(...ur(p,g.issues)),n.value[p]=g.value})):(f.issues.length&&n.issues.push(...ur(p,f.issues)),n.value[p]=f.value)}let d;for(let p in r)u.has(p)||(d=d??[],d.push(p));d&&d.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:d})}else{n.value={};for(let u of Reflect.ownKeys(r)){if(u==="__proto__")continue;let d=t.keyType._zod.run({value:u,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&yl.test(u)&&d.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},o);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(d=g)}if(d.issues.length){t.mode==="loose"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>Kt(g,o,at())),input:u,path:[u],inst:e});continue}let f=t.valueType._zod.run({value:r[u],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&n.issues.push(...ur(u,g.issues)),n.value[d.value]=g.value})):(f.issues.length&&n.issues.push(...ur(u,f.issues)),n.value[d.value]=f.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Yl=w("$ZodMap",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let i=[];n.value=new Map;for(let[s,u]of r){let d=t.keyType._zod.run({value:s,issues:[]},o),p=t.valueType._zod.run({value:u,issues:[]},o);d instanceof Promise||p instanceof Promise?i.push(Promise.all([d,p]).then(([f,g])=>{US(f,g,n,s,r,e,o)})):US(d,p,n,s,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function US(e,t,n,o,r,i,s){e.issues.length&&(ts.has(typeof o)?n.issues.push(...ur(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(u=>Kt(u,s,at()))})),t.issues.length&&(ts.has(typeof o)?n.issues.push(...ur(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(u=>Kt(u,s,at()))})),n.value.set(e.value,t.value)}a(US,"handleMapResult");var ed=w("$ZodSet",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of r){let u=t.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(d=>jS(d,n))):jS(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function jS(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}a(jS,"handleSetResult");var Ps=w("$ZodEnum",(e,t)=>{ge.init(e,t);let n=Ya(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>ts.has(typeof r)).map(r=>typeof r=="string"?Ar(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let s=r.value;return o.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),Ss=w("$ZodLiteral",(e,t)=>{if(ge.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Ar(o):o?Ar(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),td=w("$ZodFile",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Ts=w("$ZodTransform",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Gn(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(n.value=s,n));if(r instanceof Promise)throw new Lr;return n.value=r,n}});function MS(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}a(MS,"handleOptionalResult");var Mi=w("$ZodOptional",(e,t)=>{ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Te(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${es(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>MS(i,n.value)):MS(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),rd=w("$ZodExactOptional",(e,t)=>{Mi.init(e,t),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),xs=w("$ZodNullable",(e,t)=>{ge.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${es(n.source)}|null)$`):void 0}),Te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),nd=w("$ZodDefault",(e,t)=>{ge.init(e,t),e._zod.optin="optional",Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>LS(i,t)):LS(r,t)}});function LS(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}a(LS,"handleDefaultResult");var od=w("$ZodPrefault",(e,t)=>{ge.init(e,t),e._zod.optin="optional",Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),id=w("$ZodNonOptional",(e,t)=>{ge.init(e,t),Te(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>FS(i,e)):FS(r,e)}});function FS(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}a(FS,"handleNonOptionalResult");var ad=w("$ZodSuccess",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Gn("ZodSuccess");let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),sd=w("$ZodCatch",(e,t)=>{ge.init(e,t),Te(e._zod,"optin",()=>t.innerType._zod.optin),Te(e._zod,"optout",()=>t.innerType._zod.optout),Te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(s=>Kt(s,o,at()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>Kt(i,o,at()))},input:n.value}),n.issues=[]),n)}}),cd=w("$ZodNaN",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),As=w("$ZodPipe",(e,t)=>{ge.init(e,t),Te(e._zod,"values",()=>t.in._zod.values),Te(e._zod,"optin",()=>t.in._zod.optin),Te(e._zod,"optout",()=>t.out._zod.optout),Te(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(s=>El(s,t.in,o)):El(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>El(i,t.out,o)):El(r,t.out,o)}});function El(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}a(El,"handlePipeResult");var Li=w("$ZodCodec",(e,t)=>{ge.init(e,t),Te(e._zod,"values",()=>t.in._zod.values),Te(e._zod,"optin",()=>t.in._zod.optin),Te(e._zod,"optout",()=>t.out._zod.optout),Te(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(n,o);return i instanceof Promise?i.then(s=>Pl(s,t,o)):Pl(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Pl(s,t,o)):Pl(i,t,o)}}});function Pl(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>Sl(e,i,t.out,n)):Sl(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Sl(e,i,t.in,n)):Sl(e,r,t.in,n)}}a(Pl,"handleCodecAResult");function Sl(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}a(Sl,"handleCodecTxResult");var ud=w("$ZodReadonly",(e,t)=>{ge.init(e,t),Te(e._zod,"propValues",()=>t.innerType._zod.propValues),Te(e._zod,"values",()=>t.innerType._zod.values),Te(e._zod,"optin",()=>t.innerType?._zod?.optin),Te(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(BS):BS(r)}});function BS(e){return e.value=Object.freeze(e.value),e}a(BS,"handleReadonlyResult");var ld=w("$ZodTemplateLiteral",(e,t)=>{ge.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith("^")?1:0,s=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,s))}else if(o===null||Hm.has(typeof o))n.push(Ar(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),dd=w("$ZodFunction",(e,t)=>(ge.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let r=e._def.input?Co(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?Co(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let r=e._def.input?await Oo(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await Oo(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new vs({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),pd=w("$ZodPromise",(e,t)=>{ge.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),fd=w("$ZodLazy",(e,t)=>{ge.init(e,t),Te(e._zod,"innerType",()=>t.getter()),Te(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Te(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Te(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Te(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),ws=w("$ZodCustom",(e,t)=>{Je.init(e,t),ge.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>qS(i,n,o,e));qS(r,n,o,e)}});function qS(e,t,n,o){if(!e){let r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(wi(r))}}a(qS,"handleRefineResult");var Bi={};Jt(Bi,{ar:()=>Hh,az:()=>Zh,be:()=>Gh,bg:()=>Wh,ca:()=>Jh,cs:()=>Kh,da:()=>Xh,de:()=>Qh,en:()=>Is,eo:()=>Yh,es:()=>eg,fa:()=>tg,fi:()=>rg,fr:()=>ng,frCA:()=>og,he:()=>ig,hu:()=>ag,hy:()=>sg,id:()=>cg,is:()=>ug,it:()=>lg,ja:()=>dg,ka:()=>pg,kh:()=>fg,km:()=>Rs,ko:()=>mg,lt:()=>hg,mk:()=>gg,ms:()=>yg,nl:()=>_g,no:()=>bg,ota:()=>vg,pl:()=>Pg,ps:()=>Eg,pt:()=>Sg,ru:()=>Tg,sl:()=>xg,sv:()=>Ag,ta:()=>wg,th:()=>Ig,tr:()=>Rg,ua:()=>Cg,uk:()=>Os,ur:()=>Og,uz:()=>kg,vi:()=>$g,yo:()=>Dg,zhCN:()=>Ng,zhTW:()=>zg});var yz=a(()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${K(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${F(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Hh(){return{localeError:yz()}}a(Hh,"default");var _z=a(()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${u}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${K(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${F(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Zh(){return{localeError:_z()}}a(Zh,"default");function WS(e,t,n,o){let r=Math.abs(e),i=r%10,s=r%100;return s>=11&&s<=19?o:i===1?t:i>=2&&i<=4?n:o}a(WS,"getBelarusianPlural");var bz=a(()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${K(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);if(s){let u=Number(r.maximum),d=WS(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${r.maximum.toString()} ${d}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);if(s){let u=Number(r.minimum),d=WS(u,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${r.minimum.toString()} ${d}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${F(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Gh(){return{localeError:bz()}}a(Gh,"default");var vz=a(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${K(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${F(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Wh(){return{localeError:vz()}}a(Wh,"default");var Ez=a(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${u}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${K(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${F(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",s=t(r.origin);return s?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(r.origin);return s?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Jh(){return{localeError:Ez()}}a(Jh,"default");var Pz=a(()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${u}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${K(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${F(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Kh(){return{localeError:Pz()}}a(Kh,"default");var Sz=a(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${u}`:`Ugyldigt input: forventede ${i}, fik ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${K(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin),u=o[r.origin]??r.origin;return s?`For stor: forventede ${u??"value"} ${s.verb} ${i} ${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin),u=o[r.origin]??r.origin;return s?`For lille: forventede ${u} ${s.verb} ${i} ${r.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${F(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}},"error");function Xh(){return{localeError:Sz()}}a(Xh,"default");var Tz=a(()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${u}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${K(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${F(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Qh(){return{localeError:Tz()}}a(Qh,"default");var xz=a(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${K(r.values[0])}`:`Invalid option: expected one of ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${s.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}},"error");function Is(){return{localeError:xz()}}a(Is,"default");var Az=a(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${u}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${K(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}},"error");function Yh(){return{localeError:Az()}}a(Yh,"default");var wz=a(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${K(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin),u=o[r.origin]??r.origin;return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${r.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin),u=o[r.origin]??r.origin;return s?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${r.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function eg(){return{localeError:wz()}}a(eg,"default");var Iz=a(()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${K(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${F(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${F(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function tg(){return{localeError:Iz()}}a(tg,"default");var Rz=a(()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${u}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${K(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${F(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function rg(){return{localeError:Rz()}}a(rg,"default");var Cz=a(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${u} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${K(r.values[0])} attendu`:`Option invalide : une valeur parmi ${F(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Trop grand : ${r.origin??"valeur"} doit ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Trop petit : ${r.origin} doit ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${F(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function ng(){return{localeError:Cz()}}a(ng,"default");var Oz=a(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${u}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${K(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",s=t(r.origin);return s?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",s=t(r.origin);return s?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${F(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}},"error");function og(){return{localeError:Oz()}}a(og,"default");var kz=a(()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=a(p=>p?e[p]:void 0,"typeEntry"),o=a(p=>{let f=n(p);return f?f.label:p??e.unknown.label},"typeLabel"),r=a(p=>`\u05D4${o(p)}`,"withDefinite"),i=a(p=>(n(p)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),s=a(p=>p?t[p]??null:null,"getSizing"),u={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},d={nan:"NaN"};return p=>{switch(p.code){case"invalid_type":{let f=p.expected,g=d[f??""]??o(f),y=Q(p.input),h=d[y]??e[y]?.label??y;return/^[A-Z]/.test(p.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${p.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(p.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${K(p.values[0])}`;let f=p.values.map(h=>K(h));if(p.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f[0]} \u05D0\u05D5 ${f[1]}`;let g=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${g}`}case"too_big":{let f=s(p.origin),g=r(p.origin??"value");if(p.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.maximum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${p.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",P=p.inclusive?`${p.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${p.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${g} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let y=p.inclusive?"<=":"<",h=i(p.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${g} ${h} ${y}${p.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${g} ${h} ${y}${p.maximum.toString()}`}case"too_small":{let f=s(p.origin),g=r(p.origin??"value");if(p.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${p.minimum.toString()} ${f?.unit??""} ${p.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(p.origin==="number"){let _=p.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${p.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${p.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(p.origin==="array"||p.origin==="set"){let _=p.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(p.minimum===1&&p.inclusive){let S=(p.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let P=p.inclusive?`${p.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${p.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${g} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let y=p.inclusive?">=":">",h=i(p.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${g} ${h} ${y}${p.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${g} ${h} ${y}${p.minimum.toString()}`}case"invalid_format":{let f=p;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let g=u[f.format],y=g?.label??f.format,_=(g?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${y} \u05DC\u05D0 ${_}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${p.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${p.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${p.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${F(p.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(p.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function ig(){return{localeError:kz()}}a(ig,"default");var $z=a(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${K(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function ag(){return{localeError:$z()}}a(ag,"default");function JS(e,t,n){return Math.abs(e)===1?t:n}a(JS,"getArmenianPlural");function Fi(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}a(Fi,"withDefiniteArticle");var Nz=a(()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${K(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);if(s){let u=Number(r.maximum),d=JS(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Fi(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${d}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Fi(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);if(s){let u=Number(r.minimum),d=JS(u,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Fi(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${d}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Fi(r.origin)} \u056C\u056B\u0576\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${F(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Fi(r.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Fi(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function sg(){return{localeError:Nz()}}a(sg,"default");var zz=a(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${K(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}},"error");function cg(){return{localeError:zz()}}a(cg,"default");var Dz=a(()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${K(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${F(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}},"error");function ug(){return{localeError:Dz()}}a(ug,"default");var Uz=a(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${u}`:`Input non valido: atteso ${i}, ricevuto ${u}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${K(r.values[0])}`:`Opzione non valida: atteso uno tra ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${F(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}},"error");function lg(){return{localeError:Uz()}}a(lg,"default");var jz=a(()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${K(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${F(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(r.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(r.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${F(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function dg(){return{localeError:jz()}}a(dg,"default");var Mz=a(()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${K(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${F(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${r.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${F(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function pg(){return{localeError:Mz()}}a(pg,"default");var Lz=a(()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${K(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${F(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function Rs(){return{localeError:Lz()}}a(Rs,"default");function fg(){return Rs()}a(fg,"default");var Fz=a(()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${K(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${F(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),d=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${d} ${i}${s}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${s}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),d=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${d} ${i}${s}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${F(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function mg(){return{localeError:Fz()}}a(mg,"default");var Cs=a(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function KS(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}a(KS,"getUnitTypeFromNumber");var Bz=a(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(r,i,s,u){let d=e[r]??null;return d===null?d:{unit:d.unit[i],verb:d.verb[u][s?"inclusive":"notInclusive"]}}a(t,"getSizing");let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${K(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${F(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,s=t(r.origin,KS(Number(r.maximum)),r.inclusive??!1,"smaller");if(s?.verb)return`${Cs(i??r.origin??"reik\u0161m\u0117")} ${s.verb} ${r.maximum.toString()} ${s.unit??"element\u0173"}`;let u=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Cs(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,s=t(r.origin,KS(Number(r.minimum)),r.inclusive??!1,"bigger");if(s?.verb)return`${Cs(i??r.origin??"reik\u0161m\u0117")} ${s.verb} ${r.minimum.toString()} ${s.unit??"element\u0173"}`;let u=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Cs(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${F(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${Cs(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function hg(){return{localeError:Bz()}}a(hg,"default");var qz=a(()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${K(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${F(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function gg(){return{localeError:qz()}}a(gg,"default");var Vz=a(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${u}`:`Input tidak sah: dijangka ${i}, diterima ${u}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${K(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Terlalu besar: dijangka ${r.origin??"nilai"} ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Terlalu kecil: dijangka ${r.origin} ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${F(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}},"error");function yg(){return{localeError:Vz()}}a(yg,"default");var Hz=a(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${i}, ontving ${u}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${K(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin),u=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return s?`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin),u=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return s?`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}},"error");function _g(){return{localeError:Hz()}}a(_g,"default");var Zz=a(()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${u}`:`Ugyldig input: forventet ${i}, fikk ${u}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${K(r.values[0])}`:`Ugyldig valg: forventet en av ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${F(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}},"error");function bg(){return{localeError:Zz()}}a(bg,"default");var Gz=a(()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${K(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=r;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function vg(){return{localeError:Gz()}}a(vg,"default");var Wz=a(()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${K(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${F(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${F(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function Eg(){return{localeError:Wz()}}a(Eg,"default");var Jz=a(()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${u}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${K(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function Pg(){return{localeError:Jz()}}a(Pg,"default");var Kz=a(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${u}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${K(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${F(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}},"error");function Sg(){return{localeError:Kz()}}a(Sg,"default");function XS(e,t,n,o){let r=Math.abs(e),i=r%10,s=r%100;return s>=11&&s<=19?o:i===1?t:i>=2&&i<=4?n:o}a(XS,"getRussianPlural");var Xz=a(()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${K(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);if(s){let u=Number(r.maximum),d=XS(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.maximum.toString()} ${d}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);if(s){let u=Number(r.minimum),d=XS(u,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.minimum.toString()} ${d}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${F(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function Tg(){return{localeError:Xz()}}a(Tg,"default");var Qz=a(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${u}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${K(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${F(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}},"error");function xg(){return{localeError:Qz()}}a(xg,"default");var Yz=a(()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${u}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${K(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${F(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function Ag(){return{localeError:Yz()}}a(Ag,"default");var eD=a(()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${K(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${F(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${i}${r.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${i}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${F(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function wg(){return{localeError:eD()}}a(wg,"default");var tD=a(()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${K(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(r.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(r.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${F(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Ig(){return{localeError:tD()}}a(Ig,"default");var rD=a(()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${u}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${K(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${F(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Rg(){return{localeError:rD()}}a(Rg,"default");var nD=a(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${K(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${F(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function Os(){return{localeError:nD()}}a(Os,"default");function Cg(){return Os()}a(Cg,"default");var oD=a(()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${K(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${F(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${i}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${F(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Og(){return{localeError:oD()}}a(Og,"default");var iD=a(()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${u}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${K(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${F(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function kg(){return{localeError:iD()}}a(kg,"default");var aD=a(()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${K(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${r.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${s.verb} ${i}${r.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${F(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function $g(){return{localeError:aD()}}a($g,"default");var sD=a(()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${K(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${F(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function Ng(){return{localeError:sD()}}a(Ng,"default");var cD=a(()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${K(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${F(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function zg(){return{localeError:cD()}}a(zg,"default");var uD=a(()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(r){return e[r]??null}a(t,"getSizing");let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,s=Q(r.input),u=o[s]??s;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${K(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${F(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",s=t(r.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${s.verb} ${i}${r.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",s=t(r.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${s.verb} ${i}${r.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${F(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Dg(){return{localeError:uD()}}a(Dg,"default");var QS,hd=Symbol("ZodOutput"),gd=Symbol("ZodInput"),md=class{static{a(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ks(){return new md}a(ks,"registry");(QS=globalThis).__zod_globalRegistry??(QS.__zod_globalRegistry=ks());var Et=globalThis.__zod_globalRegistry;function $s(e,t){return new e({type:"string",...J(t)})}a($s,"_string");function Ns(e,t){return new e({type:"string",coerce:!0,...J(t)})}a(Ns,"_coercedString");function zs(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...J(t)})}a(zs,"_email");function qi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...J(t)})}a(qi,"_guid");function Ds(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...J(t)})}a(Ds,"_uuid");function Us(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(t)})}a(Us,"_uuidv4");function js(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(t)})}a(js,"_uuidv6");function Ms(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(t)})}a(Ms,"_uuidv7");function zo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...J(t)})}a(zo,"_url");function Ls(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...J(t)})}a(Ls,"_emoji");function Fs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(t)})}a(Fs,"_nanoid");function Bs(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...J(t)})}a(Bs,"_cuid");function qs(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(t)})}a(qs,"_cuid2");function Vs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...J(t)})}a(Vs,"_ulid");function Hs(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...J(t)})}a(Hs,"_xid");function Zs(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(t)})}a(Zs,"_ksuid");function Gs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(t)})}a(Gs,"_ipv4");function Ws(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(t)})}a(Ws,"_ipv6");function yd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...J(t)})}a(yd,"_mac");function Js(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(t)})}a(Js,"_cidrv4");function Ks(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(t)})}a(Ks,"_cidrv6");function Xs(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...J(t)})}a(Xs,"_base64");function Qs(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...J(t)})}a(Qs,"_base64url");function Ys(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...J(t)})}a(Ys,"_e164");function ec(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...J(t)})}a(ec,"_jwt");var _d={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function tc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(t)})}a(tc,"_isoDateTime");function rc(e,t){return new e({type:"string",format:"date",check:"string_format",...J(t)})}a(rc,"_isoDate");function nc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...J(t)})}a(nc,"_isoTime");function oc(e,t){return new e({type:"string",format:"duration",check:"string_format",...J(t)})}a(oc,"_isoDuration");function ic(e,t){return new e({type:"number",checks:[],...J(t)})}a(ic,"_number");function ac(e,t){return new e({type:"number",coerce:!0,checks:[],...J(t)})}a(ac,"_coercedNumber");function sc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...J(t)})}a(sc,"_int");function bd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...J(t)})}a(bd,"_float32");function vd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...J(t)})}a(vd,"_float64");function Ed(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...J(t)})}a(Ed,"_int32");function Pd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...J(t)})}a(Pd,"_uint32");function cc(e,t){return new e({type:"boolean",...J(t)})}a(cc,"_boolean");function uc(e,t){return new e({type:"boolean",coerce:!0,...J(t)})}a(uc,"_coercedBoolean");function Sd(e,t){return new e({type:"bigint",...J(t)})}a(Sd,"_bigint");function lc(e,t){return new e({type:"bigint",coerce:!0,...J(t)})}a(lc,"_coercedBigint");function Td(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...J(t)})}a(Td,"_int64");function xd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...J(t)})}a(xd,"_uint64");function Ad(e,t){return new e({type:"symbol",...J(t)})}a(Ad,"_symbol");function wd(e,t){return new e({type:"undefined",...J(t)})}a(wd,"_undefined");function Id(e,t){return new e({type:"null",...J(t)})}a(Id,"_null");function dc(e){return new e({type:"any"})}a(dc,"_any");function pc(e){return new e({type:"unknown"})}a(pc,"_unknown");function Rd(e,t){return new e({type:"never",...J(t)})}a(Rd,"_never");function fc(e,t){return new e({type:"void",...J(t)})}a(fc,"_void");function Cd(e,t){return new e({type:"date",...J(t)})}a(Cd,"_date");function mc(e,t){return new e({type:"date",coerce:!0,...J(t)})}a(mc,"_coercedDate");function Od(e,t){return new e({type:"nan",...J(t)})}a(Od,"_nan");function Fr(e,t){return new _l({check:"less_than",...J(t),value:e,inclusive:!1})}a(Fr,"_lt");function Ft(e,t){return new _l({check:"less_than",...J(t),value:e,inclusive:!0})}a(Ft,"_lte");function Br(e,t){return new bl({check:"greater_than",...J(t),value:e,inclusive:!1})}a(Br,"_gt");function _t(e,t){return new bl({check:"greater_than",...J(t),value:e,inclusive:!0})}a(_t,"_gte");function hc(e){return Br(0,e)}a(hc,"_positive");function gc(e){return Fr(0,e)}a(gc,"_negative");function yc(e){return Ft(0,e)}a(yc,"_nonpositive");function _c(e){return _t(0,e)}a(_c,"_nonnegative");function An(e,t){return new Sh({check:"multiple_of",...J(t),value:e})}a(An,"_multipleOf");function wn(e,t){return new Ah({check:"max_size",...J(t),maximum:e})}a(wn,"_maxSize");function qr(e,t){return new wh({check:"min_size",...J(t),minimum:e})}a(qr,"_minSize");function Qn(e,t){return new Ih({check:"size_equals",...J(t),size:e})}a(Qn,"_size");function Yn(e,t){return new Rh({check:"max_length",...J(t),maximum:e})}a(Yn,"_maxLength");function lt(e,t){return new Ch({check:"min_length",...J(t),minimum:e})}a(lt,"_minLength");function eo(e,t){return new Oh({check:"length_equals",...J(t),length:e})}a(eo,"_length");function Ct(e,t){return new kh({check:"string_format",format:"regex",...J(t),pattern:e})}a(Ct,"_regex");function Do(e){return new $h({check:"string_format",format:"lowercase",...J(e)})}a(Do,"_lowercase");function Uo(e){return new Nh({check:"string_format",format:"uppercase",...J(e)})}a(Uo,"_uppercase");function jo(e,t){return new zh({check:"string_format",format:"includes",...J(t),includes:e})}a(jo,"_includes");function Mo(e,t){return new Dh({check:"string_format",format:"starts_with",...J(t),prefix:e})}a(Mo,"_startsWith");function Lo(e,t){return new Uh({check:"string_format",format:"ends_with",...J(t),suffix:e})}a(Lo,"_endsWith");function bc(e,t,n){return new jh({check:"property",property:e,schema:t,...J(n)})}a(bc,"_property");function Fo(e,t){return new Mh({check:"mime_type",mime:e,...J(t)})}a(Fo,"_mime");function wr(e){return new Lh({check:"overwrite",tx:e})}a(wr,"_overwrite");function Bo(e){return wr(t=>t.normalize(e))}a(Bo,"_normalize");function qo(){return wr(e=>e.trim())}a(qo,"_trim");function Vo(){return wr(e=>e.toLowerCase())}a(Vo,"_toLowerCase");function Ho(){return wr(e=>e.toUpperCase())}a(Ho,"_toUpperCase");function Vi(){return wr(e=>qm(e))}a(Vi,"_slugify");function Ug(e,t,n){return new e({type:"array",element:t,...J(n)})}a(Ug,"_array");function dD(e,t,n){return new e({type:"union",options:t,...J(n)})}a(dD,"_union");function pD(e,t,n){return new e({type:"union",options:t,inclusive:!1,...J(n)})}a(pD,"_xor");function fD(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...J(o)})}a(fD,"_discriminatedUnion");function mD(e,t,n){return new e({type:"intersection",left:t,right:n})}a(mD,"_intersection");function hD(e,t,n,o){let r=n instanceof ge,i=r?o:n,s=r?n:null;return new e({type:"tuple",items:t,rest:s,...J(i)})}a(hD,"_tuple");function gD(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...J(o)})}a(gD,"_record");function yD(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...J(o)})}a(yD,"_map");function _D(e,t,n){return new e({type:"set",valueType:t,...J(n)})}a(_D,"_set");function bD(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...J(n)})}a(bD,"_enum");function vD(e,t,n){return new e({type:"enum",entries:t,...J(n)})}a(vD,"_nativeEnum");function ED(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...J(n)})}a(ED,"_literal");function kd(e,t){return new e({type:"file",...J(t)})}a(kd,"_file");function PD(e,t){return new e({type:"transform",transform:t})}a(PD,"_transform");function SD(e,t){return new e({type:"optional",innerType:t})}a(SD,"_optional");function TD(e,t){return new e({type:"nullable",innerType:t})}a(TD,"_nullable");function xD(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():il(n)}})}a(xD,"_default");function AD(e,t,n){return new e({type:"nonoptional",innerType:t,...J(n)})}a(AD,"_nonoptional");function wD(e,t){return new e({type:"success",innerType:t})}a(wD,"_success");function ID(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}a(ID,"_catch");function RD(e,t,n){return new e({type:"pipe",in:t,out:n})}a(RD,"_pipe");function CD(e,t){return new e({type:"readonly",innerType:t})}a(CD,"_readonly");function OD(e,t,n){return new e({type:"template_literal",parts:t,...J(n)})}a(OD,"_templateLiteral");function kD(e,t){return new e({type:"lazy",getter:t})}a(kD,"_lazy");function $D(e,t){return new e({type:"promise",innerType:t})}a($D,"_promise");function vc(e,t,n){let o=J(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}a(vc,"_custom");function Ec(e,t,n){return new e({type:"custom",check:"custom",fn:t,...J(n)})}a(Ec,"_refine");function $d(e){let t=YS(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(wi(o,n.value,t._zod.def));else{let r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(wi(r))}},e(n.value,n)));return t}a($d,"_superRefine");function YS(e,t){let n=new Je({check:"custom",...J(t)});return n._zod.check=e,n}a(YS,"_check");function Nd(e){let t=new Je({check:"describe"});return t._zod.onattach=[n=>{let o=Et.get(n)??{};Et.add(n,{...o,description:e})}],t._zod.check=()=>{},t}a(Nd,"describe");function zd(e){let t=new Je({check:"meta"});return t._zod.onattach=[n=>{let o=Et.get(n)??{};Et.add(n,{...o,...e})}],t._zod.check=()=>{},t}a(zd,"meta");function Dd(e,t){let n=J(t),o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(h=>typeof h=="string"?h.toLowerCase():h),r=r.map(h=>typeof h=="string"?h.toLowerCase():h));let i=new Set(o),s=new Set(r),u=e.Codec??Li,d=e.Boolean??$o,p=e.String??xn,f=new p({type:"string",error:n.error}),g=new d({type:"boolean",error:n.error}),y=new u({type:"pipe",in:f,out:g,transform:a(((h,_)=>{let P=h;return n.case!=="sensitive"&&(P=P.toLowerCase()),i.has(P)?!0:s.has(P)?!1:(_.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:_.value,inst:y,continue:!1}),{})}),"transform"),reverseTransform:a(((h,_)=>h===!0?o[0]||"true":r[0]||"false"),"reverseTransform"),error:n.error});return y}a(Dd,"_stringbool");function Zo(e,t,n,o={}){let r=J(o),i={...J(o),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:u=>n.test(u),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}a(Zo,"_stringFormat");function to(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Et,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}a(to,"initializeContext");function Ve(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);let u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{let f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,f);else{let y=s.schema,h=t.processors[r.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);h(e,t,y,f)}let g=e._zod.parent;g&&(s.ref||(s.ref=g),Ve(g,t,f),t.seen.get(g).isParent=!0)}let d=t.metadataRegistry.get(e);return d&&Object.assign(s.schema,d),t.io==="input"&&Bt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}a(Ve,"process");function ro(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let u=e.metadataRegistry.get(s[0])?.id;if(u){let d=o.get(u);if(d&&d!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(u,s[0])}}let r=a(s=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let g=e.external.registry.get(s[0])?.id,y=e.external.uri??(_=>_);if(g)return{ref:y(g)};let h=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=h,{defId:h,ref:`${y("__shared")}#/${u}/${h}`}}if(s[1]===n)return{ref:"#"};let p=`#/${u}/`,f=s[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:p+f}},"makeURI"),i=a(s=>{if(s[1].schema.$ref)return;let u=s[1],{ref:d,defId:p}=r(s);u.def={...u.schema},p&&(u.defId=p);let f=u.schema;for(let g in f)delete f[g];f.$ref=d},"extractToDef");if(e.cycles==="throw")for(let s of e.seen.entries()){let u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
93
93
 
94
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let u=s[1];if(t===s[0]){i(s);continue}if(e.external){let p=e.external.registry.get(s[0])?.id;if(t!==s[0]&&p){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&e.reused==="ref"){i(s);continue}}}a(ro,"extractDefs");function no(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a(s=>{let u=e.seen.get(s);if(u.ref===null)return;let d=u.def??u.schema,p={...d},f=u.ref;if(u.ref=null,f){o(f);let y=e.seen.get(f),h=y.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(h)):Object.assign(d,h),Object.assign(d,p),s._zod.parent===f)for(let P in d)P==="$ref"||P==="allOf"||P in p||delete d[P];if(h.$ref&&y.def)for(let P in d)P==="$ref"||P==="allOf"||P in y.def&&JSON.stringify(d[P])===JSON.stringify(y.def[P])&&delete d[P]}let g=s._zod.parent;if(g&&g!==f){o(g);let y=e.seen.get(g);if(y?.schema.$ref&&(d.$ref=y.schema.$ref,y.def))for(let h in d)h==="$ref"||h==="allOf"||h in y.def&&JSON.stringify(d[h])===JSON.stringify(y.def[h])&&delete d[h]}e.override({zodSchema:s,jsonSchema:d,path:u.path??[]})},"flattenRef");for(let s of[...e.seen.entries()].reverse())o(s[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let i=e.external?.defs??{};for(let s of e.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Hi(t,"input",e.processors),output:Hi(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(no,"finalize");function Bt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Bt(o.element,n);if(o.type==="set")return Bt(o.valueType,n);if(o.type==="lazy")return Bt(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Bt(o.innerType,n);if(o.type==="intersection")return Bt(o.left,n)||Bt(o.right,n);if(o.type==="record"||o.type==="map")return Bt(o.keyType,n)||Bt(o.valueType,n);if(o.type==="pipe")return Bt(o.in,n)||Bt(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Bt(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Bt(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Bt(r,n))return!0;return!!(o.rest&&Bt(o.rest,n))}return!1}a(Bt,"isTransforming");var jg=a((e,t={})=>n=>{let o=to({...n,processors:t});return Ve(e,o),ro(o,e),no(o,e)},"createToJSONSchemaMethod"),Hi=a((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},s=to({...r??{},target:i,io:t,processors:n});return Ve(e,s),ro(s,e),no(s,e)},"createStandardJSONSchemaMethod");var ND={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Mg=a((e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:s,format:u,patterns:d,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof s=="number"&&(r.maxLength=s),u&&(r.format=ND[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),p&&(r.contentEncoding=p),d&&d.size>0){let f=[...d];f.length===1?r.pattern=f[0].source:f.length>1&&(r.allOf=[...f.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},"stringProcessor"),Lg=a((e,t,n,o)=>{let r=n,{minimum:i,maximum:s,format:u,multipleOf:d,exclusiveMaximum:p,exclusiveMinimum:f}=e._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=f,r.exclusiveMinimum=!0):r.exclusiveMinimum=f),typeof i=="number"&&(r.minimum=i,typeof f=="number"&&t.target!=="draft-04"&&(f>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=p,r.exclusiveMaximum=!0):r.exclusiveMaximum=p),typeof s=="number"&&(r.maximum=s,typeof p=="number"&&t.target!=="draft-04"&&(p<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof d=="number"&&(r.multipleOf=d)},"numberProcessor"),Fg=a((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),Bg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),qg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Vg=a((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Hg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Zg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Gg=a((e,t,n,o)=>{n.not={}},"neverProcessor"),Wg=a((e,t,n,o)=>{},"anyProcessor"),Jg=a((e,t,n,o)=>{},"unknownProcessor"),Kg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Xg=a((e,t,n,o)=>{let r=e._zod.def,i=Ya(r.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),Qg=a((e,t,n,o)=>{let r=e._zod.def,i=[];for(let s of r.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},"literalProcessor"),Yg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),ey=a((e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),ty=a((e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:d}=e._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),d?d.length===1?(i.contentMediaType=d[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=d.map(p=>({contentMediaType:p}))):Object.assign(r,i)},"fileProcessor"),ry=a((e,t,n,o)=>{n.type="boolean"},"successProcessor"),ny=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),oy=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),iy=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),ay=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),sy=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),cy=a((e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof u=="number"&&(r.maxItems=u),r.type="array",r.items=Ve(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),uy=a((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object",r.properties={};let s=i.shape;for(let p in s)r.properties[p]=Ve(s[p],t,{...o,path:[...o.path,"properties",p]});let u=new Set(Object.keys(s)),d=new Set([...u].filter(p=>{let f=i.shape[p]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));d.size>0&&(r.required=Array.from(d)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=Ve(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),jd=a((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,s=r.options.map((u,d)=>Ve(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",d]}));i?n.oneOf=s:n.anyOf=s},"unionProcessor"),ly=a((e,t,n,o)=>{let r=e._zod.def,i=Ve(r.left,t,{...o,path:[...o.path,"allOf",0]}),s=Ve(r.right,t,{...o,path:[...o.path,"allOf",1]}),u=a(p=>"allOf"in p&&Object.keys(p).length===1,"isSimpleIntersection"),d=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];n.allOf=d},"intersectionProcessor"),dy=a((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",d=i.items.map((y,h)=>Ve(y,t,{...o,path:[...o.path,s,h]})),p=i.rest?Ve(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=d,p&&(r.items=p)):t.target==="openapi-3.0"?(r.items={anyOf:d},p&&r.items.anyOf.push(p),r.minItems=d.length,p||(r.maxItems=d.length)):(r.items=d,p&&(r.additionalItems=p));let{minimum:f,maximum:g}=e._zod.bag;typeof f=="number"&&(r.minItems=f),typeof g=="number"&&(r.maxItems=g)},"tupleProcessor"),py=a((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let s=i.keyType,d=s._zod.bag?.patterns;if(i.mode==="loose"&&d&&d.size>0){let f=Ve(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let g of d)r.patternProperties[g.source]=f}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Ve(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=Ve(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let p=s._zod.values;if(p){let f=[...p].filter(g=>typeof g=="string"||typeof g=="number");f.length>0&&(r.required=f)}},"recordProcessor"),fy=a((e,t,n,o)=>{let r=e._zod.def,i=Ve(r.innerType,t,o),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},"nullableProcessor"),my=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),hy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),gy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),yy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},"catchProcessor"),_y=a((e,t,n,o)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;Ve(i,t,o);let s=t.seen.get(e);s.ref=i},"pipeProcessor"),by=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),vy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),Md=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),Ey=a((e,t,n,o)=>{let r=e._zod.innerType;Ve(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Ud={string:Mg,number:Lg,boolean:Fg,bigint:Bg,symbol:qg,null:Vg,undefined:Hg,void:Zg,never:Gg,any:Wg,unknown:Jg,date:Kg,enum:Xg,literal:Qg,nan:Yg,template_literal:ey,file:ty,success:ry,custom:ny,function:oy,transform:iy,map:ay,set:sy,array:cy,object:uy,union:jd,intersection:ly,tuple:dy,record:py,nullable:fy,nonoptional:my,default:hy,prefault:gy,catch:yy,pipe:_y,readonly:by,promise:vy,optional:Md,lazy:Ey};function Pc(e,t){if("_idmap"in e){let o=e,r=to({...t,processors:Ud}),i={};for(let d of o._idmap.entries()){let[p,f]=d;Ve(f,r)}let s={},u={registry:o,uri:t?.uri,defs:i};r.external=u;for(let d of o._idmap.entries()){let[p,f]=d;ro(r,f),s[p]=no(r,f)}if(Object.keys(i).length>0){let d=r.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[d]:i}}return{schemas:s}}let n=to({...t,processors:Ud});return Ve(e,n),ro(n,e),no(n,e)}a(Pc,"toJSONSchema");var Ld=class{static{a(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=to({processors:Ud,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Ve(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),ro(this.ctx,t);let o=no(this.ctx,t),{"~standard":r,...i}=o;return i}};var eT={};var dt=w("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");ge.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>Co(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>$i(e,n,o),e.parseAsync=async(n,o)=>Oo(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>zi(e,n,o),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(n,o)=>vt(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Fd=w("ZodMiniString",(e,t)=>{xn.init(e,t),dt.init(e,t)});function b(e){return $s(Fd,e)}a(b,"string");var Zi=w("ZodMiniStringFormat",(e,t)=>{qe.init(e,t),Fd.init(e,t)});var UD=w("ZodMiniURL",(e,t)=>{cs.init(e,t),Zi.init(e,t)});function tT(e){return zo(UD,e)}a(tT,"url");var Bd=w("ZodMiniNumber",(e,t)=>{Ui.init(e,t),dt.init(e,t)});function Pt(e){return ic(Bd,e)}a(Pt,"number");var jD=w("ZodMiniNumberFormat",(e,t)=>{fs.init(e,t),Bd.init(e,t)});function rT(e){return sc(jD,e)}a(rT,"int");var Py=w("ZodMiniBoolean",(e,t)=>{$o.init(e,t),dt.init(e,t)});function ze(e){return cc(Py,e)}a(ze,"boolean");var nT=w("ZodMiniBigInt",(e,t)=>{ji.init(e,t),dt.init(e,t)});var MD=w("ZodMiniAny",(e,t)=>{ms.init(e,t),dt.init(e,t)});function Sc(){return dc(MD)}a(Sc,"any");var LD=w("ZodMiniUnknown",(e,t)=>{hs.init(e,t),dt.init(e,t)});function be(){return pc(LD)}a(be,"unknown");var FD=w("ZodMiniVoid",(e,t)=>{gs.init(e,t),dt.init(e,t)});function oT(e){return fc(FD,e)}a(oT,"_void");var iT=w("ZodMiniDate",(e,t)=>{ys.init(e,t),dt.init(e,t)});var BD=w("ZodMiniArray",(e,t)=>{_s.init(e,t),dt.init(e,t)});function he(e,t){return new BD({type:"array",element:e,...J(t)})}a(he,"array");var qD=w("ZodMiniObject",(e,t)=>{Kl.init(e,t),dt.init(e,t),Te(e,"shape",()=>t.shape)});function k(e,t){let n={type:"object",shape:e??{},...J(t)};return new qD(n)}a(k,"object");var VD=w("ZodMiniUnion",(e,t)=>{No.init(e,t),dt.init(e,t)});function xe(e,t){return new VD({type:"union",options:e,...J(t)})}a(xe,"union");var HD=w("ZodMiniDiscriminatedUnion",(e,t)=>{bs.init(e,t),dt.init(e,t)});function oo(e,t,n){return new HD({type:"union",options:t,discriminator:e,...J(n)})}a(oo,"discriminatedUnion");var ZD=w("ZodMiniRecord",(e,t)=>{Es.init(e,t),dt.init(e,t)});function ve(e,t,n){return new ZD({type:"record",keyType:e,valueType:t,...J(n)})}a(ve,"record");var GD=w("ZodMiniEnum",(e,t)=>{Ps.init(e,t),dt.init(e,t),e.options=Object.values(t.entries)});function fe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new GD({type:"enum",entries:n,...J(t)})}a(fe,"_enum");var WD=w("ZodMiniLiteral",(e,t)=>{Ss.init(e,t),dt.init(e,t)});function de(e,t){return new WD({type:"literal",values:Array.isArray(e)?e:[e],...J(t)})}a(de,"literal");var JD=w("ZodMiniTransform",(e,t)=>{Ts.init(e,t),dt.init(e,t)});function io(e){return new JD({type:"transform",transform:e})}a(io,"transform");var KD=w("ZodMiniOptional",(e,t)=>{Mi.init(e,t),dt.init(e,t)});function L(e){return new KD({type:"optional",innerType:e})}a(L,"optional");var XD=w("ZodMiniNullable",(e,t)=>{xs.init(e,t),dt.init(e,t)});function Tc(e){return new XD({type:"nullable",innerType:e})}a(Tc,"nullable");var QD=w("ZodMiniPipe",(e,t)=>{As.init(e,t),dt.init(e,t)});function ao(e,t){return new QD({type:"pipe",in:e,out:t})}a(ao,"pipe");var aT=w("ZodMiniCustom",(e,t)=>{ws.init(e,t),dt.init(e,t)});function qd(e,t){return vc(aT,e??(()=>!0),t)}a(qd,"custom");function Sy(e,t={}){return Ec(aT,e,t)}a(Sy,"refine");var Vd={};Jt(Vd,{ZodMiniISODate:()=>xy,ZodMiniISODateTime:()=>Ty,ZodMiniISODuration:()=>wy,ZodMiniISOTime:()=>Ay,date:()=>eU,datetime:()=>YD,duration:()=>rU,time:()=>tU});var Ty=w("ZodMiniISODateTime",(e,t)=>{us.init(e,t),Zi.init(e,t)});function YD(e){return tc(Ty,e)}a(YD,"datetime");var xy=w("ZodMiniISODate",(e,t)=>{ls.init(e,t),Zi.init(e,t)});function eU(e){return rc(xy,e)}a(eU,"date");var Ay=w("ZodMiniISOTime",(e,t)=>{ds.init(e,t),Zi.init(e,t)});function tU(e){return nc(Ay,e)}a(tU,"time");var wy=w("ZodMiniISODuration",(e,t)=>{ps.init(e,t),Zi.init(e,t)});function rU(e){return oc(wy,e)}a(rU,"duration");var xc={};Jt(xc,{bigint:()=>aU,boolean:()=>iU,date:()=>sU,number:()=>oU,string:()=>nU});function nU(e){return Ns(Fd,e)}a(nU,"string");function oU(e){return ac(Bd,e)}a(oU,"number");function iU(e){return uc(Py,e)}a(iU,"boolean");function aU(e){return lc(nT,e)}a(aU,"bigint");function sU(e){return mc(iT,e)}a(sU,"date");var Ry=k({retryOnFailure:k({defaultValue:L(ze()),hide:L(ze())}),continueOnFailure:k({defaultValue:L(ze()),hide:L(ze())})}),Iy=class{constructor(t,n,o,r,i,s,u,d,p,f,g,y,h){this.name=t;this.displayName=n;this.description=o;this.props=r;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=d;this.errorHandlingOptions=p;this.outputSchema=f;this.audience=g;this.aiMetadata=y;this.classification=h}static{a(this,"IAction")}},pt=a(e=>new Iy(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ke=k({displayName:b(),description:L(b()),advanced:L(ze()),width:L(fe(["half","full"])),icon:L(b()),placeholder:L(b())}),Ee=a((e,t)=>k({type:de(t),required:ze(),defaultValue:L(Sc())}),"TPropertyValue");var dr=k({...ke.shape,...Ee(b(),"SHORT_TEXT").shape}),In=k({...ke.shape,...Ee(b(),"LONG_TEXT").shape});var cT=k({label:b(),value:be(),description:L(b()),icon:L(b())}),Hd=k({disabled:L(ze()),placeholder:L(b()),options:he(cT)});var uU=fe(["cards"]),pr=k({...ke.shape,options:Hd,display:L(uU),...Ee(be(),"STATIC_DROPDOWN").shape}),Rn=k({...ke.shape,options:Hd,...Ee(he(be()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Cy=k({...ke.shape,...Ee(be(),"DROPDOWN").shape,refreshers:he(b())}),Ac=k({...ke.shape,...Ee(he(be()),"MULTI_SELECT_DROPDOWN").shape,refreshers:he(b())});var Cn=k({...ke.shape,reveals:L(he(b())),...Ee(ze(),"CHECKBOX").shape});var On=k({...ke.shape,display:L(fe(["stepper"])),min:L(Pt()),max:L(Pt()),step:L(Pt()),...Ee(Pt(),"NUMBER").shape});var wc=k({...ke.shape,streaming:L(ze()),...Ee(be(),"FILE").shape});var Ic=k({...ke.shape,...Ee(b(),"DATE_TIME").shape});var uT=ve(b(),xe([dr,In,pr,Ac,Rn,Cn,On,wc,Ic])),Rc=k({...ke.shape,properties:uT,...Ee(he(be()),"ARRAY").shape});var lT=fe(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),dT=k({preset:L(lT),after:L(b()),before:L(b())}),Oy=k({...ke.shape,display:L(fe(["dropdown"])),...Ee(dT,"DATE_RANGE").shape});var Cc=k({...ke.shape,...Ee(xe([ve(b(),be())]),"JSON").shape});var pT=xe([dr,pr,Cc,Rc,Rn]),lU=ve(b(),pT),ky=k({refreshers:he(b()),...ke.shape,...Ee(be(),"DYNAMIC").shape});var Zd=k({...ke.shape,...Ee(oT(),"MARKDOWN").shape});var Oc=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(Oc||{}),Gi=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Gi||{}),Wi=(T=>(T.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",T.COMMUNICATION="COMMUNICATION",T.COMMERCE="COMMERCE",T.CORE="CORE",T.UNIVERSAL_AI="UNIVERSAL_AI",T.FLOW_CONTROL="FLOW_CONTROL",T.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",T.ACCOUNTING="ACCOUNTING",T.PRODUCTIVITY="PRODUCTIVITY",T.CONTENT_AND_FILES="CONTENT_AND_FILES",T.DEVELOPER_TOOLS="DEVELOPER_TOOLS",T.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",T.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",T.HUMAN_RESOURCES="HUMAN_RESOURCES",T.PAYMENT_PROCESSING="PAYMENT_PROCESSING",T.MARKETING="MARKETING",T.SALES_AND_CRM="SALES_AND_CRM",T))(Wi||{});var kc=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(kc||{}),$y="both_client_credentials_and_authorization_code";var Vr=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(Vr||{}),$c=(i=>(i.NONE="NONE",i.HEADER_PRESENT="HEADER_PRESENT",i.QUERY_PRESENT="QUERY_PRESENT",i.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",i.HEAD_REQUEST="HEAD_REQUEST",i))($c||{}),dU=k({strategy:fe($c),paramName:L(b())}),Nc=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(Nc||{});var Gd=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(Gd||{}),fT=k({status:L(Pt()),body:L(be()),headers:L(ve(b(),b()))}),mT=k({type:de("DELAY"),resumeDateTime:b(),requestIdToReply:L(b()),handlerId:L(b()),streamStepProgress:L(fe(Gd))}),hT=k({type:de("WEBHOOK"),requestId:b(),requestIdToReply:L(b()),response:fT,handlerId:L(b()),streamStepProgress:L(fe(Gd))}),pU=xe([mT,hT]);var fU=k({body:be(),rawBody:L(be()),headers:ve(b(),b()),queryParams:ve(b(),b())});function st(e){return e==null}a(st,"isNil");function zc(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}a(zc,"isEmpty");function Wd(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}a(Wd,"assertNotNullOrUndefined");function zy(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}a(zy,"tryCatchSync");var Dy=Rt(require("crypto"),1);var mU=128,so,Ji,hU=a(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!so||so.length<e?(so=Buffer.allocUnsafe(e*mU),Dy.default.randomFillSync(so),Ji=0):Ji+e>so.length&&(Dy.default.randomFillSync(so),Ji=0)}catch(t){throw so=void 0,t}Ji+=e},"fillPool"),gU=a(e=>(hU(e|=0),so.subarray(Ji-e,Ji)),"random"),yU=a((e,t,n)=>{let o=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*o*t/e.length);return(i=t)=>{if(i<=0)return"";let s="";for(;;){let u=n(r),d=r;for(;d--;)if(s+=e[u[d]&o]||"",s.length===i)return s}}},"customRandom"),gT=a((e,t=21)=>yU(e,t,gU),"customAlphabet");var _U="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",yT=21,eW=b().check(Ct(new RegExp(`^[0-9a-zA-Z]{${yT}}$`))),bU=gT(_U,yT);var co=ao(io(e=>e instanceof Date?e.toISOString():e),b()),Ir={id:b(),created:co,updated:co},ct=a(e=>L(Tc(e)),"Nullable");function Uy(e){return L(Tc(fe(e)))}a(Uy,"NullableEnum");var nW=ao(io(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),L(ze())),oW=L(Vd.datetime({offset:!0}).check(Sy(e=>e.slice(0,4)!=="0000"))),Jd=a(e=>ao(io(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),L(he(e))),"OptionalArrayFromQuery");var sW=ve(b(),be());var uo=(T=>(T.OPENAI="openai",T.OPENROUTER="openrouter",T.ANTHROPIC="anthropic",T.AZURE="azure",T.GOOGLE="google",T.ACTIVEPIECES="activepieces",T.CLOUDFLARE_GATEWAY="cloudflare-gateway",T.CUSTOM="custom",T.BEDROCK="bedrock",T.VERTEX="vertex",T.MISTRAL="mistral",T.XAI="xai",T.DEEPSEEK="deepseek",T.ZAI="zai",T.QWEN="qwen",T.MINIMAX="minimax",T.MOONSHOT="moonshot",T))(uo||{});var te={};Jt(te,{$brand:()=>Xa,$input:()=>gd,$output:()=>hd,NEVER:()=>rl,TimePrecision:()=>_d,ZodAny:()=>s_,ZodArray:()=>d_,ZodBase64:()=>gp,ZodBase64URL:()=>yp,ZodBigInt:()=>ra,ZodBigIntFormat:()=>vp,ZodBoolean:()=>ta,ZodCIDRv4:()=>mp,ZodCIDRv6:()=>hp,ZodCUID:()=>sp,ZodCUID2:()=>cp,ZodCatch:()=>$_,ZodCodec:()=>Ip,ZodCustom:()=>Gc,ZodCustomStringFormat:()=>Yi,ZodDate:()=>Bc,ZodDefault:()=>w_,ZodDiscriminatedUnion:()=>f_,ZodE164:()=>_p,ZodEmail:()=>op,ZodEmoji:()=>ip,ZodEnum:()=>Xi,ZodError:()=>vU,ZodExactOptional:()=>T_,ZodFile:()=>P_,ZodFirstPartyTypeKind:()=>H_,ZodFunction:()=>B_,ZodGUID:()=>Uc,ZodIPv4:()=>pp,ZodIPv6:()=>fp,ZodISODate:()=>Qd,ZodISODateTime:()=>Xd,ZodISODuration:()=>ep,ZodISOTime:()=>Yd,ZodIntersection:()=>m_,ZodIssueCode:()=>PU,ZodJWT:()=>bp,ZodKSUID:()=>dp,ZodLazy:()=>M_,ZodLiteral:()=>E_,ZodMAC:()=>e_,ZodMap:()=>b_,ZodNaN:()=>z_,ZodNanoID:()=>ap,ZodNever:()=>u_,ZodNonOptional:()=>Ap,ZodNull:()=>i_,ZodNullable:()=>A_,ZodNumber:()=>ea,ZodNumberFormat:()=>Wo,ZodObject:()=>Vc,ZodOptional:()=>xp,ZodPipe:()=>wp,ZodPrefault:()=>R_,ZodPromise:()=>F_,ZodReadonly:()=>D_,ZodRealError:()=>Yt,ZodRecord:()=>Zc,ZodSet:()=>v_,ZodString:()=>Qi,ZodStringFormat:()=>Ke,ZodSuccess:()=>k_,ZodSymbol:()=>n_,ZodTemplateLiteral:()=>j_,ZodTransform:()=>S_,ZodTuple:()=>g_,ZodType:()=>Ae,ZodULID:()=>up,ZodURL:()=>Fc,ZodUUID:()=>nn,ZodUndefined:()=>o_,ZodUnion:()=>Hc,ZodUnknown:()=>c_,ZodVoid:()=>l_,ZodXID:()=>lp,ZodXor:()=>p_,_ZodString:()=>np,_default:()=>I_,_function:()=>Tx,any:()=>rx,array:()=>qc,base64:()=>MT,base64url:()=>LT,bigint:()=>XT,boolean:()=>r_,catch:()=>N_,check:()=>xx,cidrv4:()=>UT,cidrv6:()=>jT,clone:()=>vt,codec:()=>Ex,coerce:()=>Z_,config:()=>at,core:()=>lr,cuid:()=>RT,cuid2:()=>CT,custom:()=>Ax,date:()=>ox,decode:()=>Gy,decodeAsync:()=>Jy,describe:()=>wx,discriminatedUnion:()=>lx,e164:()=>FT,email:()=>bT,emoji:()=>wT,encode:()=>Zy,encodeAsync:()=>Wy,endsWith:()=>Lo,enum:()=>Sp,exactOptional:()=>x_,file:()=>yx,flattenError:()=>Ii,float32:()=>GT,float64:()=>WT,formatError:()=>Ri,fromJSONSchema:()=>Nx,function:()=>Tx,getErrorMap:()=>TU,globalRegistry:()=>Et,gt:()=>Br,gte:()=>_t,guid:()=>vT,hash:()=>ZT,hex:()=>HT,hostname:()=>VT,httpUrl:()=>AT,includes:()=>jo,instanceof:()=>Rx,int:()=>rp,int32:()=>JT,int64:()=>QT,intersection:()=>h_,ipv4:()=>NT,ipv6:()=>DT,iso:()=>Ki,json:()=>Ox,jwt:()=>BT,keyof:()=>ix,ksuid:()=>$T,lazy:()=>L_,length:()=>eo,literal:()=>gx,locales:()=>Bi,looseObject:()=>cx,looseRecord:()=>px,lowercase:()=>Do,lt:()=>Fr,lte:()=>Ft,mac:()=>zT,map:()=>fx,maxLength:()=>Yn,maxSize:()=>wn,meta:()=>Ix,mime:()=>Fo,minLength:()=>lt,minSize:()=>qr,multipleOf:()=>An,nan:()=>vx,nanoid:()=>IT,nativeEnum:()=>hx,negative:()=>gc,never:()=>Ep,nonnegative:()=>_c,nonoptional:()=>O_,nonpositive:()=>yc,normalize:()=>Bo,null:()=>a_,nullable:()=>Mc,nullish:()=>_x,number:()=>t_,object:()=>ax,optional:()=>jc,overwrite:()=>wr,parse:()=>By,parseAsync:()=>qy,partialRecord:()=>dx,pipe:()=>Lc,positive:()=>hc,prefault:()=>C_,preprocess:()=>kx,prettifyError:()=>sl,promise:()=>Sx,property:()=>bc,readonly:()=>U_,record:()=>__,refine:()=>q_,regex:()=>Ct,regexes:()=>Qt,registry:()=>ks,safeDecode:()=>Xy,safeDecodeAsync:()=>Yy,safeEncode:()=>Ky,safeEncodeAsync:()=>Qy,safeParse:()=>Vy,safeParseAsync:()=>Hy,set:()=>mx,setErrorMap:()=>SU,size:()=>Qn,slugify:()=>Vi,startsWith:()=>Mo,strictObject:()=>sx,string:()=>tp,stringFormat:()=>qT,stringbool:()=>Cx,success:()=>bx,superRefine:()=>V_,symbol:()=>ex,templateLiteral:()=>Px,toJSONSchema:()=>Pc,toLowerCase:()=>Vo,toUpperCase:()=>Ho,transform:()=>Tp,treeifyError:()=>al,trim:()=>qo,tuple:()=>y_,uint32:()=>KT,uint64:()=>YT,ulid:()=>OT,undefined:()=>tx,union:()=>Pp,unknown:()=>Go,uppercase:()=>Uo,url:()=>xT,util:()=>X,uuid:()=>ET,uuidv4:()=>PT,uuidv6:()=>ST,uuidv7:()=>TT,void:()=>nx,xid:()=>kT,xor:()=>ux});var Dc={};Jt(Dc,{ZodAny:()=>s_,ZodArray:()=>d_,ZodBase64:()=>gp,ZodBase64URL:()=>yp,ZodBigInt:()=>ra,ZodBigIntFormat:()=>vp,ZodBoolean:()=>ta,ZodCIDRv4:()=>mp,ZodCIDRv6:()=>hp,ZodCUID:()=>sp,ZodCUID2:()=>cp,ZodCatch:()=>$_,ZodCodec:()=>Ip,ZodCustom:()=>Gc,ZodCustomStringFormat:()=>Yi,ZodDate:()=>Bc,ZodDefault:()=>w_,ZodDiscriminatedUnion:()=>f_,ZodE164:()=>_p,ZodEmail:()=>op,ZodEmoji:()=>ip,ZodEnum:()=>Xi,ZodExactOptional:()=>T_,ZodFile:()=>P_,ZodFunction:()=>B_,ZodGUID:()=>Uc,ZodIPv4:()=>pp,ZodIPv6:()=>fp,ZodIntersection:()=>m_,ZodJWT:()=>bp,ZodKSUID:()=>dp,ZodLazy:()=>M_,ZodLiteral:()=>E_,ZodMAC:()=>e_,ZodMap:()=>b_,ZodNaN:()=>z_,ZodNanoID:()=>ap,ZodNever:()=>u_,ZodNonOptional:()=>Ap,ZodNull:()=>i_,ZodNullable:()=>A_,ZodNumber:()=>ea,ZodNumberFormat:()=>Wo,ZodObject:()=>Vc,ZodOptional:()=>xp,ZodPipe:()=>wp,ZodPrefault:()=>R_,ZodPromise:()=>F_,ZodReadonly:()=>D_,ZodRecord:()=>Zc,ZodSet:()=>v_,ZodString:()=>Qi,ZodStringFormat:()=>Ke,ZodSuccess:()=>k_,ZodSymbol:()=>n_,ZodTemplateLiteral:()=>j_,ZodTransform:()=>S_,ZodTuple:()=>g_,ZodType:()=>Ae,ZodULID:()=>up,ZodURL:()=>Fc,ZodUUID:()=>nn,ZodUndefined:()=>o_,ZodUnion:()=>Hc,ZodUnknown:()=>c_,ZodVoid:()=>l_,ZodXID:()=>lp,ZodXor:()=>p_,_ZodString:()=>np,_default:()=>I_,_function:()=>Tx,any:()=>rx,array:()=>qc,base64:()=>MT,base64url:()=>LT,bigint:()=>XT,boolean:()=>r_,catch:()=>N_,check:()=>xx,cidrv4:()=>UT,cidrv6:()=>jT,codec:()=>Ex,cuid:()=>RT,cuid2:()=>CT,custom:()=>Ax,date:()=>ox,describe:()=>wx,discriminatedUnion:()=>lx,e164:()=>FT,email:()=>bT,emoji:()=>wT,enum:()=>Sp,exactOptional:()=>x_,file:()=>yx,float32:()=>GT,float64:()=>WT,function:()=>Tx,guid:()=>vT,hash:()=>ZT,hex:()=>HT,hostname:()=>VT,httpUrl:()=>AT,instanceof:()=>Rx,int:()=>rp,int32:()=>JT,int64:()=>QT,intersection:()=>h_,ipv4:()=>NT,ipv6:()=>DT,json:()=>Ox,jwt:()=>BT,keyof:()=>ix,ksuid:()=>$T,lazy:()=>L_,literal:()=>gx,looseObject:()=>cx,looseRecord:()=>px,mac:()=>zT,map:()=>fx,meta:()=>Ix,nan:()=>vx,nanoid:()=>IT,nativeEnum:()=>hx,never:()=>Ep,nonoptional:()=>O_,null:()=>a_,nullable:()=>Mc,nullish:()=>_x,number:()=>t_,object:()=>ax,optional:()=>jc,partialRecord:()=>dx,pipe:()=>Lc,prefault:()=>C_,preprocess:()=>kx,promise:()=>Sx,readonly:()=>U_,record:()=>__,refine:()=>q_,set:()=>mx,strictObject:()=>sx,string:()=>tp,stringFormat:()=>qT,stringbool:()=>Cx,success:()=>bx,superRefine:()=>V_,symbol:()=>ex,templateLiteral:()=>Px,transform:()=>Tp,tuple:()=>y_,uint32:()=>KT,uint64:()=>YT,ulid:()=>OT,undefined:()=>tx,union:()=>Pp,unknown:()=>Go,url:()=>xT,uuid:()=>ET,uuidv4:()=>PT,uuidv6:()=>ST,uuidv7:()=>TT,void:()=>nx,xid:()=>kT,xor:()=>ux});var Kd={};Jt(Kd,{endsWith:()=>Lo,gt:()=>Br,gte:()=>_t,includes:()=>jo,length:()=>eo,lowercase:()=>Do,lt:()=>Fr,lte:()=>Ft,maxLength:()=>Yn,maxSize:()=>wn,mime:()=>Fo,minLength:()=>lt,minSize:()=>qr,multipleOf:()=>An,negative:()=>gc,nonnegative:()=>_c,nonpositive:()=>yc,normalize:()=>Bo,overwrite:()=>wr,positive:()=>hc,property:()=>bc,regex:()=>Ct,size:()=>Qn,slugify:()=>Vi,startsWith:()=>Mo,toLowerCase:()=>Vo,toUpperCase:()=>Ho,trim:()=>qo,uppercase:()=>Uo});var Ki={};Jt(Ki,{ZodISODate:()=>Qd,ZodISODateTime:()=>Xd,ZodISODuration:()=>ep,ZodISOTime:()=>Yd,date:()=>My,datetime:()=>jy,duration:()=>Fy,time:()=>Ly});var Xd=w("ZodISODateTime",(e,t)=>{us.init(e,t),Ke.init(e,t)});function jy(e){return tc(Xd,e)}a(jy,"datetime");var Qd=w("ZodISODate",(e,t)=>{ls.init(e,t),Ke.init(e,t)});function My(e){return rc(Qd,e)}a(My,"date");var Yd=w("ZodISOTime",(e,t)=>{ds.init(e,t),Ke.init(e,t)});function Ly(e){return nc(Yd,e)}a(Ly,"time");var ep=w("ZodISODuration",(e,t)=>{ps.init(e,t),Ke.init(e,t)});function Fy(e){return oc(ep,e)}a(Fy,"duration");var _T=a((e,t)=>{os.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a(n=>Ri(e,n),"value")},flatten:{value:a(n=>Ii(e,n),"value")},addIssue:{value:a(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xi,2)},"value")},addIssues:{value:a(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xi,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),vU=w("ZodError",_T),Yt=w("ZodError",_T,{Parent:Error});var By=Ci(Yt),qy=Oi(Yt),Vy=ki(Yt),Hy=Ni(Yt),Zy=cl(Yt),Gy=ul(Yt),Wy=ll(Yt),Jy=dl(Yt),Ky=pl(Yt),Xy=fl(Yt),Qy=ml(Yt),Yy=hl(Yt);var Ae=w("ZodType",(e,t)=>(ge.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Hi(e,"input"),output:Hi(e,"output")}}),e.toJSONSchema=jg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(X.mergeDefs(t,{checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(n,o)=>vt(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>By(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Vy(e,n,o),e.parseAsync=async(n,o)=>qy(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Hy(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Zy(e,n,o),e.decode=(n,o)=>Gy(e,n,o),e.encodeAsync=async(n,o)=>Wy(e,n,o),e.decodeAsync=async(n,o)=>Jy(e,n,o),e.safeEncode=(n,o)=>Ky(e,n,o),e.safeDecode=(n,o)=>Xy(e,n,o),e.safeEncodeAsync=async(n,o)=>Qy(e,n,o),e.safeDecodeAsync=async(n,o)=>Yy(e,n,o),e.refine=(n,o)=>e.check(q_(n,o)),e.superRefine=n=>e.check(V_(n)),e.overwrite=n=>e.check(wr(n)),e.optional=()=>jc(e),e.exactOptional=()=>x_(e),e.nullable=()=>Mc(e),e.nullish=()=>jc(Mc(e)),e.nonoptional=n=>O_(e,n),e.array=()=>qc(e),e.or=n=>Pp([e,n]),e.and=n=>h_(e,n),e.transform=n=>Lc(e,Tp(n)),e.default=n=>I_(e,n),e.prefault=n=>C_(e,n),e.catch=n=>N_(e,n),e.pipe=n=>Lc(e,n),e.readonly=()=>U_(e),e.describe=n=>{let o=e.clone();return Et.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Et.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Et.get(e);let o=e.clone();return Et.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),np=w("_ZodString",(e,t)=>{xn.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Mg(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Ct(...o)),e.includes=(...o)=>e.check(jo(...o)),e.startsWith=(...o)=>e.check(Mo(...o)),e.endsWith=(...o)=>e.check(Lo(...o)),e.min=(...o)=>e.check(lt(...o)),e.max=(...o)=>e.check(Yn(...o)),e.length=(...o)=>e.check(eo(...o)),e.nonempty=(...o)=>e.check(lt(1,...o)),e.lowercase=o=>e.check(Do(o)),e.uppercase=o=>e.check(Uo(o)),e.trim=()=>e.check(qo()),e.normalize=(...o)=>e.check(Bo(...o)),e.toLowerCase=()=>e.check(Vo()),e.toUpperCase=()=>e.check(Ho()),e.slugify=()=>e.check(Vi())}),Qi=w("ZodString",(e,t)=>{xn.init(e,t),np.init(e,t),e.email=n=>e.check(zs(op,n)),e.url=n=>e.check(zo(Fc,n)),e.jwt=n=>e.check(ec(bp,n)),e.emoji=n=>e.check(Ls(ip,n)),e.guid=n=>e.check(qi(Uc,n)),e.uuid=n=>e.check(Ds(nn,n)),e.uuidv4=n=>e.check(Us(nn,n)),e.uuidv6=n=>e.check(js(nn,n)),e.uuidv7=n=>e.check(Ms(nn,n)),e.nanoid=n=>e.check(Fs(ap,n)),e.guid=n=>e.check(qi(Uc,n)),e.cuid=n=>e.check(Bs(sp,n)),e.cuid2=n=>e.check(qs(cp,n)),e.ulid=n=>e.check(Vs(up,n)),e.base64=n=>e.check(Xs(gp,n)),e.base64url=n=>e.check(Qs(yp,n)),e.xid=n=>e.check(Hs(lp,n)),e.ksuid=n=>e.check(Zs(dp,n)),e.ipv4=n=>e.check(Gs(pp,n)),e.ipv6=n=>e.check(Ws(fp,n)),e.cidrv4=n=>e.check(Js(mp,n)),e.cidrv6=n=>e.check(Ks(hp,n)),e.e164=n=>e.check(Ys(_p,n)),e.datetime=n=>e.check(jy(n)),e.date=n=>e.check(My(n)),e.time=n=>e.check(Ly(n)),e.duration=n=>e.check(Fy(n))});function tp(e){return $s(Qi,e)}a(tp,"string");var Ke=w("ZodStringFormat",(e,t)=>{qe.init(e,t),np.init(e,t)}),op=w("ZodEmail",(e,t)=>{wl.init(e,t),Ke.init(e,t)});function bT(e){return zs(op,e)}a(bT,"email");var Uc=w("ZodGUID",(e,t)=>{xl.init(e,t),Ke.init(e,t)});function vT(e){return qi(Uc,e)}a(vT,"guid");var nn=w("ZodUUID",(e,t)=>{Al.init(e,t),Ke.init(e,t)});function ET(e){return Ds(nn,e)}a(ET,"uuid");function PT(e){return Us(nn,e)}a(PT,"uuidv4");function ST(e){return js(nn,e)}a(ST,"uuidv6");function TT(e){return Ms(nn,e)}a(TT,"uuidv7");var Fc=w("ZodURL",(e,t)=>{cs.init(e,t),Ke.init(e,t)});function xT(e){return zo(Fc,e)}a(xT,"url");function AT(e){return zo(Fc,{protocol:/^https?$/,hostname:Qt.domain,...X.normalizeParams(e)})}a(AT,"httpUrl");var ip=w("ZodEmoji",(e,t)=>{Il.init(e,t),Ke.init(e,t)});function wT(e){return Ls(ip,e)}a(wT,"emoji");var ap=w("ZodNanoID",(e,t)=>{Rl.init(e,t),Ke.init(e,t)});function IT(e){return Fs(ap,e)}a(IT,"nanoid");var sp=w("ZodCUID",(e,t)=>{Cl.init(e,t),Ke.init(e,t)});function RT(e){return Bs(sp,e)}a(RT,"cuid");var cp=w("ZodCUID2",(e,t)=>{Ol.init(e,t),Ke.init(e,t)});function CT(e){return qs(cp,e)}a(CT,"cuid2");var up=w("ZodULID",(e,t)=>{kl.init(e,t),Ke.init(e,t)});function OT(e){return Vs(up,e)}a(OT,"ulid");var lp=w("ZodXID",(e,t)=>{$l.init(e,t),Ke.init(e,t)});function kT(e){return Hs(lp,e)}a(kT,"xid");var dp=w("ZodKSUID",(e,t)=>{Nl.init(e,t),Ke.init(e,t)});function $T(e){return Zs(dp,e)}a($T,"ksuid");var pp=w("ZodIPv4",(e,t)=>{zl.init(e,t),Ke.init(e,t)});function NT(e){return Gs(pp,e)}a(NT,"ipv4");var e_=w("ZodMAC",(e,t)=>{Ul.init(e,t),Ke.init(e,t)});function zT(e){return yd(e_,e)}a(zT,"mac");var fp=w("ZodIPv6",(e,t)=>{Dl.init(e,t),Ke.init(e,t)});function DT(e){return Ws(fp,e)}a(DT,"ipv6");var mp=w("ZodCIDRv4",(e,t)=>{jl.init(e,t),Ke.init(e,t)});function UT(e){return Js(mp,e)}a(UT,"cidrv4");var hp=w("ZodCIDRv6",(e,t)=>{Ml.init(e,t),Ke.init(e,t)});function jT(e){return Ks(hp,e)}a(jT,"cidrv6");var gp=w("ZodBase64",(e,t)=>{Ll.init(e,t),Ke.init(e,t)});function MT(e){return Xs(gp,e)}a(MT,"base64");var yp=w("ZodBase64URL",(e,t)=>{Fl.init(e,t),Ke.init(e,t)});function LT(e){return Qs(yp,e)}a(LT,"base64url");var _p=w("ZodE164",(e,t)=>{Bl.init(e,t),Ke.init(e,t)});function FT(e){return Ys(_p,e)}a(FT,"e164");var bp=w("ZodJWT",(e,t)=>{ql.init(e,t),Ke.init(e,t)});function BT(e){return ec(bp,e)}a(BT,"jwt");var Yi=w("ZodCustomStringFormat",(e,t)=>{Vl.init(e,t),Ke.init(e,t)});function qT(e,t,n={}){return Zo(Yi,e,t,n)}a(qT,"stringFormat");function VT(e){return Zo(Yi,"hostname",Qt.hostname,e)}a(VT,"hostname");function HT(e){return Zo(Yi,"hex",Qt.hex,e)}a(HT,"hex");function ZT(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Qt[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return Zo(Yi,o,r,t)}a(ZT,"hash");var ea=w("ZodNumber",(e,t)=>{Ui.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Lg(e,o,r,i),e.gt=(o,r)=>e.check(Br(o,r)),e.gte=(o,r)=>e.check(_t(o,r)),e.min=(o,r)=>e.check(_t(o,r)),e.lt=(o,r)=>e.check(Fr(o,r)),e.lte=(o,r)=>e.check(Ft(o,r)),e.max=(o,r)=>e.check(Ft(o,r)),e.int=o=>e.check(rp(o)),e.safe=o=>e.check(rp(o)),e.positive=o=>e.check(Br(0,o)),e.nonnegative=o=>e.check(_t(0,o)),e.negative=o=>e.check(Fr(0,o)),e.nonpositive=o=>e.check(Ft(0,o)),e.multipleOf=(o,r)=>e.check(An(o,r)),e.step=(o,r)=>e.check(An(o,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function t_(e){return ic(ea,e)}a(t_,"number");var Wo=w("ZodNumberFormat",(e,t)=>{fs.init(e,t),ea.init(e,t)});function rp(e){return sc(Wo,e)}a(rp,"int");function GT(e){return bd(Wo,e)}a(GT,"float32");function WT(e){return vd(Wo,e)}a(WT,"float64");function JT(e){return Ed(Wo,e)}a(JT,"int32");function KT(e){return Pd(Wo,e)}a(KT,"uint32");var ta=w("ZodBoolean",(e,t)=>{$o.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fg(e,n,o,r)});function r_(e){return cc(ta,e)}a(r_,"boolean");var ra=w("ZodBigInt",(e,t)=>{ji.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Bg(e,o,r,i),e.gte=(o,r)=>e.check(_t(o,r)),e.min=(o,r)=>e.check(_t(o,r)),e.gt=(o,r)=>e.check(Br(o,r)),e.gte=(o,r)=>e.check(_t(o,r)),e.min=(o,r)=>e.check(_t(o,r)),e.lt=(o,r)=>e.check(Fr(o,r)),e.lte=(o,r)=>e.check(Ft(o,r)),e.max=(o,r)=>e.check(Ft(o,r)),e.positive=o=>e.check(Br(BigInt(0),o)),e.negative=o=>e.check(Fr(BigInt(0),o)),e.nonpositive=o=>e.check(Ft(BigInt(0),o)),e.nonnegative=o=>e.check(_t(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(An(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function XT(e){return Sd(ra,e)}a(XT,"bigint");var vp=w("ZodBigIntFormat",(e,t)=>{Hl.init(e,t),ra.init(e,t)});function QT(e){return Td(vp,e)}a(QT,"int64");function YT(e){return xd(vp,e)}a(YT,"uint64");var n_=w("ZodSymbol",(e,t)=>{Zl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qg(e,n,o,r)});function ex(e){return Ad(n_,e)}a(ex,"symbol");var o_=w("ZodUndefined",(e,t)=>{Gl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hg(e,n,o,r)});function tx(e){return wd(o_,e)}a(tx,"_undefined");var i_=w("ZodNull",(e,t)=>{Wl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vg(e,n,o,r)});function a_(e){return Id(i_,e)}a(a_,"_null");var s_=w("ZodAny",(e,t)=>{ms.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wg(e,n,o,r)});function rx(){return dc(s_)}a(rx,"any");var c_=w("ZodUnknown",(e,t)=>{hs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jg(e,n,o,r)});function Go(){return pc(c_)}a(Go,"unknown");var u_=w("ZodNever",(e,t)=>{Jl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gg(e,n,o,r)});function Ep(e){return Rd(u_,e)}a(Ep,"never");var l_=w("ZodVoid",(e,t)=>{gs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zg(e,n,o,r)});function nx(e){return fc(l_,e)}a(nx,"_void");var Bc=w("ZodDate",(e,t)=>{ys.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Kg(e,o,r,i),e.min=(o,r)=>e.check(_t(o,r)),e.max=(o,r)=>e.check(Ft(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function ox(e){return Cd(Bc,e)}a(ox,"date");var d_=w("ZodArray",(e,t)=>{_s.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cy(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check(lt(n,o)),e.nonempty=n=>e.check(lt(1,n)),e.max=(n,o)=>e.check(Yn(n,o)),e.length=(n,o)=>e.check(eo(n,o)),e.unwrap=()=>e.element});function qc(e,t){return Ug(d_,e,t)}a(qc,"array");function ix(e){let t=e._zod.def.shape;return Sp(Object.keys(t))}a(ix,"keyof");var Vc=w("ZodObject",(e,t)=>{Vh.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>uy(e,n,o,r),X.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Sp(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Go()}),e.loose=()=>e.clone({...e._zod.def,catchall:Go()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ep()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>X.extend(e,n),e.safeExtend=n=>X.safeExtend(e,n),e.merge=n=>X.merge(e,n),e.pick=n=>X.pick(e,n),e.omit=n=>X.omit(e,n),e.partial=(...n)=>X.partial(xp,e,n[0]),e.required=(...n)=>X.required(Ap,e,n[0])});function ax(e,t){let n={type:"object",shape:e??{},...X.normalizeParams(t)};return new Vc(n)}a(ax,"object");function sx(e,t){return new Vc({type:"object",shape:e,catchall:Ep(),...X.normalizeParams(t)})}a(sx,"strictObject");function cx(e,t){return new Vc({type:"object",shape:e,catchall:Go(),...X.normalizeParams(t)})}a(cx,"looseObject");var Hc=w("ZodUnion",(e,t)=>{No.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jd(e,n,o,r),e.options=t.options});function Pp(e,t){return new Hc({type:"union",options:e,...X.normalizeParams(t)})}a(Pp,"union");var p_=w("ZodXor",(e,t)=>{Hc.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jd(e,n,o,r),e.options=t.options});function ux(e,t){return new p_({type:"union",options:e,inclusive:!1,...X.normalizeParams(t)})}a(ux,"xor");var f_=w("ZodDiscriminatedUnion",(e,t)=>{Hc.init(e,t),bs.init(e,t)});function lx(e,t,n){return new f_({type:"union",options:t,discriminator:e,...X.normalizeParams(n)})}a(lx,"discriminatedUnion");var m_=w("ZodIntersection",(e,t)=>{Ql.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ly(e,n,o,r)});function h_(e,t){return new m_({type:"intersection",left:e,right:t})}a(h_,"intersection");var g_=w("ZodTuple",(e,t)=>{vs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dy(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function y_(e,t,n){let o=t instanceof ge,r=o?n:t,i=o?t:null;return new g_({type:"tuple",items:e,rest:i,...X.normalizeParams(r)})}a(y_,"tuple");var Zc=w("ZodRecord",(e,t)=>{Es.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>py(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function __(e,t,n){return new Zc({type:"record",keyType:e,valueType:t,...X.normalizeParams(n)})}a(__,"record");function dx(e,t,n){let o=vt(e);return o._zod.values=void 0,new Zc({type:"record",keyType:o,valueType:t,...X.normalizeParams(n)})}a(dx,"partialRecord");function px(e,t,n){return new Zc({type:"record",keyType:e,valueType:t,mode:"loose",...X.normalizeParams(n)})}a(px,"looseRecord");var b_=w("ZodMap",(e,t)=>{Yl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ay(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(qr(...n)),e.nonempty=n=>e.check(qr(1,n)),e.max=(...n)=>e.check(wn(...n)),e.size=(...n)=>e.check(Qn(...n))});function fx(e,t,n){return new b_({type:"map",keyType:e,valueType:t,...X.normalizeParams(n)})}a(fx,"map");var v_=w("ZodSet",(e,t)=>{ed.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sy(e,n,o,r),e.min=(...n)=>e.check(qr(...n)),e.nonempty=n=>e.check(qr(1,n)),e.max=(...n)=>e.check(wn(...n)),e.size=(...n)=>e.check(Qn(...n))});function mx(e,t){return new v_({type:"set",valueType:e,...X.normalizeParams(t)})}a(mx,"set");var Xi=w("ZodEnum",(e,t)=>{Ps.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Xg(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let s of o)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Xi({...t,checks:[],...X.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Xi({...t,checks:[],...X.normalizeParams(r),entries:i})}});function Sp(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Xi({type:"enum",entries:n,...X.normalizeParams(t)})}a(Sp,"_enum");function hx(e,t){return new Xi({type:"enum",entries:e,...X.normalizeParams(t)})}a(hx,"nativeEnum");var E_=w("ZodLiteral",(e,t)=>{Ss.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qg(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gx(e,t){return new E_({type:"literal",values:Array.isArray(e)?e:[e],...X.normalizeParams(t)})}a(gx,"literal");var P_=w("ZodFile",(e,t)=>{td.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ty(e,n,o,r),e.min=(n,o)=>e.check(qr(n,o)),e.max=(n,o)=>e.check(wn(n,o)),e.mime=(n,o)=>e.check(Fo(Array.isArray(n)?n:[n],o))});function yx(e){return kd(P_,e)}a(yx,"file");var S_=w("ZodTransform",(e,t)=>{Ts.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>iy(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Gn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(X.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(X.issue(s))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function Tp(e){return new S_({type:"transform",transform:e})}a(Tp,"transform");var xp=w("ZodOptional",(e,t)=>{Mi.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Md(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function jc(e){return new xp({type:"optional",innerType:e})}a(jc,"optional");var T_=w("ZodExactOptional",(e,t)=>{rd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Md(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function x_(e){return new T_({type:"optional",innerType:e})}a(x_,"exactOptional");var A_=w("ZodNullable",(e,t)=>{xs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Mc(e){return new A_({type:"nullable",innerType:e})}a(Mc,"nullable");function _x(e){return jc(Mc(e))}a(_x,"nullish");var w_=w("ZodDefault",(e,t)=>{nd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function I_(e,t){return new w_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():X.shallowClone(t)}})}a(I_,"_default");var R_=w("ZodPrefault",(e,t)=>{od.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function C_(e,t){return new R_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():X.shallowClone(t)}})}a(C_,"prefault");var Ap=w("ZodNonOptional",(e,t)=>{id.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>my(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function O_(e,t){return new Ap({type:"nonoptional",innerType:e,...X.normalizeParams(t)})}a(O_,"nonoptional");var k_=w("ZodSuccess",(e,t)=>{ad.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ry(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bx(e){return new k_({type:"success",innerType:e})}a(bx,"success");var $_=w("ZodCatch",(e,t)=>{sd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function N_(e,t){return new $_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}a(N_,"_catch");var z_=w("ZodNaN",(e,t)=>{cd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yg(e,n,o,r)});function vx(e){return Od(z_,e)}a(vx,"nan");var wp=w("ZodPipe",(e,t)=>{As.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_y(e,n,o,r),e.in=t.in,e.out=t.out});function Lc(e,t){return new wp({type:"pipe",in:e,out:t})}a(Lc,"pipe");var Ip=w("ZodCodec",(e,t)=>{wp.init(e,t),Li.init(e,t)});function Ex(e,t,n){return new Ip({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}a(Ex,"codec");var D_=w("ZodReadonly",(e,t)=>{ud.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>by(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function U_(e){return new D_({type:"readonly",innerType:e})}a(U_,"readonly");var j_=w("ZodTemplateLiteral",(e,t)=>{ld.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ey(e,n,o,r)});function Px(e,t){return new j_({type:"template_literal",parts:e,...X.normalizeParams(t)})}a(Px,"templateLiteral");var M_=w("ZodLazy",(e,t)=>{fd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ey(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function L_(e){return new M_({type:"lazy",getter:e})}a(L_,"lazy");var F_=w("ZodPromise",(e,t)=>{pd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Sx(e){return new F_({type:"promise",innerType:e})}a(Sx,"promise");var B_=w("ZodFunction",(e,t)=>{dd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>oy(e,n,o,r)});function Tx(e){return new B_({type:"function",input:Array.isArray(e?.input)?y_(e?.input):e?.input??qc(Go()),output:e?.output??Go()})}a(Tx,"_function");var Gc=w("ZodCustom",(e,t)=>{ws.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ny(e,n,o,r)});function xx(e){let t=new Je({check:"custom"});return t._zod.check=e,t}a(xx,"check");function Ax(e,t){return vc(Gc,e??(()=>!0),t)}a(Ax,"custom");function q_(e,t={}){return Ec(Gc,e,t)}a(q_,"refine");function V_(e){return $d(e)}a(V_,"superRefine");var wx=Nd,Ix=zd;function Rx(e,t={}){let n=new Gc({type:"custom",check:"custom",fn:a(o=>o instanceof e,"fn"),abort:!0,...X.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}a(Rx,"_instanceof");var Cx=a((...e)=>Dd({Codec:Ip,Boolean:ta,String:Qi},...e),"stringbool");function Ox(e){let t=L_(()=>Pp([tp(e),t_(),r_(),a_(),qc(t),__(tp(),t)]));return t}a(Ox,"json");function kx(e,t){return Lc(Tp(e),t)}a(kx,"preprocess");var PU={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function SU(e){at({customError:e})}a(SU,"setErrorMap");function TU(){return at().customError}a(TU,"getErrorMap");var H_;H_||(H_={});var ne={...Dc,...Kd,iso:Ki},xU=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function AU(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}a(AU,"detectVersion");function wU(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}a(wU,"resolveRef");function $x(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ne.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return ne.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=wU(r,t),s=zt(i,t);return t.refs.set(r,s),t.processing.delete(r),s}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return ne.null();if(r.length===0)return ne.never();if(r.length===1)return ne.literal(r[0]);if(r.every(s=>typeof s=="string"))return ne.enum(r);let i=r.map(s=>ne.literal(s));return i.length<2?i[0]:ne.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return ne.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let s={...e,type:i};return $x(s,t)});return r.length===0?ne.never():r.length===1?r[0]:ne.union(r)}if(!n)return ne.any();let o;switch(n){case"string":{let r=ne.string();if(e.format){let i=e.format;i==="email"?r=r.check(ne.email()):i==="uri"||i==="uri-reference"?r=r.check(ne.url()):i==="uuid"||i==="guid"?r=r.check(ne.uuid()):i==="date-time"?r=r.check(ne.iso.datetime()):i==="date"?r=r.check(ne.iso.date()):i==="time"?r=r.check(ne.iso.time()):i==="duration"?r=r.check(ne.iso.duration()):i==="ipv4"?r=r.check(ne.ipv4()):i==="ipv6"?r=r.check(ne.ipv6()):i==="mac"?r=r.check(ne.mac()):i==="cidr"?r=r.check(ne.cidrv4()):i==="cidr-v6"?r=r.check(ne.cidrv6()):i==="base64"?r=r.check(ne.base64()):i==="base64url"?r=r.check(ne.base64url()):i==="e164"?r=r.check(ne.e164()):i==="jwt"?r=r.check(ne.jwt()):i==="emoji"?r=r.check(ne.emoji()):i==="nanoid"?r=r.check(ne.nanoid()):i==="cuid"?r=r.check(ne.cuid()):i==="cuid2"?r=r.check(ne.cuid2()):i==="ulid"?r=r.check(ne.ulid()):i==="xid"?r=r.check(ne.xid()):i==="ksuid"&&(r=r.check(ne.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?ne.number().int():ne.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=ne.boolean();break}case"null":{o=ne.null();break}case"object":{let r={},i=e.properties||{},s=new Set(e.required||[]);for(let[d,p]of Object.entries(i)){let f=zt(p,t);r[d]=s.has(d)?f:f.optional()}if(e.propertyNames){let d=zt(e.propertyNames,t),p=e.additionalProperties&&typeof e.additionalProperties=="object"?zt(e.additionalProperties,t):ne.any();if(Object.keys(r).length===0){o=ne.record(d,p);break}let f=ne.object(r).passthrough(),g=ne.looseRecord(d,p);o=ne.intersection(f,g);break}if(e.patternProperties){let d=e.patternProperties,p=Object.keys(d),f=[];for(let y of p){let h=zt(d[y],t),_=ne.string().regex(new RegExp(y));f.push(ne.looseRecord(_,h))}let g=[];if(Object.keys(r).length>0&&g.push(ne.object(r).passthrough()),g.push(...f),g.length===0)o=ne.object({}).passthrough();else if(g.length===1)o=g[0];else{let y=ne.intersection(g[0],g[1]);for(let h=2;h<g.length;h++)y=ne.intersection(y,g[h]);o=y}break}let u=ne.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(zt(e.additionalProperties,t)):o=u.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let s=r.map(d=>zt(d,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?zt(i,t):void 0;u?o=ne.tuple(s).rest(u):o=ne.tuple(s),typeof e.minItems=="number"&&(o=o.check(ne.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ne.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(d=>zt(d,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?zt(e.additionalItems,t):void 0;u?o=ne.tuple(s).rest(u):o=ne.tuple(s),typeof e.minItems=="number"&&(o=o.check(ne.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ne.maxLength(e.maxItems)))}else if(i!==void 0){let s=zt(i,t),u=ne.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=ne.array(ne.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}a($x,"convertBaseSchema");function zt(e,t){if(typeof e=="boolean")return e?ne.any():ne.never();let n=$x(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(p=>zt(p,t)),d=ne.union(u);n=o?ne.intersection(n,d):d}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(p=>zt(p,t)),d=ne.xor(u);n=o?ne.intersection(n,d):d}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:ne.any();else{let u=o?n:zt(e.allOf[0],t),d=o?0:1;for(let p=d;p<e.allOf.length;p++)u=ne.intersection(u,zt(e.allOf[p],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=ne.nullable(n)),e.readOnly===!0&&(n=ne.readonly(n));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in e&&(r[u]=e[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in e&&(r[u]=e[u]);for(let u of Object.keys(e))xU.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}a(zt,"convertSchema");function Nx(e,t){if(typeof e=="boolean")return e?ne.any():ne.never();let n=AU(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Et};return zt(e,r)}a(Nx,"fromJSONSchema");var Z_={};Jt(Z_,{bigint:()=>OU,boolean:()=>CU,date:()=>kU,number:()=>RU,string:()=>IU});function IU(e){return Ns(Qi,e)}a(IU,"string");function RU(e){return ac(ea,e)}a(RU,"number");function CU(e){return uc(ta,e)}a(CU,"boolean");function OU(e){return lc(ra,e)}a(OU,"bigint");function kU(e){return mc(Bc,e)}a(kU,"date");at(Is());var G_={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue"};var zx=(n=>(n.IMAGE="image",n.TEXT="text",n))(zx||{}),qt=te.object({apiKey:te.string()}),Dx=te.object({serviceAccountJson:te.string().min(1)}),Ux=qt,jx=qt.extend({apiKeyHash:te.string()}),Mx=qt,Lx=qt,Fx=qt,Bx=qt,qx=qt,Vx=qt,Hx=te.object({accessKeyId:te.string().min(1),secretAccessKey:te.string().min(1),sessionToken:te.string().optional()}),Zx=qt,Gx=te.object({}),Wx=te.object({}),W_=te.object({modelId:te.string(),modelName:te.string(),modelType:te.enum(zx)}),Jx=te.object({apiKeyHeader:te.string(),baseUrl:te.string(),models:te.array(W_),defaultHeaders:te.record(te.string(),te.string()).optional(),apiStyle:te.enum(["chat","responses"]).optional()}),Kx=te.object({accountId:te.string(),gatewayId:te.string(),models:te.array(W_),vertexProject:te.string().optional(),vertexRegion:te.string().optional()}),Xx=te.object({resourceName:te.string(),apiVersion:te.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,te.string().optional())}),Qx=te.object({}),Yx=te.object({}),eA=te.object({}),tA=te.object({region:te.string().min(1)}),rA=te.object({project:te.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,G_.invalidGcpResourceId),region:te.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,G_.invalidGcpResourceId),models:te.array(W_)}),nA=te.object({}),Jo=te.object({}),XW=te.union([Ux,Fx,Bx,qx,Vx,Lx,Mx,jx,Hx,Dx,Zx]),QW=te.union([Jx,Kx,Xx,rA,tA,Gx,Qx,Yx,eA,Wx,nA,Jo]),YW=te.discriminatedUnion("provider",[te.object({provider:te.literal("openai"),config:Yx.partial(),auth:qx.partial()}),te.object({provider:te.literal("openrouter"),config:eA.partial(),auth:Vx.partial()}),te.object({provider:te.literal("anthropic"),config:Gx.partial(),auth:Ux.partial()}),te.object({provider:te.literal("azure"),config:Xx.partial(),auth:Fx.partial()}),te.object({provider:te.literal("google"),config:Qx.partial(),auth:Bx.partial()}),te.object({provider:te.literal("cloudflare-gateway"),config:Kx.partial(),auth:Lx.partial()}),te.object({provider:te.literal("custom"),config:Jx.partial(),auth:Mx.partial()}),te.object({provider:te.literal("activepieces"),config:Wx.partial(),auth:jx.partial()}),te.object({provider:te.literal("bedrock"),config:tA.partial(),auth:Hx.partial()}),te.object({provider:te.literal("vertex"),config:rA.partial(),auth:Dx.partial()}),te.object({provider:te.literal("mistral"),config:nA.partial(),auth:Zx.partial()}),te.object({provider:te.literal("xai"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("deepseek"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("zai"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("qwen"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("minimax"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("moonshot"),config:Jo.partial(),auth:qt.partial()})]);var uJ=b().check(Ct(/^#[0-9A-Fa-f]{6}$/));var dJ=k({filename:b(),data:be(),type:de("file"),mimetype:L(b())});var $U=Rt(iA());var _J=k({...Ir,name:b(),permissions:he(b()),platformId:ct(b()),type:b(),userCount:L(Pt())});var IJ=te.enum(["active","out_of_credits","rejected","unreachable"]);var aA=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(aA||{}),J_=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(J_||{}),K_=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(K_||{});var X_=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(X_||{});var Q_=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(Q_||{});var NU=k({mode:fe(aA),value:be()}),zU=k({auth:L(b()),fields:ve(b(),NU)}),DU=k({pieceName:b(),pieceVersion:b(),actionName:b(),predefinedInput:L(zU)}),UU=k({type:de("PIECE"),toolName:b().check(lt(1)),pieceMetadata:DU}),jU=k({type:de("none")}),MU=k({type:de("access_token"),accessToken:b()}),LU=k({type:de("api_key"),apiKey:b(),apiKeyHeader:b()}),FU=k({type:de("headers"),headers:ve(b(),b())}),BU=oo("type",[jU,MU,LU,FU]),sA=k({type:de("FLOW"),toolName:b().check(lt(1)),externalFlowId:b(),flowDisplayName:L(b())}),cA=k({type:de("MCP"),toolName:b().check(lt(1)),serverUrl:tT(),protocol:fe(K_),auth:BU}),uA=k({type:de("KNOWLEDGE_BASE"),toolName:b().check(lt(1)),sourceType:fe(J_),sourceId:b(),sourceName:b()}),qU=oo("type",[UU,sA,cA,uA]),VU=k({displayName:b(),description:L(b()),type:fe(X_)}),lA=k({type:de("MARKDOWN"),markdown:b()}),na={type:de("TOOL_CALL"),input:ct(ve(b(),be())),output:L(be()),toolName:b(),status:fe(Q_),toolCallId:b(),startTime:b(),endTime:L(b())},h3=k(na),dA=oo("toolCallType",[k({...na,toolCallType:de("PIECE"),pieceName:b(),pieceVersion:b(),actionName:b()}),k({...na,toolCallType:de("FLOW"),displayName:b(),externalFlowId:b()}),k({...na,toolCallType:de("MCP"),displayName:b(),serverUrl:b()}),k({...na,toolCallType:de("KNOWLEDGE_BASE"),displayName:b(),sourceType:b()}),k({...na,toolCallType:de("UNKNOWN"),displayName:b()})]),HU=xe([lA,dA]);var ZU=10800*1e3,GU=900*1e3;var tb=(n=>(n.IMAGE="image",n.TEXT="text",n))(tb||{}),kn=k({apiKey:b()}),JU=kn,KU=k({apiKey:b(),apiKeyHash:b()}),XU=kn,QU=kn,YU=kn,ej=kn,tj=kn,rj=kn,nj=kn,hA=k({serviceAccountJson:b().check(lt(1))}),gA=k({accessKeyId:b().check(lt(1)),secretAccessKey:b().check(lt(1)),sessionToken:L(b())}),oj=k({}),ij=k({}),aj=k({}),sj=k({}),cj=k({}),uj=k({}),rb=k({modelId:b(),modelName:b(),modelType:fe(tb)}),yA=k({apiKeyHeader:b(),baseUrl:b(),models:he(rb),defaultHeaders:L(ve(b(),b())),apiStyle:L(fe(["chat","responses"]))}),_A=k({accountId:b(),gatewayId:b(),models:he(rb),vertexProject:L(b()),vertexRegion:L(b())}),bA=k({resourceName:b(),apiVersion:ao(io(e=>typeof e=="string"&&e.trim().length===0?void 0:e),L(b()))}),vA=k({region:b().check(lt(1))}),EA=k({project:b().check(Ct(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:b().check(Ct(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:he(rb)}),PA=k({}),lj=xe([JU,YU,ej,tj,rj,QU,XU,KU,gA,hA,nj]),SA=xe([yA,_A,bA,EA,vA,oj,aj,sj,cj,ij,uj,PA]),dj=k({id:b(),name:b(),type:fe(tb)}),pj=k({id:b(),name:b(),provider:fe(uo),config:SA,enabledForChat:ze()}),fj=k({provider:fe(uo),name:b(),enabledForChat:ze(),keys:he(k({id:b(),name:b()}))}),mj=k({provider:fe(uo),configId:b(),config:SA,auth:lj,platformId:b()});var b3={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},pA=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],hj=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],TA=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Y_=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],eb=["gemini-2.5-pro","gemini-2.5-flash"],gj=["grok-4.20"],v3={google:eb,vertex:eb},E3=TA.map(e=>`anthropic/${e}`),yj={openai:pA,anthropic:hj,google:Y_,vertex:Y_,activepieces:[...TA.map(e=>`anthropic/${e}`),...pA.map(e=>`openai/${e}`),...[...Y_,...eb].map(e=>`google/${e}`),...gj.map(e=>`x-ai/${e}`)]};var fA=128e3,_j={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function bj({provider:e}){return e?_j[e]??fA:fA}a(bj,"getMaxContextTokens");var mA={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},vj={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},Ej=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),Pj={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Ot(e){return{chatModels:yj[e],maxContextTokens:bj({provider:e}),defaultEmbeddingModel:mA[e],supportsEmbedding:mA[e]!==void 0,supportsImageGeneration:!Ej.has(e),defaultImageModel:Sj[e],webSearch:vj[e]}}a(Ot,"buildProviderCapabilities");var xA=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],Sj={activepieces:xA[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},Tj={openai:Ot("openai"),anthropic:Ot("anthropic"),openrouter:Ot("openrouter"),azure:Ot("azure"),google:Ot("google"),"cloudflare-gateway":Ot("cloudflare-gateway"),custom:Ot("custom"),bedrock:Ot("bedrock"),vertex:Ot("vertex"),mistral:Ot("mistral"),activepieces:Ot("activepieces"),xai:Ot("xai"),deepseek:Ot("deepseek"),zai:Ot("zai"),qwen:Ot("qwen"),minimax:Ot("minimax"),moonshot:Ot("moonshot")};var xj=k({base64Url:b(),fileName:b(),extension:L(b())}),Aj=k({mimeType:b(),url:b(),fileName:L(b())}),nb=xe([xj,Aj]);var wj=xe([k({type:de("file"),value:nb}),k({type:de("markdown"),value:b(),files:L(he(nb))})]),Ij=k({sessionId:b(),message:b(),files:L(he(b()))});var wA=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(wA||{}),IA=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(IA||{}),ob=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(ob||{});var Rj=xe([k({...Ir,name:b(),externalId:b(),type:de("STATIC_DROPDOWN"),tableId:b(),projectId:b(),data:k({options:he(k({value:b()}))})}),k({...Ir,name:b(),externalId:b(),type:xe([de("TEXT"),de("NUMBER"),de("DATE"),de("DATETIME")]),tableId:b(),projectId:b()})]),Cj=k({...Ir,name:b(),folderId:ct(b()),projectId:b(),externalId:b(),status:Uy(IA),trigger:Uy(wA)}),Oj=k({...Ir,tableId:b(),projectId:b(),cells:ve(b(),k({updated:b(),created:b(),value:be(),fieldName:b()}))}),kj=k({events:he(fe(ob)),webhookUrl:b(),flowId:b()}),$j=k({fields:he(k({id:b(),name:b()})),rows:he(ve(b(),b())),name:b()}),Nj=k({projectId:b(),limit:L(xc.number()),cursor:L(b()),name:L(b()),externalIds:Jd(b()),folderId:L(b()),folderIds:Jd(b())}),zj=k({records:he(he(k({fieldId:b(),value:CA()}))),tableId:b()}),Dj=k({cells:L(he(k({fieldId:b(),value:CA()}))),tableId:b(),agentUpdate:L(ze())}),RA=oo("operator",[Ko("eq"),Ko("neq"),Ko("gt"),Ko("gte"),Ko("lt"),Ko("lte"),Ko("co"),AA("exists"),AA("not_exists")]),Uj=k({tableId:b(),limit:L(xc.number()),cursor:L(b()),filters:Jd(RA)});function CA(){return ao(io(e=>e==null?e:String(e)),Tc(b()))}a(CA,"coerceToString");function Ko(e){return k({fieldId:b(),operator:de(e),value:b()})}a(Ko,"valueFilter");function AA(e){return k({fieldId:b(),operator:de(e)})}a(AA,"existenceFilter");var jj=k({status:L(Pt()),body:L(be()),headers:L(ve(b(),b()))}),Mj=k({...Ir,deleted:ct(co),ownerId:b(),displayName:b(),platformId:b(),externalId:ct(b())});var OA=k({name:b(),description:L(b()),type:b(),required:ze()}),Lj=k({pieceName:b(),triggerName:b(),input:k({toolName:b(),toolDescription:b(),inputSchema:he(OA),returnsResponse:ze()})});var kA="^[0-9]+\\.[0-9]+\\.[0-9]+$",L3=new RegExp(kA),Bj="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",F3=b().check(Ct(new RegExp(kA))),B3=b().check(Ct(new RegExp(Bj))),qj=k({packageType:de("ARCHIVE"),pieceType:fe(Gi),pieceName:b(),pieceVersion:b(),archiveId:b(),platformId:b()}),$A=k({packageType:de("REGISTRY"),pieceType:de("OFFICIAL"),pieceName:b(),pieceVersion:b()}),NA=k({packageType:de("REGISTRY"),pieceType:de("CUSTOM"),pieceName:b(),pieceVersion:b(),platformId:b()}),q3=xe([$A,NA]),V3=xe([qj,$A,NA]);var Vj=oo("type",[k({type:de("CRON_EXPRESSION"),cronExpression:b(),timezone:b()}),k({type:de("INTERVAL"),intervalMs:rT().check(_t(6e4))})]),H3=k({...Ir,type:fe(Vr),projectId:b(),flowId:b(),triggerName:b(),schedule:ct(Vj),flowVersionId:b(),pieceName:b(),pieceVersion:b(),deleted:ct(b()),simulate:ze()}),zA=(R=>(R.UNKNOWN="UNKNOWN",R.FLOW_RUN_LOG="FLOW_RUN_LOG",R.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",R.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",R.FLOW_STEP_FILE="FLOW_STEP_FILE",R.SAMPLE_DATA="SAMPLE_DATA",R.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",R.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",R.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",R.PROJECT_RELEASE="PROJECT_RELEASE",R.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",R.PLATFORM_ASSET="PLATFORM_ASSET",R.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",R.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",R.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",R.KNOWLEDGE_BASE="KNOWLEDGE_BASE",R.FLOW_BUNDLE="FLOW_BUNDLE",R.PREWARM_SCOPE="PREWARM_SCOPE",R))(zA||{}),DA=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(DA||{}),UA=(n=>(n.S3="S3",n.DB="DB",n))(UA||{}),Z3=k({...Ir,projectId:ct(b()),platformId:ct(b()),type:fe(zA),compression:fe(DA),data:L(be()),location:fe(UA),size:ct(Pt()),fileName:ct(b()),s3Key:ct(b()),metadata:ct(ve(b(),b()))}),jA=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(jA||{}),MA=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(MA||{}),G3=k({id:b(),email:b(),firstName:b(),status:fe(MA),externalId:ct(b()),platformId:ct(b()),platformRole:fe(jA),lastName:b(),created:co,updated:co,lastActiveDate:ct(co),imageUrl:ct(b())});var ab=k({...ke.shape,...Ee(ve(b(),be()),"OBJECT").shape});var sb=k({...ke.shape,formatProperty:L(b()),...Ee(b(),"RICH_TEXT").shape});var BA=k({...ke.shape,...Ee(b(),"COLOR").shape});var cb=xe([dr,In,sb,Zd,Cn,pr,Rn,Cy,Ac,ky,On,Rc,ab,Cc,Ic,Oy,wc,BA]),oe={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var on=k({displayName:b(),description:L(b()),hasConnectionIdentifier:L(ze())});var qA=k({username:b(),password:b()}),ub=k({...on.shape,username:k({displayName:b(),description:L(b())}),password:k({displayName:b(),description:L(b())}),...Ee(qA,"BASIC_AUTH").shape});var Wj=ve(b(),xe([dr,In,On,Cn,pr])),lb=k({...on.shape,props:Wj,...Ee(be(),"CUSTOM_AUTH").shape});var Xo=k({...on.shape,...Ee(k({auth:b()}),"SECRET_TEXT").shape});var Jj=ve(b(),xe([dr,In,Xo,On,Cn,pr,Rn,Zd])),VA=k({...on.shape,props:Jj,...Ee(be(),"OIDC").shape});var db=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(db||{}),HA=xe([dr,Xo,pr]),ZA=ve(b(),HA),Kj=k({props:L(ve(b(),HA)),authUrl:b(),tokenUrl:b(),scope:he(b()),prompt:L(xe([de("none"),de("consent"),de("login"),de("omit")])),pkce:L(ze()),pkceMethod:L(xe([de("plain"),de("S256")])),authorizationMethod:L(fe(db)),grantType:L(xe([fe(kc),de($y)])),extra:L(ve(b(),b()))}),GA=k({access_token:b(),props:L(ZA),data:ve(b(),Sc())}),pb=k({...on.shape,...Kj.shape,...Ee(GA,"OAUTH2").shape});var oa=xe([ub,lb,VA,pb,Xo]),Wc="Connection",Cp={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Wc}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Wc,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Wc}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Wc}},None(){}};var CX={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var Xj=k({...ke.shape,...Ee(be(),"CUSTOM").shape,code:b()});var Qj=xe([cb,oa]),fb=ve(b(),Qj),KX=ve(b(),cb);var WA=xe([k({strategy:de("CRON"),cronExpression:b()}),k({strategy:de("NONE")})]),ia=class{constructor(t,n,o,r,i,s,u,d,p,f,g,y,h,_,P,S,T,R,V,W,H){this.name=t;this.displayName=n;this.description=o;this.requireAuth=r;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=d;this.renewConfiguration=p;this.onRenew=f;this.onEnable=g;this.onDisable=y;this.onStart=h;this.run=_;this.test=P;this.sampleData=S;this.testStrategy=T;this.outputSchema=R;this.aiMetadata=V;this.classification=W;this.propertyGroups=H}static{a(this,"ITrigger")}},lo=a(e=>{switch(e.type){case"WEBHOOK":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,st(e.sampleData)&&st(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var JA="2",Op="0.82.0";var mb=class{constructor(t,n,o,r,i,s,u,d,p=Op,f,g="",y){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=d;this.minimumSupportedRelease=p;this.maximumSupportedRelease=f;this.description=g;this.deprecated=y;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:JA}),"getContextInfo");(!eM(p)||tM(p,Op))&&(this.minimumSupportedRelease=Op),i.forEach(h=>this._actions[h.name]=h),s.forEach(h=>this._triggers[h.name]=h)}static{a(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:Yj(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},XA=a(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((n,o,r)=>o===r.findIndex(i=>i.type===n.type)))throw new Error("Auth properties must be unique by type");return new mb(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Yj(e){if(e!==void 0)return Array.isArray(e)?e.map(KA):KA(e)}a(Yj,"withConnectionIdentifierFlag");function KA(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}a(KA,"flagConnectionIdentifier");function eM(e){return/^\d+\.\d+\.\d+$/.test(e)}a(eM,"isValidSimpleSemver");function tM(e,t){let[n,o,r]=e.split(".").map(Number),[i,s,u]=t.split(".").map(Number);return n!==i?n<i:o!==s?o<s:r<u}a(tM,"isSemverLessThan");var rM=L(ve(b(),ve(b(),b()))),QA=k({id:L(b()),name:b(),displayName:b(),logoUrl:b(),description:b(),authors:he(b()),platformId:L(b()),directoryPath:L(b()),auth:L(xe([oa,he(oa)])),version:b(),categories:L(he(fe(Wi))),minimumSupportedRelease:L(b()),maximumSupportedRelease:L(b()),deprecated:L(ze()),i18n:rM}),nM=fe(["human","ai","both"]),YA=k({description:L(b()),idempotent:L(ze())}),ew=fe(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var oM=fe(["tabs","section","summary","builder","footer"]),tw=k({key:b(),display:oM,label:L(b()),description:L(b()),icon:L(b()),props:he(b())}),rw=k({name:b(),displayName:b(),description:b(),props:fb,propertyGroups:L(he(tw)),requireAuth:ze(),errorHandlingOptions:L(Ry),outputSchema:L(qd()),audience:L(nM),aiMetadata:L(YA),classification:L(ew)}),nw=k({name:b(),displayName:b(),description:b(),props:fb,propertyGroups:L(he(tw)),errorHandlingOptions:L(Ry),type:fe(Vr),sampleData:be(),handshakeConfiguration:L(qd()),renewConfiguration:L(WA),testStrategy:fe(Nc),outputSchema:L(qd()),aiMetadata:L(YA),classification:L(ew)}),iM=k({...QA.shape,actions:ve(b(),rw),triggers:ve(b(),nw)}),aM=k({...QA.shape,actions:Pt(),triggers:Pt(),suggestedActions:L(he(rw)),suggestedTriggers:L(he(nw))}),ow=k({projectUsage:Pt(),pieceType:fe(Gi),packageType:fe(Oc),platformId:L(b()),archiveId:L(b())}),YQ=k({...iM.shape,...ow.shape}),e5=k({...aM.shape,...ow.shape}),t5=k({name:b(),version:b()});var sM=Rt(require("path")),cM=Rt(require("fs/promises"));var aa=require("node:stream");var kp=class{constructor(t,n){this.baseUrl=t;this.authenticationConverter=n}static{a(this,"BaseHttpClient")}getUrl(t){let n=new URL(`${this.baseUrl}${t.url}`),o=`${n.origin}${n.pathname}`,r=new URLSearchParams;return n.searchParams.forEach((i,s)=>{r.append(s,i)}),{urlWithoutQueryParams:o,queryParams:r}}getHeaders(t){let n={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,n),t.body&&(t.headers?.["Content-Type"]==="text/csv"?n["Content-Type"]="text/csv":n["Content-Type"]="application/json"),t.headers&&(n={...n,...t.headers}),n}populateAuthentication(t,n){this.authenticationConverter.convert(t,n)}};var $p=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(t=new hb,n=new gb){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},hb=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},gb=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(t,n){let o=`${t.username}:${t.password}`,r=Buffer.from(o).toString("base64");return n.Authorization=`Basic ${r}`,n}};var Jc=class extends Error{constructor(n,o){let r=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:n}}));this.requestBody=n;this.status=r,this.responseBody=i}static{a(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function iw({error:e,requestBody:t}){return e instanceof Jc?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}a(iw,"toFailsafeOutput");var Vt=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(Vt||{});var Np=class extends kp{static{a(this,"FetchHttpClient")}constructor(t="",n=new $p){super(t,n)}async sendRequest(t,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),s=t.queryParams??{};for(let[V,W]of Object.entries(s))r.append(V,W);let u=r.toString(),d=u?`${o}?${u}`:o,p=t.responseType??"json",f=t.followRedirects??!0,g=t.retries??0,{body:y,extraHeaders:h,isStream:_}=zp(t.method)?uM(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},P=dM({...i,...h}),S=await lM(async()=>{let V=new AbortController,W=t.timeout&&t.timeout>0?setTimeout(()=>V.abort(),t.timeout):void 0;try{let H={method:t.method.toString(),headers:P,body:y,redirect:f?"follow":"manual",signal:V.signal};return _&&(H.duplex="half"),n?.dispatcher!==void 0&&(H.dispatcher=n.dispatcher),await fetch(d,H)}finally{W!==void 0&&clearTimeout(W)}},_?0:g),T=f?300:400;if(S.status<200||S.status>=T){let V=await aw(S,p==="stream"?"text":p),W=new Jc(t.body,{status:S.status,responseBody:V});throw console.error("[HttpClient#(sanitized error message)] Request failed:",W),W}let R=await aw(S,p);return{status:S.status,headers:pM(S.headers),body:R}}};function zp(e){return e!=="GET"&&e!=="HEAD"}a(zp,"acceptsRequestBody");function uM(e,t){if(cw(e))return{body:void 0,extraHeaders:{},isStream:!1};if(mM(e)){let o=fM(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new aa.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof aa.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}a(uM,"serializeBody");async function aw(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return cw(e.body)?aa.Readable.from([]):aa.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let n=await e.text();if(n.length===0)return;try{return JSON.parse(n)}catch{return n}}}}a(aw,"parseResponseBody");async function lM(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await sw(o);continue}return r}catch(r){if(n=r,o<t){await sw(o);continue}throw r}throw n}a(lM,"sendWithRetries");function sw(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}a(sw,"backoff");function dM(e){let t=new Map;for(let[n,o]of Object.entries(e))o!==void 0&&t.set(n.toLowerCase(),[n,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(t.values())}a(dM,"normalizeHeaders");function pM(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}a(pM,"toHttpHeaders");function fM(e){if(!e.hasKnownLength()||e.getLengthSync()>hM)return null;let{data:t}=zy(()=>e.getBuffer());return t}a(fM,"bufferFormDataIfSafe");function mM(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}a(mM,"isNodeFormData");function cw(e){return e==null}a(cw,"isNil");var hM=100*1024*1024;var Ie=new Np;var r1=Rt(require("fs"));var n1={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function o1(e){let t=e.split(";")[0].trim().toLowerCase();return n1[t]??""}a(o1,"contentTypeToExtension");var i1=a(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),a1=a((e,t)=>{let n="https://api.example.com";try{let o=t?e(t):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??n}catch{return n}},"getBaseUrlForDescription");function mR({auth:e,baseUrl:t,authMapping:n,description:o,displayName:r,name:i,props:s,extraProps:u,authLocation:d="headers",classification:p="WRITE"}){return pt({audience:"human",name:i||"custom_api_call",classification:p,displayName:r||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:oe.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:oe.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${a1(t,f)}`,required:!0,placeholder:"/resource",defaultValue:f?t(f):"",...s?.url??{}})}),"props")}),method:oe.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Vt).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:oe.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:oe.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:oe.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>zp(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:oe.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:g})=>{if(!f||!zp(g))return{};let y=f,h={};switch(y){case"none":break;case"json":h.data=oe.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=oe.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=oe.Array({displayName:"Form Data",required:!0,properties:{fieldName:oe.ShortText({displayName:"Field Name",required:!0}),fieldType:oe.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:oe.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:oe.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:oe.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:oe.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...s?.failsafe??{}}),timeout:oe.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...s?.timeout??{}}),followRedirects:oe.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...s?.followRedirects??{}}),...u},run:a(async f=>{let{method:g,url:y,headers:h,queryParams:_,body:P,body_type:S,failsafe:T,timeout:R,response_is_binary:V,followRedirects:W}=f.propsValue;Wd(g,"Method"),Wd(y,"URL");let H=st(n)?{}:await n(f.auth,f.propsValue),G=y.url,re=G.startsWith("http://")||G.startsWith("https://")?G:i1({baseUrl:t(f.auth),relativePath:G}),ue={method:g,url:re,headers:{...h??{},...d==="headers"||!st(d)?H:{}},queryParams:{...d==="queryParams"?H:{},..._??{}},timeout:R?R*1e3:0,followRedirects:W};if(V&&(ue.responseType="arraybuffer"),P)if(S&&S!=="none"){let Y=P.data;if(S==="form_data"){let Ze=Y,{default:Ce}=await Promise.resolve().then(()=>Rt(fR())),Se=new Ce;for(let{fieldName:Le,fieldType:Me,textFieldValue:Ge,fileFieldValue:He}of Ze)Me==="text"&&!zc(Ge)?Se.append(Le,Ge):Me==="file"&&!zc(He)&&Se.append(Le,He.data,{filename:He?.filename});ue.body=Se,ue.headers={...ue.headers,...Se.getHeaders()}}else ue.body=Y}else S||(ue.body=P);try{let Y=await Ie.sendRequest(ue);return await s1(f.files,Y.body,Y.status,Y.headers,V)}catch(Y){if(T)return iw({error:Y,requestBody:ue.body});throw Y}},"run")})}a(mR,"createCustomApiCallAction");var s1=a(async(e,t,n,o,r)=>{let i;if(r&&c1(t)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=o1(s??"")||"txt",d;t instanceof ArrayBuffer?d=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?d=t:d=Buffer.from(t),i=await e.write({fileName:`output.${u}`,data:d})}else i=t;return{status:n,headers:o,body:i}},"handleBinaryResponse"),c1=a(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var ft={async poll(e,{store:t,auth:n,propsValue:o,maxItemsToPoll:r,files:i,server:s}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(st(u))throw new Error("lastPoll doesn't exist in the store.");let d=await e.items({store:t,auth:n,propsValue:o,lastFetchEpochMS:u,server:s}),p=d.reduce((f,g)=>Math.max(f,g.epochMilliSeconds),u);return await t.put("lastPoll",p),d.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await t.get("lastItem"),d=await e.items({store:t,auth:n,propsValue:o,lastItemId:u,files:i,server:s}),p=d.findIndex(y=>y.id===u),f=[];st(u)||p==-1?f=d??[]:f=d?.slice(0,p)??[],st(r)||(f=f.slice(-r));let g=f?.[0]?.id;return st(g)||await t.put("lastItem",g),f.map(y=>y.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!st(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!st(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;st(u)?await t.delete("lastItem"):await t.put("lastItem",u);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:n,store:o,files:r,server:i}){let s=[];switch(e.strategy){case 0:{s=await e.items({store:o,auth:t,propsValue:n,lastFetchEpochMS:0,server:i});break}case 1:{s=await e.items({store:o,auth:t,propsValue:n,lastItemId:null,files:r,server:i});break}}return u1(s.map(u=>u.data))}};function u1(e){return e.length<=5?e:e.slice(0,5)}a(u1,"getFirstFiveOrAll");var nP=Rt(v0());var $e="https://bigquery.googleapis.com/bigquery/v2",rP=["https://www.googleapis.com/auth/bigquery","email"],je=[Cp.OAuth2({description:"Sign in with your Google account. If you are using your own OAuth2 credentials, make sure to include the following scope: `https://www.googleapis.com/auth/bigquery`",authUrl:"https://accounts.google.com/o/oauth2/auth",tokenUrl:"https://oauth2.googleapis.com/token",required:!0,scope:rP}),Cp.CustomAuth({displayName:"Service Account",description:"Use a GCP service account for automated, server-to-server access \u2014 no user sign-in required. Recommended for production workflows.",required:!0,props:{instructions:oe.MarkDown({value:`**How to create a service account key:**
94
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let u=s[1];if(t===s[0]){i(s);continue}if(e.external){let p=e.external.registry.get(s[0])?.id;if(t!==s[0]&&p){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(u.cycle){i(s);continue}if(u.count>1&&e.reused==="ref"){i(s);continue}}}a(ro,"extractDefs");function no(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a(s=>{let u=e.seen.get(s);if(u.ref===null)return;let d=u.def??u.schema,p={...d},f=u.ref;if(u.ref=null,f){o(f);let y=e.seen.get(f),h=y.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(h)):Object.assign(d,h),Object.assign(d,p),s._zod.parent===f)for(let P in d)P==="$ref"||P==="allOf"||P in p||delete d[P];if(h.$ref&&y.def)for(let P in d)P==="$ref"||P==="allOf"||P in y.def&&JSON.stringify(d[P])===JSON.stringify(y.def[P])&&delete d[P]}let g=s._zod.parent;if(g&&g!==f){o(g);let y=e.seen.get(g);if(y?.schema.$ref&&(d.$ref=y.schema.$ref,y.def))for(let h in d)h==="$ref"||h==="allOf"||h in y.def&&JSON.stringify(d[h])===JSON.stringify(y.def[h])&&delete d[h]}e.override({zodSchema:s,jsonSchema:d,path:u.path??[]})},"flattenRef");for(let s of[...e.seen.entries()].reverse())o(s[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let i=e.external?.defs??{};for(let s of e.seen.entries()){let u=s[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Hi(t,"input",e.processors),output:Hi(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}a(no,"finalize");function Bt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Bt(o.element,n);if(o.type==="set")return Bt(o.valueType,n);if(o.type==="lazy")return Bt(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Bt(o.innerType,n);if(o.type==="intersection")return Bt(o.left,n)||Bt(o.right,n);if(o.type==="record"||o.type==="map")return Bt(o.keyType,n)||Bt(o.valueType,n);if(o.type==="pipe")return Bt(o.in,n)||Bt(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Bt(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Bt(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Bt(r,n))return!0;return!!(o.rest&&Bt(o.rest,n))}return!1}a(Bt,"isTransforming");var jg=a((e,t={})=>n=>{let o=to({...n,processors:t});return Ve(e,o),ro(o,e),no(o,e)},"createToJSONSchemaMethod"),Hi=a((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},s=to({...r??{},target:i,io:t,processors:n});return Ve(e,s),ro(s,e),no(s,e)},"createStandardJSONSchemaMethod");var ND={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Mg=a((e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:s,format:u,patterns:d,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof s=="number"&&(r.maxLength=s),u&&(r.format=ND[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),p&&(r.contentEncoding=p),d&&d.size>0){let f=[...d];f.length===1?r.pattern=f[0].source:f.length>1&&(r.allOf=[...f.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},"stringProcessor"),Lg=a((e,t,n,o)=>{let r=n,{minimum:i,maximum:s,format:u,multipleOf:d,exclusiveMaximum:p,exclusiveMinimum:f}=e._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=f,r.exclusiveMinimum=!0):r.exclusiveMinimum=f),typeof i=="number"&&(r.minimum=i,typeof f=="number"&&t.target!=="draft-04"&&(f>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=p,r.exclusiveMaximum=!0):r.exclusiveMaximum=p),typeof s=="number"&&(r.maximum=s,typeof p=="number"&&t.target!=="draft-04"&&(p<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof d=="number"&&(r.multipleOf=d)},"numberProcessor"),Fg=a((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),Bg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),qg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Vg=a((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Hg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Zg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Gg=a((e,t,n,o)=>{n.not={}},"neverProcessor"),Wg=a((e,t,n,o)=>{},"anyProcessor"),Jg=a((e,t,n,o)=>{},"unknownProcessor"),Kg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Xg=a((e,t,n,o)=>{let r=e._zod.def,i=Ya(r.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),Qg=a((e,t,n,o)=>{let r=e._zod.def,i=[];for(let s of r.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},"literalProcessor"),Yg=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),ey=a((e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),ty=a((e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:u,mime:d}=e._zod.bag;s!==void 0&&(i.minLength=s),u!==void 0&&(i.maxLength=u),d?d.length===1?(i.contentMediaType=d[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=d.map(p=>({contentMediaType:p}))):Object.assign(r,i)},"fileProcessor"),ry=a((e,t,n,o)=>{n.type="boolean"},"successProcessor"),ny=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),oy=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),iy=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),ay=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),sy=a((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),cy=a((e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof u=="number"&&(r.maxItems=u),r.type="array",r.items=Ve(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),uy=a((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object",r.properties={};let s=i.shape;for(let p in s)r.properties[p]=Ve(s[p],t,{...o,path:[...o.path,"properties",p]});let u=new Set(Object.keys(s)),d=new Set([...u].filter(p=>{let f=i.shape[p]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));d.size>0&&(r.required=Array.from(d)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=Ve(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),jd=a((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,s=r.options.map((u,d)=>Ve(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",d]}));i?n.oneOf=s:n.anyOf=s},"unionProcessor"),ly=a((e,t,n,o)=>{let r=e._zod.def,i=Ve(r.left,t,{...o,path:[...o.path,"allOf",0]}),s=Ve(r.right,t,{...o,path:[...o.path,"allOf",1]}),u=a(p=>"allOf"in p&&Object.keys(p).length===1,"isSimpleIntersection"),d=[...u(i)?i.allOf:[i],...u(s)?s.allOf:[s]];n.allOf=d},"intersectionProcessor"),dy=a((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",d=i.items.map((y,h)=>Ve(y,t,{...o,path:[...o.path,s,h]})),p=i.rest?Ve(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=d,p&&(r.items=p)):t.target==="openapi-3.0"?(r.items={anyOf:d},p&&r.items.anyOf.push(p),r.minItems=d.length,p||(r.maxItems=d.length)):(r.items=d,p&&(r.additionalItems=p));let{minimum:f,maximum:g}=e._zod.bag;typeof f=="number"&&(r.minItems=f),typeof g=="number"&&(r.maxItems=g)},"tupleProcessor"),py=a((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let s=i.keyType,d=s._zod.bag?.patterns;if(i.mode==="loose"&&d&&d.size>0){let f=Ve(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let g of d)r.patternProperties[g.source]=f}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Ve(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=Ve(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let p=s._zod.values;if(p){let f=[...p].filter(g=>typeof g=="string"||typeof g=="number");f.length>0&&(r.required=f)}},"recordProcessor"),fy=a((e,t,n,o)=>{let r=e._zod.def,i=Ve(r.innerType,t,o),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},"nullableProcessor"),my=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),hy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),gy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),yy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},"catchProcessor"),_y=a((e,t,n,o)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;Ve(i,t,o);let s=t.seen.get(e);s.ref=i},"pipeProcessor"),by=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),vy=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),Md=a((e,t,n,o)=>{let r=e._zod.def;Ve(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),Ey=a((e,t,n,o)=>{let r=e._zod.innerType;Ve(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Ud={string:Mg,number:Lg,boolean:Fg,bigint:Bg,symbol:qg,null:Vg,undefined:Hg,void:Zg,never:Gg,any:Wg,unknown:Jg,date:Kg,enum:Xg,literal:Qg,nan:Yg,template_literal:ey,file:ty,success:ry,custom:ny,function:oy,transform:iy,map:ay,set:sy,array:cy,object:uy,union:jd,intersection:ly,tuple:dy,record:py,nullable:fy,nonoptional:my,default:hy,prefault:gy,catch:yy,pipe:_y,readonly:by,promise:vy,optional:Md,lazy:Ey};function Pc(e,t){if("_idmap"in e){let o=e,r=to({...t,processors:Ud}),i={};for(let d of o._idmap.entries()){let[p,f]=d;Ve(f,r)}let s={},u={registry:o,uri:t?.uri,defs:i};r.external=u;for(let d of o._idmap.entries()){let[p,f]=d;ro(r,f),s[p]=no(r,f)}if(Object.keys(i).length>0){let d=r.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[d]:i}}return{schemas:s}}let n=to({...t,processors:Ud});return Ve(e,n),ro(n,e),no(n,e)}a(Pc,"toJSONSchema");var Ld=class{static{a(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=to({processors:Ud,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Ve(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),ro(this.ctx,t);let o=no(this.ctx,t),{"~standard":r,...i}=o;return i}};var eT={};var dt=w("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");ge.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>Co(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>$i(e,n,o),e.parseAsync=async(n,o)=>Oo(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>zi(e,n,o),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(n,o)=>vt(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Fd=w("ZodMiniString",(e,t)=>{xn.init(e,t),dt.init(e,t)});function b(e){return $s(Fd,e)}a(b,"string");var Zi=w("ZodMiniStringFormat",(e,t)=>{qe.init(e,t),Fd.init(e,t)});var UD=w("ZodMiniURL",(e,t)=>{cs.init(e,t),Zi.init(e,t)});function tT(e){return zo(UD,e)}a(tT,"url");var Bd=w("ZodMiniNumber",(e,t)=>{Ui.init(e,t),dt.init(e,t)});function Pt(e){return ic(Bd,e)}a(Pt,"number");var jD=w("ZodMiniNumberFormat",(e,t)=>{fs.init(e,t),Bd.init(e,t)});function rT(e){return sc(jD,e)}a(rT,"int");var Py=w("ZodMiniBoolean",(e,t)=>{$o.init(e,t),dt.init(e,t)});function ze(e){return cc(Py,e)}a(ze,"boolean");var nT=w("ZodMiniBigInt",(e,t)=>{ji.init(e,t),dt.init(e,t)});var MD=w("ZodMiniAny",(e,t)=>{ms.init(e,t),dt.init(e,t)});function Sc(){return dc(MD)}a(Sc,"any");var LD=w("ZodMiniUnknown",(e,t)=>{hs.init(e,t),dt.init(e,t)});function be(){return pc(LD)}a(be,"unknown");var FD=w("ZodMiniVoid",(e,t)=>{gs.init(e,t),dt.init(e,t)});function oT(e){return fc(FD,e)}a(oT,"_void");var iT=w("ZodMiniDate",(e,t)=>{ys.init(e,t),dt.init(e,t)});var BD=w("ZodMiniArray",(e,t)=>{_s.init(e,t),dt.init(e,t)});function he(e,t){return new BD({type:"array",element:e,...J(t)})}a(he,"array");var qD=w("ZodMiniObject",(e,t)=>{Kl.init(e,t),dt.init(e,t),Te(e,"shape",()=>t.shape)});function k(e,t){let n={type:"object",shape:e??{},...J(t)};return new qD(n)}a(k,"object");var VD=w("ZodMiniUnion",(e,t)=>{No.init(e,t),dt.init(e,t)});function xe(e,t){return new VD({type:"union",options:e,...J(t)})}a(xe,"union");var HD=w("ZodMiniDiscriminatedUnion",(e,t)=>{bs.init(e,t),dt.init(e,t)});function oo(e,t,n){return new HD({type:"union",options:t,discriminator:e,...J(n)})}a(oo,"discriminatedUnion");var ZD=w("ZodMiniRecord",(e,t)=>{Es.init(e,t),dt.init(e,t)});function ve(e,t,n){return new ZD({type:"record",keyType:e,valueType:t,...J(n)})}a(ve,"record");var GD=w("ZodMiniEnum",(e,t)=>{Ps.init(e,t),dt.init(e,t),e.options=Object.values(t.entries)});function fe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new GD({type:"enum",entries:n,...J(t)})}a(fe,"_enum");var WD=w("ZodMiniLiteral",(e,t)=>{Ss.init(e,t),dt.init(e,t)});function de(e,t){return new WD({type:"literal",values:Array.isArray(e)?e:[e],...J(t)})}a(de,"literal");var JD=w("ZodMiniTransform",(e,t)=>{Ts.init(e,t),dt.init(e,t)});function io(e){return new JD({type:"transform",transform:e})}a(io,"transform");var KD=w("ZodMiniOptional",(e,t)=>{Mi.init(e,t),dt.init(e,t)});function L(e){return new KD({type:"optional",innerType:e})}a(L,"optional");var XD=w("ZodMiniNullable",(e,t)=>{xs.init(e,t),dt.init(e,t)});function Tc(e){return new XD({type:"nullable",innerType:e})}a(Tc,"nullable");var QD=w("ZodMiniPipe",(e,t)=>{As.init(e,t),dt.init(e,t)});function ao(e,t){return new QD({type:"pipe",in:e,out:t})}a(ao,"pipe");var aT=w("ZodMiniCustom",(e,t)=>{ws.init(e,t),dt.init(e,t)});function qd(e,t){return vc(aT,e??(()=>!0),t)}a(qd,"custom");function Sy(e,t={}){return Ec(aT,e,t)}a(Sy,"refine");var Vd={};Jt(Vd,{ZodMiniISODate:()=>xy,ZodMiniISODateTime:()=>Ty,ZodMiniISODuration:()=>wy,ZodMiniISOTime:()=>Ay,date:()=>eU,datetime:()=>YD,duration:()=>rU,time:()=>tU});var Ty=w("ZodMiniISODateTime",(e,t)=>{us.init(e,t),Zi.init(e,t)});function YD(e){return tc(Ty,e)}a(YD,"datetime");var xy=w("ZodMiniISODate",(e,t)=>{ls.init(e,t),Zi.init(e,t)});function eU(e){return rc(xy,e)}a(eU,"date");var Ay=w("ZodMiniISOTime",(e,t)=>{ds.init(e,t),Zi.init(e,t)});function tU(e){return nc(Ay,e)}a(tU,"time");var wy=w("ZodMiniISODuration",(e,t)=>{ps.init(e,t),Zi.init(e,t)});function rU(e){return oc(wy,e)}a(rU,"duration");var xc={};Jt(xc,{bigint:()=>aU,boolean:()=>iU,date:()=>sU,number:()=>oU,string:()=>nU});function nU(e){return Ns(Fd,e)}a(nU,"string");function oU(e){return ac(Bd,e)}a(oU,"number");function iU(e){return uc(Py,e)}a(iU,"boolean");function aU(e){return lc(nT,e)}a(aU,"bigint");function sU(e){return mc(iT,e)}a(sU,"date");var Ry=k({retryOnFailure:k({defaultValue:L(ze()),hide:L(ze())}),continueOnFailure:k({defaultValue:L(ze()),hide:L(ze())})}),Iy=class{constructor(t,n,o,r,i,s,u,d,p,f,g,y,h){this.name=t;this.displayName=n;this.description=o;this.props=r;this.propertyGroups=i;this.run=s;this.test=u;this.requireAuth=d;this.errorHandlingOptions=p;this.outputSchema=f;this.audience=g;this.aiMetadata=y;this.classification=h}static{a(this,"IAction")}},pt=a(e=>new Iy(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ke=k({displayName:b(),description:L(b()),advanced:L(ze()),width:L(fe(["half","full"])),icon:L(b()),placeholder:L(b())}),Ee=a((e,t)=>k({type:de(t),required:ze(),defaultValue:L(Sc())}),"TPropertyValue");var dr=k({...ke.shape,...Ee(b(),"SHORT_TEXT").shape}),In=k({...ke.shape,...Ee(b(),"LONG_TEXT").shape});var cT=k({label:b(),value:be(),description:L(b()),icon:L(b())}),Hd=k({disabled:L(ze()),placeholder:L(b()),options:he(cT)});var uU=fe(["cards"]),pr=k({...ke.shape,options:Hd,display:L(uU),...Ee(be(),"STATIC_DROPDOWN").shape}),Rn=k({...ke.shape,options:Hd,...Ee(he(be()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Cy=k({...ke.shape,...Ee(be(),"DROPDOWN").shape,refreshers:he(b())}),Ac=k({...ke.shape,...Ee(he(be()),"MULTI_SELECT_DROPDOWN").shape,refreshers:he(b())});var Cn=k({...ke.shape,reveals:L(he(b())),...Ee(ze(),"CHECKBOX").shape});var On=k({...ke.shape,display:L(fe(["stepper"])),min:L(Pt()),max:L(Pt()),step:L(Pt()),...Ee(Pt(),"NUMBER").shape});var wc=k({...ke.shape,streaming:L(ze()),...Ee(be(),"FILE").shape});var Ic=k({...ke.shape,...Ee(b(),"DATE_TIME").shape});var uT=ve(b(),xe([dr,In,pr,Ac,Rn,Cn,On,wc,Ic])),Rc=k({...ke.shape,properties:uT,...Ee(he(be()),"ARRAY").shape});var lT=fe(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),dT=k({preset:L(lT),after:L(b()),before:L(b())}),Oy=k({...ke.shape,display:L(fe(["dropdown"])),...Ee(dT,"DATE_RANGE").shape});var Cc=k({...ke.shape,...Ee(xe([ve(b(),be())]),"JSON").shape});var pT=xe([dr,pr,Cc,Rc,Rn]),lU=ve(b(),pT),ky=k({refreshers:he(b()),...ke.shape,...Ee(be(),"DYNAMIC").shape});var Zd=k({...ke.shape,...Ee(oT(),"MARKDOWN").shape});var Oc=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(Oc||{}),Gi=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Gi||{}),Wi=(T=>(T.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",T.COMMUNICATION="COMMUNICATION",T.COMMERCE="COMMERCE",T.CORE="CORE",T.UNIVERSAL_AI="UNIVERSAL_AI",T.FLOW_CONTROL="FLOW_CONTROL",T.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",T.ACCOUNTING="ACCOUNTING",T.PRODUCTIVITY="PRODUCTIVITY",T.CONTENT_AND_FILES="CONTENT_AND_FILES",T.DEVELOPER_TOOLS="DEVELOPER_TOOLS",T.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",T.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",T.HUMAN_RESOURCES="HUMAN_RESOURCES",T.PAYMENT_PROCESSING="PAYMENT_PROCESSING",T.MARKETING="MARKETING",T.SALES_AND_CRM="SALES_AND_CRM",T))(Wi||{});var kc=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(kc||{}),$y="both_client_credentials_and_authorization_code";var Vr=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(Vr||{}),$c=(i=>(i.NONE="NONE",i.HEADER_PRESENT="HEADER_PRESENT",i.QUERY_PRESENT="QUERY_PRESENT",i.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",i.HEAD_REQUEST="HEAD_REQUEST",i))($c||{}),dU=k({strategy:fe($c),paramName:L(b())}),Nc=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(Nc||{});var Gd=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(Gd||{}),fT=k({status:L(Pt()),body:L(be()),headers:L(ve(b(),b()))}),mT=k({type:de("DELAY"),resumeDateTime:b(),requestIdToReply:L(b()),handlerId:L(b()),streamStepProgress:L(fe(Gd))}),hT=k({type:de("WEBHOOK"),requestId:b(),requestIdToReply:L(b()),response:fT,handlerId:L(b()),streamStepProgress:L(fe(Gd))}),pU=xe([mT,hT]);var fU=k({body:be(),rawBody:L(be()),headers:ve(b(),b()),queryParams:ve(b(),b())});function st(e){return e==null}a(st,"isNil");function zc(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}a(zc,"isEmpty");function Wd(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}a(Wd,"assertNotNullOrUndefined");function zy(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}a(zy,"tryCatchSync");var Dy=Rt(require("crypto"),1);var mU=128,so,Ji,hU=a(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!so||so.length<e?(so=Buffer.allocUnsafe(e*mU),Dy.default.randomFillSync(so),Ji=0):Ji+e>so.length&&(Dy.default.randomFillSync(so),Ji=0)}catch(t){throw so=void 0,t}Ji+=e},"fillPool"),gU=a(e=>(hU(e|=0),so.subarray(Ji-e,Ji)),"random"),yU=a((e,t,n)=>{let o=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*o*t/e.length);return(i=t)=>{if(i<=0)return"";let s="";for(;;){let u=n(r),d=r;for(;d--;)if(s+=e[u[d]&o]||"",s.length===i)return s}}},"customRandom"),gT=a((e,t=21)=>yU(e,t,gU),"customAlphabet");var _U="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",yT=21,eW=b().check(Ct(new RegExp(`^[0-9a-zA-Z]{${yT}}$`))),bU=gT(_U,yT);var co=ao(io(e=>e instanceof Date?e.toISOString():e),b()),Ir={id:b(),created:co,updated:co},ct=a(e=>L(Tc(e)),"Nullable");function Uy(e){return L(Tc(fe(e)))}a(Uy,"NullableEnum");var nW=ao(io(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),L(ze())),oW=L(Vd.datetime({offset:!0}).check(Sy(e=>e.slice(0,4)!=="0000"))),Jd=a(e=>ao(io(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),L(he(e))),"OptionalArrayFromQuery");var sW=ve(b(),be());var uo=(T=>(T.OPENAI="openai",T.OPENROUTER="openrouter",T.ANTHROPIC="anthropic",T.AZURE="azure",T.GOOGLE="google",T.ACTIVEPIECES="activepieces",T.CLOUDFLARE_GATEWAY="cloudflare-gateway",T.CUSTOM="custom",T.BEDROCK="bedrock",T.VERTEX="vertex",T.MISTRAL="mistral",T.XAI="xai",T.DEEPSEEK="deepseek",T.ZAI="zai",T.QWEN="qwen",T.MINIMAX="minimax",T.MOONSHOT="moonshot",T))(uo||{});var te={};Jt(te,{$brand:()=>Xa,$input:()=>gd,$output:()=>hd,NEVER:()=>rl,TimePrecision:()=>_d,ZodAny:()=>s_,ZodArray:()=>d_,ZodBase64:()=>gp,ZodBase64URL:()=>yp,ZodBigInt:()=>ra,ZodBigIntFormat:()=>vp,ZodBoolean:()=>ta,ZodCIDRv4:()=>mp,ZodCIDRv6:()=>hp,ZodCUID:()=>sp,ZodCUID2:()=>cp,ZodCatch:()=>$_,ZodCodec:()=>Ip,ZodCustom:()=>Gc,ZodCustomStringFormat:()=>Yi,ZodDate:()=>Bc,ZodDefault:()=>w_,ZodDiscriminatedUnion:()=>f_,ZodE164:()=>_p,ZodEmail:()=>op,ZodEmoji:()=>ip,ZodEnum:()=>Xi,ZodError:()=>vU,ZodExactOptional:()=>T_,ZodFile:()=>P_,ZodFirstPartyTypeKind:()=>H_,ZodFunction:()=>B_,ZodGUID:()=>Uc,ZodIPv4:()=>pp,ZodIPv6:()=>fp,ZodISODate:()=>Qd,ZodISODateTime:()=>Xd,ZodISODuration:()=>ep,ZodISOTime:()=>Yd,ZodIntersection:()=>m_,ZodIssueCode:()=>PU,ZodJWT:()=>bp,ZodKSUID:()=>dp,ZodLazy:()=>M_,ZodLiteral:()=>E_,ZodMAC:()=>e_,ZodMap:()=>b_,ZodNaN:()=>z_,ZodNanoID:()=>ap,ZodNever:()=>u_,ZodNonOptional:()=>Ap,ZodNull:()=>i_,ZodNullable:()=>A_,ZodNumber:()=>ea,ZodNumberFormat:()=>Wo,ZodObject:()=>Vc,ZodOptional:()=>xp,ZodPipe:()=>wp,ZodPrefault:()=>R_,ZodPromise:()=>F_,ZodReadonly:()=>D_,ZodRealError:()=>Yt,ZodRecord:()=>Zc,ZodSet:()=>v_,ZodString:()=>Qi,ZodStringFormat:()=>Ke,ZodSuccess:()=>k_,ZodSymbol:()=>n_,ZodTemplateLiteral:()=>j_,ZodTransform:()=>S_,ZodTuple:()=>g_,ZodType:()=>Ae,ZodULID:()=>up,ZodURL:()=>Fc,ZodUUID:()=>nn,ZodUndefined:()=>o_,ZodUnion:()=>Hc,ZodUnknown:()=>c_,ZodVoid:()=>l_,ZodXID:()=>lp,ZodXor:()=>p_,_ZodString:()=>np,_default:()=>I_,_function:()=>Tx,any:()=>rx,array:()=>qc,base64:()=>MT,base64url:()=>LT,bigint:()=>XT,boolean:()=>r_,catch:()=>N_,check:()=>xx,cidrv4:()=>UT,cidrv6:()=>jT,clone:()=>vt,codec:()=>Ex,coerce:()=>Z_,config:()=>at,core:()=>lr,cuid:()=>RT,cuid2:()=>CT,custom:()=>Ax,date:()=>ox,decode:()=>Gy,decodeAsync:()=>Jy,describe:()=>wx,discriminatedUnion:()=>lx,e164:()=>FT,email:()=>bT,emoji:()=>wT,encode:()=>Zy,encodeAsync:()=>Wy,endsWith:()=>Lo,enum:()=>Sp,exactOptional:()=>x_,file:()=>yx,flattenError:()=>Ii,float32:()=>GT,float64:()=>WT,formatError:()=>Ri,fromJSONSchema:()=>Nx,function:()=>Tx,getErrorMap:()=>TU,globalRegistry:()=>Et,gt:()=>Br,gte:()=>_t,guid:()=>vT,hash:()=>ZT,hex:()=>HT,hostname:()=>VT,httpUrl:()=>AT,includes:()=>jo,instanceof:()=>Rx,int:()=>rp,int32:()=>JT,int64:()=>QT,intersection:()=>h_,ipv4:()=>NT,ipv6:()=>DT,iso:()=>Ki,json:()=>Ox,jwt:()=>BT,keyof:()=>ix,ksuid:()=>$T,lazy:()=>L_,length:()=>eo,literal:()=>gx,locales:()=>Bi,looseObject:()=>cx,looseRecord:()=>px,lowercase:()=>Do,lt:()=>Fr,lte:()=>Ft,mac:()=>zT,map:()=>fx,maxLength:()=>Yn,maxSize:()=>wn,meta:()=>Ix,mime:()=>Fo,minLength:()=>lt,minSize:()=>qr,multipleOf:()=>An,nan:()=>vx,nanoid:()=>IT,nativeEnum:()=>hx,negative:()=>gc,never:()=>Ep,nonnegative:()=>_c,nonoptional:()=>O_,nonpositive:()=>yc,normalize:()=>Bo,null:()=>a_,nullable:()=>Mc,nullish:()=>_x,number:()=>t_,object:()=>ax,optional:()=>jc,overwrite:()=>wr,parse:()=>By,parseAsync:()=>qy,partialRecord:()=>dx,pipe:()=>Lc,positive:()=>hc,prefault:()=>C_,preprocess:()=>kx,prettifyError:()=>sl,promise:()=>Sx,property:()=>bc,readonly:()=>U_,record:()=>__,refine:()=>q_,regex:()=>Ct,regexes:()=>Qt,registry:()=>ks,safeDecode:()=>Xy,safeDecodeAsync:()=>Yy,safeEncode:()=>Ky,safeEncodeAsync:()=>Qy,safeParse:()=>Vy,safeParseAsync:()=>Hy,set:()=>mx,setErrorMap:()=>SU,size:()=>Qn,slugify:()=>Vi,startsWith:()=>Mo,strictObject:()=>sx,string:()=>tp,stringFormat:()=>qT,stringbool:()=>Cx,success:()=>bx,superRefine:()=>V_,symbol:()=>ex,templateLiteral:()=>Px,toJSONSchema:()=>Pc,toLowerCase:()=>Vo,toUpperCase:()=>Ho,transform:()=>Tp,treeifyError:()=>al,trim:()=>qo,tuple:()=>y_,uint32:()=>KT,uint64:()=>YT,ulid:()=>OT,undefined:()=>tx,union:()=>Pp,unknown:()=>Go,uppercase:()=>Uo,url:()=>xT,util:()=>X,uuid:()=>ET,uuidv4:()=>PT,uuidv6:()=>ST,uuidv7:()=>TT,void:()=>nx,xid:()=>kT,xor:()=>ux});var Dc={};Jt(Dc,{ZodAny:()=>s_,ZodArray:()=>d_,ZodBase64:()=>gp,ZodBase64URL:()=>yp,ZodBigInt:()=>ra,ZodBigIntFormat:()=>vp,ZodBoolean:()=>ta,ZodCIDRv4:()=>mp,ZodCIDRv6:()=>hp,ZodCUID:()=>sp,ZodCUID2:()=>cp,ZodCatch:()=>$_,ZodCodec:()=>Ip,ZodCustom:()=>Gc,ZodCustomStringFormat:()=>Yi,ZodDate:()=>Bc,ZodDefault:()=>w_,ZodDiscriminatedUnion:()=>f_,ZodE164:()=>_p,ZodEmail:()=>op,ZodEmoji:()=>ip,ZodEnum:()=>Xi,ZodExactOptional:()=>T_,ZodFile:()=>P_,ZodFunction:()=>B_,ZodGUID:()=>Uc,ZodIPv4:()=>pp,ZodIPv6:()=>fp,ZodIntersection:()=>m_,ZodJWT:()=>bp,ZodKSUID:()=>dp,ZodLazy:()=>M_,ZodLiteral:()=>E_,ZodMAC:()=>e_,ZodMap:()=>b_,ZodNaN:()=>z_,ZodNanoID:()=>ap,ZodNever:()=>u_,ZodNonOptional:()=>Ap,ZodNull:()=>i_,ZodNullable:()=>A_,ZodNumber:()=>ea,ZodNumberFormat:()=>Wo,ZodObject:()=>Vc,ZodOptional:()=>xp,ZodPipe:()=>wp,ZodPrefault:()=>R_,ZodPromise:()=>F_,ZodReadonly:()=>D_,ZodRecord:()=>Zc,ZodSet:()=>v_,ZodString:()=>Qi,ZodStringFormat:()=>Ke,ZodSuccess:()=>k_,ZodSymbol:()=>n_,ZodTemplateLiteral:()=>j_,ZodTransform:()=>S_,ZodTuple:()=>g_,ZodType:()=>Ae,ZodULID:()=>up,ZodURL:()=>Fc,ZodUUID:()=>nn,ZodUndefined:()=>o_,ZodUnion:()=>Hc,ZodUnknown:()=>c_,ZodVoid:()=>l_,ZodXID:()=>lp,ZodXor:()=>p_,_ZodString:()=>np,_default:()=>I_,_function:()=>Tx,any:()=>rx,array:()=>qc,base64:()=>MT,base64url:()=>LT,bigint:()=>XT,boolean:()=>r_,catch:()=>N_,check:()=>xx,cidrv4:()=>UT,cidrv6:()=>jT,codec:()=>Ex,cuid:()=>RT,cuid2:()=>CT,custom:()=>Ax,date:()=>ox,describe:()=>wx,discriminatedUnion:()=>lx,e164:()=>FT,email:()=>bT,emoji:()=>wT,enum:()=>Sp,exactOptional:()=>x_,file:()=>yx,float32:()=>GT,float64:()=>WT,function:()=>Tx,guid:()=>vT,hash:()=>ZT,hex:()=>HT,hostname:()=>VT,httpUrl:()=>AT,instanceof:()=>Rx,int:()=>rp,int32:()=>JT,int64:()=>QT,intersection:()=>h_,ipv4:()=>NT,ipv6:()=>DT,json:()=>Ox,jwt:()=>BT,keyof:()=>ix,ksuid:()=>$T,lazy:()=>L_,literal:()=>gx,looseObject:()=>cx,looseRecord:()=>px,mac:()=>zT,map:()=>fx,meta:()=>Ix,nan:()=>vx,nanoid:()=>IT,nativeEnum:()=>hx,never:()=>Ep,nonoptional:()=>O_,null:()=>a_,nullable:()=>Mc,nullish:()=>_x,number:()=>t_,object:()=>ax,optional:()=>jc,partialRecord:()=>dx,pipe:()=>Lc,prefault:()=>C_,preprocess:()=>kx,promise:()=>Sx,readonly:()=>U_,record:()=>__,refine:()=>q_,set:()=>mx,strictObject:()=>sx,string:()=>tp,stringFormat:()=>qT,stringbool:()=>Cx,success:()=>bx,superRefine:()=>V_,symbol:()=>ex,templateLiteral:()=>Px,transform:()=>Tp,tuple:()=>y_,uint32:()=>KT,uint64:()=>YT,ulid:()=>OT,undefined:()=>tx,union:()=>Pp,unknown:()=>Go,url:()=>xT,uuid:()=>ET,uuidv4:()=>PT,uuidv6:()=>ST,uuidv7:()=>TT,void:()=>nx,xid:()=>kT,xor:()=>ux});var Kd={};Jt(Kd,{endsWith:()=>Lo,gt:()=>Br,gte:()=>_t,includes:()=>jo,length:()=>eo,lowercase:()=>Do,lt:()=>Fr,lte:()=>Ft,maxLength:()=>Yn,maxSize:()=>wn,mime:()=>Fo,minLength:()=>lt,minSize:()=>qr,multipleOf:()=>An,negative:()=>gc,nonnegative:()=>_c,nonpositive:()=>yc,normalize:()=>Bo,overwrite:()=>wr,positive:()=>hc,property:()=>bc,regex:()=>Ct,size:()=>Qn,slugify:()=>Vi,startsWith:()=>Mo,toLowerCase:()=>Vo,toUpperCase:()=>Ho,trim:()=>qo,uppercase:()=>Uo});var Ki={};Jt(Ki,{ZodISODate:()=>Qd,ZodISODateTime:()=>Xd,ZodISODuration:()=>ep,ZodISOTime:()=>Yd,date:()=>My,datetime:()=>jy,duration:()=>Fy,time:()=>Ly});var Xd=w("ZodISODateTime",(e,t)=>{us.init(e,t),Ke.init(e,t)});function jy(e){return tc(Xd,e)}a(jy,"datetime");var Qd=w("ZodISODate",(e,t)=>{ls.init(e,t),Ke.init(e,t)});function My(e){return rc(Qd,e)}a(My,"date");var Yd=w("ZodISOTime",(e,t)=>{ds.init(e,t),Ke.init(e,t)});function Ly(e){return nc(Yd,e)}a(Ly,"time");var ep=w("ZodISODuration",(e,t)=>{ps.init(e,t),Ke.init(e,t)});function Fy(e){return oc(ep,e)}a(Fy,"duration");var _T=a((e,t)=>{os.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a(n=>Ri(e,n),"value")},flatten:{value:a(n=>Ii(e,n),"value")},addIssue:{value:a(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xi,2)},"value")},addIssues:{value:a(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xi,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),vU=w("ZodError",_T),Yt=w("ZodError",_T,{Parent:Error});var By=Ci(Yt),qy=Oi(Yt),Vy=ki(Yt),Hy=Ni(Yt),Zy=cl(Yt),Gy=ul(Yt),Wy=ll(Yt),Jy=dl(Yt),Ky=pl(Yt),Xy=fl(Yt),Qy=ml(Yt),Yy=hl(Yt);var Ae=w("ZodType",(e,t)=>(ge.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Hi(e,"input"),output:Hi(e,"output")}}),e.toJSONSchema=jg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(X.mergeDefs(t,{checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(n,o)=>vt(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>By(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Vy(e,n,o),e.parseAsync=async(n,o)=>qy(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Hy(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Zy(e,n,o),e.decode=(n,o)=>Gy(e,n,o),e.encodeAsync=async(n,o)=>Wy(e,n,o),e.decodeAsync=async(n,o)=>Jy(e,n,o),e.safeEncode=(n,o)=>Ky(e,n,o),e.safeDecode=(n,o)=>Xy(e,n,o),e.safeEncodeAsync=async(n,o)=>Qy(e,n,o),e.safeDecodeAsync=async(n,o)=>Yy(e,n,o),e.refine=(n,o)=>e.check(q_(n,o)),e.superRefine=n=>e.check(V_(n)),e.overwrite=n=>e.check(wr(n)),e.optional=()=>jc(e),e.exactOptional=()=>x_(e),e.nullable=()=>Mc(e),e.nullish=()=>jc(Mc(e)),e.nonoptional=n=>O_(e,n),e.array=()=>qc(e),e.or=n=>Pp([e,n]),e.and=n=>h_(e,n),e.transform=n=>Lc(e,Tp(n)),e.default=n=>I_(e,n),e.prefault=n=>C_(e,n),e.catch=n=>N_(e,n),e.pipe=n=>Lc(e,n),e.readonly=()=>U_(e),e.describe=n=>{let o=e.clone();return Et.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Et.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Et.get(e);let o=e.clone();return Et.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),np=w("_ZodString",(e,t)=>{xn.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Mg(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Ct(...o)),e.includes=(...o)=>e.check(jo(...o)),e.startsWith=(...o)=>e.check(Mo(...o)),e.endsWith=(...o)=>e.check(Lo(...o)),e.min=(...o)=>e.check(lt(...o)),e.max=(...o)=>e.check(Yn(...o)),e.length=(...o)=>e.check(eo(...o)),e.nonempty=(...o)=>e.check(lt(1,...o)),e.lowercase=o=>e.check(Do(o)),e.uppercase=o=>e.check(Uo(o)),e.trim=()=>e.check(qo()),e.normalize=(...o)=>e.check(Bo(...o)),e.toLowerCase=()=>e.check(Vo()),e.toUpperCase=()=>e.check(Ho()),e.slugify=()=>e.check(Vi())}),Qi=w("ZodString",(e,t)=>{xn.init(e,t),np.init(e,t),e.email=n=>e.check(zs(op,n)),e.url=n=>e.check(zo(Fc,n)),e.jwt=n=>e.check(ec(bp,n)),e.emoji=n=>e.check(Ls(ip,n)),e.guid=n=>e.check(qi(Uc,n)),e.uuid=n=>e.check(Ds(nn,n)),e.uuidv4=n=>e.check(Us(nn,n)),e.uuidv6=n=>e.check(js(nn,n)),e.uuidv7=n=>e.check(Ms(nn,n)),e.nanoid=n=>e.check(Fs(ap,n)),e.guid=n=>e.check(qi(Uc,n)),e.cuid=n=>e.check(Bs(sp,n)),e.cuid2=n=>e.check(qs(cp,n)),e.ulid=n=>e.check(Vs(up,n)),e.base64=n=>e.check(Xs(gp,n)),e.base64url=n=>e.check(Qs(yp,n)),e.xid=n=>e.check(Hs(lp,n)),e.ksuid=n=>e.check(Zs(dp,n)),e.ipv4=n=>e.check(Gs(pp,n)),e.ipv6=n=>e.check(Ws(fp,n)),e.cidrv4=n=>e.check(Js(mp,n)),e.cidrv6=n=>e.check(Ks(hp,n)),e.e164=n=>e.check(Ys(_p,n)),e.datetime=n=>e.check(jy(n)),e.date=n=>e.check(My(n)),e.time=n=>e.check(Ly(n)),e.duration=n=>e.check(Fy(n))});function tp(e){return $s(Qi,e)}a(tp,"string");var Ke=w("ZodStringFormat",(e,t)=>{qe.init(e,t),np.init(e,t)}),op=w("ZodEmail",(e,t)=>{wl.init(e,t),Ke.init(e,t)});function bT(e){return zs(op,e)}a(bT,"email");var Uc=w("ZodGUID",(e,t)=>{xl.init(e,t),Ke.init(e,t)});function vT(e){return qi(Uc,e)}a(vT,"guid");var nn=w("ZodUUID",(e,t)=>{Al.init(e,t),Ke.init(e,t)});function ET(e){return Ds(nn,e)}a(ET,"uuid");function PT(e){return Us(nn,e)}a(PT,"uuidv4");function ST(e){return js(nn,e)}a(ST,"uuidv6");function TT(e){return Ms(nn,e)}a(TT,"uuidv7");var Fc=w("ZodURL",(e,t)=>{cs.init(e,t),Ke.init(e,t)});function xT(e){return zo(Fc,e)}a(xT,"url");function AT(e){return zo(Fc,{protocol:/^https?$/,hostname:Qt.domain,...X.normalizeParams(e)})}a(AT,"httpUrl");var ip=w("ZodEmoji",(e,t)=>{Il.init(e,t),Ke.init(e,t)});function wT(e){return Ls(ip,e)}a(wT,"emoji");var ap=w("ZodNanoID",(e,t)=>{Rl.init(e,t),Ke.init(e,t)});function IT(e){return Fs(ap,e)}a(IT,"nanoid");var sp=w("ZodCUID",(e,t)=>{Cl.init(e,t),Ke.init(e,t)});function RT(e){return Bs(sp,e)}a(RT,"cuid");var cp=w("ZodCUID2",(e,t)=>{Ol.init(e,t),Ke.init(e,t)});function CT(e){return qs(cp,e)}a(CT,"cuid2");var up=w("ZodULID",(e,t)=>{kl.init(e,t),Ke.init(e,t)});function OT(e){return Vs(up,e)}a(OT,"ulid");var lp=w("ZodXID",(e,t)=>{$l.init(e,t),Ke.init(e,t)});function kT(e){return Hs(lp,e)}a(kT,"xid");var dp=w("ZodKSUID",(e,t)=>{Nl.init(e,t),Ke.init(e,t)});function $T(e){return Zs(dp,e)}a($T,"ksuid");var pp=w("ZodIPv4",(e,t)=>{zl.init(e,t),Ke.init(e,t)});function NT(e){return Gs(pp,e)}a(NT,"ipv4");var e_=w("ZodMAC",(e,t)=>{Ul.init(e,t),Ke.init(e,t)});function zT(e){return yd(e_,e)}a(zT,"mac");var fp=w("ZodIPv6",(e,t)=>{Dl.init(e,t),Ke.init(e,t)});function DT(e){return Ws(fp,e)}a(DT,"ipv6");var mp=w("ZodCIDRv4",(e,t)=>{jl.init(e,t),Ke.init(e,t)});function UT(e){return Js(mp,e)}a(UT,"cidrv4");var hp=w("ZodCIDRv6",(e,t)=>{Ml.init(e,t),Ke.init(e,t)});function jT(e){return Ks(hp,e)}a(jT,"cidrv6");var gp=w("ZodBase64",(e,t)=>{Ll.init(e,t),Ke.init(e,t)});function MT(e){return Xs(gp,e)}a(MT,"base64");var yp=w("ZodBase64URL",(e,t)=>{Fl.init(e,t),Ke.init(e,t)});function LT(e){return Qs(yp,e)}a(LT,"base64url");var _p=w("ZodE164",(e,t)=>{Bl.init(e,t),Ke.init(e,t)});function FT(e){return Ys(_p,e)}a(FT,"e164");var bp=w("ZodJWT",(e,t)=>{ql.init(e,t),Ke.init(e,t)});function BT(e){return ec(bp,e)}a(BT,"jwt");var Yi=w("ZodCustomStringFormat",(e,t)=>{Vl.init(e,t),Ke.init(e,t)});function qT(e,t,n={}){return Zo(Yi,e,t,n)}a(qT,"stringFormat");function VT(e){return Zo(Yi,"hostname",Qt.hostname,e)}a(VT,"hostname");function HT(e){return Zo(Yi,"hex",Qt.hex,e)}a(HT,"hex");function ZT(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Qt[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return Zo(Yi,o,r,t)}a(ZT,"hash");var ea=w("ZodNumber",(e,t)=>{Ui.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Lg(e,o,r,i),e.gt=(o,r)=>e.check(Br(o,r)),e.gte=(o,r)=>e.check(_t(o,r)),e.min=(o,r)=>e.check(_t(o,r)),e.lt=(o,r)=>e.check(Fr(o,r)),e.lte=(o,r)=>e.check(Ft(o,r)),e.max=(o,r)=>e.check(Ft(o,r)),e.int=o=>e.check(rp(o)),e.safe=o=>e.check(rp(o)),e.positive=o=>e.check(Br(0,o)),e.nonnegative=o=>e.check(_t(0,o)),e.negative=o=>e.check(Fr(0,o)),e.nonpositive=o=>e.check(Ft(0,o)),e.multipleOf=(o,r)=>e.check(An(o,r)),e.step=(o,r)=>e.check(An(o,r)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function t_(e){return ic(ea,e)}a(t_,"number");var Wo=w("ZodNumberFormat",(e,t)=>{fs.init(e,t),ea.init(e,t)});function rp(e){return sc(Wo,e)}a(rp,"int");function GT(e){return bd(Wo,e)}a(GT,"float32");function WT(e){return vd(Wo,e)}a(WT,"float64");function JT(e){return Ed(Wo,e)}a(JT,"int32");function KT(e){return Pd(Wo,e)}a(KT,"uint32");var ta=w("ZodBoolean",(e,t)=>{$o.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fg(e,n,o,r)});function r_(e){return cc(ta,e)}a(r_,"boolean");var ra=w("ZodBigInt",(e,t)=>{ji.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Bg(e,o,r,i),e.gte=(o,r)=>e.check(_t(o,r)),e.min=(o,r)=>e.check(_t(o,r)),e.gt=(o,r)=>e.check(Br(o,r)),e.gte=(o,r)=>e.check(_t(o,r)),e.min=(o,r)=>e.check(_t(o,r)),e.lt=(o,r)=>e.check(Fr(o,r)),e.lte=(o,r)=>e.check(Ft(o,r)),e.max=(o,r)=>e.check(Ft(o,r)),e.positive=o=>e.check(Br(BigInt(0),o)),e.negative=o=>e.check(Fr(BigInt(0),o)),e.nonpositive=o=>e.check(Ft(BigInt(0),o)),e.nonnegative=o=>e.check(_t(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(An(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function XT(e){return Sd(ra,e)}a(XT,"bigint");var vp=w("ZodBigIntFormat",(e,t)=>{Hl.init(e,t),ra.init(e,t)});function QT(e){return Td(vp,e)}a(QT,"int64");function YT(e){return xd(vp,e)}a(YT,"uint64");var n_=w("ZodSymbol",(e,t)=>{Zl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qg(e,n,o,r)});function ex(e){return Ad(n_,e)}a(ex,"symbol");var o_=w("ZodUndefined",(e,t)=>{Gl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hg(e,n,o,r)});function tx(e){return wd(o_,e)}a(tx,"_undefined");var i_=w("ZodNull",(e,t)=>{Wl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vg(e,n,o,r)});function a_(e){return Id(i_,e)}a(a_,"_null");var s_=w("ZodAny",(e,t)=>{ms.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wg(e,n,o,r)});function rx(){return dc(s_)}a(rx,"any");var c_=w("ZodUnknown",(e,t)=>{hs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jg(e,n,o,r)});function Go(){return pc(c_)}a(Go,"unknown");var u_=w("ZodNever",(e,t)=>{Jl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gg(e,n,o,r)});function Ep(e){return Rd(u_,e)}a(Ep,"never");var l_=w("ZodVoid",(e,t)=>{gs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zg(e,n,o,r)});function nx(e){return fc(l_,e)}a(nx,"_void");var Bc=w("ZodDate",(e,t)=>{ys.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Kg(e,o,r,i),e.min=(o,r)=>e.check(_t(o,r)),e.max=(o,r)=>e.check(Ft(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function ox(e){return Cd(Bc,e)}a(ox,"date");var d_=w("ZodArray",(e,t)=>{_s.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cy(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check(lt(n,o)),e.nonempty=n=>e.check(lt(1,n)),e.max=(n,o)=>e.check(Yn(n,o)),e.length=(n,o)=>e.check(eo(n,o)),e.unwrap=()=>e.element});function qc(e,t){return Ug(d_,e,t)}a(qc,"array");function ix(e){let t=e._zod.def.shape;return Sp(Object.keys(t))}a(ix,"keyof");var Vc=w("ZodObject",(e,t)=>{Vh.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>uy(e,n,o,r),X.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Sp(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Go()}),e.loose=()=>e.clone({...e._zod.def,catchall:Go()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ep()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>X.extend(e,n),e.safeExtend=n=>X.safeExtend(e,n),e.merge=n=>X.merge(e,n),e.pick=n=>X.pick(e,n),e.omit=n=>X.omit(e,n),e.partial=(...n)=>X.partial(xp,e,n[0]),e.required=(...n)=>X.required(Ap,e,n[0])});function ax(e,t){let n={type:"object",shape:e??{},...X.normalizeParams(t)};return new Vc(n)}a(ax,"object");function sx(e,t){return new Vc({type:"object",shape:e,catchall:Ep(),...X.normalizeParams(t)})}a(sx,"strictObject");function cx(e,t){return new Vc({type:"object",shape:e,catchall:Go(),...X.normalizeParams(t)})}a(cx,"looseObject");var Hc=w("ZodUnion",(e,t)=>{No.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jd(e,n,o,r),e.options=t.options});function Pp(e,t){return new Hc({type:"union",options:e,...X.normalizeParams(t)})}a(Pp,"union");var p_=w("ZodXor",(e,t)=>{Hc.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jd(e,n,o,r),e.options=t.options});function ux(e,t){return new p_({type:"union",options:e,inclusive:!1,...X.normalizeParams(t)})}a(ux,"xor");var f_=w("ZodDiscriminatedUnion",(e,t)=>{Hc.init(e,t),bs.init(e,t)});function lx(e,t,n){return new f_({type:"union",options:t,discriminator:e,...X.normalizeParams(n)})}a(lx,"discriminatedUnion");var m_=w("ZodIntersection",(e,t)=>{Ql.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ly(e,n,o,r)});function h_(e,t){return new m_({type:"intersection",left:e,right:t})}a(h_,"intersection");var g_=w("ZodTuple",(e,t)=>{vs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dy(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function y_(e,t,n){let o=t instanceof ge,r=o?n:t,i=o?t:null;return new g_({type:"tuple",items:e,rest:i,...X.normalizeParams(r)})}a(y_,"tuple");var Zc=w("ZodRecord",(e,t)=>{Es.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>py(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function __(e,t,n){return new Zc({type:"record",keyType:e,valueType:t,...X.normalizeParams(n)})}a(__,"record");function dx(e,t,n){let o=vt(e);return o._zod.values=void 0,new Zc({type:"record",keyType:o,valueType:t,...X.normalizeParams(n)})}a(dx,"partialRecord");function px(e,t,n){return new Zc({type:"record",keyType:e,valueType:t,mode:"loose",...X.normalizeParams(n)})}a(px,"looseRecord");var b_=w("ZodMap",(e,t)=>{Yl.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ay(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(qr(...n)),e.nonempty=n=>e.check(qr(1,n)),e.max=(...n)=>e.check(wn(...n)),e.size=(...n)=>e.check(Qn(...n))});function fx(e,t,n){return new b_({type:"map",keyType:e,valueType:t,...X.normalizeParams(n)})}a(fx,"map");var v_=w("ZodSet",(e,t)=>{ed.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sy(e,n,o,r),e.min=(...n)=>e.check(qr(...n)),e.nonempty=n=>e.check(qr(1,n)),e.max=(...n)=>e.check(wn(...n)),e.size=(...n)=>e.check(Qn(...n))});function mx(e,t){return new v_({type:"set",valueType:e,...X.normalizeParams(t)})}a(mx,"set");var Xi=w("ZodEnum",(e,t)=>{Ps.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Xg(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let s of o)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Xi({...t,checks:[],...X.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Xi({...t,checks:[],...X.normalizeParams(r),entries:i})}});function Sp(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Xi({type:"enum",entries:n,...X.normalizeParams(t)})}a(Sp,"_enum");function hx(e,t){return new Xi({type:"enum",entries:e,...X.normalizeParams(t)})}a(hx,"nativeEnum");var E_=w("ZodLiteral",(e,t)=>{Ss.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qg(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gx(e,t){return new E_({type:"literal",values:Array.isArray(e)?e:[e],...X.normalizeParams(t)})}a(gx,"literal");var P_=w("ZodFile",(e,t)=>{td.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ty(e,n,o,r),e.min=(n,o)=>e.check(qr(n,o)),e.max=(n,o)=>e.check(wn(n,o)),e.mime=(n,o)=>e.check(Fo(Array.isArray(n)?n:[n],o))});function yx(e){return kd(P_,e)}a(yx,"file");var S_=w("ZodTransform",(e,t)=>{Ts.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>iy(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Gn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(X.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(X.issue(s))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function Tp(e){return new S_({type:"transform",transform:e})}a(Tp,"transform");var xp=w("ZodOptional",(e,t)=>{Mi.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Md(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function jc(e){return new xp({type:"optional",innerType:e})}a(jc,"optional");var T_=w("ZodExactOptional",(e,t)=>{rd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Md(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function x_(e){return new T_({type:"optional",innerType:e})}a(x_,"exactOptional");var A_=w("ZodNullable",(e,t)=>{xs.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Mc(e){return new A_({type:"nullable",innerType:e})}a(Mc,"nullable");function _x(e){return jc(Mc(e))}a(_x,"nullish");var w_=w("ZodDefault",(e,t)=>{nd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function I_(e,t){return new w_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():X.shallowClone(t)}})}a(I_,"_default");var R_=w("ZodPrefault",(e,t)=>{od.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function C_(e,t){return new R_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():X.shallowClone(t)}})}a(C_,"prefault");var Ap=w("ZodNonOptional",(e,t)=>{id.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>my(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function O_(e,t){return new Ap({type:"nonoptional",innerType:e,...X.normalizeParams(t)})}a(O_,"nonoptional");var k_=w("ZodSuccess",(e,t)=>{ad.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ry(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bx(e){return new k_({type:"success",innerType:e})}a(bx,"success");var $_=w("ZodCatch",(e,t)=>{sd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function N_(e,t){return new $_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}a(N_,"_catch");var z_=w("ZodNaN",(e,t)=>{cd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yg(e,n,o,r)});function vx(e){return Od(z_,e)}a(vx,"nan");var wp=w("ZodPipe",(e,t)=>{As.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_y(e,n,o,r),e.in=t.in,e.out=t.out});function Lc(e,t){return new wp({type:"pipe",in:e,out:t})}a(Lc,"pipe");var Ip=w("ZodCodec",(e,t)=>{wp.init(e,t),Li.init(e,t)});function Ex(e,t,n){return new Ip({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}a(Ex,"codec");var D_=w("ZodReadonly",(e,t)=>{ud.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>by(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function U_(e){return new D_({type:"readonly",innerType:e})}a(U_,"readonly");var j_=w("ZodTemplateLiteral",(e,t)=>{ld.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ey(e,n,o,r)});function Px(e,t){return new j_({type:"template_literal",parts:e,...X.normalizeParams(t)})}a(Px,"templateLiteral");var M_=w("ZodLazy",(e,t)=>{fd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ey(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function L_(e){return new M_({type:"lazy",getter:e})}a(L_,"lazy");var F_=w("ZodPromise",(e,t)=>{pd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vy(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Sx(e){return new F_({type:"promise",innerType:e})}a(Sx,"promise");var B_=w("ZodFunction",(e,t)=>{dd.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>oy(e,n,o,r)});function Tx(e){return new B_({type:"function",input:Array.isArray(e?.input)?y_(e?.input):e?.input??qc(Go()),output:e?.output??Go()})}a(Tx,"_function");var Gc=w("ZodCustom",(e,t)=>{ws.init(e,t),Ae.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ny(e,n,o,r)});function xx(e){let t=new Je({check:"custom"});return t._zod.check=e,t}a(xx,"check");function Ax(e,t){return vc(Gc,e??(()=>!0),t)}a(Ax,"custom");function q_(e,t={}){return Ec(Gc,e,t)}a(q_,"refine");function V_(e){return $d(e)}a(V_,"superRefine");var wx=Nd,Ix=zd;function Rx(e,t={}){let n=new Gc({type:"custom",check:"custom",fn:a(o=>o instanceof e,"fn"),abort:!0,...X.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}a(Rx,"_instanceof");var Cx=a((...e)=>Dd({Codec:Ip,Boolean:ta,String:Qi},...e),"stringbool");function Ox(e){let t=L_(()=>Pp([tp(e),t_(),r_(),a_(),qc(t),__(tp(),t)]));return t}a(Ox,"json");function kx(e,t){return Lc(Tp(e),t)}a(kx,"preprocess");var PU={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function SU(e){at({customError:e})}a(SU,"setErrorMap");function TU(){return at().customError}a(TU,"getErrorMap");var H_;H_||(H_={});var ne={...Dc,...Kd,iso:Ki},xU=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function AU(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}a(AU,"detectVersion");function wU(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}a(wU,"resolveRef");function $x(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ne.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return ne.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=wU(r,t),s=zt(i,t);return t.refs.set(r,s),t.processing.delete(r),s}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return ne.null();if(r.length===0)return ne.never();if(r.length===1)return ne.literal(r[0]);if(r.every(s=>typeof s=="string"))return ne.enum(r);let i=r.map(s=>ne.literal(s));return i.length<2?i[0]:ne.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return ne.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let s={...e,type:i};return $x(s,t)});return r.length===0?ne.never():r.length===1?r[0]:ne.union(r)}if(!n)return ne.any();let o;switch(n){case"string":{let r=ne.string();if(e.format){let i=e.format;i==="email"?r=r.check(ne.email()):i==="uri"||i==="uri-reference"?r=r.check(ne.url()):i==="uuid"||i==="guid"?r=r.check(ne.uuid()):i==="date-time"?r=r.check(ne.iso.datetime()):i==="date"?r=r.check(ne.iso.date()):i==="time"?r=r.check(ne.iso.time()):i==="duration"?r=r.check(ne.iso.duration()):i==="ipv4"?r=r.check(ne.ipv4()):i==="ipv6"?r=r.check(ne.ipv6()):i==="mac"?r=r.check(ne.mac()):i==="cidr"?r=r.check(ne.cidrv4()):i==="cidr-v6"?r=r.check(ne.cidrv6()):i==="base64"?r=r.check(ne.base64()):i==="base64url"?r=r.check(ne.base64url()):i==="e164"?r=r.check(ne.e164()):i==="jwt"?r=r.check(ne.jwt()):i==="emoji"?r=r.check(ne.emoji()):i==="nanoid"?r=r.check(ne.nanoid()):i==="cuid"?r=r.check(ne.cuid()):i==="cuid2"?r=r.check(ne.cuid2()):i==="ulid"?r=r.check(ne.ulid()):i==="xid"?r=r.check(ne.xid()):i==="ksuid"&&(r=r.check(ne.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?ne.number().int():ne.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=ne.boolean();break}case"null":{o=ne.null();break}case"object":{let r={},i=e.properties||{},s=new Set(e.required||[]);for(let[d,p]of Object.entries(i)){let f=zt(p,t);r[d]=s.has(d)?f:f.optional()}if(e.propertyNames){let d=zt(e.propertyNames,t),p=e.additionalProperties&&typeof e.additionalProperties=="object"?zt(e.additionalProperties,t):ne.any();if(Object.keys(r).length===0){o=ne.record(d,p);break}let f=ne.object(r).passthrough(),g=ne.looseRecord(d,p);o=ne.intersection(f,g);break}if(e.patternProperties){let d=e.patternProperties,p=Object.keys(d),f=[];for(let y of p){let h=zt(d[y],t),_=ne.string().regex(new RegExp(y));f.push(ne.looseRecord(_,h))}let g=[];if(Object.keys(r).length>0&&g.push(ne.object(r).passthrough()),g.push(...f),g.length===0)o=ne.object({}).passthrough();else if(g.length===1)o=g[0];else{let y=ne.intersection(g[0],g[1]);for(let h=2;h<g.length;h++)y=ne.intersection(y,g[h]);o=y}break}let u=ne.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(zt(e.additionalProperties,t)):o=u.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let s=r.map(d=>zt(d,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?zt(i,t):void 0;u?o=ne.tuple(s).rest(u):o=ne.tuple(s),typeof e.minItems=="number"&&(o=o.check(ne.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ne.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(d=>zt(d,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?zt(e.additionalItems,t):void 0;u?o=ne.tuple(s).rest(u):o=ne.tuple(s),typeof e.minItems=="number"&&(o=o.check(ne.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ne.maxLength(e.maxItems)))}else if(i!==void 0){let s=zt(i,t),u=ne.array(s);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=ne.array(ne.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}a($x,"convertBaseSchema");function zt(e,t){if(typeof e=="boolean")return e?ne.any():ne.never();let n=$x(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(p=>zt(p,t)),d=ne.union(u);n=o?ne.intersection(n,d):d}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(p=>zt(p,t)),d=ne.xor(u);n=o?ne.intersection(n,d):d}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:ne.any();else{let u=o?n:zt(e.allOf[0],t),d=o?0:1;for(let p=d;p<e.allOf.length;p++)u=ne.intersection(u,zt(e.allOf[p],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=ne.nullable(n)),e.readOnly===!0&&(n=ne.readonly(n));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of i)u in e&&(r[u]=e[u]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let u of s)u in e&&(r[u]=e[u]);for(let u of Object.keys(e))xU.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}a(zt,"convertSchema");function Nx(e,t){if(typeof e=="boolean")return e?ne.any():ne.never();let n=AU(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Et};return zt(e,r)}a(Nx,"fromJSONSchema");var Z_={};Jt(Z_,{bigint:()=>OU,boolean:()=>CU,date:()=>kU,number:()=>RU,string:()=>IU});function IU(e){return Ns(Qi,e)}a(IU,"string");function RU(e){return ac(ea,e)}a(RU,"number");function CU(e){return uc(ta,e)}a(CU,"boolean");function OU(e){return lc(ra,e)}a(OU,"bigint");function kU(e){return mc(Bc,e)}a(kU,"date");at(Is());var G_={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue"};var zx=(n=>(n.IMAGE="image",n.TEXT="text",n))(zx||{}),qt=te.object({apiKey:te.string()}),Dx=te.object({serviceAccountJson:te.string().min(1)}),Ux=qt,jx=qt.extend({apiKeyHash:te.string()}),Mx=qt,Lx=qt,Fx=qt,Bx=qt,qx=qt,Vx=qt,Hx=te.object({accessKeyId:te.string().min(1),secretAccessKey:te.string().min(1),sessionToken:te.string().optional()}),Zx=qt,Gx=te.object({}),Wx=te.object({}),W_=te.object({modelId:te.string(),modelName:te.string(),modelType:te.enum(zx)}),Jx=te.object({apiKeyHeader:te.string(),baseUrl:te.string(),models:te.array(W_),defaultHeaders:te.record(te.string(),te.string()).optional(),apiStyle:te.enum(["chat","responses"]).optional()}),Kx=te.object({accountId:te.string(),gatewayId:te.string(),models:te.array(W_),vertexProject:te.string().optional(),vertexRegion:te.string().optional()}),Xx=te.object({resourceName:te.string(),apiVersion:te.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,te.string().optional())}),Qx=te.object({}),Yx=te.object({}),eA=te.object({}),tA=te.object({region:te.string().min(1)}),rA=te.object({project:te.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,G_.invalidGcpResourceId),region:te.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,G_.invalidGcpResourceId),models:te.array(W_)}),nA=te.object({}),Jo=te.object({}),XW=te.union([Ux,Fx,Bx,qx,Vx,Lx,Mx,jx,Hx,Dx,Zx]),QW=te.union([Jx,Kx,Xx,rA,tA,Gx,Qx,Yx,eA,Wx,nA,Jo]),YW=te.discriminatedUnion("provider",[te.object({provider:te.literal("openai"),config:Yx.partial(),auth:qx.partial()}),te.object({provider:te.literal("openrouter"),config:eA.partial(),auth:Vx.partial()}),te.object({provider:te.literal("anthropic"),config:Gx.partial(),auth:Ux.partial()}),te.object({provider:te.literal("azure"),config:Xx.partial(),auth:Fx.partial()}),te.object({provider:te.literal("google"),config:Qx.partial(),auth:Bx.partial()}),te.object({provider:te.literal("cloudflare-gateway"),config:Kx.partial(),auth:Lx.partial()}),te.object({provider:te.literal("custom"),config:Jx.partial(),auth:Mx.partial()}),te.object({provider:te.literal("activepieces"),config:Wx.partial(),auth:jx.partial()}),te.object({provider:te.literal("bedrock"),config:tA.partial(),auth:Hx.partial()}),te.object({provider:te.literal("vertex"),config:rA.partial(),auth:Dx.partial()}),te.object({provider:te.literal("mistral"),config:nA.partial(),auth:Zx.partial()}),te.object({provider:te.literal("xai"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("deepseek"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("zai"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("qwen"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("minimax"),config:Jo.partial(),auth:qt.partial()}),te.object({provider:te.literal("moonshot"),config:Jo.partial(),auth:qt.partial()})]);var uJ=b().check(Ct(/^#[0-9A-Fa-f]{6}$/));var dJ=k({filename:b(),data:be(),type:de("file"),mimetype:L(b())});var $U=Rt(iA());var _J=k({...Ir,name:b(),permissions:he(b()),platformId:ct(b()),type:b(),userCount:L(Pt())});var IJ=te.enum(["active","out_of_credits","rejected","unreachable"]);var aA=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(aA||{}),J_=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(J_||{}),K_=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(K_||{});var X_=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(X_||{});var Q_=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(Q_||{});var NU=k({mode:fe(aA),value:be()}),zU=k({auth:L(b()),fields:ve(b(),NU)}),DU=k({pieceName:b(),pieceVersion:b(),actionName:b(),predefinedInput:L(zU)}),UU=k({type:de("PIECE"),toolName:b().check(lt(1)),pieceMetadata:DU}),jU=k({type:de("none")}),MU=k({type:de("access_token"),accessToken:b()}),LU=k({type:de("api_key"),apiKey:b(),apiKeyHeader:b()}),FU=k({type:de("headers"),headers:ve(b(),b())}),BU=oo("type",[jU,MU,LU,FU]),sA=k({type:de("FLOW"),toolName:b().check(lt(1)),externalFlowId:b(),flowDisplayName:L(b())}),cA=k({type:de("MCP"),toolName:b().check(lt(1)),serverUrl:tT(),protocol:fe(K_),auth:BU}),uA=k({type:de("KNOWLEDGE_BASE"),toolName:b().check(lt(1)),sourceType:fe(J_),sourceId:b(),sourceName:b()}),qU=oo("type",[UU,sA,cA,uA]),VU=k({displayName:b(),description:L(b()),type:fe(X_)}),lA=k({type:de("MARKDOWN"),markdown:b()}),na={type:de("TOOL_CALL"),input:ct(ve(b(),be())),output:L(be()),toolName:b(),status:fe(Q_),toolCallId:b(),startTime:b(),endTime:L(b())},hK=k(na),dA=oo("toolCallType",[k({...na,toolCallType:de("PIECE"),pieceName:b(),pieceVersion:b(),actionName:b()}),k({...na,toolCallType:de("FLOW"),displayName:b(),externalFlowId:b()}),k({...na,toolCallType:de("MCP"),displayName:b(),serverUrl:b()}),k({...na,toolCallType:de("KNOWLEDGE_BASE"),displayName:b(),sourceType:b()}),k({...na,toolCallType:de("UNKNOWN"),displayName:b()})]),HU=xe([lA,dA]);var ZU=10800*1e3,GU=900*1e3;var tb=(n=>(n.IMAGE="image",n.TEXT="text",n))(tb||{}),kn=k({apiKey:b()}),JU=kn,KU=k({apiKey:b(),apiKeyHash:b()}),XU=kn,QU=kn,YU=kn,ej=kn,tj=kn,rj=kn,nj=kn,hA=k({serviceAccountJson:b().check(lt(1))}),gA=k({accessKeyId:b().check(lt(1)),secretAccessKey:b().check(lt(1)),sessionToken:L(b())}),oj=k({}),ij=k({}),aj=k({}),sj=k({}),cj=k({}),uj=k({}),rb=k({modelId:b(),modelName:b(),modelType:fe(tb)}),yA=k({apiKeyHeader:b(),baseUrl:b(),models:he(rb),defaultHeaders:L(ve(b(),b())),apiStyle:L(fe(["chat","responses"]))}),_A=k({accountId:b(),gatewayId:b(),models:he(rb),vertexProject:L(b()),vertexRegion:L(b())}),bA=k({resourceName:b(),apiVersion:ao(io(e=>typeof e=="string"&&e.trim().length===0?void 0:e),L(b()))}),vA=k({region:b().check(lt(1))}),EA=k({project:b().check(Ct(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:b().check(Ct(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:he(rb)}),PA=k({}),lj=xe([JU,YU,ej,tj,rj,QU,XU,KU,gA,hA,nj]),SA=xe([yA,_A,bA,EA,vA,oj,aj,sj,cj,ij,uj,PA]),dj=k({id:b(),name:b(),type:fe(tb)}),pj=k({id:b(),name:b(),provider:fe(uo),config:SA,enabledForChat:ze()}),fj=k({provider:fe(uo),name:b(),enabledForChat:ze(),keys:he(k({id:b(),name:b()}))}),mj=k({provider:fe(uo),configId:b(),config:SA,auth:lj,platformId:b()});var bK={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},pA=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],hj=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],TA=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Y_=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],eb=["gemini-2.5-pro","gemini-2.5-flash"],gj=["grok-4.20"],vK={google:eb,vertex:eb},EK=TA.map(e=>`anthropic/${e}`),yj={openai:pA,anthropic:hj,google:Y_,vertex:Y_,activepieces:[...TA.map(e=>`anthropic/${e}`),...pA.map(e=>`openai/${e}`),...[...Y_,...eb].map(e=>`google/${e}`),...gj.map(e=>`x-ai/${e}`)]};var fA=128e3,_j={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function bj({provider:e}){return e?_j[e]??fA:fA}a(bj,"getMaxContextTokens");var mA={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},vj={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},Ej=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),Pj={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Ot(e){return{chatModels:yj[e],maxContextTokens:bj({provider:e}),defaultEmbeddingModel:mA[e],supportsEmbedding:mA[e]!==void 0,supportsImageGeneration:!Ej.has(e),defaultImageModel:Sj[e],webSearch:vj[e]}}a(Ot,"buildProviderCapabilities");var xA=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],Sj={activepieces:xA[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},Tj={openai:Ot("openai"),anthropic:Ot("anthropic"),openrouter:Ot("openrouter"),azure:Ot("azure"),google:Ot("google"),"cloudflare-gateway":Ot("cloudflare-gateway"),custom:Ot("custom"),bedrock:Ot("bedrock"),vertex:Ot("vertex"),mistral:Ot("mistral"),activepieces:Ot("activepieces"),xai:Ot("xai"),deepseek:Ot("deepseek"),zai:Ot("zai"),qwen:Ot("qwen"),minimax:Ot("minimax"),moonshot:Ot("moonshot")};var xj=k({base64Url:b(),fileName:b(),extension:L(b())}),Aj=k({mimeType:b(),url:b(),fileName:L(b())}),nb=xe([xj,Aj]);var wj=xe([k({type:de("file"),value:nb}),k({type:de("markdown"),value:b(),files:L(he(nb))})]),Ij=k({sessionId:b(),message:b(),files:L(he(b()))});var wA=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(wA||{}),IA=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(IA||{}),ob=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(ob||{});var Rj=xe([k({...Ir,name:b(),externalId:b(),type:de("STATIC_DROPDOWN"),tableId:b(),projectId:b(),data:k({options:he(k({value:b()}))})}),k({...Ir,name:b(),externalId:b(),type:xe([de("TEXT"),de("NUMBER"),de("DATE"),de("DATETIME")]),tableId:b(),projectId:b()})]),Cj=k({...Ir,name:b(),folderId:ct(b()),projectId:b(),externalId:b(),status:Uy(IA),trigger:Uy(wA)}),Oj=k({...Ir,tableId:b(),projectId:b(),cells:ve(b(),k({updated:b(),created:b(),value:be(),fieldName:b()}))}),kj=k({events:he(fe(ob)),webhookUrl:b(),flowId:b()}),$j=k({fields:he(k({id:b(),name:b()})),rows:he(ve(b(),b())),name:b()}),Nj=k({projectId:b(),limit:L(xc.number()),cursor:L(b()),name:L(b()),externalIds:Jd(b()),folderId:L(b()),folderIds:Jd(b())}),zj=k({records:he(he(k({fieldId:b(),value:CA()}))),tableId:b()}),Dj=k({cells:L(he(k({fieldId:b(),value:CA()}))),tableId:b(),agentUpdate:L(ze())}),RA=oo("operator",[Ko("eq"),Ko("neq"),Ko("gt"),Ko("gte"),Ko("lt"),Ko("lte"),Ko("co"),AA("exists"),AA("not_exists")]),Uj=k({tableId:b(),limit:L(xc.number()),cursor:L(b()),filters:Jd(RA)});function CA(){return ao(io(e=>e==null?e:String(e)),Tc(b()))}a(CA,"coerceToString");function Ko(e){return k({fieldId:b(),operator:de(e),value:b()})}a(Ko,"valueFilter");function AA(e){return k({fieldId:b(),operator:de(e)})}a(AA,"existenceFilter");var jj=k({status:L(Pt()),body:L(be()),headers:L(ve(b(),b()))}),Mj=k({...Ir,deleted:ct(co),ownerId:b(),displayName:b(),platformId:b(),externalId:ct(b())});var OA=k({name:b(),description:L(b()),type:b(),required:ze()}),Lj=k({pieceName:b(),triggerName:b(),input:k({toolName:b(),toolDescription:b(),inputSchema:he(OA),returnsResponse:ze()})});var kA="^[0-9]+\\.[0-9]+\\.[0-9]+$",LK=new RegExp(kA),Bj="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",FK=b().check(Ct(new RegExp(kA))),BK=b().check(Ct(new RegExp(Bj))),qj=k({packageType:de("ARCHIVE"),pieceType:fe(Gi),pieceName:b(),pieceVersion:b(),archiveId:b(),platformId:b()}),$A=k({packageType:de("REGISTRY"),pieceType:de("OFFICIAL"),pieceName:b(),pieceVersion:b()}),NA=k({packageType:de("REGISTRY"),pieceType:de("CUSTOM"),pieceName:b(),pieceVersion:b(),platformId:b()}),qK=xe([$A,NA]),VK=xe([qj,$A,NA]);var Vj=oo("type",[k({type:de("CRON_EXPRESSION"),cronExpression:b(),timezone:b()}),k({type:de("INTERVAL"),intervalMs:rT().check(_t(6e4))})]),HK=k({...Ir,type:fe(Vr),projectId:b(),flowId:b(),triggerName:b(),schedule:ct(Vj),flowVersionId:b(),pieceName:b(),pieceVersion:b(),deleted:ct(b()),simulate:ze()}),zA=(R=>(R.UNKNOWN="UNKNOWN",R.FLOW_RUN_LOG="FLOW_RUN_LOG",R.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",R.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",R.FLOW_STEP_FILE="FLOW_STEP_FILE",R.SAMPLE_DATA="SAMPLE_DATA",R.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",R.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",R.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",R.PROJECT_RELEASE="PROJECT_RELEASE",R.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",R.PLATFORM_ASSET="PLATFORM_ASSET",R.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",R.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",R.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",R.KNOWLEDGE_BASE="KNOWLEDGE_BASE",R.FLOW_BUNDLE="FLOW_BUNDLE",R.PREWARM_SCOPE="PREWARM_SCOPE",R))(zA||{}),DA=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(DA||{}),UA=(n=>(n.S3="S3",n.DB="DB",n))(UA||{}),ZK=k({...Ir,projectId:ct(b()),platformId:ct(b()),type:fe(zA),compression:fe(DA),data:L(be()),location:fe(UA),size:ct(Pt()),fileName:ct(b()),s3Key:ct(b()),metadata:ct(ve(b(),b()))}),jA=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(jA||{}),MA=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(MA||{}),GK=k({id:b(),email:b(),firstName:b(),status:fe(MA),externalId:ct(b()),platformId:ct(b()),platformRole:fe(jA),lastName:b(),created:co,updated:co,lastActiveDate:ct(co),imageUrl:ct(b())});var ab=k({...ke.shape,...Ee(ve(b(),be()),"OBJECT").shape});var sb=k({...ke.shape,formatProperty:L(b()),...Ee(b(),"RICH_TEXT").shape});var BA=k({...ke.shape,...Ee(b(),"COLOR").shape});var cb=xe([dr,In,sb,Zd,Cn,pr,Rn,Cy,Ac,ky,On,Rc,ab,Cc,Ic,Oy,wc,BA]),oe={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var on=k({displayName:b(),description:L(b()),hasConnectionIdentifier:L(ze())});var qA=k({username:b(),password:b()}),ub=k({...on.shape,username:k({displayName:b(),description:L(b())}),password:k({displayName:b(),description:L(b())}),...Ee(qA,"BASIC_AUTH").shape});var Wj=ve(b(),xe([dr,In,On,Cn,pr])),lb=k({...on.shape,props:Wj,...Ee(be(),"CUSTOM_AUTH").shape});var Xo=k({...on.shape,...Ee(k({auth:b()}),"SECRET_TEXT").shape});var Jj=ve(b(),xe([dr,In,Xo,On,Cn,pr,Rn,Zd])),VA=k({...on.shape,props:Jj,...Ee(be(),"OIDC").shape});var db=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(db||{}),HA=xe([dr,Xo,pr]),ZA=ve(b(),HA),Kj=k({props:L(ve(b(),HA)),authUrl:b(),tokenUrl:b(),scope:he(b()),prompt:L(xe([de("none"),de("consent"),de("login"),de("omit")])),pkce:L(ze()),pkceMethod:L(xe([de("plain"),de("S256")])),authorizationMethod:L(fe(db)),grantType:L(xe([fe(kc),de($y)])),extra:L(ve(b(),b()))}),GA=k({access_token:b(),props:L(ZA),data:ve(b(),Sc())}),pb=k({...on.shape,...Kj.shape,...Ee(GA,"OAUTH2").shape});var oa=xe([ub,lb,VA,pb,Xo]),Wc="Connection",Cp={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Wc}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Wc,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Wc}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Wc}},None(){}};var CX={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var Xj=k({...ke.shape,...Ee(be(),"CUSTOM").shape,code:b()});var Qj=xe([cb,oa]),fb=ve(b(),Qj),KX=ve(b(),cb);var WA=xe([k({strategy:de("CRON"),cronExpression:b()}),k({strategy:de("NONE")})]),ia=class{constructor(t,n,o,r,i,s,u,d,p,f,g,y,h,_,P,S,T,R,V,W,H){this.name=t;this.displayName=n;this.description=o;this.requireAuth=r;this.props=i;this.type=s;this.handshakeConfiguration=u;this.onHandshake=d;this.renewConfiguration=p;this.onRenew=f;this.onEnable=g;this.onDisable=y;this.onStart=h;this.run=_;this.test=P;this.sampleData=S;this.testStrategy=T;this.outputSchema=R;this.aiMetadata=V;this.classification=W;this.propertyGroups=H}static{a(this,"ITrigger")}},lo=a(e=>{switch(e.type){case"WEBHOOK":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new ia(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,st(e.sampleData)&&st(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var JA="2",Op="0.82.0";var mb=class{constructor(t,n,o,r,i,s,u,d,p=Op,f,g="",y){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=d;this.minimumSupportedRelease=p;this.maximumSupportedRelease=f;this.description=g;this.deprecated=y;this._actions={};this._triggers={};this.getContextInfo=a(()=>({version:JA}),"getContextInfo");(!eM(p)||tM(p,Op))&&(this.minimumSupportedRelease=Op),i.forEach(h=>this._actions[h.name]=h),s.forEach(h=>this._triggers[h.name]=h)}static{a(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:Yj(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},XA=a(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((n,o,r)=>o===r.findIndex(i=>i.type===n.type)))throw new Error("Auth properties must be unique by type");return new mb(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function Yj(e){if(e!==void 0)return Array.isArray(e)?e.map(KA):KA(e)}a(Yj,"withConnectionIdentifierFlag");function KA(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}a(KA,"flagConnectionIdentifier");function eM(e){return/^\d+\.\d+\.\d+$/.test(e)}a(eM,"isValidSimpleSemver");function tM(e,t){let[n,o,r]=e.split(".").map(Number),[i,s,u]=t.split(".").map(Number);return n!==i?n<i:o!==s?o<s:r<u}a(tM,"isSemverLessThan");var rM=L(ve(b(),ve(b(),b()))),QA=k({id:L(b()),name:b(),displayName:b(),logoUrl:b(),description:b(),authors:he(b()),platformId:L(b()),directoryPath:L(b()),auth:L(xe([oa,he(oa)])),version:b(),categories:L(he(fe(Wi))),minimumSupportedRelease:L(b()),maximumSupportedRelease:L(b()),deprecated:L(ze()),i18n:rM}),nM=fe(["human","ai","both"]),YA=k({description:L(b()),idempotent:L(ze())}),ew=fe(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var oM=fe(["tabs","section","summary","builder","footer"]),tw=k({key:b(),display:oM,label:L(b()),description:L(b()),icon:L(b()),props:he(b())}),rw=k({name:b(),displayName:b(),description:b(),props:fb,propertyGroups:L(he(tw)),requireAuth:ze(),errorHandlingOptions:L(Ry),outputSchema:L(qd()),audience:L(nM),aiMetadata:L(YA),classification:L(ew)}),nw=k({name:b(),displayName:b(),description:b(),props:fb,propertyGroups:L(he(tw)),errorHandlingOptions:L(Ry),type:fe(Vr),sampleData:be(),handshakeConfiguration:L(qd()),renewConfiguration:L(WA),testStrategy:fe(Nc),outputSchema:L(qd()),aiMetadata:L(YA),classification:L(ew)}),iM=k({...QA.shape,actions:ve(b(),rw),triggers:ve(b(),nw)}),aM=k({...QA.shape,actions:Pt(),triggers:Pt(),suggestedActions:L(he(rw)),suggestedTriggers:L(he(nw))}),ow=k({projectUsage:Pt(),pieceType:fe(Gi),packageType:fe(Oc),platformId:L(b()),archiveId:L(b())}),Y8=k({...iM.shape,...ow.shape}),eQ=k({...aM.shape,...ow.shape}),tQ=k({name:b(),version:b()});var sM=Rt(require("path")),cM=Rt(require("fs/promises"));var aa=require("node:stream");var kp=class{constructor(t,n){this.baseUrl=t;this.authenticationConverter=n}static{a(this,"BaseHttpClient")}getUrl(t){let n=new URL(`${this.baseUrl}${t.url}`),o=`${n.origin}${n.pathname}`,r=new URLSearchParams;return n.searchParams.forEach((i,s)=>{r.append(s,i)}),{urlWithoutQueryParams:o,queryParams:r}}getHeaders(t){let n={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,n),t.body&&(t.headers?.["Content-Type"]==="text/csv"?n["Content-Type"]="text/csv":n["Content-Type"]="application/json"),t.headers&&(n={...n,...t.headers}),n}populateAuthentication(t,n){this.authenticationConverter.convert(t,n)}};var $p=class{static{a(this,"DelegatingAuthenticationConverter")}constructor(t=new hb,n=new gb){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},hb=class{static{a(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},gb=class{static{a(this,"BasicTokenAuthenticationConverter")}convert(t,n){let o=`${t.username}:${t.password}`,r=Buffer.from(o).toString("base64");return n.Authorization=`Basic ${r}`,n}};var Jc=class extends Error{constructor(n,o){let r=o.status||500,i=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:n}}));this.requestBody=n;this.status=r,this.responseBody=i}static{a(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};function iw({error:e,requestBody:t}){return e instanceof Jc?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}a(iw,"toFailsafeOutput");var Vt=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(Vt||{});var Np=class extends kp{static{a(this,"FetchHttpClient")}constructor(t="",n=new $p){super(t,n)}async sendRequest(t,n){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:o,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),s=t.queryParams??{};for(let[V,W]of Object.entries(s))r.append(V,W);let u=r.toString(),d=u?`${o}?${u}`:o,p=t.responseType??"json",f=t.followRedirects??!0,g=t.retries??0,{body:y,extraHeaders:h,isStream:_}=zp(t.method)?uM(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},P=dM({...i,...h}),S=await lM(async()=>{let V=new AbortController,W=t.timeout&&t.timeout>0?setTimeout(()=>V.abort(),t.timeout):void 0;try{let H={method:t.method.toString(),headers:P,body:y,redirect:f?"follow":"manual",signal:V.signal};return _&&(H.duplex="half"),n?.dispatcher!==void 0&&(H.dispatcher=n.dispatcher),await fetch(d,H)}finally{W!==void 0&&clearTimeout(W)}},_?0:g),T=f?300:400;if(S.status<200||S.status>=T){let V=await aw(S,p==="stream"?"text":p),W=new Jc(t.body,{status:S.status,responseBody:V});throw console.error("[HttpClient#(sanitized error message)] Request failed:",W),W}let R=await aw(S,p);return{status:S.status,headers:pM(S.headers),body:R}}};function zp(e){return e!=="GET"&&e!=="HEAD"}a(zp,"acceptsRequestBody");function uM(e,t){if(cw(e))return{body:void 0,extraHeaders:{},isStream:!1};if(mM(e)){let o=fM(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new aa.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof aa.Readable?{body:e,extraHeaders:{},isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}a(uM,"serializeBody");async function aw(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return cw(e.body)?aa.Readable.from([]):aa.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let n=await e.text();if(n.length===0)return;try{return JSON.parse(n)}catch{return n}}}}a(aw,"parseResponseBody");async function lM(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await sw(o);continue}return r}catch(r){if(n=r,o<t){await sw(o);continue}throw r}throw n}a(lM,"sendWithRetries");function sw(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}a(sw,"backoff");function dM(e){let t=new Map;for(let[n,o]of Object.entries(e))o!==void 0&&t.set(n.toLowerCase(),[n,Array.isArray(o)?o.join(", "):o]);return Object.fromEntries(t.values())}a(dM,"normalizeHeaders");function pM(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}a(pM,"toHttpHeaders");function fM(e){if(!e.hasKnownLength()||e.getLengthSync()>hM)return null;let{data:t}=zy(()=>e.getBuffer());return t}a(fM,"bufferFormDataIfSafe");function mM(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}a(mM,"isNodeFormData");function cw(e){return e==null}a(cw,"isNil");var hM=100*1024*1024;var Ie=new Np;var r1=Rt(require("fs"));var n1={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function o1(e){let t=e.split(";")[0].trim().toLowerCase();return n1[t]??""}a(o1,"contentTypeToExtension");var i1=a(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),a1=a((e,t)=>{let n="https://api.example.com";try{let o=t?e(t):void 0;return(o?.endsWith("/")?o.slice(0,-1):o)??n}catch{return n}},"getBaseUrlForDescription");function mR({auth:e,baseUrl:t,authMapping:n,description:o,displayName:r,name:i,props:s,extraProps:u,authLocation:d="headers",classification:p="WRITE"}){return pt({audience:"human",name:i||"custom_api_call",classification:p,displayName:r||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:oe.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:a(async({auth:f})=>({url:oe.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${a1(t,f)}`,required:!0,placeholder:"/resource",defaultValue:f?t(f):"",...s?.url??{}})}),"props")}),method:oe.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Vt).map(f=>({label:f,value:f}))},...s?.method??{}}),headers:oe.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...s?.headers??{}}),queryParams:oe.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...s?.queryParams??{}}),body_type:oe.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:a(async({method:f})=>zp(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:oe.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:a(async({body_type:f,method:g})=>{if(!f||!zp(g))return{};let y=f,h={};switch(y){case"none":break;case"json":h.data=oe.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":h.data=oe.LongText({displayName:"Raw Body",required:!0});break;case"form_data":h.data=oe.Array({displayName:"Form Data",required:!0,properties:{fieldName:oe.ShortText({displayName:"Field Name",required:!0}),fieldType:oe.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:oe.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:oe.File({displayName:"File Field Value",required:!1})}});break}return h},"props")}),response_is_binary:oe.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...s?.response_is_binary??{}}),failsafe:oe.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...s?.failsafe??{}}),timeout:oe.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...s?.timeout??{}}),followRedirects:oe.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...s?.followRedirects??{}}),...u},run:a(async f=>{let{method:g,url:y,headers:h,queryParams:_,body:P,body_type:S,failsafe:T,timeout:R,response_is_binary:V,followRedirects:W}=f.propsValue;Wd(g,"Method"),Wd(y,"URL");let H=st(n)?{}:await n(f.auth,f.propsValue),G=y.url,re=G.startsWith("http://")||G.startsWith("https://")?G:i1({baseUrl:t(f.auth),relativePath:G}),ue={method:g,url:re,headers:{...h??{},...d==="headers"||!st(d)?H:{}},queryParams:{...d==="queryParams"?H:{},..._??{}},timeout:R?R*1e3:0,followRedirects:W};if(V&&(ue.responseType="arraybuffer"),P)if(S&&S!=="none"){let Y=P.data;if(S==="form_data"){let Ze=Y,{default:Ce}=await Promise.resolve().then(()=>Rt(fR())),Se=new Ce;for(let{fieldName:Le,fieldType:Me,textFieldValue:Ge,fileFieldValue:He}of Ze)Me==="text"&&!zc(Ge)?Se.append(Le,Ge):Me==="file"&&!zc(He)&&Se.append(Le,He.data,{filename:He?.filename});ue.body=Se,ue.headers={...ue.headers,...Se.getHeaders()}}else ue.body=Y}else S||(ue.body=P);try{let Y=await Ie.sendRequest(ue);return await s1(f.files,Y.body,Y.status,Y.headers,V)}catch(Y){if(T)return iw({error:Y,requestBody:ue.body});throw Y}},"run")})}a(mR,"createCustomApiCallAction");var s1=a(async(e,t,n,o,r)=>{let i;if(r&&c1(t)){let s=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=o1(s??"")||"txt",d;t instanceof ArrayBuffer?d=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?d=t:d=Buffer.from(t),i=await e.write({fileName:`output.${u}`,data:d})}else i=t;return{status:n,headers:o,body:i}},"handleBinaryResponse"),c1=a(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var ft={async poll(e,{store:t,auth:n,propsValue:o,maxItemsToPoll:r,files:i,server:s}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(st(u))throw new Error("lastPoll doesn't exist in the store.");let d=await e.items({store:t,auth:n,propsValue:o,lastFetchEpochMS:u,server:s}),p=d.reduce((f,g)=>Math.max(f,g.epochMilliSeconds),u);return await t.put("lastPoll",p),d.filter(f=>f.epochMilliSeconds>u).map(f=>f.data)}case 1:{let u=await t.get("lastItem"),d=await e.items({store:t,auth:n,propsValue:o,lastItemId:u,files:i,server:s}),p=d.findIndex(y=>y.id===u),f=[];st(u)||p==-1?f=d??[]:f=d?.slice(0,p)??[],st(r)||(f=f.slice(-r));let g=f?.[0]?.id;return st(g)||await t.put("lastItem",g),f.map(y=>y.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!st(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!st(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;st(u)?await t.delete("lastItem"):await t.put("lastItem",u);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:n,store:o,files:r,server:i}){let s=[];switch(e.strategy){case 0:{s=await e.items({store:o,auth:t,propsValue:n,lastFetchEpochMS:0,server:i});break}case 1:{s=await e.items({store:o,auth:t,propsValue:n,lastItemId:null,files:r,server:i});break}}return u1(s.map(u=>u.data))}};function u1(e){return e.length<=5?e:e.slice(0,5)}a(u1,"getFirstFiveOrAll");var nP=Rt(v$());var $e="https://bigquery.googleapis.com/bigquery/v2",rP=["https://www.googleapis.com/auth/bigquery","email"],je=[Cp.OAuth2({description:"Sign in with your Google account. If you are using your own OAuth2 credentials, make sure to include the following scope: `https://www.googleapis.com/auth/bigquery`",authUrl:"https://accounts.google.com/o/oauth2/auth",tokenUrl:"https://oauth2.googleapis.com/token",required:!0,scope:rP}),Cp.CustomAuth({displayName:"Service Account",description:"Use a GCP service account for automated, server-to-server access \u2014 no user sign-in required. Recommended for production workflows.",required:!0,props:{instructions:oe.MarkDown({value:`**How to create a service account key:**
95
95
 
96
96
  1. Open [Google Cloud Console](https://console.cloud.google.com/) and select your project from the top dropdown.
97
97
  2. Go to **IAM & Admin** \u2192 **Service Accounts** in the left sidebar.
@@ -100,8 +100,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
100
100
  5. Under **Grant this service account access**, add the **BigQuery User** role (or **BigQuery Admin** for full access). Click **Done**.
101
101
  6. Click on the service account you just created, then open the **Keys** tab.
102
102
  7. Click **Add Key** \u2192 **Create new key** \u2192 select **JSON** \u2192 click **Create**.
103
- 8. A \`.json\` file will download \u2014 open it in a text editor and paste the entire contents into the field below.`}),serviceAccountJson:oe.ShortText({displayName:"Service Account JSON",description:"Paste the full contents of the downloaded .json key file here",required:!0})},validate:a(async({auth:e})=>{try{let t=JSON.parse(e.serviceAccountJson);if(!t.client_email||!t.private_key)return{valid:!1,error:'Service account JSON must contain "client_email" and "private_key" fields'};if(!(await new nP.JWT({email:t.client_email,key:t.private_key,scopes:rP}).getAccessToken()).token)throw new Error("Empty token returned");return{valid:!0}}catch(t){return{valid:!1,error:`Service account authentication failed: ${t.message}`}}},"validate")})];async function Fe(e){if(e.type==="CUSTOM_AUTH"){let t=JSON.parse(e.props.serviceAccountJson),o=await new nP.JWT({email:t.client_email,key:t.private_key,scopes:rP}).getAccessToken();if(o.token)return o.token;throw new Error("Could not retrieve access token from service account JSON")}return e.access_token}a(Fe,"getAccessToken");var tt=oe.Dropdown({auth:je,displayName:"Project",description:"Select your Google Cloud project",refreshers:[],required:!0,options:a(async({auth:e})=>{if(!e)return{disabled:!0,options:[],placeholder:"Please connect your account first"};try{let t=await Fe(e);return{disabled:!1,options:((await Ie.sendRequest({method:"GET",url:`${$e}/projects`,headers:{Authorization:`Bearer ${t}`},queryParams:{maxResults:"200"}})).body.projects??[]).map(r=>({label:r.friendlyName?`${r.friendlyName} (${r.projectReference.projectId})`:r.projectReference.projectId,value:r.projectReference.projectId}))}}catch{return{disabled:!0,options:[],placeholder:"Failed to load projects. Check your connection."}}},"options")}),wt=oe.Dropdown({auth:je,displayName:"Dataset",description:"Select the BigQuery dataset",refreshers:["project_id"],required:!0,options:a(async({auth:e,project_id:t})=>{if(!e||!t)return{disabled:!0,options:[],placeholder:"Please select a project first"};try{let n=await Fe(e),o=[],r;do{let i=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/datasets`,headers:{Authorization:`Bearer ${n}`},queryParams:{maxResults:"200",...r?{pageToken:r}:{}}});for(let s of i.body.datasets??[])o.push({label:s.friendlyName??s.datasetReference.datasetId,value:s.datasetReference.datasetId});r=i.body.nextPageToken}while(r);return{disabled:!1,options:o}}catch{return{disabled:!0,options:[],placeholder:"Failed to load datasets. Check your project selection."}}},"options")}),It=oe.Dropdown({auth:je,displayName:"Table",description:"Select the BigQuery table",refreshers:["project_id","dataset_id"],required:!0,options:a(async({auth:e,project_id:t,dataset_id:n})=>{if(!e||!t||!n)return{disabled:!0,options:[],placeholder:"Please select a project and dataset first"};try{let o=await Fe(e),r=[],i;do{let s=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/datasets/${n}/tables`,headers:{Authorization:`Bearer ${o}`},queryParams:{maxResults:"200",...i?{pageToken:i}:{}}});for(let u of s.body.tables??[]){let d=u.friendlyName?`${u.friendlyName} (${u.tableReference.tableId})`:u.tableReference.tableId;r.push({label:d,value:u.tableReference.tableId})}i=s.body.nextPageToken}while(i);return{disabled:!1,options:r}}catch{return{disabled:!0,options:[],placeholder:"Failed to load tables. Check your dataset selection."}}},"options")});function ir(e,t){return t.map(n=>{let o={};return e.forEach((r,i)=>{let s=n.f[i]?.v;s==null?o[r.name]=null:Array.isArray(s)?o[r.name]=s.map(u=>typeof u.v=="object"?JSON.stringify(u.v):String(u.v??"")).join(", "):typeof s=="object"?o[r.name]=JSON.stringify(s):o[r.name]=s}),o})}a(ir,"bigQueryRowsToFlat");async function E0(e,t,n,o){return(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}`,headers:{Authorization:`Bearer ${e}`},queryParams:{fields:"schema"}})).body.schema?.fields??[]}a(E0,"getTableSchema");async function cm(e,t,n,o){let i=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${e}`},body:{query:n,useLegacySql:!1,timeoutMs:1e4,...o?{location:o}:{}}})).body.jobReference.jobId;for(let s=0;s<60;s++){let u=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/jobs/${i}`,headers:{Authorization:`Bearer ${e}`},queryParams:{...o?{location:o}:{}}});if(u.body.status.state==="DONE"){if(u.body.status.errorResult)throw new Error(`Query failed: ${u.body.status.errorResult.message}`);let d=u.body.statistics?.query?.dmlStats??{},p=parseInt(d.deletedRowCount??"0",10),f=parseInt(d.updatedRowCount??"0",10),g=parseInt(d.insertedRowCount??"0",10);return{jobId:i,affectedRowCount:p+f+g,deletedRowCount:p,updatedRowCount:f,insertedRowCount:g}}await new Promise(d=>setTimeout(d,2e3))}throw new Error("DML query timed out after 2 minutes.")}a(cm,"runDmlQuery");async function ja(e,t,n,o){for(let r=0;r<60;r++){let i=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/queries/${n}`,headers:{Authorization:`Bearer ${e}`},queryParams:{timeoutMs:"10000",maxResults:"1000",...o?{location:o}:{}}});if(i.body.jobComplete)return i.body}throw new Error("Query did not complete within 10 minutes. Try simplifying your query or using a smaller dataset.")}a(ja,"waitForJobResults");var P0=pt({auth:je,name:"run_query",classification:"WRITE",displayName:"Run a Query",description:"Execute a SQL query on BigQuery and return the results as flat rows",audience:"both",aiMetadata:{description:"Runs an arbitrary standard-SQL (or legacy-SQL) statement against BigQuery in a given project and returns the result rows, paginating up to the max-rows cap. Use it for any ad-hoc read or aggregation when no purpose-built action fits, or when you need full SQL control. Note that BigQuery SQL is not limited to reads \u2014 a DML/DDL statement passed here will mutate data \u2014 so idempotency depends on the query you supply; a plain SELECT is safe to repeat.",idempotent:!1},props:{project_id:tt,query:oe.LongText({displayName:"SQL Query",description:"The SQL query to run. Uses standard SQL syntax. Example: `SELECT * FROM \\`my_dataset.my_table\\` LIMIT 100`",required:!0}),max_results:oe.Number({displayName:"Max Rows",description:"Maximum number of rows to return (up to 10,000)",required:!1,defaultValue:1e3}),location:oe.ShortText({displayName:"Location",description:"Geographic location of your dataset (e.g. US, EU, us-central1). Leave blank for US.",required:!1}),use_legacy_sql:oe.Checkbox({displayName:"Use Legacy SQL",description:"Enable only if your query uses BigQuery Legacy SQL syntax (not recommended)",required:!1,defaultValue:!1})},async run(e){let{project_id:t,query:n,max_results:o,location:r,use_legacy_sql:i}=e.propsValue,s=Math.min(o??1e3,1e4),u=await Fe(e.auth),p=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${u}`},body:{query:n,useLegacySql:i??!1,maxResults:Math.min(s,1e3),timeoutMs:1e4,...r?{location:r}:{}}})).body,f=p.schema?.fields??[];if(!p.jobComplete){let _=p.jobReference.jobId,P=await ja(u,t,_,r??void 0);p={...P,jobReference:{projectId:t,jobId:_}},f=P.schema?.fields??f}let g=[...p.rows??[]],y=p.pageToken;for(;y&&g.length<s;){let _=s-g.length,P=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/queries/${p.jobReference.jobId}`,headers:{Authorization:`Bearer ${u}`},queryParams:{pageToken:y,maxResults:String(Math.min(_,1e3)),...r?{location:r}:{}}});g.push(...P.body.rows??[]),y=P.body.pageToken}let h=ir(f,g.slice(0,s));return{rows:h,row_count:h.length,total_rows:parseInt(p.totalRows??"0",10),bytes_processed:p.totalBytesProcessed??"0",job_id:p.jobReference?.jobId??null,cache_hit:p.cacheHit??!1}}});function $q(e){let t=`Type: ${e.type}${e.mode?` \xB7 Mode: ${e.mode}`:""}`;return oe.ShortText({displayName:e.name,description:t,required:e.mode==="REQUIRED"})}a($q,"fieldToProperty");var S0=pt({auth:je,name:"create_row",classification:"WRITE",displayName:"Create Row",description:"Creates a single new row in a BigQuery table. Column fields are loaded from the table schema.",audience:"both",aiMetadata:{description:"Streams one new row into a BigQuery table via the streaming insert API, with each column supplied as a separate value (loaded from the live table schema; empty values are dropped rather than written as nulls). Choose this when an agent has a single record to append and knows the target project, dataset, and table. Not idempotent: each call appends another row, so repeating it duplicates the record.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,values:oe.DynamicProperties({displayName:"Row Values",description:"Enter a value for each column. Fields are loaded from the table schema.",required:!0,auth:je,refreshers:["project_id","dataset_id","table_id"],props:a(async({auth:e,project_id:t,dataset_id:n,table_id:o})=>{if(!e||!t||!n||!o)return{};try{let r=await Fe(e),i=await E0(r,t,n,o);return Object.fromEntries(i.filter(s=>s.type!=="RECORD").map(s=>[s.name,$q(s)]))}catch{return{}}},"props")})},async run(e){let{project_id:t,dataset_id:n,table_id:o,values:r}=e.propsValue,i=await Fe(e.auth),u=Object.fromEntries(Object.entries(r).filter(([,g])=>g!==""&&g!==null&&g!==void 0)),d=`${Date.now()}-${Math.random().toString(36).slice(2,9)}`,f=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${i}`},body:{kind:"bigquery#tableDataInsertAllRequest",rows:[{insertId:d,json:u}]}})).body.insertErrors??[];if(f.length>0){let g=f[0]?.errors[0];throw new Error(`Row insert failed: ${g?.message??"Unknown error"} (reason: ${g?.reason??"unknown"}, field: ${g?.location??"unknown"})`)}return{success:!0,insert_id:d,...u}}});var T0=pt({auth:je,name:"create_rows",classification:"WRITE",displayName:"Create Rows",description:"Creates new rows of data in a BigQuery table (accepts an array of row objects). Rows are available to query within seconds.",audience:"both",aiMetadata:{description:"Streams a batch of rows into a BigQuery table in one streaming-insert call, taking a JSON array of objects whose keys match the column names. Choose this over Create Row when appending multiple records at once. Optional flags control whether the whole batch fails on a bad row or skips invalid rows / unknown fields. Not idempotent: every call appends the rows again, so repeating it duplicates them.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,rows:oe.Json({displayName:"Rows",description:'An array of row objects to insert. Keys must match the table column names. Example: `[{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]`',required:!0}),skip_invalid_rows:oe.Checkbox({displayName:"Skip Invalid Rows",description:"If enabled, valid rows are inserted even when some rows in the batch are invalid. If disabled (default), the entire batch fails if any row is invalid.",required:!1,defaultValue:!1}),ignore_unknown_values:oe.Checkbox({displayName:"Ignore Unknown Fields",description:"If enabled, fields not in the table schema are silently discarded. If disabled (default), unknown fields cause the row to fail.",required:!1,defaultValue:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,rows:r,skip_invalid_rows:i,ignore_unknown_values:s}=e.propsValue;if(!Array.isArray(r)||r.length===0)throw new Error('Rows must be a non-empty JSON array of objects, e.g. [{"column": "value"}]');let u=await Fe(e.auth),d=Date.now(),p=r.map((h,_)=>({insertId:`${d}-${_}-${Math.random().toString(36).slice(2,9)}`,json:h})),g=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${u}`},body:{kind:"bigquery#tableDataInsertAllRequest",skipInvalidRows:i??!1,ignoreUnknownValues:s??!1,rows:p}})).body.insertErrors??[];if(g.length>0&&!(i??!1)){let h=g[0]?.errors[0];throw new Error(`Insert failed on row ${g[0]?.index}: ${h?.message??"Unknown error"} (reason: ${h?.reason??"unknown"})`)}let y=g.map(h=>({row_index:h.index,error_count:h.errors.length,first_error_reason:h.errors[0]?.reason??null,first_error_location:h.errors[0]?.location??null,first_error_message:h.errors[0]?.message??null}));return{success:g.length===0,rows_attempted:r.length,rows_inserted:r.length-g.length,error_count:g.length,errors:y}}});var x0=pt({auth:je,name:"delete_rows",classification:"DESTRUCTIVE",displayName:"Delete Rows",description:"Deletes one or more rows from a BigQuery table using a SQL WHERE condition.",audience:"both",aiMetadata:{description:"Deletes every row matching a SQL WHERE condition from a BigQuery table by running a DELETE DML statement (supply only the condition body, without the WHERE keyword). Use it to remove records that meet a filter. Effectively idempotent on the same data \u2014 a repeat matches no remaining rows \u2014 but it is a destructive mutation, so an overly broad condition can remove far more than intended.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to match the rows to delete. Do not include the WHERE keyword. Example: `status = "inactive" AND created_at < "2023-01-01"`',required:!0}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,where_clause:r,location:i}=e.propsValue,s=await Fe(e.auth),d=`DELETE FROM ${`\`${t}.${n}.${o}\``} WHERE ${r}`,p=await cm(s,t,d,i??void 0);return{success:!0,rows_deleted:p.deletedRowCount,job_id:p.jobId}}});var A0=pt({auth:je,name:"update_rows",classification:"WRITE",displayName:"Update Row(s)",description:"Updates one or more existing rows in a BigQuery table using SQL SET and WHERE expressions.",audience:"both",aiMetadata:{description:"Updates rows in a BigQuery table by running an UPDATE DML statement, applying a comma-separated SET assignment to every row matching a WHERE condition (supply both as raw SQL fragments without the SET/WHERE keywords). Use it to change column values on existing records. Mutates state on each run, so it is not safe to assume idempotency \u2014 assignments to fixed literal values repeat harmlessly, but relative expressions (e.g. incrementing a counter) compound on every call.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,set_expression:oe.LongText({displayName:"SET Expression",description:'Comma-separated column assignments. Do not include the SET keyword. Example: `status = "active", updated_at = CURRENT_TIMESTAMP()`',required:!0}),where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to match the rows to update. Do not include the WHERE keyword. Example: `id = "abc123"`',required:!0}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,set_expression:r,where_clause:i,location:s}=e.propsValue,u=await Fe(e.auth),p=`UPDATE ${`\`${t}.${n}.${o}\``} SET ${r} WHERE ${i}`,f=await cm(u,t,p,s??void 0);return{success:!0,rows_updated:f.updatedRowCount,job_id:f.jobId}}});var w0=pt({auth:je,name:"find_one_row",classification:"SEARCH",displayName:"Find One Row",description:"Find a single row by specifying a WHERE clause and an optional ORDER BY. Returns the first matching row, or empty if none found.",audience:"both",aiMetadata:{description:'Looks up a single row in a BigQuery table that matches a SQL WHERE condition, with an optional ORDER BY to control which row is picked when several match. Choose this for a simple keyed lookup or "does this record exist" check rather than writing a full query. Read-only and idempotent; returns the first match (or a not-found flag) without altering data.',idempotent:!0},props:{project_id:tt,dataset_id:wt,table_id:It,where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to filter rows. Do not include the WHERE keyword. Example: `email = "user@example.com"`',required:!0}),order_by:oe.ShortText({displayName:"ORDER BY",description:"Optional column(s) to sort results before picking the first row. Example: `created_at DESC`",required:!1}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,where_clause:r,order_by:i,location:s}=e.propsValue,u=await Fe(e.auth),d=`\`${t}.${n}.${o}\``,p=i?` ORDER BY ${i}`:"",f=`SELECT * FROM ${d} WHERE ${r}${p} LIMIT 1`,y=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${u}`},body:{query:f,useLegacySql:!1,maxResults:1,timeoutMs:1e4,...s?{location:s}:{}}})).body,h=y.schema?.fields??[];if(!y.jobComplete){let S=await ja(u,t,y.jobReference.jobId,s??void 0);y={...S,jobReference:y.jobReference},h=S.schema?.fields??h}let _=ir(h,y.rows??[]),P=_.length>0;return{found:P,...P?_[0]:{}}}});var I0=pt({auth:je,name:"find_or_create_row",classification:"WRITE",displayName:"Find or Create Record",description:"Searches for a row matching a WHERE clause. If found, returns it. If not found, inserts the provided row data and returns that.",audience:"both",aiMetadata:{description:"Finds the first row matching a SQL WHERE condition in a BigQuery table and returns it; if none matches, streams the supplied JSON row in and returns that instead, flagging whether it was found or created. Use it as a get-or-insert to avoid duplicates when ensuring a record exists. Conditionally idempotent: it only inserts when nothing matches, but because the WHERE condition and the inserted data are independent, a poorly aligned condition can let repeated calls insert duplicate rows.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to search for an existing row. Do not include WHERE. Example: `email = "user@example.com"`',required:!0}),create_data:oe.Json({displayName:"Row to Create (if not found)",description:'A JSON object of column/value pairs to insert if no matching row exists. Example: `{"email": "user@example.com", "name": "Alice"}`',required:!0}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,where_clause:r,create_data:i,location:s}=e.propsValue,u=await Fe(e.auth),p=`SELECT * FROM ${`\`${t}.${n}.${o}\``} WHERE ${r} LIMIT 1`,g=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${u}`},body:{query:p,useLegacySql:!1,maxResults:1,timeoutMs:1e4,...s?{location:s}:{}}})).body,y=g.schema?.fields??[];if(!g.jobComplete){let R=await ja(u,t,g.jobReference.jobId,s??void 0);g={...R,jobReference:g.jobReference},y=R.schema?.fields??y}let h=ir(y,g.rows??[]);if(h.length>0)return{found:!0,created:!1,...h[0]};let _=i,P=`${Date.now()}-${Math.random().toString(36).slice(2,9)}`,T=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${u}`},body:{kind:"bigquery#tableDataInsertAllRequest",rows:[{insertId:P,json:_}]}})).body.insertErrors??[];if(T.length>0){let R=T[0]?.errors[0];throw new Error(`Row creation failed: ${R?.message??"Unknown error"} (reason: ${R?.reason??"unknown"})`)}return{found:!1,created:!0,insert_id:P,..._}}});var R0=pt({auth:je,name:"get_rows_for_job",classification:"READ",displayName:"Get Rows for Job Completed",description:'Retrieves the result rows from a completed BigQuery query job by Job ID. Use this after a "Query Job Completed" trigger to fetch the full result set.',audience:"both",aiMetadata:{description:'Fetches the cached result rows of an already-completed BigQuery query job by its job ID, paginating up to the max-rows cap. Use it to retrieve the full result set after a "Query Job Completed" trigger or a "Run a Query" action hands you a job ID. The job must already be finished \u2014 it errors if the job is still running. Read-only and idempotent.',idempotent:!0},props:{project_id:tt,job_id:oe.ShortText({displayName:"Job ID",description:'The BigQuery job ID to fetch results for. This is returned by the "Query Job Completed" trigger or a "Run a Query" action.',required:!0}),max_results:oe.Number({displayName:"Max Rows",description:"Maximum number of rows to return (up to 10,000). Default: 1,000.",required:!1,defaultValue:1e3}),location:oe.ShortText({displayName:"Location",description:"Dataset location where the job ran (e.g. US, EU). Leave blank for US.",required:!1})},async run(e){let{project_id:t,job_id:n,max_results:o,location:r}=e.propsValue,i=Math.min(o??1e3,1e4),s=await Fe(e.auth),u=[],d=[],p,f="0",g="0",y=!1;do{let _=i-u.length,S=(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/queries/${n}`,headers:{Authorization:`Bearer ${s}`},queryParams:{maxResults:String(Math.min(_,1e3)),timeoutMs:"10000",...p?{pageToken:p}:{},...r?{location:r}:{}}})).body;if(!S.jobComplete)throw new Error(`Job ${n} has not completed yet. Wait for the job to finish before fetching results.`);S.schema?.fields&&(d=S.schema.fields),u.push(...S.rows??[]),p=S.pageToken,f=S.totalRows??f,g=S.totalBytesProcessed??g,y=S.cacheHit??y}while(p&&u.length<i);let h=ir(d,u.slice(0,i));return{rows:h,row_count:h.length,total_rows:parseInt(f,10),bytes_processed:g,cache_hit:y,job_id:n}}});var C0=500;function Nq(e){if(Array.isArray(e))return e;if(typeof e=="string"){let t=e.trim();return t.startsWith("[")?JSON.parse(t):t.split(`
104
- `).map(n=>n.trim()).filter(n=>n.length>0).map(n=>JSON.parse(n))}throw new Error("Data must be a JSON array or a newline-delimited JSON (NDJSON) string.")}a(Nq,"parseInputData");var O0=pt({auth:je,name:"import_data",classification:"WRITE",displayName:"Import Data",description:"Imports a batch of rows into a BigQuery table. Accepts a JSON array or newline-delimited JSON (NDJSON). Large datasets are automatically split into chunks.",audience:"both",aiMetadata:{description:"Bulk-imports rows into a BigQuery table via streaming inserts, accepting either a JSON array of objects or a newline-delimited JSON (NDJSON) string and automatically splitting large datasets into chunks. Choose this for ingesting a large or variably-formatted dataset in one step; optional flags control whether the batch fails on bad rows or skips invalid rows / unknown fields. Not idempotent: each call appends the rows again, duplicating data if re-run.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,data:oe.Json({displayName:"Data",description:"The data to import. Provide a JSON array of objects (`[{...}, {...}]`) or a newline-delimited JSON string where each line is one row object.",required:!0}),skip_invalid_rows:oe.Checkbox({displayName:"Skip Invalid Rows",description:"Continue importing valid rows even if some rows fail validation. Default: off (fail entire batch).",required:!1,defaultValue:!1}),ignore_unknown_values:oe.Checkbox({displayName:"Ignore Unknown Fields",description:"Silently drop fields not present in the table schema. Default: off (fail on unknown fields).",required:!1,defaultValue:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,data:r,skip_invalid_rows:i,ignore_unknown_values:s}=e.propsValue,u=Nq(r);if(u.length===0)throw new Error("Data contains no rows to import.");let d=await Fe(e.auth),p=Date.now(),f=0,g=0,y=[];for(let h=0;h<u.length;h+=C0){let _=u.slice(h,h+C0),P=_.map((R,V)=>({insertId:`${p}-${h+V}-${Math.random().toString(36).slice(2,9)}`,json:R})),T=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${d}`},body:{kind:"bigquery#tableDataInsertAllRequest",skipInvalidRows:i??!1,ignoreUnknownValues:s??!1,rows:P}})).body.insertErrors??[];if(T.length>0&&!(i??!1)){let R=T[0]?.errors[0];throw new Error(`Import failed on row ${h+(T[0]?.index??0)}: ${R?.message??"Unknown error"}`)}f+=_.length-T.length,g+=T.length,y.push(...T.map(R=>({row_index:h+R.index,first_error:R.errors[0]?.message??"Unknown",reason:R.errors[0]?.reason??null})))}return{success:g===0,rows_attempted:u.length,rows_imported:f,error_count:g,errors:y}}});var zq={project_id:tt,dataset_id:wt,table_id:It,sort_column:oe.ShortText({displayName:"Sort Column",description:"Name of the column used to detect new rows. The table is ordered by this column (DESC) and any row newer than the last check is returned. Use a TIMESTAMP or DATETIME column, e.g. `created_at`.",required:!0}),max_results:oe.Number({displayName:"Max Rows per Check",description:"Maximum number of new rows to return per poll (default: 500).",required:!1,defaultValue:500})},um={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,dataset_id:r,table_id:i,sort_column:s,max_results:u}=t,d=u??500,p=await Fe(e),f=n??Date.now()-10080*60*1e3,g=`\`${o}.${r}.${i}\``,y=s,h=`SELECT * FROM ${g} WHERE \`${y}\` > TIMESTAMP_MILLIS(${f}) ORDER BY \`${y}\` ASC LIMIT ${d}`,P=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${o}/queries`,headers:{Authorization:`Bearer ${p}`},body:{query:h,useLegacySql:!1,maxResults:d,timeoutMs:3e4}})).body;if(!P.jobComplete)for(let R=0;R<30&&!P.jobComplete;R++)P=(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/queries/${P.jobReference.jobId}`,headers:{Authorization:`Bearer ${p}`},queryParams:{timeoutMs:"10000",maxResults:String(d)}})).body;let S=P.schema?.fields??[];return ir(S,P.rows??[]).map(R=>{let V=R[y],W;if(typeof V=="string"){let H=parseFloat(V);W=!isNaN(H)&&H>1e9?H*1e3:new Date(V).getTime()}else typeof V=="number"?W=V>1e12?V:V*1e3:W=Date.now();return{epochMilliSeconds:W,data:R}})},"items")},k0=lo({auth:je,name:"new_row",classification:"READ",displayName:"New Row",description:"Triggers when a new row is added to a BigQuery table. Polls every 5 minutes by comparing the latest value in a sort column against the previous check.",aiMetadata:{description:"Fires for each new row appended to a BigQuery table, detected by polling a TIMESTAMP/DATETIME sort column for values newer than the previous check. Each event represents one newly inserted row. Detection depends entirely on the chosen sort column advancing for new rows."},props:zq,sampleData:{id:"1",created_at:"2024-01-15T10:30:00Z",name:"Example row"},type:"POLLING",async test(e){return await ft.test(um,e)},async onEnable(e){await ft.onEnable(um,e)},async onDisable(e){await ft.onDisable(um,e)},async run(e){return await ft.poll(um,e)}});var Dq={project_id:tt,dataset_id:wt,table_id:It,updated_at_column:oe.ShortText({displayName:"Updated At Column",description:"Name of the TIMESTAMP column that records when a row was last updated, e.g. `updated_at`. Rows where this column is newer than the last check are returned.",required:!0}),created_at_column:oe.ShortText({displayName:"Created At Column (optional)",description:"If provided, only rows where the updated timestamp is newer than the created timestamp are returned, excluding brand-new rows from the results.",required:!1}),max_results:oe.Number({displayName:"Max Rows per Check",description:"Maximum number of updated rows to return per poll (default: 500).",required:!1,defaultValue:500})},lm={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,dataset_id:r,table_id:i,updated_at_column:s,created_at_column:u,max_results:d}=t,p=d??500,f=await Fe(e),g=n??Date.now()-10080*60*1e3,y=`\`${o}.${r}.${i}\``,h=s,_=u?` AND \`${u}\` < TIMESTAMP_MILLIS(${g})`:"",P=[`SELECT * FROM ${y}`,`WHERE \`${h}\` > TIMESTAMP_MILLIS(${g})${_}`,`ORDER BY \`${h}\` ASC`,`LIMIT ${p}`].join(" "),T=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${o}/queries`,headers:{Authorization:`Bearer ${f}`},body:{query:P,useLegacySql:!1,maxResults:p,timeoutMs:3e4}})).body;if(!T.jobComplete)for(let W=0;W<30&&!T.jobComplete;W++)T=(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/queries/${T.jobReference.jobId}`,headers:{Authorization:`Bearer ${f}`},queryParams:{timeoutMs:"10000",maxResults:String(p)}})).body;let R=T.schema?.fields??[];return ir(R,T.rows??[]).map(W=>{let H=W[h],G;if(typeof H=="string"){let re=parseFloat(H);G=!isNaN(re)&&re>1e9?re*1e3:new Date(H).getTime()}else typeof H=="number"?G=H>1e12?H:H*1e3:G=Date.now();return{epochMilliSeconds:G,data:W}})},"items")},$0=lo({auth:je,name:"updated_row",classification:"READ",displayName:"Updated Row",description:"Triggers when an existing row is updated in a BigQuery table. Requires an `updated_at` TIMESTAMP column that is set whenever a row changes.",aiMetadata:{description:"Fires for each row whose updated-at TIMESTAMP column advances past the previous check, representing a modified row in a BigQuery table. Requires that column to be set whenever a row changes; supplying an optional created-at column excludes brand-new rows so only genuine updates fire."},props:Dq,sampleData:{id:"1",updated_at:"2024-01-15T10:30:00Z",status:"active"},type:"POLLING",async test(e){return await ft.test(lm,e)},async onEnable(e){await ft.onEnable(lm,e)},async onDisable(e){await ft.onDisable(lm,e)},async run(e){return await ft.poll(lm,e)}});var Uq={project_id:tt,max_rows_per_job:oe.Number({displayName:"Max Rows per Job",description:"Maximum number of result rows to fetch per completed job (default: 500).",required:!1,defaultValue:500})},dm={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,max_rows_per_job:r}=t,i=r??500,s=await Fe(e),u=(n??Date.now()-1440*60*1e3)-3600*1e3,p=((await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/jobs`,headers:{Authorization:`Bearer ${s}`},queryParams:{stateFilter:"done",projection:"full",minCreationTime:String(u),maxResults:"50"}})).body.jobs??[]).filter(g=>g.configuration.jobType==="QUERY"&&!g.status.errorResult&&parseInt(g.statistics.endTime??"0",10)>(n??0)),f=[];for(let g of p){let y=g.jobReference.jobId,h=g.jobReference.location,_=parseInt(g.statistics.endTime??"0",10),P=[],S=[],T;do{let V=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/queries/${y}`,headers:{Authorization:`Bearer ${s}`},queryParams:{maxResults:String(Math.min(i-P.length,1e3)),timeoutMs:"5000",...T?{pageToken:T}:{},...h?{location:h}:{}}});V.body.schema?.fields&&(S=V.body.schema.fields),P.push(...V.body.rows??[]),T=V.body.pageToken}while(T&&P.length<i);let R=ir(S,P.slice(0,i));f.push({epochMilliSeconds:_,data:{job_id:y,project_id:g.jobReference.projectId,location:h??null,query:g.configuration.query?.query??null,completed_at:g.statistics.endTime?new Date(_).toISOString():null,bytes_processed:g.statistics.query?.totalBytesProcessed??null,cache_hit:g.statistics.query?.cacheHit??null,user_email:g.user_email??null,row_count:R.length,rows:R}})}return f},"items")},N0=lo({auth:je,name:"query_job_completed",classification:"READ",displayName:"Query Job Completed (With Row Data)",description:"Triggers when a BigQuery query job finishes successfully. Each flow run receives the job metadata and the result rows from that query.",aiMetadata:{description:"Fires when a successful (non-errored) QUERY-type job completes in the BigQuery project, detected by polling the project job history. Each event represents one finished query job and carries its metadata plus the fetched result rows. Only query jobs are surfaced; load, copy, and extract jobs are ignored."},props:Uq,sampleData:{job_id:"job_abc123",project_id:"my-project",query:"SELECT * FROM my_dataset.my_table LIMIT 10",completed_at:"2024-01-15T10:30:00Z",bytes_processed:"1024",cache_hit:!1,row_count:2,rows:[{id:"1",name:"Alice"},{id:"2",name:"Bob"}]},type:"POLLING",async test(e){return await ft.test(dm,e)},async onEnable(e){await ft.onEnable(dm,e)},async onDisable(e){await ft.onDisable(dm,e)},async run(e){return await ft.poll(dm,e)}});var jq={project_id:tt,include_failed:oe.Checkbox({displayName:"Include Failed Jobs",description:"If enabled, jobs that completed with an error are also returned. Default: off (only successful jobs).",required:!1,defaultValue:!1})},pm={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,include_failed:r}=t,i=await Fe(e),s=(n??Date.now()-1440*60*1e3)-3600*1e3;return((await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/jobs`,headers:{Authorization:`Bearer ${i}`},queryParams:{stateFilter:"done",projection:"full",minCreationTime:String(s),maxResults:"100"}})).body.jobs??[]).filter(p=>!(parseInt(p.statistics.endTime??"0",10)<=(n??0)||!(r??!1)&&p.status.errorResult)).map(p=>{let f=parseInt(p.statistics.endTime??"0",10),g=p.statistics.query?.dmlStats;return{epochMilliSeconds:f,data:{job_id:p.jobReference.jobId,project_id:p.jobReference.projectId,location:p.jobReference.location??null,job_type:p.configuration.jobType,status:p.status.errorResult?"FAILED":"SUCCESS",error_message:p.status.errorResult?.message??null,error_reason:p.status.errorResult?.reason??null,query:p.configuration.query?.query??null,created_at:p.statistics.creationTime?new Date(parseInt(p.statistics.creationTime,10)).toISOString():null,started_at:p.statistics.startTime?new Date(parseInt(p.statistics.startTime,10)).toISOString():null,completed_at:f?new Date(f).toISOString():null,bytes_processed:p.statistics.query?.totalBytesProcessed??p.statistics.totalBytesProcessed??null,cache_hit:p.statistics.query?.cacheHit??null,dml_inserted_rows:g?.insertedRowCount??null,dml_deleted_rows:g?.deletedRowCount??null,dml_updated_rows:g?.updatedRowCount??null,user_email:p.user_email??null}}})},"items")},z0=lo({auth:je,name:"new_job_completed",classification:"READ",displayName:"New Job Completed",description:"Triggers when any BigQuery job (query, load, copy, or extract) finishes. Returns the job metadata including status, type, and timing.",aiMetadata:{description:"Fires when any BigQuery job of any type (query, load, copy, or extract) finishes in the project, detected by polling the job history. Each event represents one completed job and carries its metadata \u2014 type, status, timing, bytes processed, and DML row counts. By default only successful jobs fire; enabling the include-failed option also surfaces jobs that ended with an error."},props:jq,sampleData:{job_id:"job_xyz789",project_id:"my-project",job_type:"QUERY",status:"SUCCESS",error_message:null,query:"SELECT COUNT(*) FROM my_dataset.events",completed_at:"2024-01-15T10:30:00Z",bytes_processed:"2048",cache_hit:!1,user_email:"user@example.com"},type:"POLLING",async test(e){return await ft.test(pm,e)},async onEnable(e){await ft.onEnable(pm,e)},async onDisable(e){await ft.onDisable(pm,e)},async run(e){return await ft.poll(pm,e)}});var Mq=XA({displayName:"Google BigQuery",description:"Query, analyze, and stream data into Google BigQuery \u2014 the fully managed, serverless data warehouse",minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/google-bigquery.png",categories:["BUSINESS_INTELLIGENCE"],authors:["AhmadTash"],auth:je,actions:[P0,S0,T0,x0,A0,w0,I0,R0,O0,mR({baseUrl:a(()=>$e,"baseUrl"),auth:je,authMapping:a(async e=>({Authorization:`Bearer ${await Fe(e)}`}),"authMapping")})],triggers:[k0,$0,N0,z0]});0&&(module.exports={bigQueryAuth,googleBigQuery});
103
+ 8. A \`.json\` file will download \u2014 open it in a text editor and paste the entire contents into the field below.`}),serviceAccountJson:oe.ShortText({displayName:"Service Account JSON",description:"Paste the full contents of the downloaded .json key file here",required:!0})},validate:a(async({auth:e})=>{try{let t=JSON.parse(e.serviceAccountJson);if(!t.client_email||!t.private_key)return{valid:!1,error:'Service account JSON must contain "client_email" and "private_key" fields'};if(!(await new nP.JWT({email:t.client_email,key:t.private_key,scopes:rP}).getAccessToken()).token)throw new Error("Empty token returned");return{valid:!0}}catch(t){return{valid:!1,error:`Service account authentication failed: ${t.message}`}}},"validate")})];async function Fe(e){if(e.type==="CUSTOM_AUTH"){let t=JSON.parse(e.props.serviceAccountJson),o=await new nP.JWT({email:t.client_email,key:t.private_key,scopes:rP}).getAccessToken();if(o.token)return o.token;throw new Error("Could not retrieve access token from service account JSON")}return e.access_token}a(Fe,"getAccessToken");var tt=oe.Dropdown({auth:je,displayName:"Project",description:"Select your Google Cloud project",refreshers:[],required:!0,options:a(async({auth:e})=>{if(!e)return{disabled:!0,options:[],placeholder:"Please connect your account first"};try{let t=await Fe(e);return{disabled:!1,options:((await Ie.sendRequest({method:"GET",url:`${$e}/projects`,headers:{Authorization:`Bearer ${t}`},queryParams:{maxResults:"200"}})).body.projects??[]).map(r=>({label:r.friendlyName?`${r.friendlyName} (${r.projectReference.projectId})`:r.projectReference.projectId,value:r.projectReference.projectId}))}}catch{return{disabled:!0,options:[],placeholder:"Failed to load projects. Check your connection."}}},"options")}),wt=oe.Dropdown({auth:je,displayName:"Dataset",description:"Select the BigQuery dataset",refreshers:["project_id"],required:!0,options:a(async({auth:e,project_id:t})=>{if(!e||!t)return{disabled:!0,options:[],placeholder:"Please select a project first"};try{let n=await Fe(e),o=[],r;do{let i=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/datasets`,headers:{Authorization:`Bearer ${n}`},queryParams:{maxResults:"200",...r?{pageToken:r}:{}}});for(let s of i.body.datasets??[])o.push({label:s.friendlyName??s.datasetReference.datasetId,value:s.datasetReference.datasetId});r=i.body.nextPageToken}while(r);return{disabled:!1,options:o}}catch{return{disabled:!0,options:[],placeholder:"Failed to load datasets. Check your project selection."}}},"options")}),It=oe.Dropdown({auth:je,displayName:"Table",description:"Select the BigQuery table",refreshers:["project_id","dataset_id"],required:!0,options:a(async({auth:e,project_id:t,dataset_id:n})=>{if(!e||!t||!n)return{disabled:!0,options:[],placeholder:"Please select a project and dataset first"};try{let o=await Fe(e),r=[],i;do{let s=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/datasets/${n}/tables`,headers:{Authorization:`Bearer ${o}`},queryParams:{maxResults:"200",...i?{pageToken:i}:{}}});for(let u of s.body.tables??[]){let d=u.friendlyName?`${u.friendlyName} (${u.tableReference.tableId})`:u.tableReference.tableId;r.push({label:d,value:u.tableReference.tableId})}i=s.body.nextPageToken}while(i);return{disabled:!1,options:r}}catch{return{disabled:!0,options:[],placeholder:"Failed to load tables. Check your dataset selection."}}},"options")});function ir(e,t){return t.map(n=>{let o={};return e.forEach((r,i)=>{let s=n.f[i]?.v;s==null?o[r.name]=null:Array.isArray(s)?o[r.name]=s.map(u=>typeof u.v=="object"?JSON.stringify(u.v):String(u.v??"")).join(", "):typeof s=="object"?o[r.name]=JSON.stringify(s):o[r.name]=s}),o})}a(ir,"bigQueryRowsToFlat");async function E$(e,t,n,o){return(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}`,headers:{Authorization:`Bearer ${e}`},queryParams:{fields:"schema"}})).body.schema?.fields??[]}a(E$,"getTableSchema");async function cm(e,t,n,o){let i=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${e}`},body:{query:n,useLegacySql:!1,timeoutMs:1e4,...o?{location:o}:{}}})).body.jobReference.jobId;for(let s=0;s<60;s++){let u=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/jobs/${i}`,headers:{Authorization:`Bearer ${e}`},queryParams:{...o?{location:o}:{}}});if(u.body.status.state==="DONE"){if(u.body.status.errorResult)throw new Error(`Query failed: ${u.body.status.errorResult.message}`);let d=u.body.statistics?.query?.dmlStats??{},p=parseInt(d.deletedRowCount??"0",10),f=parseInt(d.updatedRowCount??"0",10),g=parseInt(d.insertedRowCount??"0",10);return{jobId:i,affectedRowCount:p+f+g,deletedRowCount:p,updatedRowCount:f,insertedRowCount:g}}await new Promise(d=>setTimeout(d,2e3))}throw new Error("DML query timed out after 2 minutes.")}a(cm,"runDmlQuery");async function ja(e,t,n,o){for(let r=0;r<60;r++){let i=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/queries/${n}`,headers:{Authorization:`Bearer ${e}`},queryParams:{timeoutMs:"10000",maxResults:"1000",...o?{location:o}:{}}});if(i.body.jobComplete)return i.body}throw new Error("Query did not complete within 10 minutes. Try simplifying your query or using a smaller dataset.")}a(ja,"waitForJobResults");var P$=pt({auth:je,name:"run_query",classification:"WRITE",displayName:"Run a Query",description:"Execute a SQL query on BigQuery and return the results as flat rows",audience:"both",aiMetadata:{description:"Runs an arbitrary standard-SQL (or legacy-SQL) statement against BigQuery in a given project and returns the result rows, paginating up to the max-rows cap. Use it for any ad-hoc read or aggregation when no purpose-built action fits, or when you need full SQL control. Note that BigQuery SQL is not limited to reads \u2014 a DML/DDL statement passed here will mutate data \u2014 so idempotency depends on the query you supply; a plain SELECT is safe to repeat.",idempotent:!1},props:{project_id:tt,query:oe.LongText({displayName:"SQL Query",description:"The SQL query to run. Uses standard SQL syntax. Example: `SELECT * FROM \\`my_dataset.my_table\\` LIMIT 100`",required:!0}),max_results:oe.Number({displayName:"Max Rows",description:"Maximum number of rows to return (up to 10,000)",required:!1,defaultValue:1e3}),location:oe.ShortText({displayName:"Location",description:"Geographic location of your dataset (e.g. US, EU, us-central1). Leave blank for US.",required:!1}),use_legacy_sql:oe.Checkbox({displayName:"Use Legacy SQL",description:"Enable only if your query uses BigQuery Legacy SQL syntax (not recommended)",required:!1,defaultValue:!1})},async run(e){let{project_id:t,query:n,max_results:o,location:r,use_legacy_sql:i}=e.propsValue,s=Math.min(o??1e3,1e4),u=await Fe(e.auth),p=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${u}`},body:{query:n,useLegacySql:i??!1,maxResults:Math.min(s,1e3),timeoutMs:1e4,...r?{location:r}:{}}})).body,f=p.schema?.fields??[];if(!p.jobComplete){let _=p.jobReference.jobId,P=await ja(u,t,_,r??void 0);p={...P,jobReference:{projectId:t,jobId:_}},f=P.schema?.fields??f}let g=[...p.rows??[]],y=p.pageToken;for(;y&&g.length<s;){let _=s-g.length,P=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/queries/${p.jobReference.jobId}`,headers:{Authorization:`Bearer ${u}`},queryParams:{pageToken:y,maxResults:String(Math.min(_,1e3)),...r?{location:r}:{}}});g.push(...P.body.rows??[]),y=P.body.pageToken}let h=ir(f,g.slice(0,s));return{rows:h,row_count:h.length,total_rows:parseInt(p.totalRows??"0",10),bytes_processed:p.totalBytesProcessed??"0",job_id:p.jobReference?.jobId??null,cache_hit:p.cacheHit??!1}}});function $q(e){let t=`Type: ${e.type}${e.mode?` \xB7 Mode: ${e.mode}`:""}`;return oe.ShortText({displayName:e.name,description:t,required:e.mode==="REQUIRED"})}a($q,"fieldToProperty");var S$=pt({auth:je,name:"create_row",classification:"WRITE",displayName:"Create Row",description:"Creates a single new row in a BigQuery table. Column fields are loaded from the table schema.",audience:"both",aiMetadata:{description:"Streams one new row into a BigQuery table via the streaming insert API, with each column supplied as a separate value (loaded from the live table schema; empty values are dropped rather than written as nulls). Choose this when an agent has a single record to append and knows the target project, dataset, and table. Not idempotent: each call appends another row, so repeating it duplicates the record.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,values:oe.DynamicProperties({displayName:"Row Values",description:"Enter a value for each column. Fields are loaded from the table schema.",required:!0,auth:je,refreshers:["project_id","dataset_id","table_id"],props:a(async({auth:e,project_id:t,dataset_id:n,table_id:o})=>{if(!e||!t||!n||!o)return{};try{let r=await Fe(e),i=await E$(r,t,n,o);return Object.fromEntries(i.filter(s=>s.type!=="RECORD").map(s=>[s.name,$q(s)]))}catch{return{}}},"props")})},async run(e){let{project_id:t,dataset_id:n,table_id:o,values:r}=e.propsValue,i=await Fe(e.auth),u=Object.fromEntries(Object.entries(r).filter(([,g])=>g!==""&&g!==null&&g!==void 0)),d=`${Date.now()}-${Math.random().toString(36).slice(2,9)}`,f=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${i}`},body:{kind:"bigquery#tableDataInsertAllRequest",rows:[{insertId:d,json:u}]}})).body.insertErrors??[];if(f.length>0){let g=f[0]?.errors[0];throw new Error(`Row insert failed: ${g?.message??"Unknown error"} (reason: ${g?.reason??"unknown"}, field: ${g?.location??"unknown"})`)}return{success:!0,insert_id:d,...u}}});var T$=pt({auth:je,name:"create_rows",classification:"WRITE",displayName:"Create Rows",description:"Creates new rows of data in a BigQuery table (accepts an array of row objects). Rows are available to query within seconds.",audience:"both",aiMetadata:{description:"Streams a batch of rows into a BigQuery table in one streaming-insert call, taking a JSON array of objects whose keys match the column names. Choose this over Create Row when appending multiple records at once. Optional flags control whether the whole batch fails on a bad row or skips invalid rows / unknown fields. Not idempotent: every call appends the rows again, so repeating it duplicates them.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,rows:oe.Json({displayName:"Rows",description:'An array of row objects to insert. Keys must match the table column names. Example: `[{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]`',required:!0}),skip_invalid_rows:oe.Checkbox({displayName:"Skip Invalid Rows",description:"If enabled, valid rows are inserted even when some rows in the batch are invalid. If disabled (default), the entire batch fails if any row is invalid.",required:!1,defaultValue:!1}),ignore_unknown_values:oe.Checkbox({displayName:"Ignore Unknown Fields",description:"If enabled, fields not in the table schema are silently discarded. If disabled (default), unknown fields cause the row to fail.",required:!1,defaultValue:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,rows:r,skip_invalid_rows:i,ignore_unknown_values:s}=e.propsValue;if(!Array.isArray(r)||r.length===0)throw new Error('Rows must be a non-empty JSON array of objects, e.g. [{"column": "value"}]');let u=await Fe(e.auth),d=Date.now(),p=r.map((h,_)=>({insertId:`${d}-${_}-${Math.random().toString(36).slice(2,9)}`,json:h})),g=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${u}`},body:{kind:"bigquery#tableDataInsertAllRequest",skipInvalidRows:i??!1,ignoreUnknownValues:s??!1,rows:p}})).body.insertErrors??[];if(g.length>0&&!(i??!1)){let h=g[0]?.errors[0];throw new Error(`Insert failed on row ${g[0]?.index}: ${h?.message??"Unknown error"} (reason: ${h?.reason??"unknown"})`)}let y=g.map(h=>({row_index:h.index,error_count:h.errors.length,first_error_reason:h.errors[0]?.reason??null,first_error_location:h.errors[0]?.location??null,first_error_message:h.errors[0]?.message??null}));return{success:g.length===0,rows_attempted:r.length,rows_inserted:r.length-g.length,error_count:g.length,errors:y}}});var x$=pt({auth:je,name:"delete_rows",classification:"DESTRUCTIVE",displayName:"Delete Rows",description:"Deletes one or more rows from a BigQuery table using a SQL WHERE condition.",audience:"both",aiMetadata:{description:"Deletes every row matching a SQL WHERE condition from a BigQuery table by running a DELETE DML statement (supply only the condition body, without the WHERE keyword). Use it to remove records that meet a filter. Effectively idempotent on the same data \u2014 a repeat matches no remaining rows \u2014 but it is a destructive mutation, so an overly broad condition can remove far more than intended.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to match the rows to delete. Do not include the WHERE keyword. Example: `status = "inactive" AND created_at < "2023-01-01"`',required:!0}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,where_clause:r,location:i}=e.propsValue,s=await Fe(e.auth),d=`DELETE FROM ${`\`${t}.${n}.${o}\``} WHERE ${r}`,p=await cm(s,t,d,i??void 0);return{success:!0,rows_deleted:p.deletedRowCount,job_id:p.jobId}}});var A$=pt({auth:je,name:"update_rows",classification:"WRITE",displayName:"Update Row(s)",description:"Updates one or more existing rows in a BigQuery table using SQL SET and WHERE expressions.",audience:"both",aiMetadata:{description:"Updates rows in a BigQuery table by running an UPDATE DML statement, applying a comma-separated SET assignment to every row matching a WHERE condition (supply both as raw SQL fragments without the SET/WHERE keywords). Use it to change column values on existing records. Mutates state on each run, so it is not safe to assume idempotency \u2014 assignments to fixed literal values repeat harmlessly, but relative expressions (e.g. incrementing a counter) compound on every call.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,set_expression:oe.LongText({displayName:"SET Expression",description:'Comma-separated column assignments. Do not include the SET keyword. Example: `status = "active", updated_at = CURRENT_TIMESTAMP()`',required:!0}),where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to match the rows to update. Do not include the WHERE keyword. Example: `id = "abc123"`',required:!0}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,set_expression:r,where_clause:i,location:s}=e.propsValue,u=await Fe(e.auth),p=`UPDATE ${`\`${t}.${n}.${o}\``} SET ${r} WHERE ${i}`,f=await cm(u,t,p,s??void 0);return{success:!0,rows_updated:f.updatedRowCount,job_id:f.jobId}}});var w$=pt({auth:je,name:"find_one_row",classification:"SEARCH",displayName:"Find One Row",description:"Find a single row by specifying a WHERE clause and an optional ORDER BY. Returns the first matching row, or empty if none found.",audience:"both",aiMetadata:{description:'Looks up a single row in a BigQuery table that matches a SQL WHERE condition, with an optional ORDER BY to control which row is picked when several match. Choose this for a simple keyed lookup or "does this record exist" check rather than writing a full query. Read-only and idempotent; returns the first match (or a not-found flag) without altering data.',idempotent:!0},props:{project_id:tt,dataset_id:wt,table_id:It,where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to filter rows. Do not include the WHERE keyword. Example: `email = "user@example.com"`',required:!0}),order_by:oe.ShortText({displayName:"ORDER BY",description:"Optional column(s) to sort results before picking the first row. Example: `created_at DESC`",required:!1}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,where_clause:r,order_by:i,location:s}=e.propsValue,u=await Fe(e.auth),d=`\`${t}.${n}.${o}\``,p=i?` ORDER BY ${i}`:"",f=`SELECT * FROM ${d} WHERE ${r}${p} LIMIT 1`,y=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${u}`},body:{query:f,useLegacySql:!1,maxResults:1,timeoutMs:1e4,...s?{location:s}:{}}})).body,h=y.schema?.fields??[];if(!y.jobComplete){let S=await ja(u,t,y.jobReference.jobId,s??void 0);y={...S,jobReference:y.jobReference},h=S.schema?.fields??h}let _=ir(h,y.rows??[]),P=_.length>0;return{found:P,...P?_[0]:{}}}});var I$=pt({auth:je,name:"find_or_create_row",classification:"WRITE",displayName:"Find or Create Record",description:"Searches for a row matching a WHERE clause. If found, returns it. If not found, inserts the provided row data and returns that.",audience:"both",aiMetadata:{description:"Finds the first row matching a SQL WHERE condition in a BigQuery table and returns it; if none matches, streams the supplied JSON row in and returns that instead, flagging whether it was found or created. Use it as a get-or-insert to avoid duplicates when ensuring a record exists. Conditionally idempotent: it only inserts when nothing matches, but because the WHERE condition and the inserted data are independent, a poorly aligned condition can let repeated calls insert duplicate rows.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,where_clause:oe.LongText({displayName:"WHERE Clause",description:'SQL condition to search for an existing row. Do not include WHERE. Example: `email = "user@example.com"`',required:!0}),create_data:oe.Json({displayName:"Row to Create (if not found)",description:'A JSON object of column/value pairs to insert if no matching row exists. Example: `{"email": "user@example.com", "name": "Alice"}`',required:!0}),location:oe.ShortText({displayName:"Location",description:"Dataset location (e.g. US, EU). Leave blank to use the default.",required:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,where_clause:r,create_data:i,location:s}=e.propsValue,u=await Fe(e.auth),p=`SELECT * FROM ${`\`${t}.${n}.${o}\``} WHERE ${r} LIMIT 1`,g=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/queries`,headers:{Authorization:`Bearer ${u}`},body:{query:p,useLegacySql:!1,maxResults:1,timeoutMs:1e4,...s?{location:s}:{}}})).body,y=g.schema?.fields??[];if(!g.jobComplete){let R=await ja(u,t,g.jobReference.jobId,s??void 0);g={...R,jobReference:g.jobReference},y=R.schema?.fields??y}let h=ir(y,g.rows??[]);if(h.length>0)return{found:!0,created:!1,...h[0]};let _=i,P=`${Date.now()}-${Math.random().toString(36).slice(2,9)}`,T=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${u}`},body:{kind:"bigquery#tableDataInsertAllRequest",rows:[{insertId:P,json:_}]}})).body.insertErrors??[];if(T.length>0){let R=T[0]?.errors[0];throw new Error(`Row creation failed: ${R?.message??"Unknown error"} (reason: ${R?.reason??"unknown"})`)}return{found:!1,created:!0,insert_id:P,..._}}});var R$=pt({auth:je,name:"get_rows_for_job",classification:"READ",displayName:"Get Rows for Job Completed",description:'Retrieves the result rows from a completed BigQuery query job by Job ID. Use this after a "Query Job Completed" trigger to fetch the full result set.',audience:"both",aiMetadata:{description:'Fetches the cached result rows of an already-completed BigQuery query job by its job ID, paginating up to the max-rows cap. Use it to retrieve the full result set after a "Query Job Completed" trigger or a "Run a Query" action hands you a job ID. The job must already be finished \u2014 it errors if the job is still running. Read-only and idempotent.',idempotent:!0},props:{project_id:tt,job_id:oe.ShortText({displayName:"Job ID",description:'The BigQuery job ID to fetch results for. This is returned by the "Query Job Completed" trigger or a "Run a Query" action.',required:!0}),max_results:oe.Number({displayName:"Max Rows",description:"Maximum number of rows to return (up to 10,000). Default: 1,000.",required:!1,defaultValue:1e3}),location:oe.ShortText({displayName:"Location",description:"Dataset location where the job ran (e.g. US, EU). Leave blank for US.",required:!1})},async run(e){let{project_id:t,job_id:n,max_results:o,location:r}=e.propsValue,i=Math.min(o??1e3,1e4),s=await Fe(e.auth),u=[],d=[],p,f="0",g="0",y=!1;do{let _=i-u.length,S=(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${t}/queries/${n}`,headers:{Authorization:`Bearer ${s}`},queryParams:{maxResults:String(Math.min(_,1e3)),timeoutMs:"10000",...p?{pageToken:p}:{},...r?{location:r}:{}}})).body;if(!S.jobComplete)throw new Error(`Job ${n} has not completed yet. Wait for the job to finish before fetching results.`);S.schema?.fields&&(d=S.schema.fields),u.push(...S.rows??[]),p=S.pageToken,f=S.totalRows??f,g=S.totalBytesProcessed??g,y=S.cacheHit??y}while(p&&u.length<i);let h=ir(d,u.slice(0,i));return{rows:h,row_count:h.length,total_rows:parseInt(f,10),bytes_processed:g,cache_hit:y,job_id:n}}});var C$=500;function Nq(e){if(Array.isArray(e))return e;if(typeof e=="string"){let t=e.trim();return t.startsWith("[")?JSON.parse(t):t.split(`
104
+ `).map(n=>n.trim()).filter(n=>n.length>0).map(n=>JSON.parse(n))}throw new Error("Data must be a JSON array or a newline-delimited JSON (NDJSON) string.")}a(Nq,"parseInputData");var O$=pt({auth:je,name:"import_data",classification:"WRITE",displayName:"Import Data",description:"Imports a batch of rows into a BigQuery table. Accepts a JSON array or newline-delimited JSON (NDJSON). Large datasets are automatically split into chunks.",audience:"both",aiMetadata:{description:"Bulk-imports rows into a BigQuery table via streaming inserts, accepting either a JSON array of objects or a newline-delimited JSON (NDJSON) string and automatically splitting large datasets into chunks. Choose this for ingesting a large or variably-formatted dataset in one step; optional flags control whether the batch fails on bad rows or skips invalid rows / unknown fields. Not idempotent: each call appends the rows again, duplicating data if re-run.",idempotent:!1},props:{project_id:tt,dataset_id:wt,table_id:It,data:oe.Json({displayName:"Data",description:"The data to import. Provide a JSON array of objects (`[{...}, {...}]`) or a newline-delimited JSON string where each line is one row object.",required:!0}),skip_invalid_rows:oe.Checkbox({displayName:"Skip Invalid Rows",description:"Continue importing valid rows even if some rows fail validation. Default: off (fail entire batch).",required:!1,defaultValue:!1}),ignore_unknown_values:oe.Checkbox({displayName:"Ignore Unknown Fields",description:"Silently drop fields not present in the table schema. Default: off (fail on unknown fields).",required:!1,defaultValue:!1})},async run(e){let{project_id:t,dataset_id:n,table_id:o,data:r,skip_invalid_rows:i,ignore_unknown_values:s}=e.propsValue,u=Nq(r);if(u.length===0)throw new Error("Data contains no rows to import.");let d=await Fe(e.auth),p=Date.now(),f=0,g=0,y=[];for(let h=0;h<u.length;h+=C$){let _=u.slice(h,h+C$),P=_.map((R,V)=>({insertId:`${p}-${h+V}-${Math.random().toString(36).slice(2,9)}`,json:R})),T=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${t}/datasets/${n}/tables/${o}/insertAll`,headers:{Authorization:`Bearer ${d}`},body:{kind:"bigquery#tableDataInsertAllRequest",skipInvalidRows:i??!1,ignoreUnknownValues:s??!1,rows:P}})).body.insertErrors??[];if(T.length>0&&!(i??!1)){let R=T[0]?.errors[0];throw new Error(`Import failed on row ${h+(T[0]?.index??0)}: ${R?.message??"Unknown error"}`)}f+=_.length-T.length,g+=T.length,y.push(...T.map(R=>({row_index:h+R.index,first_error:R.errors[0]?.message??"Unknown",reason:R.errors[0]?.reason??null})))}return{success:g===0,rows_attempted:u.length,rows_imported:f,error_count:g,errors:y}}});var zq={project_id:tt,dataset_id:wt,table_id:It,sort_column:oe.ShortText({displayName:"Sort Column",description:"Name of the column used to detect new rows. The table is ordered by this column (DESC) and any row newer than the last check is returned. Use a TIMESTAMP or DATETIME column, e.g. `created_at`.",required:!0}),max_results:oe.Number({displayName:"Max Rows per Check",description:"Maximum number of new rows to return per poll (default: 500).",required:!1,defaultValue:500})},um={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,dataset_id:r,table_id:i,sort_column:s,max_results:u}=t,d=u??500,p=await Fe(e),f=n??Date.now()-10080*60*1e3,g=`\`${o}.${r}.${i}\``,y=s,h=`SELECT * FROM ${g} WHERE \`${y}\` > TIMESTAMP_MILLIS(${f}) ORDER BY \`${y}\` ASC LIMIT ${d}`,P=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${o}/queries`,headers:{Authorization:`Bearer ${p}`},body:{query:h,useLegacySql:!1,maxResults:d,timeoutMs:3e4}})).body;if(!P.jobComplete)for(let R=0;R<30&&!P.jobComplete;R++)P=(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/queries/${P.jobReference.jobId}`,headers:{Authorization:`Bearer ${p}`},queryParams:{timeoutMs:"10000",maxResults:String(d)}})).body;let S=P.schema?.fields??[];return ir(S,P.rows??[]).map(R=>{let V=R[y],W;if(typeof V=="string"){let H=parseFloat(V);W=!isNaN(H)&&H>1e9?H*1e3:new Date(V).getTime()}else typeof V=="number"?W=V>1e12?V:V*1e3:W=Date.now();return{epochMilliSeconds:W,data:R}})},"items")},k$=lo({auth:je,name:"new_row",classification:"READ",displayName:"New Row",description:"Triggers when a new row is added to a BigQuery table. Polls every 5 minutes by comparing the latest value in a sort column against the previous check.",aiMetadata:{description:"Fires for each new row appended to a BigQuery table, detected by polling a TIMESTAMP/DATETIME sort column for values newer than the previous check. Each event represents one newly inserted row. Detection depends entirely on the chosen sort column advancing for new rows."},props:zq,sampleData:{id:"1",created_at:"2024-01-15T10:30:00Z",name:"Example row"},type:"POLLING",async test(e){return await ft.test(um,e)},async onEnable(e){await ft.onEnable(um,e)},async onDisable(e){await ft.onDisable(um,e)},async run(e){return await ft.poll(um,e)}});var Dq={project_id:tt,dataset_id:wt,table_id:It,updated_at_column:oe.ShortText({displayName:"Updated At Column",description:"Name of the TIMESTAMP column that records when a row was last updated, e.g. `updated_at`. Rows where this column is newer than the last check are returned.",required:!0}),created_at_column:oe.ShortText({displayName:"Created At Column (optional)",description:"If provided, only rows where the updated timestamp is newer than the created timestamp are returned, excluding brand-new rows from the results.",required:!1}),max_results:oe.Number({displayName:"Max Rows per Check",description:"Maximum number of updated rows to return per poll (default: 500).",required:!1,defaultValue:500})},lm={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,dataset_id:r,table_id:i,updated_at_column:s,created_at_column:u,max_results:d}=t,p=d??500,f=await Fe(e),g=n??Date.now()-10080*60*1e3,y=`\`${o}.${r}.${i}\``,h=s,_=u?` AND \`${u}\` < TIMESTAMP_MILLIS(${g})`:"",P=[`SELECT * FROM ${y}`,`WHERE \`${h}\` > TIMESTAMP_MILLIS(${g})${_}`,`ORDER BY \`${h}\` ASC`,`LIMIT ${p}`].join(" "),T=(await Ie.sendRequest({method:"POST",url:`${$e}/projects/${o}/queries`,headers:{Authorization:`Bearer ${f}`},body:{query:P,useLegacySql:!1,maxResults:p,timeoutMs:3e4}})).body;if(!T.jobComplete)for(let W=0;W<30&&!T.jobComplete;W++)T=(await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/queries/${T.jobReference.jobId}`,headers:{Authorization:`Bearer ${f}`},queryParams:{timeoutMs:"10000",maxResults:String(p)}})).body;let R=T.schema?.fields??[];return ir(R,T.rows??[]).map(W=>{let H=W[h],G;if(typeof H=="string"){let re=parseFloat(H);G=!isNaN(re)&&re>1e9?re*1e3:new Date(H).getTime()}else typeof H=="number"?G=H>1e12?H:H*1e3:G=Date.now();return{epochMilliSeconds:G,data:W}})},"items")},$$=lo({auth:je,name:"updated_row",classification:"READ",displayName:"Updated Row",description:"Triggers when an existing row is updated in a BigQuery table. Requires an `updated_at` TIMESTAMP column that is set whenever a row changes.",aiMetadata:{description:"Fires for each row whose updated-at TIMESTAMP column advances past the previous check, representing a modified row in a BigQuery table. Requires that column to be set whenever a row changes; supplying an optional created-at column excludes brand-new rows so only genuine updates fire."},props:Dq,sampleData:{id:"1",updated_at:"2024-01-15T10:30:00Z",status:"active"},type:"POLLING",async test(e){return await ft.test(lm,e)},async onEnable(e){await ft.onEnable(lm,e)},async onDisable(e){await ft.onDisable(lm,e)},async run(e){return await ft.poll(lm,e)}});var Uq={project_id:tt,max_rows_per_job:oe.Number({displayName:"Max Rows per Job",description:"Maximum number of result rows to fetch per completed job (default: 500).",required:!1,defaultValue:500})},dm={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,max_rows_per_job:r}=t,i=r??500,s=await Fe(e),u=(n??Date.now()-1440*60*1e3)-3600*1e3,p=((await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/jobs`,headers:{Authorization:`Bearer ${s}`},queryParams:{stateFilter:"done",projection:"full",minCreationTime:String(u),maxResults:"50"}})).body.jobs??[]).filter(g=>g.configuration.jobType==="QUERY"&&!g.status.errorResult&&parseInt(g.statistics.endTime??"0",10)>(n??0)),f=[];for(let g of p){let y=g.jobReference.jobId,h=g.jobReference.location,_=parseInt(g.statistics.endTime??"0",10),P=[],S=[],T;do{let V=await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/queries/${y}`,headers:{Authorization:`Bearer ${s}`},queryParams:{maxResults:String(Math.min(i-P.length,1e3)),timeoutMs:"5000",...T?{pageToken:T}:{},...h?{location:h}:{}}});V.body.schema?.fields&&(S=V.body.schema.fields),P.push(...V.body.rows??[]),T=V.body.pageToken}while(T&&P.length<i);let R=ir(S,P.slice(0,i));f.push({epochMilliSeconds:_,data:{job_id:y,project_id:g.jobReference.projectId,location:h??null,query:g.configuration.query?.query??null,completed_at:g.statistics.endTime?new Date(_).toISOString():null,bytes_processed:g.statistics.query?.totalBytesProcessed??null,cache_hit:g.statistics.query?.cacheHit??null,user_email:g.user_email??null,row_count:R.length,rows:R}})}return f},"items")},N$=lo({auth:je,name:"query_job_completed",classification:"READ",displayName:"Query Job Completed (With Row Data)",description:"Triggers when a BigQuery query job finishes successfully. Each flow run receives the job metadata and the result rows from that query.",aiMetadata:{description:"Fires when a successful (non-errored) QUERY-type job completes in the BigQuery project, detected by polling the project job history. Each event represents one finished query job and carries its metadata plus the fetched result rows. Only query jobs are surfaced; load, copy, and extract jobs are ignored."},props:Uq,sampleData:{job_id:"job_abc123",project_id:"my-project",query:"SELECT * FROM my_dataset.my_table LIMIT 10",completed_at:"2024-01-15T10:30:00Z",bytes_processed:"1024",cache_hit:!1,row_count:2,rows:[{id:"1",name:"Alice"},{id:"2",name:"Bob"}]},type:"POLLING",async test(e){return await ft.test(dm,e)},async onEnable(e){await ft.onEnable(dm,e)},async onDisable(e){await ft.onDisable(dm,e)},async run(e){return await ft.poll(dm,e)}});var jq={project_id:tt,include_failed:oe.Checkbox({displayName:"Include Failed Jobs",description:"If enabled, jobs that completed with an error are also returned. Default: off (only successful jobs).",required:!1,defaultValue:!1})},pm={strategy:0,items:a(async({auth:e,propsValue:t,lastFetchEpochMS:n})=>{let{project_id:o,include_failed:r}=t,i=await Fe(e),s=(n??Date.now()-1440*60*1e3)-3600*1e3;return((await Ie.sendRequest({method:"GET",url:`${$e}/projects/${o}/jobs`,headers:{Authorization:`Bearer ${i}`},queryParams:{stateFilter:"done",projection:"full",minCreationTime:String(s),maxResults:"100"}})).body.jobs??[]).filter(p=>!(parseInt(p.statistics.endTime??"0",10)<=(n??0)||!(r??!1)&&p.status.errorResult)).map(p=>{let f=parseInt(p.statistics.endTime??"0",10),g=p.statistics.query?.dmlStats;return{epochMilliSeconds:f,data:{job_id:p.jobReference.jobId,project_id:p.jobReference.projectId,location:p.jobReference.location??null,job_type:p.configuration.jobType,status:p.status.errorResult?"FAILED":"SUCCESS",error_message:p.status.errorResult?.message??null,error_reason:p.status.errorResult?.reason??null,query:p.configuration.query?.query??null,created_at:p.statistics.creationTime?new Date(parseInt(p.statistics.creationTime,10)).toISOString():null,started_at:p.statistics.startTime?new Date(parseInt(p.statistics.startTime,10)).toISOString():null,completed_at:f?new Date(f).toISOString():null,bytes_processed:p.statistics.query?.totalBytesProcessed??p.statistics.totalBytesProcessed??null,cache_hit:p.statistics.query?.cacheHit??null,dml_inserted_rows:g?.insertedRowCount??null,dml_deleted_rows:g?.deletedRowCount??null,dml_updated_rows:g?.updatedRowCount??null,user_email:p.user_email??null}}})},"items")},z$=lo({auth:je,name:"new_job_completed",classification:"READ",displayName:"New Job Completed",description:"Triggers when any BigQuery job (query, load, copy, or extract) finishes. Returns the job metadata including status, type, and timing.",aiMetadata:{description:"Fires when any BigQuery job of any type (query, load, copy, or extract) finishes in the project, detected by polling the job history. Each event represents one completed job and carries its metadata \u2014 type, status, timing, bytes processed, and DML row counts. By default only successful jobs fire; enabling the include-failed option also surfaces jobs that ended with an error."},props:jq,sampleData:{job_id:"job_xyz789",project_id:"my-project",job_type:"QUERY",status:"SUCCESS",error_message:null,query:"SELECT COUNT(*) FROM my_dataset.events",completed_at:"2024-01-15T10:30:00Z",bytes_processed:"2048",cache_hit:!1,user_email:"user@example.com"},type:"POLLING",async test(e){return await ft.test(pm,e)},async onEnable(e){await ft.onEnable(pm,e)},async onDisable(e){await ft.onDisable(pm,e)},async run(e){return await ft.poll(pm,e)}});var Mq=XA({displayName:"Google BigQuery",description:"Query, analyze, and stream data into Google BigQuery \u2014 the fully managed, serverless data warehouse",minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/google-bigquery.png",categories:["BUSINESS_INTELLIGENCE"],authors:["AhmadTash"],auth:je,actions:[P$,S$,T$,x$,A$,w$,I$,R$,O$,mR({baseUrl:a(()=>$e,"baseUrl"),auth:je,authMapping:a(async e=>({Authorization:`Bearer ${await Fe(e)}`}),"authMapping")})],triggers:[k$,$$,N$,z$]});0&&(module.exports={bigQueryAuth,googleBigQuery});
105
105
  /*! Bundled license information:
106
106
 
107
107
  mime-types/index.js: