@activepieces/piece-microsoft-outlook 0.6.0 → 0.6.1
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/package.json +1 -1
- package/src/i18n/translation.json +182 -8
- package/src/index.js +25 -25
package/src/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";var kb=Object.create;var Sn=Object.defineProperty;var Db=Object.getOwnPropertyDescriptor;var Cb=Object.getOwnPropertyNames;var Nb=Object.getPrototypeOf,Mb=Object.prototype.hasOwnProperty;var s=(e,t)=>Sn(e,"name",{value:t,configurable:!0});var Ub=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var S=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Ye=(e,t)=>{for(var n in t)Sn(e,n,{get:t[n],enumerable:!0})},Xf=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Cb(t))!Mb.call(e,r)&&r!==n&&Sn(e,r,{get:()=>t[r],enumerable:!(o=Db(t,r))||o.enumerable});return e};var ot=(e,t,n)=>(n=e!=null?kb(Nb(e)):{},Xf(t||!e||!e.__esModule?Sn(n,"default",{value:e,enumerable:!0}):n,e)),ge=e=>Xf(Sn({},"__esModule",{value:!0}),e);var lh=S((ch,Rs)=>{(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,}",a="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function c(p,y){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let _=0,E=-1,x=(p.match(u.zoneIndex)||[])[0],O,U;for(x&&(x=x.substring(1),p=p.replace(/%.+$/,""));(E=p.indexOf(":",E+1))>=0;)_++;if(p.substr(0,2)==="::"&&_--,p.substr(-2,2)==="::"&&_--,_>y)return null;for(U=y-_,O=":";U--;)O+="0:";return p=p.replace("::",O),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),y=(function(){let te=p.split(":"),le=[];for(let Ue=0;Ue<te.length;Ue++)le.push(parseInt(te[Ue],16));return le})(),{parts:y,zoneId:x}}s(c,"expandIPv6");function l(p,y,_,E){if(p.length!==y.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let x=0,O;for(;E>0;){if(O=_-E,O<0&&(O=0),p[x]>>O!==y[x]>>O)return!1;E-=_,x+=1}return!0}s(l,"matchCIDR");function m(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(o.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(m,"parseIntAuto");function f(p,y){for(;p.length<y;)p=`0${p}`;return p}s(f,"padPart");let g={};g.IPv4=(function(){function p(y){if(y.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,E;for(_=0;_<y.length;_++)if(E=y[_],!(0<=E&&E<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=y}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(y,_){let E;if(_===void 0&&(E=y,y=E[0],_=E[1]),y.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,y.octets,8,_)},p.prototype.prefixLengthFromSubnetMask=function(){let y=0,_=!1,E={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},x,O,U;for(x=3;x>=0;x-=1)if(O=this.octets[x],O in E){if(U=E[O],_&&U!==0)return null;U!==8&&(_=!0),y+=U}else return null;return 32-y},p.prototype.range=function(){return g.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return g.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),g.IPv4.broadcastAddressFromCIDR=function(p){try{let y=this.parseCIDR(p),_=y[0].toByteArray(),E=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),x=[],O=0;for(;O<4;)x.push(parseInt(_[O],10)|parseInt(E[O],10)^255),O++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},g.IPv4.isIPv4=function(p){return this.parser(p)!==null},g.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},g.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},g.IPv4.isValidFourPartDecimal=function(p){return!!(g.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},g.IPv4.isValidCIDRFourPartDecimal=function(p){let y=p.match(/^(.+)\/(\d+)$/);return!g.IPv4.isValidCIDR(p)||!y?!1:g.IPv4.isValidFourPartDecimal(y[1])},g.IPv4.networkAddressFromCIDR=function(p){let y,_,E,x,O;try{for(y=this.parseCIDR(p),E=y[0].toByteArray(),O=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),x=[],_=0;_<4;)x.push(parseInt(E[_],10)&parseInt(O[_],10)),_++;return new this(x)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},g.IPv4.parse=function(p){let y=this.parser(p);if(y===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(y)},g.IPv4.parseCIDR=function(p){let y;if(y=p.match(/^(.+)\/(\d+)$/)){let _=parseInt(y[2]);if(_>=0&&_<=32){let E=[this.parse(y[1]),_];return Object.defineProperty(E,"toString",{value:s(function(){return this.join("/")},"value")}),E}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},g.IPv4.parser=function(p){let y,_,E;if(y=p.match(n.fourOctet))return(function(){let x=y.slice(1,6),O=[];for(let U=0;U<x.length;U++)_=x[U],O.push(m(_));return O})();if(y=p.match(n.longValue)){if(E=m(y[1]),E>4294967295||E<0)throw new Error("ipaddr: address outside defined range");return(function(){let x=[],O;for(O=0;O<=24;O+=8)x.push(E>>O&255);return x})().reverse()}else return(y=p.match(n.twoOctet))?(function(){let x=y.slice(1,4),O=[];if(E=m(x[1]),E>16777215||E<0)throw new Error("ipaddr: address outside defined range");return O.push(m(x[0])),O.push(E>>16&255),O.push(E>>8&255),O.push(E&255),O})():(y=p.match(n.threeOctet))?(function(){let x=y.slice(1,5),O=[];if(E=m(x[2]),E>65535||E<0)throw new Error("ipaddr: address outside defined range");return O.push(m(x[0])),O.push(m(x[1])),O.push(E>>8&255),O.push(E&255),O})():null},g.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let y=[0,0,0,0],_=0,E=Math.floor(p/8);for(;_<E;)y[_]=255,_++;return E<4&&(y[E]=Math.pow(2,p%8)-1<<8-p%8),new this(y)},g.IPv6=(function(){function p(y,_){let E,x;if(y.length===16)for(this.parts=[],E=0;E<=14;E+=2)this.parts.push(y[E]<<8|y[E+1]);else if(y.length===8)this.parts=y;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(E=0;E<this.parts.length;E++)if(x=this.parts[E],!(0<=x&&x<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(y,_){let E;if(_===void 0&&(E=y,y=E[0],_=E[1]),y.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,y.parts,16,_)},p.prototype.prefixLengthFromSubnetMask=function(){let y=0,_=!1,E={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},x,O;for(let U=7;U>=0;U-=1)if(x=this.parts[U],x in E){if(O=E[x],_&&O!==0)return null;O!==16&&(_=!0),y+=O}else return null;return 128-y},p.prototype.range=function(){return g.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let y,_=[],E=this.parts;for(let x=0;x<E.length;x++)y=E[x],_.push(y>>8),_.push(y&255);return _},p.prototype.toFixedLengthString=function(){let y=(function(){let E=[];for(let x=0;x<this.parts.length;x++)E.push(f(this.parts[x].toString(16),4));return E}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),y+_},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let y=this.parts.slice(-2),_=y[0],E=y[1];return new g.IPv4([_>>8,_&255,E>>8,E&255])},p.prototype.toNormalizedString=function(){let y=(function(){let E=[];for(let x=0;x<this.parts.length;x++)E.push(this.parts[x].toString(16));return E}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),y+_},p.prototype.toRFC5952String=function(){let y=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),E=0,x=-1,O;for(;O=y.exec(_);)O[0].length>x&&(E=O.index,x=O[0].length);return x<0?_:`${_.substring(0,E)}::${_.substring(E+x)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),g.IPv6.broadcastAddressFromCIDR=function(p){try{let y=this.parseCIDR(p),_=y[0].toByteArray(),E=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),x=[],O=0;for(;O<16;)x.push(parseInt(_[O],10)|parseInt(E[O],10)^255),O++;return new this(x)}catch(y){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`)}},g.IPv6.isIPv6=function(p){return this.parser(p)!==null},g.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let y=this.parser(p);return new this(y.parts,y.zoneId),!0}catch{return!1}},g.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},g.IPv6.networkAddressFromCIDR=function(p){let y,_,E,x,O;try{for(y=this.parseCIDR(p),E=y[0].toByteArray(),O=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),x=[],_=0;_<16;)x.push(parseInt(E[_],10)&parseInt(O[_],10)),_++;return new this(x)}catch(U){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${U})`)}},g.IPv6.parse=function(p){let y=this.parser(p);if(y.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(y.parts,y.zoneId)},g.IPv6.parseCIDR=function(p){let y,_,E;if((_=p.match(/^(.+)\/(\d+)$/))&&(y=parseInt(_[2]),y>=0&&y<=128))return E=[this.parse(_[1]),y],Object.defineProperty(E,"toString",{value:s(function(){return this.join("/")},"value")}),E;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},g.IPv6.parser=function(p){let y,_,E,x,O,U;if(E=p.match(u.deprecatedTransitional))return this.parser(`::ffff:${E[1]}`);if(u.native.test(p))return c(p,8);if((E=p.match(u.transitional))&&(U=E[6]||"",y=E[1],E[1].endsWith("::")||(y=y.slice(0,-1)),y=c(y+U,6),y.parts)){for(O=[parseInt(E[2]),parseInt(E[3]),parseInt(E[4]),parseInt(E[5])],_=0;_<O.length;_++)if(x=O[_],!(0<=x&&x<=255))return null;return y.parts.push(O[0]<<8|O[1]),y.parts.push(O[2]<<8|O[3]),{parts:y.parts,zoneId:y.zoneId}}return null},g.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,E=Math.floor(p/8);for(;_<E;)y[_]=255,_++;return E<16&&(y[E]=Math.pow(2,p%8)-1<<8-p%8),new this(y)},g.fromByteArray=function(p){let y=p.length;if(y===4)return new g.IPv4(p);if(y===16)return new g.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},g.isValid=function(p){return g.IPv6.isValid(p)||g.IPv4.isValid(p)},g.isValidCIDR=function(p){return g.IPv6.isValidCIDR(p)||g.IPv4.isValidCIDR(p)},g.parse=function(p){if(g.IPv6.isValid(p))return g.IPv6.parse(p);if(g.IPv4.isValid(p))return g.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},g.parseCIDR=function(p){try{return g.IPv6.parseCIDR(p)}catch{try{return g.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},g.process=function(p){let y=this.parse(p);return y.kind()==="ipv6"&&y.isIPv4MappedAddress()?y.toIPv4Address():y},g.subnetMatch=function(p,y,_){let E,x,O,U;_==null&&(_="unicast");for(x in y)if(Object.prototype.hasOwnProperty.call(y,x)){for(O=y[x],O[0]&&!(O[0]instanceof Array)&&(O=[O]),E=0;E<O.length;E++)if(U=O[E],p.kind()===U[0].kind()&&p.match.apply(p,U))return x}return _},typeof Rs<"u"&&Rs.exports?Rs.exports=g:e.ipaddr=g})(ch)});var kv=S((pF,Rv)=>{var zv=require("stream").Stream,OA=require("util");Rv.exports=ct;function ct(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(ct,"DelayedStream");OA.inherits(ct,zv);ct.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(ct.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});ct.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};ct.prototype.resume=function(){this._released||this.release(),this.source.resume()};ct.prototype.pause=function(){this.source.pause()};ct.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};ct.prototype.pipe=function(){var e=zv.prototype.pipe.apply(this,arguments);return this.resume(),e};ct.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)};ct.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 Mv=S((mF,Nv)=>{var wA=require("util"),Cv=require("stream").Stream,Dv=kv();Nv.exports=be;function be(){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}s(be,"CombinedStream");wA.inherits(be,Cv);be.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};be.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};be.prototype.append=function(e){var t=be.isStreamLike(e);if(t){if(!(e instanceof Dv)){var n=Dv.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};be.prototype.pipe=function(e,t){return Cv.prototype.pipe.call(this,e,t),this.resume(),e};be.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}};be.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=be.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};be.prototype._pipeNext=function(e){this._currentStream=e;var t=be.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()};be.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};be.prototype.write=function(e){this.emit("data",e)};be.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};be.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")};be.prototype.end=function(){this._reset(),this.emit("end")};be.prototype.destroy=function(){this._reset(),this.emit("close")};be.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};be.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};be.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)};be.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Lv=S((gF,Uv)=>{"use strict";Uv.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 Bv=S(He=>{"use strict";var vu=Lv(),zA=require("path").extname,jv=/^\s*([^;\s]*)(?:;|\s|$)/,RA=/^text\//i;He.charset=Fv;He.charsets={lookup:Fv};He.contentType=kA;He.extension=DA;He.extensions=Object.create(null);He.lookup=CA;He.types=Object.create(null);NA(He.extensions,He.types);function Fv(e){if(!e||typeof e!="string")return!1;var t=jv.exec(e),n=t&&vu[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&RA.test(t[1])?"UTF-8":!1}s(Fv,"charset");function kA(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?He.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=He.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}s(kA,"contentType");function DA(e){if(!e||typeof e!="string")return!1;var t=jv.exec(e),n=t&&He.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}s(DA,"extension");function CA(e){if(!e||typeof e!="string")return!1;var t=zA("x."+e).toLowerCase().substr(1);return t&&He.types[t]||!1}s(CA,"lookup");function NA(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(vu).forEach(s(function(r){var i=vu[r],a=i.extensions;if(!(!a||!a.length)){e[r]=a;for(var u=0;u<a.length;u++){var c=a[u];if(t[c]){var l=n.indexOf(vu[t[c]].source),m=n.indexOf(i.source);if(t[c]!=="application/octet-stream"&&(l>m||l===m&&t[c].substr(0,12)==="application/"))continue}t[c]=r}}},"forEachMimeType"))}s(NA,"populateMaps")});var Vv=S((vF,Zv)=>{Zv.exports=MA;function MA(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(MA,"defer")});var tf=S((xF,qv)=>{var Hv=Vv();qv.exports=UA;function UA(e){var t=!1;return Hv(function(){t=!0}),s(function(o,r){t?e(o,r):Hv(s(function(){e(o,r)},"nextTick_callback"))},"async_callback")}s(UA,"async")});var rf=S((bF,Gv)=>{Gv.exports=LA;function LA(e){Object.keys(e.jobs).forEach(jA.bind(e)),e.jobs={}}s(LA,"abort");function jA(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(jA,"clean")});var nf=S((TF,Jv)=>{var Wv=tf(),FA=rf();Jv.exports=BA;function BA(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=ZA(t,r,e[r],function(i,a){r in n.jobs&&(delete n.jobs[r],i?FA(n):n.results[r]=a,o(i,n.results))})}s(BA,"iterate");function ZA(e,t,n,o){var r;return e.length==2?r=e(n,Wv(o)):r=e(n,t,Wv(o)),r}s(ZA,"runJob")});var of=S((IF,Kv)=>{Kv.exports=VA;function VA(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}s(VA,"state")});var af=S(($F,Xv)=>{var HA=rf(),qA=tf();Xv.exports=GA;function GA(e){Object.keys(this.jobs).length&&(this.index=this.size,HA(this),qA(e)(null,this.results))}s(GA,"terminator")});var Qv=S((wF,Yv)=>{var WA=nf(),JA=of(),KA=af();Yv.exports=XA;function XA(e,t,n){for(var o=JA(e);o.index<(o.keyedList||e).length;)WA(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 KA.bind(o,n)}s(XA,"parallel")});var sf=S((RF,_u)=>{var e_=nf(),YA=of(),QA=af();_u.exports=e$;_u.exports.ascending=t_;_u.exports.descending=t$;function e$(e,t,n,o){var r=YA(e,n);return e_(e,t,r,s(function i(a,u){if(a){o(a,u);return}if(r.index++,r.index<(r.keyedList||e).length){e_(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),QA.bind(r,o)}s(e$,"serialOrdered");function t_(e,t){return e<t?-1:e>t?1:0}s(t_,"ascending");function t$(e,t){return-1*t_(e,t)}s(t$,"descending")});var n_=S((DF,r_)=>{var r$=sf();r_.exports=n$;function n$(e,t,n){return r$(e,t,null,n)}s(n$,"serial")});var i_=S((NF,o_)=>{o_.exports={parallel:Qv(),serial:n_(),serialOrdered:sf()}});var uf=S((MF,a_)=>{"use strict";a_.exports=Object});var u_=S((UF,s_)=>{"use strict";s_.exports=Error});var l_=S((LF,c_)=>{"use strict";c_.exports=EvalError});var d_=S((jF,p_)=>{"use strict";p_.exports=RangeError});var f_=S((FF,m_)=>{"use strict";m_.exports=ReferenceError});var h_=S((BF,g_)=>{"use strict";g_.exports=SyntaxError});var xu=S((ZF,y_)=>{"use strict";y_.exports=TypeError});var __=S((VF,v_)=>{"use strict";v_.exports=URIError});var P_=S((HF,x_)=>{"use strict";x_.exports=Math.abs});var E_=S((qF,b_)=>{"use strict";b_.exports=Math.floor});var S_=S((GF,T_)=>{"use strict";T_.exports=Math.max});var A_=S((WF,I_)=>{"use strict";I_.exports=Math.min});var O_=S((JF,$_)=>{"use strict";$_.exports=Math.pow});var z_=S((KF,w_)=>{"use strict";w_.exports=Math.round});var k_=S((XF,R_)=>{"use strict";R_.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var C_=S((QF,D_)=>{"use strict";var o$=k_();D_.exports=s(function(t){return o$(t)||t===0?t:t<0?-1:1},"sign")});var M_=S((t6,N_)=>{"use strict";N_.exports=Object.getOwnPropertyDescriptor});var cf=S((r6,U_)=>{"use strict";var Pu=M_();if(Pu)try{Pu([],"length")}catch{Pu=null}U_.exports=Pu});var j_=S((n6,L_)=>{"use strict";var bu=Object.defineProperty||!1;if(bu)try{bu({},"a",{value:1})}catch{bu=!1}L_.exports=bu});var lf=S((o6,F_)=>{"use strict";F_.exports=s(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 a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[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 V_=S((a6,Z_)=>{"use strict";var B_=typeof Symbol<"u"&&Symbol,i$=lf();Z_.exports=s(function(){return typeof B_!="function"||typeof Symbol!="function"||typeof B_("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i$()},"hasNativeSymbols")});var pf=S((u6,H_)=>{"use strict";H_.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var df=S((c6,q_)=>{"use strict";var a$=uf();q_.exports=a$.getPrototypeOf||null});var J_=S((l6,W_)=>{"use strict";var s$="Function.prototype.bind called on incompatible ",u$=Object.prototype.toString,c$=Math.max,l$="[object Function]",G_=s(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"),p$=s(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"),d$=s(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");W_.exports=s(function(t){var n=this;if(typeof n!="function"||u$.apply(n)!==l$)throw new TypeError(s$+n);for(var o=p$(arguments,1),r,i=s(function(){if(this instanceof r){var m=n.apply(this,G_(o,arguments));return Object(m)===m?m:this}return n.apply(t,G_(o,arguments))},"binder"),a=c$(0,n.length-o.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(r=Function("binder","return function ("+d$(u,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var l=s(function(){},"Empty");l.prototype=n.prototype,r.prototype=new l,l.prototype=null}return r},"bind")});var sn=S((d6,K_)=>{"use strict";var m$=J_();K_.exports=Function.prototype.bind||m$});var Eu=S((m6,X_)=>{"use strict";X_.exports=Function.prototype.call});var mf=S((f6,Y_)=>{"use strict";Y_.exports=Function.prototype.apply});var ex=S((g6,Q_)=>{"use strict";Q_.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var rx=S((h6,tx)=>{"use strict";var f$=sn(),g$=mf(),h$=Eu(),y$=ex();tx.exports=y$||f$.call(h$,g$)});var ox=S((y6,nx)=>{"use strict";var v$=sn(),_$=xu(),x$=Eu(),P$=rx();nx.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new _$("a function is required");return P$(v$,x$,t)},"callBindBasic")});var lx=S((_6,cx)=>{"use strict";var b$=ox(),ix=cf(),sx;try{sx=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var ff=!!sx&&ix&&ix(Object.prototype,"__proto__"),ux=Object,ax=ux.getPrototypeOf;cx.exports=ff&&typeof ff.get=="function"?b$([ff.get]):typeof ax=="function"?s(function(t){return ax(t==null?t:ux(t))},"getDunder"):!1});var gx=S((P6,fx)=>{"use strict";var px=pf(),dx=df(),mx=lx();fx.exports=px?s(function(t){return px(t)},"getProto"):dx?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return dx(t)},"getProto"):mx?s(function(t){return mx(t)},"getProto"):null});var gf=S((E6,hx)=>{"use strict";var E$=Function.prototype.call,T$=Object.prototype.hasOwnProperty,S$=sn();hx.exports=S$.call(E$,T$)});var Ex=S((T6,bx)=>{"use strict";var ee,I$=uf(),A$=u_(),$$=l_(),O$=d_(),w$=f_(),pn=h_(),ln=xu(),z$=__(),R$=P_(),k$=E_(),D$=S_(),C$=A_(),N$=O_(),M$=z_(),U$=C_(),xx=Function,hf=s(function(e){try{return xx('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),vi=cf(),L$=j_(),yf=s(function(){throw new ln},"throwTypeError"),j$=vi?(function(){try{return arguments.callee,yf}catch{try{return vi(arguments,"callee").get}catch{return yf}}})():yf,un=V_()(),ze=gx(),F$=df(),B$=pf(),Px=mf(),_i=Eu(),cn={},Z$=typeof Uint8Array>"u"||!ze?ee:ze(Uint8Array),vr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ee:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ee:ArrayBuffer,"%ArrayIteratorPrototype%":un&&ze?ze([][Symbol.iterator]()):ee,"%AsyncFromSyncIteratorPrototype%":ee,"%AsyncFunction%":cn,"%AsyncGenerator%":cn,"%AsyncGeneratorFunction%":cn,"%AsyncIteratorPrototype%":cn,"%Atomics%":typeof Atomics>"u"?ee:Atomics,"%BigInt%":typeof BigInt>"u"?ee:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ee:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ee:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ee:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":A$,"%eval%":eval,"%EvalError%":$$,"%Float16Array%":typeof Float16Array>"u"?ee:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ee:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ee:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ee:FinalizationRegistry,"%Function%":xx,"%GeneratorFunction%":cn,"%Int8Array%":typeof Int8Array>"u"?ee:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ee:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ee:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":un&&ze?ze(ze([][Symbol.iterator]())):ee,"%JSON%":typeof JSON=="object"?JSON:ee,"%Map%":typeof Map>"u"?ee:Map,"%MapIteratorPrototype%":typeof Map>"u"||!un||!ze?ee:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":I$,"%Object.getOwnPropertyDescriptor%":vi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ee:Promise,"%Proxy%":typeof Proxy>"u"?ee:Proxy,"%RangeError%":O$,"%ReferenceError%":w$,"%Reflect%":typeof Reflect>"u"?ee:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ee:Set,"%SetIteratorPrototype%":typeof Set>"u"||!un||!ze?ee:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ee:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":un&&ze?ze(""[Symbol.iterator]()):ee,"%Symbol%":un?Symbol:ee,"%SyntaxError%":pn,"%ThrowTypeError%":j$,"%TypedArray%":Z$,"%TypeError%":ln,"%Uint8Array%":typeof Uint8Array>"u"?ee:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ee:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ee:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ee:Uint32Array,"%URIError%":z$,"%WeakMap%":typeof WeakMap>"u"?ee:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ee:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ee:WeakSet,"%Function.prototype.call%":_i,"%Function.prototype.apply%":Px,"%Object.defineProperty%":L$,"%Object.getPrototypeOf%":F$,"%Math.abs%":R$,"%Math.floor%":k$,"%Math.max%":D$,"%Math.min%":C$,"%Math.pow%":N$,"%Math.round%":M$,"%Math.sign%":U$,"%Reflect.getPrototypeOf%":B$};if(ze)try{null.error}catch(e){yx=ze(ze(e)),vr["%Error.prototype%"]=yx}var yx,V$=s(function e(t){var n;if(t==="%AsyncFunction%")n=hf("async function () {}");else if(t==="%GeneratorFunction%")n=hf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=hf("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&ze&&(n=ze(r.prototype))}return vr[t]=n,n},"doEval"),vx={__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"]},xi=sn(),Tu=gf(),H$=xi.call(_i,Array.prototype.concat),q$=xi.call(Px,Array.prototype.splice),_x=xi.call(_i,String.prototype.replace),Su=xi.call(_i,String.prototype.slice),G$=xi.call(_i,RegExp.prototype.exec),W$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J$=/\\(\\)?/g,K$=s(function(t){var n=Su(t,0,1),o=Su(t,-1);if(n==="%"&&o!=="%")throw new pn("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new pn("invalid intrinsic syntax, expected opening `%`");var r=[];return _x(t,W$,function(i,a,u,c){r[r.length]=u?_x(c,J$,"$1"):a||i}),r},"stringToPath"),X$=s(function(t,n){var o=t,r;if(Tu(vx,o)&&(r=vx[o],o="%"+r[0]+"%"),Tu(vr,o)){var i=vr[o];if(i===cn&&(i=V$(o)),typeof i>"u"&&!n)throw new ln("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new pn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");bx.exports=s(function(t,n){if(typeof t!="string"||t.length===0)throw new ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ln('"allowMissing" argument must be a boolean');if(G$(/^%?[^%]*%?$/,t)===null)throw new pn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=K$(t),r=o.length>0?o[0]:"",i=X$("%"+r+"%",n),a=i.name,u=i.value,c=!1,l=i.alias;l&&(r=l[0],q$(o,H$([0,1],l)));for(var m=1,f=!0;m<o.length;m+=1){var g=o[m],p=Su(g,0,1),y=Su(g,-1);if((p==='"'||p==="'"||p==="`"||y==='"'||y==="'"||y==="`")&&p!==y)throw new pn("property names with quotes must have matching quotes");if((g==="constructor"||!f)&&(c=!0),r+="."+g,a="%"+r+"%",Tu(vr,a))u=vr[a];else if(u!=null){if(!(g in u)){if(!n)throw new ln("base intrinsic for "+t+" exists, but the property is not available.");return}if(vi&&m+1>=o.length){var _=vi(u,g);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[g]}else f=Tu(u,g),u=u[g];f&&!c&&(vr[a]=u)}}return u},"GetIntrinsic")});var Sx=S((I6,Tx)=>{"use strict";var Y$=lf();Tx.exports=s(function(){return Y$()&&!!Symbol.toStringTag},"hasToStringTagShams")});var $x=S(($6,Ax)=>{"use strict";var Q$=Ex(),Ix=Q$("%Object.defineProperty%",!0),eO=Sx()(),tO=gf(),rO=xu(),Iu=eO?Symbol.toStringTag:null;Ax.exports=s(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 rO("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Iu&&(o||!tO(t,Iu))&&(Ix?Ix(t,Iu,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Iu]=n)},"setToStringTag")});var wx=S((w6,Ox)=>{"use strict";var nO=Function.prototype.call,oO=Object.prototype.hasOwnProperty,iO=sn();Ox.exports=iO.call(nO,oO)});var Rx=S((z6,zx)=>{"use strict";zx.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var Cx=S((R6,Dx)=>{"use strict";var Pf=Mv(),aO=require("util"),vf=require("path"),sO=require("http"),uO=require("https"),cO=require("url").parse,lO=require("fs"),pO=require("stream").Stream,dO=require("crypto"),_f=Bv(),mO=i_(),fO=$x(),Zt=wx(),xf=Rx();function kx(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(kx,"escapeHeaderParam");function ie(e){if(!(this instanceof ie))return new ie(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Pf.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ie,"FormData");aO.inherits(ie,Pf);ie.LINE_BREAK=`\r
|
|
2
|
-
`;ie.DEFAULT_CONTENT_TYPE="application/octet-stream";ie.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=Pf.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)};ie.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)+ie.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Zt(t,"httpVersion"))&&!(t instanceof pO))&&(n.knownLength||this._valuesToMeasure.push(t))};ie.prototype._lengthRetriever=function(e,t){Zt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):lO.stat(e.path,function(n,o){if(n){t(n);return}var r=o.size-(e.start?e.start:0);t(null,r)}):Zt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Zt(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")};ie.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="",a={"Content-Disposition":["form-data",'name="'+kx(e)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&xf(a,n.header);var u;for(var c in a)if(Zt(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=c+": "+u.join("; ")+ie.LINE_BREAK)}return"--"+this.getBoundary()+ie.LINE_BREAK+i+ie.LINE_BREAK};ie.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath=="string"?n=vf.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=vf.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Zt(e,"httpVersion")&&(n=vf.basename(e.client._httpMessage.path||"")),n)return'filename="'+kx(n)+'"'};ie.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=_f.lookup(e.name)),!n&&e&&e.path&&(n=_f.lookup(e.path)),!n&&e&&e.readable&&Zt(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=_f.lookup(t.filepath||t.filename)),!n&&e&&typeof e=="object"&&(n=ie.DEFAULT_CONTENT_TYPE),n};ie.prototype._multiPartFooter=function(){return function(e){var t=ie.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};ie.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ie.LINE_BREAK};ie.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Zt(e,t)&&(n[t.toLowerCase()]=e[t]);return n};ie.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ie.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ie.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(ie.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ie.prototype._generateBoundary=function(){this._boundary="--------------------------"+dO.randomBytes(12).toString("hex")};ie.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};ie.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ie.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}mO.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){e(n);return}o.forEach(function(r){t+=r}),e(null,t)})};ie.prototype.submit=function(e,t){var n,o,r={method:"post"};return typeof e=="string"?(e=cO(e),o=xf({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(o=xf(e,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?n=uO.request(o):n=sO.request(o),this.getLength(function(i,a){if(i&&i!=="Unknown stream"){this._error(i);return}if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var u,c=s(function(l,m){return n.removeListener("error",c),n.removeListener("response",u),t.call(this,l,m)},"callback");u=c.bind(this,null),n.on("error",c),n.on("response",u)}}.bind(this)),n};ie.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ie.prototype.toString=function(){return"[object FormData]"};fO(ie.prototype,"FormData");Dx.exports=ie});var _e={};Ye(_e,{__addDisposableResource:()=>gP,__assign:()=>$u,__asyncDelegator:()=>sP,__asyncGenerator:()=>aP,__asyncValues:()=>uP,__await:()=>dn,__awaiter:()=>eP,__classPrivateFieldGet:()=>dP,__classPrivateFieldIn:()=>fP,__classPrivateFieldSet:()=>mP,__createBinding:()=>wu,__decorate:()=>Gx,__disposeResources:()=>hP,__esDecorate:()=>Jx,__exportStar:()=>rP,__extends:()=>Hx,__generator:()=>tP,__importDefault:()=>pP,__importStar:()=>lP,__makeTemplateObject:()=>cP,__metadata:()=>Qx,__param:()=>Wx,__propKey:()=>Xx,__read:()=>Tf,__rest:()=>qx,__rewriteRelativeImportExtension:()=>yP,__runInitializers:()=>Kx,__setFunctionName:()=>Yx,__spread:()=>nP,__spreadArray:()=>iP,__spreadArrays:()=>oP,__values:()=>Ou,default:()=>AO});function Hx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bf(e,t);function n(){this.constructor=e}s(n,"__"),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function qx(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Gx(e,t,n,o){var r=arguments.length,i=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(i=(r<3?a(i):r>3?a(t,n,i):a(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i}function Wx(e,t){return function(n,o){t(n,o,e)}}function Jx(e,t,n,o,r,i){function a(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}s(a,"accept");for(var u=o.kind,c=u==="getter"?"get":u==="setter"?"set":"value",l=!t&&e?o.static?e:e.prototype:null,m=t||(l?Object.getOwnPropertyDescriptor(l,o.name):{}),f,g=!1,p=n.length-1;p>=0;p--){var y={};for(var _ in o)y[_]=_==="access"?{}:o[_];for(var _ in o.access)y.access[_]=o.access[_];y.addInitializer=function(x){if(g)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(x||null))};var E=(0,n[p])(u==="accessor"?{get:m.get,set:m.set}:m[c],y);if(u==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(f=a(E.get))&&(m.get=f),(f=a(E.set))&&(m.set=f),(f=a(E.init))&&r.unshift(f)}else(f=a(E))&&(u==="field"?r.unshift(f):m[c]=f)}l&&Object.defineProperty(l,o.name,m),g=!0}function Kx(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0}function Xx(e){return typeof e=="symbol"?e:"".concat(e)}function Yx(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Qx(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function eP(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return s(r,"adopt"),new(n||(n=Promise))(function(i,a){function u(m){try{l(o.next(m))}catch(f){a(f)}}s(u,"fulfilled");function c(m){try{l(o.throw(m))}catch(f){a(f)}}s(c,"rejected");function l(m){m.done?i(m.value):r(m.value).then(u,c)}s(l,"step"),l((o=o.apply(e,t||[])).next())})}function tP(e,t){var n={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},o,r,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(l){return function(m){return c([l,m])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(o=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,r=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(m){l=[6,m],r=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function rP(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&wu(t,e,n)}function Ou(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tf(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(u){a={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function nP(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tf(arguments[t]));return e}function oP(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,r++)o[r]=i[a];return o}function iP(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function dn(e){return this instanceof dn?(this.v=e,this):new dn(e)}function aP(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(p){return function(y){return Promise.resolve(y).then(p,f)}}function u(p,y){o[p]&&(r[p]=function(_){return new Promise(function(E,x){i.push([p,_,E,x])>1||c(p,_)})},y&&(r[p]=y(r[p])))}function c(p,y){try{l(o[p](y))}catch(_){g(i[0][3],_)}}function l(p){p.value instanceof dn?Promise.resolve(p.value.v).then(m,f):g(i[0][2],p)}function m(p){c("next",p)}function f(p){c("throw",p)}function g(p,y){p(y),i.shift(),i.length&&c(i[0][0],i[0][1])}}function sP(e){var t,n;return t={},o("next"),o("throw",function(r){throw r}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(r,i){t[r]=e[r]?function(a){return(n=!n)?{value:dn(e[r](a)),done:!1}:i?i(a):a}:i}}function uP(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ou=="function"?Ou(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(i){n[i]=e[i]&&function(a){return new Promise(function(u,c){a=e[i](a),r(u,c,a.done,a.value)})}}function r(i,a,u,c){Promise.resolve(c).then(function(l){i({value:l,done:u})},a)}}function cP(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function lP(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Ef(e),o=0;o<n.length;o++)n[o]!=="default"&&wu(t,e,n[o]);return SO(t,e),t}function pP(e){return e&&e.__esModule?e:{default:e}}function dP(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)}function mP(e,t,n,o,r){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n}function fP(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function gP(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],n&&(r=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");r&&(o=s(function(){try{r.call(this)}catch(i){return Promise.reject(i)}},"dispose")),e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}function hP(e){function t(i){e.error=e.hasError?new IO(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}s(t,"fail");var n,o=0;function r(){for(;n=e.stack.pop();)try{if(!n.async&&o===1)return o=0,e.stack.push(n),Promise.resolve().then(r);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return o|=2,Promise.resolve(i).then(r,function(a){return t(a),r()})}else o|=1}catch(a){t(a)}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s(r,"next"),r()}function yP(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,o,r,i,a){return o?t?".jsx":".js":r&&(!i||!a)?n:r+i+"."+a.toLowerCase()+"js"}):e}var bf,$u,wu,SO,Ef,IO,AO,xe=Ub(()=>{bf=s(function(e,t){return bf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},bf(e,t)},"extendStatics");s(Hx,"__extends");$u=s(function(){return $u=Object.assign||s(function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},"__assign"),$u.apply(this,arguments)},"__assign");s(qx,"__rest");s(Gx,"__decorate");s(Wx,"__param");s(Jx,"__esDecorate");s(Kx,"__runInitializers");s(Xx,"__propKey");s(Yx,"__setFunctionName");s(Qx,"__metadata");s(eP,"__awaiter");s(tP,"__generator");wu=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:s(function(){return t[n]},"get")}),Object.defineProperty(e,o,r)}):(function(e,t,n,o){o===void 0&&(o=n),e[o]=t[n]});s(rP,"__exportStar");s(Ou,"__values");s(Tf,"__read");s(nP,"__spread");s(oP,"__spreadArrays");s(iP,"__spreadArray");s(dn,"__await");s(aP,"__asyncGenerator");s(sP,"__asyncDelegator");s(uP,"__asyncValues");s(cP,"__makeTemplateObject");SO=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Ef=s(function(e){return Ef=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},Ef(e)},"ownKeys");s(lP,"__importStar");s(pP,"__importDefault");s(dP,"__classPrivateFieldGet");s(mP,"__classPrivateFieldSet");s(fP,"__classPrivateFieldIn");s(gP,"__addDisposableResource");IO=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};s(hP,"__disposeResources");s(yP,"__rewriteRelativeImportExtension");AO={__extends:Hx,__assign:$u,__rest:qx,__decorate:Gx,__param:Wx,__esDecorate:Jx,__runInitializers:Kx,__propKey:Xx,__setFunctionName:Yx,__metadata:Qx,__awaiter:eP,__generator:tP,__createBinding:wu,__exportStar:rP,__values:Ou,__read:Tf,__spread:nP,__spreadArrays:oP,__spreadArray:iP,__await:dn,__asyncGenerator:aP,__asyncDelegator:sP,__asyncValues:uP,__makeTemplateObject:cP,__importStar:lP,__importDefault:pP,__classPrivateFieldGet:dP,__classPrivateFieldSet:mP,__classPrivateFieldIn:fP,__addDisposableResource:gP,__disposeResources:hP,__rewriteRelativeImportExtension:yP}});var bi=S(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.RequestMethod=void 0;var vP;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(vP||(zu.RequestMethod=vP={}))});var _P=S(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.BatchRequestContent=void 0;var mn=(xe(),ge(_e)),Sf=bi(),$O=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var n=e.requestLimit;if(t.length>n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var n=s(function(a){for(var u=a.entries(),c=u.next();!c.done;){var l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;c=u.next()}return!0},"isParallel"),o=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var m=c;for(c=u.next();!c.done;){var f=c.value[1];if(f.dependsOn===void 0||f.dependsOn.length!==1||f.dependsOn[0]!==m.value[1].id)return!1;m=c,c=u.next()}return!0},"isSerial"),r=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1],m;if(l.dependsOn===void 0||l.dependsOn.length===0)m=l.id;else if(l.dependsOn.length===1){var f=l.dependsOn[0];if(f!==l.id&&a.has(f))m=f;else return!1}else return!1;for(c=u.next();!c.done;){var g=c.value[1];if((g.dependsOn===void 0||g.dependsOn.length===0)&&m!==g.id||g.dependsOn!==void 0&&g.dependsOn.length!==0&&(g.dependsOn.length===1&&(g.id===m||g.dependsOn[0]!==m)||g.dependsOn.length>1))return!1;c=u.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return n(t)||o(t)||r(t)},e.getRequestData=function(t){return mn.__awaiter(this,void 0,void 0,function(){var n,o,r,i;return mn.__generator(this,function(a){switch(a.label){case 0:return n={url:""},o=new RegExp("^https?://"),n.url=o.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,n.method=t.method,r={},t.headers.forEach(function(u,c){r[c]=u}),Object.keys(r).length&&(n.headers=r),t.method===Sf.RequestMethod.PATCH||t.method===Sf.RequestMethod.POST||t.method===Sf.RequestMethod.PUT?(i=n,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=a.sent(),a.label=2;case 2:return[2,n]}})})},e.getRequestBody=function(t){return mn.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c,l;return mn.__generator(this,function(m){switch(m.label){case 0:n=!1,m.label=1;case 1:return m.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return o=m.sent(),n=!0,[3,4];case 3:return i=m.sent(),[3,4];case 4:if(n)return[3,12];m.label=5;case 5:return m.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=m.sent(),u=new FileReader,[4,new Promise(function(f){u.addEventListener("load",function(){var g=u.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),y=p.exec(g);f(y[4])},!1),u.readAsDataURL(a)})];case 7:return o=m.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:c=m.sent(),o=c.toString("base64"),m.label=10;case 10:return n=!0,[3,12];case 11:return l=m.sent(),[3,12];case 12:return[2,o]}})})},e.prototype.addRequest=function(t){var n=e.requestLimit;if(t.id===""){var o=new Error("Id for a request is empty, Please provide an unique id");throw o.name="Empty Id For Request",o}if(this.requests.size===n){var o=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(n));throw o.name="Limit Exceeded Error",o}if(this.requests.has(t.id)){var o=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw o.name="Duplicate RequestId Error",o}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var n=this.requests.delete(t),o=this.requests.entries(),r=o.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=o.next()}return n},e.prototype.getContent=function(){return mn.__awaiter(this,void 0,void 0,function(){var t,n,o,r,u,u,i,a,u;return mn.__generator(this,function(c){switch(c.label){case 0:if(t=[],n={requests:t},o=this.requests.entries(),r=o.next(),r.done)throw u=new Error("No requests added yet, Please add at least one request."),u.name="Empty Payload",u;if(!e.validateDependencies(this.requests))throw u=new Error(`Invalid dependency found, Dependency should be:
|
|
1
|
+
"use strict";var dE=Object.create;var Uo=Object.defineProperty;var mE=Object.getOwnPropertyDescriptor;var fE=Object.getOwnPropertyNames;var hE=Object.getPrototypeOf,gE=Object.prototype.hasOwnProperty;var s=(e,t)=>Uo(e,"name",{value:t,configurable:!0});var yE=(e,t,o)=>()=>{if(o)throw o[0];try{return e&&(t=e(e=0)),t}catch(n){throw o=[n],n}};var $=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(o){throw t=0,o}},Xe=(e,t)=>{for(var o in t)Uo(e,o,{get:t[o],enumerable:!0})},Eh=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of fE(t))!gE.call(e,r)&&r!==o&&Uo(e,r,{get:()=>t[r],enumerable:!(n=mE(t,r))||n.enumerable});return e};var Ze=(e,t,o)=>(o=e!=null?dE(hE(e)):{},Eh(t||!e||!e.__esModule?Uo(o,"default",{value:e,enumerable:!0}):o,e)),ve=e=>Eh(Uo({},"__esModule",{value:!0}),e);var Av=$((Pv,wc)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",o={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")},n=new RegExp("^0[0-7]+$","i"),r=new RegExp("^0x[a-f0-9]+$","i"),i="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(i,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${i})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${i})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${i})?$`,"i")};function u(p,v){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let P=0,A=-1,E=(p.match(c.zoneIndex)||[])[0],w,j;for(E&&(E=E.substring(1),p=p.replace(/%.+$/,""));(A=p.indexOf(":",A+1))>=0;)P++;if(p.substr(0,2)==="::"&&P--,p.substr(-2,2)==="::"&&P--,P>v)return null;for(j=v-P,w=":";j--;)w+="0:";return p=p.replace("::",w),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),v=(function(){let oe=p.split(":"),pe=[];for(let Ne=0;Ne<oe.length;Ne++)pe.push(parseInt(oe[Ne],16));return pe})(),{parts:v,zoneId:E}}s(u,"expandIPv6");function l(p,v,P,A){if(p.length!==v.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let E=0,w;for(;A>0;){if(w=P-A,w<0&&(w=0),p[E]>>w!==v[E]>>w)return!1;A-=P,E+=1}return!0}s(l,"matchCIDR");function d(p){if(r.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(n.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}s(d,"parseIntAuto");function f(p,v){for(;p.length<v;)p=`0${p}`;return p}s(f,"padPart");let h={};h.IPv4=(function(){function p(v){if(v.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let P,A;for(P=0;P<v.length;P++)if(A=v[P],!(0<=A&&A<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=v}return s(p,"IPv4"),p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(v,P){let A;if(P===void 0&&(A=v,v=A[0],P=A[1]),v.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,v.octets,8,P)},p.prototype.prefixLengthFromSubnetMask=function(){let v=0,P=!1,A={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},E,w,j;for(E=3;E>=0;E-=1)if(w=this.octets[E],w in A){if(j=A[w],P&&j!==0)return null;j!==8&&(P=!0),v+=j}else return null;return 32-v},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),h.IPv4.broadcastAddressFromCIDR=function(p){try{let v=this.parseCIDR(p),P=v[0].toByteArray(),A=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),E=[],w=0;for(;w<4;)E.push(parseInt(P[w],10)|parseInt(A[w],10)^255),w++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(p){return this.parser(p)!==null},h.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},h.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},h.IPv4.isValidFourPartDecimal=function(p){return!!(h.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.isValidCIDRFourPartDecimal=function(p){let v=p.match(/^(.+)\/(\d+)$/);return!h.IPv4.isValidCIDR(p)||!v?!1:h.IPv4.isValidFourPartDecimal(v[1])},h.IPv4.networkAddressFromCIDR=function(p){let v,P,A,E,w;try{for(v=this.parseCIDR(p),A=v[0].toByteArray(),w=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),E=[],P=0;P<4;)E.push(parseInt(A[P],10)&parseInt(w[P],10)),P++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(p){let v=this.parser(p);if(v===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(v)},h.IPv4.parseCIDR=function(p){let v;if(v=p.match(/^(.+)\/(\d+)$/)){let P=parseInt(v[2]);if(P>=0&&P<=32){let A=[this.parse(v[1]),P];return Object.defineProperty(A,"toString",{value:s(function(){return this.join("/")},"value")}),A}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(p){let v,P,A;if(v=p.match(o.fourOctet))return(function(){let E=v.slice(1,6),w=[];for(let j=0;j<E.length;j++)P=E[j],w.push(d(P));return w})();if(v=p.match(o.longValue)){if(A=d(v[1]),A>4294967295||A<0)throw new Error("ipaddr: address outside defined range");return(function(){let E=[],w;for(w=0;w<=24;w+=8)E.push(A>>w&255);return E})().reverse()}else return(v=p.match(o.twoOctet))?(function(){let E=v.slice(1,4),w=[];if(A=d(E[1]),A>16777215||A<0)throw new Error("ipaddr: address outside defined range");return w.push(d(E[0])),w.push(A>>16&255),w.push(A>>8&255),w.push(A&255),w})():(v=p.match(o.threeOctet))?(function(){let E=v.slice(1,5),w=[];if(A=d(E[2]),A>65535||A<0)throw new Error("ipaddr: address outside defined range");return w.push(d(E[0])),w.push(d(E[1])),w.push(A>>8&255),w.push(A&255),w})():null},h.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let v=[0,0,0,0],P=0,A=Math.floor(p/8);for(;P<A;)v[P]=255,P++;return A<4&&(v[A]=Math.pow(2,p%8)-1<<8-p%8),new this(v)},h.IPv6=(function(){function p(v,P){let A,E;if(v.length===16)for(this.parts=[],A=0;A<=14;A+=2)this.parts.push(v[A]<<8|v[A+1]);else if(v.length===8)this.parts=v;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(A=0;A<this.parts.length;A++)if(E=this.parts[A],!(0<=E&&E<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");P&&(this.zoneId=P)}return s(p,"IPv6"),p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(v,P){let A;if(P===void 0&&(A=v,v=A[0],P=A[1]),v.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,v.parts,16,P)},p.prototype.prefixLengthFromSubnetMask=function(){let v=0,P=!1,A={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},E,w;for(let j=7;j>=0;j-=1)if(E=this.parts[j],E in A){if(w=A[E],P&&w!==0)return null;w!==16&&(P=!0),v+=w}else return null;return 128-v},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let v,P=[],A=this.parts;for(let E=0;E<A.length;E++)v=A[E],P.push(v>>8),P.push(v&255);return P},p.prototype.toFixedLengthString=function(){let v=(function(){let A=[];for(let E=0;E<this.parts.length;E++)A.push(f(this.parts[E].toString(16),4));return A}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),v+P},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let v=this.parts.slice(-2),P=v[0],A=v[1];return new h.IPv4([P>>8,P&255,A>>8,A&255])},p.prototype.toNormalizedString=function(){let v=(function(){let A=[];for(let E=0;E<this.parts.length;E++)A.push(this.parts[E].toString(16));return A}).call(this).join(":"),P="";return this.zoneId&&(P=`%${this.zoneId}`),v+P},p.prototype.toRFC5952String=function(){let v=/((^|:)(0(:|$)){2,})/g,P=this.toNormalizedString(),A=0,E=-1,w;for(;w=v.exec(P);)w[0].length>E&&(A=w.index,E=w[0].length);return E<0?P:`${P.substring(0,A)}::${P.substring(A+E)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),h.IPv6.broadcastAddressFromCIDR=function(p){try{let v=this.parseCIDR(p),P=v[0].toByteArray(),A=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),E=[],w=0;for(;w<16;)E.push(parseInt(P[w],10)|parseInt(A[w],10)^255),w++;return new this(E)}catch(v){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${v})`)}},h.IPv6.isIPv6=function(p){return this.parser(p)!==null},h.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let v=this.parser(p);return new this(v.parts,v.zoneId),!0}catch{return!1}},h.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},h.IPv6.networkAddressFromCIDR=function(p){let v,P,A,E,w;try{for(v=this.parseCIDR(p),A=v[0].toByteArray(),w=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),E=[],P=0;P<16;)E.push(parseInt(A[P],10)&parseInt(w[P],10)),P++;return new this(E)}catch(j){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${j})`)}},h.IPv6.parse=function(p){let v=this.parser(p);if(v.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(v.parts,v.zoneId)},h.IPv6.parseCIDR=function(p){let v,P,A;if((P=p.match(/^(.+)\/(\d+)$/))&&(v=parseInt(P[2]),v>=0&&v<=128))return A=[this.parse(P[1]),v],Object.defineProperty(A,"toString",{value:s(function(){return this.join("/")},"value")}),A;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(p){let v,P,A,E,w,j;if(A=p.match(c.deprecatedTransitional))return this.parser(`::ffff:${A[1]}`);if(c.native.test(p))return u(p,8);if((A=p.match(c.transitional))&&(j=A[6]||"",v=A[1],A[1].endsWith("::")||(v=v.slice(0,-1)),v=u(v+j,6),v.parts)){for(w=[parseInt(A[2]),parseInt(A[3]),parseInt(A[4]),parseInt(A[5])],P=0;P<w.length;P++)if(E=w[P],!(0<=E&&E<=255))return null;return v.parts.push(w[0]<<8|w[1]),v.parts.push(w[2]<<8|w[3]),{parts:v.parts,zoneId:v.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");let v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,A=Math.floor(p/8);for(;P<A;)v[P]=255,P++;return A<16&&(v[A]=Math.pow(2,p%8)-1<<8-p%8),new this(v)},h.fromByteArray=function(p){let v=p.length;if(v===4)return new h.IPv4(p);if(v===16)return new h.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(p){return h.IPv6.isValid(p)||h.IPv4.isValid(p)},h.isValidCIDR=function(p){return h.IPv6.isValidCIDR(p)||h.IPv4.isValidCIDR(p)},h.parse=function(p){if(h.IPv6.isValid(p))return h.IPv6.parse(p);if(h.IPv4.isValid(p))return h.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(p){try{return h.IPv6.parseCIDR(p)}catch{try{return h.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(p){let v=this.parse(p);return v.kind()==="ipv6"&&v.isIPv4MappedAddress()?v.toIPv4Address():v},h.subnetMatch=function(p,v,P){let A,E,w,j;P==null&&(P="unicast");for(E in v)if(Object.prototype.hasOwnProperty.call(v,E)){for(w=v[E],w[0]&&!(w[0]instanceof Array)&&(w=[w]),A=0;A<w.length;A++)if(j=w[A],p.kind()===j[0].kind()&&p.match.apply(p,j))return E}return P},typeof wc<"u"&&wc.exports?wc.exports=h:e.ipaddr=h})(Pv)});var kx=$((UV,Ox)=>{var wx=require("stream").Stream,pk=require("util");Ox.exports=dt;function dt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}s(dt,"DelayedStream");pk.inherits(dt,wx);dt.create=function(e,t){var o=new this;t=t||{};for(var n in t)o[n]=t[n];o.source=e;var r=e.emit;return e.emit=function(){return o._handleEmit(arguments),r.apply(e,arguments)},e.on("error",function(){}),o.pauseStream&&e.pause(),o};Object.defineProperty(dt.prototype,"readable",{configurable:!0,enumerable:!0,get:s(function(){return this.source.readable},"get")});dt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};dt.prototype.resume=function(){this._released||this.release(),this.source.resume()};dt.prototype.pause=function(){this.source.pause()};dt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};dt.prototype.pipe=function(){var e=wx.prototype.pipe.apply(this,arguments);return this.resume(),e};dt.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)};dt.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 zx=$((FV,Cx)=>{var dk=require("util"),Rx=require("stream").Stream,$x=kx();Cx.exports=Ie;function Ie(){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}s(Ie,"CombinedStream");dk.inherits(Ie,Rx);Ie.create=function(e){var t=new this;e=e||{};for(var o in e)t[o]=e[o];return t};Ie.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Ie.prototype.append=function(e){var t=Ie.isStreamLike(e);if(t){if(!(e instanceof $x)){var o=$x.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=o}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Ie.prototype.pipe=function(e,t){return Rx.prototype.pipe.call(this,e,t),this.resume(),e};Ie.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}};Ie.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(o){var n=Ie.isStreamLike(o);n&&(o.on("data",this._checkDataSize.bind(this)),this._handleErrors(o)),this._pipeNext(o)}.bind(this))};Ie.prototype._pipeNext=function(e){this._currentStream=e;var t=Ie.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var o=e;this.write(o),this._getNext()};Ie.prototype._handleErrors=function(e){var t=this;e.on("error",function(o){t._emitError(o)})};Ie.prototype.write=function(e){this.emit("data",e)};Ie.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ie.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")};Ie.prototype.end=function(){this._reset(),this.emit("end")};Ie.prototype.destroy=function(){this._reset(),this.emit("close")};Ie.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ie.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Ie.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)};Ie.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Nx=$((BV,Dx)=>{"use strict";Dx.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 Lx=$(Ke=>{"use strict";var zc=Nx(),mk=require("path").extname,Mx=/^\s*([^;\s]*)(?:;|\s|$)/,fk=/^text\//i;Ke.charset=Ux;Ke.charsets={lookup:Ux};Ke.contentType=hk;Ke.extension=gk;Ke.extensions=Object.create(null);Ke.lookup=yk;Ke.types=Object.create(null);vk(Ke.extensions,Ke.types);function Ux(e){if(!e||typeof e!="string")return!1;var t=Mx.exec(e),o=t&&zc[t[1].toLowerCase()];return o&&o.charset?o.charset:t&&fk.test(t[1])?"UTF-8":!1}s(Ux,"charset");function hk(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Ke.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var o=Ke.charset(t);o&&(t+="; charset="+o.toLowerCase())}return t}s(hk,"contentType");function gk(e){if(!e||typeof e!="string")return!1;var t=Mx.exec(e),o=t&&Ke.extensions[t[1].toLowerCase()];return!o||!o.length?!1:o[0]}s(gk,"extension");function yk(e){if(!e||typeof e!="string")return!1;var t=mk("x."+e).toLowerCase().substr(1);return t&&Ke.types[t]||!1}s(yk,"lookup");function vk(e,t){var o=["nginx","apache",void 0,"iana"];Object.keys(zc).forEach(s(function(r){var i=zc[r],a=i.extensions;if(!(!a||!a.length)){e[r]=a;for(var c=0;c<a.length;c++){var u=a[c];if(t[u]){var l=o.indexOf(zc[t[u]].source),d=o.indexOf(i.source);if(t[u]!=="application/octet-stream"&&(l>d||l===d&&t[u].substr(0,12)==="application/"))continue}t[u]=r}}},"forEachMimeType"))}s(vk,"populateMaps")});var jx=$((HV,Fx)=>{Fx.exports=xk;function xk(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(xk,"defer")});var wf=$((GV,Vx)=>{var Bx=jx();Vx.exports=_k;function _k(e){var t=!1;return Bx(function(){t=!0}),s(function(n,r){t?e(n,r):Bx(s(function(){e(n,r)},"nextTick_callback"))},"async_callback")}s(_k,"async")});var Of=$((KV,Zx)=>{Zx.exports=bk;function bk(e){Object.keys(e.jobs).forEach(Pk.bind(e)),e.jobs={}}s(bk,"abort");function Pk(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(Pk,"clean")});var kf=$((XV,qx)=>{var Hx=wf(),Ak=Of();qx.exports=Ik;function Ik(e,t,o,n){var r=o.keyedList?o.keyedList[o.index]:o.index;o.jobs[r]=Ek(t,r,e[r],function(i,a){r in o.jobs&&(delete o.jobs[r],i?Ak(o):o.results[r]=a,n(i,o.results))})}s(Ik,"iterate");function Ek(e,t,o,n){var r;return e.length==2?r=e(o,Hx(n)):r=e(o,t,Hx(n)),r}s(Ek,"runJob")});var $f=$((QV,Gx)=>{Gx.exports=Tk;function Tk(e,t){var o=!Array.isArray(e),n={index:0,keyedList:o||t?Object.keys(e):null,jobs:{},results:o?{}:[],size:o?Object.keys(e).length:e.length};return t&&n.keyedList.sort(o?t:function(r,i){return t(e[r],e[i])}),n}s(Tk,"state")});var Rf=$((tZ,Wx)=>{var Sk=Of(),wk=wf();Wx.exports=Ok;function Ok(e){Object.keys(this.jobs).length&&(this.index=this.size,Sk(this),wk(e)(null,this.results))}s(Ok,"terminator")});var Jx=$((oZ,Kx)=>{var kk=kf(),$k=$f(),Rk=Rf();Kx.exports=Ck;function Ck(e,t,o){for(var n=$k(e);n.index<(n.keyedList||e).length;)kk(e,t,n,function(r,i){if(r){o(r,i);return}if(Object.keys(n.jobs).length===0){o(null,n.results);return}}),n.index++;return Rk.bind(n,o)}s(Ck,"parallel")});var Cf=$((iZ,Dc)=>{var Xx=kf(),zk=$f(),Dk=Rf();Dc.exports=Nk;Dc.exports.ascending=Yx;Dc.exports.descending=Mk;function Nk(e,t,o,n){var r=zk(e,o);return Xx(e,t,r,s(function i(a,c){if(a){n(a,c);return}if(r.index++,r.index<(r.keyedList||e).length){Xx(e,t,r,i);return}n(null,r.results)},"iteratorHandler")),Dk.bind(r,n)}s(Nk,"serialOrdered");function Yx(e,t){return e<t?-1:e>t?1:0}s(Yx,"ascending");function Mk(e,t){return-1*Yx(e,t)}s(Mk,"descending")});var e_=$((sZ,Qx)=>{var Uk=Cf();Qx.exports=Lk;function Lk(e,t,o){return Uk(e,t,null,o)}s(Lk,"serial")});var r_=$((uZ,t_)=>{t_.exports={parallel:Jx(),serial:e_(),serialOrdered:Cf()}});var zf=$((lZ,o_)=>{"use strict";o_.exports=Object});var i_=$((pZ,n_)=>{"use strict";n_.exports=Error});var s_=$((dZ,a_)=>{"use strict";a_.exports=EvalError});var u_=$((mZ,c_)=>{"use strict";c_.exports=RangeError});var p_=$((fZ,l_)=>{"use strict";l_.exports=ReferenceError});var m_=$((hZ,d_)=>{"use strict";d_.exports=SyntaxError});var Nc=$((gZ,f_)=>{"use strict";f_.exports=TypeError});var g_=$((yZ,h_)=>{"use strict";h_.exports=URIError});var v_=$((vZ,y_)=>{"use strict";y_.exports=Math.abs});var __=$((xZ,x_)=>{"use strict";x_.exports=Math.floor});var P_=$((_Z,b_)=>{"use strict";b_.exports=Math.max});var I_=$((bZ,A_)=>{"use strict";A_.exports=Math.min});var T_=$((PZ,E_)=>{"use strict";E_.exports=Math.pow});var w_=$((AZ,S_)=>{"use strict";S_.exports=Math.round});var k_=$((IZ,O_)=>{"use strict";O_.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var R_=$((TZ,$_)=>{"use strict";var Fk=k_();$_.exports=s(function(t){return Fk(t)||t===0?t:t<0?-1:1},"sign")});var z_=$((wZ,C_)=>{"use strict";C_.exports=Object.getOwnPropertyDescriptor});var Df=$((OZ,D_)=>{"use strict";var Mc=z_();if(Mc)try{Mc([],"length")}catch{Mc=null}D_.exports=Mc});var M_=$((kZ,N_)=>{"use strict";var Uc=Object.defineProperty||!1;if(Uc)try{Uc({},"a",{value:1})}catch{Uc=!1}N_.exports=Uc});var Nf=$(($Z,U_)=>{"use strict";U_.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},o=Symbol("test"),n=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;t[o]=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 a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,o);if(c.value!==r||c.enumerable!==!0)return!1}return!0},"hasSymbols")});var j_=$((CZ,F_)=>{"use strict";var L_=typeof Symbol<"u"&&Symbol,jk=Nf();F_.exports=s(function(){return typeof L_!="function"||typeof Symbol!="function"||typeof L_("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jk()},"hasNativeSymbols")});var Mf=$((DZ,B_)=>{"use strict";B_.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Uf=$((NZ,V_)=>{"use strict";var Bk=zf();V_.exports=Bk.getPrototypeOf||null});var q_=$((MZ,H_)=>{"use strict";var Vk="Function.prototype.bind called on incompatible ",Zk=Object.prototype.toString,Hk=Math.max,qk="[object Function]",Z_=s(function(t,o){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<o.length;i+=1)n[i+t.length]=o[i];return n},"concatty"),Gk=s(function(t,o){for(var n=[],r=o||0,i=0;r<t.length;r+=1,i+=1)n[i]=t[r];return n},"slicy"),Wk=s(function(e,t){for(var o="",n=0;n<e.length;n+=1)o+=e[n],n+1<e.length&&(o+=t);return o},"joiny");H_.exports=s(function(t){var o=this;if(typeof o!="function"||Zk.apply(o)!==qk)throw new TypeError(Vk+o);for(var n=Gk(arguments,1),r,i=s(function(){if(this instanceof r){var d=o.apply(this,Z_(n,arguments));return Object(d)===d?d:this}return o.apply(t,Z_(n,arguments))},"binder"),a=Hk(0,o.length-n.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(r=Function("binder","return function ("+Wk(c,",")+"){ return binder.apply(this,arguments); }")(i),o.prototype){var l=s(function(){},"Empty");l.prototype=o.prototype,r.prototype=new l,l.prototype=null}return r},"bind")});var fo=$((LZ,G_)=>{"use strict";var Kk=q_();G_.exports=Function.prototype.bind||Kk});var Lc=$((FZ,W_)=>{"use strict";W_.exports=Function.prototype.call});var Lf=$((jZ,K_)=>{"use strict";K_.exports=Function.prototype.apply});var X_=$((BZ,J_)=>{"use strict";J_.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Q_=$((VZ,Y_)=>{"use strict";var Jk=fo(),Xk=Lf(),Yk=Lc(),Qk=X_();Y_.exports=Qk||Jk.call(Yk,Xk)});var tb=$((ZZ,eb)=>{"use strict";var e$=fo(),t$=Nc(),r$=Lc(),o$=Q_();eb.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new t$("a function is required");return o$(e$,r$,t)},"callBindBasic")});var sb=$((qZ,ab)=>{"use strict";var n$=tb(),rb=Df(),nb;try{nb=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ff=!!nb&&rb&&rb(Object.prototype,"__proto__"),ib=Object,ob=ib.getPrototypeOf;ab.exports=Ff&&typeof Ff.get=="function"?n$([Ff.get]):typeof ob=="function"?s(function(t){return ob(t==null?t:ib(t))},"getDunder"):!1});var db=$((WZ,pb)=>{"use strict";var cb=Mf(),ub=Uf(),lb=sb();pb.exports=cb?s(function(t){return cb(t)},"getProto"):ub?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ub(t)},"getProto"):lb?s(function(t){return lb(t)},"getProto"):null});var jf=$((JZ,mb)=>{"use strict";var i$=Function.prototype.call,a$=Object.prototype.hasOwnProperty,s$=fo();mb.exports=s$.call(i$,a$)});var _b=$((XZ,xb)=>{"use strict";var ie,c$=zf(),u$=i_(),l$=s_(),p$=u_(),d$=p_(),vo=m_(),yo=Nc(),m$=g_(),f$=v_(),h$=__(),g$=P_(),y$=I_(),v$=T_(),x$=w_(),_$=R_(),yb=Function,Bf=s(function(e){try{return yb('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Fi=Df(),b$=M_(),Vf=s(function(){throw new yo},"throwTypeError"),P$=Fi?(function(){try{return arguments.callee,Vf}catch{try{return Fi(arguments,"callee").get}catch{return Vf}}})():Vf,ho=j_()(),Ce=db(),A$=Uf(),I$=Mf(),vb=Lf(),ji=Lc(),go={},E$=typeof Uint8Array>"u"||!Ce?ie:Ce(Uint8Array),Er={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ie:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ie:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Ce?Ce([][Symbol.iterator]()):ie,"%AsyncFromSyncIteratorPrototype%":ie,"%AsyncFunction%":go,"%AsyncGenerator%":go,"%AsyncGeneratorFunction%":go,"%AsyncIteratorPrototype%":go,"%Atomics%":typeof Atomics>"u"?ie:Atomics,"%BigInt%":typeof BigInt>"u"?ie:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ie:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ie:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ie:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":u$,"%eval%":eval,"%EvalError%":l$,"%Float16Array%":typeof Float16Array>"u"?ie:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ie:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ie:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ie:FinalizationRegistry,"%Function%":yb,"%GeneratorFunction%":go,"%Int8Array%":typeof Int8Array>"u"?ie:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ie:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ie:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Ce?Ce(Ce([][Symbol.iterator]())):ie,"%JSON%":typeof JSON=="object"?JSON:ie,"%Map%":typeof Map>"u"?ie:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Ce?ie:Ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":c$,"%Object.getOwnPropertyDescriptor%":Fi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ie:Promise,"%Proxy%":typeof Proxy>"u"?ie:Proxy,"%RangeError%":p$,"%ReferenceError%":d$,"%Reflect%":typeof Reflect>"u"?ie:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ie:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Ce?ie:Ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ie:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Ce?Ce(""[Symbol.iterator]()):ie,"%Symbol%":ho?Symbol:ie,"%SyntaxError%":vo,"%ThrowTypeError%":P$,"%TypedArray%":E$,"%TypeError%":yo,"%Uint8Array%":typeof Uint8Array>"u"?ie:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ie:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ie:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ie:Uint32Array,"%URIError%":m$,"%WeakMap%":typeof WeakMap>"u"?ie:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ie:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ie:WeakSet,"%Function.prototype.call%":ji,"%Function.prototype.apply%":vb,"%Object.defineProperty%":b$,"%Object.getPrototypeOf%":A$,"%Math.abs%":f$,"%Math.floor%":h$,"%Math.max%":g$,"%Math.min%":y$,"%Math.pow%":v$,"%Math.round%":x$,"%Math.sign%":_$,"%Reflect.getPrototypeOf%":I$};if(Ce)try{null.error}catch(e){fb=Ce(Ce(e)),Er["%Error.prototype%"]=fb}var fb,T$=s(function e(t){var o;if(t==="%AsyncFunction%")o=Bf("async function () {}");else if(t==="%GeneratorFunction%")o=Bf("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=Bf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&Ce&&(o=Ce(r.prototype))}return Er[t]=o,o},"doEval"),hb={__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"]},Bi=fo(),Fc=jf(),S$=Bi.call(ji,Array.prototype.concat),w$=Bi.call(vb,Array.prototype.splice),gb=Bi.call(ji,String.prototype.replace),jc=Bi.call(ji,String.prototype.slice),O$=Bi.call(ji,RegExp.prototype.exec),k$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$$=/\\(\\)?/g,R$=s(function(t){var o=jc(t,0,1),n=jc(t,-1);if(o==="%"&&n!=="%")throw new vo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&o!=="%")throw new vo("invalid intrinsic syntax, expected opening `%`");var r=[];return gb(t,k$,function(i,a,c,u){r[r.length]=c?gb(u,$$,"$1"):a||i}),r},"stringToPath"),C$=s(function(t,o){var n=t,r;if(Fc(hb,n)&&(r=hb[n],n="%"+r[0]+"%"),Fc(Er,n)){var i=Er[n];if(i===go&&(i=T$(n)),typeof i>"u"&&!o)throw new yo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new vo("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");xb.exports=s(function(t,o){if(typeof t!="string"||t.length===0)throw new yo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new yo('"allowMissing" argument must be a boolean');if(O$(/^%?[^%]*%?$/,t)===null)throw new vo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=R$(t),r=n.length>0?n[0]:"",i=C$("%"+r+"%",o),a=i.name,c=i.value,u=!1,l=i.alias;l&&(r=l[0],w$(n,S$([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],p=jc(h,0,1),v=jc(h,-1);if((p==='"'||p==="'"||p==="`"||v==='"'||v==="'"||v==="`")&&p!==v)throw new vo("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(u=!0),r+="."+h,a="%"+r+"%",Fc(Er,a))c=Er[a];else if(c!=null){if(!(h in c)){if(!o)throw new yo("base intrinsic for "+t+" exists, but the property is not available.");return}if(Fi&&d+1>=n.length){var P=Fi(c,h);f=!!P,f&&"get"in P&&!("originalValue"in P.get)?c=P.get:c=c[h]}else f=Fc(c,h),c=c[h];f&&!u&&(Er[a]=c)}}return c},"GetIntrinsic")});var Pb=$((QZ,bb)=>{"use strict";var z$=Nf();bb.exports=s(function(){return z$()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Eb=$((tH,Ib)=>{"use strict";var D$=_b(),Ab=D$("%Object.defineProperty%",!0),N$=Pb()(),M$=jf(),U$=Nc(),Bc=N$?Symbol.toStringTag:null;Ib.exports=s(function(t,o){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,r=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof r<"u"&&typeof r!="boolean")throw new U$("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Bc&&(n||!M$(t,Bc))&&(Ab?Ab(t,Bc,{configurable:!r,enumerable:!1,value:o,writable:!1}):t[Bc]=o)},"setToStringTag")});var Sb=$((oH,Tb)=>{"use strict";var L$=Function.prototype.call,F$=Object.prototype.hasOwnProperty,j$=fo();Tb.exports=j$.call(L$,F$)});var Ob=$((nH,wb)=>{"use strict";wb.exports=function(e,t){return Object.keys(t).forEach(function(o){e[o]=e[o]||t[o]}),e}});var Rb=$((iH,$b)=>{"use strict";var Gf=zx(),B$=require("util"),Zf=require("path"),V$=require("http"),Z$=require("https"),H$=require("url").parse,q$=require("fs"),G$=require("stream").Stream,W$=require("crypto"),Hf=Lx(),K$=r_(),J$=Eb(),Wt=Sb(),qf=Ob();function kb(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(kb,"escapeHeaderParam");function ce(e){if(!(this instanceof ce))return new ce(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Gf.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ce,"FormData");B$.inherits(ce,Gf);ce.LINE_BREAK=`\r
|
|
2
|
+
`;ce.DEFAULT_CONTENT_TYPE="application/octet-stream";ce.prototype.append=function(e,t,o){o=o||{},typeof o=="string"&&(o={filename:o});var n=Gf.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,o),i=this._multiPartFooter();n(r),n(t),n(i),this._trackLength(r,t,o)};ce.prototype._trackLength=function(e,t,o){var n=0;o.knownLength!=null?n+=Number(o.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ce.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Wt(t,"httpVersion"))&&!(t instanceof G$))&&(o.knownLength||this._valuesToMeasure.push(t))};ce.prototype._lengthRetriever=function(e,t){Wt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):q$.stat(e.path,function(o,n){if(o){t(o);return}var r=n.size-(e.start?e.start:0);t(null,r)}):Wt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Wt(e,"httpModule")?(e.on("response",function(o){e.pause(),t(null,Number(o.headers["content-length"]))}),e.resume()):t("Unknown stream")};ce.prototype._multiPartHeader=function(e,t,o){if(typeof o.header=="string")return o.header;var n=this._getContentDisposition(t,o),r=this._getContentType(t,o),i="",a={"Content-Disposition":["form-data",'name="'+kb(e)+'"'].concat(n||[]),"Content-Type":[].concat(r||[])};typeof o.header=="object"&&qf(a,o.header);var c;for(var u in a)if(Wt(a,u)){if(c=a[u],c==null)continue;Array.isArray(c)||(c=[c]),c.length&&(i+=u+": "+c.join("; ")+ce.LINE_BREAK)}return"--"+this.getBoundary()+ce.LINE_BREAK+i+ce.LINE_BREAK};ce.prototype._getContentDisposition=function(e,t){var o;if(typeof t.filepath=="string"?o=Zf.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?o=Zf.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Wt(e,"httpVersion")&&(o=Zf.basename(e.client._httpMessage.path||"")),o)return'filename="'+kb(o)+'"'};ce.prototype._getContentType=function(e,t){var o=t.contentType;return!o&&e&&e.name&&(o=Hf.lookup(e.name)),!o&&e&&e.path&&(o=Hf.lookup(e.path)),!o&&e&&e.readable&&Wt(e,"httpVersion")&&(o=e.headers["content-type"]),!o&&(t.filepath||t.filename)&&(o=Hf.lookup(t.filepath||t.filename)),!o&&e&&typeof e=="object"&&(o=ce.DEFAULT_CONTENT_TYPE),o};ce.prototype._multiPartFooter=function(){return function(e){var t=ce.LINE_BREAK,o=this._streams.length===0;o&&(t+=this._lastBoundary()),e(t)}.bind(this)};ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ce.LINE_BREAK};ce.prototype.getHeaders=function(e){var t,o={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Wt(e,t)&&(o[t.toLowerCase()]=e[t]);return o};ce.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ce.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),o=0,n=this._streams.length;o<n;o++)typeof this._streams[o]!="function"&&(Buffer.isBuffer(this._streams[o])?e=Buffer.concat([e,this._streams[o]]):e=Buffer.concat([e,Buffer.from(this._streams[o])]),(typeof this._streams[o]!="string"||this._streams[o].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ce.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ce.prototype._generateBoundary=function(){this._boundary="--------------------------"+W$.randomBytes(12).toString("hex")};ce.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};ce.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ce.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}K$.parallel(this._valuesToMeasure,this._lengthRetriever,function(o,n){if(o){e(o);return}n.forEach(function(r){t+=r}),e(null,t)})};ce.prototype.submit=function(e,t){var o,n,r={method:"post"};return typeof e=="string"?(e=H$(e),n=qf({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(n=qf(e,r),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?o=Z$.request(n):o=V$.request(n),this.getLength(function(i,a){if(i&&i!=="Unknown stream"){this._error(i);return}if(a&&o.setHeader("Content-Length",a),this.pipe(o),t){var c,u=s(function(l,d){return o.removeListener("error",u),o.removeListener("response",c),t.call(this,l,d)},"callback");c=u.bind(this,null),o.on("error",u),o.on("response",c)}}.bind(this)),o};ce.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ce.prototype.toString=function(){return"[object FormData]"};J$(ce.prototype,"FormData");$b.exports=ce});var be={};Xe(be,{__addDisposableResource:()=>pP,__assign:()=>Zc,__asyncDelegator:()=>oP,__asyncGenerator:()=>rP,__asyncValues:()=>nP,__await:()=>_o,__awaiter:()=>Jb,__classPrivateFieldGet:()=>cP,__classPrivateFieldIn:()=>lP,__classPrivateFieldSet:()=>uP,__createBinding:()=>qc,__decorate:()=>Vb,__disposeResources:()=>dP,__esDecorate:()=>Hb,__exportStar:()=>Yb,__extends:()=>jb,__generator:()=>Xb,__importDefault:()=>sP,__importStar:()=>aP,__makeTemplateObject:()=>iP,__metadata:()=>Kb,__param:()=>Zb,__propKey:()=>Gb,__read:()=>Jf,__rest:()=>Bb,__rewriteRelativeImportExtension:()=>mP,__runInitializers:()=>qb,__setFunctionName:()=>Wb,__spread:()=>Qb,__spreadArray:()=>tP,__spreadArrays:()=>eP,__values:()=>Hc,default:()=>uR});function jb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wf(e,t);function o(){this.constructor=e}s(o,"__"),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}function Bb(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function Vb(e,t,o,n){var r=arguments.length,i=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}function Zb(e,t){return function(o,n){t(o,n,e)}}function Hb(e,t,o,n,r,i){function a(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}s(a,"accept");for(var c=n.kind,u=c==="getter"?"get":c==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f,h=!1,p=o.length-1;p>=0;p--){var v={};for(var P in n)v[P]=P==="access"?{}:n[P];for(var P in n.access)v.access[P]=n.access[P];v.addInitializer=function(E){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(E||null))};var A=(0,o[p])(c==="accessor"?{get:d.get,set:d.set}:d[u],v);if(c==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(f=a(A.get))&&(d.get=f),(f=a(A.set))&&(d.set=f),(f=a(A.init))&&r.unshift(f)}else(f=a(A))&&(c==="field"?r.unshift(f):d[u]=f)}l&&Object.defineProperty(l,n.name,d),h=!0}function qb(e,t,o){for(var n=arguments.length>2,r=0;r<t.length;r++)o=n?t[r].call(e,o):t[r].call(e);return n?o:void 0}function Gb(e){return typeof e=="symbol"?e:"".concat(e)}function Wb(e,t,o){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:o?"".concat(o," ",t):t})}function Kb(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Jb(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return s(r,"adopt"),new(o||(o=Promise))(function(i,a){function c(d){try{l(n.next(d))}catch(f){a(f)}}s(c,"fulfilled");function u(d){try{l(n.throw(d))}catch(f){a(f)}}s(u,"rejected");function l(d){d.done?i(d.value):r(d.value).then(c,u)}s(l,"step"),l((n=n.apply(e,t||[])).next())})}function Xb(e,t){var o={label:0,sent:s(function(){if(i[0]&1)throw i[1];return i[1]},"sent"),trys:[],ops:[]},n,r,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(l){return function(d){return u([l,d])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(l[0]===6&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(d){l=[6,d],r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Yb(e,t){for(var o in e)o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o)&&qc(t,e,o)}function Hc(e){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:s(function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jf(e,t){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(c){a={error:c}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}}return i}function Qb(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Jf(arguments[t]));return e}function eP(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<o;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,r++)n[r]=i[a];return n}function tP(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function _o(e){return this instanceof _o?(this.v=e,this):new _o(e)}function rP(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o.apply(e,t||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(p){return function(v){return Promise.resolve(v).then(p,f)}}function c(p,v){n[p]&&(r[p]=function(P){return new Promise(function(A,E){i.push([p,P,A,E])>1||u(p,P)})},v&&(r[p]=v(r[p])))}function u(p,v){try{l(n[p](v))}catch(P){h(i[0][3],P)}}function l(p){p.value instanceof _o?Promise.resolve(p.value.v).then(d,f):h(i[0][2],p)}function d(p){u("next",p)}function f(p){u("throw",p)}function h(p,v){p(v),i.shift(),i.length&&u(i[0][0],i[0][1])}}function oP(e){var t,o;return t={},n("next"),n("throw",function(r){throw r}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(r,i){t[r]=e[r]?function(a){return(o=!o)?{value:_o(e[r](a)),done:!1}:i?i(a):a}:i}}function nP(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof Hc=="function"?Hc(e):e[Symbol.iterator](),o={},n("next"),n("throw"),n("return"),o[Symbol.asyncIterator]=function(){return this},o);function n(i){o[i]=e[i]&&function(a){return new Promise(function(c,u){a=e[i](a),r(c,u,a.done,a.value)})}}function r(i,a,c,u){Promise.resolve(u).then(function(l){i({value:l,done:c})},a)}}function iP(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function aP(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=Kf(e),n=0;n<o.length;n++)o[n]!=="default"&&qc(t,e,o[n]);return sR(t,e),t}function sP(e){return e&&e.__esModule?e:{default:e}}function cP(e,t,o,n){if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?n:o==="a"?n.call(e):n?n.value:t.get(e)}function uP(e,t,o,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(e,o):r?r.value=o:t.set(e,o),o}function lP(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function pP(e,t,o){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,r;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],o&&(r=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");r&&(n=s(function(){try{r.call(this)}catch(i){return Promise.reject(i)}},"dispose")),e.stack.push({value:t,dispose:n,async:o})}else o&&e.stack.push({async:!0});return t}function dP(e){function t(i){e.error=e.hasError?new cR(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}s(t,"fail");var o,n=0;function r(){for(;o=e.stack.pop();)try{if(!o.async&&n===1)return n=0,e.stack.push(o),Promise.resolve().then(r);if(o.dispose){var i=o.dispose.call(o.value);if(o.async)return n|=2,Promise.resolve(i).then(r,function(a){return t(a),r()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s(r,"next"),r()}function mP(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(o,n,r,i,a){return n?t?".jsx":".js":r&&(!i||!a)?o:r+i+"."+a.toLowerCase()+"js"}):e}var Wf,Zc,qc,sR,Kf,cR,uR,Pe=yE(()=>{Wf=s(function(e,t){return Wf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])},Wf(e,t)},"extendStatics");s(jb,"__extends");Zc=s(function(){return Zc=Object.assign||s(function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},"__assign"),Zc.apply(this,arguments)},"__assign");s(Bb,"__rest");s(Vb,"__decorate");s(Zb,"__param");s(Hb,"__esDecorate");s(qb,"__runInitializers");s(Gb,"__propKey");s(Wb,"__setFunctionName");s(Kb,"__metadata");s(Jb,"__awaiter");s(Xb,"__generator");qc=Object.create?(function(e,t,o,n){n===void 0&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:s(function(){return t[o]},"get")}),Object.defineProperty(e,n,r)}):(function(e,t,o,n){n===void 0&&(n=o),e[n]=t[o]});s(Yb,"__exportStar");s(Hc,"__values");s(Jf,"__read");s(Qb,"__spread");s(eP,"__spreadArrays");s(tP,"__spreadArray");s(_o,"__await");s(rP,"__asyncGenerator");s(oP,"__asyncDelegator");s(nP,"__asyncValues");s(iP,"__makeTemplateObject");sR=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Kf=s(function(e){return Kf=Object.getOwnPropertyNames||function(t){var o=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[o.length]=n);return o},Kf(e)},"ownKeys");s(aP,"__importStar");s(sP,"__importDefault");s(cP,"__classPrivateFieldGet");s(uP,"__classPrivateFieldSet");s(lP,"__classPrivateFieldIn");s(pP,"__addDisposableResource");cR=typeof SuppressedError=="function"?SuppressedError:function(e,t,o){var n=new Error(o);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};s(dP,"__disposeResources");s(mP,"__rewriteRelativeImportExtension");uR={__extends:jb,__assign:Zc,__rest:Bb,__decorate:Vb,__param:Zb,__esDecorate:Hb,__runInitializers:qb,__propKey:Gb,__setFunctionName:Wb,__metadata:Kb,__awaiter:Jb,__generator:Xb,__createBinding:qc,__exportStar:Yb,__values:Hc,__read:Jf,__spread:Qb,__spreadArrays:eP,__spreadArray:tP,__await:_o,__asyncGenerator:rP,__asyncDelegator:oP,__asyncValues:nP,__makeTemplateObject:iP,__importStar:aP,__importDefault:sP,__classPrivateFieldGet:cP,__classPrivateFieldSet:uP,__classPrivateFieldIn:lP,__addDisposableResource:pP,__disposeResources:dP,__rewriteRelativeImportExtension:mP}});var Zi=$(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.RequestMethod=void 0;var fP;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(fP||(Gc.RequestMethod=fP={}))});var hP=$(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.BatchRequestContent=void 0;var bo=(Pe(),ve(be)),Xf=Zi(),lR=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var o=e.requestLimit;if(t.length>o){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw n.name="Limit Exceeded Error",n}for(var r=0,i=t;r<i.length;r++){var a=i[r];this.addRequest(a)}}}return s(e,"BatchRequestContent"),e.validateDependencies=function(t){var o=s(function(a){for(var c=a.entries(),u=c.next();!u.done;){var l=u.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;u=c.next()}return!0},"isParallel"),n=s(function(a){var c=a.entries(),u=c.next(),l=u.value[1];if(l.dependsOn!==void 0&&l.dependsOn.length>0)return!1;var d=u;for(u=c.next();!u.done;){var f=u.value[1];if(f.dependsOn===void 0||f.dependsOn.length!==1||f.dependsOn[0]!==d.value[1].id)return!1;d=u,u=c.next()}return!0},"isSerial"),r=s(function(a){var c=a.entries(),u=c.next(),l=u.value[1],d;if(l.dependsOn===void 0||l.dependsOn.length===0)d=l.id;else if(l.dependsOn.length===1){var f=l.dependsOn[0];if(f!==l.id&&a.has(f))d=f;else return!1}else return!1;for(u=c.next();!u.done;){var h=u.value[1];if((h.dependsOn===void 0||h.dependsOn.length===0)&&d!==h.id||h.dependsOn!==void 0&&h.dependsOn.length!==0&&(h.dependsOn.length===1&&(h.id===d||h.dependsOn[0]!==d)||h.dependsOn.length>1))return!1;u=c.next()}return!0},"isSame");if(t.size===0){var i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return o(t)||n(t)||r(t)},e.getRequestData=function(t){return bo.__awaiter(this,void 0,void 0,function(){var o,n,r,i;return bo.__generator(this,function(a){switch(a.label){case 0:return o={url:""},n=new RegExp("^https?://"),o.url=n.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,o.method=t.method,r={},t.headers.forEach(function(c,u){r[u]=c}),Object.keys(r).length&&(o.headers=r),t.method===Xf.RequestMethod.PATCH||t.method===Xf.RequestMethod.POST||t.method===Xf.RequestMethod.PUT?(i=o,[4,e.getRequestBody(t)]):[3,2];case 1:i.body=a.sent(),a.label=2;case 2:return[2,o]}})})},e.getRequestBody=function(t){return bo.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c,u,l;return bo.__generator(this,function(d){switch(d.label){case 0:o=!1,d.label=1;case 1:return d.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return n=d.sent(),o=!0,[3,4];case 3:return i=d.sent(),[3,4];case 4:if(o)return[3,12];d.label=5;case 5:return d.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=d.sent(),c=new FileReader,[4,new Promise(function(f){c.addEventListener("load",function(){var h=c.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),v=p.exec(h);f(v[4])},!1),c.readAsDataURL(a)})];case 7:return n=d.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:u=d.sent(),n=u.toString("base64"),d.label=10;case 10:return o=!0,[3,12];case 11:return l=d.sent(),[3,12];case 12:return[2,n]}})})},e.prototype.addRequest=function(t){var o=e.requestLimit;if(t.id===""){var n=new Error("Id for a request is empty, Please provide an unique id");throw n.name="Empty Id For Request",n}if(this.requests.size===o){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(o));throw n.name="Limit Exceeded Error",n}if(this.requests.has(t.id)){var n=new Error("Adding request with duplicate id ".concat(t.id,", Make the id of the requests unique"));throw n.name="Duplicate RequestId Error",n}return this.requests.set(t.id,t),t.id},e.prototype.removeRequest=function(t){for(var o=this.requests.delete(t),n=this.requests.entries(),r=n.next();!r.done;){var i=r.value[1].dependsOn;if(typeof i<"u"){var a=i.indexOf(t);a!==-1&&i.splice(a,1),i.length===0&&delete r.value[1].dependsOn}r=n.next()}return o},e.prototype.getContent=function(){return bo.__awaiter(this,void 0,void 0,function(){var t,o,n,r,c,c,i,a,c;return bo.__generator(this,function(u){switch(u.label){case 0:if(t=[],o={requests:t},n=this.requests.entries(),r=n.next(),r.done)throw c=new Error("No requests added yet, Please add at least one request."),c.name="Empty Payload",c;if(!e.validateDependencies(this.requests))throw c=new Error(`Invalid dependency found, Dependency should be:
|
|
3
3
|
1. Parallel - no individual request states a dependency in the dependsOn property.
|
|
4
4
|
2. Serial - all individual requests depend on the previous individual request.
|
|
5
|
-
3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),u.name="Invalid Dependency",u;c.label=1;case 1:return r.done?[3,3]:(i=r.value[1],[4,e.getRequestData(i.request)]);case 2:if(a=c.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw u=new Error("Content-type header is not mentioned for request #".concat(i.id,", For request having body, Content-type header should be mentioned")),u.name="Invalid Content-type header",u;return a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),t.push(a),r=o.next(),[3,1];case 3:return n.requests=t,[2,n]}})})},e.prototype.addDependency=function(t,n){if(!this.requests.has(t)){var o=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw o.name="Invalid Dependent",o}if(typeof n<"u"&&!this.requests.has(n)){var o=new Error("Dependency ".concat(n," does not exists, Please check the id"));throw o.name="Invalid Dependency",o}if(typeof n<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(n)!==-1){var o=new Error("Dependency ".concat(n," is already added for the request ").concat(t));throw o.name="Duplicate Dependency",o}r.dependsOn.push(n)}else{for(var i=this.requests.entries(),a=void 0,u=i.next();!u.done&&u.value[1].id!==t;)a=u,u=i.next();if(typeof a<"u"){var c=a.value[0];if(u.value[1].dependsOn===void 0&&(u.value[1].dependsOn=[]),u.value[1].dependsOn.indexOf(c)!==-1){var o=new Error("Dependency ".concat(c," is already added for the request ").concat(t));throw o.name="Duplicate Dependency",o}u.value[1].dependsOn.push(c)}else{var o=new Error("Can't add dependency ".concat(n,", There is only a dependent request in the batch"));throw o.name="Invalid Dependency Addition",o}}},e.prototype.removeDependency=function(t,n){var o=this.requests.get(t);if(typeof o>"u"||o.dependsOn===void 0||o.dependsOn.length===0)return!1;if(typeof n<"u"){var r=o.dependsOn.indexOf(n);return r===-1?!1:(o.dependsOn.splice(r,1),!0)}else return delete o.dependsOn,!0},e.requestLimit=20,e})();Ru.BatchRequestContent=$O});var xP=S(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.BatchResponseContent=void 0;var OO=(xe(),ge(_e)),wO=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var n=t.body,o={};if(o.status=t.status,t.statusText!==void 0&&(o.statusText=t.statusText),o.headers=t.headers,o.headers!==void 0&&o.headers["Content-Type"]!==void 0&&o.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(n);return new Response(r,o)}return new Response(n,o)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var n=t.responses,o=0,r=n.length;o<r;o++)this.responses.set(n[o].id,this.createResponseObject(n[o]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,n;return OO.__generator(this,function(o){switch(o.label){case 0:t=this.responses.entries(),n=t.next(),o.label=1;case 1:return n.done?[3,3]:[4,n.value];case 2:return o.sent(),n=t.next(),[3,1];case 3:return[2]}})},e})();ku.BatchResponseContent=wO});var If=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.GRAPH_URLS=Vt.GRAPH_BASE_URL=Vt.GRAPH_API_VERSION=void 0;Vt.GRAPH_API_VERSION="v1.0";Vt.GRAPH_BASE_URL="https://graph.microsoft.com/";Vt.GRAPH_URLS=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var Tt=S(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.GraphClientError=void 0;var zO=(xe(),ge(_e)),RO=(function(e){zO.__extends(t,e);function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return s(t,"GraphClientError"),t.setGraphClientError=function(n){var o;return n instanceof Error?o=n:(o=new t,o.customError=n),o},t})(Error);Du.GraphClientError=RO});var Cu=S(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.isCustomHost=rt.isGraphURL=rt.serializeContent=rt.urlJoin=rt.oDataQueryNames=void 0;var kO=If(),DO=Tt();rt.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var CO=s(function(e){var t=s(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),n=s(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),o=s(function(i,a){return[t(i),n(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(o)},"urlJoin");rt.urlJoin=CO;var NO=s(function(e){var t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},"serializeContent");rt.serializeContent=NO;var MO=s(function(e){return PP(e)},"isGraphURL");rt.isGraphURL=MO;var UO=s(function(e,t){return t.forEach(function(n){return LO(n)}),PP(e,t)},"isCustomHost");rt.isCustomHost=UO;var PP=s(function(e,t){if(t===void 0&&(t=kO.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var n=e.indexOf(":"),o=e.indexOf("/"),r="";if(o!==-1)return n!==-1&&n<o?(r=e.substring(0,n),t.has(r)):(r=e.substring(0,o),t.has(r))}return!1},"isValidEndpoint"),LO=s(function(e){if(e.indexOf("/")!==-1)throw new DO.GraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")},"isCustomHostValid")});var Ht=S(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.MiddlewareControl=void 0;var jO=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var n=0,o=t;n<o.length;n++){var r=o[n],i=r.constructor;this.middlewareOptions.set(i,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,n){this.middlewareOptions.set(t,n)},e})();Nu.MiddlewareControl=jO});var fn=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.cloneRequestWithNewUrl=nt.appendRequestHeader=nt.setRequestHeader=nt.getRequestHeader=nt.generateUUID=void 0;var bP=(xe(),ge(_e)),FO=s(function(){for(var e="",t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},"generateUUID");nt.generateUUID=FO;var BO=s(function(e,t,n){var o=null;if(typeof Request<"u"&&e instanceof Request)o=e.headers.get(n);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)o=t.headers.get(n);else if(t.headers instanceof Array){for(var r=t.headers,i=0,a=r.length;i<a;i++)if(r[i][0]===n){o=r[i][1];break}}else t.headers[n]!==void 0&&(o=t.headers[n]);return o},"getRequestHeader");nt.getRequestHeader=BO;var ZO=s(function(e,t,n,o){var r,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(n,o);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[n]=o,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(n,o);else if(t.headers instanceof Array){for(var a=0,u=t.headers.length;a<u;a++){var c=t.headers[a];if(c[0]===n){c[1]=o;break}}a===u&&t.headers.push([n,o])}else Object.assign(t.headers,(i={},i[n]=o,i))},"setRequestHeader");nt.setRequestHeader=ZO;var VO=s(function(e,t,n,o){var r,i;typeof Request<"u"&&e instanceof Request?e.headers.append(n,o):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[n]=o,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(n,o):t.headers instanceof Array?t.headers.push([n,o]):t.headers===void 0?t.headers=(i={},i[n]=o,i):t.headers[n]===void 0?t.headers[n]=o:t.headers[n]+=", ".concat(o))},"appendRequestHeader");nt.appendRequestHeader=VO;var HO=s(function(e,t){return bP.__awaiter(void 0,void 0,void 0,function(){var n,o,r,i,a,u,c,l,m,f,g,p,y;return bP.__generator(this,function(_){switch(_.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return o=_.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:o=_.sent(),_.label=4;case 4:return n=o,r=t.method,i=t.headers,a=t.referrer,u=t.referrerPolicy,c=t.mode,l=t.credentials,m=t.cache,f=t.redirect,g=t.integrity,p=t.keepalive,y=t.signal,[2,new Request(e,{method:r,headers:i,body:n,referrer:a,referrerPolicy:u,mode:c,credentials:l,cache:m,redirect:f,integrity:g,keepalive:p,signal:y})]}})})},"cloneRequestWithNewUrl");nt.cloneRequestWithNewUrl=HO});var Af=S(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.AuthenticationHandlerOptions=void 0;var qO=(function(){function e(t,n){this.authenticationProvider=t,this.authenticationProviderOptions=n}return s(e,"AuthenticationHandlerOptions"),e})();Mu.AuthenticationHandlerOptions=qO});var hn=S(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.TelemetryHandlerOptions=gn.FeatureUsageFlag=void 0;var EP=Ht(),$f;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})($f||(gn.FeatureUsageFlag=$f={}));var GO=(function(){function e(){this.featureUsage=$f.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,n){var o;t.middlewareControl instanceof EP.MiddlewareControl?o=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new EP.MiddlewareControl,typeof o>"u"&&(o=new e,t.middlewareControl.setMiddlewareOptions(e,o)),o.setFeatureUsage(n)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();gn.TelemetryHandlerOptions=GO});var Lu=S(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.AuthenticationHandler=void 0;var TP=(xe(),ge(_e)),SP=Cu(),WO=Ht(),JO=fn(),KO=Af(),IP=hn(),XO=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return TP.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u;return TP.__generator(this,function(c){switch(c.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,SP.isGraphURL)(n)||t.customHosts&&(0,SP.isCustomHost)(n,t.customHosts)?(o=void 0,t.middlewareControl instanceof WO.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(KO.AuthenticationHandlerOptions)),r=void 0,i=void 0,o&&(r=o.authenticationProvider,i=o.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(i)]):[3,2];case 1:return a=c.sent(),u="Bearer ".concat(a),(0,JO.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),IP.TelemetryHandlerOptions.updateFeatureUsageFlag(t,IP.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],c.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,c.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();Uu.AuthenticationHandler=XO});var Fu=S(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.HTTPMessageHandler=void 0;var AP=(xe(),ge(_e)),YO=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return AP.__awaiter(this,void 0,void 0,function(){var n;return AP.__generator(this,function(o){switch(o.label){case 0:return n=t,[4,fetch(t.request,t.options)];case 1:return n.response=o.sent(),[2]}})})},e})();ju.HTTPMessageHandler=YO});var Ei=S(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.RetryHandlerOptions=void 0;var QO=(function(){function e(t,n,o){if(t===void 0&&(t=e.DEFAULT_DELAY),n===void 0&&(n=e.DEFAULT_MAX_RETRIES),o===void 0&&(o=e.defaultShouldRetry),t>e.MAX_DELAY&&n>e.MAX_MAX_RETRIES){var r=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t>e.MAX_DELAY){var r=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw r.name="MaxLimitExceeded",r}else if(n>e.MAX_MAX_RETRIES){var r=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t<0&&n<0){var r=new Error("Delay and MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}else if(t<0){var r=new Error("Delay should not be negative");throw r.name="MinExpectationNotMet",r}else if(n<0){var r=new Error("MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(n,e.MAX_MAX_RETRIES),this.shouldRetry=o}return s(e,"RetryHandlerOptions"),e.prototype.getMaxDelay=function(){return e.MAX_DELAY},e.DEFAULT_DELAY=3,e.DEFAULT_MAX_RETRIES=3,e.MAX_DELAY=180,e.MAX_MAX_RETRIES=10,e.defaultShouldRetry=function(){return!0},e})();Bu.RetryHandlerOptions=QO});var Vu=S(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.RetryHandler=void 0;var yn=(xe(),ge(_e)),Of=bi(),ew=Ht(),$P=fn(),OP=Ei(),wP=hn(),tw=(function(){function e(t){t===void 0&&(t=new OP.RetryHandlerOptions),this.options=t}return s(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,n){var o=typeof t=="string"?n.method:t.method,r=o===Of.RequestMethod.PUT||o===Of.RequestMethod.PATCH||o===Of.RequestMethod.POST;if(r){var i=(0,$P.getRequestHeader)(t,n,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,n,o){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=n>=2?this.getExponentialBackOffTime(n)+o+r():o+r(),Math.min(a,this.options.getMaxDelay()+r())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return yn.__awaiter(this,void 0,void 0,function(){var n;return yn.__generator(this,function(o){return n=t*1e3,[2,new Promise(function(r){return setTimeout(r,n)})]})})},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof ew.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof n>"u"&&(n=Object.assign(new OP.RetryHandlerOptions,this.options)),n},e.prototype.executeWithRetry=function(t,n,o){return yn.__awaiter(this,void 0,void 0,function(){var r;return yn.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),n<o.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&o.shouldRetry(o.delay,n,t.request,t.options,t.response)?(++n,(0,$P.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,n.toString()),r=this.getDelay(t.response,n,o.delay),[4,this.sleep(r)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,n,o)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return yn.__awaiter(this,void 0,void 0,function(){var n,o;return yn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),wP.TelemetryHandlerOptions.updateFeatureUsageFlag(t,wP.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,n,o)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.RETRY_STATUS_CODES=[429,503,504],e.RETRY_ATTEMPT_HEADER="Retry-Attempt",e.RETRY_AFTER_HEADER="Retry-After",e})();Zu.RetryHandler=tw});var Ti=S(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.RedirectHandlerOptions=void 0;var rw=(function(){function e(t,n){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),n===void 0&&(n=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var o=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw o.name="MaxLimitExceeded",o}if(t<0){var o=new Error("MaxRedirects should not be negative");throw o.name="MinExpectationNotMet",o}this.maxRedirects=t,this.shouldRedirect=n}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();Hu.RedirectHandlerOptions=rw});var Gu=S(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.RedirectHandler=void 0;var vn=(xe(),ge(_e)),nw=bi(),ow=Ht(),iw=fn(),wf=Ti(),zP=hn(),aw=(function(){function e(t){t===void 0&&(t=new wf.RedirectHandlerOptions),this.options=t}return s(e,"RedirectHandler"),e.prototype.isRedirect=function(t){return e.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.hasLocationHeader=function(t){return t.headers.has(e.LOCATION_HEADER)},e.prototype.getLocationHeader=function(t){return t.headers.get(e.LOCATION_HEADER)},e.prototype.isRelativeURL=function(t){return t.indexOf("://")===-1},e.prototype.shouldDropAuthorizationHeader=function(t,n){var o=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=o.exec(t),i,a;r!==null&&(i=r[0]);var u=o.exec(n);return u!==null&&(a=u[0]),typeof i<"u"&&typeof a<"u"&&i!==a},e.prototype.updateRequestUrl=function(t,n){return vn.__awaiter(this,void 0,void 0,function(){var o,r;return vn.__generator(this,function(i){switch(i.label){case 0:return o=n,typeof n.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,iw.cloneRequestWithNewUrl)(t,n.request)];case 2:r=i.sent(),i.label=3;case 3:return o.request=r,[2]}})})},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof ow.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(wf.RedirectHandlerOptions)),typeof n>"u"&&(n=Object.assign(new wf.RedirectHandlerOptions,this.options)),n},e.prototype.executeWithRedirect=function(t,n,o){return vn.__awaiter(this,void 0,void 0,function(){var r,i;return vn.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,n<o.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&o.shouldRedirect(r)?(++n,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=nw.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(r),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(r.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,n,o)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return vn.__awaiter(this,void 0,void 0,function(){var n,o;return vn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,zP.TelemetryHandlerOptions.updateFeatureUsageFlag(t,zP.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,n,o)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.REDIRECT_STATUS_CODES=[301,302,303,307,308],e.STATUS_CODE_SEE_OTHER=303,e.LOCATION_HEADER="Location",e.AUTHORIZATION_HEADER="Authorization",e.MANUAL_REDIRECT="manual",e})();qu.RedirectHandler=aw});var RP=S(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.PACKAGE_VERSION=void 0;Wu.PACKAGE_VERSION="3.0.7"});var Xu=S(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.TelemetryHandler=void 0;var kP=(xe(),ge(_e)),DP=Cu(),sw=RP(),uw=Ht(),Ju=fn(),cw=hn(),lw=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return kP.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a;return kP.__generator(this,function(u){switch(u.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,DP.isGraphURL)(n)||t.customHosts&&(0,DP.isCustomHost)(n,t.customHosts)?(o=(0,Ju.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),o||(o=(0,Ju.generateUUID)(),(0,Ju.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,o)),r="".concat(e.PRODUCT_NAME,"/").concat(sw.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof uw.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(cw.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,Ju.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,r)):(delete t.options.headers[e.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[e.SDK_VERSION_HEADER]),[4,this.nextMiddleware.execute(t)];case 1:return[2,u.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.CLIENT_REQUEST_ID_HEADER="client-request-id",e.SDK_VERSION_HEADER="SdkVersion",e.PRODUCT_NAME="graph-js",e.FEATURE_USAGE_STRING="featureUsage",e})();Ku.TelemetryHandler=lw});var CP=S(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.MiddlewareFactory=void 0;var pw=Lu(),dw=Fu(),mw=Ti(),fw=Ei(),gw=Gu(),hw=Vu(),yw=Xu(),vw=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),_w=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var n=[],o=new pw.AuthenticationHandler(t),r=new hw.RetryHandler(new fw.RetryHandlerOptions),i=new yw.TelemetryHandler,a=new dw.HTTPMessageHandler;if(n.push(o),n.push(r),vw()){var u=new gw.RedirectHandler(new mw.RedirectHandlerOptions);n.push(u)}return n.push(i),n.push(a),n},e})();Yu.MiddlewareFactory=_w});var ec=S(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.ChaosStrategy=void 0;var NP;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(NP||(Qu.ChaosStrategy=NP={}))});var zf=S(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.ChaosHandlerOptions=void 0;var xw=ec(),Pw=(function(){function e(t,n,o,r,i,a){if(t===void 0&&(t=xw.ChaosStrategy.RANDOM),n===void 0&&(n="Some error Happened"),this.chaosStrategy=t,this.statusCode=o,this.statusMessage=n,this.chaosPercentage=r!==void 0?r:10,this.responseBody=i,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();tc.ChaosHandlerOptions=Pw});var MP=S(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.httpStatusCode=_n.methodStatusCode=void 0;_n.methodStatusCode={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]};_n.httpStatusCode={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"}});var jP=S(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.ChaosHandler=void 0;var rc=(xe(),ge(_e)),bw=Ht(),Ew=fn(),UP=MP(),Rf=zf(),LP=ec(),Tw=(function(){function e(t,n){t===void 0&&(t=new Rf.ChaosHandlerOptions),this.options=t,this.manualMap=n}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,n,o){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",n),r.append("client-request-id",n),r.append("x-ms-ags-diagnostic",""),r.append("Date",o),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,n,o){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var i=UP.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:i,message:a,innerError:{"request-id":n,date:o}}}}else r={};return r},e.prototype.createResponse=function(t,n){var o=n.request,r=(0,Ew.generateUUID)(),i=new Date,a=this.createResponseHeaders(t,r,i.toString()),u=this.createResponseBody(t,r,i.toString()),c={url:o,status:t.statusCode,statusText:t.statusMessage,headers:a};n.response=new Response(typeof u=="string"?u:JSON.stringify(u),c)},e.prototype.sendRequest=function(t,n){return rc.__awaiter(this,void 0,void 0,function(){return rc.__generator(this,function(o){switch(o.label){case 0:return this.setStatusCode(t,n.request,n.options.method),t.chaosStrategy===LP.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,n),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(n)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var n=UP.methodStatusCode[t];return n[Math.floor(Math.random()*n.length)]},e.prototype.getRelativeURL=function(t){var n=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,o;return n.exec(t)!==null&&(o=n.exec(t)[1]),o},e.prototype.setStatusCode=function(t,n,o){var r=this;if(t.chaosStrategy===LP.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(n);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(o)!==void 0&&(t.statusCode=this.manualMap.get(i).get(o)):this.manualMap.forEach(function(a,u){var c=new RegExp(u+"$");c.test(i)&&r.manualMap.get(u).get(o)!==void 0&&(t.statusCode=r.manualMap.get(u).get(o))})}}else t.statusCode=this.getRandomStatusCode(o)},e.prototype.getOptions=function(t){var n;return t.middlewareControl instanceof bw.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(Rf.ChaosHandlerOptions)),typeof n>"u"&&(n=Object.assign(new Rf.ChaosHandlerOptions,this.options)),n},e.prototype.execute=function(t){return rc.__awaiter(this,void 0,void 0,function(){var n;return rc.__generator(this,function(o){switch(o.label){case 0:return n=this.getOptions(t),[4,this.sendRequest(n,t)];case 1:return[2,o.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();nc.ChaosHandler=Tw});var Si=S(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.ResponseType=void 0;var FP;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(FP||(oc.ResponseType=FP={}))});var Df=S(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.GraphResponseHandler=xn.DocumentType=void 0;var ic=(xe(),ge(_e)),_r=Si(),kf;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(kf||(xn.DocumentType=kf={}));var ac;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(ac||(ac={}));var sc;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(sc||(sc={}));var Sw=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,n){return typeof DOMParser<"u"?new Promise(function(o,r){t.text().then(function(i){try{var a=new DOMParser,u=a.parseFromString(i,n);o(u)}catch(c){r(c)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,n){return ic.__awaiter(this,void 0,void 0,function(){var o,r,i,a;return ic.__generator(this,function(u){switch(u.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),i=n,i){case _r.ResponseType.ARRAYBUFFER:return[3,1];case _r.ResponseType.BLOB:return[3,3];case _r.ResponseType.DOCUMENT:return[3,5];case _r.ResponseType.JSON:return[3,7];case _r.ResponseType.STREAM:return[3,9];case _r.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return o=u.sent(),[3,24];case 3:return[4,t.blob()];case 4:return o=u.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,kf.TEXT_XML)];case 6:return o=u.sent(),[3,24];case 7:return[4,t.json()];case 8:return o=u.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return o=u.sent(),[3,24];case 11:return[4,t.text()];case 12:return o=u.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(sc.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return o=u.sent(),[3,21];case 15:return new RegExp(sc.IMAGE).test(a)?(o=t.blob(),[3,21]):[3,16];case 16:return a!==ac.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return o=u.sent(),[3,21];case 18:return a!==ac.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return o=u.sent(),[3,21];case 20:o=Promise.resolve(t.body),u.label=21;case 21:return[3,23];case 22:o=Promise.resolve(t.body),u.label=23;case 23:return[3,24];case 24:return[2,o]}})})},e.getResponse=function(t,n,o){return ic.__awaiter(this,void 0,void 0,function(){var r;return ic.__generator(this,function(i){switch(i.label){case 0:return n!==_r.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,n)];case 2:if(r=i.sent(),t.ok)if(typeof o=="function")o(null,r);else return[2,r];else throw r;i.label=3;case 3:return[2]}})})},e})();xn.GraphResponseHandler=Sw});var Cf=S(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.Range=void 0;var Iw=(function(){function e(t,n){t===void 0&&(t=-1),n===void 0&&(n=-1),this.minValue=t,this.maxValue=n}return s(e,"Range"),e})();uc.Range=Iw});var Nf=S(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.UploadResult=void 0;var Aw=(function(){function e(t,n){this._location=n,this._responseBody=t}return s(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:s(function(){return this._location},"get"),set:s(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:s(function(){return this._responseBody},"get"),set:s(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,n){return new e(t,n.get("location"))},e})();cc.UploadResult=Aw});var Uf=S(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.LargeFileUploadTask=void 0;var qe=(xe(),ge(_e)),Mf=Tt(),$w=Df(),BP=Si(),lc=Cf(),Ow=Nf(),ww=(function(){function e(t,n,o,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,n.sliceFile)this.file=n;else throw new Mf.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=n,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=o,this.nextRange=new lc.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,n,o,r){return r===void 0&&(r={}),qe.__awaiter(this,void 0,void 0,function(){var i,a;return qe.__generator(this,function(u){switch(u.label){case 0:return[4,t.api(n).headers(r).post(o)];case 1:return i=u.sent(),a={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var n=t[0];if(typeof n>"u"||n==="")return new lc.Range;var o=n.split("-"),r=parseInt(o[0],10),i=parseInt(o[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new lc.Range(r,i)},e.prototype.updateTaskStatus=function(t){this.uploadSession.expiry=new Date(t.expirationDateTime),this.nextRange=this.parseRange(t.nextExpectedRanges)},e.prototype.getNextRange=function(){if(this.nextRange.minValue===-1)return this.nextRange;var t=this.nextRange.minValue,n=t+this.options.rangeSize-1;return n>=this.file.size&&(n=this.file.size-1),new lc.Range(t,n)},e.prototype.sliceFile=function(t){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(t.minValue,t.maxValue+1);throw new Mf.GraphClientError("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")},e.prototype.upload=function(){return qe.__awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,u;return qe.__generator(this,function(c){switch(c.label){case 0:t=this.options&&this.options.uploadEventHandlers,c.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(n=this.getNextRange(),n.maxValue===-1)throw o=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),o.name="Invalid Session",o;return[4,this.file.sliceFile(n)];case 2:return r=c.sent(),[4,this.uploadSliceGetRawResponse(r,n,this.file.size)];case 3:if(i=c.sent(),!i)throw new Mf.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,$w.GraphResponseHandler.getResponse(i)];case 4:return a=c.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,n),[2,Ow.UploadResult.CreateUploadResult(a,i.headers)]):(u={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(u),this.reportProgress(t,n),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,n){t&&t.progress&&t.progress(n,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,n,o){return qe.__awaiter(this,void 0,void 0,function(){return qe.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,n,o){return qe.__awaiter(this,void 0,void 0,function(){return qe.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).responseType(BP.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return qe.__awaiter(this,void 0,void 0,function(){var t;return qe.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(BP.ResponseType.RAW).delete()];case 1:return t=n.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return qe.__awaiter(this,void 0,void 0,function(){var t;return qe.__generator(this,function(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=n.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return qe.__awaiter(this,void 0,void 0,function(){return qe.__generator(this,function(t){switch(t.label){case 0:return[4,this.getStatus()];case 1:return t.sent(),[4,this.upload()];case 2:return[2,t.sent()]}})})},e.prototype.getUploadSession=function(){return this.uploadSession},e})();pc.LargeFileUploadTask=ww});var Lf=S(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.FileUpload=void 0;var zw=Tt(),Rw=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new zw.GraphClientError("Please provide the upload content, name of the file and size of the file")}return s(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();dc.FileUpload=Rw});var jf=S(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.getValidRangeSize=void 0;var kw=5*1024*1024,Dw=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),Cw=s(function(e){e===void 0&&(e=kw);var t=60*1024*1024;return e>t&&(e=t),Dw(e)},"getValidRangeSize");mc.getValidRangeSize=Cw});var VP=S(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.OneDriveLargeFileUploadTask=void 0;var St=(xe(),ge(_e)),ZP=Tt(),Nw=Lf(),Mw=Uf(),Uw=jf(),Lw=(function(e){St.__extends(t,e);function t(n,o,r,i){return e.call(this,n,o,r,i)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(n,o){return o===void 0&&(o=t.DEFAULT_UPLOAD_PATH),n=n.trim(),o=o.trim(),o===""&&(o="/"),o[0]!=="/"&&(o="/".concat(o)),o[o.length-1]!=="/"&&(o="".concat(o,"/")),"/me/drive/root:".concat(o.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(n),":/createUploadSession")},t.getFileInfo=function(n,o){var r,i;if(typeof Blob<"u"&&n instanceof Blob)r=new File([n],o),i=r.size;else if(typeof File<"u"&&n instanceof File)r=n,i=r.size;else if(typeof Uint8Array<"u"&&n instanceof Uint8Array){var a=n;i=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:i}},t.create=function(n,o,r){return St.__awaiter(this,void 0,void 0,function(){var i,a,u;return St.__generator(this,function(c){if(!n||!o||!r)throw new ZP.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(o,i),u=new Nw.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(n,u,r)]})})},t.createTaskWithFileObject=function(n,o,r){return St.__awaiter(this,void 0,void 0,function(){var i,a,u,c;return St.__generator(this,function(l){switch(l.label){case 0:if(!n||!o||!r)throw new ZP.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(n,i,a)];case 1:return u=l.sent(),c=(0,Uw.getValidRangeSize)(r.rangeSize),[2,new t(n,o,u,{rangeSize:c,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(n,o,r){return St.__awaiter(this,void 0,void 0,function(){var i;return St.__generator(this,function(a){return i={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,n,o,i)]})})},t.prototype.commit=function(n,o){return o===void 0&&(o="rename"),St.__awaiter(this,void 0,void 0,function(){var r;return St.__generator(this,function(i){switch(i.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":o,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(n).put(r)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(Mw.LargeFileUploadTask);fc.OneDriveLargeFileUploadTask=Lw});var qP=S(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.StreamUpload=void 0;var HP=(xe(),ge(_e)),Ii=Tt(),jw=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new Ii.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return s(e,"StreamUpload"),e.prototype.sliceFile=function(t){return HP.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c;return HP.__generator(this,function(l){switch(l.label){case 0:if(n=t.maxValue-t.minValue+1,o=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Ii.GraphClientError("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(t.minValue<this.previousSlice.range.maxValue){if(r=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];o.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),n=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=n?(o.push(this.content.read(n)),[3,3]):[3,1]:[3,4];case 1:return u=(a=o).push,[4,this.readNBytesFromStream(n)];case 2:u.apply(a,[l.sent()]),l.label=3;case 3:return[3,5];case 4:throw new Ii.GraphClientError("Stream is not readable.");case 5:return c=Buffer.concat(o),this.previousSlice={fileSlice:c,range:t},[2,c]}})})},e.prototype.readNBytesFromStream=function(t){var n=this;return new Promise(function(o,r){var i=[],a=t,u=0;n.content.on("end",function(){if(a>0)return r(new Ii.GraphClientError("Stream ended before reading required range size"))}),n.content.on("readable",function(){for(var c;u<t&&(c=n.content.read(a))!==null;)u+=c.length,i.push(c),a>0&&(a=t-u);if(u===t)return o(Buffer.concat(i));if(!n.content||!n.content.readable)return r(new Ii.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();gc.StreamUpload=jw});var GP=S(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.PageIterator=void 0;var Pn=(xe(),ge(_e)),Fw=(function(){function e(t,n,o,r){this.client=t,this.collection=n.value,this.nextLink=n["@odata.nextLink"],this.deltaLink=n["@odata.deltaLink"],this.callback=o,this.cursor=0,this.complete=!1,this.requestOptions=r}return s(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var n=this.collection[this.cursor];t=this.callback(n),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Pn.__awaiter(this,void 0,void 0,function(){var t,n;return Pn.__generator(this,function(o){switch(o.label){case 0:return t=this.client.api(this.nextLink),this.requestOptions&&(this.requestOptions.headers&&(t=t.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(t=t.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(t=t.options(this.requestOptions.options))),[4,t.get()];case 1:return n=o.sent(),this.collection=n.value,this.cursor=0,this.nextLink=n["@odata.nextLink"],this.deltaLink=n["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Pn.__awaiter(this,void 0,void 0,function(){var t;return Pn.__generator(this,function(n){switch(n.label){case 0:t=this.iterationHelper(),n.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return n.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,n.label=4;case 4:return[3,1];case 5:return this.nextLink===void 0&&this.cursor>=this.collection.length&&(this.complete=!0),[2]}})})},e.prototype.resume=function(){return Pn.__awaiter(this,void 0,void 0,function(){return Pn.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();hc.PageIterator=Fw});var Ff=S(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.CustomAuthenticationProvider=void 0;var yc=(xe(),ge(_e)),WP=Tt(),Bw=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return yc.__awaiter(this,void 0,void 0,function(){var t=this;return yc.__generator(this,function(n){return[2,new Promise(function(o,r){t.provider(function(i,a){return yc.__awaiter(t,void 0,void 0,function(){var u,c;return yc.__generator(this,function(l){switch(l.label){case 0:return a?(o(a),[3,3]):[3,1];case 1:return i||(u="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md",i=new WP.GraphClientError(u)),[4,WP.GraphClientError.setGraphClientError(i)];case 2:c=l.sent(),r(c),l.label=3;case 3:return[2]}})})})})]})})},e})();vc.CustomAuthenticationProvider=Bw});var Bf=S(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.GraphError=void 0;var Zw=(xe(),ge(_e)),Vw=(function(e){Zw.__extends(t,e);function t(n,o,r){n===void 0&&(n=-1);var i=e.call(this,o||r&&r.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=n,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=r?r.stack:i.stack,i}return s(t,"GraphError"),t})(Error);_c.GraphError=Vw});var KP=S(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.GraphErrorHandler=void 0;var JP=(xe(),ge(_e)),Zf=Bf(),Hw=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,n,o){var r=new Zf.GraphError(n,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=o?.headers,r},e.constructErrorFromResponse=function(t,n,o){var r=t.error,i=new Zf.GraphError(n,r.message);return i.code=r.code,r.innerError!==void 0&&(i.requestId=r.innerError["request-id"],i.date=new Date(r.innerError.date)),i.body=JSON.stringify(r),i.headers=o?.headers,i},e.getError=function(t,n,o,r){return t===void 0&&(t=null),n===void 0&&(n=-1),JP.__awaiter(this,void 0,void 0,function(){var i;return JP.__generator(this,function(a){if(t&&t.error?i=e.constructErrorFromResponse(t,n,r):t instanceof Error?i=e.constructError(t,n,r):(i=new Zf.GraphError(n),i.body=t),typeof o=="function")o(i,null);else return[2,i];return[2]})})},e})();xc.GraphErrorHandler=Hw});var Vf=S(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.GraphRequest=void 0;var de=(xe(),ge(_e)),qw=Tt(),Gw=KP(),Ai=Cu(),Ww=Df(),Jw=Ht(),xr=bi(),Kw=Si(),Xw=(function(){function e(t,n,o){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var u=i.indexOf("/");u!==-1&&(r.urlComponents.version=i.substring(0,u),i=i.substring(u+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var c=i.indexOf("?");if(c===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,c);for(var l=i.substring(c+1,i.length).split("&"),m=0,f=l;m<f.length;m++){var g=f[m];r.parseQueryParameter(g)}}},this.httpClient=t,this.config=n,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(o)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,n,o){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];o.length>1&&typeof n=="string"?r=Array.prototype.slice.call(o):typeof n=="string"?r.push(n):r=r.concat(n),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Ai.urlJoin)([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t},e.prototype.createQueryString=function(){var t=this.urlComponents,n=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var o in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,o)&&n.push(o+"="+t.oDataQueryParams[o]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var o in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,o)&&n.push(o+"="+t.otherURLQueryParams[o]);if(t.otherURLQueryOptions.length!==0)for(var r=0,i=t.otherURLQueryOptions;r<i.length;r++){var a=i[r];n.push(a)}return n.length>0?"?"+n.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var n=t.split("&"),o=0,r=n;o<r.length;o++){var i=r[o];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setURLComponentsQueryParamater(a,t[a]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var n=t.indexOf("="),o=t.substring(0,n),r=t.substring(n+1);this.setURLComponentsQueryParamater(o,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,n){if(Ai.oDataQueryNames.indexOf(t)!==-1){var o=this.urlComponents.oDataQueryParams[t],r=o&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?o+","+n:n}else this.urlComponents.otherURLQueryParams[t]=n},e.prototype.isValidQueryKeyValuePair=function(t){var n=t.indexOf("=");if(n===-1)return!1;var o=t.indexOf("(");return!(o!==-1&&t.indexOf("(")<n)},e.prototype.updateRequestOptions=function(t){var n=de.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var o=de.__assign({},this.config.fetchOptions);Object.assign(t,o),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=de.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(n,t.headers),Object.assign(n,this._headers),t.headers=n},e.prototype.send=function(t,n,o){var r;return de.__awaiter(this,void 0,void 0,function(){var i,a,u,c,l,m,f,g;return de.__generator(this,function(p){switch(p.label){case 0:a=new Jw.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(n),u=(r=this.config)===null||r===void 0?void 0:r.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:n,middlewareControl:a,customHosts:u})];case 2:return c=p.sent(),i=c.response,[4,Ww.GraphResponseHandler.getResponse(i,this._responseType,o)];case 3:return l=p.sent(),[2,l];case 4:if(m=p.sent(),m instanceof qw.GraphClientError)throw m;return f=void 0,i&&(f=i.status),[4,Gw.GraphErrorHandler.getError(m,f,o,i)];case 5:throw g=p.sent(),g;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),n=0,o=t;n<o.length;n++){var r=o[n];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,n){return this._headers[t]=n,this},e.prototype.headers=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._headers[n]=t[n]);return this},e.prototype.option=function(t,n){return this._options[t]=n,this},e.prototype.options=function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._options[n]=t[n]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return de.__awaiter(this,void 0,void 0,function(){var n,o,r;return de.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),o={method:xr.RequestMethod.GET},[4,this.send(n,o,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,n){return de.__awaiter(this,void 0,void 0,function(){var o,r,i;return de.__generator(this,function(a){switch(a.label){case 0:return o=this.buildFullUrl(),r={method:xr.RequestMethod.POST,body:(0,Ai.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(o,r,n)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,n){return de.__awaiter(this,void 0,void 0,function(){return de.__generator(this,function(o){switch(o.label){case 0:return[4,this.post(t,n)];case 1:return[2,o.sent()]}})})},e.prototype.put=function(t,n){return de.__awaiter(this,void 0,void 0,function(){var o,r;return de.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:xr.RequestMethod.PUT,body:(0,Ai.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,n){return de.__awaiter(this,void 0,void 0,function(){var o,r;return de.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:xr.RequestMethod.PATCH,body:(0,Ai.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,n){return de.__awaiter(this,void 0,void 0,function(){return de.__generator(this,function(o){switch(o.label){case 0:return[4,this.patch(t,n)];case 1:return[2,o.sent()]}})})},e.prototype.delete=function(t){return de.__awaiter(this,void 0,void 0,function(){var n,o;return de.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:xr.RequestMethod.DELETE},[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return de.__awaiter(this,void 0,void 0,function(){return de.__generator(this,function(n){switch(n.label){case 0:return[4,this.delete(t)];case 1:return[2,n.sent()]}})})},e.prototype.getStream=function(t){return de.__awaiter(this,void 0,void 0,function(){var n,o;return de.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:xr.RequestMethod.GET},this.responseType(Kw.ResponseType.STREAM),[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,n){return de.__awaiter(this,void 0,void 0,function(){var o,r;return de.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),r={method:xr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e})();Pc.GraphRequest=Xw});var Hf=S(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.HTTPClient=void 0;var XP=(xe(),ge(_e)),Yw=(function(){function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!t||!t.length){var o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Please provide a default middleware chain or custom middleware chain",o}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(n,o){o<t.length-1&&n.setNext(t[o+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return XP.__awaiter(this,void 0,void 0,function(){var n;return XP.__generator(this,function(o){switch(o.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw n=new Error,n.name="InvalidRequestOptions",n.message="Unable to execute the middleware, Please provide valid options for a request",n;return[4,this.middleware.execute(t)];case 1:return o.sent(),[2,t]}})})},e})();bc.HTTPClient=Yw});var QP=S(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.HTTPClientFactory=void 0;var Qw=(xe(),ge(_e)),YP=Hf(),ez=Lu(),tz=Fu(),rz=Ti(),nz=Ei(),oz=Gu(),iz=Vu(),az=Xu(),sz=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),uz=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var n=new ez.AuthenticationHandler(t),o=new iz.RetryHandler(new nz.RetryHandlerOptions),r=new az.TelemetryHandler,i=new tz.HTTPMessageHandler;if(n.setNext(o),sz()){var a=new oz.RedirectHandler(new rz.RedirectHandlerOptions);o.setNext(a),a.setNext(r)}else o.setNext(r);return r.setNext(i),e.createWithMiddleware(n)},e.createWithMiddleware=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(YP.HTTPClient.bind.apply(YP.HTTPClient,Qw.__spreadArray([void 0],t,!1)))},e})();Ec.HTTPClientFactory=uz});var eb=S(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.validatePolyFilling=void 0;var cz=s(function(){if(typeof Promise>"u"&&typeof fetch>"u"){var e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){var e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){var e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0},"validatePolyFilling");Tc.validatePolyFilling=cz});var nb=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.Client=void 0;var lz=(xe(),ge(_e)),tb=If(),pz=Ff(),dz=Vf(),rb=Hf(),mz=QP(),fz=eb(),gz=(function(){function e(t){this.config={baseUrl:tb.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:tb.GRAPH_API_VERSION},(0,fz.validatePolyFilling)();for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.config[n]=t[n]);var o;if(t.authProvider!==void 0&&t.middleware!==void 0){var r=new Error;throw r.name="AmbiguityInInitialization",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",r}else if(t.authProvider!==void 0)o=mz.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)o=new(rb.HTTPClient.bind.apply(rb.HTTPClient,lz.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",r}this.httpClient=o}return s(e,"Client"),e.init=function(t){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=o==="authProvider"?new pz.CustomAuthenticationProvider(t[o]):t[o]);return e.initWithMiddleware(n)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new dz.GraphRequest(this.httpClient,this.config,t)},e})();Sc.Client=gz});var ib=S(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.ResponseType=N.GraphRequest=N.GraphClientError=N.GraphError=N.CustomAuthenticationProvider=N.Client=N.PageIterator=N.Range=N.UploadResult=N.FileUpload=N.StreamUpload=N.getValidRangeSize=N.OneDriveLargeFileUploadTask=N.LargeFileUploadTask=N.ChaosHandler=N.ChaosStrategy=N.ChaosHandlerOptions=N.TelemetryHandlerOptions=N.FeatureUsageFlag=N.RedirectHandlerOptions=N.RetryHandlerOptions=N.AuthenticationHandlerOptions=N.MiddlewareFactory=N.TelemetryHandler=N.RedirectHandler=N.RetryHandler=N.HTTPMessageHandler=N.AuthenticationHandler=N.BatchResponseContent=N.BatchRequestContent=void 0;var hz=_P();Object.defineProperty(N,"BatchRequestContent",{enumerable:!0,get:s(function(){return hz.BatchRequestContent},"get")});var yz=xP();Object.defineProperty(N,"BatchResponseContent",{enumerable:!0,get:s(function(){return yz.BatchResponseContent},"get")});var vz=Lu();Object.defineProperty(N,"AuthenticationHandler",{enumerable:!0,get:s(function(){return vz.AuthenticationHandler},"get")});var _z=Fu();Object.defineProperty(N,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return _z.HTTPMessageHandler},"get")});var xz=Vu();Object.defineProperty(N,"RetryHandler",{enumerable:!0,get:s(function(){return xz.RetryHandler},"get")});var Pz=Gu();Object.defineProperty(N,"RedirectHandler",{enumerable:!0,get:s(function(){return Pz.RedirectHandler},"get")});var bz=Xu();Object.defineProperty(N,"TelemetryHandler",{enumerable:!0,get:s(function(){return bz.TelemetryHandler},"get")});var Ez=CP();Object.defineProperty(N,"MiddlewareFactory",{enumerable:!0,get:s(function(){return Ez.MiddlewareFactory},"get")});var Tz=Af();Object.defineProperty(N,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return Tz.AuthenticationHandlerOptions},"get")});var Sz=Ei();Object.defineProperty(N,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return Sz.RetryHandlerOptions},"get")});var Iz=Ti();Object.defineProperty(N,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return Iz.RedirectHandlerOptions},"get")});var ob=hn();Object.defineProperty(N,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return ob.FeatureUsageFlag},"get")});Object.defineProperty(N,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return ob.TelemetryHandlerOptions},"get")});var Az=zf();Object.defineProperty(N,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return Az.ChaosHandlerOptions},"get")});var $z=ec();Object.defineProperty(N,"ChaosStrategy",{enumerable:!0,get:s(function(){return $z.ChaosStrategy},"get")});var Oz=jP();Object.defineProperty(N,"ChaosHandler",{enumerable:!0,get:s(function(){return Oz.ChaosHandler},"get")});var wz=Uf();Object.defineProperty(N,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return wz.LargeFileUploadTask},"get")});var zz=VP();Object.defineProperty(N,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return zz.OneDriveLargeFileUploadTask},"get")});var Rz=jf();Object.defineProperty(N,"getValidRangeSize",{enumerable:!0,get:s(function(){return Rz.getValidRangeSize},"get")});var kz=qP();Object.defineProperty(N,"StreamUpload",{enumerable:!0,get:s(function(){return kz.StreamUpload},"get")});var Dz=Lf();Object.defineProperty(N,"FileUpload",{enumerable:!0,get:s(function(){return Dz.FileUpload},"get")});var Cz=Nf();Object.defineProperty(N,"UploadResult",{enumerable:!0,get:s(function(){return Cz.UploadResult},"get")});var Nz=Cf();Object.defineProperty(N,"Range",{enumerable:!0,get:s(function(){return Nz.Range},"get")});var Mz=GP();Object.defineProperty(N,"PageIterator",{enumerable:!0,get:s(function(){return Mz.PageIterator},"get")});var Uz=nb();Object.defineProperty(N,"Client",{enumerable:!0,get:s(function(){return Uz.Client},"get")});var Lz=Ff();Object.defineProperty(N,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return Lz.CustomAuthenticationProvider},"get")});var jz=Bf();Object.defineProperty(N,"GraphError",{enumerable:!0,get:s(function(){return jz.GraphError},"get")});var Fz=Tt();Object.defineProperty(N,"GraphClientError",{enumerable:!0,get:s(function(){return Fz.GraphClientError},"get")});var Bz=Vf();Object.defineProperty(N,"GraphRequest",{enumerable:!0,get:s(function(){return Bz.GraphRequest},"get")});var Zz=Si();Object.defineProperty(N,"ResponseType",{enumerable:!0,get:s(function(){return Zz.ResponseType},"get")})});var $i=S((qf,Gf)=>{(function(e,t){typeof qf=="object"&&typeof Gf<"u"?Gf.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(qf,(function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",l="month",m="quarter",f="year",g="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(V){var D=["th","st","nd","rd"],R=V%100;return"["+V+(D[(R-20)%10]||D[R]||D[0])+"]"},"ordinal")},x=s(function(V,D,R){var M=String(V);return!M||M.length>=D?V:""+Array(D+1-M.length).join(R)+V},"m"),O={s:x,z:s(function(V){var D=-V.utcOffset(),R=Math.abs(D),M=Math.floor(R/60),k=R%60;return(D<=0?"+":"-")+x(M,2,"0")+":"+x(k,2,"0")},"z"),m:s(function V(D,R){if(D.date()<R.date())return-V(R,D);var M=12*(R.year()-D.year())+(R.month()-D.month()),k=D.clone().add(M,l),X=R-k<0,Y=D.clone().add(M+(X?-1:1),l);return+(-(M+(R-k)/(X?k-Y:Y-k))||0)},"t"),a:s(function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},"a"),p:s(function(V){return{M:l,y:f,w:c,d:u,D:g,h:a,m:i,s:r,ms:o,Q:m}[V]||String(V||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(V){return V===void 0},"u")},U="en",te={};te[U]=E;var le=s(function(V){return V instanceof Le},"p"),Ue=s(function V(D,R,M){var k;if(!D)return U;if(typeof D=="string"){var X=D.toLowerCase();te[X]&&(k=X),R&&(te[X]=R,k=X);var Y=D.split("-");if(!k&&Y.length>1)return V(Y[0])}else{var pe=D.name;te[pe]=D,k=pe}return!M&&k&&(U=k),k||!M&&U},"t"),Pe=s(function(V,D){if(le(V))return V.clone();var R=typeof D=="object"?D:{};return R.date=V,R.args=arguments,new Le(R)},"w"),Q=O;Q.l=Ue,Q.i=le,Q.w=function(V,D){return Pe(V,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var Le=(function(){function V(R){this.$L=Ue(R.locale,null,!0),this.parse(R)}s(V,"M");var D=V.prototype;return D.parse=function(R){this.$d=(function(M){var k=M.date,X=M.utc;if(k===null)return new Date(NaN);if(Q.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var Y=k.match(y);if(Y){var pe=Y[2]-1||0,Ee=(Y[7]||"0").substring(0,3);return X?new Date(Date.UTC(Y[1],pe,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,Ee)):new Date(Y[1],pe,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,Ee)}}return new Date(k)})(R),this.$x=R.x||{},this.init()},D.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},D.$utils=function(){return Q},D.isValid=function(){return this.$d.toString()!==p},D.isSame=function(R,M){var k=Pe(R);return this.startOf(M)<=k&&k<=this.endOf(M)},D.isAfter=function(R,M){return Pe(R)<this.startOf(M)},D.isBefore=function(R,M){return this.endOf(M)<Pe(R)},D.$g=function(R,M,k){return Q.u(R)?this[M]:this.set(k,R)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(R,M){var k=this,X=!!Q.u(M)||M,Y=Q.p(R),pe=s(function(Jt,je){var It=Q.w(k.$u?Date.UTC(k.$y,je,Jt):new Date(k.$y,je,Jt),k);return X?It:It.endOf(u)},"l"),Ee=s(function(Jt,je){return Q.w(k.toDate()[Jt].apply(k.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(je)),k)},"$"),Ae=this.$W,De=this.$M,Xe=this.$D,br="set"+(this.$u?"UTC":"");switch(Y){case f:return X?pe(1,0):pe(31,11);case l:return X?pe(1,De):pe(0,De+1);case c:var Wt=this.$locale().weekStart||0,En=(Ae<Wt?Ae+7:Ae)-Wt;return pe(X?Xe-En:Xe+(6-En),De);case u:case g:return Ee(br+"Hours",0);case a:return Ee(br+"Minutes",1);case i:return Ee(br+"Seconds",2);case r:return Ee(br+"Milliseconds",3);default:return this.clone()}},D.endOf=function(R){return this.startOf(R,!1)},D.$set=function(R,M){var k,X=Q.p(R),Y="set"+(this.$u?"UTC":""),pe=(k={},k[u]=Y+"Date",k[g]=Y+"Date",k[l]=Y+"Month",k[f]=Y+"FullYear",k[a]=Y+"Hours",k[i]=Y+"Minutes",k[r]=Y+"Seconds",k[o]=Y+"Milliseconds",k)[X],Ee=X===u?this.$D+(M-this.$W):M;if(X===l||X===f){var Ae=this.clone().set(g,1);Ae.$d[pe](Ee),Ae.init(),this.$d=Ae.set(g,Math.min(this.$D,Ae.daysInMonth())).$d}else pe&&this.$d[pe](Ee);return this.init(),this},D.set=function(R,M){return this.clone().$set(R,M)},D.get=function(R){return this[Q.p(R)]()},D.add=function(R,M){var k,X=this;R=Number(R);var Y=Q.p(M),pe=s(function(De){var Xe=Pe(X);return Q.w(Xe.date(Xe.date()+Math.round(De*R)),X)},"y");if(Y===l)return this.set(l,this.$M+R);if(Y===f)return this.set(f,this.$y+R);if(Y===u)return pe(1);if(Y===c)return pe(7);var Ee=(k={},k[i]=t,k[a]=n,k[r]=e,k)[Y]||1,Ae=this.$d.getTime()+R*Ee;return Q.w(Ae,this)},D.subtract=function(R,M){return this.add(-1*R,M)},D.format=function(R){var M=this,k=this.$locale();if(!this.isValid())return k.invalidDate||p;var X=R||"YYYY-MM-DDTHH:mm:ssZ",Y=Q.z(this),pe=this.$H,Ee=this.$m,Ae=this.$M,De=k.weekdays,Xe=k.months,br=k.meridiem,Wt=s(function(je,It,Tn,wi){return je&&(je[It]||je(M,X))||Tn[It].slice(0,wi)},"h"),En=s(function(je){return Q.s(pe%12||12,je,"0")},"d"),Jt=br||function(je,It,Tn){var wi=je<12?"AM":"PM";return Tn?wi.toLowerCase():wi};return X.replace(_,(function(je,It){return It||(function(Tn){switch(Tn){case"YY":return String(M.$y).slice(-2);case"YYYY":return Q.s(M.$y,4,"0");case"M":return Ae+1;case"MM":return Q.s(Ae+1,2,"0");case"MMM":return Wt(k.monthsShort,Ae,Xe,3);case"MMMM":return Wt(Xe,Ae);case"D":return M.$D;case"DD":return Q.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return Wt(k.weekdaysMin,M.$W,De,2);case"ddd":return Wt(k.weekdaysShort,M.$W,De,3);case"dddd":return De[M.$W];case"H":return String(pe);case"HH":return Q.s(pe,2,"0");case"h":return En(1);case"hh":return En(2);case"a":return Jt(pe,Ee,!0);case"A":return Jt(pe,Ee,!1);case"m":return String(Ee);case"mm":return Q.s(Ee,2,"0");case"s":return String(M.$s);case"ss":return Q.s(M.$s,2,"0");case"SSS":return Q.s(M.$ms,3,"0");case"Z":return Y}return null})(je)||Y.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(R,M,k){var X,Y=this,pe=Q.p(M),Ee=Pe(R),Ae=(Ee.utcOffset()-this.utcOffset())*t,De=this-Ee,Xe=s(function(){return Q.m(Y,Ee)},"D");switch(pe){case f:X=Xe()/12;break;case l:X=Xe();break;case m:X=Xe()/3;break;case c:X=(De-Ae)/6048e5;break;case u:X=(De-Ae)/864e5;break;case a:X=De/n;break;case i:X=De/t;break;case r:X=De/e;break;default:X=De}return k?X:Q.a(X)},D.daysInMonth=function(){return this.endOf(l).$D},D.$locale=function(){return te[this.$L]},D.locale=function(R,M){if(!R)return this.$L;var k=this.clone(),X=Ue(R,M,!0);return X&&(k.$L=X),k},D.clone=function(){return Q.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},V})(),Oi=Le.prototype;return Pe.prototype=Oi,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",l],["$y",f],["$D",g]].forEach((function(V){Oi[V[1]]=function(D){return this.$g(D,V[0],V[1])}})),Pe.extend=function(V,D){return V.$i||(V(D,Le,Pe),V.$i=!0),Pe},Pe.locale=Ue,Pe.isDayjs=le,Pe.unix=function(V){return Pe(1e3*V)},Pe.en=te[U],Pe.Ls=te,Pe.p={},Pe}))});var Kz={};Ye(Kz,{microsoftOutlook:()=>Jz});module.exports=ge(Kz);var We={};Ye(We,{$ZodAny:()=>jn,$ZodArray:()=>Vn,$ZodAsyncError:()=>it,$ZodBase64:()=>_a,$ZodBase64URL:()=>xa,$ZodBigInt:()=>Nr,$ZodBigIntFormat:()=>Ta,$ZodBoolean:()=>er,$ZodCIDRv4:()=>ya,$ZodCIDRv6:()=>va,$ZodCUID:()=>ia,$ZodCUID2:()=>aa,$ZodCatch:()=>ja,$ZodCheck:()=>ue,$ZodCheckBigIntFormat:()=>hl,$ZodCheckEndsWith:()=>$l,$ZodCheckGreaterThan:()=>Wi,$ZodCheckIncludes:()=>Il,$ZodCheckLengthEquals:()=>bl,$ZodCheckLessThan:()=>Gi,$ZodCheckLowerCase:()=>Tl,$ZodCheckMaxLength:()=>xl,$ZodCheckMaxSize:()=>yl,$ZodCheckMimeType:()=>wl,$ZodCheckMinLength:()=>Pl,$ZodCheckMinSize:()=>vl,$ZodCheckMultipleOf:()=>fl,$ZodCheckNumberFormat:()=>gl,$ZodCheckOverwrite:()=>zl,$ZodCheckProperty:()=>Ol,$ZodCheckRegex:()=>El,$ZodCheckSizeEquals:()=>_l,$ZodCheckStartsWith:()=>Al,$ZodCheckStringFormat:()=>Dr,$ZodCheckUpperCase:()=>Sl,$ZodCodec:()=>Ur,$ZodCustom:()=>Qn,$ZodCustomStringFormat:()=>Ea,$ZodDate:()=>Zn,$ZodDefault:()=>Na,$ZodDiscriminatedUnion:()=>Hn,$ZodE164:()=>Pa,$ZodEmail:()=>ra,$ZodEmoji:()=>na,$ZodEncodeError:()=>At,$ZodEnum:()=>Wn,$ZodError:()=>Dn,$ZodExactOptional:()=>Ca,$ZodFile:()=>Da,$ZodFunction:()=>Va,$ZodGUID:()=>ea,$ZodIPv4:()=>fa,$ZodIPv6:()=>ga,$ZodISODate:()=>pa,$ZodISODateTime:()=>la,$ZodISODuration:()=>ma,$ZodISOTime:()=>da,$ZodIntersection:()=>za,$ZodJWT:()=>ba,$ZodKSUID:()=>ca,$ZodLazy:()=>qa,$ZodLiteral:()=>Jn,$ZodMAC:()=>ha,$ZodMap:()=>Ra,$ZodNaN:()=>Fa,$ZodNanoID:()=>oa,$ZodNever:()=>$a,$ZodNonOptional:()=>Ua,$ZodNull:()=>Aa,$ZodNullable:()=>Xn,$ZodNumber:()=>Cr,$ZodNumberFormat:()=>Ln,$ZodObject:()=>Oa,$ZodObjectJIT:()=>Cl,$ZodOptional:()=>Mr,$ZodPipe:()=>Yn,$ZodPrefault:()=>Ma,$ZodPromise:()=>Ha,$ZodReadonly:()=>Ba,$ZodRealError:()=>Be,$ZodRecord:()=>Gn,$ZodRegistry:()=>Ga,$ZodSet:()=>ka,$ZodString:()=>gt,$ZodStringFormat:()=>ae,$ZodSuccess:()=>La,$ZodSymbol:()=>Sa,$ZodTemplateLiteral:()=>Za,$ZodTransform:()=>Kn,$ZodTuple:()=>qn,$ZodType:()=>B,$ZodULID:()=>sa,$ZodURL:()=>Un,$ZodUUID:()=>ta,$ZodUndefined:()=>Ia,$ZodUnion:()=>tr,$ZodUnknown:()=>Fn,$ZodVoid:()=>Bn,$ZodXID:()=>ua,$ZodXor:()=>wa,$brand:()=>An,$constructor:()=>h,$input:()=>Ja,$output:()=>Wa,Doc:()=>Mn,JSONSchema:()=>Vg,JSONSchemaGenerator:()=>Ts,NEVER:()=>zi,TimePrecision:()=>Xa,_any:()=>Do,_array:()=>$p,_base64:()=>To,_base64url:()=>So,_bigint:()=>as,_boolean:()=>zo,_catch:()=>VT,_check:()=>Zg,_cidrv4:()=>bo,_cidrv6:()=>Eo,_coercedBigint:()=>ko,_coercedBoolean:()=>Ro,_coercedDate:()=>Mo,_coercedNumber:()=>Oo,_coercedString:()=>ao,_cuid:()=>go,_cuid2:()=>ho,_custom:()=>Zo,_date:()=>ms,_decode:()=>Ui,_decodeAsync:()=>ji,_default:()=>FT,_discriminatedUnion:()=>OT,_e164:()=>Io,_email:()=>so,_emoji:()=>mo,_encode:()=>Mi,_encodeAsync:()=>Li,_endsWith:()=>sr,_enum:()=>CT,_file:()=>gs,_float32:()=>rs,_float64:()=>ns,_gt:()=>st,_gte:()=>Ie,_guid:()=>Fr,_includes:()=>ir,_int:()=>wo,_int32:()=>os,_int64:()=>ss,_intersection:()=>wT,_ipv4:()=>xo,_ipv6:()=>Po,_isoDate:()=>Qa,_isoDateTime:()=>Ya,_isoDuration:()=>ts,_isoTime:()=>es,_jwt:()=>Ao,_ksuid:()=>_o,_lazy:()=>WT,_length:()=>Dt,_literal:()=>MT,_lowercase:()=>nr,_lt:()=>at,_lte:()=>Ne,_mac:()=>Ka,_map:()=>kT,_max:()=>Ne,_maxLength:()=>kt,_maxSize:()=>yt,_mime:()=>ur,_min:()=>Ie,_minLength:()=>Te,_minSize:()=>ut,_multipleOf:()=>ht,_nan:()=>fs,_nanoid:()=>fo,_nativeEnum:()=>NT,_negative:()=>Lo,_never:()=>ds,_nonnegative:()=>Fo,_nonoptional:()=>BT,_nonpositive:()=>jo,_normalize:()=>cr,_null:()=>ps,_nullable:()=>jT,_number:()=>$o,_optional:()=>LT,_overwrite:()=>et,_parse:()=>$r,_parseAsync:()=>Or,_pipe:()=>HT,_positive:()=>Uo,_promise:()=>JT,_property:()=>Bo,_readonly:()=>qT,_record:()=>RT,_refine:()=>hs,_regex:()=>Re,_safeDecode:()=>Bi,_safeDecodeAsync:()=>Vi,_safeEncode:()=>Fi,_safeEncodeAsync:()=>Zi,_safeParse:()=>wr,_safeParseAsync:()=>Rr,_set:()=>DT,_size:()=>Rt,_slugify:()=>Br,_startsWith:()=>ar,_string:()=>io,_stringFormat:()=>mr,_stringbool:()=>xs,_success:()=>ZT,_superRefine:()=>ys,_symbol:()=>cs,_templateLiteral:()=>GT,_toLowerCase:()=>pr,_toUpperCase:()=>dr,_transform:()=>UT,_trim:()=>lr,_tuple:()=>zT,_uint32:()=>is,_uint64:()=>us,_ulid:()=>yo,_undefined:()=>ls,_union:()=>AT,_unknown:()=>Co,_uppercase:()=>or,_url:()=>rr,_uuid:()=>uo,_uuidv4:()=>co,_uuidv6:()=>lo,_uuidv7:()=>po,_void:()=>No,_xid:()=>vo,_xor:()=>$T,clone:()=>$e,config:()=>he,createStandardJSONSchemaMethod:()=>Zr,createToJSONSchemaMethod:()=>Op,decode:()=>lg,decodeAsync:()=>dg,describe:()=>vs,encode:()=>cg,encodeAsync:()=>pg,extractDefs:()=>Nt,finalize:()=>Mt,flattenError:()=>Ir,formatError:()=>Ar,globalConfig:()=>In,globalRegistry:()=>Oe,initializeContext:()=>Ct,isValidBase64:()=>Dl,isValidBase64URL:()=>Dg,isValidJWT:()=>Cg,locales:()=>jr,meta:()=>_s,parse:()=>Xt,parseAsync:()=>Yt,prettifyError:()=>Ni,process:()=>se,regexes:()=>Ze,registry:()=>oo,safeDecode:()=>fg,safeDecodeAsync:()=>hg,safeEncode:()=>mg,safeEncodeAsync:()=>gg,safeParse:()=>zr,safeParseAsync:()=>kr,toDotPath:()=>ug,toJSONSchema:()=>Vo,treeifyError:()=>Ci,util:()=>A,version:()=>Rl});var zi=Object.freeze({status:"aborted"});function h(e,t,n){function o(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=a.prototype,m=Object.keys(l);for(let f=0;f<m.length;f++){let g=m[f];g in u||(u[g]=l[g].bind(u))}}s(o,"init");let r=n?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(u){var c;let l=n?.Parent?new i:this;o(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let m of l._zod.deferred)m();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s(u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(h,"$constructor");var An=Symbol("zod_brand"),it=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},At=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},In={};function he(e){return e&&Object.assign(In,e),In}s(he,"config");var A={};Ye(A,{BIGINT_FORMAT_RANGES:()=>Lc,Class:()=>Rc,NUMBER_FORMAT_RANGES:()=>Uc,aborted:()=>zt,allowsEval:()=>Cc,assert:()=>Zb,assertEqual:()=>Lb,assertIs:()=>Fb,assertNever:()=>Bb,assertNotEqual:()=>jb,assignProp:()=>Ot,base64ToUint8Array:()=>ig,base64urlToUint8Array:()=>eE,cached:()=>Tr,captureStackTrace:()=>ki,cleanEnum:()=>Qb,cleanRegex:()=>wn,clone:()=>$e,cloneDef:()=>Hb,createTransparentProxy:()=>Xb,defineLazy:()=>W,esc:()=>Ri,escapeRegex:()=>Qe,extend:()=>tg,finalizeIssue:()=>Fe,floatSafeRemainder:()=>kc,getElementAtPath:()=>qb,getEnumValues:()=>On,getLengthableOrigin:()=>kn,getParsedType:()=>Kb,getSizableOrigin:()=>Rn,hexToUint8Array:()=>rE,isObject:()=>Kt,isPlainObject:()=>wt,issue:()=>Sr,joinValues:()=>P,jsonStringifyReplacer:()=>Er,merge:()=>Yb,mergeDefs:()=>ft,normalizeParams:()=>T,nullish:()=>$t,numKeys:()=>Jb,objectClone:()=>Vb,omit:()=>eg,optionalKeys:()=>Mc,parsedType:()=>$,partial:()=>ng,pick:()=>Qf,prefixIssues:()=>Ge,primitiveTypes:()=>Nc,promiseAllObject:()=>Gb,propertyKeyTypes:()=>zn,randomString:()=>Wb,required:()=>og,safeExtend:()=>rg,shallowClone:()=>Di,slugify:()=>Dc,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>ag,uint8ArrayToBase64url:()=>tE,uint8ArrayToHex:()=>nE,unwrapMessage:()=>$n});function Lb(e){return e}s(Lb,"assertEqual");function jb(e){return e}s(jb,"assertNotEqual");function Fb(e){}s(Fb,"assertIs");function Bb(e){throw new Error("Unexpected value in exhaustive check")}s(Bb,"assertNever");function Zb(e){}s(Zb,"assert");function On(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)}s(On,"getEnumValues");function P(e,t="|"){return e.map(n=>I(n)).join(t)}s(P,"joinValues");function Er(e,t){return typeof t=="bigint"?t.toString():t}s(Er,"jsonStringifyReplacer");function Tr(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}s(Tr,"cached");function $t(e){return e==null}s($t,"nullish");function wn(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}s(wn,"cleanRegex");function kc(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 c=o.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]))}let i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return a%u/10**i}s(kc,"floatSafeRemainder");var Yf=Symbol("evaluating");function W(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Yf)return o===void 0&&(o=Yf,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(W,"defineLazy");function Vb(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(Vb,"objectClone");function Ot(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(Ot,"assignProp");function ft(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}s(ft,"mergeDefs");function Hb(e){return ft(e._zod.def)}s(Hb,"cloneDef");function qb(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}s(qb,"getElementAtPath");function Gb(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})}s(Gb,"promiseAllObject");function Wb(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}s(Wb,"randomString");function Ri(e){return JSON.stringify(e)}s(Ri,"esc");function Dc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(Dc,"slugify");var ki="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(Kt,"isObject");var Cc=Tr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function wt(e){if(Kt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Kt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(wt,"isPlainObject");function Di(e){return wt(e)?{...e}:Array.isArray(e)?[...e]:e}s(Di,"shallowClone");function Jb(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}s(Jb,"numKeys");var Kb=s(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"),zn=new Set(["string","number","symbol"]),Nc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Qe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Qe,"escapeRegex");function $e(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}s($e,"clone");function T(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:s(()=>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:s(()=>t.error,"error")}:t}s(T,"normalizeParams");function Xb(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)}})}s(Xb,"createTransparentProxy");function I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(I,"stringifyPrimitive");function Mc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(Mc,"optionalKeys");var Uc={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]},Lc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Qf(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=ft(e._zod.def,{get shape(){let a={};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(a[u]=n.shape[u])}return Ot(this,"shape",a),a},checks:[]});return $e(e,i)}s(Qf,"pick");function eg(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=ft(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete a[u]}return Ot(this,"shape",a),a},checks:[]});return $e(e,i)}s(eg,"omit");function tg(e,t){if(!wt(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 a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=ft(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Ot(this,"shape",i),i}});return $e(e,r)}s(tg,"extend");function rg(e,t){if(!wt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=ft(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Ot(this,"shape",o),o}});return $e(e,n)}s(rg,"safeExtend");function Yb(e,t){let n=ft(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Ot(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return $e(e,n)}s(Yb,"merge");function ng(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 a=ft(t._zod.def,{get shape(){let u=t._zod.def.shape,c={...u};if(n)for(let l in n){if(!(l in u))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:u[l]}):u[l])}else for(let l in u)c[l]=e?new e({type:"optional",innerType:u[l]}):u[l];return Ot(this,"shape",c),c},checks:[]});return $e(t,a)}s(ng,"partial");function og(e,t,n){let o=ft(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Ot(this,"shape",i),i}});return $e(t,o)}s(og,"required");function zt(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}s(zt,"aborted");function Ge(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}s(Ge,"prefixIssues");function $n(e){return typeof e=="string"?e:e?.message}s($n,"unwrapMessage");function Fe(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=$n(e.inst?._zod.def?.error?.(e))??$n(t?.error?.(e))??$n(n.customError?.(e))??$n(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}s(Fe,"finalizeIssue");function Rn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Rn,"getSizableOrigin");function kn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(kn,"getLengthableOrigin");function $(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}s($,"parsedType");function Sr(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}s(Sr,"issue");function Qb(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(Qb,"cleanEnum");function ig(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}s(ig,"base64ToUint8Array");function ag(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}s(ag,"uint8ArrayToBase64");function eE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return ig(t+n)}s(eE,"base64urlToUint8Array");function tE(e){return ag(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(tE,"uint8ArrayToBase64url");function rE(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}s(rE,"hexToUint8Array");function nE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(nE,"uint8ArrayToHex");var Rc=class{static{s(this,"Class")}constructor(...t){}};var sg=s((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,Er,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Dn=h("$ZodError",sg),Be=h("$ZodError",sg,{Parent:Error});function Ir(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}}s(Ir,"flattenError");function Ar(e,t=n=>n.message){let n={_errors:[]},o=s(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));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 a=n,u=0;for(;u<i.path.length;){let c=i.path[u];u===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}},"processError");return o(e),n}s(Ar,"formatError");function Ci(e,t=n=>n.message){let n={errors:[]},o=s((r,i=[])=>{var a,u;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>o({issues:l},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let l=[...i,...c.path];if(l.length===0){n.errors.push(t(c));continue}let m=n,f=0;for(;f<l.length;){let g=l[f],p=f===l.length-1;typeof g=="string"?(m.properties??(m.properties={}),(a=m.properties)[g]??(a[g]={errors:[]}),m=m.properties[g]):(m.items??(m.items=[]),(u=m.items)[g]??(u[g]={errors:[]}),m=m.items[g]),p&&m.errors.push(t(c)),f++}}},"processError");return o(e),n}s(Ci,"treeifyError");function ug(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("")}s(ug,"toDotPath");function Ni(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 ${ug(o.path)}`);return t.join(`
|
|
6
|
-
`)}s(Ni,"prettifyError");var $r=s(e=>(t,n,o,r)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new it;if(a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Fe(c,i,he())));throw ki(u,r?.callee),u}return a.value},"_parse"),Xt=$r(Be),Or=s(e=>async(t,n,o,r)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>Fe(c,i,he())));throw ki(u,r?.callee),u}return a.value},"_parseAsync"),Yt=Or(Be),wr=s(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 it;return i.issues.length?{success:!1,error:new(e??Dn)(i.issues.map(a=>Fe(a,r,he())))}:{success:!0,data:i.value}},"_safeParse"),zr=wr(Be),Rr=s(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(a=>Fe(a,r,he())))}:{success:!0,data:i.value}},"_safeParseAsync"),kr=Rr(Be),Mi=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return $r(e)(t,n,r)},"_encode"),cg=Mi(Be),Ui=s(e=>(t,n,o)=>$r(e)(t,n,o),"_decode"),lg=Ui(Be),Li=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Or(e)(t,n,r)},"_encodeAsync"),pg=Li(Be),ji=s(e=>async(t,n,o)=>Or(e)(t,n,o),"_decodeAsync"),dg=ji(Be),Fi=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return wr(e)(t,n,r)},"_safeEncode"),mg=Fi(Be),Bi=s(e=>(t,n,o)=>wr(e)(t,n,o),"_safeDecode"),fg=Bi(Be),Zi=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Rr(e)(t,n,r)},"_safeEncodeAsync"),gg=Zi(Be),Vi=s(e=>async(t,n,o)=>Rr(e)(t,n,o),"_safeDecodeAsync"),hg=Vi(Be);var Ze={};Ye(Ze,{base64:()=>tl,base64url:()=>Hi,bigint:()=>sl,boolean:()=>cl,browserEmail:()=>dE,cidrv4:()=>Qc,cidrv6:()=>el,cuid:()=>jc,cuid2:()=>Fc,date:()=>nl,datetime:()=>il,domain:()=>gE,duration:()=>qc,e164:()=>rl,email:()=>Wc,emoji:()=>Jc,extendedDuration:()=>iE,guid:()=>Gc,hex:()=>hE,hostname:()=>fE,html5Email:()=>cE,idnEmail:()=>pE,integer:()=>ul,ipv4:()=>Kc,ipv6:()=>Xc,ksuid:()=>Vc,lowercase:()=>dl,mac:()=>Yc,md5_base64:()=>vE,md5_base64url:()=>_E,md5_hex:()=>yE,nanoid:()=>Hc,null:()=>ll,number:()=>qi,rfc5322Email:()=>lE,sha1_base64:()=>PE,sha1_base64url:()=>bE,sha1_hex:()=>xE,sha256_base64:()=>TE,sha256_base64url:()=>SE,sha256_hex:()=>EE,sha384_base64:()=>AE,sha384_base64url:()=>$E,sha384_hex:()=>IE,sha512_base64:()=>wE,sha512_base64url:()=>zE,sha512_hex:()=>OE,string:()=>al,time:()=>ol,ulid:()=>Bc,undefined:()=>pl,unicodeEmail:()=>yg,uppercase:()=>ml,uuid:()=>Qt,uuid4:()=>aE,uuid6:()=>sE,uuid7:()=>uE,xid:()=>Zc});var jc=/^[cC][^\s-]{8,}$/,Fc=/^[0-9a-z]+$/,Bc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Zc=/^[0-9a-vA-V]{20}$/,Vc=/^[A-Za-z0-9]{27}$/,Hc=/^[a-zA-Z0-9_-]{21}$/,qc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,iE=/^[-+]?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)?)??$/,Gc=/^([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})$/,Qt=s(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"),aE=Qt(4),sE=Qt(6),uE=Qt(7),Wc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cE=/^[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])?)*$/,lE=/^(([^<>()\[\]\\.,;:\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,}))$/,yg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,pE=yg,dE=/^[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])?)*$/,mE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Jc(){return new RegExp(mE,"u")}s(Jc,"emoji");var Kc=/^(?:(?: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])$/,Xc=/^(([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}|:))$/,Yc=s(e=>{let t=Qe(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"),Qc=/^((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])$/,el=/^(([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])$/,tl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hi=/^[A-Za-z0-9_-]*$/,fE=/^(?=.{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])?)*\.?$/,gE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,rl=/^\+[1-9]\d{6,14}$/,vg="(?:(?:\\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])))",nl=new RegExp(`^${vg}$`);function _g(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+)?)?`}s(_g,"timeSource");function ol(e){return new RegExp(`^${_g(e)}$`)}s(ol,"time");function il(e){let t=_g({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(`^${vg}T(?:${o})$`)}s(il,"datetime");var al=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),sl=/^-?\d+n?$/,ul=/^-?\d+$/,qi=/^-?\d+(?:\.\d+)?$/,cl=/^(?:true|false)$/i,ll=/^null$/i;var pl=/^undefined$/i;var dl=/^[^A-Z]*$/,ml=/^[^a-z]*$/,hE=/^[0-9a-fA-F]*$/;function Cn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Cn,"fixedBase64");function Nn(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Nn,"fixedBase64url");var yE=/^[0-9a-fA-F]{32}$/,vE=Cn(22,"=="),_E=Nn(22),xE=/^[0-9a-fA-F]{40}$/,PE=Cn(27,"="),bE=Nn(27),EE=/^[0-9a-fA-F]{64}$/,TE=Cn(43,"="),SE=Nn(43),IE=/^[0-9a-fA-F]{96}$/,AE=Cn(64,""),$E=Nn(64),OE=/^[0-9a-fA-F]{128}$/,wE=Cn(86,"=="),zE=Nn(86);var ue=h("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Pg={number:"number",bigint:"bigint",object:"date"},Gi=h("$ZodCheckLessThan",(e,t)=>{ue.init(e,t);let n=Pg[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})}}),Wi=h("$ZodCheckGreaterThan",(e,t)=>{ue.init(e,t);let n=Pg[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})}}),fl=h("$ZodCheckMultipleOf",(e,t)=>{ue.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):kc(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})}}),gl=h("$ZodCheckNumberFormat",(e,t)=>{ue.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=Uc[t.format];e._zod.onattach.push(a=>{let u=a._zod.bag;u.format=t.format,u.minimum=r,u.maximum=i,n&&(u.pattern=ul)}),e._zod.check=a=>{let u=a.value;if(n){if(!Number.isInteger(u)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?a.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}):a.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&&a.issues.push({origin:"number",input:u,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u>i&&a.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),hl=h("$ZodCheckBigIntFormat",(e,t)=>{ue.init(e,t);let[n,o]=Lc[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})}}),yl=h("$ZodCheckMaxSize",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!$t(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:Rn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),vl=h("$ZodCheckMinSize",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!$t(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:Rn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_l=h("$ZodCheckSizeEquals",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!$t(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 a=i>t.size;o.issues.push({origin:Rn(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),xl=h("$ZodCheckMaxLength",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!$t(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 a=kn(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pl=h("$ZodCheckMinLength",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!$t(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 a=kn(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bl=h("$ZodCheckLengthEquals",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!$t(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 a=kn(r),u=i>t.length;o.issues.push({origin:a,...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})}}),Dr=h("$ZodCheckStringFormat",(e,t)=>{var n,o;ue.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=()=>{})}),El=h("$ZodCheckRegex",(e,t)=>{Dr.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})}}),Tl=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=dl),Dr.init(e,t)}),Sl=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ml),Dr.init(e,t)}),Il=h("$ZodCheckIncludes",(e,t)=>{ue.init(e,t);let n=Qe(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})}}),Al=h("$ZodCheckStartsWith",(e,t)=>{ue.init(e,t);let n=new RegExp(`^${Qe(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})}}),$l=h("$ZodCheckEndsWith",(e,t)=>{ue.init(e,t);let n=new RegExp(`.*${Qe(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 xg(e,t,n){e.issues.length&&t.issues.push(...Ge(n,e.issues))}s(xg,"handleCheckPropertyResult");var Ol=h("$ZodCheckProperty",(e,t)=>{ue.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=>xg(r,n,t.property));xg(o,n,t.property)}}),wl=h("$ZodCheckMimeType",(e,t)=>{ue.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})}}),zl=h("$ZodCheckOverwrite",(e,t)=>{ue.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Mn=class{static{s(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(`
|
|
7
|
-
`).filter(a=>a),r=Math.min(...
|
|
8
|
-
`))}};var Rl={major:4,minor:3,patch:6};var B=h("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rl;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=s((a,u,c)=>{let l=zt(a),m;for(let f of u){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(l)continue;let g=a.issues.length,p=f._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new it;if(m||p instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await p,a.issues.length!==g&&(l||(l=zt(a,g)))});else{if(a.issues.length===g)continue;l||(l=zt(a,g))}}return m?m.then(()=>a):a},"runChecks"),i=s((a,u,c)=>{if(zt(a))return a.aborted=!0,a;let l=r(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new it;return l.then(m=>e._zod.parse(m,c))}return e._zod.parse(l,c)},"handleCanaryResult");e._zod.run=(a,u)=>{if(u.skipChecks)return e._zod.parse(a,u);if(u.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(m=>i(m,a,u)):i(l,a,u)}let c=e._zod.parse(a,u);if(c instanceof Promise){if(u.async===!1)throw new it;return c.then(l=>r(l,o,u))}return r(c,o,u)}}W(e,"~standard",()=>({validate:s(r=>{try{let i=zr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return kr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),gt=h("$ZodString",(e,t)=>{B.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??al(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}}),ae=h("$ZodStringFormat",(e,t)=>{Dr.init(e,t),gt.init(e,t)}),ea=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Gc),ae.init(e,t)}),ta=h("$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=Qt(o))}else t.pattern??(t.pattern=Qt());ae.init(e,t)}),ra=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Wc),ae.init(e,t)}),Un=h("$ZodURL",(e,t)=>{ae.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})}}}),na=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Jc()),ae.init(e,t)}),oa=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Hc),ae.init(e,t)}),ia=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=jc),ae.init(e,t)}),aa=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Fc),ae.init(e,t)}),sa=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Bc),ae.init(e,t)}),ua=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Zc),ae.init(e,t)}),ca=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Vc),ae.init(e,t)}),la=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=il(t)),ae.init(e,t)}),pa=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=nl),ae.init(e,t)}),da=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ol(t)),ae.init(e,t)}),ma=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=qc),ae.init(e,t)}),fa=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Kc),ae.init(e,t),e._zod.bag.format="ipv4"}),ga=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xc),ae.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})}}}),ha=h("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Yc(t.delimiter)),ae.init(e,t),e._zod.bag.format="mac"}),ya=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Qc),ae.init(e,t)}),va=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=el),ae.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 a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>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 Dl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Dl,"isValidBase64");var _a=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tl),ae.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Dl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Dg(e){if(!Hi.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Dl(n)}s(Dg,"isValidBase64URL");var xa=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Hi),ae.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Dg(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Pa=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=rl),ae.init(e,t)});function Cg(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}}s(Cg,"isValidJWT");var ba=h("$ZodJWT",(e,t)=>{ae.init(e,t),e._zod.check=n=>{Cg(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ea=h("$ZodCustomStringFormat",(e,t)=>{ae.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})}}),Cr=h("$ZodNumber",(e,t)=>{B.init(e,t),e._zod.pattern=e._zod.bag.pattern??qi,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}}),Ln=h("$ZodNumberFormat",(e,t)=>{gl.init(e,t),Cr.init(e,t)}),er=h("$ZodBoolean",(e,t)=>{B.init(e,t),e._zod.pattern=cl,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}}),Nr=h("$ZodBigInt",(e,t)=>{B.init(e,t),e._zod.pattern=sl,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}}),Ta=h("$ZodBigIntFormat",(e,t)=>{hl.init(e,t),Nr.init(e,t)}),Sa=h("$ZodSymbol",(e,t)=>{B.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}}),Ia=h("$ZodUndefined",(e,t)=>{B.init(e,t),e._zod.pattern=pl,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}}),Aa=h("$ZodNull",(e,t)=>{B.init(e,t),e._zod.pattern=ll,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}}),jn=h("$ZodAny",(e,t)=>{B.init(e,t),e._zod.parse=n=>n}),Fn=h("$ZodUnknown",(e,t)=>{B.init(e,t),e._zod.parse=n=>n}),$a=h("$ZodNever",(e,t)=>{B.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Bn=h("$ZodVoid",(e,t)=>{B.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}}),Zn=h("$ZodDate",(e,t)=>{B.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 Eg(e,t,n){e.issues.length&&t.issues.push(...Ge(n,e.issues)),t.value[n]=e.value}s(Eg,"handleArrayResult");var Vn=h("$ZodArray",(e,t)=>{B.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 a=0;a<r.length;a++){let u=r[a],c=t.element._zod.run({value:u,issues:[]},o);c instanceof Promise?i.push(c.then(l=>Eg(l,n,a))):Eg(c,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Qi(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...Ge(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}s(Qi,"handlePropertyResult");function Ng(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=Mc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}s(Ng,"normalizeDef");function Mg(e,t,n,o,r,i){let a=[],u=r.keySet,c=r.catchall._zod,l=c.def.type,m=c.optout==="optional";for(let f in t){if(u.has(f))continue;if(l==="never"){a.push(f);continue}let g=c.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(p=>Qi(p,n,f,t,m))):Qi(g,n,f,t,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}s(Mg,"handleCatchall");var Oa=h("$ZodObject",(e,t)=>{if(B.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c},"get")})}let o=Tr(()=>Ng(t));W(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let m=u[l]._zod;if(m.values){c[l]??(c[l]=new Set);for(let f of m.values)c[l].add(f)}}return c});let r=Kt,i=t.catchall,a;e._zod.parse=(u,c)=>{a??(a=o.value);let l=u.value;if(!r(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),u;u.value={};let m=[],f=a.shape;for(let g of a.keys){let p=f[g],y=p._zod.optout==="optional",_=p._zod.run({value:l[g],issues:[]},c);_ instanceof Promise?m.push(_.then(E=>Qi(E,u,g,l,y))):Qi(_,u,g,l,y)}return i?Mg(m,l,u,c,o.value,e):m.length?Promise.all(m).then(()=>u):u}}),Cl=h("$ZodObjectJIT",(e,t)=>{Oa.init(e,t);let n=e._zod.parse,o=Tr(()=>Ng(t)),r=s(g=>{let p=new Mn(["shape","payload","ctx"]),y=o.value,_=s(U=>{let te=Ri(U);return`shape[${te}]._zod.run({ value: input[${te}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let E=Object.create(null),x=0;for(let U of y.keys)E[U]=`key_${x++}`;p.write("const newResult = {};");for(let U of y.keys){let te=E[U],le=Ri(U),Pe=g[U]?._zod?.optout==="optional";p.write(`const ${te} = ${_(U)};`),Pe?p.write(`
|
|
9
|
-
if (${
|
|
10
|
-
if (${
|
|
11
|
-
payload.issues = payload.issues.concat(${
|
|
5
|
+
3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),c.name="Invalid Dependency",c;u.label=1;case 1:return r.done?[3,3]:(i=r.value[1],[4,e.getRequestData(i.request)]);case 2:if(a=u.sent(),a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0))throw c=new Error("Content-type header is not mentioned for request #".concat(i.id,", For request having body, Content-type header should be mentioned")),c.name="Invalid Content-type header",c;return a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),t.push(a),r=n.next(),[3,1];case 3:return o.requests=t,[2,o]}})})},e.prototype.addDependency=function(t,o){if(!this.requests.has(t)){var n=new Error("Dependent ".concat(t," does not exists, Please check the id"));throw n.name="Invalid Dependent",n}if(typeof o<"u"&&!this.requests.has(o)){var n=new Error("Dependency ".concat(o," does not exists, Please check the id"));throw n.name="Invalid Dependency",n}if(typeof o<"u"){var r=this.requests.get(t);if(r.dependsOn===void 0&&(r.dependsOn=[]),r.dependsOn.indexOf(o)!==-1){var n=new Error("Dependency ".concat(o," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}r.dependsOn.push(o)}else{for(var i=this.requests.entries(),a=void 0,c=i.next();!c.done&&c.value[1].id!==t;)a=c,c=i.next();if(typeof a<"u"){var u=a.value[0];if(c.value[1].dependsOn===void 0&&(c.value[1].dependsOn=[]),c.value[1].dependsOn.indexOf(u)!==-1){var n=new Error("Dependency ".concat(u," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}c.value[1].dependsOn.push(u)}else{var n=new Error("Can't add dependency ".concat(o,", There is only a dependent request in the batch"));throw n.name="Invalid Dependency Addition",n}}},e.prototype.removeDependency=function(t,o){var n=this.requests.get(t);if(typeof n>"u"||n.dependsOn===void 0||n.dependsOn.length===0)return!1;if(typeof o<"u"){var r=n.dependsOn.indexOf(o);return r===-1?!1:(n.dependsOn.splice(r,1),!0)}else return delete n.dependsOn,!0},e.requestLimit=20,e})();Wc.BatchRequestContent=lR});var gP=$(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.BatchResponseContent=void 0;var pR=(Pe(),ve(be)),dR=(function(){function e(t){this.responses=new Map,this.update(t)}return s(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var o=t.body,n={};if(n.status=t.status,t.statusText!==void 0&&(n.statusText=t.statusText),n.headers=t.headers,n.headers!==void 0&&n.headers["Content-Type"]!==void 0&&n.headers["Content-Type"].split(";")[0]==="application/json"){var r=JSON.stringify(o);return new Response(r,n)}return new Response(o,n)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var o=t.responses,n=0,r=o.length;n<r;n++)this.responses.set(o[n].id,this.createResponseObject(o[n]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,o;return pR.__generator(this,function(n){switch(n.label){case 0:t=this.responses.entries(),o=t.next(),n.label=1;case 1:return o.done?[3,3]:[4,o.value];case 2:return n.sent(),o=t.next(),[3,1];case 3:return[2]}})},e})();Kc.BatchResponseContent=dR});var Yf=$(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.GRAPH_URLS=Kt.GRAPH_BASE_URL=Kt.GRAPH_API_VERSION=void 0;Kt.GRAPH_API_VERSION="v1.0";Kt.GRAPH_BASE_URL="https://graph.microsoft.com/";Kt.GRAPH_URLS=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var wt=$(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.GraphClientError=void 0;var mR=(Pe(),ve(be)),fR=(function(e){mR.__extends(t,e);function t(o){var n=e.call(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return s(t,"GraphClientError"),t.setGraphClientError=function(o){var n;return o instanceof Error?n=o:(n=new t,n.customError=o),n},t})(Error);Jc.GraphClientError=fR});var Xc=$(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isCustomHost=at.isGraphURL=at.serializeContent=at.urlJoin=at.oDataQueryNames=void 0;var hR=Yf(),gR=wt();at.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var yR=s(function(e){var t=s(function(i){return i.replace(/\/+$/,"")},"removePostSlash"),o=s(function(i){return i.replace(/^\/+/,"")},"removePreSlash"),n=s(function(i,a){return[t(i),o(a)].join("/")},"joiner"),r=Array.prototype.slice.call(e);return r.reduce(n)},"urlJoin");at.urlJoin=yR;var vR=s(function(e){var t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},"serializeContent");at.serializeContent=vR;var xR=s(function(e){return yP(e)},"isGraphURL");at.isGraphURL=xR;var _R=s(function(e,t){return t.forEach(function(o){return bR(o)}),yP(e,t)},"isCustomHost");at.isCustomHost=_R;var yP=s(function(e,t){if(t===void 0&&(t=hR.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var o=e.indexOf(":"),n=e.indexOf("/"),r="";if(n!==-1)return o!==-1&&o<n?(r=e.substring(0,o),t.has(r)):(r=e.substring(0,n),t.has(r))}return!1},"isValidEndpoint"),bR=s(function(e){if(e.indexOf("/")!==-1)throw new gR.GraphClientError("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")},"isCustomHostValid")});var Jt=$(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.MiddlewareControl=void 0;var PR=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var o=0,n=t;o<n.length;o++){var r=n[o],i=r.constructor;this.middlewareOptions.set(i,r)}}return s(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,o){this.middlewareOptions.set(t,o)},e})();Yc.MiddlewareControl=PR});var Po=$(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.cloneRequestWithNewUrl=st.appendRequestHeader=st.setRequestHeader=st.getRequestHeader=st.generateUUID=void 0;var vP=(Pe(),ve(be)),AR=s(function(){for(var e="",t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},"generateUUID");st.generateUUID=AR;var IR=s(function(e,t,o){var n=null;if(typeof Request<"u"&&e instanceof Request)n=e.headers.get(o);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)n=t.headers.get(o);else if(t.headers instanceof Array){for(var r=t.headers,i=0,a=r.length;i<a;i++)if(r[i][0]===o){n=r[i][1];break}}else t.headers[o]!==void 0&&(n=t.headers[o]);return n},"getRequestHeader");st.getRequestHeader=IR;var ER=s(function(e,t,o,n){var r,i;if(typeof Request<"u"&&e instanceof Request)e.headers.set(o,n);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((r={},r[o]=n,r));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(o,n);else if(t.headers instanceof Array){for(var a=0,c=t.headers.length;a<c;a++){var u=t.headers[a];if(u[0]===o){u[1]=n;break}}a===c&&t.headers.push([o,n])}else Object.assign(t.headers,(i={},i[o]=n,i))},"setRequestHeader");st.setRequestHeader=ER;var TR=s(function(e,t,o,n){var r,i;typeof Request<"u"&&e instanceof Request?e.headers.append(o,n):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((r={},r[o]=n,r)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(o,n):t.headers instanceof Array?t.headers.push([o,n]):t.headers===void 0?t.headers=(i={},i[o]=n,i):t.headers[o]===void 0?t.headers[o]=n:t.headers[o]+=", ".concat(n))},"appendRequestHeader");st.appendRequestHeader=TR;var SR=s(function(e,t){return vP.__awaiter(void 0,void 0,void 0,function(){var o,n,r,i,a,c,u,l,d,f,h,p,v;return vP.__generator(this,function(P){switch(P.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return n=P.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:n=P.sent(),P.label=4;case 4:return o=n,r=t.method,i=t.headers,a=t.referrer,c=t.referrerPolicy,u=t.mode,l=t.credentials,d=t.cache,f=t.redirect,h=t.integrity,p=t.keepalive,v=t.signal,[2,new Request(e,{method:r,headers:i,body:o,referrer:a,referrerPolicy:c,mode:u,credentials:l,cache:d,redirect:f,integrity:h,keepalive:p,signal:v})]}})})},"cloneRequestWithNewUrl");st.cloneRequestWithNewUrl=SR});var Qf=$(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.AuthenticationHandlerOptions=void 0;var wR=(function(){function e(t,o){this.authenticationProvider=t,this.authenticationProviderOptions=o}return s(e,"AuthenticationHandlerOptions"),e})();Qc.AuthenticationHandlerOptions=wR});var Io=$(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TelemetryHandlerOptions=Ao.FeatureUsageFlag=void 0;var xP=Jt(),eh;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(eh||(Ao.FeatureUsageFlag=eh={}));var OR=(function(){function e(){this.featureUsage=eh.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,o){var n;t.middlewareControl instanceof xP.MiddlewareControl?n=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new xP.MiddlewareControl,typeof n>"u"&&(n=new e,t.middlewareControl.setMiddlewareOptions(e,n)),n.setFeatureUsage(o)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();Ao.TelemetryHandlerOptions=OR});var tu=$(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.AuthenticationHandler=void 0;var _P=(Pe(),ve(be)),bP=Xc(),kR=Jt(),$R=Po(),RR=Qf(),PP=Io(),CR=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return _P.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c;return _P.__generator(this,function(u){switch(u.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,bP.isGraphURL)(o)||t.customHosts&&(0,bP.isCustomHost)(o,t.customHosts)?(n=void 0,t.middlewareControl instanceof kR.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(RR.AuthenticationHandlerOptions)),r=void 0,i=void 0,n&&(r=n.authenticationProvider,i=n.authenticationProviderOptions),r||(r=this.authenticationProvider),[4,r.getAccessToken(i)]):[3,2];case 1:return a=u.sent(),c="Bearer ".concat(a),(0,$R.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,c),PP.TelemetryHandlerOptions.updateFeatureUsageFlag(t,PP.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],u.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,u.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();eu.AuthenticationHandler=CR});var ou=$(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.HTTPMessageHandler=void 0;var AP=(Pe(),ve(be)),zR=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return AP.__awaiter(this,void 0,void 0,function(){var o;return AP.__generator(this,function(n){switch(n.label){case 0:return o=t,[4,fetch(t.request,t.options)];case 1:return o.response=n.sent(),[2]}})})},e})();ru.HTTPMessageHandler=zR});var Hi=$(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.RetryHandlerOptions=void 0;var DR=(function(){function e(t,o,n){if(t===void 0&&(t=e.DEFAULT_DELAY),o===void 0&&(o=e.DEFAULT_MAX_RETRIES),n===void 0&&(n=e.defaultShouldRetry),t>e.MAX_DELAY&&o>e.MAX_MAX_RETRIES){var r=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t>e.MAX_DELAY){var r=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw r.name="MaxLimitExceeded",r}else if(o>e.MAX_MAX_RETRIES){var r=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw r.name="MaxLimitExceeded",r}else if(t<0&&o<0){var r=new Error("Delay and MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}else if(t<0){var r=new Error("Delay should not be negative");throw r.name="MinExpectationNotMet",r}else if(o<0){var r=new Error("MaxRetries should not be negative");throw r.name="MinExpectationNotMet",r}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(o,e.MAX_MAX_RETRIES),this.shouldRetry=n}return s(e,"RetryHandlerOptions"),e.prototype.getMaxDelay=function(){return e.MAX_DELAY},e.DEFAULT_DELAY=3,e.DEFAULT_MAX_RETRIES=3,e.MAX_DELAY=180,e.MAX_MAX_RETRIES=10,e.defaultShouldRetry=function(){return!0},e})();nu.RetryHandlerOptions=DR});var au=$(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.RetryHandler=void 0;var Eo=(Pe(),ve(be)),th=Zi(),NR=Jt(),IP=Po(),EP=Hi(),TP=Io(),MR=(function(){function e(t){t===void 0&&(t=new EP.RetryHandlerOptions),this.options=t}return s(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,o){var n=typeof t=="string"?o.method:t.method,r=n===th.RequestMethod.PUT||n===th.RequestMethod.PATCH||n===th.RequestMethod.POST;if(r){var i=(0,IP.getRequestHeader)(t,o,"Content-Type")==="application/octet-stream";if(i)return!1}return!0},e.prototype.getDelay=function(t,o,n){var r=s(function(){return Number(Math.random().toFixed(3))},"getRandomness"),i=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=o>=2?this.getExponentialBackOffTime(o)+n+r():n+r(),Math.min(a,this.options.getMaxDelay()+r())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return Eo.__awaiter(this,void 0,void 0,function(){var o;return Eo.__generator(this,function(n){return o=t*1e3,[2,new Promise(function(r){return setTimeout(r,o)})]})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof NR.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof o>"u"&&(o=Object.assign(new EP.RetryHandlerOptions,this.options)),o},e.prototype.executeWithRetry=function(t,o,n){return Eo.__awaiter(this,void 0,void 0,function(){var r;return Eo.__generator(this,function(i){switch(i.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return i.sent(),o<n.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&n.shouldRetry(n.delay,o,t.request,t.options,t.response)?(++o,(0,IP.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,o.toString()),r=this.getDelay(t.response,o,n.delay),[4,this.sleep(r)]):[3,4];case 2:return i.sent(),[4,this.executeWithRetry(t,o,n)];case 3:return[2,i.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return Eo.__awaiter(this,void 0,void 0,function(){var o,n;return Eo.__generator(this,function(r){switch(r.label){case 0:return o=0,n=this.getOptions(t),TP.TelemetryHandlerOptions.updateFeatureUsageFlag(t,TP.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,o,n)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.RETRY_STATUS_CODES=[429,503,504],e.RETRY_ATTEMPT_HEADER="Retry-Attempt",e.RETRY_AFTER_HEADER="Retry-After",e})();iu.RetryHandler=MR});var qi=$(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.RedirectHandlerOptions=void 0;var UR=(function(){function e(t,o){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),o===void 0&&(o=e.defaultShouldRedirect),t>e.MAX_MAX_REDIRECTS){var n=new Error("MaxRedirects should not be more than ".concat(e.MAX_MAX_REDIRECTS));throw n.name="MaxLimitExceeded",n}if(t<0){var n=new Error("MaxRedirects should not be negative");throw n.name="MinExpectationNotMet",n}this.maxRedirects=t,this.shouldRedirect=o}return s(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();su.RedirectHandlerOptions=UR});var uu=$(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.RedirectHandler=void 0;var To=(Pe(),ve(be)),LR=Zi(),FR=Jt(),jR=Po(),rh=qi(),SP=Io(),BR=(function(){function e(t){t===void 0&&(t=new rh.RedirectHandlerOptions),this.options=t}return s(e,"RedirectHandler"),e.prototype.isRedirect=function(t){return e.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.hasLocationHeader=function(t){return t.headers.has(e.LOCATION_HEADER)},e.prototype.getLocationHeader=function(t){return t.headers.get(e.LOCATION_HEADER)},e.prototype.isRelativeURL=function(t){return t.indexOf("://")===-1},e.prototype.shouldDropAuthorizationHeader=function(t,o){var n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,r=n.exec(t),i,a;r!==null&&(i=r[0]);var c=n.exec(o);return c!==null&&(a=c[0]),typeof i<"u"&&typeof a<"u"&&i!==a},e.prototype.updateRequestUrl=function(t,o){return To.__awaiter(this,void 0,void 0,function(){var n,r;return To.__generator(this,function(i){switch(i.label){case 0:return n=o,typeof o.request!="string"?[3,1]:(r=t,[3,3]);case 1:return[4,(0,jR.cloneRequestWithNewUrl)(t,o.request)];case 2:r=i.sent(),i.label=3;case 3:return n.request=r,[2]}})})},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof FR.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(rh.RedirectHandlerOptions)),typeof o>"u"&&(o=Object.assign(new rh.RedirectHandlerOptions,this.options)),o},e.prototype.executeWithRedirect=function(t,o,n){return To.__awaiter(this,void 0,void 0,function(){var r,i;return To.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r=t.response,o<n.maxRedirects&&this.isRedirect(r)&&this.hasLocationHeader(r)&&n.shouldRedirect(r)?(++o,r.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=LR.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return i=this.getLocationHeader(r),!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(r.url,i)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(i,t)];case 3:a.sent(),a.label=4;case 4:return[4,this.executeWithRedirect(t,o,n)];case 5:return a.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return To.__awaiter(this,void 0,void 0,function(){var o,n;return To.__generator(this,function(r){switch(r.label){case 0:return o=0,n=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,SP.TelemetryHandlerOptions.updateFeatureUsageFlag(t,SP.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,o,n)];case 1:return[2,r.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.REDIRECT_STATUS_CODES=[301,302,303,307,308],e.STATUS_CODE_SEE_OTHER=303,e.LOCATION_HEADER="Location",e.AUTHORIZATION_HEADER="Authorization",e.MANUAL_REDIRECT="manual",e})();cu.RedirectHandler=BR});var wP=$(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.PACKAGE_VERSION=void 0;lu.PACKAGE_VERSION="3.0.7"});var mu=$(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.TelemetryHandler=void 0;var OP=(Pe(),ve(be)),kP=Xc(),VR=wP(),ZR=Jt(),pu=Po(),HR=Io(),qR=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return OP.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a;return OP.__generator(this,function(c){switch(c.label){case 0:return o=typeof t.request=="string"?t.request:t.request.url,(0,kP.isGraphURL)(o)||t.customHosts&&(0,kP.isCustomHost)(o,t.customHosts)?(n=(0,pu.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),n||(n=(0,pu.generateUUID)(),(0,pu.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,n)),r="".concat(e.PRODUCT_NAME,"/").concat(VR.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof ZR.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(HR.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,pu.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,r)):(delete t.options.headers[e.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[e.SDK_VERSION_HEADER]),[4,this.nextMiddleware.execute(t)];case 1:return[2,c.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.CLIENT_REQUEST_ID_HEADER="client-request-id",e.SDK_VERSION_HEADER="SdkVersion",e.PRODUCT_NAME="graph-js",e.FEATURE_USAGE_STRING="featureUsage",e})();du.TelemetryHandler=qR});var $P=$(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.MiddlewareFactory=void 0;var GR=tu(),WR=ou(),KR=qi(),JR=Hi(),XR=uu(),YR=au(),QR=mu(),eC=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),tC=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var o=[],n=new GR.AuthenticationHandler(t),r=new YR.RetryHandler(new JR.RetryHandlerOptions),i=new QR.TelemetryHandler,a=new WR.HTTPMessageHandler;if(o.push(n),o.push(r),eC()){var c=new XR.RedirectHandler(new KR.RedirectHandlerOptions);o.push(c)}return o.push(i),o.push(a),o},e})();fu.MiddlewareFactory=tC});var gu=$(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ChaosStrategy=void 0;var RP;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(RP||(hu.ChaosStrategy=RP={}))});var oh=$(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.ChaosHandlerOptions=void 0;var rC=gu(),oC=(function(){function e(t,o,n,r,i,a){if(t===void 0&&(t=rC.ChaosStrategy.RANDOM),o===void 0&&(o="Some error Happened"),this.chaosStrategy=t,this.statusCode=n,this.statusMessage=o,this.chaosPercentage=r!==void 0?r:10,this.responseBody=i,this.headers=a,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return s(e,"ChaosHandlerOptions"),e})();yu.ChaosHandlerOptions=oC});var CP=$(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.httpStatusCode=So.methodStatusCode=void 0;So.methodStatusCode={GET:[429,500,502,503,504],POST:[429,500,502,503,504,507],PUT:[429,500,502,503,504,507],PATCH:[429,500,502,503,504],DELETE:[429,500,502,503,504,507]};So.httpStatusCode={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"}});var NP=$(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.ChaosHandler=void 0;var vu=(Pe(),ve(be)),nC=Jt(),iC=Po(),zP=CP(),nh=oh(),DP=gu(),aC=(function(){function e(t,o){t===void 0&&(t=new nh.ChaosHandlerOptions),this.options=t,this.manualMap=o}return s(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,o,n){var r=t.headers?new Headers(t.headers):new Headers;return r.append("Cache-Control","no-store"),r.append("request-id",o),r.append("client-request-id",o),r.append("x-ms-ags-diagnostic",""),r.append("Date",n),r.append("Strict-Transport-Security",""),t.statusCode===429&&r.append("retry-after","3"),r},e.prototype.createResponseBody=function(t,o,n){if(t.responseBody)return t.responseBody;var r;if(t.statusCode>=400){var i=zP.httpStatusCode[t.statusCode],a=t.statusMessage;r={error:{code:i,message:a,innerError:{"request-id":o,date:n}}}}else r={};return r},e.prototype.createResponse=function(t,o){var n=o.request,r=(0,iC.generateUUID)(),i=new Date,a=this.createResponseHeaders(t,r,i.toString()),c=this.createResponseBody(t,r,i.toString()),u={url:n,status:t.statusCode,statusText:t.statusMessage,headers:a};o.response=new Response(typeof c=="string"?c:JSON.stringify(c),u)},e.prototype.sendRequest=function(t,o){return vu.__awaiter(this,void 0,void 0,function(){return vu.__generator(this,function(n){switch(n.label){case 0:return this.setStatusCode(t,o.request,o.options.method),t.chaosStrategy===DP.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,o),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(o)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var o=zP.methodStatusCode[t];return o[Math.floor(Math.random()*o.length)]},e.prototype.getRelativeURL=function(t){var o=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,n;return o.exec(t)!==null&&(n=o.exec(t)[1]),n},e.prototype.setStatusCode=function(t,o,n){var r=this;if(t.chaosStrategy===DP.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var i=this.getRelativeURL(o);this.manualMap.get(i)!==void 0?this.manualMap.get(i).get(n)!==void 0&&(t.statusCode=this.manualMap.get(i).get(n)):this.manualMap.forEach(function(a,c){var u=new RegExp(c+"$");u.test(i)&&r.manualMap.get(c).get(n)!==void 0&&(t.statusCode=r.manualMap.get(c).get(n))})}}else t.statusCode=this.getRandomStatusCode(n)},e.prototype.getOptions=function(t){var o;return t.middlewareControl instanceof nC.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(nh.ChaosHandlerOptions)),typeof o>"u"&&(o=Object.assign(new nh.ChaosHandlerOptions,this.options)),o},e.prototype.execute=function(t){return vu.__awaiter(this,void 0,void 0,function(){var o;return vu.__generator(this,function(n){switch(n.label){case 0:return o=this.getOptions(t),[4,this.sendRequest(o,t)];case 1:return[2,n.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();xu.ChaosHandler=aC});var Gi=$(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.ResponseType=void 0;var MP;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(MP||(_u.ResponseType=MP={}))});var ah=$(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.GraphResponseHandler=wo.DocumentType=void 0;var bu=(Pe(),ve(be)),Tr=Gi(),ih;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(ih||(wo.DocumentType=ih={}));var Pu;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Pu||(Pu={}));var Au;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Au||(Au={}));var sC=(function(){function e(){}return s(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,o){return typeof DOMParser<"u"?new Promise(function(n,r){t.text().then(function(i){try{var a=new DOMParser,c=a.parseFromString(i,o);n(c)}catch(u){r(u)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,o){return bu.__awaiter(this,void 0,void 0,function(){var n,r,i,a;return bu.__generator(this,function(c){switch(c.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(r=t.headers.get("Content-type"),i=o,i){case Tr.ResponseType.ARRAYBUFFER:return[3,1];case Tr.ResponseType.BLOB:return[3,3];case Tr.ResponseType.DOCUMENT:return[3,5];case Tr.ResponseType.JSON:return[3,7];case Tr.ResponseType.STREAM:return[3,9];case Tr.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return n=c.sent(),[3,24];case 3:return[4,t.blob()];case 4:return n=c.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,ih.TEXT_XML)];case 6:return n=c.sent(),[3,24];case 7:return[4,t.json()];case 8:return n=c.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return n=c.sent(),[3,24];case 11:return[4,t.text()];case 12:return n=c.sent(),[3,24];case 13:return r===null?[3,22]:(a=r.split(";")[0],new RegExp(Au.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return n=c.sent(),[3,21];case 15:return new RegExp(Au.IMAGE).test(a)?(n=t.blob(),[3,21]):[3,16];case 16:return a!==Pu.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return n=c.sent(),[3,21];case 18:return a!==Pu.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return n=c.sent(),[3,21];case 20:n=Promise.resolve(t.body),c.label=21;case 21:return[3,23];case 22:n=Promise.resolve(t.body),c.label=23;case 23:return[3,24];case 24:return[2,n]}})})},e.getResponse=function(t,o,n){return bu.__awaiter(this,void 0,void 0,function(){var r;return bu.__generator(this,function(i){switch(i.label){case 0:return o!==Tr.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,o)];case 2:if(r=i.sent(),t.ok)if(typeof n=="function")n(null,r);else return[2,r];else throw r;i.label=3;case 3:return[2]}})})},e})();wo.GraphResponseHandler=sC});var sh=$(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.Range=void 0;var cC=(function(){function e(t,o){t===void 0&&(t=-1),o===void 0&&(o=-1),this.minValue=t,this.maxValue=o}return s(e,"Range"),e})();Iu.Range=cC});var ch=$(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.UploadResult=void 0;var uC=(function(){function e(t,o){this._location=o,this._responseBody=t}return s(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:s(function(){return this._location},"get"),set:s(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:s(function(){return this._responseBody},"get"),set:s(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,o){return new e(t,o.get("location"))},e})();Eu.UploadResult=uC});var lh=$(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.LargeFileUploadTask=void 0;var Je=(Pe(),ve(be)),uh=wt(),lC=ah(),UP=Gi(),Tu=sh(),pC=ch(),dC=(function(){function e(t,o,n,r){if(r===void 0&&(r={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,o.sliceFile)this.file=o;else throw new uh.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=o,r.rangeSize||(r.rangeSize=this.DEFAULT_FILE_SIZE),this.options=r,this.uploadSession=n,this.nextRange=new Tu.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,o,n,r){return r===void 0&&(r={}),Je.__awaiter(this,void 0,void 0,function(){var i,a;return Je.__generator(this,function(c){switch(c.label){case 0:return[4,t.api(o).headers(r).post(n)];case 1:return i=c.sent(),a={url:i.uploadUrl,expiry:new Date(i.expirationDateTime),isCancelled:!1},[2,a]}})})},e.prototype.parseRange=function(t){var o=t[0];if(typeof o>"u"||o==="")return new Tu.Range;var n=o.split("-"),r=parseInt(n[0],10),i=parseInt(n[1],10);return Number.isNaN(i)&&(i=this.file.size-1),new Tu.Range(r,i)},e.prototype.updateTaskStatus=function(t){this.uploadSession.expiry=new Date(t.expirationDateTime),this.nextRange=this.parseRange(t.nextExpectedRanges)},e.prototype.getNextRange=function(){if(this.nextRange.minValue===-1)return this.nextRange;var t=this.nextRange.minValue,o=t+this.options.rangeSize-1;return o>=this.file.size&&(o=this.file.size-1),new Tu.Range(t,o)},e.prototype.sliceFile=function(t){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(t.minValue,t.maxValue+1);throw new uh.GraphClientError("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")},e.prototype.upload=function(){return Je.__awaiter(this,void 0,void 0,function(){var t,o,n,r,i,a,c;return Je.__generator(this,function(u){switch(u.label){case 0:t=this.options&&this.options.uploadEventHandlers,u.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(o=this.getNextRange(),o.maxValue===-1)throw n=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file"),n.name="Invalid Session",n;return[4,this.file.sliceFile(o)];case 2:return r=u.sent(),[4,this.uploadSliceGetRawResponse(r,o,this.file.size)];case 3:if(i=u.sent(),!i)throw new uh.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,lC.GraphResponseHandler.getResponse(i)];case 4:return a=u.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,o),[2,pC.UploadResult.CreateUploadResult(a,i.headers)]):(c={expirationDateTime:a.expirationDateTime||a.ExpirationDateTime,nextExpectedRanges:a.NextExpectedRanges||a.nextExpectedRanges},this.updateTaskStatus(c),this.reportProgress(t,o),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,o){t&&t.progress&&t.progress(o,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,o,n){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,o,n){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(o.maxValue-o.minValue+1),"Content-Range":"bytes ".concat(o.minValue,"-").concat(o.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).responseType(UP.ResponseType.RAW).put(t)];case 1:return[2,r.sent()]}})})},e.prototype.cancel=function(){return Je.__awaiter(this,void 0,void 0,function(){var t;return Je.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(UP.ResponseType.RAW).delete()];case 1:return t=o.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return Je.__awaiter(this,void 0,void 0,function(){var t;return Je.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=o.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return Je.__awaiter(this,void 0,void 0,function(){return Je.__generator(this,function(t){switch(t.label){case 0:return[4,this.getStatus()];case 1:return t.sent(),[4,this.upload()];case 2:return[2,t.sent()]}})})},e.prototype.getUploadSession=function(){return this.uploadSession},e})();Su.LargeFileUploadTask=dC});var ph=$(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.FileUpload=void 0;var mC=wt(),fC=(function(){function e(t,o,n){if(this.content=t,this.name=o,this.size=n,!t||!o||!n)throw new mC.GraphClientError("Please provide the upload content, name of the file and size of the file")}return s(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();wu.FileUpload=fC});var dh=$(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.getValidRangeSize=void 0;var hC=5*1024*1024,gC=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),yC=s(function(e){e===void 0&&(e=hC);var t=60*1024*1024;return e>t&&(e=t),gC(e)},"getValidRangeSize");Ou.getValidRangeSize=yC});var FP=$(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.OneDriveLargeFileUploadTask=void 0;var Ot=(Pe(),ve(be)),LP=wt(),vC=ph(),xC=lh(),_C=dh(),bC=(function(e){Ot.__extends(t,e);function t(o,n,r,i){return e.call(this,o,n,r,i)||this}return s(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(o,n){return n===void 0&&(n=t.DEFAULT_UPLOAD_PATH),o=o.trim(),n=n.trim(),n===""&&(n="/"),n[0]!=="/"&&(n="/".concat(n)),n[n.length-1]!=="/"&&(n="".concat(n,"/")),"/me/drive/root:".concat(n.split("/").map(function(r){return encodeURIComponent(r)}).join("/")).concat(encodeURIComponent(o),":/createUploadSession")},t.getFileInfo=function(o,n){var r,i;if(typeof Blob<"u"&&o instanceof Blob)r=new File([o],n),i=r.size;else if(typeof File<"u"&&o instanceof File)r=o,i=r.size;else if(typeof Uint8Array<"u"&&o instanceof Uint8Array){var a=o;i=a.byteLength,r=a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}return{content:r,size:i}},t.create=function(o,n,r){return Ot.__awaiter(this,void 0,void 0,function(){var i,a,c;return Ot.__generator(this,function(u){if(!o||!n||!r)throw new LP.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(n,i),c=new vC.FileUpload(a.content,i,a.size),[2,this.createTaskWithFileObject(o,c,r)]})})},t.createTaskWithFileObject=function(o,n,r){return Ot.__awaiter(this,void 0,void 0,function(){var i,a,c,u;return Ot.__generator(this,function(l){switch(l.label){case 0:if(!o||!n||!r)throw new LP.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return i=r.uploadSessionURL?r.uploadSessionURL:t.constructCreateSessionUrl(r.fileName,r.path),a={fileName:r.fileName,fileDescription:r.fileDescription,conflictBehavior:r.conflictBehavior},[4,t.createUploadSession(o,i,a)];case 1:return c=l.sent(),u=(0,_C.getValidRangeSize)(r.rangeSize),[2,new t(o,n,c,{rangeSize:u,uploadEventHandlers:r.uploadEventHandlers})]}})})},t.createUploadSession=function(o,n,r){return Ot.__awaiter(this,void 0,void 0,function(){var i;return Ot.__generator(this,function(a){return i={item:{"@microsoft.graph.conflictBehavior":r?.conflictBehavior||"rename",name:r?.fileName,description:r?.fileDescription}},[2,e.createUploadSession.call(this,o,n,i)]})})},t.prototype.commit=function(o,n){return n===void 0&&(n="rename"),Ot.__awaiter(this,void 0,void 0,function(){var r;return Ot.__generator(this,function(i){switch(i.label){case 0:return r={name:this.file.name,"@microsoft.graph.conflictBehavior":n,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(o).put(r)];case 1:return[2,i.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(xC.LargeFileUploadTask);ku.OneDriveLargeFileUploadTask=bC});var BP=$($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.StreamUpload=void 0;var jP=(Pe(),ve(be)),Wi=wt(),PC=(function(){function e(t,o,n){if(this.content=t,this.name=o,this.size=n,!t||!o||!n)throw new Wi.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return s(e,"StreamUpload"),e.prototype.sliceFile=function(t){return jP.__awaiter(this,void 0,void 0,function(){var o,n,r,i,a,c,u;return jP.__generator(this,function(l){switch(l.label){case 0:if(o=t.maxValue-t.minValue+1,n=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new Wi.GraphClientError("An error occurred while uploading the stream. Please restart the stream upload from the first byte of the file.");if(t.minValue<this.previousSlice.range.maxValue){if(r=this.previousSlice.range.minValue,i=this.previousSlice.range.maxValue,t.minValue===r&&t.maxValue===i)return[2,this.previousSlice.fileSlice];if(t.maxValue===i)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];n.push(this.previousSlice.fileSlice.slice(t.minValue,i+1)),o=t.maxValue-i}}return this.content&&this.content.readable?this.content.readableLength>=o?(n.push(this.content.read(o)),[3,3]):[3,1]:[3,4];case 1:return c=(a=n).push,[4,this.readNBytesFromStream(o)];case 2:c.apply(a,[l.sent()]),l.label=3;case 3:return[3,5];case 4:throw new Wi.GraphClientError("Stream is not readable.");case 5:return u=Buffer.concat(n),this.previousSlice={fileSlice:u,range:t},[2,u]}})})},e.prototype.readNBytesFromStream=function(t){var o=this;return new Promise(function(n,r){var i=[],a=t,c=0;o.content.on("end",function(){if(a>0)return r(new Wi.GraphClientError("Stream ended before reading required range size"))}),o.content.on("readable",function(){for(var u;c<t&&(u=o.content.read(a))!==null;)c+=u.length,i.push(u),a>0&&(a=t-c);if(c===t)return n(Buffer.concat(i));if(!o.content||!o.content.readable)return r(new Wi.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();$u.StreamUpload=PC});var VP=$(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.PageIterator=void 0;var Oo=(Pe(),ve(be)),AC=(function(){function e(t,o,n,r){this.client=t,this.collection=o.value,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],this.callback=n,this.cursor=0,this.complete=!1,this.requestOptions=r}return s(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var o=this.collection[this.cursor];t=this.callback(o),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t,o;return Oo.__generator(this,function(n){switch(n.label){case 0:return t=this.client.api(this.nextLink),this.requestOptions&&(this.requestOptions.headers&&(t=t.headers(this.requestOptions.headers)),this.requestOptions.middlewareOptions&&(t=t.middlewareOptions(this.requestOptions.middlewareOptions)),this.requestOptions.options&&(t=t.options(this.requestOptions.options))),[4,t.get()];case 1:return o=n.sent(),this.collection=o.value,this.cursor=0,this.nextLink=o["@odata.nextLink"],this.deltaLink=o["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Oo.__awaiter(this,void 0,void 0,function(){var t;return Oo.__generator(this,function(o){switch(o.label){case 0:t=this.iterationHelper(),o.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return o.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,o.label=4;case 4:return[3,1];case 5:return this.nextLink===void 0&&this.cursor>=this.collection.length&&(this.complete=!0),[2]}})})},e.prototype.resume=function(){return Oo.__awaiter(this,void 0,void 0,function(){return Oo.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();Ru.PageIterator=AC});var mh=$(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.CustomAuthenticationProvider=void 0;var Cu=(Pe(),ve(be)),ZP=wt(),IC=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return Cu.__awaiter(this,void 0,void 0,function(){var t=this;return Cu.__generator(this,function(o){return[2,new Promise(function(n,r){t.provider(function(i,a){return Cu.__awaiter(t,void 0,void 0,function(){var c,u;return Cu.__generator(this,function(l){switch(l.label){case 0:return a?(n(a),[3,3]):[3,1];case 1:return i||(c="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md",i=new ZP.GraphClientError(c)),[4,ZP.GraphClientError.setGraphClientError(i)];case 2:u=l.sent(),r(u),l.label=3;case 3:return[2]}})})})})]})})},e})();zu.CustomAuthenticationProvider=IC});var fh=$(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.GraphError=void 0;var EC=(Pe(),ve(be)),TC=(function(e){EC.__extends(t,e);function t(o,n,r){o===void 0&&(o=-1);var i=e.call(this,n||r&&r.message)||this;return Object.setPrototypeOf(i,t.prototype),i.statusCode=o,i.code=null,i.requestId=null,i.date=new Date,i.body=null,i.stack=r?r.stack:i.stack,i}return s(t,"GraphError"),t})(Error);Du.GraphError=TC});var qP=$(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.GraphErrorHandler=void 0;var HP=(Pe(),ve(be)),hh=fh(),SC=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,o,n){var r=new hh.GraphError(o,"",t);return t.name!==void 0&&(r.code=t.name),r.body=t.toString(),r.date=new Date,r.headers=n?.headers,r},e.constructErrorFromResponse=function(t,o,n){var r=t.error,i=new hh.GraphError(o,r.message);return i.code=r.code,r.innerError!==void 0&&(i.requestId=r.innerError["request-id"],i.date=new Date(r.innerError.date)),i.body=JSON.stringify(r),i.headers=n?.headers,i},e.getError=function(t,o,n,r){return t===void 0&&(t=null),o===void 0&&(o=-1),HP.__awaiter(this,void 0,void 0,function(){var i;return HP.__generator(this,function(a){if(t&&t.error?i=e.constructErrorFromResponse(t,o,r):t instanceof Error?i=e.constructError(t,o,r):(i=new hh.GraphError(o),i.body=t),typeof n=="function")n(i,null);else return[2,i];return[2]})})},e})();Nu.GraphErrorHandler=SC});var gh=$(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.GraphRequest=void 0;var ge=(Pe(),ve(be)),wC=wt(),OC=qP(),Ki=Xc(),kC=ah(),$C=Jt(),Sr=Zi(),RC=Gi(),CC=(function(){function e(t,o,n){var r=this;this.parsePath=function(i){if(i.indexOf("https://")!==-1){i=i.replace("https://","");var a=i.indexOf("/");a!==-1&&(r.urlComponents.host="https://"+i.substring(0,a),i=i.substring(a+1,i.length));var c=i.indexOf("/");c!==-1&&(r.urlComponents.version=i.substring(0,c),i=i.substring(c+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));var u=i.indexOf("?");if(u===-1)r.urlComponents.path=i;else{r.urlComponents.path=i.substr(0,u);for(var l=i.substring(u+1,i.length).split("&"),d=0,f=l;d<f.length;d++){var h=f[d];r.parseQueryParameter(h)}}},this.httpClient=t,this.config=o,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}return s(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,o,n){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var r=[];n.length>1&&typeof o=="string"?r=Array.prototype.slice.call(n):typeof o=="string"?r.push(o):r=r.concat(o),this.urlComponents.oDataQueryParams[t]+=r.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Ki.urlJoin)([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t},e.prototype.createQueryString=function(){var t=this.urlComponents,o=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var n in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,n)&&o.push(n+"="+t.oDataQueryParams[n]);if(Object.keys(t.otherURLQueryParams).length!==0)for(var n in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,n)&&o.push(n+"="+t.otherURLQueryParams[n]);if(t.otherURLQueryOptions.length!==0)for(var r=0,i=t.otherURLQueryOptions;r<i.length;r++){var a=i[r];o.push(a)}return o.length>0?"?"+o.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var o=t.split("&"),n=0,r=o;n<r.length;n++){var i=r[n];this.parseQueryParamenterString(i)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setURLComponentsQueryParamater(a,t[a]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var o=t.indexOf("="),n=t.substring(0,o),r=t.substring(o+1);this.setURLComponentsQueryParamater(n,r)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,o){if(Ki.oDataQueryNames.indexOf(t)!==-1){var n=this.urlComponents.oDataQueryParams[t],r=n&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=r?n+","+o:o}else this.urlComponents.otherURLQueryParams[t]=o},e.prototype.isValidQueryKeyValuePair=function(t){var o=t.indexOf("=");if(o===-1)return!1;var n=t.indexOf("(");return!(n!==-1&&t.indexOf("(")<o)},e.prototype.updateRequestOptions=function(t){var o=ge.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var n=ge.__assign({},this.config.fetchOptions);Object.assign(t,n),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=ge.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(o,t.headers),Object.assign(o,this._headers),t.headers=o},e.prototype.send=function(t,o,n){var r;return ge.__awaiter(this,void 0,void 0,function(){var i,a,c,u,l,d,f,h;return ge.__generator(this,function(p){switch(p.label){case 0:a=new $C.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(o),c=(r=this.config)===null||r===void 0?void 0:r.customHosts,p.label=1;case 1:return p.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:o,middlewareControl:a,customHosts:c})];case 2:return u=p.sent(),i=u.response,[4,kC.GraphResponseHandler.getResponse(i,this._responseType,n)];case 3:return l=p.sent(),[2,l];case 4:if(d=p.sent(),d instanceof wC.GraphClientError)throw d;return f=void 0,i&&(f=i.status),[4,OC.GraphErrorHandler.getError(d,f,n,i)];case 5:throw h=p.sent(),h;case 6:return[2]}})})},e.prototype.setHeaderContentType=function(){if(!this._headers){this.header("Content-Type","application/json");return}for(var t=Object.keys(this._headers),o=0,n=t;o<n.length;o++){var r=n[o];if(r.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,o){return this._headers[t]=o,this},e.prototype.headers=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._headers[o]=t[o]);return this},e.prototype.option=function(t,o){return this._options[t]=o,this},e.prototype.options=function(t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._options[o]=t[o]);return this},e.prototype.middlewareOptions=function(t){return this._middlewareOptions=t,this},e.prototype.version=function(t){return this.urlComponents.version=t,this},e.prototype.responseType=function(t){return this._responseType=t,this},e.prototype.select=function(t){return this.addCsvQueryParameter("$select",t,arguments),this},e.prototype.expand=function(t){return this.addCsvQueryParameter("$expand",t,arguments),this},e.prototype.orderby=function(t){return this.addCsvQueryParameter("$orderby",t,arguments),this},e.prototype.filter=function(t){return this.urlComponents.oDataQueryParams.$filter=t,this},e.prototype.search=function(t){return this.urlComponents.oDataQueryParams.$search=t,this},e.prototype.top=function(t){return this.urlComponents.oDataQueryParams.$top=t,this},e.prototype.skip=function(t){return this.urlComponents.oDataQueryParams.$skip=t,this},e.prototype.skipToken=function(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this},e.prototype.count=function(t){return t===void 0&&(t=!0),this.urlComponents.oDataQueryParams.$count=t.toString(),this},e.prototype.query=function(t){return this.parseQueryParameter(t)},e.prototype.get=function(t){return ge.__awaiter(this,void 0,void 0,function(){var o,n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),n={method:Sr.RequestMethod.GET},[4,this.send(o,n,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r,i;return ge.__generator(this,function(a){switch(a.label){case 0:return n=this.buildFullUrl(),r={method:Sr.RequestMethod.POST,body:(0,Ki.serializeContent)(t)},i=t&&t.constructor&&t.constructor.name,i==="FormData"?r.headers={}:(this.setHeaderContentType(),r.headers=this._headers),[4,this.send(n,r,o)];case 1:return[2,a.sent()]}})})},e.prototype.create=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){return ge.__generator(this,function(n){switch(n.label){case 0:return[4,this.post(t,o)];case 1:return[2,n.sent()]}})})},e.prototype.put=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),r={method:Sr.RequestMethod.PUT,body:(0,Ki.serializeContent)(t)},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),r={method:Sr.RequestMethod.PATCH,body:(0,Ki.serializeContent)(t)},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){return ge.__generator(this,function(n){switch(n.label){case 0:return[4,this.patch(t,o)];case 1:return[2,n.sent()]}})})},e.prototype.delete=function(t){return ge.__awaiter(this,void 0,void 0,function(){var o,n;return ge.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),n={method:Sr.RequestMethod.DELETE},[4,this.send(o,n,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return ge.__awaiter(this,void 0,void 0,function(){return ge.__generator(this,function(o){switch(o.label){case 0:return[4,this.delete(t)];case 1:return[2,o.sent()]}})})},e.prototype.getStream=function(t){return ge.__awaiter(this,void 0,void 0,function(){var o,n;return ge.__generator(this,function(r){switch(r.label){case 0:return o=this.buildFullUrl(),n={method:Sr.RequestMethod.GET},this.responseType(RC.ResponseType.STREAM),[4,this.send(o,n,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,o){return ge.__awaiter(this,void 0,void 0,function(){var n,r;return ge.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),r={method:Sr.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(n,r,o)];case 1:return[2,i.sent()]}})})},e})();Mu.GraphRequest=CC});var yh=$(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.HTTPClient=void 0;var GP=(Pe(),ve(be)),zC=(function(){function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(!t||!t.length){var n=new Error;throw n.name="InvalidMiddlewareChain",n.message="Please provide a default middleware chain or custom middleware chain",n}this.setMiddleware.apply(this,t)}return s(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(o,n){n<t.length-1&&o.setNext(t[n+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return GP.__awaiter(this,void 0,void 0,function(){var o;return GP.__generator(this,function(n){switch(n.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw o=new Error,o.name="InvalidRequestOptions",o.message="Unable to execute the middleware, Please provide valid options for a request",o;return[4,this.middleware.execute(t)];case 1:return n.sent(),[2,t]}})})},e})();Uu.HTTPClient=zC});var KP=$(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.HTTPClientFactory=void 0;var DC=(Pe(),ve(be)),WP=yh(),NC=tu(),MC=ou(),UC=qi(),LC=Hi(),FC=uu(),jC=au(),BC=mu(),VC=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),ZC=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var o=new NC.AuthenticationHandler(t),n=new jC.RetryHandler(new LC.RetryHandlerOptions),r=new BC.TelemetryHandler,i=new MC.HTTPMessageHandler;if(o.setNext(n),VC()){var a=new FC.RedirectHandler(new UC.RedirectHandlerOptions);n.setNext(a),a.setNext(r)}else n.setNext(r);return r.setNext(i),e.createWithMiddleware(o)},e.createWithMiddleware=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return new(WP.HTTPClient.bind.apply(WP.HTTPClient,DC.__spreadArray([void 0],t,!1)))},e})();Lu.HTTPClientFactory=ZC});var JP=$(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.validatePolyFilling=void 0;var HC=s(function(){if(typeof Promise>"u"&&typeof fetch>"u"){var e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){var e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){var e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0},"validatePolyFilling");Fu.validatePolyFilling=HC});var QP=$(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.Client=void 0;var qC=(Pe(),ve(be)),XP=Yf(),GC=mh(),WC=gh(),YP=yh(),KC=KP(),JC=JP(),XC=(function(){function e(t){this.config={baseUrl:XP.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:XP.GRAPH_API_VERSION},(0,JC.validatePolyFilling)();for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this.config[o]=t[o]);var n;if(t.authProvider!==void 0&&t.middleware!==void 0){var r=new Error;throw r.name="AmbiguityInInitialization",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",r}else if(t.authProvider!==void 0)n=KC.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)n=new(YP.HTTPClient.bind.apply(YP.HTTPClient,qC.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",r}this.httpClient=n}return s(e,"Client"),e.init=function(t){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=n==="authProvider"?new GC.CustomAuthenticationProvider(t[n]):t[n]);return e.initWithMiddleware(o)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new WC.GraphRequest(this.httpClient,this.config,t)},e})();ju.Client=XC});var Bu=$(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.ResponseType=F.GraphRequest=F.GraphClientError=F.GraphError=F.CustomAuthenticationProvider=F.Client=F.PageIterator=F.Range=F.UploadResult=F.FileUpload=F.StreamUpload=F.getValidRangeSize=F.OneDriveLargeFileUploadTask=F.LargeFileUploadTask=F.ChaosHandler=F.ChaosStrategy=F.ChaosHandlerOptions=F.TelemetryHandlerOptions=F.FeatureUsageFlag=F.RedirectHandlerOptions=F.RetryHandlerOptions=F.AuthenticationHandlerOptions=F.MiddlewareFactory=F.TelemetryHandler=F.RedirectHandler=F.RetryHandler=F.HTTPMessageHandler=F.AuthenticationHandler=F.BatchResponseContent=F.BatchRequestContent=void 0;var YC=hP();Object.defineProperty(F,"BatchRequestContent",{enumerable:!0,get:s(function(){return YC.BatchRequestContent},"get")});var QC=gP();Object.defineProperty(F,"BatchResponseContent",{enumerable:!0,get:s(function(){return QC.BatchResponseContent},"get")});var ez=tu();Object.defineProperty(F,"AuthenticationHandler",{enumerable:!0,get:s(function(){return ez.AuthenticationHandler},"get")});var tz=ou();Object.defineProperty(F,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return tz.HTTPMessageHandler},"get")});var rz=au();Object.defineProperty(F,"RetryHandler",{enumerable:!0,get:s(function(){return rz.RetryHandler},"get")});var oz=uu();Object.defineProperty(F,"RedirectHandler",{enumerable:!0,get:s(function(){return oz.RedirectHandler},"get")});var nz=mu();Object.defineProperty(F,"TelemetryHandler",{enumerable:!0,get:s(function(){return nz.TelemetryHandler},"get")});var iz=$P();Object.defineProperty(F,"MiddlewareFactory",{enumerable:!0,get:s(function(){return iz.MiddlewareFactory},"get")});var az=Qf();Object.defineProperty(F,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return az.AuthenticationHandlerOptions},"get")});var sz=Hi();Object.defineProperty(F,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return sz.RetryHandlerOptions},"get")});var cz=qi();Object.defineProperty(F,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return cz.RedirectHandlerOptions},"get")});var eA=Io();Object.defineProperty(F,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return eA.FeatureUsageFlag},"get")});Object.defineProperty(F,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return eA.TelemetryHandlerOptions},"get")});var uz=oh();Object.defineProperty(F,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return uz.ChaosHandlerOptions},"get")});var lz=gu();Object.defineProperty(F,"ChaosStrategy",{enumerable:!0,get:s(function(){return lz.ChaosStrategy},"get")});var pz=NP();Object.defineProperty(F,"ChaosHandler",{enumerable:!0,get:s(function(){return pz.ChaosHandler},"get")});var dz=lh();Object.defineProperty(F,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return dz.LargeFileUploadTask},"get")});var mz=FP();Object.defineProperty(F,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return mz.OneDriveLargeFileUploadTask},"get")});var fz=dh();Object.defineProperty(F,"getValidRangeSize",{enumerable:!0,get:s(function(){return fz.getValidRangeSize},"get")});var hz=BP();Object.defineProperty(F,"StreamUpload",{enumerable:!0,get:s(function(){return hz.StreamUpload},"get")});var gz=ph();Object.defineProperty(F,"FileUpload",{enumerable:!0,get:s(function(){return gz.FileUpload},"get")});var yz=ch();Object.defineProperty(F,"UploadResult",{enumerable:!0,get:s(function(){return yz.UploadResult},"get")});var vz=sh();Object.defineProperty(F,"Range",{enumerable:!0,get:s(function(){return vz.Range},"get")});var xz=VP();Object.defineProperty(F,"PageIterator",{enumerable:!0,get:s(function(){return xz.PageIterator},"get")});var _z=QP();Object.defineProperty(F,"Client",{enumerable:!0,get:s(function(){return _z.Client},"get")});var bz=mh();Object.defineProperty(F,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return bz.CustomAuthenticationProvider},"get")});var Pz=fh();Object.defineProperty(F,"GraphError",{enumerable:!0,get:s(function(){return Pz.GraphError},"get")});var Az=wt();Object.defineProperty(F,"GraphClientError",{enumerable:!0,get:s(function(){return Az.GraphClientError},"get")});var Iz=gh();Object.defineProperty(F,"GraphRequest",{enumerable:!0,get:s(function(){return Iz.GraphRequest},"get")});var Ez=Gi();Object.defineProperty(F,"ResponseType",{enumerable:!0,get:s(function(){return Ez.ResponseType},"get")})});var zo=$((xh,_h)=>{(function(e,t){typeof xh=="object"&&typeof _h<"u"?_h.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(xh,(function(){"use strict";var e=1e3,t=6e4,o=36e5,n="millisecond",r="second",i="minute",a="hour",c="day",u="week",l="month",d="quarter",f="year",h="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s(function(W){var L=["th","st","nd","rd"],M=W%100;return"["+W+(L[(M-20)%10]||L[M]||L[0])+"]"},"ordinal")},E=s(function(W,L,M){var B=String(W);return!B||B.length>=L?W:""+Array(L+1-B.length).join(M)+W},"m"),w={s:E,z:s(function(W){var L=-W.utcOffset(),M=Math.abs(L),B=Math.floor(M/60),U=M%60;return(L<=0?"+":"-")+E(B,2,"0")+":"+E(U,2,"0")},"z"),m:s(function W(L,M){if(L.date()<M.date())return-W(M,L);var B=12*(M.year()-L.year())+(M.month()-L.month()),U=L.clone().add(B,l),te=M-U<0,re=L.clone().add(B+(te?-1:1),l);return+(-(B+(M-U)/(te?U-re:re-U))||0)},"t"),a:s(function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},"a"),p:s(function(W){return{M:l,y:f,w:u,d:c,D:h,h:a,m:i,s:r,ms:n,Q:d}[W]||String(W||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(W){return W===void 0},"u")},j="en",oe={};oe[j]=A;var pe=s(function(W){return W instanceof Be},"p"),Ne=s(function W(L,M,B){var U;if(!L)return j;if(typeof L=="string"){var te=L.toLowerCase();oe[te]&&(U=te),M&&(oe[te]=M,U=te);var re=L.split("-");if(!U&&re.length>1)return W(re[0])}else{var fe=L.name;oe[fe]=L,U=fe}return!B&&U&&(j=U),U||!B&&j},"t"),Ae=s(function(W,L){if(pe(W))return W.clone();var M=typeof L=="object"?L:{};return M.date=W,M.args=arguments,new Be(M)},"w"),ne=w;ne.l=Ne,ne.i=pe,ne.w=function(W,L){return Ae(W,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var Be=(function(){function W(M){this.$L=Ne(M.locale,null,!0),this.parse(M)}s(W,"M");var L=W.prototype;return L.parse=function(M){this.$d=(function(B){var U=B.date,te=B.utc;if(U===null)return new Date(NaN);if(ne.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var re=U.match(v);if(re){var fe=re[2]-1||0,Ee=(re[7]||"0").substring(0,3);return te?new Date(Date.UTC(re[1],fe,re[3]||1,re[4]||0,re[5]||0,re[6]||0,Ee)):new Date(re[1],fe,re[3]||1,re[4]||0,re[5]||0,re[6]||0,Ee)}}return new Date(U)})(M),this.$x=M.x||{},this.init()},L.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},L.$utils=function(){return ne},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(M,B){var U=Ae(M);return this.startOf(B)<=U&&U<=this.endOf(B)},L.isAfter=function(M,B){return Ae(M)<this.startOf(B)},L.isBefore=function(M,B){return this.endOf(B)<Ae(M)},L.$g=function(M,B,U){return ne.u(M)?this[B]:this.set(U,M)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(M,B){var U=this,te=!!ne.u(B)||B,re=ne.p(M),fe=s(function(tr,Ve){var kt=ne.w(U.$u?Date.UTC(U.$y,Ve,tr):new Date(U.$y,Ve,tr),U);return te?kt:kt.endOf(c)},"l"),Ee=s(function(tr,Ve){return ne.w(U.toDate()[tr].apply(U.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(Ve)),U)},"$"),Oe=this.$W,Me=this.$M,rt=this.$D,Or="set"+(this.$u?"UTC":"");switch(re){case f:return te?fe(1,0):fe(31,11);case l:return te?fe(1,Me):fe(0,Me+1);case u:var er=this.$locale().weekStart||0,No=(Oe<er?Oe+7:Oe)-er;return fe(te?rt-No:rt+(6-No),Me);case c:case h:return Ee(Or+"Hours",0);case a:return Ee(Or+"Minutes",1);case i:return Ee(Or+"Seconds",2);case r:return Ee(Or+"Milliseconds",3);default:return this.clone()}},L.endOf=function(M){return this.startOf(M,!1)},L.$set=function(M,B){var U,te=ne.p(M),re="set"+(this.$u?"UTC":""),fe=(U={},U[c]=re+"Date",U[h]=re+"Date",U[l]=re+"Month",U[f]=re+"FullYear",U[a]=re+"Hours",U[i]=re+"Minutes",U[r]=re+"Seconds",U[n]=re+"Milliseconds",U)[te],Ee=te===c?this.$D+(B-this.$W):B;if(te===l||te===f){var Oe=this.clone().set(h,1);Oe.$d[fe](Ee),Oe.init(),this.$d=Oe.set(h,Math.min(this.$D,Oe.daysInMonth())).$d}else fe&&this.$d[fe](Ee);return this.init(),this},L.set=function(M,B){return this.clone().$set(M,B)},L.get=function(M){return this[ne.p(M)]()},L.add=function(M,B){var U,te=this;M=Number(M);var re=ne.p(B),fe=s(function(Me){var rt=Ae(te);return ne.w(rt.date(rt.date()+Math.round(Me*M)),te)},"y");if(re===l)return this.set(l,this.$M+M);if(re===f)return this.set(f,this.$y+M);if(re===c)return fe(1);if(re===u)return fe(7);var Ee=(U={},U[i]=t,U[a]=o,U[r]=e,U)[re]||1,Oe=this.$d.getTime()+M*Ee;return ne.w(Oe,this)},L.subtract=function(M,B){return this.add(-1*M,B)},L.format=function(M){var B=this,U=this.$locale();if(!this.isValid())return U.invalidDate||p;var te=M||"YYYY-MM-DDTHH:mm:ssZ",re=ne.z(this),fe=this.$H,Ee=this.$m,Oe=this.$M,Me=U.weekdays,rt=U.months,Or=U.meridiem,er=s(function(Ve,kt,Mo,ta){return Ve&&(Ve[kt]||Ve(B,te))||Mo[kt].slice(0,ta)},"h"),No=s(function(Ve){return ne.s(fe%12||12,Ve,"0")},"d"),tr=Or||function(Ve,kt,Mo){var ta=Ve<12?"AM":"PM";return Mo?ta.toLowerCase():ta};return te.replace(P,(function(Ve,kt){return kt||(function(Mo){switch(Mo){case"YY":return String(B.$y).slice(-2);case"YYYY":return ne.s(B.$y,4,"0");case"M":return Oe+1;case"MM":return ne.s(Oe+1,2,"0");case"MMM":return er(U.monthsShort,Oe,rt,3);case"MMMM":return er(rt,Oe);case"D":return B.$D;case"DD":return ne.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return er(U.weekdaysMin,B.$W,Me,2);case"ddd":return er(U.weekdaysShort,B.$W,Me,3);case"dddd":return Me[B.$W];case"H":return String(fe);case"HH":return ne.s(fe,2,"0");case"h":return No(1);case"hh":return No(2);case"a":return tr(fe,Ee,!0);case"A":return tr(fe,Ee,!1);case"m":return String(Ee);case"mm":return ne.s(Ee,2,"0");case"s":return String(B.$s);case"ss":return ne.s(B.$s,2,"0");case"SSS":return ne.s(B.$ms,3,"0");case"Z":return re}return null})(Ve)||re.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(M,B,U){var te,re=this,fe=ne.p(B),Ee=Ae(M),Oe=(Ee.utcOffset()-this.utcOffset())*t,Me=this-Ee,rt=s(function(){return ne.m(re,Ee)},"D");switch(fe){case f:te=rt()/12;break;case l:te=rt();break;case d:te=rt()/3;break;case u:te=(Me-Oe)/6048e5;break;case c:te=(Me-Oe)/864e5;break;case a:te=Me/o;break;case i:te=Me/t;break;case r:te=Me/e;break;default:te=Me}return U?te:ne.a(te)},L.daysInMonth=function(){return this.endOf(l).$D},L.$locale=function(){return oe[this.$L]},L.locale=function(M,B){if(!M)return this.$L;var U=this.clone(),te=Ne(M,B,!0);return te&&(U.$L=te),U},L.clone=function(){return ne.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},W})(),ea=Be.prototype;return Ae.prototype=ea,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",c],["$M",l],["$y",f],["$D",h]].forEach((function(W){ea[W[1]]=function(L){return this.$g(L,W[0],W[1])}})),Ae.extend=function(W,L){return W.$i||(W(L,Be,Ae),W.$i=!0),Ae},Ae.locale=Ne,Ae.isDayjs=pe,Ae.unix=function(W){return Ae(1e3*W)},Ae.en=oe[j],Ae.Ls=oe,Ae.p={},Ae}))});var Qz={};Xe(Qz,{microsoftOutlook:()=>Yz});module.exports=ve(Qz);var Qe={};Xe(Qe,{$ZodAny:()=>on,$ZodArray:()=>cn,$ZodAsyncError:()=>ct,$ZodBase64:()=>Fa,$ZodBase64URL:()=>ja,$ZodBigInt:()=>Vr,$ZodBigIntFormat:()=>Ha,$ZodBoolean:()=>ar,$ZodCIDRv4:()=>Ua,$ZodCIDRv6:()=>La,$ZodCUID:()=>ka,$ZodCUID2:()=>$a,$ZodCatch:()=>ss,$ZodCheck:()=>de,$ZodCheckBigIntFormat:()=>zl,$ZodCheckEndsWith:()=>ql,$ZodCheckGreaterThan:()=>xa,$ZodCheckIncludes:()=>Zl,$ZodCheckLengthEquals:()=>Fl,$ZodCheckLessThan:()=>va,$ZodCheckLowerCase:()=>Bl,$ZodCheckMaxLength:()=>Ul,$ZodCheckMaxSize:()=>Dl,$ZodCheckMimeType:()=>Wl,$ZodCheckMinLength:()=>Ll,$ZodCheckMinSize:()=>Nl,$ZodCheckMultipleOf:()=>Rl,$ZodCheckNumberFormat:()=>Cl,$ZodCheckOverwrite:()=>Kl,$ZodCheckProperty:()=>Gl,$ZodCheckRegex:()=>jl,$ZodCheckSizeEquals:()=>Ml,$ZodCheckStartsWith:()=>Hl,$ZodCheckStringFormat:()=>jr,$ZodCheckUpperCase:()=>Vl,$ZodCodec:()=>Hr,$ZodCustom:()=>yn,$ZodCustomStringFormat:()=>Za,$ZodDate:()=>sn,$ZodDefault:()=>os,$ZodDiscriminatedUnion:()=>un,$ZodE164:()=>Ba,$ZodEmail:()=>Sa,$ZodEmoji:()=>wa,$ZodEncodeError:()=>$t,$ZodEnum:()=>dn,$ZodError:()=>Go,$ZodExactOptional:()=>rs,$ZodFile:()=>ts,$ZodFunction:()=>ps,$ZodGUID:()=>Ea,$ZodIPv4:()=>Da,$ZodIPv6:()=>Na,$ZodISODate:()=>Qo,$ZodISODateTime:()=>Yo,$ZodISODuration:()=>tn,$ZodISOTime:()=>en,$ZodIntersection:()=>Ya,$ZodJWT:()=>Va,$ZodKSUID:()=>za,$ZodLazy:()=>ms,$ZodLiteral:()=>mn,$ZodMAC:()=>Ma,$ZodMap:()=>Qa,$ZodNaN:()=>cs,$ZodNanoID:()=>Oa,$ZodNever:()=>Ka,$ZodNonOptional:()=>is,$ZodNull:()=>Wa,$ZodNullable:()=>hn,$ZodNumber:()=>Br,$ZodNumberFormat:()=>rn,$ZodObject:()=>Ja,$ZodObjectJIT:()=>Ql,$ZodOptional:()=>Zr,$ZodPipe:()=>gn,$ZodPrefault:()=>ns,$ZodPromise:()=>ds,$ZodReadonly:()=>us,$ZodRealError:()=>qe,$ZodRecord:()=>pn,$ZodRegistry:()=>fs,$ZodSet:()=>es,$ZodString:()=>xt,$ZodStringFormat:()=>ue,$ZodSuccess:()=>as,$ZodSymbol:()=>qa,$ZodTemplateLiteral:()=>ls,$ZodTransform:()=>fn,$ZodTuple:()=>ln,$ZodType:()=>q,$ZodULID:()=>Ra,$ZodURL:()=>Xo,$ZodUUID:()=>Ta,$ZodUndefined:()=>Ga,$ZodUnion:()=>sr,$ZodUnknown:()=>nn,$ZodVoid:()=>an,$ZodXID:()=>Ca,$ZodXor:()=>Xa,$brand:()=>Fo,$constructor:()=>y,$input:()=>gs,$output:()=>hs,Doc:()=>Jo,JSONSchema:()=>vg,JSONSchemaGenerator:()=>Fs,NEVER:()=>ra,TimePrecision:()=>vs,_any:()=>ti,_array:()=>qp,_base64:()=>jn,_base64url:()=>Bn,_bigint:()=>As,_boolean:()=>Yn,_catch:()=>AS,_check:()=>yg,_cidrv4:()=>Ln,_cidrv6:()=>Fn,_coercedBigint:()=>ei,_coercedBoolean:()=>Qn,_coercedDate:()=>ni,_coercedNumber:()=>Jn,_coercedString:()=>In,_cuid:()=>Rn,_cuid2:()=>Cn,_custom:()=>li,_date:()=>ks,_decode:()=>ua,_decodeAsync:()=>pa,_default:()=>_S,_discriminatedUnion:()=>cS,_e164:()=>Vn,_email:()=>En,_emoji:()=>kn,_encode:()=>ca,_encodeAsync:()=>la,_endsWith:()=>mr,_enum:()=>fS,_file:()=>Rs,_float32:()=>xs,_float64:()=>_s,_gt:()=>lt,_gte:()=>we,_guid:()=>Wr,_includes:()=>pr,_int:()=>Xn,_int32:()=>bs,_int64:()=>Is,_intersection:()=>uS,_ipv4:()=>Mn,_ipv6:()=>Un,_isoDate:()=>qn,_isoDateTime:()=>Hn,_isoDuration:()=>Wn,_isoTime:()=>Gn,_jwt:()=>Zn,_ksuid:()=>Nn,_lazy:()=>SS,_length:()=>Ut,_literal:()=>gS,_lowercase:()=>ur,_lt:()=>ut,_lte:()=>Le,_mac:()=>ys,_map:()=>dS,_max:()=>Le,_maxLength:()=>Mt,_maxSize:()=>bt,_mime:()=>fr,_min:()=>we,_minLength:()=>Te,_minSize:()=>pt,_multipleOf:()=>_t,_nan:()=>$s,_nanoid:()=>$n,_nativeEnum:()=>hS,_negative:()=>ai,_never:()=>Os,_nonnegative:()=>ci,_nonoptional:()=>bS,_nonpositive:()=>si,_normalize:()=>hr,_null:()=>ws,_nullable:()=>xS,_number:()=>Kn,_optional:()=>vS,_overwrite:()=>nt,_parse:()=>Dr,_parseAsync:()=>Nr,_pipe:()=>IS,_positive:()=>ii,_promise:()=>wS,_property:()=>ui,_readonly:()=>ES,_record:()=>pS,_refine:()=>pi,_regex:()=>ze,_safeDecode:()=>ma,_safeDecodeAsync:()=>ha,_safeEncode:()=>da,_safeEncodeAsync:()=>fa,_safeParse:()=>Mr,_safeParseAsync:()=>Lr,_set:()=>mS,_size:()=>Nt,_slugify:()=>Kr,_startsWith:()=>dr,_string:()=>An,_stringFormat:()=>xr,_stringbool:()=>Ns,_success:()=>PS,_superRefine:()=>Cs,_symbol:()=>Ts,_templateLiteral:()=>TS,_toLowerCase:()=>yr,_toUpperCase:()=>vr,_transform:()=>yS,_trim:()=>gr,_tuple:()=>lS,_uint32:()=>Ps,_uint64:()=>Es,_ulid:()=>zn,_undefined:()=>Ss,_union:()=>aS,_unknown:()=>ri,_uppercase:()=>lr,_url:()=>cr,_uuid:()=>Tn,_uuidv4:()=>Sn,_uuidv6:()=>wn,_uuidv7:()=>On,_void:()=>oi,_xid:()=>Dn,_xor:()=>sS,clone:()=>ke,config:()=>xe,createStandardJSONSchemaMethod:()=>Jr,createToJSONSchemaMethod:()=>Gp,decode:()=>Uh,decodeAsync:()=>Fh,describe:()=>zs,encode:()=>Mh,encodeAsync:()=>Lh,extractDefs:()=>Ft,finalize:()=>jt,flattenError:()=>Cr,formatError:()=>zr,globalConfig:()=>Lo,globalRegistry:()=>$e,initializeContext:()=>Lt,isValidBase64:()=>Yl,isValidBase64URL:()=>cg,isValidJWT:()=>ug,locales:()=>Gr,meta:()=>Ds,parse:()=>or,parseAsync:()=>nr,prettifyError:()=>sa,process:()=>le,regexes:()=>Ge,registry:()=>Pn,safeDecode:()=>Bh,safeDecodeAsync:()=>Zh,safeEncode:()=>jh,safeEncodeAsync:()=>Vh,safeParse:()=>Ur,safeParseAsync:()=>Fr,toDotPath:()=>Nh,toJSONSchema:()=>di,treeifyError:()=>aa,util:()=>C,version:()=>Jl});var ra=Object.freeze({status:"aborted"});function y(e,t,o){function n(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,u);let l=a.prototype,d=Object.keys(l);for(let f=0;f<d.length;f++){let h=d[f];h in c||(c[h]=l[h].bind(c))}}s(n,"init");let r=o?.Parent??Object;class i extends r{static{s(this,"Definition")}}Object.defineProperty(i,"name",{value:e});function a(c){var u;let l=o?.Parent?new i:this;n(l,c),(u=l._zod).deferred??(u.deferred=[]);for(let d of l._zod.deferred)d();return l}return s(a,"_"),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:s(c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}s(y,"$constructor");var Fo=Symbol("zod_brand"),ct=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$t=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Lo={};function xe(e){return e&&Object.assign(Lo,e),Lo}s(xe,"config");var C={};Xe(C,{BIGINT_FORMAT_RANGES:()=>ol,Class:()=>Ju,NUMBER_FORMAT_RANGES:()=>rl,aborted:()=>Dt,allowsEval:()=>Qu,assert:()=>PE,assertEqual:()=>vE,assertIs:()=>_E,assertNever:()=>bE,assertNotEqual:()=>xE,assignProp:()=>Ct,base64ToUint8Array:()=>Ch,base64urlToUint8Array:()=>CE,cached:()=>$r,captureStackTrace:()=>na,cleanEnum:()=>RE,cleanRegex:()=>Vo,clone:()=>ke,cloneDef:()=>IE,createTransparentProxy:()=>kE,defineLazy:()=>Y,esc:()=>oa,escapeRegex:()=>ot,extend:()=>Oh,finalizeIssue:()=>He,floatSafeRemainder:()=>Xu,getElementAtPath:()=>EE,getEnumValues:()=>Bo,getLengthableOrigin:()=>qo,getParsedType:()=>OE,getSizableOrigin:()=>Ho,hexToUint8Array:()=>DE,isObject:()=>rr,isPlainObject:()=>zt,issue:()=>Rr,joinValues:()=>T,jsonStringifyReplacer:()=>kr,merge:()=>$E,mergeDefs:()=>vt,normalizeParams:()=>k,nullish:()=>Rt,numKeys:()=>wE,objectClone:()=>AE,omit:()=>wh,optionalKeys:()=>tl,parsedType:()=>z,partial:()=>$h,pick:()=>Sh,prefixIssues:()=>Ye,primitiveTypes:()=>el,promiseAllObject:()=>TE,propertyKeyTypes:()=>Zo,randomString:()=>SE,required:()=>Rh,safeExtend:()=>kh,shallowClone:()=>ia,slugify:()=>Yu,stringifyPrimitive:()=>R,uint8ArrayToBase64:()=>zh,uint8ArrayToBase64url:()=>zE,uint8ArrayToHex:()=>NE,unwrapMessage:()=>jo});function vE(e){return e}s(vE,"assertEqual");function xE(e){return e}s(xE,"assertNotEqual");function _E(e){}s(_E,"assertIs");function bE(e){throw new Error("Unexpected value in exhaustive check")}s(bE,"assertNever");function PE(e){}s(PE,"assert");function Bo(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}s(Bo,"getEnumValues");function T(e,t="|"){return e.map(o=>R(o)).join(t)}s(T,"joinValues");function kr(e,t){return typeof t=="bigint"?t.toString():t}s(kr,"jsonStringifyReplacer");function $r(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}s($r,"cached");function Rt(e){return e==null}s(Rt,"nullish");function Vo(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}s(Vo,"cleanRegex");function Xu(e,t){let o=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){let u=n.match(/\d?e-(\d?)/);u?.[1]&&(r=Number.parseInt(u[1]))}let i=o>r?o:r,a=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return a%c/10**i}s(Xu,"floatSafeRemainder");var Th=Symbol("evaluating");function Y(e,t,o){let n;Object.defineProperty(e,t,{get(){if(n!==Th)return n===void 0&&(n=Th,n=o()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(Y,"defineLazy");function AE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(AE,"objectClone");function Ct(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}s(Ct,"assignProp");function vt(...e){let t={};for(let o of e){let n=Object.getOwnPropertyDescriptors(o);Object.assign(t,n)}return Object.defineProperties({},t)}s(vt,"mergeDefs");function IE(e){return vt(e._zod.def)}s(IE,"cloneDef");function EE(e,t){return t?t.reduce((o,n)=>o?.[n],e):e}s(EE,"getElementAtPath");function TE(e){let t=Object.keys(e),o=t.map(n=>e[n]);return Promise.all(o).then(n=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=n[i];return r})}s(TE,"promiseAllObject");function SE(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let n=0;n<e;n++)o+=t[Math.floor(Math.random()*t.length)];return o}s(SE,"randomString");function oa(e){return JSON.stringify(e)}s(oa,"esc");function Yu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(Yu,"slugify");var na="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(rr,"isObject");var Qu=$r(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function zt(e){if(rr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(rr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}s(zt,"isPlainObject");function ia(e){return zt(e)?{...e}:Array.isArray(e)?[...e]:e}s(ia,"shallowClone");function wE(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}s(wE,"numKeys");var OE=s(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"),Zo=new Set(["string","number","symbol"]),el=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(ot,"escapeRegex");function ke(e,t,o){let n=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(n._zod.parent=e),n}s(ke,"clone");function k(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:s(()=>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:s(()=>t.error,"error")}:t}s(k,"normalizeParams");function kE(e){let t;return new Proxy({},{get(o,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(o,n,r,i){return t??(t=e()),Reflect.set(t,n,r,i)},has(o,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(o,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(o,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}s(kE,"createTransparentProxy");function R(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(R,"stringifyPrimitive");function tl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(tl,"optionalKeys");var rl={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]},ol={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Sh(e,t){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=vt(e._zod.def,{get shape(){let a={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(a[c]=o.shape[c])}return Ct(this,"shape",a),a},checks:[]});return ke(e,i)}s(Sh,"pick");function wh(e,t){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=vt(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete a[c]}return Ct(this,"shape",a),a},checks:[]});return ke(e,i)}s(wh,"omit");function Oh(e,t){if(!zt(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=vt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Ct(this,"shape",i),i}});return ke(e,r)}s(Oh,"extend");function kh(e,t){if(!zt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=vt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ct(this,"shape",n),n}});return ke(e,o)}s(kh,"safeExtend");function $E(e,t){let o=vt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return ke(e,o)}s($E,"merge");function $h(e,t,o){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=vt(t._zod.def,{get shape(){let c=t._zod.def.shape,u={...c};if(o)for(let l in o){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);o[l]&&(u[l]=e?new e({type:"optional",innerType:c[l]}):c[l])}else for(let l in c)u[l]=e?new e({type:"optional",innerType:c[l]}):c[l];return Ct(this,"shape",u),u},checks:[]});return ke(t,a)}s($h,"partial");function Rh(e,t,o){let n=vt(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(o)for(let a in o){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);o[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Ct(this,"shape",i),i}});return ke(t,n)}s(Rh,"required");function Dt(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}s(Dt,"aborted");function Ye(e,t){return t.map(o=>{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}s(Ye,"prefixIssues");function jo(e){return typeof e=="string"?e:e?.message}s(jo,"unwrapMessage");function He(e,t,o){let n={...e,path:e.path??[]};if(!e.message){let r=jo(e.inst?._zod.def?.error?.(e))??jo(t?.error?.(e))??jo(o.customError?.(e))??jo(o.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}s(He,"finalizeIssue");function Ho(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Ho,"getSizableOrigin");function qo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(qo,"getLengthableOrigin");function z(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 o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}s(z,"parsedType");function Rr(...e){let[t,o,n]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:n}:{...t}}s(Rr,"issue");function RE(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(RE,"cleanEnum");function Ch(e){let t=atob(e),o=new Uint8Array(t.length);for(let n=0;n<t.length;n++)o[n]=t.charCodeAt(n);return o}s(Ch,"base64ToUint8Array");function zh(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}s(zh,"uint8ArrayToBase64");function CE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return Ch(t+o)}s(CE,"base64urlToUint8Array");function zE(e){return zh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(zE,"uint8ArrayToBase64url");function DE(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)o[n/2]=Number.parseInt(t.slice(n,n+2),16);return o}s(DE,"hexToUint8Array");function NE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(NE,"uint8ArrayToHex");var Ju=class{static{s(this,"Class")}constructor(...t){}};var Dh=s((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,kr,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Go=y("$ZodError",Dh),qe=y("$ZodError",Dh,{Parent:Error});function Cr(e,t=o=>o.message){let o={},n=[];for(let r of e.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:o}}s(Cr,"flattenError");function zr(e,t=o=>o.message){let o={_errors:[]},n=s(r=>{for(let i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)o._errors.push(t(i));else{let a=o,c=0;for(;c<i.path.length;){let u=i.path[c];c===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(t(i))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}},"processError");return n(e),o}s(zr,"formatError");function aa(e,t=o=>o.message){let o={errors:[]},n=s((r,i=[])=>{var a,c;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>n({issues:l},u.path));else if(u.code==="invalid_key")n({issues:u.issues},u.path);else if(u.code==="invalid_element")n({issues:u.issues},u.path);else{let l=[...i,...u.path];if(l.length===0){o.errors.push(t(u));continue}let d=o,f=0;for(;f<l.length;){let h=l[f],p=f===l.length-1;typeof h=="string"?(d.properties??(d.properties={}),(a=d.properties)[h]??(a[h]={errors:[]}),d=d.properties[h]):(d.items??(d.items=[]),(c=d.items)[h]??(c[h]={errors:[]}),d=d.items[h]),p&&d.errors.push(t(u)),f++}}},"processError");return n(e),o}s(aa,"treeifyError");function Nh(e){let t=[],o=e.map(n=>typeof n=="object"?n.key:n);for(let n of o)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}s(Nh,"toDotPath");function sa(e){let t=[],o=[...e.issues].sort((n,r)=>(n.path??[]).length-(r.path??[]).length);for(let n of o)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${Nh(n.path)}`);return t.join(`
|
|
6
|
+
`)}s(sa,"prettifyError");var Dr=s(e=>(t,o,n,r)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},a=t._zod.run({value:o,issues:[]},i);if(a instanceof Promise)throw new ct;if(a.issues.length){let c=new(r?.Err??e)(a.issues.map(u=>He(u,i,xe())));throw na(c,r?.callee),c}return a.value},"_parse"),or=Dr(qe),Nr=s(e=>async(t,o,n,r)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:o,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(r?.Err??e)(a.issues.map(u=>He(u,i,xe())));throw na(c,r?.callee),c}return a.value},"_parseAsync"),nr=Nr(qe),Mr=s(e=>(t,o,n)=>{let r=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:o,issues:[]},r);if(i instanceof Promise)throw new ct;return i.issues.length?{success:!1,error:new(e??Go)(i.issues.map(a=>He(a,r,xe())))}:{success:!0,data:i.value}},"_safeParse"),Ur=Mr(qe),Lr=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:o,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>He(a,r,xe())))}:{success:!0,data:i.value}},"_safeParseAsync"),Fr=Lr(qe),ca=s(e=>(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Dr(e)(t,o,r)},"_encode"),Mh=ca(qe),ua=s(e=>(t,o,n)=>Dr(e)(t,o,n),"_decode"),Uh=ua(qe),la=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Nr(e)(t,o,r)},"_encodeAsync"),Lh=la(qe),pa=s(e=>async(t,o,n)=>Nr(e)(t,o,n),"_decodeAsync"),Fh=pa(qe),da=s(e=>(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Mr(e)(t,o,r)},"_safeEncode"),jh=da(qe),ma=s(e=>(t,o,n)=>Mr(e)(t,o,n),"_safeDecode"),Bh=ma(qe),fa=s(e=>async(t,o,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Lr(e)(t,o,r)},"_safeEncodeAsync"),Vh=fa(qe),ha=s(e=>async(t,o,n)=>Lr(e)(t,o,n),"_safeDecodeAsync"),Zh=ha(qe);var Ge={};Xe(Ge,{base64:()=>xl,base64url:()=>ga,bigint:()=>El,boolean:()=>Sl,browserEmail:()=>HE,cidrv4:()=>yl,cidrv6:()=>vl,cuid:()=>nl,cuid2:()=>il,date:()=>bl,datetime:()=>Al,domain:()=>WE,duration:()=>ll,e164:()=>_l,email:()=>dl,emoji:()=>ml,extendedDuration:()=>UE,guid:()=>pl,hex:()=>KE,hostname:()=>GE,html5Email:()=>BE,idnEmail:()=>ZE,integer:()=>Tl,ipv4:()=>fl,ipv6:()=>hl,ksuid:()=>cl,lowercase:()=>kl,mac:()=>gl,md5_base64:()=>XE,md5_base64url:()=>YE,md5_hex:()=>JE,nanoid:()=>ul,null:()=>wl,number:()=>ya,rfc5322Email:()=>VE,sha1_base64:()=>eT,sha1_base64url:()=>tT,sha1_hex:()=>QE,sha256_base64:()=>oT,sha256_base64url:()=>nT,sha256_hex:()=>rT,sha384_base64:()=>aT,sha384_base64url:()=>sT,sha384_hex:()=>iT,sha512_base64:()=>uT,sha512_base64url:()=>lT,sha512_hex:()=>cT,string:()=>Il,time:()=>Pl,ulid:()=>al,undefined:()=>Ol,unicodeEmail:()=>Hh,uppercase:()=>$l,uuid:()=>ir,uuid4:()=>LE,uuid6:()=>FE,uuid7:()=>jE,xid:()=>sl});var nl=/^[cC][^\s-]{8,}$/,il=/^[0-9a-z]+$/,al=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sl=/^[0-9a-vA-V]{20}$/,cl=/^[A-Za-z0-9]{27}$/,ul=/^[a-zA-Z0-9_-]{21}$/,ll=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,UE=/^[-+]?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)?)??$/,pl=/^([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})$/,ir=s(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"),LE=ir(4),FE=ir(6),jE=ir(7),dl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,BE=/^[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])?)*$/,VE=/^(([^<>()\[\]\\.,;:\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,}))$/,Hh=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ZE=Hh,HE=/^[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])?)*$/,qE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ml(){return new RegExp(qE,"u")}s(ml,"emoji");var fl=/^(?:(?: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])$/,hl=/^(([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}|:))$/,gl=s(e=>{let t=ot(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"),yl=/^((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])$/,vl=/^(([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])$/,xl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ga=/^[A-Za-z0-9_-]*$/,GE=/^(?=.{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])?)*\.?$/,WE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_l=/^\+[1-9]\d{6,14}$/,qh="(?:(?:\\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])))",bl=new RegExp(`^${qh}$`);function Gh(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+)?)?`}s(Gh,"timeSource");function Pl(e){return new RegExp(`^${Gh(e)}$`)}s(Pl,"time");function Al(e){let t=Gh({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${o.join("|")})`;return new RegExp(`^${qh}T(?:${n})$`)}s(Al,"datetime");var Il=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),El=/^-?\d+n?$/,Tl=/^-?\d+$/,ya=/^-?\d+(?:\.\d+)?$/,Sl=/^(?:true|false)$/i,wl=/^null$/i;var Ol=/^undefined$/i;var kl=/^[^A-Z]*$/,$l=/^[^a-z]*$/,KE=/^[0-9a-fA-F]*$/;function Wo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Wo,"fixedBase64");function Ko(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Ko,"fixedBase64url");var JE=/^[0-9a-fA-F]{32}$/,XE=Wo(22,"=="),YE=Ko(22),QE=/^[0-9a-fA-F]{40}$/,eT=Wo(27,"="),tT=Ko(27),rT=/^[0-9a-fA-F]{64}$/,oT=Wo(43,"="),nT=Ko(43),iT=/^[0-9a-fA-F]{96}$/,aT=Wo(64,""),sT=Ko(64),cT=/^[0-9a-fA-F]{128}$/,uT=Wo(86,"=="),lT=Ko(86);var de=y("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),Kh={number:"number",bigint:"bigint",object:"date"},va=y("$ZodCheckLessThan",(e,t)=>{de.init(e,t);let o=Kh[typeof t.value];e._zod.onattach.push(n=>{let r=n._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=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),xa=y("$ZodCheckGreaterThan",(e,t)=>{de.init(e,t);let o=Kh[typeof t.value];e._zod.onattach.push(n=>{let r=n._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=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rl=y("$ZodCheckMultipleOf",(e,t)=>{de.init(e,t),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):Xu(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),Cl=y("$ZodCheckNumberFormat",(e,t)=>{de.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),n=o?"int":"number",[r,i]=rl[t.format];e._zod.onattach.push(a=>{let c=a._zod.bag;c.format=t.format,c.minimum=r,c.maximum=i,o&&(c.pattern=Tl)}),e._zod.check=a=>{let c=a.value;if(o){if(!Number.isInteger(c)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}c<r&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>i&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),zl=y("$ZodCheckBigIntFormat",(e,t)=>{de.init(e,t);let[o,n]=ol[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=o,i.maximum=n}),e._zod.check=r=>{let i=r.value;i<o&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),i>n&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Dl=y("$ZodCheckMaxSize",(e,t)=>{var o;de.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Rt(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Ho(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Nl=y("$ZodCheckMinSize",(e,t)=>{var o;de.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Rt(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Ho(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ml=y("$ZodCheckSizeEquals",(e,t)=>{var o;de.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Rt(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Ho(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ul=y("$ZodCheckMaxLength",(e,t)=>{var o;de.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Rt(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let a=qo(r);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ll=y("$ZodCheckMinLength",(e,t)=>{var o;de.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Rt(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let a=qo(r);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fl=y("$ZodCheckLengthEquals",(e,t)=>{var o;de.init(e,t),(o=e._zod.def).when??(o.when=n=>{let r=n.value;return!Rt(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=qo(r),c=i>t.length;n.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),jr=y("$ZodCheckStringFormat",(e,t)=>{var o,n;de.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?(o=e._zod).check??(o.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})}):(n=e._zod).check??(n.check=()=>{})}),jl=y("$ZodCheckRegex",(e,t)=>{jr.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Bl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=kl),jr.init(e,t)}),Vl=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=$l),jr.init(e,t)}),Zl=y("$ZodCheckIncludes",(e,t)=>{de.init(e,t);let o=ot(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=n,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),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})}}),Hl=y("$ZodCheckStartsWith",(e,t)=>{de.init(e,t);let o=new RegExp(`^${ot(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ql=y("$ZodCheckEndsWith",(e,t)=>{de.init(e,t);let o=new RegExp(`.*${ot(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Wh(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues))}s(Wh,"handleCheckPropertyResult");var Gl=y("$ZodCheckProperty",(e,t)=>{de.init(e,t),e._zod.check=o=>{let n=t.schema._zod.run({value:o.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>Wh(r,o,t.property));Wh(n,o,t.property)}}),Wl=y("$ZodCheckMimeType",(e,t)=>{de.init(e,t);let o=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Kl=y("$ZodCheckOverwrite",(e,t)=>{de.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});var Jo=class{static{s(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 n=t.split(`
|
|
7
|
+
`).filter(a=>a),r=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,o=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...o,r.join(`
|
|
8
|
+
`))}};var Jl={major:4,minor:3,patch:6};var q=y("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jl;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let r of n)for(let i of r._zod.onattach)i(e);if(n.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=s((a,c,u)=>{let l=Dt(a),d;for(let f of c){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(l)continue;let h=a.issues.length,p=f._zod.check(a);if(p instanceof Promise&&u?.async===!1)throw new ct;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==h&&(l||(l=Dt(a,h)))});else{if(a.issues.length===h)continue;l||(l=Dt(a,h))}}return d?d.then(()=>a):a},"runChecks"),i=s((a,c,u)=>{if(Dt(a))return a.aborted=!0,a;let l=r(c,n,u);if(l instanceof Promise){if(u.async===!1)throw new ct;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)},"handleCanaryResult");e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ct;return u.then(l=>r(l,n,c))}return r(u,n,c)}}Y(e,"~standard",()=>({validate:s(r=>{try{let i=Ur(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Fr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),xt=y("$ZodString",(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Il(e._zod.bag),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),ue=y("$ZodStringFormat",(e,t)=>{jr.init(e,t),xt.init(e,t)}),Ea=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=pl),ue.init(e,t)}),Ta=y("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ir(n))}else t.pattern??(t.pattern=ir());ue.init(e,t)}),Sa=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=dl),ue.init(e,t)}),Xo=y("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=o=>{try{let n=o.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.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)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=r.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),wa=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ml()),ue.init(e,t)}),Oa=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ul),ue.init(e,t)}),ka=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nl),ue.init(e,t)}),$a=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=il),ue.init(e,t)}),Ra=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=al),ue.init(e,t)}),Ca=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=sl),ue.init(e,t)}),za=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cl),ue.init(e,t)}),Yo=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Al(t)),ue.init(e,t)}),Qo=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bl),ue.init(e,t)}),en=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Pl(t)),ue.init(e,t)}),tn=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ll),ue.init(e,t)}),Da=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=fl),ue.init(e,t),e._zod.bag.format="ipv4"}),Na=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=hl),ue.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),Ma=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=gl(t.delimiter)),ue.init(e,t),e._zod.bag.format="mac"}),Ua=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=yl),ue.init(e,t)}),La=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=vl),ue.init(e,t),e._zod.check=o=>{let n=o.value.split("/");try{if(n.length!==2)throw new Error;let[r,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function Yl(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Yl,"isValidBase64");var Fa=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=xl),ue.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{Yl(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function cg(e){if(!ga.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return Yl(o)}s(cg,"isValidBase64URL");var ja=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ga),ue.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{cg(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),Ba=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_l),ue.init(e,t)});function ug(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[n]=o;if(!n)return!1;let r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}s(ug,"isValidJWT");var Va=y("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=o=>{ug(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),Za=y("$ZodCustomStringFormat",(e,t)=>{ue.init(e,t),e._zod.check=o=>{t.fn(o.value)||o.issues.push({code:"invalid_format",format:t.format,input:o.value,inst:e,continue:!t.abort})}}),Br=y("$ZodNumber",(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??ya,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}let r=o.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return o;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),o}}),rn=y("$ZodNumberFormat",(e,t)=>{Cl.init(e,t),Br.init(e,t)}),ar=y("$ZodBoolean",(e,t)=>{q.init(e,t),e._zod.pattern=Sl,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=!!o.value}catch{}let r=o.value;return typeof r=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),o}}),Vr=y("$ZodBigInt",(e,t)=>{q.init(e,t),e._zod.pattern=El,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),Ha=y("$ZodBigIntFormat",(e,t)=>{zl.init(e,t),Vr.init(e,t)}),qa=y("$ZodSymbol",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return typeof r=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),o}}),Ga=y("$ZodUndefined",(e,t)=>{q.init(e,t),e._zod.pattern=Ol,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,n)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),o}}),Wa=y("$ZodNull",(e,t)=>{q.init(e,t),e._zod.pattern=wl,e._zod.values=new Set([null]),e._zod.parse=(o,n)=>{let r=o.value;return r===null||o.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),o}}),on=y("$ZodAny",(e,t)=>{q.init(e,t),e._zod.parse=o=>o}),nn=y("$ZodUnknown",(e,t)=>{q.init(e,t),e._zod.parse=o=>o}),Ka=y("$ZodNever",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),an=y("$ZodVoid",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return typeof r>"u"||o.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),o}}),sn=y("$ZodDate",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=new Date(o.value)}catch{}let r=o.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),o}});function Xh(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues)),t.value[o]=e.value}s(Xh,"handleArrayResult");var cn=y("$ZodArray",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!Array.isArray(r))return o.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),o;o.value=Array(r.length);let i=[];for(let a=0;a<r.length;a++){let c=r[a],u=t.element._zod.run({value:c,issues:[]},n);u instanceof Promise?i.push(u.then(l=>Xh(l,o,a))):Xh(u,o,a)}return i.length?Promise.all(i).then(()=>o):o}});function Ia(e,t,o,n,r){if(e.issues.length){if(r&&!(o in n))return;t.issues.push(...Ye(o,e.issues))}e.value===void 0?o in n&&(t.value[o]=void 0):t.value[o]=e.value}s(Ia,"handlePropertyResult");function lg(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let o=tl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}s(lg,"normalizeDef");function pg(e,t,o,n,r,i){let a=[],c=r.keySet,u=r.catchall._zod,l=u.def.type,d=u.optout==="optional";for(let f in t){if(c.has(f))continue;if(l==="never"){a.push(f);continue}let h=u.run({value:t[f],issues:[]},n);h instanceof Promise?e.push(h.then(p=>Ia(p,o,f,t,d))):Ia(h,o,f,t,d)}return a.length&&o.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>o):o}s(pg,"handleCatchall");var Ja=y("$ZodObject",(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:s(()=>{let u={...c};return Object.defineProperty(t,"shape",{value:u}),u},"get")})}let n=$r(()=>lg(t));Y(e._zod,"propValues",()=>{let c=t.shape,u={};for(let l in c){let d=c[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(let f of d.values)u[l].add(f)}}return u});let r=rr,i=t.catchall,a;e._zod.parse=(c,u)=>{a??(a=n.value);let l=c.value;if(!r(l))return c.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),c;c.value={};let d=[],f=a.shape;for(let h of a.keys){let p=f[h],v=p._zod.optout==="optional",P=p._zod.run({value:l[h],issues:[]},u);P instanceof Promise?d.push(P.then(A=>Ia(A,c,h,l,v))):Ia(P,c,h,l,v)}return i?pg(d,l,c,u,n.value,e):d.length?Promise.all(d).then(()=>c):c}}),Ql=y("$ZodObjectJIT",(e,t)=>{Ja.init(e,t);let o=e._zod.parse,n=$r(()=>lg(t)),r=s(h=>{let p=new Jo(["shape","payload","ctx"]),v=n.value,P=s(j=>{let oe=oa(j);return`shape[${oe}]._zod.run({ value: input[${oe}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let A=Object.create(null),E=0;for(let j of v.keys)A[j]=`key_${E++}`;p.write("const newResult = {};");for(let j of v.keys){let oe=A[j],pe=oa(j),Ae=h[j]?._zod?.optout==="optional";p.write(`const ${oe} = ${P(j)};`),Ae?p.write(`
|
|
9
|
+
if (${oe}.issues.length) {
|
|
10
|
+
if (${pe} in input) {
|
|
11
|
+
payload.issues = payload.issues.concat(${oe}.issues.map(iss => ({
|
|
12
12
|
...iss,
|
|
13
|
-
path: iss.path ? [${
|
|
13
|
+
path: iss.path ? [${pe}, ...iss.path] : [${pe}]
|
|
14
14
|
})));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
if (${
|
|
19
|
-
if (${
|
|
20
|
-
newResult[${
|
|
18
|
+
if (${oe}.value === undefined) {
|
|
19
|
+
if (${pe} in input) {
|
|
20
|
+
newResult[${pe}] = undefined;
|
|
21
21
|
}
|
|
22
22
|
} else {
|
|
23
|
-
newResult[${
|
|
23
|
+
newResult[${pe}] = ${oe}.value;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
`):p.write(`
|
|
27
|
-
if (${
|
|
28
|
-
payload.issues = payload.issues.concat(${
|
|
27
|
+
if (${oe}.issues.length) {
|
|
28
|
+
payload.issues = payload.issues.concat(${oe}.issues.map(iss => ({
|
|
29
29
|
...iss,
|
|
30
|
-
path: iss.path ? [${
|
|
30
|
+
path: iss.path ? [${pe}, ...iss.path] : [${pe}]
|
|
31
31
|
})));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
if (${
|
|
35
|
-
if (${
|
|
36
|
-
newResult[${
|
|
34
|
+
if (${oe}.value === undefined) {
|
|
35
|
+
if (${pe} in input) {
|
|
36
|
+
newResult[${pe}] = undefined;
|
|
37
37
|
}
|
|
38
38
|
} else {
|
|
39
|
-
newResult[${
|
|
39
|
+
newResult[${pe}] = ${oe}.value;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
`)}p.write("payload.value = newResult;"),p.write("return payload;");let O=p.compile();return(U,te)=>O(g,U,te)},"generateFastpass"),i,a=Kt,u=!In.jitless,l=u&&Cc.value,m=t.catchall,f;e._zod.parse=(g,p)=>{f??(f=o.value);let y=g.value;return a(y)?u&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),g=i(g,p),m?Mg([],y,g,p,f,e):g):n(g,p):(g.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),g)}});function Tg(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=>!zt(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(a=>Fe(a,o,he())))}),t)}s(Tg,"handleUnionResults");var tr=h("$ZodUnion",(e,t)=>{B.init(e,t),W(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),W(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),W(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),W(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=>wn(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 a=!1,u=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},i);if(l instanceof Promise)u.push(l),a=!0;else{if(l.issues.length===0)return l;u.push(l)}}return a?Promise.all(u).then(c=>Tg(c,r,e,i)):Tg(u,r,e,i)}});function Sg(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(a=>Fe(a,o,he())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}s(Sg,"handleExclusiveUnionResults");var wa=h("$ZodXor",(e,t)=>{tr.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 a=!1,u=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},i);l instanceof Promise?(u.push(l),a=!0):u.push(l)}return a?Promise.all(u).then(c=>Sg(c,r,e,i)):Sg(u,r,e,i)}}),Hn=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,tr.init(e,t);let n=e._zod.parse;W(e._zod,"propValues",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[u,c]of Object.entries(a)){r[u]||(r[u]=new Set);for(let l of c)r[u].add(l)}}return r});let o=Tr(()=>{let r=t.options,i=new Map;for(let a of r){let u=a._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of u){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!Kt(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let u=o.value.get(a?.[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:a,path:[t.discriminator],inst:e}),r)}}),za=h("$ZodIntersection",(e,t)=>{B.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Ig(n,c,l)):Ig(n,i,a)}});function kl(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(wt(e)&&wt(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 a=kl(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.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],a=kl(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}s(kl,"mergeValues");function Ig(e,t,n){let o=new Map,r;for(let u of t.issues)if(u.code==="unrecognized_keys"){r??(r=u);for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(u);for(let u of n.issues)if(u.code==="unrecognized_keys")for(let c of u.keys)o.has(c)||o.set(c,{}),o.get(c).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}),zt(e))return e;let a=kl(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(Ig,"handleIntersectionResults");var qn=h("$ZodTuple",(e,t)=>{B.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 a=[],u=[...n].reverse().findIndex(m=>m._zod.optin!=="optional"),c=u===-1?0:n.length-u;if(!t.rest){let m=i.length>n.length,f=i.length<c-1;if(m||f)return o.issues.push({...m?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),o}let l=-1;for(let m of n){if(l++,l>=i.length&&l>=c)continue;let f=m._zod.run({value:i[l],issues:[]},r);f instanceof Promise?a.push(f.then(g=>Ji(g,o,l))):Ji(f,o,l)}if(t.rest){let m=i.slice(n.length);for(let f of m){l++;let g=t.rest._zod.run({value:f,issues:[]},r);g instanceof Promise?a.push(g.then(p=>Ji(p,o,l))):Ji(g,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function Ji(e,t,n){e.issues.length&&t.issues.push(...Ge(n,e.issues)),t.value[n]=e.value}s(Ji,"handleTupleResult");var Gn=h("$ZodRecord",(e,t)=>{B.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!wt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let i=[],a=t.keyType._zod.values;if(a){n.value={};let u=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){u.add(typeof l=="number"?l.toString():l);let m=t.valueType._zod.run({value:r[l],issues:[]},o);m instanceof Promise?i.push(m.then(f=>{f.issues.length&&n.issues.push(...Ge(l,f.issues)),n.value[l]=f.value})):(m.issues.length&&n.issues.push(...Ge(l,m.issues)),n.value[l]=m.value)}let c;for(let l in r)u.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(let u of Reflect.ownKeys(r)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&qi.test(u)&&c.issues.length){let f=t.keyType._zod.run({value:Number(u),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Fe(f,o,he())),input:u,path:[u],inst:e});continue}let m=t.valueType._zod.run({value:r[u],issues:[]},o);m instanceof Promise?i.push(m.then(f=>{f.issues.length&&n.issues.push(...Ge(u,f.issues)),n.value[c.value]=f.value})):(m.issues.length&&n.issues.push(...Ge(u,m.issues)),n.value[c.value]=m.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Ra=h("$ZodMap",(e,t)=>{B.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[a,u]of r){let c=t.keyType._zod.run({value:a,issues:[]},o),l=t.valueType._zod.run({value:u,issues:[]},o);c instanceof Promise||l instanceof Promise?i.push(Promise.all([c,l]).then(([m,f])=>{Ag(m,f,n,a,r,e,o)})):Ag(c,l,n,a,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Ag(e,t,n,o,r,i,a){e.issues.length&&(zn.has(typeof o)?n.issues.push(...Ge(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(u=>Fe(u,a,he()))})),t.issues.length&&(zn.has(typeof o)?n.issues.push(...Ge(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(u=>Fe(u,a,he()))})),n.value.set(e.value,t.value)}s(Ag,"handleMapResult");var ka=h("$ZodSet",(e,t)=>{B.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 a of r){let u=t.valueType._zod.run({value:a,issues:[]},o);u instanceof Promise?i.push(u.then(c=>$g(c,n))):$g(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function $g(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s($g,"handleSetResult");var Wn=h("$ZodEnum",(e,t)=>{B.init(e,t);let n=On(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>zn.has(typeof r)).map(r=>typeof r=="string"?Qe(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Jn=h("$ZodLiteral",(e,t)=>{if(B.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"?Qe(o):o?Qe(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}}),Da=h("$ZodFile",(e,t)=>{B.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}}),Kn=h("$ZodTransform",(e,t)=>{B.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new At(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new it;return n.value=r,n}});function Og(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(Og,"handleOptionalResult");var Mr=h("$ZodOptional",(e,t)=>{B.init(e,t),e._zod.optin="optional",e._zod.optout="optional",W(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${wn(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=>Og(i,n.value)):Og(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Ca=h("$ZodExactOptional",(e,t)=>{Mr.init(e,t),W(e._zod,"values",()=>t.innerType._zod.values),W(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Xn=h("$ZodNullable",(e,t)=>{B.init(e,t),W(e._zod,"optin",()=>t.innerType._zod.optin),W(e._zod,"optout",()=>t.innerType._zod.optout),W(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${wn(n.source)}|null)$`):void 0}),W(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)}),Na=h("$ZodDefault",(e,t)=>{B.init(e,t),e._zod.optin="optional",W(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=>wg(i,t)):wg(r,t)}});function wg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(wg,"handleDefaultResult");var Ma=h("$ZodPrefault",(e,t)=>{B.init(e,t),e._zod.optin="optional",W(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))}),Ua=h("$ZodNonOptional",(e,t)=>{B.init(e,t),W(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=>zg(i,e)):zg(r,e)}});function zg(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}s(zg,"handleNonOptionalResult");var La=h("$ZodSuccess",(e,t)=>{B.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new At("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)}}),ja=h("$ZodCatch",(e,t)=>{B.init(e,t),W(e._zod,"optin",()=>t.innerType._zod.optin),W(e._zod,"optout",()=>t.innerType._zod.optout),W(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(a=>Fe(a,o,he()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>Fe(i,o,he()))},input:n.value}),n.issues=[]),n)}}),Fa=h("$ZodNaN",(e,t)=>{B.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)}),Yn=h("$ZodPipe",(e,t)=>{B.init(e,t),W(e._zod,"values",()=>t.in._zod.values),W(e._zod,"optin",()=>t.in._zod.optin),W(e._zod,"optout",()=>t.out._zod.optout),W(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(a=>Ki(a,t.in,o)):Ki(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Ki(i,t.out,o)):Ki(r,t.out,o)}});function Ki(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}s(Ki,"handlePipeResult");var Ur=h("$ZodCodec",(e,t)=>{B.init(e,t),W(e._zod,"values",()=>t.in._zod.values),W(e._zod,"optin",()=>t.in._zod.optin),W(e._zod,"optout",()=>t.out._zod.optout),W(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(a=>Xi(a,t,o)):Xi(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Xi(a,t,o)):Xi(i,t,o)}}});function Xi(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=>Yi(e,i,t.out,n)):Yi(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Yi(e,i,t.in,n)):Yi(e,r,t.in,n)}}s(Xi,"handleCodecAResult");function Yi(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}s(Yi,"handleCodecTxResult");var Ba=h("$ZodReadonly",(e,t)=>{B.init(e,t),W(e._zod,"propValues",()=>t.innerType._zod.propValues),W(e._zod,"values",()=>t.innerType._zod.values),W(e._zod,"optin",()=>t.innerType?._zod?.optin),W(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(Rg):Rg(r)}});function Rg(e){return e.value=Object.freeze(e.value),e}s(Rg,"handleReadonlyResult");var Za=h("$ZodTemplateLiteral",(e,t)=>{B.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,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||Nc.has(typeof o))n.push(Qe(`${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)}),Va=h("$ZodFunction",(e,t)=>(B.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?Xt(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?Xt(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 Yt(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await Yt(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 qn({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)),Ha=h("$ZodPromise",(e,t)=>{B.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),qa=h("$ZodLazy",(e,t)=>{B.init(e,t),W(e._zod,"innerType",()=>t.getter()),W(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),W(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),W(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),W(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Qn=h("$ZodCustom",(e,t)=>{ue.init(e,t),B.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=>kg(i,n,o,e));kg(r,n,o,e)}});function kg(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(Sr(r))}}s(kg,"handleRefineResult");var jr={};Ye(jr,{ar:()=>Nl,az:()=>Ml,be:()=>Ul,bg:()=>Ll,ca:()=>jl,cs:()=>Fl,da:()=>Bl,de:()=>Zl,en:()=>eo,eo:()=>Vl,es:()=>Hl,fa:()=>ql,fi:()=>Gl,fr:()=>Wl,frCA:()=>Jl,he:()=>Kl,hu:()=>Xl,hy:()=>Yl,id:()=>Ql,is:()=>ep,it:()=>tp,ja:()=>rp,ka:()=>np,kh:()=>op,km:()=>to,ko:()=>ip,lt:()=>ap,mk:()=>sp,ms:()=>up,nl:()=>cp,no:()=>lp,ota:()=>pp,pl:()=>mp,ps:()=>dp,pt:()=>fp,ru:()=>gp,sl:()=>hp,sv:()=>yp,ta:()=>vp,th:()=>_p,tr:()=>xp,ua:()=>Pp,uk:()=>no,ur:()=>bp,uz:()=>Ep,vi:()=>Tp,yo:()=>Ap,zhCN:()=>Sp,zhTW:()=>Ip});var kE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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: ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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":""}: ${P(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 Nl(){return{localeError:kE()}}s(Nl,"default");var DE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 Ml(){return{localeError:DE()}}s(Ml,"default");function Ug(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}s(Ug,"getBelarusianPlural");var CE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Ug(u,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.maximum.toString()} ${c}`}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?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=Ug(u,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.minimum.toString()} ${c}`}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"}: ${P(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 Ul(){return{localeError:CE()}}s(Ul,"default");var NE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${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":""}: ${P(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 Ll(){return{localeError:NE()}}s(Ll,"default");var ME=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${P(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.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":""}: ${P(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 jl(){return{localeError:ME()}}s(jl,"default");var UE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.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: ${P(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 Fl(){return{localeError:UE()}}s(Fl,"default");var LE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For stor: forventede ${u??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`For lille: forventede ${u} ${a.verb} ${i} ${r.minimum.toString()} ${a.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"}: ${P(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 Bl(){return{localeError:LE()}}s(Bl,"default");var jE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.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"}: ${P(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 Zl(){return{localeError:jE()}}s(Zl,"default");var FE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${I(r.values[0])}`:`Invalid option: expected one of ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 eo(){return{localeError:FE()}}s(eo,"default");var BE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 Vl(){return{localeError:BE()}}s(Vl,"default");var ZE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=o[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 Hl(){return{localeError:ZE()}}s(Hl,"default");var VE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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: ${P(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 ql(){return{localeError:VE()}}s(ql,"default");var HE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.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"}: ${P(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 Gl(){return{localeError:HE()}}s(Gl,"default");var qE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 : ${I(r.values[0])} attendu`:`Option invalide : une valeur parmi ${P(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.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":""} : ${P(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 Wl(){return{localeError:qE()}}s(Wl,"default");var GE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.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":""} : ${P(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 Jl(){return{localeError:GE()}}s(Jl,"default");var WE=s(()=>{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=s(l=>l?e[l]:void 0,"typeEntry"),o=s(l=>{let m=n(l);return m?m.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${o(l)}`,"withDefinite"),i=s(l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??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"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let m=l.expected,f=c[m??""]??o(m),g=$(l.input),p=c[g]??e[g]?.label??g;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.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 ${I(l.values[0])}`;let m=l.values.map(p=>I(p));if(l.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 ${m[0]} \u05D0\u05D5 ${m[1]}`;let f=m[m.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 ${m.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let m=a(l.origin),f=r(l.origin??"value");if(l.origin==="string")return`${m?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${m?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=l.inclusive?`${l.maximum} ${m?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${m?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let g=l.inclusive?"<=":"<",p=i(l.origin??"value");return m?.unit?`${m.longLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${g}${l.maximum.toString()} ${m.unit}`:`${m?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${p} ${g}${l.maximum.toString()}`}case"too_small":{let m=a(l.origin),f=r(l.origin??"value");if(l.origin==="string")return`${m?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${m?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let E=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`}let _=l.inclusive?`${l.minimum} ${m?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${m?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let g=l.inclusive?">=":">",p=i(l.origin??"value");return m?.unit?`${m.shortLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${g}${l.minimum.toString()} ${m.unit}`:`${m?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${p} ${g}${l.minimum.toString()}`}case"invalid_format":{let m=l;if(m.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${m.prefix}"`;if(m.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${m.suffix}"`;if(m.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${m.includes}"`;if(m.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 ${m.pattern}`;let f=u[m.format],g=f?.label??m.format,y=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${y}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${P(l.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(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function Kl(){return{localeError:WE()}}s(Kl,"default");var JE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 Xl(){return{localeError:JE()}}s(Xl,"default");function Lg(e,t,n){return Math.abs(e)===1?t:n}s(Lg,"getArmenianPlural");function Lr(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")}s(Lr,"withDefiniteArticle");var KE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Lg(u,a.unit.one,a.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 ${Lr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${c}`}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 ${Lr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=Lg(u,a.unit.one,a.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 ${Lr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${c}`}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 ${Lr(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":""}. ${P(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Lr(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 ${Lr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function Yl(){return{localeError:KE()}}s(Yl,"default");var XE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 Ql(){return{localeError:XE()}}s(Ql,"default");var YE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.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"}: ${P(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 ep(){return{localeError:YE()}}s(ep,"default");var QE=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Opzione non valida: atteso uno tra ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.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"}: ${P(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 tp(){return{localeError:QE()}}s(tp,"default");var eT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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: ${I(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${P(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",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.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",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.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":""}: ${P(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 rp(){return{localeError:eT()}}s(rp,"default");var tT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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"}: ${P(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 np(){return{localeError:tT()}}s(np,"default");var rT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.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 ${P(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 to(){return{localeError:rT()}}s(to,"default");function op(){return to()}s(op,"default");var nT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${P(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(r.origin),c=u?.unit??"\uC694\uC18C";return u?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}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: ${P(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 ip(){return{localeError:nT()}}s(ip,"default");var ro=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function jg(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}s(jg,"getUnitTypeFromNumber");var oT=s(()=>{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,a,u){let c=e[r]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[u][a?"inclusive":"notInclusive"]}}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${P(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,jg(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${ro(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let u=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ro(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,a=t(r.origin,jg(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${ro(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let u=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ro(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${r.minimum.toString()} ${a?.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"}: ${P(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`${ro(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function ap(){return{localeError:oT()}}s(ap,"default");var iT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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"}: ${P(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 sp(){return{localeError:iT()}}s(sp,"default");var aT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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: ${P(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 up(){return{localeError:aT()}}s(up,"default");var sT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),u=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${u}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),u=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${u}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.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":""}: ${P(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 cp(){return{localeError:sT()}}s(cp,"default");var uT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Ugyldig valg: forventet en av ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.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"}: ${P(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 lp(){return{localeError:uT()}}s(lp,"default");var cT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 pp(){return{localeError:cT()}}s(pp,"default");var lT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${P(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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"}: ${P(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 dp(){return{localeError:lT()}}s(dp,"default");var pT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 mp(){return{localeError:pT()}}s(mp,"default");var dT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 fp(){return{localeError:dT()}}s(fp,"default");function Fg(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}s(Fg,"getRussianPlural");var mT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Fg(u,a.unit.one,a.unit.few,a.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()} ${c}`}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?">=":">",a=t(r.origin);if(a){let u=Number(r.minimum),c=Fg(u,a.unit.one,a.unit.few,a.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()} ${c}`}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":""}: ${P(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 gp(){return{localeError:mT()}}s(gp,"default");var fT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.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"}: ${P(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 hp(){return{localeError:fT()}}s(hp,"default");var gT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.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"}: ${P(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 yp(){return{localeError:gT()}}s(yp,"default");var hT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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":""}: ${P(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 vp(){return{localeError:hT()}}s(vp,"default");var yT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.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: ${P(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 _p(){return{localeError:yT()}}s(_p,"default");var vT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 xp(){return{localeError:vT()}}s(xp,"default");var _T=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 no(){return{localeError:_T()}}s(no,"default");function Pp(){return no()}s(Pp,"default");var xT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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: ${I(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${P(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?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.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":""}: ${P(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 bp(){return{localeError:xT()}}s(bp,"default");var PT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.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":""}: ${P(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 Ep(){return{localeError:PT()}}s(Ep,"default");var bT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(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 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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: ${P(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 Tp(){return{localeError:bT()}}s(Tp,"default");var ET=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.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): ${P(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 Sp(){return{localeError:ET()}}s(Sp,"default");var TT=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.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${P(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 Ip(){return{localeError:TT()}}s(Ip,"default");var ST=s(()=>{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}s(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,a=$(r.input),u=o[a]??a;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 ${I(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${P(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.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?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.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: ${P(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 Ap(){return{localeError:ST()}}s(Ap,"default");var Bg,Wa=Symbol("ZodOutput"),Ja=Symbol("ZodInput"),Ga=class{static{s(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 oo(){return new Ga}s(oo,"registry");(Bg=globalThis).__zod_globalRegistry??(Bg.__zod_globalRegistry=oo());var Oe=globalThis.__zod_globalRegistry;function io(e,t){return new e({type:"string",...T(t)})}s(io,"_string");function ao(e,t){return new e({type:"string",coerce:!0,...T(t)})}s(ao,"_coercedString");function so(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}s(so,"_email");function Fr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}s(Fr,"_guid");function uo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}s(uo,"_uuid");function co(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}s(co,"_uuidv4");function lo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}s(lo,"_uuidv6");function po(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}s(po,"_uuidv7");function rr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}s(rr,"_url");function mo(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}s(mo,"_emoji");function fo(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}s(fo,"_nanoid");function go(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}s(go,"_cuid");function ho(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}s(ho,"_cuid2");function yo(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}s(yo,"_ulid");function vo(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}s(vo,"_xid");function _o(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}s(_o,"_ksuid");function xo(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}s(xo,"_ipv4");function Po(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}s(Po,"_ipv6");function Ka(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(t)})}s(Ka,"_mac");function bo(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}s(bo,"_cidrv4");function Eo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}s(Eo,"_cidrv6");function To(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}s(To,"_base64");function So(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}s(So,"_base64url");function Io(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}s(Io,"_e164");function Ao(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}s(Ao,"_jwt");var Xa={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ya(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}s(Ya,"_isoDateTime");function Qa(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}s(Qa,"_isoDate");function es(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}s(es,"_isoTime");function ts(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}s(ts,"_isoDuration");function $o(e,t){return new e({type:"number",checks:[],...T(t)})}s($o,"_number");function Oo(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}s(Oo,"_coercedNumber");function wo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}s(wo,"_int");function rs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}s(rs,"_float32");function ns(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}s(ns,"_float64");function os(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}s(os,"_int32");function is(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}s(is,"_uint32");function zo(e,t){return new e({type:"boolean",...T(t)})}s(zo,"_boolean");function Ro(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}s(Ro,"_coercedBoolean");function as(e,t){return new e({type:"bigint",...T(t)})}s(as,"_bigint");function ko(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}s(ko,"_coercedBigint");function ss(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}s(ss,"_int64");function us(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}s(us,"_uint64");function cs(e,t){return new e({type:"symbol",...T(t)})}s(cs,"_symbol");function ls(e,t){return new e({type:"undefined",...T(t)})}s(ls,"_undefined");function ps(e,t){return new e({type:"null",...T(t)})}s(ps,"_null");function Do(e){return new e({type:"any"})}s(Do,"_any");function Co(e){return new e({type:"unknown"})}s(Co,"_unknown");function ds(e,t){return new e({type:"never",...T(t)})}s(ds,"_never");function No(e,t){return new e({type:"void",...T(t)})}s(No,"_void");function ms(e,t){return new e({type:"date",...T(t)})}s(ms,"_date");function Mo(e,t){return new e({type:"date",coerce:!0,...T(t)})}s(Mo,"_coercedDate");function fs(e,t){return new e({type:"nan",...T(t)})}s(fs,"_nan");function at(e,t){return new Gi({check:"less_than",...T(t),value:e,inclusive:!1})}s(at,"_lt");function Ne(e,t){return new Gi({check:"less_than",...T(t),value:e,inclusive:!0})}s(Ne,"_lte");function st(e,t){return new Wi({check:"greater_than",...T(t),value:e,inclusive:!1})}s(st,"_gt");function Ie(e,t){return new Wi({check:"greater_than",...T(t),value:e,inclusive:!0})}s(Ie,"_gte");function Uo(e){return st(0,e)}s(Uo,"_positive");function Lo(e){return at(0,e)}s(Lo,"_negative");function jo(e){return Ne(0,e)}s(jo,"_nonpositive");function Fo(e){return Ie(0,e)}s(Fo,"_nonnegative");function ht(e,t){return new fl({check:"multiple_of",...T(t),value:e})}s(ht,"_multipleOf");function yt(e,t){return new yl({check:"max_size",...T(t),maximum:e})}s(yt,"_maxSize");function ut(e,t){return new vl({check:"min_size",...T(t),minimum:e})}s(ut,"_minSize");function Rt(e,t){return new _l({check:"size_equals",...T(t),size:e})}s(Rt,"_size");function kt(e,t){return new xl({check:"max_length",...T(t),maximum:e})}s(kt,"_maxLength");function Te(e,t){return new Pl({check:"min_length",...T(t),minimum:e})}s(Te,"_minLength");function Dt(e,t){return new bl({check:"length_equals",...T(t),length:e})}s(Dt,"_length");function Re(e,t){return new El({check:"string_format",format:"regex",...T(t),pattern:e})}s(Re,"_regex");function nr(e){return new Tl({check:"string_format",format:"lowercase",...T(e)})}s(nr,"_lowercase");function or(e){return new Sl({check:"string_format",format:"uppercase",...T(e)})}s(or,"_uppercase");function ir(e,t){return new Il({check:"string_format",format:"includes",...T(t),includes:e})}s(ir,"_includes");function ar(e,t){return new Al({check:"string_format",format:"starts_with",...T(t),prefix:e})}s(ar,"_startsWith");function sr(e,t){return new $l({check:"string_format",format:"ends_with",...T(t),suffix:e})}s(sr,"_endsWith");function Bo(e,t,n){return new Ol({check:"property",property:e,schema:t,...T(n)})}s(Bo,"_property");function ur(e,t){return new wl({check:"mime_type",mime:e,...T(t)})}s(ur,"_mime");function et(e){return new zl({check:"overwrite",tx:e})}s(et,"_overwrite");function cr(e){return et(t=>t.normalize(e))}s(cr,"_normalize");function lr(){return et(e=>e.trim())}s(lr,"_trim");function pr(){return et(e=>e.toLowerCase())}s(pr,"_toLowerCase");function dr(){return et(e=>e.toUpperCase())}s(dr,"_toUpperCase");function Br(){return et(e=>Dc(e))}s(Br,"_slugify");function $p(e,t,n){return new e({type:"array",element:t,...T(n)})}s($p,"_array");function AT(e,t,n){return new e({type:"union",options:t,...T(n)})}s(AT,"_union");function $T(e,t,n){return new e({type:"union",options:t,inclusive:!1,...T(n)})}s($T,"_xor");function OT(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...T(o)})}s(OT,"_discriminatedUnion");function wT(e,t,n){return new e({type:"intersection",left:t,right:n})}s(wT,"_intersection");function zT(e,t,n,o){let r=n instanceof B,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...T(i)})}s(zT,"_tuple");function RT(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...T(o)})}s(RT,"_record");function kT(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...T(o)})}s(kT,"_map");function DT(e,t,n){return new e({type:"set",valueType:t,...T(n)})}s(DT,"_set");function CT(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...T(n)})}s(CT,"_enum");function NT(e,t,n){return new e({type:"enum",entries:t,...T(n)})}s(NT,"_nativeEnum");function MT(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(n)})}s(MT,"_literal");function gs(e,t){return new e({type:"file",...T(t)})}s(gs,"_file");function UT(e,t){return new e({type:"transform",transform:t})}s(UT,"_transform");function LT(e,t){return new e({type:"optional",innerType:t})}s(LT,"_optional");function jT(e,t){return new e({type:"nullable",innerType:t})}s(jT,"_nullable");function FT(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Di(n)}})}s(FT,"_default");function BT(e,t,n){return new e({type:"nonoptional",innerType:t,...T(n)})}s(BT,"_nonoptional");function ZT(e,t){return new e({type:"success",innerType:t})}s(ZT,"_success");function VT(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}s(VT,"_catch");function HT(e,t,n){return new e({type:"pipe",in:t,out:n})}s(HT,"_pipe");function qT(e,t){return new e({type:"readonly",innerType:t})}s(qT,"_readonly");function GT(e,t,n){return new e({type:"template_literal",parts:t,...T(n)})}s(GT,"_templateLiteral");function WT(e,t){return new e({type:"lazy",getter:t})}s(WT,"_lazy");function JT(e,t){return new e({type:"promise",innerType:t})}s(JT,"_promise");function Zo(e,t,n){let o=T(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}s(Zo,"_custom");function hs(e,t,n){return new e({type:"custom",check:"custom",fn:t,...T(n)})}s(hs,"_refine");function ys(e){let t=Zg(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Sr(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(Sr(r))}},e(n.value,n)));return t}s(ys,"_superRefine");function Zg(e,t){let n=new ue({check:"custom",...T(t)});return n._zod.check=e,n}s(Zg,"_check");function vs(e){let t=new ue({check:"describe"});return t._zod.onattach=[n=>{let o=Oe.get(n)??{};Oe.add(n,{...o,description:e})}],t._zod.check=()=>{},t}s(vs,"describe");function _s(e){let t=new ue({check:"meta"});return t._zod.onattach=[n=>{let o=Oe.get(n)??{};Oe.add(n,{...o,...e})}],t._zod.check=()=>{},t}s(_s,"meta");function xs(e,t){let n=T(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(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(o),a=new Set(r),u=e.Codec??Ur,c=e.Boolean??er,l=e.String??gt,m=new l({type:"string",error:n.error}),f=new c({type:"boolean",error:n.error}),g=new u({type:"pipe",in:m,out:f,transform:s(((p,y)=>{let _=p;return n.case!=="sensitive"&&(_=_.toLowerCase()),i.has(_)?!0:a.has(_)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:y.value,inst:g,continue:!1}),{})}),"transform"),reverseTransform:s(((p,y)=>p===!0?o[0]||"true":r[0]||"false"),"reverseTransform"),error:n.error});return g}s(xs,"_stringbool");function mr(e,t,n,o={}){let r=T(o),i={...T(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)}s(mr,"_stringFormat");function Ct(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??Oe,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}}s(Ct,"initializeContext");function se(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 a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let u=e._zod.toJSONSchema?.();if(u)a.schema=u;else{let m={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,m);else{let g=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,g,m)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),se(f,t,m),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Me(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(se,"process");function Nt(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 a of e.seen.entries()){let u=e.metadataRegistry.get(a[0])?.id;if(u){let c=o.get(u);if(c&&c!==a[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,a[0])}}let r=s(a=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,g=e.external.uri??(y=>y);if(f)return{ref:g(f)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${g("__shared")}#/${u}/${p}`}}if(a[1]===n)return{ref:"#"};let l=`#/${u}/`,m=a[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:l+m}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let u=a[1],{ref:c,defId:l}=r(a);u.def={...u.schema},l&&(u.defId=l);let m=u.schema;for(let f in m)delete m[f];m.$ref=c},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let u=a[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
42
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");let w=p.compile();return(j,oe)=>w(h,j,oe)},"generateFastpass"),i,a=rr,c=!Lo.jitless,l=c&&Qu.value,d=t.catchall,f;e._zod.parse=(h,p)=>{f??(f=n.value);let v=h.value;return a(v)?c&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),h=i(h,p),d?pg([],v,h,p,f,e):h):o(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),h)}});function Yh(e,t,o,n){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!Dt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(i=>i.issues.map(a=>He(a,n,xe())))}),t)}s(Yh,"handleUnionResults");var sr=y("$ZodUnion",(e,t)=>{q.init(e,t),Y(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Y(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=>Vo(i.source)).join("|")})$`)}});let o=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(o)return n(r,i);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:r.value,issues:[]},i);if(l instanceof Promise)c.push(l),a=!0;else{if(l.issues.length===0)return l;c.push(l)}}return a?Promise.all(c).then(u=>Yh(u,r,e,i)):Yh(c,r,e,i)}});function Qh(e,t,o,n){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:o,errors:e.map(i=>i.issues.map(a=>He(a,n,xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:[],inclusive:!1}),t)}s(Qh,"handleExclusiveUnionResults");var Xa=y("$ZodXor",(e,t)=>{sr.init(e,t),t.inclusive=!1;let o=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(o)return n(r,i);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:r.value,issues:[]},i);l instanceof Promise?(c.push(l),a=!0):c.push(l)}return a?Promise.all(c).then(u=>Qh(u,r,e,i)):Qh(c,r,e,i)}}),un=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sr.init(e,t);let o=e._zod.parse;Y(e._zod,"propValues",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[c,u]of Object.entries(a)){r[c]||(r[c]=new Set);for(let l of u)r[c].add(l)}}return r});let n=$r(()=>{let r=t.options,i=new Map;for(let a of r){let c=a._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let u of c){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!rr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let c=n.value.get(a?.[t.discriminator]);return c?c._zod.run(r,i):t.unionFallback?o(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),Ya=y("$ZodIntersection",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>eg(o,u,l)):eg(o,i,a)}});function Xl(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(zt(e)&&zt(t)){let o=Object.keys(t),n=Object.keys(e).filter(i=>o.indexOf(i)!==-1),r={...e,...t};for(let i of n){let a=Xl(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t[n],a=Xl(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};o.push(a.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}s(Xl,"mergeValues");function eg(e,t,o){let n=new Map,r;for(let c of t.issues)if(c.code==="unrecognized_keys"){r??(r=c);for(let u of c.keys)n.has(u)||n.set(u,{}),n.get(u).l=!0}else e.issues.push(c);for(let c of o.issues)if(c.code==="unrecognized_keys")for(let u of c.keys)n.has(u)||n.set(u,{}),n.get(u).r=!0;else e.issues.push(c);let i=[...n].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(i.length&&r&&e.issues.push({...r,keys:i}),Dt(e))return e;let a=Xl(t.value,o.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}s(eg,"handleIntersectionResults");var ln=y("$ZodTuple",(e,t)=>{q.init(e,t);let o=t.items;e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let a=[],c=[...o].reverse().findIndex(d=>d._zod.optin!=="optional"),u=c===-1?0:o.length-c;if(!t.rest){let d=i.length>o.length,f=i.length<u-1;if(d||f)return n.issues.push({...d?{code:"too_big",maximum:o.length,inclusive:!0}:{code:"too_small",minimum:o.length},input:i,inst:e,origin:"array"}),n}let l=-1;for(let d of o){if(l++,l>=i.length&&l>=u)continue;let f=d._zod.run({value:i[l],issues:[]},r);f instanceof Promise?a.push(f.then(h=>_a(h,n,l))):_a(f,n,l)}if(t.rest){let d=i.slice(o.length);for(let f of d){l++;let h=t.rest._zod.run({value:f,issues:[]},r);h instanceof Promise?a.push(h.then(p=>_a(p,n,l))):_a(h,n,l)}}return a.length?Promise.all(a).then(()=>n):n}});function _a(e,t,o){e.issues.length&&t.issues.push(...Ye(o,e.issues)),t.value[o]=e.value}s(_a,"handleTupleResult");var pn=y("$ZodRecord",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!zt(r))return o.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),o;let i=[],a=t.keyType._zod.values;if(a){o.value={};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){c.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&o.issues.push(...Ye(l,f.issues)),o.value[l]=f.value})):(d.issues.length&&o.issues.push(...Ye(l,d.issues)),o.value[l]=d.value)}let u;for(let l in r)c.has(l)||(u=u??[],u.push(l));u&&u.length>0&&o.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{o.value={};for(let c of Reflect.ownKeys(r)){if(c==="__proto__")continue;let u=t.keyType._zod.run({value:c,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&ya.test(c)&&u.issues.length){let f=t.keyType._zod.run({value:Number(c),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode==="loose"?o.value[c]=r[c]:o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>He(f,n,xe())),input:c,path:[c],inst:e});continue}let d=t.valueType._zod.run({value:r[c],issues:[]},n);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&o.issues.push(...Ye(c,f.issues)),o.value[u.value]=f.value})):(d.issues.length&&o.issues.push(...Ye(c,d.issues)),o.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>o):o}}),Qa=y("$ZodMap",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!(r instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),o;let i=[];o.value=new Map;for(let[a,c]of r){let u=t.keyType._zod.run({value:a,issues:[]},n),l=t.valueType._zod.run({value:c,issues:[]},n);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,f])=>{tg(d,f,o,a,r,e,n)})):tg(u,l,o,a,r,e,n)}return i.length?Promise.all(i).then(()=>o):o}});function tg(e,t,o,n,r,i,a){e.issues.length&&(Zo.has(typeof n)?o.issues.push(...Ye(n,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(c=>He(c,a,xe()))})),t.issues.length&&(Zo.has(typeof n)?o.issues.push(...Ye(n,t.issues)):o.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:n,issues:t.issues.map(c=>He(c,a,xe()))})),o.value.set(e.value,t.value)}s(tg,"handleMapResult");var es=y("$ZodSet",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;if(!(r instanceof Set))return o.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),o;let i=[];o.value=new Set;for(let a of r){let c=t.valueType._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>rg(u,o))):rg(c,o)}return i.length?Promise.all(i).then(()=>o):o}});function rg(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(rg,"handleSetResult");var dn=y("$ZodEnum",(e,t)=>{q.init(e,t);let o=Bo(t.entries),n=new Set(o);e._zod.values=n,e._zod.pattern=new RegExp(`^(${o.filter(r=>Zo.has(typeof r)).map(r=>typeof r=="string"?ot(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:o,input:a,inst:e}),r}}),mn=y("$ZodLiteral",(e,t)=>{if(q.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(t.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?ot(n):n?ot(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{let i=n.value;return o.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),ts=y("$ZodFile",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{let r=o.value;return r instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),o}}),fn=y("$ZodTransform",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new $t(e.constructor.name);let r=t.transform(o.value,o);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(o.value=a,o));if(r instanceof Promise)throw new ct;return o.value=r,o}});function og(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(og,"handleOptionalResult");var Zr=y("$ZodOptional",(e,t)=>{q.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${Vo(o.source)})?$`):void 0}),e._zod.parse=(o,n)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>og(i,o.value)):og(r,o.value)}return o.value===void 0?o:t.innerType._zod.run(o,n)}}),rs=y("$ZodExactOptional",(e,t)=>{Zr.init(e,t),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(o,n)=>t.innerType._zod.run(o,n)}),hn=y("$ZodNullable",(e,t)=>{q.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let o=t.innerType._zod.pattern;return o?new RegExp(`^(${Vo(o.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(o,n)=>o.value===null?o:t.innerType._zod.run(o,n)}),os=y("$ZodDefault",(e,t)=>{q.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);if(o.value===void 0)return o.value=t.defaultValue,o;let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>ng(i,t)):ng(r,t)}});function ng(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(ng,"handleDefaultResult");var ns=y("$ZodPrefault",(e,t)=>{q.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>(n.direction==="backward"||o.value===void 0&&(o.value=t.defaultValue),t.innerType._zod.run(o,n))}),is=y("$ZodNonOptional",(e,t)=>{q.init(e,t),Y(e._zod,"values",()=>{let o=t.innerType._zod.values;return o?new Set([...o].filter(n=>n!==void 0)):void 0}),e._zod.parse=(o,n)=>{let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>ig(i,e)):ig(r,e)}});function ig(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}s(ig,"handleNonOptionalResult");var as=y("$ZodSuccess",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new $t("ZodSuccess");let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>(o.value=i.issues.length===0,o)):(o.value=r.issues.length===0,o)}}),ss=y("$ZodCatch",(e,t)=>{q.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(i=>(o.value=i.value,i.issues.length&&(o.value=t.catchValue({...o,error:{issues:i.issues.map(a=>He(a,n,xe()))},input:o.value}),o.issues=[]),o)):(o.value=r.value,r.issues.length&&(o.value=t.catchValue({...o,error:{issues:r.issues.map(i=>He(i,n,xe()))},input:o.value}),o.issues=[]),o)}}),cs=y("$ZodNaN",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),gn=y("$ZodPipe",(e,t)=>{q.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,n)=>{if(n.direction==="backward"){let i=t.out._zod.run(o,n);return i instanceof Promise?i.then(a=>ba(a,t.in,n)):ba(i,t.in,n)}let r=t.in._zod.run(o,n);return r instanceof Promise?r.then(i=>ba(i,t.out,n)):ba(r,t.out,n)}});function ba(e,t,o){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},o)}s(ba,"handlePipeResult");var Hr=y("$ZodCodec",(e,t)=>{q.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),Y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,n)=>{if((n.direction||"forward")==="forward"){let i=t.in._zod.run(o,n);return i instanceof Promise?i.then(a=>Pa(a,t,n)):Pa(i,t,n)}else{let i=t.out._zod.run(o,n);return i instanceof Promise?i.then(a=>Pa(a,t,n)):Pa(i,t,n)}}});function Pa(e,t,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>Aa(e,i,t.out,o)):Aa(e,r,t.out,o)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Aa(e,i,t.in,o)):Aa(e,r,t.in,o)}}s(Pa,"handleCodecAResult");function Aa(e,t,o,n){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:t,issues:e.issues},n)}s(Aa,"handleCodecTxResult");var us=y("$ZodReadonly",(e,t)=>{q.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType?._zod?.optin),Y(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(o,n)=>{if(n.direction==="backward")return t.innerType._zod.run(o,n);let r=t.innerType._zod.run(o,n);return r instanceof Promise?r.then(ag):ag(r)}});function ag(e){return e.value=Object.freeze(e.value),e}s(ag,"handleReadonlyResult");var ls=y("$ZodTemplateLiteral",(e,t)=>{q.init(e,t);let o=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;o.push(r.slice(i,a))}else if(n===null||el.has(typeof n))o.push(ot(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),ps=y("$ZodFunction",(e,t)=>(q.init(e,t),e._def=t,e._zod.def=t,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...n){let r=e._def.input?or(e._def.input,n):n,i=Reflect.apply(o,this,r);return e._def.output?or(e._def.output,i):i}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await nr(e._def.input,n):n,i=await Reflect.apply(o,this,r);return e._def.output?await nr(e._def.output,i):i}},e._zod.parse=(o,n)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let n=e.constructor;return Array.isArray(o[0])?new n({type:"function",input:new ln({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new n({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:o})},e)),ds=y("$ZodPromise",(e,t)=>{q.init(e,t),e._zod.parse=(o,n)=>Promise.resolve(o.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),ms=y("$ZodLazy",(e,t)=>{q.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Y(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Y(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Y(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,n)=>e._zod.innerType._zod.run(o,n)}),yn=y("$ZodCustom",(e,t)=>{de.init(e,t),q.init(e,t),e._zod.parse=(o,n)=>o,e._zod.check=o=>{let n=o.value,r=t.fn(n);if(r instanceof Promise)return r.then(i=>sg(i,o,n,e));sg(r,o,n,e)}});function sg(e,t,o,n){if(!e){let r={code:"custom",input:o,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push(Rr(r))}}s(sg,"handleRefineResult");var Gr={};Xe(Gr,{ar:()=>ep,az:()=>tp,be:()=>rp,bg:()=>op,ca:()=>np,cs:()=>ip,da:()=>ap,de:()=>sp,en:()=>vn,eo:()=>cp,es:()=>up,fa:()=>lp,fi:()=>pp,fr:()=>dp,frCA:()=>mp,he:()=>fp,hu:()=>hp,hy:()=>gp,id:()=>yp,is:()=>vp,it:()=>xp,ja:()=>_p,ka:()=>bp,kh:()=>Pp,km:()=>xn,ko:()=>Ap,lt:()=>Ip,mk:()=>Ep,ms:()=>Tp,nl:()=>Sp,no:()=>wp,ota:()=>Op,pl:()=>$p,ps:()=>kp,pt:()=>Rp,ru:()=>Cp,sl:()=>zp,sv:()=>Dp,ta:()=>Np,th:()=>Mp,tr:()=>Up,ua:()=>Lp,uk:()=>bn,ur:()=>Fp,uz:()=>jp,vi:()=>Bp,yo:()=>Hp,zhCN:()=>Vp,zhTW:()=>Zp});var dT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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}`:`${o[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":""}: ${T(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 ep(){return{localeError:dT()}}s(ep,"default");var mT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${c}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${R(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 tp(){return{localeError:mT()}}s(tp,"default");function dg(e,t,o,n){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?o:n}s(dg,"getBelarusianPlural");var fT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=dg(c,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.maximum.toString()} ${u}`}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?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=dg(c,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${r.minimum.toString()} ${u}`}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 ${o[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"}: ${T(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 rp(){return{localeError:fT()}}s(rp,"default");var hT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${o[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":""}: ${T(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 op(){return{localeError:hT()}}s(op,"default");var gT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${c}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${R(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${T(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 np(){return{localeError:gT()}}s(np,"default");var yT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${c}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${R(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.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 ${o[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: ${T(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 ip(){return{localeError:yT()}}s(ip,"default");var vT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${c}`:`Ugyldigt input: forventede ${i}, fik ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${R(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=n[r.origin]??r.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=n[r.origin]??r.origin;return a?`For lille: forventede ${c} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} 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 ${o[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"}: ${T(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 ap(){return{localeError:vT()}}s(ap,"default");var xT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${c}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${R(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.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: ${o[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"}: ${T(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 sp(){return{localeError:xT()}}s(sp,"default");var _T=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return`Invalid input: expected ${i}, received ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${R(r.values[0])}`:`Invalid option: expected one of ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 vn(){return{localeError:_T()}}s(vn,"default");var bT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${c}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${R(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 cp(){return{localeError:bT()}}s(cp,"default");var PT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${R(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=n[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=n[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} 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 ${o[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":""}: ${T(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function up(){return{localeError:PT()}}s(up,"default");var AT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c} \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 ${c} \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 ${R(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 ${T(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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`:`${o[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: ${T(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 lp(){return{localeError:AT()}}s(lp,"default");var IT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${c}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${R(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 pp(){return{localeError:IT()}}s(pp,"default");var ET=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${c} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${R(r.values[0])} attendu`:`Option invalide : une valeur parmi ${T(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""} : ${T(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 dp(){return{localeError:ET()}}s(dp,"default");var TT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${c}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${R(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""} : ${T(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 mp(){return{localeError:TT()}}s(mp,"default");var ST=s(()=>{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"}},o=s(l=>l?e[l]:void 0,"typeEntry"),n=s(l=>{let d=o(l);return d?d.label:l??e.unknown.label},"typeLabel"),r=s(l=>`\u05D4${n(l)}`,"withDefinite"),i=s(l=>(o(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=s(l=>l?t[l]??null:null,"getSizing"),c={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"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,f=u[d??""]??n(d),h=z(l.input),p=u[h]??e[h]?.label??h;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.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 ${R(l.values[0])}`;let d=l.values.map(p=>R(p));if(l.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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let f=d[d.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 ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let d=a(l.origin),f=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",P=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let h=l.inclusive?"<=":"<",p=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${h}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${p} ${h}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),f=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let A=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${A}`}let P=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${P}`.trim()}let h=l.inclusive?">=":">",p=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${h}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${p} ${h}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.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 ${d.pattern}`;let f=c[d.format],h=f?.label??d.format,v=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${v}`}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 ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${T(l.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(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function fp(){return{localeError:ST()}}s(fp,"default");var wT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${R(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 hp(){return{localeError:wT()}}s(hp,"default");function mg(e,t,o){return Math.abs(e)===1?t:o}s(mg,"getArmenianPlural");function qr(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=e[e.length-1];return e+(t.includes(o)?"\u0576":"\u0568")}s(qr,"withDefiniteArticle");var OT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=mg(c,a.unit.one,a.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 ${qr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${u}`}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 ${qr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=mg(c,a.unit.one,a.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 ${qr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${u}`}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 ${qr(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 ${o[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":""}. ${T(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${qr(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 ${qr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function gp(){return{localeError:OT()}}s(gp,"default");var kT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${i}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${R(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""}: ${T(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 yp(){return{localeError:kT()}}s(yp,"default");var $T=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${R(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 vp(){return{localeError:$T()}}s(vp,"default");var RT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${c}`:`Input non valido: atteso ${i}, ricevuto ${c}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${R(r.values[0])}`:`Opzione non valida: atteso uno tra ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 xp(){return{localeError:RT()}}s(xp,"default");var CT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${R(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${T(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",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.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",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.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${o[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":""}: ${T(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 _p(){return{localeError:CT()}}s(_p,"default");var zT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 bp(){return{localeError:zT()}}s(bp,"default");var DT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.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 ${o[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 ${T(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 xn(){return{localeError:DT()}}s(xn,"default");function Pp(){return xn()}s(Pp,"default");var NT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${R(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${T(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),u=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(r.origin),u=c?.unit??"\uC694\uC18C";return c?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}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 ${o[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: ${T(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 Ap(){return{localeError:NT()}}s(Ap,"default");var _n=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function fg(e){let t=Math.abs(e),o=t%10,n=t%100;return n>=11&&n<=19||o===0?"many":o===1?"one":"few"}s(fg,"getUnitTypeFromNumber");var MT=s(()=>{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,a,c){let u=e[r]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[c][a?"inclusive":"notInclusive"]}}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${R(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${T(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=n[r.origin]??r.origin,a=t(r.origin,fg(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${_n(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${_n(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=n[r.origin]??r.origin,a=t(r.origin,fg(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${_n(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let c=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${_n(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${r.minimum.toString()} ${a?.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 ${o[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"}: ${T(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=n[r.origin]??r.origin;return`${_n(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function Ip(){return{localeError:MT()}}s(Ip,"default");var UT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 ${o[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"}: ${T(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 Ep(){return{localeError:UT()}}s(Ep,"default");var LT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${c}`:`Input tidak sah: dijangka ${i}, diterima ${c}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${R(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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: ${T(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 Tp(){return{localeError:LT()}}s(Tp,"default");var FT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${i}, ontving ${c}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${R(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),c=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),c=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: 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: ${o[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":""}: ${T(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 Sp(){return{localeError:FT()}}s(Sp,"default");var jT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${c}`:`Ugyldig input: forventet ${i}, fikk ${c}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${R(r.values[0])}`:`Ugyldig valg: forventet en av ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 wp(){return{localeError:jT()}}s(wp,"default");var BT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${R(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 Op(){return{localeError:BT()}}s(Op,"default");var VT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c} \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 ${c} \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 ${R(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${T(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.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`:`${o[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"}: ${T(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 kp(){return{localeError:VT()}}s(kp,"default");var ZT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${c}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${R(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.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) ${o[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":""}: ${T(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 $p(){return{localeError:ZT()}}s($p,"default");var HT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${c}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${R(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.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}`:`${o[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":""}: ${T(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 Rp(){return{localeError:HT()}}s(Rp,"default");function hg(e,t,o,n){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?n:i===1?t:i>=2&&i<=4?o:n}s(hg,"getRussianPlural");var qT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let c=Number(r.maximum),u=hg(c,a.unit.one,a.unit.few,a.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()} ${u}`}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?">=":">",a=t(r.origin);if(a){let c=Number(r.minimum),u=hg(c,a.unit.one,a.unit.few,a.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()} ${u}`}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 ${o[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":""}: ${T(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 Cp(){return{localeError:qT()}}s(Cp,"default");var GT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${c}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${R(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.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 ${o[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"}: ${T(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 zp(){return{localeError:GT()}}s(zp,"default");var WT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${c}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${R(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.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) ${o[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"}: ${T(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 Dp(){return{localeError:WT()}}s(Dp,"default");var KT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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()} ${a.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?">=":">",a=t(r.origin);return a?`\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()} ${a.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 ${o[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":""}: ${T(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 Np(){return{localeError:KT()}}s(Np,"default");var JT=s(()=>{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}s(t,"getSizing");let o={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"},n={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=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.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",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.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: ${o[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: ${T(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 Mp(){return{localeError:JT()}}s(Mp,"default");var XT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${c}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${R(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 Up(){return{localeError:XT()}}s(Up,"default");var YT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\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 ${c}`}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 ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\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} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 bn(){return{localeError:YT()}}s(bn,"default");function Lp(){return bn()}s(Lp,"default");var QT=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c} \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 ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${R(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${T(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?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.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 ${o[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":""}: ${T(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 Fp(){return{localeError:QT()}}s(Fp,"default");var eS=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${c}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${R(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.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 ${o[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":""}: ${T(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 jp(){return{localeError:eS()}}s(jp,"default");var tS=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${R(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 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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}`:`${o[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: ${T(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 Bp(){return{localeError:tS()}}s(Bp,"default");var rS=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${R(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.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${o[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): ${T(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 Vp(){return{localeError:rS()}}s(Vp,"default");var oS=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${R(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.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?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.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 ${o[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${T(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 Zp(){return{localeError:oS()}}s(Zp,"default");var nS=s(()=>{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}s(t,"getSizing");let o={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"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=n[r.expected]??r.expected,a=z(r.input),c=n[a]??a;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 ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${R(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${T(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.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?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.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: ${o[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: ${T(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 Hp(){return{localeError:nS()}}s(Hp,"default");var gg,hs=Symbol("ZodOutput"),gs=Symbol("ZodInput"),fs=class{static{s(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...o){let n=o[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let o=this._map.get(t);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(t),this}get(t){let o=t._zod.parent;if(o){let n={...this.get(o)??{}};delete n.id;let r={...n,...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 Pn(){return new fs}s(Pn,"registry");(gg=globalThis).__zod_globalRegistry??(gg.__zod_globalRegistry=Pn());var $e=globalThis.__zod_globalRegistry;function An(e,t){return new e({type:"string",...k(t)})}s(An,"_string");function In(e,t){return new e({type:"string",coerce:!0,...k(t)})}s(In,"_coercedString");function En(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(t)})}s(En,"_email");function Wr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(t)})}s(Wr,"_guid");function Tn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(t)})}s(Tn,"_uuid");function Sn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(t)})}s(Sn,"_uuidv4");function wn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(t)})}s(wn,"_uuidv6");function On(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(t)})}s(On,"_uuidv7");function cr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(t)})}s(cr,"_url");function kn(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(t)})}s(kn,"_emoji");function $n(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(t)})}s($n,"_nanoid");function Rn(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(t)})}s(Rn,"_cuid");function Cn(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(t)})}s(Cn,"_cuid2");function zn(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(t)})}s(zn,"_ulid");function Dn(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(t)})}s(Dn,"_xid");function Nn(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(t)})}s(Nn,"_ksuid");function Mn(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(t)})}s(Mn,"_ipv4");function Un(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(t)})}s(Un,"_ipv6");function ys(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(t)})}s(ys,"_mac");function Ln(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(t)})}s(Ln,"_cidrv4");function Fn(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(t)})}s(Fn,"_cidrv6");function jn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(t)})}s(jn,"_base64");function Bn(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(t)})}s(Bn,"_base64url");function Vn(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(t)})}s(Vn,"_e164");function Zn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(t)})}s(Zn,"_jwt");var vs={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(t)})}s(Hn,"_isoDateTime");function qn(e,t){return new e({type:"string",format:"date",check:"string_format",...k(t)})}s(qn,"_isoDate");function Gn(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(t)})}s(Gn,"_isoTime");function Wn(e,t){return new e({type:"string",format:"duration",check:"string_format",...k(t)})}s(Wn,"_isoDuration");function Kn(e,t){return new e({type:"number",checks:[],...k(t)})}s(Kn,"_number");function Jn(e,t){return new e({type:"number",coerce:!0,checks:[],...k(t)})}s(Jn,"_coercedNumber");function Xn(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(t)})}s(Xn,"_int");function xs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(t)})}s(xs,"_float32");function _s(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(t)})}s(_s,"_float64");function bs(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(t)})}s(bs,"_int32");function Ps(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(t)})}s(Ps,"_uint32");function Yn(e,t){return new e({type:"boolean",...k(t)})}s(Yn,"_boolean");function Qn(e,t){return new e({type:"boolean",coerce:!0,...k(t)})}s(Qn,"_coercedBoolean");function As(e,t){return new e({type:"bigint",...k(t)})}s(As,"_bigint");function ei(e,t){return new e({type:"bigint",coerce:!0,...k(t)})}s(ei,"_coercedBigint");function Is(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(t)})}s(Is,"_int64");function Es(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(t)})}s(Es,"_uint64");function Ts(e,t){return new e({type:"symbol",...k(t)})}s(Ts,"_symbol");function Ss(e,t){return new e({type:"undefined",...k(t)})}s(Ss,"_undefined");function ws(e,t){return new e({type:"null",...k(t)})}s(ws,"_null");function ti(e){return new e({type:"any"})}s(ti,"_any");function ri(e){return new e({type:"unknown"})}s(ri,"_unknown");function Os(e,t){return new e({type:"never",...k(t)})}s(Os,"_never");function oi(e,t){return new e({type:"void",...k(t)})}s(oi,"_void");function ks(e,t){return new e({type:"date",...k(t)})}s(ks,"_date");function ni(e,t){return new e({type:"date",coerce:!0,...k(t)})}s(ni,"_coercedDate");function $s(e,t){return new e({type:"nan",...k(t)})}s($s,"_nan");function ut(e,t){return new va({check:"less_than",...k(t),value:e,inclusive:!1})}s(ut,"_lt");function Le(e,t){return new va({check:"less_than",...k(t),value:e,inclusive:!0})}s(Le,"_lte");function lt(e,t){return new xa({check:"greater_than",...k(t),value:e,inclusive:!1})}s(lt,"_gt");function we(e,t){return new xa({check:"greater_than",...k(t),value:e,inclusive:!0})}s(we,"_gte");function ii(e){return lt(0,e)}s(ii,"_positive");function ai(e){return ut(0,e)}s(ai,"_negative");function si(e){return Le(0,e)}s(si,"_nonpositive");function ci(e){return we(0,e)}s(ci,"_nonnegative");function _t(e,t){return new Rl({check:"multiple_of",...k(t),value:e})}s(_t,"_multipleOf");function bt(e,t){return new Dl({check:"max_size",...k(t),maximum:e})}s(bt,"_maxSize");function pt(e,t){return new Nl({check:"min_size",...k(t),minimum:e})}s(pt,"_minSize");function Nt(e,t){return new Ml({check:"size_equals",...k(t),size:e})}s(Nt,"_size");function Mt(e,t){return new Ul({check:"max_length",...k(t),maximum:e})}s(Mt,"_maxLength");function Te(e,t){return new Ll({check:"min_length",...k(t),minimum:e})}s(Te,"_minLength");function Ut(e,t){return new Fl({check:"length_equals",...k(t),length:e})}s(Ut,"_length");function ze(e,t){return new jl({check:"string_format",format:"regex",...k(t),pattern:e})}s(ze,"_regex");function ur(e){return new Bl({check:"string_format",format:"lowercase",...k(e)})}s(ur,"_lowercase");function lr(e){return new Vl({check:"string_format",format:"uppercase",...k(e)})}s(lr,"_uppercase");function pr(e,t){return new Zl({check:"string_format",format:"includes",...k(t),includes:e})}s(pr,"_includes");function dr(e,t){return new Hl({check:"string_format",format:"starts_with",...k(t),prefix:e})}s(dr,"_startsWith");function mr(e,t){return new ql({check:"string_format",format:"ends_with",...k(t),suffix:e})}s(mr,"_endsWith");function ui(e,t,o){return new Gl({check:"property",property:e,schema:t,...k(o)})}s(ui,"_property");function fr(e,t){return new Wl({check:"mime_type",mime:e,...k(t)})}s(fr,"_mime");function nt(e){return new Kl({check:"overwrite",tx:e})}s(nt,"_overwrite");function hr(e){return nt(t=>t.normalize(e))}s(hr,"_normalize");function gr(){return nt(e=>e.trim())}s(gr,"_trim");function yr(){return nt(e=>e.toLowerCase())}s(yr,"_toLowerCase");function vr(){return nt(e=>e.toUpperCase())}s(vr,"_toUpperCase");function Kr(){return nt(e=>Yu(e))}s(Kr,"_slugify");function qp(e,t,o){return new e({type:"array",element:t,...k(o)})}s(qp,"_array");function aS(e,t,o){return new e({type:"union",options:t,...k(o)})}s(aS,"_union");function sS(e,t,o){return new e({type:"union",options:t,inclusive:!1,...k(o)})}s(sS,"_xor");function cS(e,t,o,n){return new e({type:"union",options:o,discriminator:t,...k(n)})}s(cS,"_discriminatedUnion");function uS(e,t,o){return new e({type:"intersection",left:t,right:o})}s(uS,"_intersection");function lS(e,t,o,n){let r=o instanceof q,i=r?n:o,a=r?o:null;return new e({type:"tuple",items:t,rest:a,...k(i)})}s(lS,"_tuple");function pS(e,t,o,n){return new e({type:"record",keyType:t,valueType:o,...k(n)})}s(pS,"_record");function dS(e,t,o,n){return new e({type:"map",keyType:t,valueType:o,...k(n)})}s(dS,"_map");function mS(e,t,o){return new e({type:"set",valueType:t,...k(o)})}s(mS,"_set");function fS(e,t,o){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...k(o)})}s(fS,"_enum");function hS(e,t,o){return new e({type:"enum",entries:t,...k(o)})}s(hS,"_nativeEnum");function gS(e,t,o){return new e({type:"literal",values:Array.isArray(t)?t:[t],...k(o)})}s(gS,"_literal");function Rs(e,t){return new e({type:"file",...k(t)})}s(Rs,"_file");function yS(e,t){return new e({type:"transform",transform:t})}s(yS,"_transform");function vS(e,t){return new e({type:"optional",innerType:t})}s(vS,"_optional");function xS(e,t){return new e({type:"nullable",innerType:t})}s(xS,"_nullable");function _S(e,t,o){return new e({type:"default",innerType:t,get defaultValue(){return typeof o=="function"?o():ia(o)}})}s(_S,"_default");function bS(e,t,o){return new e({type:"nonoptional",innerType:t,...k(o)})}s(bS,"_nonoptional");function PS(e,t){return new e({type:"success",innerType:t})}s(PS,"_success");function AS(e,t,o){return new e({type:"catch",innerType:t,catchValue:typeof o=="function"?o:()=>o})}s(AS,"_catch");function IS(e,t,o){return new e({type:"pipe",in:t,out:o})}s(IS,"_pipe");function ES(e,t){return new e({type:"readonly",innerType:t})}s(ES,"_readonly");function TS(e,t,o){return new e({type:"template_literal",parts:t,...k(o)})}s(TS,"_templateLiteral");function SS(e,t){return new e({type:"lazy",getter:t})}s(SS,"_lazy");function wS(e,t){return new e({type:"promise",innerType:t})}s(wS,"_promise");function li(e,t,o){let n=k(o);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}s(li,"_custom");function pi(e,t,o){return new e({type:"custom",check:"custom",fn:t,...k(o)})}s(pi,"_refine");function Cs(e){let t=yg(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Rr(n,o.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),o.issues.push(Rr(r))}},e(o.value,o)));return t}s(Cs,"_superRefine");function yg(e,t){let o=new de({check:"custom",...k(t)});return o._zod.check=e,o}s(yg,"_check");function zs(e){let t=new de({check:"describe"});return t._zod.onattach=[o=>{let n=$e.get(o)??{};$e.add(o,{...n,description:e})}],t._zod.check=()=>{},t}s(zs,"describe");function Ds(e){let t=new de({check:"meta"});return t._zod.onattach=[o=>{let n=$e.get(o)??{};$e.add(o,{...n,...e})}],t._zod.check=()=>{},t}s(Ds,"meta");function Ns(e,t){let o=k(t),n=o.truthy??["true","1","yes","on","y","enabled"],r=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(n=n.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(n),a=new Set(r),c=e.Codec??Hr,u=e.Boolean??ar,l=e.String??xt,d=new l({type:"string",error:o.error}),f=new u({type:"boolean",error:o.error}),h=new c({type:"pipe",in:d,out:f,transform:s(((p,v)=>{let P=p;return o.case!=="sensitive"&&(P=P.toLowerCase()),i.has(P)?!0:a.has(P)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:v.value,inst:h,continue:!1}),{})}),"transform"),reverseTransform:s(((p,v)=>p===!0?n[0]||"true":r[0]||"false"),"reverseTransform"),error:o.error});return h}s(Ns,"_stringbool");function xr(e,t,o,n={}){let r=k(n),i={...k(n),check:"string_format",type:"string",format:t,fn:typeof o=="function"?o:c=>o.test(c),...r};return o instanceof RegExp&&(i.pattern=o),new e(i)}s(xr,"_stringFormat");function Lt(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??$e,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}}s(Lt,"initializeContext");function le(e,t,o={path:[],schemaPath:[]}){var n;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,o.schemaPath.includes(e)&&(i.cycle=o.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:o.path};t.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let d={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let h=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,h,d)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),le(f,t,d),t.seen.get(f).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&Fe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}s(le,"process");function Ft(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let u=n.get(c);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(c,a[0])}}let r=s(a=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,h=e.external.uri??(v=>v);if(f)return{ref:h(f)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${h("__shared")}#/${c}/${p}`}}if(a[1]===o)return{ref:"#"};let l=`#/${c}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},"makeURI"),i=s(a=>{if(a[1].schema.$ref)return;let c=a[1],{ref:u,defId:l}=r(a);c.def={...c.schema},l&&(c.defId=l);let d=c.schema;for(let f in d)delete d[f];d.$ref=u},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
|
|
43
43
|
|
|
44
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let u=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(u.cycle){i(a);continue}if(u.count>1&&e.reused==="ref"){i(a);continue}}}s(Nt,"extractDefs");function Mt(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s(a=>{let u=e.seen.get(a);if(u.ref===null)return;let c=u.def??u.schema,l={...c},m=u.ref;if(u.ref=null,m){o(m);let g=e.seen.get(m),p=g.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Object.assign(c,p),Object.assign(c,l),a._zod.parent===m)for(let _ in c)_==="$ref"||_==="allOf"||_ in l||delete c[_];if(p.$ref&&g.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in g.def&&JSON.stringify(c[_])===JSON.stringify(g.def[_])&&delete c[_]}let f=a._zod.parent;if(f&&f!==m){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let p in c)p==="$ref"||p==="allOf"||p in g.def&&JSON.stringify(c[p])===JSON.stringify(g.def[p])&&delete c[p]}e.override({zodSchema:a,jsonSchema:c,path:u.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())o(a[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 a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let u=a[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 a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Zr(t,"input",e.processors),output:Zr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(Mt,"finalize");function Me(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 Me(o.element,n);if(o.type==="set")return Me(o.valueType,n);if(o.type==="lazy")return Me(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 Me(o.innerType,n);if(o.type==="intersection")return Me(o.left,n)||Me(o.right,n);if(o.type==="record"||o.type==="map")return Me(o.keyType,n)||Me(o.valueType,n);if(o.type==="pipe")return Me(o.in,n)||Me(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Me(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Me(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Me(r,n))return!0;return!!(o.rest&&Me(o.rest,n))}return!1}s(Me,"isTransforming");var Op=s((e,t={})=>n=>{let o=Ct({...n,processors:t});return se(e,o),Nt(o,e),Mt(o,e)},"createToJSONSchemaMethod"),Zr=s((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=Ct({...r??{},target:i,io:t,processors:n});return se(e,a),Nt(a,e),Mt(a,e)},"createStandardJSONSchemaMethod");var KT={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},wp=s((e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:a,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),u&&(r.format=KT[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let m=[...c];m.length===1?r.pattern=m[0].source:m.length>1&&(r.allOf=[...m.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},"stringProcessor"),zp=s((e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:u,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:m}=e._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof m=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=m,r.exclusiveMinimum=!0):r.exclusiveMinimum=m),typeof i=="number"&&(r.minimum=i,typeof m=="number"&&t.target!=="draft-04"&&(m>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof c=="number"&&(r.multipleOf=c)},"numberProcessor"),Rp=s((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),kp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Dp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Cp=s((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Np=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Mp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Up=s((e,t,n,o)=>{n.not={}},"neverProcessor"),Lp=s((e,t,n,o)=>{},"anyProcessor"),jp=s((e,t,n,o)=>{},"unknownProcessor"),Fp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Bp=s((e,t,n,o)=>{let r=e._zod.def,i=On(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),Zp=s((e,t,n,o)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},"literalProcessor"),Vp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Hp=s((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"),qp=s((e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:u,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),u!==void 0&&(i.maxLength=u),c?c.length===1?(i.contentMediaType=c[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,i)},"fileProcessor"),Gp=s((e,t,n,o)=>{n.type="boolean"},"successProcessor"),Wp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),Jp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),Kp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),Xp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),Yp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),Qp=s((e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:a,maximum:u}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof u=="number"&&(r.maxItems=u),r.type="array",r.items=se(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),ed=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let l in a)r.properties[l]=se(a[l],t,{...o,path:[...o.path,"properties",l]});let u=new Set(Object.keys(a)),c=new Set([...u].filter(l=>{let m=i.shape[l]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));c.size>0&&(r.required=Array.from(c)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=se(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),bs=s((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((u,c)=>se(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},"unionProcessor"),td=s((e,t,n,o)=>{let r=e._zod.def,i=se(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=se(r.right,t,{...o,path:[...o.path,"allOf",1]}),u=s(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),c=[...u(i)?i.allOf:[i],...u(a)?a.allOf:[a]];n.allOf=c},"intersectionProcessor"),rd=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,p)=>se(g,t,{...o,path:[...o.path,a,p]})),l=i.rest?se(i.rest,t,{...o,path:[...o.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=c,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));let{minimum:m,maximum:f}=e._zod.bag;typeof m=="number"&&(r.minItems=m),typeof f=="number"&&(r.maxItems=f)},"tupleProcessor"),nd=s((e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let m=se(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let f of c)r.patternProperties[f.source]=m}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=se(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=se(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let m=[...l].filter(f=>typeof f=="string"||typeof f=="number");m.length>0&&(r.required=m)}},"recordProcessor"),od=s((e,t,n,o)=>{let r=e._zod.def,i=se(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},"nullableProcessor"),id=s((e,t,n,o)=>{let r=e._zod.def;se(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),ad=s((e,t,n,o)=>{let r=e._zod.def;se(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),sd=s((e,t,n,o)=>{let r=e._zod.def;se(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"),ud=s((e,t,n,o)=>{let r=e._zod.def;se(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},"catchProcessor"),cd=s((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;se(i,t,o);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),ld=s((e,t,n,o)=>{let r=e._zod.def;se(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),pd=s((e,t,n,o)=>{let r=e._zod.def;se(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),Es=s((e,t,n,o)=>{let r=e._zod.def;se(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),dd=s((e,t,n,o)=>{let r=e._zod.innerType;se(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Ps={string:wp,number:zp,boolean:Rp,bigint:kp,symbol:Dp,null:Cp,undefined:Np,void:Mp,never:Up,any:Lp,unknown:jp,date:Fp,enum:Bp,literal:Zp,nan:Vp,template_literal:Hp,file:qp,success:Gp,custom:Wp,function:Jp,transform:Kp,map:Xp,set:Yp,array:Qp,object:ed,union:bs,intersection:td,tuple:rd,record:nd,nullable:od,nonoptional:id,default:ad,prefault:sd,catch:ud,pipe:cd,readonly:ld,promise:pd,optional:Es,lazy:dd};function Vo(e,t){if("_idmap"in e){let o=e,r=Ct({...t,processors:Ps}),i={};for(let c of o._idmap.entries()){let[l,m]=c;se(m,r)}let a={},u={registry:o,uri:t?.uri,defs:i};r.external=u;for(let c of o._idmap.entries()){let[l,m]=c;Nt(r,m),a[l]=Mt(r,m)}if(Object.keys(i).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let n=Ct({...t,processors:Ps});return se(e,n),Nt(n,e),Mt(n,e)}s(Vo,"toJSONSchema");var Ts=class{static{s(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=Ct({processors:Ps,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 se(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)),Nt(this.ctx,t);let o=Mt(this.ctx,t),{"~standard":r,...i}=o;return i}};var Vg={};var Se=h("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");B.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>Xt(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>zr(e,n,o),e.parseAsync=async(n,o)=>Yt(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>kr(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)=>$e(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Ss=h("ZodMiniString",(e,t)=>{gt.init(e,t),Se.init(e,t)});function d(e){return io(Ss,e)}s(d,"string");var Hg=h("ZodMiniStringFormat",(e,t)=>{ae.init(e,t),Ss.init(e,t)});var QT=h("ZodMiniURL",(e,t)=>{Un.init(e,t),Hg.init(e,t)});function qg(e){return rr(QT,e)}s(qg,"url");var Is=h("ZodMiniNumber",(e,t)=>{Cr.init(e,t),Se.init(e,t)});function we(e){return $o(Is,e)}s(we,"number");var eS=h("ZodMiniNumberFormat",(e,t)=>{Ln.init(e,t),Is.init(e,t)});function Gg(e){return wo(eS,e)}s(Gg,"int");var md=h("ZodMiniBoolean",(e,t)=>{er.init(e,t),Se.init(e,t)});function oe(e){return zo(md,e)}s(oe,"boolean");var Wg=h("ZodMiniBigInt",(e,t)=>{Nr.init(e,t),Se.init(e,t)});var tS=h("ZodMiniAny",(e,t)=>{jn.init(e,t),Se.init(e,t)});function Ho(){return Do(tS)}s(Ho,"any");var rS=h("ZodMiniUnknown",(e,t)=>{Fn.init(e,t),Se.init(e,t)});function H(){return Co(rS)}s(H,"unknown");var nS=h("ZodMiniVoid",(e,t)=>{Bn.init(e,t),Se.init(e,t)});function Jg(e){return No(nS,e)}s(Jg,"_void");var Kg=h("ZodMiniDate",(e,t)=>{Zn.init(e,t),Se.init(e,t)});var oS=h("ZodMiniArray",(e,t)=>{Vn.init(e,t),Se.init(e,t)});function F(e,t){return new oS({type:"array",element:e,...T(t)})}s(F,"array");var iS=h("ZodMiniObject",(e,t)=>{Oa.init(e,t),Se.init(e,t),W(e,"shape",()=>t.shape)});function v(e,t){let n={type:"object",shape:e??{},...T(t)};return new iS(n)}s(v,"object");var aS=h("ZodMiniUnion",(e,t)=>{tr.init(e,t),Se.init(e,t)});function J(e,t){return new aS({type:"union",options:e,...T(t)})}s(J,"union");var sS=h("ZodMiniDiscriminatedUnion",(e,t)=>{Hn.init(e,t),Se.init(e,t)});function Ut(e,t,n){return new sS({type:"union",options:t,discriminator:e,...T(n)})}s(Ut,"discriminatedUnion");var uS=h("ZodMiniRecord",(e,t)=>{Gn.init(e,t),Se.init(e,t)});function q(e,t,n){return new uS({type:"record",keyType:e,valueType:t,...T(n)})}s(q,"record");var cS=h("ZodMiniEnum",(e,t)=>{Wn.init(e,t),Se.init(e,t),e.options=Object.values(t.entries)});function j(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new cS({type:"enum",entries:n,...T(t)})}s(j,"_enum");var lS=h("ZodMiniLiteral",(e,t)=>{Jn.init(e,t),Se.init(e,t)});function L(e,t){return new lS({type:"literal",values:Array.isArray(e)?e:[e],...T(t)})}s(L,"literal");var pS=h("ZodMiniTransform",(e,t)=>{Kn.init(e,t),Se.init(e,t)});function Lt(e){return new pS({type:"transform",transform:e})}s(Lt,"transform");var dS=h("ZodMiniOptional",(e,t)=>{Mr.init(e,t),Se.init(e,t)});function b(e){return new dS({type:"optional",innerType:e})}s(b,"optional");var mS=h("ZodMiniNullable",(e,t)=>{Xn.init(e,t),Se.init(e,t)});function qo(e){return new mS({type:"nullable",innerType:e})}s(qo,"nullable");var fS=h("ZodMiniPipe",(e,t)=>{Yn.init(e,t),Se.init(e,t)});function jt(e,t){return new fS({type:"pipe",in:e,out:t})}s(jt,"pipe");var gS=h("ZodMiniCustom",(e,t)=>{Qn.init(e,t),Se.init(e,t)});function As(e,t){return Zo(gS,e??(()=>!0),t)}s(As,"custom");var Go={};Ye(Go,{bigint:()=>xS,boolean:()=>_S,date:()=>PS,number:()=>vS,string:()=>yS});function yS(e){return ao(Ss,e)}s(yS,"string");function vS(e){return Oo(Is,e)}s(vS,"number");function _S(e){return Ro(md,e)}s(_S,"boolean");function xS(e){return ko(Wg,e)}s(xS,"bigint");function PS(e){return Mo(Kg,e)}s(PS,"date");var gd=v({retryOnFailure:v({defaultValue:b(oe()),hide:b(oe())}),continueOnFailure:v({defaultValue:b(oe()),hide:b(oe())})}),fd=class{constructor(t,n,o,r,i,a,u,c,l,m,f,g,p){this.name=t;this.displayName=n;this.description=o;this.props=r;this.propertyGroups=i;this.run=a;this.test=u;this.requireAuth=c;this.errorHandlingOptions=l;this.outputSchema=m;this.audience=f;this.aiMetadata=g;this.classification=p}static{s(this,"IAction")}},me=s(e=>new fd(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 re=v({displayName:d(),description:b(d()),advanced:b(oe()),width:b(j(["half","full"])),icon:b(d()),placeholder:b(d())}),G=s((e,t)=>v({type:L(t),required:oe(),defaultValue:b(Ho())}),"TPropertyValue");var Je=v({...re.shape,...G(d(),"SHORT_TEXT").shape}),vt=v({...re.shape,...G(d(),"LONG_TEXT").shape});var Yg=v({label:d(),value:H(),description:b(d()),icon:b(d())}),$s=v({disabled:b(oe()),placeholder:b(d()),options:F(Yg)});var ES=j(["cards"]),Ke=v({...re.shape,options:$s,display:b(ES),...G(H(),"STATIC_DROPDOWN").shape}),_t=v({...re.shape,options:$s,...G(F(H()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var hd=v({...re.shape,...G(H(),"DROPDOWN").shape,refreshers:F(d())}),Wo=v({...re.shape,...G(F(H()),"MULTI_SELECT_DROPDOWN").shape,refreshers:F(d())});var xt=v({...re.shape,reveals:b(F(d())),...G(oe(),"CHECKBOX").shape});var Pt=v({...re.shape,display:b(j(["stepper"])),min:b(we()),max:b(we()),step:b(we()),...G(we(),"NUMBER").shape});var Jo=v({...re.shape,streaming:b(oe()),...G(H(),"FILE").shape});var Ko=v({...re.shape,...G(d(),"DATE_TIME").shape});var Qg=q(d(),J([Je,vt,Ke,Wo,_t,xt,Pt,Jo,Ko])),Xo=v({...re.shape,properties:Qg,...G(F(H()),"ARRAY").shape});var eh=j(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),th=v({preset:b(eh),after:b(d()),before:b(d())}),yd=v({...re.shape,display:b(j(["dropdown"])),...G(th,"DATE_RANGE").shape});var Yo=v({...re.shape,...G(J([q(d(),H())]),"JSON").shape});var rh=J([Je,Ke,Yo,Xo,_t]),TS=q(d(),rh),vd=v({refreshers:F(d()),...re.shape,...G(H(),"DYNAMIC").shape});var Os=v({...re.shape,...G(Jg(),"MARKDOWN").shape});var Qo=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(Qo||{}),Vr=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Vr||{}),Hr=(x=>(x.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",x.COMMUNICATION="COMMUNICATION",x.COMMERCE="COMMERCE",x.CORE="CORE",x.UNIVERSAL_AI="UNIVERSAL_AI",x.FLOW_CONTROL="FLOW_CONTROL",x.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",x.ACCOUNTING="ACCOUNTING",x.PRODUCTIVITY="PRODUCTIVITY",x.CONTENT_AND_FILES="CONTENT_AND_FILES",x.DEVELOPER_TOOLS="DEVELOPER_TOOLS",x.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",x.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",x.HUMAN_RESOURCES="HUMAN_RESOURCES",x.PAYMENT_PROCESSING="PAYMENT_PROCESSING",x.MARKETING="MARKETING",x.SALES_AND_CRM="SALES_AND_CRM",x))(Hr||{});var ei=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(ei||{}),_d="both_client_credentials_and_authorization_code";var lt=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(lt||{}),ti=(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))(ti||{}),SS=v({strategy:j(ti),paramName:b(d())}),ri=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(ri||{});var ws=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(ws||{}),nh=v({status:b(we()),body:b(H()),headers:b(q(d(),d()))}),oh=v({type:L("DELAY"),resumeDateTime:d(),requestIdToReply:b(d()),handlerId:b(d()),streamStepProgress:b(j(ws))}),ih=v({type:L("WEBHOOK"),requestId:d(),requestIdToReply:b(d()),response:nh,handlerId:b(d()),streamStepProgress:b(j(ws))}),IS=J([oh,ih]);var AS=v({body:H(),rawBody:b(H()),headers:q(d(),d()),queryParams:q(d(),d())});function ye(e){return e==null}s(ye,"isNil");function ni(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(ni,"isEmpty");function bt(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(bt,"assertNotNullOrUndefined");function xd(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(xd,"tryCatchSync");var Pd=ot(require("crypto"),1);var $S=128,Ft,qr,OS=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Ft||Ft.length<e?(Ft=Buffer.allocUnsafe(e*$S),Pd.default.randomFillSync(Ft),qr=0):qr+e>Ft.length&&(Pd.default.randomFillSync(Ft),qr=0)}catch(t){throw Ft=void 0,t}qr+=e},"fillPool"),wS=s(e=>(OS(e|=0),Ft.subarray(qr-e,qr)),"random"),zS=s((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 a="";for(;;){let u=n(r),c=r;for(;c--;)if(a+=e[u[c]&o]||"",a.length===i)return a}}},"customRandom"),sh=s((e,t=21)=>zS(e,t,wS),"customAlphabet");var RS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",uh=21,f0=d().check(Re(new RegExp(`^[0-9a-zA-Z]{${uh}}$`))),kS=sh(RS,uh);var Bt=jt(Lt(e=>e instanceof Date?e.toISOString():e),d()),tt={id:d(),created:Bt,updated:Bt},ve=s(e=>b(qo(e)),"Nullable");function bd(e){return b(qo(j(e)))}s(bd,"NullableEnum");var y0=jt(Lt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),b(oe())),zs=s(e=>jt(Lt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),b(F(e))),"OptionalArrayFromQuery");var x0=q(d(),H());var Gr=(x=>(x.OPENAI="openai",x.OPENROUTER="openrouter",x.ANTHROPIC="anthropic",x.AZURE="azure",x.GOOGLE="google",x.ACTIVEPIECES="activepieces",x.CLOUDFLARE_GATEWAY="cloudflare-gateway",x.CUSTOM="custom",x.BEDROCK="bedrock",x.VERTEX="vertex",x.MISTRAL="mistral",x.XAI="xai",x.DEEPSEEK="deepseek",x.ZAI="zai",x.QWEN="qwen",x.MINIMAX="minimax",x.MOONSHOT="moonshot",x))(Gr||{});var k0=d().check(Re(/^#[0-9A-Fa-f]{6}$/));var C0=v({filename:d(),data:H(),type:L("file"),mimetype:b(d())});var DS=ot(lh());var B0=v({...tt,name:d(),permissions:F(d()),platformId:ve(d()),type:d(),userCount:b(we())});var du={};Ye(du,{$brand:()=>An,$input:()=>Ja,$output:()=>Wa,NEVER:()=>zi,TimePrecision:()=>Xa,ZodAny:()=>qd,ZodArray:()=>Kd,ZodBase64:()=>Qs,ZodBase64URL:()=>eu,ZodBigInt:()=>en,ZodBigIntFormat:()=>nu,ZodBoolean:()=>Qr,ZodCIDRv4:()=>Xs,ZodCIDRv6:()=>Ys,ZodCUID:()=>Vs,ZodCUID2:()=>Hs,ZodCatch:()=>vm,ZodCodec:()=>pu,ZodCustom:()=>gi,ZodCustomStringFormat:()=>Xr,ZodDate:()=>li,ZodDefault:()=>dm,ZodDiscriminatedUnion:()=>Yd,ZodE164:()=>tu,ZodEmail:()=>Fs,ZodEmoji:()=>Bs,ZodEnum:()=>Jr,ZodError:()=>CS,ZodExactOptional:()=>cm,ZodFile:()=>sm,ZodFirstPartyTypeKind:()=>wm,ZodFunction:()=>Am,ZodGUID:()=>ii,ZodIPv4:()=>Js,ZodIPv6:()=>Ks,ZodISODate:()=>Cs,ZodISODateTime:()=>Ds,ZodISODuration:()=>Ms,ZodISOTime:()=>Ns,ZodIntersection:()=>Qd,ZodIssueCode:()=>MS,ZodJWT:()=>ru,ZodKSUID:()=>Ws,ZodLazy:()=>Tm,ZodLiteral:()=>am,ZodMAC:()=>Ld,ZodMap:()=>om,ZodNaN:()=>xm,ZodNanoID:()=>Zs,ZodNever:()=>Wd,ZodNonOptional:()=>cu,ZodNull:()=>Vd,ZodNullable:()=>pm,ZodNumber:()=>Yr,ZodNumberFormat:()=>gr,ZodObject:()=>di,ZodOptional:()=>uu,ZodPipe:()=>lu,ZodPrefault:()=>fm,ZodPromise:()=>Im,ZodReadonly:()=>Pm,ZodRealError:()=>Ve,ZodRecord:()=>fi,ZodSet:()=>im,ZodString:()=>Kr,ZodStringFormat:()=>ce,ZodSuccess:()=>ym,ZodSymbol:()=>Bd,ZodTemplateLiteral:()=>Em,ZodTransform:()=>um,ZodTuple:()=>tm,ZodType:()=>K,ZodULID:()=>qs,ZodURL:()=>ci,ZodUUID:()=>pt,ZodUndefined:()=>Zd,ZodUnion:()=>mi,ZodUnknown:()=>Gd,ZodVoid:()=>Jd,ZodXID:()=>Gs,ZodXor:()=>Xd,_ZodString:()=>js,_default:()=>mm,_function:()=>yy,any:()=>Jh,array:()=>pi,base64:()=>Rh,base64url:()=>kh,bigint:()=>Vh,boolean:()=>Fd,catch:()=>_m,check:()=>vy,cidrv4:()=>wh,cidrv6:()=>zh,clone:()=>$e,codec:()=>fy,coerce:()=>zm,config:()=>he,core:()=>We,cuid:()=>bh,cuid2:()=>Eh,custom:()=>_y,date:()=>Xh,decode:()=>Rd,decodeAsync:()=>Dd,describe:()=>xy,discriminatedUnion:()=>ny,e164:()=>Dh,email:()=>dh,emoji:()=>xh,encode:()=>zd,encodeAsync:()=>kd,endsWith:()=>sr,enum:()=>au,exactOptional:()=>lm,file:()=>ly,flattenError:()=>Ir,float32:()=>jh,float64:()=>Fh,formatError:()=>Ar,fromJSONSchema:()=>Ay,function:()=>yy,getErrorMap:()=>LS,globalRegistry:()=>Oe,gt:()=>st,gte:()=>Ie,guid:()=>mh,hash:()=>Lh,hex:()=>Uh,hostname:()=>Mh,httpUrl:()=>_h,includes:()=>ir,instanceof:()=>by,int:()=>Ls,int32:()=>Bh,int64:()=>Hh,intersection:()=>em,ipv4:()=>Ah,ipv6:()=>Oh,iso:()=>Wr,json:()=>Ty,jwt:()=>Ch,keyof:()=>Yh,ksuid:()=>Ih,lazy:()=>Sm,length:()=>Dt,literal:()=>cy,locales:()=>jr,looseObject:()=>ty,looseRecord:()=>iy,lowercase:()=>nr,lt:()=>at,lte:()=>Ne,mac:()=>$h,map:()=>ay,maxLength:()=>kt,maxSize:()=>yt,meta:()=>Py,mime:()=>ur,minLength:()=>Te,minSize:()=>ut,multipleOf:()=>ht,nan:()=>my,nanoid:()=>Ph,nativeEnum:()=>uy,negative:()=>Lo,never:()=>ou,nonnegative:()=>Fo,nonoptional:()=>hm,nonpositive:()=>jo,normalize:()=>cr,null:()=>Hd,nullable:()=>si,nullish:()=>py,number:()=>jd,object:()=>Qh,optional:()=>ai,overwrite:()=>et,parse:()=>Ad,parseAsync:()=>$d,partialRecord:()=>oy,pipe:()=>ui,positive:()=>Uo,prefault:()=>gm,preprocess:()=>Sy,prettifyError:()=>Ni,promise:()=>hy,property:()=>Bo,readonly:()=>bm,record:()=>nm,refine:()=>$m,regex:()=>Re,regexes:()=>Ze,registry:()=>oo,safeDecode:()=>Nd,safeDecodeAsync:()=>Ud,safeEncode:()=>Cd,safeEncodeAsync:()=>Md,safeParse:()=>Od,safeParseAsync:()=>wd,set:()=>sy,setErrorMap:()=>US,size:()=>Rt,slugify:()=>Br,startsWith:()=>ar,strictObject:()=>ey,string:()=>Us,stringFormat:()=>Nh,stringbool:()=>Ey,success:()=>dy,superRefine:()=>Om,symbol:()=>Gh,templateLiteral:()=>gy,toJSONSchema:()=>Vo,toLowerCase:()=>pr,toUpperCase:()=>dr,transform:()=>su,treeifyError:()=>Ci,trim:()=>lr,tuple:()=>rm,uint32:()=>Zh,uint64:()=>qh,ulid:()=>Th,undefined:()=>Wh,union:()=>iu,unknown:()=>fr,uppercase:()=>or,url:()=>vh,util:()=>A,uuid:()=>fh,uuidv4:()=>gh,uuidv6:()=>hh,uuidv7:()=>yh,void:()=>Kh,xid:()=>Sh,xor:()=>ry});var oi={};Ye(oi,{ZodAny:()=>qd,ZodArray:()=>Kd,ZodBase64:()=>Qs,ZodBase64URL:()=>eu,ZodBigInt:()=>en,ZodBigIntFormat:()=>nu,ZodBoolean:()=>Qr,ZodCIDRv4:()=>Xs,ZodCIDRv6:()=>Ys,ZodCUID:()=>Vs,ZodCUID2:()=>Hs,ZodCatch:()=>vm,ZodCodec:()=>pu,ZodCustom:()=>gi,ZodCustomStringFormat:()=>Xr,ZodDate:()=>li,ZodDefault:()=>dm,ZodDiscriminatedUnion:()=>Yd,ZodE164:()=>tu,ZodEmail:()=>Fs,ZodEmoji:()=>Bs,ZodEnum:()=>Jr,ZodExactOptional:()=>cm,ZodFile:()=>sm,ZodFunction:()=>Am,ZodGUID:()=>ii,ZodIPv4:()=>Js,ZodIPv6:()=>Ks,ZodIntersection:()=>Qd,ZodJWT:()=>ru,ZodKSUID:()=>Ws,ZodLazy:()=>Tm,ZodLiteral:()=>am,ZodMAC:()=>Ld,ZodMap:()=>om,ZodNaN:()=>xm,ZodNanoID:()=>Zs,ZodNever:()=>Wd,ZodNonOptional:()=>cu,ZodNull:()=>Vd,ZodNullable:()=>pm,ZodNumber:()=>Yr,ZodNumberFormat:()=>gr,ZodObject:()=>di,ZodOptional:()=>uu,ZodPipe:()=>lu,ZodPrefault:()=>fm,ZodPromise:()=>Im,ZodReadonly:()=>Pm,ZodRecord:()=>fi,ZodSet:()=>im,ZodString:()=>Kr,ZodStringFormat:()=>ce,ZodSuccess:()=>ym,ZodSymbol:()=>Bd,ZodTemplateLiteral:()=>Em,ZodTransform:()=>um,ZodTuple:()=>tm,ZodType:()=>K,ZodULID:()=>qs,ZodURL:()=>ci,ZodUUID:()=>pt,ZodUndefined:()=>Zd,ZodUnion:()=>mi,ZodUnknown:()=>Gd,ZodVoid:()=>Jd,ZodXID:()=>Gs,ZodXor:()=>Xd,_ZodString:()=>js,_default:()=>mm,_function:()=>yy,any:()=>Jh,array:()=>pi,base64:()=>Rh,base64url:()=>kh,bigint:()=>Vh,boolean:()=>Fd,catch:()=>_m,check:()=>vy,cidrv4:()=>wh,cidrv6:()=>zh,codec:()=>fy,cuid:()=>bh,cuid2:()=>Eh,custom:()=>_y,date:()=>Xh,describe:()=>xy,discriminatedUnion:()=>ny,e164:()=>Dh,email:()=>dh,emoji:()=>xh,enum:()=>au,exactOptional:()=>lm,file:()=>ly,float32:()=>jh,float64:()=>Fh,function:()=>yy,guid:()=>mh,hash:()=>Lh,hex:()=>Uh,hostname:()=>Mh,httpUrl:()=>_h,instanceof:()=>by,int:()=>Ls,int32:()=>Bh,int64:()=>Hh,intersection:()=>em,ipv4:()=>Ah,ipv6:()=>Oh,json:()=>Ty,jwt:()=>Ch,keyof:()=>Yh,ksuid:()=>Ih,lazy:()=>Sm,literal:()=>cy,looseObject:()=>ty,looseRecord:()=>iy,mac:()=>$h,map:()=>ay,meta:()=>Py,nan:()=>my,nanoid:()=>Ph,nativeEnum:()=>uy,never:()=>ou,nonoptional:()=>hm,null:()=>Hd,nullable:()=>si,nullish:()=>py,number:()=>jd,object:()=>Qh,optional:()=>ai,partialRecord:()=>oy,pipe:()=>ui,prefault:()=>gm,preprocess:()=>Sy,promise:()=>hy,readonly:()=>bm,record:()=>nm,refine:()=>$m,set:()=>sy,strictObject:()=>ey,string:()=>Us,stringFormat:()=>Nh,stringbool:()=>Ey,success:()=>dy,superRefine:()=>Om,symbol:()=>Gh,templateLiteral:()=>gy,transform:()=>su,tuple:()=>rm,uint32:()=>Zh,uint64:()=>qh,ulid:()=>Th,undefined:()=>Wh,union:()=>iu,unknown:()=>fr,url:()=>vh,uuid:()=>fh,uuidv4:()=>gh,uuidv6:()=>hh,uuidv7:()=>yh,void:()=>Kh,xid:()=>Sh,xor:()=>ry});var ks={};Ye(ks,{endsWith:()=>sr,gt:()=>st,gte:()=>Ie,includes:()=>ir,length:()=>Dt,lowercase:()=>nr,lt:()=>at,lte:()=>Ne,maxLength:()=>kt,maxSize:()=>yt,mime:()=>ur,minLength:()=>Te,minSize:()=>ut,multipleOf:()=>ht,negative:()=>Lo,nonnegative:()=>Fo,nonpositive:()=>jo,normalize:()=>cr,overwrite:()=>et,positive:()=>Uo,property:()=>Bo,regex:()=>Re,size:()=>Rt,slugify:()=>Br,startsWith:()=>ar,toLowerCase:()=>pr,toUpperCase:()=>dr,trim:()=>lr,uppercase:()=>or});var Wr={};Ye(Wr,{ZodISODate:()=>Cs,ZodISODateTime:()=>Ds,ZodISODuration:()=>Ms,ZodISOTime:()=>Ns,date:()=>Td,datetime:()=>Ed,duration:()=>Id,time:()=>Sd});var Ds=h("ZodISODateTime",(e,t)=>{la.init(e,t),ce.init(e,t)});function Ed(e){return Ya(Ds,e)}s(Ed,"datetime");var Cs=h("ZodISODate",(e,t)=>{pa.init(e,t),ce.init(e,t)});function Td(e){return Qa(Cs,e)}s(Td,"date");var Ns=h("ZodISOTime",(e,t)=>{da.init(e,t),ce.init(e,t)});function Sd(e){return es(Ns,e)}s(Sd,"time");var Ms=h("ZodISODuration",(e,t)=>{ma.init(e,t),ce.init(e,t)});function Id(e){return ts(Ms,e)}s(Id,"duration");var ph=s((e,t)=>{Dn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(n=>Ar(e,n),"value")},flatten:{value:s(n=>Ir(e,n),"value")},addIssue:{value:s(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Er,2)},"value")},addIssues:{value:s(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Er,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),CS=h("ZodError",ph),Ve=h("ZodError",ph,{Parent:Error});var Ad=$r(Ve),$d=Or(Ve),Od=wr(Ve),wd=Rr(Ve),zd=Mi(Ve),Rd=Ui(Ve),kd=Li(Ve),Dd=ji(Ve),Cd=Fi(Ve),Nd=Bi(Ve),Md=Zi(Ve),Ud=Vi(Ve);var K=h("ZodType",(e,t)=>(B.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Zr(e,"input"),output:Zr(e,"output")}}),e.toJSONSchema=Op(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(A.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)=>$e(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Ad(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Od(e,n,o),e.parseAsync=async(n,o)=>$d(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>wd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>zd(e,n,o),e.decode=(n,o)=>Rd(e,n,o),e.encodeAsync=async(n,o)=>kd(e,n,o),e.decodeAsync=async(n,o)=>Dd(e,n,o),e.safeEncode=(n,o)=>Cd(e,n,o),e.safeDecode=(n,o)=>Nd(e,n,o),e.safeEncodeAsync=async(n,o)=>Md(e,n,o),e.safeDecodeAsync=async(n,o)=>Ud(e,n,o),e.refine=(n,o)=>e.check($m(n,o)),e.superRefine=n=>e.check(Om(n)),e.overwrite=n=>e.check(et(n)),e.optional=()=>ai(e),e.exactOptional=()=>lm(e),e.nullable=()=>si(e),e.nullish=()=>ai(si(e)),e.nonoptional=n=>hm(e,n),e.array=()=>pi(e),e.or=n=>iu([e,n]),e.and=n=>em(e,n),e.transform=n=>ui(e,su(n)),e.default=n=>mm(e,n),e.prefault=n=>gm(e,n),e.catch=n=>_m(e,n),e.pipe=n=>ui(e,n),e.readonly=()=>bm(e),e.describe=n=>{let o=e.clone();return Oe.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Oe.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Oe.get(e);let o=e.clone();return Oe.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),js=h("_ZodString",(e,t)=>{gt.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>wp(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(Re(...o)),e.includes=(...o)=>e.check(ir(...o)),e.startsWith=(...o)=>e.check(ar(...o)),e.endsWith=(...o)=>e.check(sr(...o)),e.min=(...o)=>e.check(Te(...o)),e.max=(...o)=>e.check(kt(...o)),e.length=(...o)=>e.check(Dt(...o)),e.nonempty=(...o)=>e.check(Te(1,...o)),e.lowercase=o=>e.check(nr(o)),e.uppercase=o=>e.check(or(o)),e.trim=()=>e.check(lr()),e.normalize=(...o)=>e.check(cr(...o)),e.toLowerCase=()=>e.check(pr()),e.toUpperCase=()=>e.check(dr()),e.slugify=()=>e.check(Br())}),Kr=h("ZodString",(e,t)=>{gt.init(e,t),js.init(e,t),e.email=n=>e.check(so(Fs,n)),e.url=n=>e.check(rr(ci,n)),e.jwt=n=>e.check(Ao(ru,n)),e.emoji=n=>e.check(mo(Bs,n)),e.guid=n=>e.check(Fr(ii,n)),e.uuid=n=>e.check(uo(pt,n)),e.uuidv4=n=>e.check(co(pt,n)),e.uuidv6=n=>e.check(lo(pt,n)),e.uuidv7=n=>e.check(po(pt,n)),e.nanoid=n=>e.check(fo(Zs,n)),e.guid=n=>e.check(Fr(ii,n)),e.cuid=n=>e.check(go(Vs,n)),e.cuid2=n=>e.check(ho(Hs,n)),e.ulid=n=>e.check(yo(qs,n)),e.base64=n=>e.check(To(Qs,n)),e.base64url=n=>e.check(So(eu,n)),e.xid=n=>e.check(vo(Gs,n)),e.ksuid=n=>e.check(_o(Ws,n)),e.ipv4=n=>e.check(xo(Js,n)),e.ipv6=n=>e.check(Po(Ks,n)),e.cidrv4=n=>e.check(bo(Xs,n)),e.cidrv6=n=>e.check(Eo(Ys,n)),e.e164=n=>e.check(Io(tu,n)),e.datetime=n=>e.check(Ed(n)),e.date=n=>e.check(Td(n)),e.time=n=>e.check(Sd(n)),e.duration=n=>e.check(Id(n))});function Us(e){return io(Kr,e)}s(Us,"string");var ce=h("ZodStringFormat",(e,t)=>{ae.init(e,t),js.init(e,t)}),Fs=h("ZodEmail",(e,t)=>{ra.init(e,t),ce.init(e,t)});function dh(e){return so(Fs,e)}s(dh,"email");var ii=h("ZodGUID",(e,t)=>{ea.init(e,t),ce.init(e,t)});function mh(e){return Fr(ii,e)}s(mh,"guid");var pt=h("ZodUUID",(e,t)=>{ta.init(e,t),ce.init(e,t)});function fh(e){return uo(pt,e)}s(fh,"uuid");function gh(e){return co(pt,e)}s(gh,"uuidv4");function hh(e){return lo(pt,e)}s(hh,"uuidv6");function yh(e){return po(pt,e)}s(yh,"uuidv7");var ci=h("ZodURL",(e,t)=>{Un.init(e,t),ce.init(e,t)});function vh(e){return rr(ci,e)}s(vh,"url");function _h(e){return rr(ci,{protocol:/^https?$/,hostname:Ze.domain,...A.normalizeParams(e)})}s(_h,"httpUrl");var Bs=h("ZodEmoji",(e,t)=>{na.init(e,t),ce.init(e,t)});function xh(e){return mo(Bs,e)}s(xh,"emoji");var Zs=h("ZodNanoID",(e,t)=>{oa.init(e,t),ce.init(e,t)});function Ph(e){return fo(Zs,e)}s(Ph,"nanoid");var Vs=h("ZodCUID",(e,t)=>{ia.init(e,t),ce.init(e,t)});function bh(e){return go(Vs,e)}s(bh,"cuid");var Hs=h("ZodCUID2",(e,t)=>{aa.init(e,t),ce.init(e,t)});function Eh(e){return ho(Hs,e)}s(Eh,"cuid2");var qs=h("ZodULID",(e,t)=>{sa.init(e,t),ce.init(e,t)});function Th(e){return yo(qs,e)}s(Th,"ulid");var Gs=h("ZodXID",(e,t)=>{ua.init(e,t),ce.init(e,t)});function Sh(e){return vo(Gs,e)}s(Sh,"xid");var Ws=h("ZodKSUID",(e,t)=>{ca.init(e,t),ce.init(e,t)});function Ih(e){return _o(Ws,e)}s(Ih,"ksuid");var Js=h("ZodIPv4",(e,t)=>{fa.init(e,t),ce.init(e,t)});function Ah(e){return xo(Js,e)}s(Ah,"ipv4");var Ld=h("ZodMAC",(e,t)=>{ha.init(e,t),ce.init(e,t)});function $h(e){return Ka(Ld,e)}s($h,"mac");var Ks=h("ZodIPv6",(e,t)=>{ga.init(e,t),ce.init(e,t)});function Oh(e){return Po(Ks,e)}s(Oh,"ipv6");var Xs=h("ZodCIDRv4",(e,t)=>{ya.init(e,t),ce.init(e,t)});function wh(e){return bo(Xs,e)}s(wh,"cidrv4");var Ys=h("ZodCIDRv6",(e,t)=>{va.init(e,t),ce.init(e,t)});function zh(e){return Eo(Ys,e)}s(zh,"cidrv6");var Qs=h("ZodBase64",(e,t)=>{_a.init(e,t),ce.init(e,t)});function Rh(e){return To(Qs,e)}s(Rh,"base64");var eu=h("ZodBase64URL",(e,t)=>{xa.init(e,t),ce.init(e,t)});function kh(e){return So(eu,e)}s(kh,"base64url");var tu=h("ZodE164",(e,t)=>{Pa.init(e,t),ce.init(e,t)});function Dh(e){return Io(tu,e)}s(Dh,"e164");var ru=h("ZodJWT",(e,t)=>{ba.init(e,t),ce.init(e,t)});function Ch(e){return Ao(ru,e)}s(Ch,"jwt");var Xr=h("ZodCustomStringFormat",(e,t)=>{Ea.init(e,t),ce.init(e,t)});function Nh(e,t,n={}){return mr(Xr,e,t,n)}s(Nh,"stringFormat");function Mh(e){return mr(Xr,"hostname",Ze.hostname,e)}s(Mh,"hostname");function Uh(e){return mr(Xr,"hex",Ze.hex,e)}s(Uh,"hex");function Lh(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Ze[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return mr(Xr,o,r,t)}s(Lh,"hash");var Yr=h("ZodNumber",(e,t)=>{Cr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>zp(e,o,r,i),e.gt=(o,r)=>e.check(st(o,r)),e.gte=(o,r)=>e.check(Ie(o,r)),e.min=(o,r)=>e.check(Ie(o,r)),e.lt=(o,r)=>e.check(at(o,r)),e.lte=(o,r)=>e.check(Ne(o,r)),e.max=(o,r)=>e.check(Ne(o,r)),e.int=o=>e.check(Ls(o)),e.safe=o=>e.check(Ls(o)),e.positive=o=>e.check(st(0,o)),e.nonnegative=o=>e.check(Ie(0,o)),e.negative=o=>e.check(at(0,o)),e.nonpositive=o=>e.check(Ne(0,o)),e.multipleOf=(o,r)=>e.check(ht(o,r)),e.step=(o,r)=>e.check(ht(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 jd(e){return $o(Yr,e)}s(jd,"number");var gr=h("ZodNumberFormat",(e,t)=>{Ln.init(e,t),Yr.init(e,t)});function Ls(e){return wo(gr,e)}s(Ls,"int");function jh(e){return rs(gr,e)}s(jh,"float32");function Fh(e){return ns(gr,e)}s(Fh,"float64");function Bh(e){return os(gr,e)}s(Bh,"int32");function Zh(e){return is(gr,e)}s(Zh,"uint32");var Qr=h("ZodBoolean",(e,t)=>{er.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Rp(e,n,o,r)});function Fd(e){return zo(Qr,e)}s(Fd,"boolean");var en=h("ZodBigInt",(e,t)=>{Nr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>kp(e,o,r,i),e.gte=(o,r)=>e.check(Ie(o,r)),e.min=(o,r)=>e.check(Ie(o,r)),e.gt=(o,r)=>e.check(st(o,r)),e.gte=(o,r)=>e.check(Ie(o,r)),e.min=(o,r)=>e.check(Ie(o,r)),e.lt=(o,r)=>e.check(at(o,r)),e.lte=(o,r)=>e.check(Ne(o,r)),e.max=(o,r)=>e.check(Ne(o,r)),e.positive=o=>e.check(st(BigInt(0),o)),e.negative=o=>e.check(at(BigInt(0),o)),e.nonpositive=o=>e.check(Ne(BigInt(0),o)),e.nonnegative=o=>e.check(Ie(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(ht(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Vh(e){return as(en,e)}s(Vh,"bigint");var nu=h("ZodBigIntFormat",(e,t)=>{Ta.init(e,t),en.init(e,t)});function Hh(e){return ss(nu,e)}s(Hh,"int64");function qh(e){return us(nu,e)}s(qh,"uint64");var Bd=h("ZodSymbol",(e,t)=>{Sa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dp(e,n,o,r)});function Gh(e){return cs(Bd,e)}s(Gh,"symbol");var Zd=h("ZodUndefined",(e,t)=>{Ia.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Np(e,n,o,r)});function Wh(e){return ls(Zd,e)}s(Wh,"_undefined");var Vd=h("ZodNull",(e,t)=>{Aa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Cp(e,n,o,r)});function Hd(e){return ps(Vd,e)}s(Hd,"_null");var qd=h("ZodAny",(e,t)=>{jn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Lp(e,n,o,r)});function Jh(){return Do(qd)}s(Jh,"any");var Gd=h("ZodUnknown",(e,t)=>{Fn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jp(e,n,o,r)});function fr(){return Co(Gd)}s(fr,"unknown");var Wd=h("ZodNever",(e,t)=>{$a.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Up(e,n,o,r)});function ou(e){return ds(Wd,e)}s(ou,"never");var Jd=h("ZodVoid",(e,t)=>{Bn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mp(e,n,o,r)});function Kh(e){return No(Jd,e)}s(Kh,"_void");var li=h("ZodDate",(e,t)=>{Zn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Fp(e,o,r,i),e.min=(o,r)=>e.check(Ie(o,r)),e.max=(o,r)=>e.check(Ne(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 Xh(e){return ms(li,e)}s(Xh,"date");var Kd=h("ZodArray",(e,t)=>{Vn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qp(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check(Te(n,o)),e.nonempty=n=>e.check(Te(1,n)),e.max=(n,o)=>e.check(kt(n,o)),e.length=(n,o)=>e.check(Dt(n,o)),e.unwrap=()=>e.element});function pi(e,t){return $p(Kd,e,t)}s(pi,"array");function Yh(e){let t=e._zod.def.shape;return au(Object.keys(t))}s(Yh,"keyof");var di=h("ZodObject",(e,t)=>{Cl.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ed(e,n,o,r),A.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>au(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:fr()}),e.loose=()=>e.clone({...e._zod.def,catchall:fr()}),e.strict=()=>e.clone({...e._zod.def,catchall:ou()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>A.extend(e,n),e.safeExtend=n=>A.safeExtend(e,n),e.merge=n=>A.merge(e,n),e.pick=n=>A.pick(e,n),e.omit=n=>A.omit(e,n),e.partial=(...n)=>A.partial(uu,e,n[0]),e.required=(...n)=>A.required(cu,e,n[0])});function Qh(e,t){let n={type:"object",shape:e??{},...A.normalizeParams(t)};return new di(n)}s(Qh,"object");function ey(e,t){return new di({type:"object",shape:e,catchall:ou(),...A.normalizeParams(t)})}s(ey,"strictObject");function ty(e,t){return new di({type:"object",shape:e,catchall:fr(),...A.normalizeParams(t)})}s(ty,"looseObject");var mi=h("ZodUnion",(e,t)=>{tr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bs(e,n,o,r),e.options=t.options});function iu(e,t){return new mi({type:"union",options:e,...A.normalizeParams(t)})}s(iu,"union");var Xd=h("ZodXor",(e,t)=>{mi.init(e,t),wa.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bs(e,n,o,r),e.options=t.options});function ry(e,t){return new Xd({type:"union",options:e,inclusive:!1,...A.normalizeParams(t)})}s(ry,"xor");var Yd=h("ZodDiscriminatedUnion",(e,t)=>{mi.init(e,t),Hn.init(e,t)});function ny(e,t,n){return new Yd({type:"union",options:t,discriminator:e,...A.normalizeParams(n)})}s(ny,"discriminatedUnion");var Qd=h("ZodIntersection",(e,t)=>{za.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o,r)});function em(e,t){return new Qd({type:"intersection",left:e,right:t})}s(em,"intersection");var tm=h("ZodTuple",(e,t)=>{qn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function rm(e,t,n){let o=t instanceof B,r=o?n:t,i=o?t:null;return new tm({type:"tuple",items:e,rest:i,...A.normalizeParams(r)})}s(rm,"tuple");var fi=h("ZodRecord",(e,t)=>{Gn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function nm(e,t,n){return new fi({type:"record",keyType:e,valueType:t,...A.normalizeParams(n)})}s(nm,"record");function oy(e,t,n){let o=$e(e);return o._zod.values=void 0,new fi({type:"record",keyType:o,valueType:t,...A.normalizeParams(n)})}s(oy,"partialRecord");function iy(e,t,n){return new fi({type:"record",keyType:e,valueType:t,mode:"loose",...A.normalizeParams(n)})}s(iy,"looseRecord");var om=h("ZodMap",(e,t)=>{Ra.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xp(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(ut(...n)),e.nonempty=n=>e.check(ut(1,n)),e.max=(...n)=>e.check(yt(...n)),e.size=(...n)=>e.check(Rt(...n))});function ay(e,t,n){return new om({type:"map",keyType:e,valueType:t,...A.normalizeParams(n)})}s(ay,"map");var im=h("ZodSet",(e,t)=>{ka.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yp(e,n,o,r),e.min=(...n)=>e.check(ut(...n)),e.nonempty=n=>e.check(ut(1,n)),e.max=(...n)=>e.check(yt(...n)),e.size=(...n)=>e.check(Rt(...n))});function sy(e,t){return new im({type:"set",valueType:e,...A.normalizeParams(t)})}s(sy,"set");var Jr=h("ZodEnum",(e,t)=>{Wn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Bp(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 a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Jr({...t,checks:[],...A.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Jr({...t,checks:[],...A.normalizeParams(r),entries:i})}});function au(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Jr({type:"enum",entries:n,...A.normalizeParams(t)})}s(au,"_enum");function uy(e,t){return new Jr({type:"enum",entries:e,...A.normalizeParams(t)})}s(uy,"nativeEnum");var am=h("ZodLiteral",(e,t)=>{Jn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zp(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 cy(e,t){return new am({type:"literal",values:Array.isArray(e)?e:[e],...A.normalizeParams(t)})}s(cy,"literal");var sm=h("ZodFile",(e,t)=>{Da.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qp(e,n,o,r),e.min=(n,o)=>e.check(ut(n,o)),e.max=(n,o)=>e.check(yt(n,o)),e.mime=(n,o)=>e.check(ur(Array.isArray(n)?n:[n],o))});function ly(e){return gs(sm,e)}s(ly,"file");var um=h("ZodTransform",(e,t)=>{Kn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kp(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new At(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(A.issue(i,n.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(A.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function su(e){return new um({type:"transform",transform:e})}s(su,"transform");var uu=h("ZodOptional",(e,t)=>{Mr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Es(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ai(e){return new uu({type:"optional",innerType:e})}s(ai,"optional");var cm=h("ZodExactOptional",(e,t)=>{Ca.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Es(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function lm(e){return new cm({type:"optional",innerType:e})}s(lm,"exactOptional");var pm=h("ZodNullable",(e,t)=>{Xn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>od(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function si(e){return new pm({type:"nullable",innerType:e})}s(si,"nullable");function py(e){return ai(si(e))}s(py,"nullish");var dm=h("ZodDefault",(e,t)=>{Na.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mm(e,t){return new dm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():A.shallowClone(t)}})}s(mm,"_default");var fm=h("ZodPrefault",(e,t)=>{Ma.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function gm(e,t){return new fm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():A.shallowClone(t)}})}s(gm,"prefault");var cu=h("ZodNonOptional",(e,t)=>{Ua.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>id(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function hm(e,t){return new cu({type:"nonoptional",innerType:e,...A.normalizeParams(t)})}s(hm,"nonoptional");var ym=h("ZodSuccess",(e,t)=>{La.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gp(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function dy(e){return new ym({type:"success",innerType:e})}s(dy,"success");var vm=h("ZodCatch",(e,t)=>{ja.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _m(e,t){return new vm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(_m,"_catch");var xm=h("ZodNaN",(e,t)=>{Fa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vp(e,n,o,r)});function my(e){return fs(xm,e)}s(my,"nan");var lu=h("ZodPipe",(e,t)=>{Yn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.in=t.in,e.out=t.out});function ui(e,t){return new lu({type:"pipe",in:e,out:t})}s(ui,"pipe");var pu=h("ZodCodec",(e,t)=>{lu.init(e,t),Ur.init(e,t)});function fy(e,t,n){return new pu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}s(fy,"codec");var Pm=h("ZodReadonly",(e,t)=>{Ba.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bm(e){return new Pm({type:"readonly",innerType:e})}s(bm,"readonly");var Em=h("ZodTemplateLiteral",(e,t)=>{Za.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hp(e,n,o,r)});function gy(e,t){return new Em({type:"template_literal",parts:e,...A.normalizeParams(t)})}s(gy,"templateLiteral");var Tm=h("ZodLazy",(e,t)=>{qa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Sm(e){return new Tm({type:"lazy",getter:e})}s(Sm,"lazy");var Im=h("ZodPromise",(e,t)=>{Ha.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function hy(e){return new Im({type:"promise",innerType:e})}s(hy,"promise");var Am=h("ZodFunction",(e,t)=>{Va.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jp(e,n,o,r)});function yy(e){return new Am({type:"function",input:Array.isArray(e?.input)?rm(e?.input):e?.input??pi(fr()),output:e?.output??fr()})}s(yy,"_function");var gi=h("ZodCustom",(e,t)=>{Qn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wp(e,n,o,r)});function vy(e){let t=new ue({check:"custom"});return t._zod.check=e,t}s(vy,"check");function _y(e,t){return Zo(gi,e??(()=>!0),t)}s(_y,"custom");function $m(e,t={}){return hs(gi,e,t)}s($m,"refine");function Om(e){return ys(e)}s(Om,"superRefine");var xy=vs,Py=_s;function by(e,t={}){let n=new gi({type:"custom",check:"custom",fn:s(o=>o instanceof e,"fn"),abort:!0,...A.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}s(by,"_instanceof");var Ey=s((...e)=>xs({Codec:pu,Boolean:Qr,String:Kr},...e),"stringbool");function Ty(e){let t=Sm(()=>iu([Us(e),jd(),Fd(),Hd(),pi(t),nm(Us(),t)]));return t}s(Ty,"json");function Sy(e,t){return ui(su(e),t)}s(Sy,"preprocess");var MS={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 US(e){he({customError:e})}s(US,"setErrorMap");function LS(){return he().customError}s(LS,"getErrorMap");var wm;wm||(wm={});var z={...oi,...ks,iso:Wr},jS=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 FS(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"}s(FS,"detectVersion");function BS(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}`)}s(BS,"resolveRef");function Iy(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return z.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 z.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=BS(r,t),a=Ce(i,t);return t.refs.set(r,a),t.processing.delete(r),a}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 z.null();if(r.length===0)return z.never();if(r.length===1)return z.literal(r[0]);if(r.every(a=>typeof a=="string"))return z.enum(r);let i=r.map(a=>z.literal(a));return i.length<2?i[0]:z.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return Iy(a,t)});return r.length===0?z.never():r.length===1?r[0]:z.union(r)}if(!n)return z.any();let o;switch(n){case"string":{let r=z.string();if(e.format){let i=e.format;i==="email"?r=r.check(z.email()):i==="uri"||i==="uri-reference"?r=r.check(z.url()):i==="uuid"||i==="guid"?r=r.check(z.uuid()):i==="date-time"?r=r.check(z.iso.datetime()):i==="date"?r=r.check(z.iso.date()):i==="time"?r=r.check(z.iso.time()):i==="duration"?r=r.check(z.iso.duration()):i==="ipv4"?r=r.check(z.ipv4()):i==="ipv6"?r=r.check(z.ipv6()):i==="mac"?r=r.check(z.mac()):i==="cidr"?r=r.check(z.cidrv4()):i==="cidr-v6"?r=r.check(z.cidrv6()):i==="base64"?r=r.check(z.base64()):i==="base64url"?r=r.check(z.base64url()):i==="e164"?r=r.check(z.e164()):i==="jwt"?r=r.check(z.jwt()):i==="emoji"?r=r.check(z.emoji()):i==="nanoid"?r=r.check(z.nanoid()):i==="cuid"?r=r.check(z.cuid()):i==="cuid2"?r=r.check(z.cuid2()):i==="ulid"?r=r.check(z.ulid()):i==="xid"?r=r.check(z.xid()):i==="ksuid"&&(r=r.check(z.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"?z.number().int():z.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=z.boolean();break}case"null":{o=z.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let m=Ce(l,t);r[c]=a.has(c)?m:m.optional()}if(e.propertyNames){let c=Ce(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Ce(e.additionalProperties,t):z.any();if(Object.keys(r).length===0){o=z.record(c,l);break}let m=z.object(r).passthrough(),f=z.looseRecord(c,l);o=z.intersection(m,f);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),m=[];for(let g of l){let p=Ce(c[g],t),y=z.string().regex(new RegExp(g));m.push(z.looseRecord(y,p))}let f=[];if(Object.keys(r).length>0&&f.push(z.object(r).passthrough()),f.push(...m),f.length===0)o=z.object({}).passthrough();else if(f.length===1)o=f[0];else{let g=z.intersection(f[0],f[1]);for(let p=2;p<f.length;p++)g=z.intersection(g,f[p]);o=g}break}let u=z.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(Ce(e.additionalProperties,t)):o=u.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>Ce(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?Ce(i,t):void 0;u?o=z.tuple(a).rest(u):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>Ce(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?Ce(e.additionalItems,t):void 0;u?o=z.tuple(a).rest(u):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(i!==void 0){let a=Ce(i,t),u=z.array(a);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=z.array(z.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}s(Iy,"convertBaseSchema");function Ce(e,t){if(typeof e=="boolean")return e?z.any():z.never();let n=Iy(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(l=>Ce(l,t)),c=z.union(u);n=o?z.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>Ce(l,t)),c=z.xor(u);n=o?z.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:z.any();else{let u=o?n:Ce(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=z.intersection(u,Ce(e.allOf[l],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=z.nullable(n)),e.readOnly===!0&&(n=z.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 a=["contentEncoding","contentMediaType","contentSchema"];for(let u of a)u in e&&(r[u]=e[u]);for(let u of Object.keys(e))jS.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}s(Ce,"convertSchema");function Ay(e,t){if(typeof e=="boolean")return e?z.any():z.never();let n=FS(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Oe};return Ce(e,r)}s(Ay,"fromJSONSchema");var zm={};Ye(zm,{bigint:()=>qS,boolean:()=>HS,date:()=>GS,number:()=>VS,string:()=>ZS});function ZS(e){return ao(Kr,e)}s(ZS,"string");function VS(e){return Oo(Yr,e)}s(VS,"number");function HS(e){return Ro(Qr,e)}s(HS,"boolean");function qS(e){return ko(en,e)}s(qS,"bigint");function GS(e){return Mo(li,e)}s(GS,"date");he(eo());var $M=du.enum(["active","out_of_credits","rejected","unreachable"]);var $y=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))($y||{}),Rm=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(Rm||{}),km=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(km||{});var Dm=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(Dm||{});var Cm=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(Cm||{});var WS=v({mode:j($y),value:H()}),JS=v({auth:b(d()),fields:q(d(),WS)}),KS=v({pieceName:d(),pieceVersion:d(),actionName:d(),predefinedInput:b(JS)}),XS=v({type:L("PIECE"),toolName:d().check(Te(1)),pieceMetadata:KS}),YS=v({type:L("none")}),QS=v({type:L("access_token"),accessToken:d()}),eI=v({type:L("api_key"),apiKey:d(),apiKeyHeader:d()}),tI=v({type:L("headers"),headers:q(d(),d())}),rI=Ut("type",[YS,QS,eI,tI]),Oy=v({type:L("FLOW"),toolName:d().check(Te(1)),externalFlowId:d(),flowDisplayName:b(d())}),wy=v({type:L("MCP"),toolName:d().check(Te(1)),serverUrl:qg(),protocol:j(km),auth:rI}),zy=v({type:L("KNOWLEDGE_BASE"),toolName:d().check(Te(1)),sourceType:j(Rm),sourceId:d(),sourceName:d()}),nI=Ut("type",[XS,Oy,wy,zy]),oI=v({displayName:d(),description:b(d()),type:j(Dm)}),Ry=v({type:L("MARKDOWN"),markdown:d()}),tn={type:L("TOOL_CALL"),input:ve(q(d(),H())),output:b(H()),toolName:d(),status:j(Cm),toolCallId:d(),startTime:d(),endTime:b(d())},rU=v(tn),ky=Ut("toolCallType",[v({...tn,toolCallType:L("PIECE"),pieceName:d(),pieceVersion:d(),actionName:d()}),v({...tn,toolCallType:L("FLOW"),displayName:d(),externalFlowId:d()}),v({...tn,toolCallType:L("MCP"),displayName:d(),serverUrl:d()}),v({...tn,toolCallType:L("KNOWLEDGE_BASE"),displayName:d(),sourceType:d()}),v({...tn,toolCallType:L("UNKNOWN"),displayName:d()})]),iI=J([Ry,ky]);var aI=10800*1e3,sI=900*1e3;var Mm=(n=>(n.IMAGE="image",n.TEXT="text",n))(Mm||{}),Et=v({apiKey:d()}),cI=Et,lI=v({apiKey:d(),apiKeyHash:d()}),pI=Et,dI=Et,mI=Et,fI=Et,gI=Et,hI=Et,yI=Et,My=v({serviceAccountJson:d().check(Te(1))}),Uy=v({accessKeyId:d().check(Te(1)),secretAccessKey:d().check(Te(1))}),vI=v({}),_I=v({}),xI=v({}),PI=v({}),bI=v({}),EI=v({}),Um=v({modelId:d(),modelName:d(),modelType:j(Mm)}),Ly=v({apiKeyHeader:d(),baseUrl:d(),models:F(Um),defaultHeaders:b(q(d(),d())),apiStyle:b(j(["chat","responses"]))}),jy=v({accountId:d(),gatewayId:d(),models:F(Um),vertexProject:b(d()),vertexRegion:b(d())}),Fy=v({resourceName:d(),apiVersion:jt(Lt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),b(d()))}),By=v({region:d().check(Te(1))}),Zy=v({project:d().check(Re(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:d().check(Re(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:F(Um)}),Vy=v({}),TI=J([cI,mI,fI,gI,hI,dI,pI,lI,Uy,My,yI]),Hy=J([Ly,jy,Fy,Zy,By,vI,xI,PI,bI,_I,EI,Vy]),SI=v({id:d(),name:d(),type:j(Mm)}),II=v({id:d(),name:d(),provider:j(Gr),config:Hy,enabledForChat:oe()}),AI=v({provider:j(Gr),name:d(),enabledForChat:oe(),keys:F(v({id:d(),name:d()}))}),$I=v({provider:j(Gr),configId:d(),config:Hy,auth:TI,platformId:d()});var aU={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},Dy=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],OI=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],qy=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Nm=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],wI=["grok-4.20"],sU=qy.map(e=>`anthropic/${e}`),zI={openai:Dy,anthropic:OI,google:Nm,vertex:Nm,activepieces:[...qy.map(e=>`anthropic/${e}`),...Dy.map(e=>`openai/${e}`),...Nm.map(e=>`google/${e}`),...wI.map(e=>`x-ai/${e}`)]};var Cy=128e3,RI={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function kI({provider:e}){return e?RI[e]??Cy:Cy}s(kI,"getMaxContextTokens");var Ny={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"},DI={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},CI=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),NI={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 ke(e){return{chatModels:zI[e],maxContextTokens:kI({provider:e}),defaultEmbeddingModel:Ny[e],supportsEmbedding:Ny[e]!==void 0,supportsImageGeneration:!CI.has(e),webSearch:DI[e]}}s(ke,"buildProviderCapabilities");var MI={openai:ke("openai"),anthropic:ke("anthropic"),openrouter:ke("openrouter"),azure:ke("azure"),google:ke("google"),"cloudflare-gateway":ke("cloudflare-gateway"),custom:ke("custom"),bedrock:ke("bedrock"),vertex:ke("vertex"),mistral:ke("mistral"),activepieces:ke("activepieces"),xai:ke("xai"),deepseek:ke("deepseek"),zai:ke("zai"),qwen:ke("qwen"),minimax:ke("minimax"),moonshot:ke("moonshot")};var UI=v({base64Url:d(),fileName:d(),extension:b(d())}),LI=v({mimeType:d(),url:d(),fileName:b(d())}),Lm=J([UI,LI]);var jI=J([v({type:L("file"),value:Lm}),v({type:L("markdown"),value:d(),files:b(F(Lm))})]),FI=v({sessionId:d(),message:d(),files:b(F(d()))});var Wy=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(Wy||{}),Jy=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(Jy||{}),jm=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(jm||{});var BI=J([v({...tt,name:d(),externalId:d(),type:L("STATIC_DROPDOWN"),tableId:d(),projectId:d(),data:v({options:F(v({value:d()}))})}),v({...tt,name:d(),externalId:d(),type:J([L("TEXT"),L("NUMBER"),L("DATE"),L("DATETIME")]),tableId:d(),projectId:d()})]),ZI=v({...tt,name:d(),folderId:ve(d()),projectId:d(),externalId:d(),status:bd(Jy),trigger:bd(Wy)}),VI=v({...tt,tableId:d(),projectId:d(),cells:q(d(),v({updated:d(),created:d(),value:H(),fieldName:d()}))}),HI=v({events:F(j(jm)),webhookUrl:d(),flowId:d()}),qI=v({fields:F(v({id:d(),name:d()})),rows:F(q(d(),d())),name:d()}),GI=v({projectId:d(),limit:b(Go.number()),cursor:b(d()),name:b(d()),externalIds:zs(d()),folderId:b(d()),folderIds:zs(d())}),WI=v({records:F(F(v({fieldId:d(),value:Xy()}))),tableId:d()}),JI=v({cells:b(F(v({fieldId:d(),value:Xy()}))),tableId:d(),agentUpdate:b(oe())}),Ky=Ut("operator",[hr("eq"),hr("neq"),hr("gt"),hr("gte"),hr("lt"),hr("lte"),hr("co"),Gy("exists"),Gy("not_exists")]),KI=v({tableId:d(),limit:b(Go.number()),cursor:b(d()),filters:zs(Ky)});function Xy(){return jt(Lt(e=>e==null?e:String(e)),qo(d()))}s(Xy,"coerceToString");function hr(e){return v({fieldId:d(),operator:L(e),value:d()})}s(hr,"valueFilter");function Gy(e){return v({fieldId:d(),operator:L(e)})}s(Gy,"existenceFilter");var XI=v({status:b(we()),body:b(H()),headers:b(q(d(),d()))}),YI=v({...tt,deleted:ve(Bt),ownerId:d(),displayName:d(),platformId:d(),externalId:ve(d())});var Yy=v({name:d(),description:b(d()),type:d(),required:oe()}),QI=v({pieceName:d(),triggerName:d(),input:v({toolName:d(),toolDescription:d(),inputSchema:F(Yy),returnsResponse:oe()})});var Qy="^[0-9]+\\.[0-9]+\\.[0-9]+$",IU=new RegExp(Qy),tA="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",AU=d().check(Re(new RegExp(Qy))),$U=d().check(Re(new RegExp(tA))),rA=v({packageType:L("ARCHIVE"),pieceType:j(Vr),pieceName:d(),pieceVersion:d(),archiveId:d(),platformId:d()}),ev=v({packageType:L("REGISTRY"),pieceType:L("OFFICIAL"),pieceName:d(),pieceVersion:d()}),tv=v({packageType:L("REGISTRY"),pieceType:L("CUSTOM"),pieceName:d(),pieceVersion:d(),platformId:d()}),OU=J([ev,tv]),wU=J([rA,ev,tv]);var nA=Ut("type",[v({type:L("CRON_EXPRESSION"),cronExpression:d(),timezone:d()}),v({type:L("INTERVAL"),intervalMs:Gg().check(Ie(6e4))})]),zU=v({...tt,type:j(lt),projectId:d(),flowId:d(),triggerName:d(),schedule:ve(nA),flowVersionId:d(),pieceName:d(),pieceVersion:d(),deleted:ve(d()),simulate:oe()}),rv=(x=>(x.UNKNOWN="UNKNOWN",x.FLOW_RUN_LOG="FLOW_RUN_LOG",x.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",x.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",x.FLOW_STEP_FILE="FLOW_STEP_FILE",x.SAMPLE_DATA="SAMPLE_DATA",x.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",x.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",x.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",x.PROJECT_RELEASE="PROJECT_RELEASE",x.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",x.PLATFORM_ASSET="PLATFORM_ASSET",x.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",x.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",x.KNOWLEDGE_BASE="KNOWLEDGE_BASE",x.FLOW_BUNDLE="FLOW_BUNDLE",x.PREWARM_SCOPE="PREWARM_SCOPE",x))(rv||{}),nv=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(nv||{}),ov=(n=>(n.S3="S3",n.DB="DB",n))(ov||{}),RU=v({...tt,projectId:ve(d()),platformId:ve(d()),type:j(rv),compression:j(nv),data:b(H()),location:j(ov),size:ve(we()),fileName:ve(d()),s3Key:ve(d()),metadata:ve(q(d(),d()))}),iv=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(iv||{}),av=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(av||{}),kU=v({id:d(),email:d(),firstName:d(),status:j(av),externalId:ve(d()),platformId:ve(d()),platformRole:j(iv),lastName:d(),created:Bt,updated:Bt,lastActiveDate:ve(Bt),imageUrl:ve(d())});var Bm=v({...re.shape,...G(q(d(),H()),"OBJECT").shape});var Zm=v({...re.shape,formatProperty:b(d()),...G(d(),"RICH_TEXT").shape});var cv=v({...re.shape,...G(d(),"COLOR").shape});var Vm=J([Je,vt,Zm,Os,xt,Ke,_t,hd,Wo,vd,Pt,Xo,Bm,Yo,Ko,yd,Jo,cv]),w={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 dt=v({displayName:d(),description:b(d()),hasConnectionIdentifier:b(oe())});var lv=v({username:d(),password:d()}),Hm=v({...dt.shape,username:v({displayName:d(),description:b(d())}),password:v({displayName:d(),description:b(d())}),...G(lv,"BASIC_AUTH").shape});var sA=q(d(),J([Je,vt,Pt,xt,Ke])),qm=v({...dt.shape,props:sA,...G(H(),"CUSTOM_AUTH").shape});var yr=v({...dt.shape,...G(v({auth:d()}),"SECRET_TEXT").shape});var uA=q(d(),J([Je,vt,yr,Pt,xt,Ke,_t,Os])),pv=v({...dt.shape,props:uA,...G(H(),"OIDC").shape});var Gm=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(Gm||{}),dv=J([Je,yr,Ke]),mv=q(d(),dv),cA=v({props:b(q(d(),dv)),authUrl:d(),tokenUrl:d(),scope:F(d()),prompt:b(J([L("none"),L("consent"),L("login"),L("omit")])),pkce:b(oe()),pkceMethod:b(J([L("plain"),L("S256")])),authorizationMethod:b(j(Gm)),grantType:b(J([j(ei),L(_d)])),extra:b(q(d(),d()))}),fv=v({access_token:d(),props:b(mv),data:q(d(),Ho())}),Wm=v({...dt.shape,...cA.shape,...G(fv,"OAUTH2").shape});var rn=J([Hm,qm,pv,Wm,yr]),hi="Connection",Jm={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||hi}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||hi,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||hi}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||hi}},None(){}};var hj={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 lA=v({...re.shape,...G(H(),"CUSTOM").shape,code:d()});var pA=J([Vm,rn]),Km=q(d(),pA),Mj=q(d(),Vm);var gv=J([v({strategy:L("CRON"),cronExpression:d()}),v({strategy:L("NONE")})]),nn=class{constructor(t,n,o,r,i,a,u,c,l,m,f,g,p,y,_,E,x,O,U,te,le){this.name=t;this.displayName=n;this.description=o;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=u;this.onHandshake=c;this.renewConfiguration=l;this.onRenew=m;this.onEnable=f;this.onDisable=g;this.onStart=p;this.run=y;this.test=_;this.sampleData=E;this.testStrategy=x;this.outputSchema=O;this.aiMetadata=U;this.classification=te;this.propertyGroups=le}static{s(this,"ITrigger")}},on=s(e=>{switch(e.type){case"WEBHOOK":return new nn(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 nn(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 nn(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 nn(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,ye(e.sampleData)&&ye(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var hv="2",mu="0.82.0";var Xm=class{constructor(t,n,o,r,i,a,u,c,l=mu,m,f="",g){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=c;this.minimumSupportedRelease=l;this.maximumSupportedRelease=m;this.description=f;this.deprecated=g;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:hv}),"getContextInfo");(!mA(l)||fA(l,mu))&&(this.minimumSupportedRelease=mu),i.forEach(p=>this._actions[p.name]=p),a.forEach(p=>this._triggers[p.name]=p)}static{s(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:dA(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}},vv=s(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 Xm(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 dA(e){if(e!==void 0)return Array.isArray(e)?e.map(yv):yv(e)}s(dA,"withConnectionIdentifierFlag");function yv(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(yv,"flagConnectionIdentifier");function mA(e){return/^\d+\.\d+\.\d+$/.test(e)}s(mA,"isValidSimpleSemver");function fA(e,t){let[n,o,r]=e.split(".").map(Number),[i,a,u]=t.split(".").map(Number);return n!==i?n<i:o!==a?o<a:r<u}s(fA,"isSemverLessThan");var gA=b(q(d(),q(d(),d()))),_v=v({id:b(d()),name:d(),displayName:d(),logoUrl:d(),description:d(),authors:F(d()),platformId:b(d()),directoryPath:b(d()),auth:b(J([rn,F(rn)])),version:d(),categories:b(F(j(Hr))),minimumSupportedRelease:b(d()),maximumSupportedRelease:b(d()),deprecated:b(oe()),i18n:gA}),hA=j(["human","ai","both"]),xv=v({description:b(d()),idempotent:b(oe())}),Pv=j(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var yA=j(["tabs","section","summary","builder","footer"]),bv=v({key:d(),display:yA,label:b(d()),description:b(d()),icon:b(d()),props:F(d())}),Ev=v({name:d(),displayName:d(),description:d(),props:Km,propertyGroups:b(F(bv)),requireAuth:oe(),errorHandlingOptions:b(gd),outputSchema:b(As()),audience:b(hA),aiMetadata:b(xv),classification:b(Pv)}),Tv=v({name:d(),displayName:d(),description:d(),props:Km,propertyGroups:b(F(bv)),errorHandlingOptions:b(gd),type:j(lt),sampleData:H(),handshakeConfiguration:b(As()),renewConfiguration:b(gv),testStrategy:j(ri),outputSchema:b(As()),aiMetadata:b(xv),classification:b(Pv)}),vA=v({..._v.shape,actions:q(d(),Ev),triggers:q(d(),Tv)}),_A=v({..._v.shape,actions:we(),triggers:we(),suggestedActions:b(F(Ev)),suggestedTriggers:b(F(Tv))}),Sv=v({projectUsage:we(),pieceType:j(Vr),packageType:j(Qo),platformId:b(d()),archiveId:b(d())}),j4=v({...vA.shape,...Sv.shape}),F4=v({..._A.shape,...Sv.shape}),B4=v({name:d(),version:d()});var xA=ot(require("path")),PA=ot(require("fs/promises"));var an=require("node:stream");var fu=class{constructor(t,n){this.baseUrl=t;this.authenticationConverter=n}static{s(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,a)=>{r.append(a,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 gu=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new Ym,n=new Qm){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},Ym=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},Qm=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,n){let o=`${t.username}:${t.password}`,r=Buffer.from(o).toString("base64");return n.Authorization=`Basic ${r}`,n}};var yi=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{s(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 Iv({error:e,requestBody:t}){return e instanceof yi?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(Iv,"toFailsafeOutput");var ef=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(ef||{});var hu=class extends fu{static{s(this,"FetchHttpClient")}constructor(t="",n=new gu){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),a=t.queryParams??{};for(let[U,te]of Object.entries(a))r.append(U,te);let u=r.toString(),c=u?`${o}?${u}`:o,l=t.responseType??"json",m=t.followRedirects??!0,f=t.retries??0,{body:g,extraHeaders:p,isStream:y}=yu(t.method)?bA(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},_=TA({...i,...p}),E=await EA(async()=>{let U=new AbortController,te=t.timeout&&t.timeout>0?setTimeout(()=>U.abort(),t.timeout):void 0;try{let le={method:t.method.toString(),headers:_,body:g,redirect:m?"follow":"manual",signal:U.signal};return y&&(le.duplex="half"),n?.dispatcher!==void 0&&(le.dispatcher=n.dispatcher),await fetch(c,le)}finally{te!==void 0&&clearTimeout(te)}},y?0:f),x=m?300:400;if(E.status<200||E.status>=x){let U=await Av(E,l==="stream"?"text":l),te=new yi(t.body,{status:E.status,responseBody:U});throw console.error("[HttpClient#(sanitized error message)] Request failed:",te),te}let O=await Av(E,l);return{status:E.status,headers:SA(E.headers),body:O}}};function yu(e){return e!=="GET"&&e!=="HEAD"}s(yu,"acceptsRequestBody");function bA(e,t){if(Ov(e))return{body:void 0,extraHeaders:{},isStream:!1};if(AA(e)){let o=IA(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new an.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof an.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}}s(bA,"serializeBody");async function Av(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return Ov(e.body)?an.Readable.from([]):an.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}}}}s(Av,"parseResponseBody");async function EA(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await $v(o);continue}return r}catch(r){if(n=r,o<t){await $v(o);continue}throw r}throw n}s(EA,"sendWithRetries");function $v(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}s($v,"backoff");function TA(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())}s(TA,"normalizeHeaders");function SA(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}s(SA,"toHttpHeaders");function IA(e){if(!e.hasKnownLength()||e.getLengthSync()>$A)return null;let{data:t}=xd(()=>e.getBuffer());return t}s(IA,"bufferFormDataIfSafe");function AA(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(AA,"isNodeFormData");function Ov(e){return e==null}s(Ov,"isNil");var $A=100*1024*1024;var wv=new hu;var gO=ot(require("fs")),Nx=ot(Cx());var hO={"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 yO(e){let t=e.split(";")[0].trim().toLowerCase();return hO[t]??""}s(yO,"contentTypeToExtension");var vO=s(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),_O=s((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 Mx({auth:e,baseUrl:t,authMapping:n,description:o,displayName:r,name:i,props:a,extraProps:u,authLocation:c="headers",classification:l="WRITE"}){return me({audience:"human",name:i||"custom_api_call",classification:l,displayName:r||"Custom API Call",description:o||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:w.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:m})=>({url:w.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${_O(t,m)}`,required:!0,placeholder:"/resource",defaultValue:m?t(m):"",...a?.url??{}})}),"props")}),method:w.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(ef).map(m=>({label:m,value:m}))},...a?.method??{}}),headers:w.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:w.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:w.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:m})=>yu(m)?{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:w.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:m,method:f})=>{if(!m||!yu(f))return{};let g=m,p={};switch(g){case"none":break;case"json":p.data=w.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=w.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=w.Array({displayName:"Form Data",required:!0,properties:{fieldName:w.ShortText({displayName:"Field Name",required:!0}),fieldType:w.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:w.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:w.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:w.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:w.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:w.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:w.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...u},run:s(async m=>{let{method:f,url:g,headers:p,queryParams:y,body:_,body_type:E,failsafe:x,timeout:O,response_is_binary:U,followRedirects:te}=m.propsValue;bt(f,"Method"),bt(g,"URL");let le=ye(n)?{}:await n(m.auth,m.propsValue),Ue=g.url,Pe=Ue.startsWith("http://")||Ue.startsWith("https://")?Ue:vO({baseUrl:t(m.auth),relativePath:Ue}),Q={method:f,url:Pe,headers:{...p??{},...c==="headers"||!ye(c)?le:{}},queryParams:{...c==="queryParams"?le:{},...y??{}},timeout:O?O*1e3:0,followRedirects:te};if(U&&(Q.responseType="arraybuffer"),_)if(E&&E!=="none"){let Le=_.data;if(E==="form_data"){let Oi=Le,V=new Nx.default;for(let{fieldName:D,fieldType:R,textFieldValue:M,fileFieldValue:k}of Oi)R==="text"&&!ni(M)?V.append(D,M):R==="file"&&!ni(k)&&V.append(D,k.data,{filename:k?.filename});Q.body=V,Q.headers={...Q.headers,...V.getHeaders()}}else Q.body=Le}else E||(Q.body=_);try{let Le=await wv.sendRequest(Q);return await xO(m.files,Le.body,Le.status,Le.headers,U)}catch(Le){if(x)return Iv({error:Le,requestBody:Q.body});throw Le}},"run")})}s(Mx,"createCustomApiCallAction");var xO=s(async(e,t,n,o,r)=>{let i;if(r&&PO(t)){let a=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=yO(a??"")||"txt",c;t instanceof ArrayBuffer?c=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?c=t:c=Buffer.from(t),i=await e.write({fileName:`output.${u}`,data:c})}else i=t;return{status:n,headers:o,body:i}},"handleBinaryResponse"),PO=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var mt={async poll(e,{store:t,auth:n,propsValue:o,maxItemsToPoll:r,files:i,server:a}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(ye(u))throw new Error("lastPoll doesn't exist in the store.");let c=await e.items({store:t,auth:n,propsValue:o,lastFetchEpochMS:u,server:a}),l=c.reduce((m,f)=>Math.max(m,f.epochMilliSeconds),u);return await t.put("lastPoll",l),c.filter(m=>m.epochMilliSeconds>u).map(m=>m.data)}case 1:{let u=await t.get("lastItem"),c=await e.items({store:t,auth:n,propsValue:o,lastItemId:u,files:i,server:a}),l=c.findIndex(g=>g.id===u),m=[];ye(u)||l==-1?m=c??[]:m=c?.slice(0,l)??[],ye(r)||(m=m.slice(-r));let f=m?.[0]?.id;return ye(f)||await t.put("lastItem",f),m.map(g=>g.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!ye(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!ye(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;ye(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 a=[];switch(e.strategy){case 0:{a=await e.items({store:o,auth:t,propsValue:n,lastFetchEpochMS:0,server:i});break}case 1:{a=await e.items({store:o,auth:t,propsValue:n,lastItemId:null,files:r,server:i});break}}return bO(a.map(u=>u.data))}};function bO(e){return e.length<=5?e:e.slice(0,5)}s(bO,"getFirstFiveOrAll");var Pi="login.microsoftonline.com",jx="login.microsoftonline.us",Ux="Mail.ReadWrite Mail.Send Calendars.Read offline_access User.Read openid email profile",EO="https://graph.microsoft.com/.default",TO="https://graph.microsoft.us/.default",Lx={[Pi]:"https://graph.microsoft.com",[jx]:"https://graph.microsoft.us"},Fx=w.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Pi,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Pi},{label:"US Government (GCC High)",value:jx}]}}),Bx=w.StaticDropdown({displayName:"Access Mode",description:"Pick the option matching your Grant Type. Use a Delegated option with the Authorization Code grant (acts as the signed-in user). Use an App-only option with the Client Credentials grant (acts as the application \u2014 also set Tenant ID and Mailbox), choosing the one that matches your Cloud Environment.",required:!0,defaultValue:Ux,options:{disabled:!1,options:[{label:"Delegated \u2014 Commercial (Global)",value:Ux},{label:"App-only \u2014 Commercial (Global)",value:EO},{label:"App-only \u2014 US Government (GCC High)",value:TO}]}});function Zx(e){return e??Pi}s(Zx,"resolveCloudHost");function Vx(e){return Zx(e.props?.cloud)}s(Vx,"getMicrosoftCloudFromAuth");function Au(e){let t=Zx(e);return Lx[t]??Lx[Pi]}s(Au,"getGraphBaseUrl");var ab=ot(ib());function Vz(e){let t=Vx(e);return ab.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:Au(t)})}s(Vz,"createClient");function Hz(e){let t=e.props?.mailbox?.trim();return t?`/users/${encodeURIComponent(t)}`:"/me"}s(Hz,"mailboxPrefix");var C={createClient:Vz,mailboxPrefix:Hz};var qz=`
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(c.cycle){i(a);continue}if(c.count>1&&e.reused==="ref"){i(a);continue}}}s(Ft,"extractDefs");function jt(e,t){let o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s(a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){n(d);let h=e.seen.get(d),p=h.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(p)):Object.assign(u,p),Object.assign(u,l),a._zod.parent===d)for(let P in u)P==="$ref"||P==="allOf"||P in l||delete u[P];if(p.$ref&&h.def)for(let P in u)P==="$ref"||P==="allOf"||P in h.def&&JSON.stringify(u[P])===JSON.stringify(h.def[P])&&delete u[P]}let f=a._zod.parent;if(f&&f!==d){n(f);let h=e.seen.get(f);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let p in u)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(u[p])===JSON.stringify(h.def[p])&&delete u[p]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())n(a[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 a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,o.def??o.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(i[c.defId]=c.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Jr(t,"input",e.processors),output:Jr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(jt,"finalize");function Fe(e,t){let o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Fe(n.element,o);if(n.type==="set")return Fe(n.valueType,o);if(n.type==="lazy")return Fe(n.getter(),o);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Fe(n.innerType,o);if(n.type==="intersection")return Fe(n.left,o)||Fe(n.right,o);if(n.type==="record"||n.type==="map")return Fe(n.keyType,o)||Fe(n.valueType,o);if(n.type==="pipe")return Fe(n.in,o)||Fe(n.out,o);if(n.type==="object"){for(let r in n.shape)if(Fe(n.shape[r],o))return!0;return!1}if(n.type==="union"){for(let r of n.options)if(Fe(r,o))return!0;return!1}if(n.type==="tuple"){for(let r of n.items)if(Fe(r,o))return!0;return!!(n.rest&&Fe(n.rest,o))}return!1}s(Fe,"isTransforming");var Gp=s((e,t={})=>o=>{let n=Lt({...o,processors:t});return le(e,n),Ft(n,e),jt(n,e)},"createToJSONSchemaMethod"),Jr=s((e,t,o={})=>n=>{let{libraryOptions:r,target:i}=n??{},a=Lt({...r??{},target:i,io:t,processors:o});return le(e,a),Ft(a,e),jt(a,e)},"createStandardJSONSchemaMethod");var OS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Wp=s((e,t,o,n)=>{let r=o;r.type="string";let{minimum:i,maximum:a,format:c,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),c&&(r.format=OS[c]??c,r.format===""&&delete r.format,c==="time"&&delete r.format),l&&(r.contentEncoding=l),u&&u.size>0){let d=[...u];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},"stringProcessor"),Kp=s((e,t,o,n)=>{let r=o,{minimum:i,maximum:a,format:c,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof c=="string"&&c.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof i=="number"&&(r.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),typeof a=="number"&&(r.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof u=="number"&&(r.multipleOf=u)},"numberProcessor"),Jp=s((e,t,o,n)=>{o.type="boolean"},"booleanProcessor"),Xp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Yp=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Qp=s((e,t,o,n)=>{t.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},"nullProcessor"),ed=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),td=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),rd=s((e,t,o,n)=>{o.not={}},"neverProcessor"),od=s((e,t,o,n)=>{},"anyProcessor"),nd=s((e,t,o,n)=>{},"unknownProcessor"),id=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),ad=s((e,t,o,n)=>{let r=e._zod.def,i=Bo(r.entries);i.every(a=>typeof a=="number")&&(o.type="number"),i.every(a=>typeof a=="string")&&(o.type="string"),o.enum=i},"enumProcessor"),sd=s((e,t,o,n)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];o.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?o.enum=[a]:o.const=a}else i.every(a=>typeof a=="number")&&(o.type="number"),i.every(a=>typeof a=="string")&&(o.type="string"),i.every(a=>typeof a=="boolean")&&(o.type="boolean"),i.every(a=>a===null)&&(o.type="null"),o.enum=i},"literalProcessor"),cd=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),ud=s((e,t,o,n)=>{let r=o,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},"templateLiteralProcessor"),ld=s((e,t,o,n)=>{let r=o,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=e._zod.bag;a!==void 0&&(i.minLength=a),c!==void 0&&(i.maxLength=c),u?u.length===1?(i.contentMediaType=u[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(r,i)},"fileProcessor"),pd=s((e,t,o,n)=>{o.type="boolean"},"successProcessor"),dd=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),md=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),fd=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),hd=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),gd=s((e,t,o,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),yd=s((e,t,o,n)=>{let r=o,i=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof c=="number"&&(r.maxItems=c),r.type="array",r.items=le(i.element,t,{...n,path:[...n.path,"items"]})},"arrayProcessor"),vd=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="object",r.properties={};let a=i.shape;for(let l in a)r.properties[l]=le(a[l],t,{...n,path:[...n.path,"properties",l]});let c=new Set(Object.keys(a)),u=new Set([...c].filter(l=>{let d=i.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(r.required=Array.from(u)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=le(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),Us=s((e,t,o,n)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((c,u)=>le(c,t,{...n,path:[...n.path,i?"oneOf":"anyOf",u]}));i?o.oneOf=a:o.anyOf=a},"unionProcessor"),xd=s((e,t,o,n)=>{let r=e._zod.def,i=le(r.left,t,{...n,path:[...n.path,"allOf",0]}),a=le(r.right,t,{...n,path:[...n.path,"allOf",1]}),c=s(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),u=[...c(i)?i.allOf:[i],...c(a)?a.allOf:[a]];o.allOf=u},"intersectionProcessor"),_d=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((h,p)=>le(h,t,{...n,path:[...n.path,a,p]})),l=i.rest?le(i.rest,t,{...n,path:[...n.path,c,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,l&&(r.items=l)):t.target==="openapi-3.0"?(r.items={anyOf:u},l&&r.items.anyOf.push(l),r.minItems=u.length,l||(r.maxItems=u.length)):(r.items=u,l&&(r.additionalItems=l));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof f=="number"&&(r.maxItems=f)},"tupleProcessor"),bd=s((e,t,o,n)=>{let r=o,i=e._zod.def;r.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=le(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});r.patternProperties={};for(let f of u)r.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=le(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=le(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(r.required=d)}},"recordProcessor"),Pd=s((e,t,o,n)=>{let r=e._zod.def,i=le(r.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,o.nullable=!0):o.anyOf=[i,{type:"null"}]},"nullableProcessor"),Ad=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),Id=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,o.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),Ed=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},"prefaultProcessor"),Td=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=a},"catchProcessor"),Sd=s((e,t,o,n)=>{let r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;le(i,t,n);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),wd=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType,o.readOnly=!0},"readonlyProcessor"),Od=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),Ls=s((e,t,o,n)=>{let r=e._zod.def;le(r.innerType,t,n);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),kd=s((e,t,o,n)=>{let r=e._zod.innerType;le(r,t,n);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Ms={string:Wp,number:Kp,boolean:Jp,bigint:Xp,symbol:Yp,null:Qp,undefined:ed,void:td,never:rd,any:od,unknown:nd,date:id,enum:ad,literal:sd,nan:cd,template_literal:ud,file:ld,success:pd,custom:dd,function:md,transform:fd,map:hd,set:gd,array:yd,object:vd,union:Us,intersection:xd,tuple:_d,record:bd,nullable:Pd,nonoptional:Ad,default:Id,prefault:Ed,catch:Td,pipe:Sd,readonly:wd,promise:Od,optional:Ls,lazy:kd};function di(e,t){if("_idmap"in e){let n=e,r=Lt({...t,processors:Ms}),i={};for(let u of n._idmap.entries()){let[l,d]=u;le(d,r)}let a={},c={registry:n,uri:t?.uri,defs:i};r.external=c;for(let u of n._idmap.entries()){let[l,d]=u;Ft(r,d),a[l]=jt(r,d)}if(Object.keys(i).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let o=Lt({...t,processors:Ms});return le(e,o),Ft(o,e),jt(o,e)}s(di,"toJSONSchema");var Fs=class{static{s(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 o=t?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=Lt({processors:Ms,target:o,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,o={path:[],schemaPath:[]}){return le(t,this.ctx,o)}emit(t,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),Ft(this.ctx,t);let n=jt(this.ctx,t),{"~standard":r,...i}=n;return i}};var vg={};var Se=y("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");q.init(e,t),e.def=t,e.type=t.type,e.parse=(o,n)=>or(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>Ur(e,o,n),e.parseAsync=async(o,n)=>nr(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>Fr(e,o,n),e.check=(...o)=>e.clone({...t,checks:[...t.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(o,n)=>ke(e,o,n),e.brand=()=>e,e.register=((o,n)=>(o.add(e,n),e)),e.apply=o=>o(e)}),js=y("ZodMiniString",(e,t)=>{xt.init(e,t),Se.init(e,t)});function m(e){return An(js,e)}s(m,"string");var Xr=y("ZodMiniStringFormat",(e,t)=>{ue.init(e,t),js.init(e,t)});var RS=y("ZodMiniURL",(e,t)=>{Xo.init(e,t),Xr.init(e,t)});function xg(e){return cr(RS,e)}s(xg,"url");var Bs=y("ZodMiniNumber",(e,t)=>{Br.init(e,t),Se.init(e,t)});function Re(e){return Kn(Bs,e)}s(Re,"number");var CS=y("ZodMiniNumberFormat",(e,t)=>{rn.init(e,t),Bs.init(e,t)});function _g(e){return Xn(CS,e)}s(_g,"int");var $d=y("ZodMiniBoolean",(e,t)=>{ar.init(e,t),Se.init(e,t)});function se(e){return Yn($d,e)}s(se,"boolean");var bg=y("ZodMiniBigInt",(e,t)=>{Vr.init(e,t),Se.init(e,t)});var zS=y("ZodMiniAny",(e,t)=>{on.init(e,t),Se.init(e,t)});function mi(){return ti(zS)}s(mi,"any");var DS=y("ZodMiniUnknown",(e,t)=>{nn.init(e,t),Se.init(e,t)});function K(){return ri(DS)}s(K,"unknown");var NS=y("ZodMiniVoid",(e,t)=>{an.init(e,t),Se.init(e,t)});function Pg(e){return oi(NS,e)}s(Pg,"_void");var Ag=y("ZodMiniDate",(e,t)=>{sn.init(e,t),Se.init(e,t)});var MS=y("ZodMiniArray",(e,t)=>{cn.init(e,t),Se.init(e,t)});function H(e,t){return new MS({type:"array",element:e,...k(t)})}s(H,"array");var US=y("ZodMiniObject",(e,t)=>{Ja.init(e,t),Se.init(e,t),Y(e,"shape",()=>t.shape)});function b(e,t){let o={type:"object",shape:e??{},...k(t)};return new US(o)}s(b,"object");var LS=y("ZodMiniUnion",(e,t)=>{sr.init(e,t),Se.init(e,t)});function Q(e,t){return new LS({type:"union",options:e,...k(t)})}s(Q,"union");var FS=y("ZodMiniDiscriminatedUnion",(e,t)=>{un.init(e,t),Se.init(e,t)});function Bt(e,t,o){return new FS({type:"union",options:t,discriminator:e,...k(o)})}s(Bt,"discriminatedUnion");var jS=y("ZodMiniRecord",(e,t)=>{pn.init(e,t),Se.init(e,t)});function J(e,t,o){return new jS({type:"record",keyType:e,valueType:t,...k(o)})}s(J,"record");var BS=y("ZodMiniEnum",(e,t)=>{dn.init(e,t),Se.init(e,t),e.options=Object.values(t.entries)});function Z(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new BS({type:"enum",entries:o,...k(t)})}s(Z,"_enum");var VS=y("ZodMiniLiteral",(e,t)=>{mn.init(e,t),Se.init(e,t)});function V(e,t){return new VS({type:"literal",values:Array.isArray(e)?e:[e],...k(t)})}s(V,"literal");var ZS=y("ZodMiniTransform",(e,t)=>{fn.init(e,t),Se.init(e,t)});function Vt(e){return new ZS({type:"transform",transform:e})}s(Vt,"transform");var HS=y("ZodMiniOptional",(e,t)=>{Zr.init(e,t),Se.init(e,t)});function I(e){return new HS({type:"optional",innerType:e})}s(I,"optional");var qS=y("ZodMiniNullable",(e,t)=>{hn.init(e,t),Se.init(e,t)});function fi(e){return new qS({type:"nullable",innerType:e})}s(fi,"nullable");var GS=y("ZodMiniPipe",(e,t)=>{gn.init(e,t),Se.init(e,t)});function Zt(e,t){return new GS({type:"pipe",in:e,out:t})}s(Zt,"pipe");var Ig=y("ZodMiniCustom",(e,t)=>{yn.init(e,t),Se.init(e,t)});function Vs(e,t){return li(Ig,e??(()=>!0),t)}s(Vs,"custom");function Rd(e,t={}){return pi(Ig,e,t)}s(Rd,"refine");var Zs={};Xe(Zs,{ZodMiniISODate:()=>zd,ZodMiniISODateTime:()=>Cd,ZodMiniISODuration:()=>Nd,ZodMiniISOTime:()=>Dd,date:()=>KS,datetime:()=>WS,duration:()=>XS,time:()=>JS});var Cd=y("ZodMiniISODateTime",(e,t)=>{Yo.init(e,t),Xr.init(e,t)});function WS(e){return Hn(Cd,e)}s(WS,"datetime");var zd=y("ZodMiniISODate",(e,t)=>{Qo.init(e,t),Xr.init(e,t)});function KS(e){return qn(zd,e)}s(KS,"date");var Dd=y("ZodMiniISOTime",(e,t)=>{en.init(e,t),Xr.init(e,t)});function JS(e){return Gn(Dd,e)}s(JS,"time");var Nd=y("ZodMiniISODuration",(e,t)=>{tn.init(e,t),Xr.init(e,t)});function XS(e){return Wn(Nd,e)}s(XS,"duration");var hi={};Xe(hi,{bigint:()=>tw,boolean:()=>ew,date:()=>rw,number:()=>QS,string:()=>YS});function YS(e){return In(js,e)}s(YS,"string");function QS(e){return Jn(Bs,e)}s(QS,"number");function ew(e){return Qn($d,e)}s(ew,"boolean");function tw(e){return ei(bg,e)}s(tw,"bigint");function rw(e){return ni(Ag,e)}s(rw,"date");var Ud=b({retryOnFailure:b({defaultValue:I(se()),hide:I(se())}),continueOnFailure:b({defaultValue:I(se()),hide:I(se())})}),Md=class{constructor(t,o,n,r,i,a,c,u,l,d,f,h,p){this.name=t;this.displayName=o;this.description=n;this.props=r;this.propertyGroups=i;this.run=a;this.test=c;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=d;this.audience=f;this.aiMetadata=h;this.classification=p}static{s(this,"IAction")}},O=s(e=>new Md(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 ae=b({displayName:m(),description:I(m()),advanced:I(se()),width:I(Z(["half","full"])),icon:I(m()),placeholder:I(m())}),X=s((e,t)=>b({type:V(t),required:se(),defaultValue:I(mi())}),"TPropertyValue");var et=b({...ae.shape,...X(m(),"SHORT_TEXT").shape}),Pt=b({...ae.shape,...X(m(),"LONG_TEXT").shape});var Tg=b({label:m(),value:K(),description:I(m()),icon:I(m())}),Hs=b({disabled:I(se()),placeholder:I(m()),options:H(Tg)});var nw=Z(["cards"]),tt=b({...ae.shape,options:Hs,display:I(nw),...X(K(),"STATIC_DROPDOWN").shape}),At=b({...ae.shape,options:Hs,...X(H(K()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Ld=b({...ae.shape,...X(K(),"DROPDOWN").shape,refreshers:H(m())}),gi=b({...ae.shape,...X(H(K()),"MULTI_SELECT_DROPDOWN").shape,refreshers:H(m())});var It=b({...ae.shape,reveals:I(H(m())),...X(se(),"CHECKBOX").shape});var Et=b({...ae.shape,display:I(Z(["stepper"])),min:I(Re()),max:I(Re()),step:I(Re()),...X(Re(),"NUMBER").shape});var yi=b({...ae.shape,streaming:I(se()),...X(K(),"FILE").shape});var vi=b({...ae.shape,...X(m(),"DATE_TIME").shape});var Sg=J(m(),Q([et,Pt,tt,gi,At,It,Et,yi,vi])),xi=b({...ae.shape,properties:Sg,...X(H(K()),"ARRAY").shape});var wg=Z(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),Og=b({preset:I(wg),after:I(m()),before:I(m())}),Fd=b({...ae.shape,display:I(Z(["dropdown"])),...X(Og,"DATE_RANGE").shape});var _i=b({...ae.shape,...X(Q([J(m(),K())]),"JSON").shape});var kg=Q([et,tt,_i,xi,At]),iw=J(m(),kg),jd=b({refreshers:H(m()),...ae.shape,...X(K(),"DYNAMIC").shape});var qs=b({...ae.shape,...X(Pg(),"MARKDOWN").shape});var bi=(o=>(o.ARCHIVE="ARCHIVE",o.REGISTRY="REGISTRY",o))(bi||{}),Yr=(o=>(o.CUSTOM="CUSTOM",o.OFFICIAL="OFFICIAL",o))(Yr||{}),Qr=(E=>(E.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",E.COMMUNICATION="COMMUNICATION",E.COMMERCE="COMMERCE",E.CORE="CORE",E.UNIVERSAL_AI="UNIVERSAL_AI",E.FLOW_CONTROL="FLOW_CONTROL",E.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",E.ACCOUNTING="ACCOUNTING",E.PRODUCTIVITY="PRODUCTIVITY",E.CONTENT_AND_FILES="CONTENT_AND_FILES",E.DEVELOPER_TOOLS="DEVELOPER_TOOLS",E.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",E.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",E.HUMAN_RESOURCES="HUMAN_RESOURCES",E.PAYMENT_PROCESSING="PAYMENT_PROCESSING",E.MARKETING="MARKETING",E.SALES_AND_CRM="SALES_AND_CRM",E))(Qr||{});var Pi=(o=>(o.AUTHORIZATION_CODE="authorization_code",o.CLIENT_CREDENTIALS="client_credentials",o))(Pi||{}),Bd="both_client_credentials_and_authorization_code";var mt=(r=>(r.POLLING="POLLING",r.WEBHOOK="WEBHOOK",r.APP_WEBHOOK="APP_WEBHOOK",r.MANUAL="MANUAL",r))(mt||{}),Ai=(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))(Ai||{}),aw=b({strategy:Z(Ai),paramName:I(m())}),Ii=(o=>(o.SIMULATION="SIMULATION",o.TEST_FUNCTION="TEST_FUNCTION",o))(Ii||{});var Gs=(o=>(o.WEBSOCKET="WEBSOCKET",o.NONE="NONE",o))(Gs||{}),$g=b({status:I(Re()),body:I(K()),headers:I(J(m(),m()))}),Rg=b({type:V("DELAY"),resumeDateTime:m(),requestIdToReply:I(m()),handlerId:I(m()),streamStepProgress:I(Z(Gs))}),Cg=b({type:V("WEBHOOK"),requestId:m(),requestIdToReply:I(m()),response:$g,handlerId:I(m()),streamStepProgress:I(Z(Gs))}),sw=Q([Rg,Cg]);var cw=b({body:K(),rawBody:I(K()),headers:J(m(),m()),queryParams:J(m(),m())});function he(e){return e==null}s(he,"isNil");function Ei(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(Ei,"isEmpty");function Tt(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(Tt,"assertNotNullOrUndefined");function Zd(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(Zd,"tryCatchSync");var Hd=Ze(require("crypto"),1);var uw=128,Ht,eo,lw=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Ht||Ht.length<e?(Ht=Buffer.allocUnsafe(e*uw),Hd.default.randomFillSync(Ht),eo=0):eo+e>Ht.length&&(Hd.default.randomFillSync(Ht),eo=0)}catch(t){throw Ht=void 0,t}eo+=e},"fillPool"),pw=s(e=>(lw(e|=0),Ht.subarray(eo-e,eo)),"random"),dw=s((e,t,o)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*n*t/e.length);return(i=t)=>{if(i<=0)return"";let a="";for(;;){let c=o(r),u=r;for(;u--;)if(a+=e[c[u]&n]||"",a.length===i)return a}}},"customRandom"),zg=s((e,t=21)=>dw(e,t,pw),"customAlphabet");var mw="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Dg=21,mL=m().check(ze(new RegExp(`^[0-9a-zA-Z]{${Dg}}$`))),fw=zg(mw,Dg);var qt=Zt(Vt(e=>e instanceof Date?e.toISOString():e),m()),it={id:m(),created:qt,updated:qt},_e=s(e=>I(fi(e)),"Nullable");function qd(e){return I(fi(Z(e)))}s(qd,"NullableEnum");var gL=Zt(Vt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),I(se())),yL=I(Zs.datetime({offset:!0}).check(Rd(e=>e.slice(0,4)!=="0000"))),Ws=s(e=>Zt(Vt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),I(H(e))),"OptionalArrayFromQuery");var _L=J(m(),K());var Gt=(E=>(E.OPENAI="openai",E.OPENROUTER="openrouter",E.ANTHROPIC="anthropic",E.AZURE="azure",E.GOOGLE="google",E.ACTIVEPIECES="activepieces",E.CLOUDFLARE_GATEWAY="cloudflare-gateway",E.CUSTOM="custom",E.BEDROCK="bedrock",E.VERTEX="vertex",E.MISTRAL="mistral",E.XAI="xai",E.DEEPSEEK="deepseek",E.ZAI="zai",E.QWEN="qwen",E.MINIMAX="minimax",E.MOONSHOT="moonshot",E))(Gt||{});var D={};Xe(D,{$brand:()=>Fo,$input:()=>gs,$output:()=>hs,NEVER:()=>ra,TimePrecision:()=>vs,ZodAny:()=>gm,ZodArray:()=>_m,ZodBase64:()=>hc,ZodBase64URL:()=>gc,ZodBigInt:()=>so,ZodBigIntFormat:()=>xc,ZodBoolean:()=>ao,ZodCIDRv4:()=>mc,ZodCIDRv6:()=>fc,ZodCUID:()=>ac,ZodCUID2:()=>sc,ZodCatch:()=>Bm,ZodCodec:()=>Sc,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>no,ZodDate:()=>Ri,ZodDefault:()=>Nm,ZodDiscriminatedUnion:()=>Pm,ZodE164:()=>yc,ZodEmail:()=>oc,ZodEmoji:()=>nc,ZodEnum:()=>ro,ZodError:()=>hw,ZodExactOptional:()=>Cm,ZodFile:()=>$m,ZodFirstPartyTypeKind:()=>ef,ZodFunction:()=>Xm,ZodGUID:()=>Si,ZodIPv4:()=>pc,ZodIPv6:()=>dc,ZodISODate:()=>Xs,ZodISODateTime:()=>Js,ZodISODuration:()=>Qs,ZodISOTime:()=>Ys,ZodIntersection:()=>Am,ZodIssueCode:()=>yw,ZodJWT:()=>vc,ZodKSUID:()=>lc,ZodLazy:()=>Wm,ZodLiteral:()=>km,ZodMAC:()=>um,ZodMap:()=>wm,ZodNaN:()=>Zm,ZodNanoID:()=>ic,ZodNever:()=>vm,ZodNonOptional:()=>Ec,ZodNull:()=>fm,ZodNullable:()=>Dm,ZodNumber:()=>io,ZodNumberFormat:()=>br,ZodObject:()=>zi,ZodOptional:()=>Ic,ZodPipe:()=>Tc,ZodPrefault:()=>Um,ZodPromise:()=>Jm,ZodReadonly:()=>Hm,ZodRealError:()=>We,ZodRecord:()=>Ni,ZodSet:()=>Om,ZodString:()=>oo,ZodStringFormat:()=>me,ZodSuccess:()=>jm,ZodSymbol:()=>dm,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>Rm,ZodTuple:()=>Em,ZodType:()=>ee,ZodULID:()=>cc,ZodURL:()=>$i,ZodUUID:()=>ft,ZodUndefined:()=>mm,ZodUnion:()=>Di,ZodUnknown:()=>ym,ZodVoid:()=>xm,ZodXID:()=>uc,ZodXor:()=>bm,_ZodString:()=>rc,_default:()=>Mm,_function:()=>By,any:()=>_y,array:()=>Ci,base64:()=>oy,base64url:()=>ny,bigint:()=>hy,boolean:()=>pm,catch:()=>Vm,check:()=>Vy,cidrv4:()=>ty,cidrv6:()=>ry,clone:()=>ke,codec:()=>Ly,coerce:()=>tf,config:()=>xe,core:()=>Qe,cuid:()=>Gg,cuid2:()=>Wg,custom:()=>Zy,date:()=>Py,decode:()=>rm,decodeAsync:()=>nm,describe:()=>Hy,discriminatedUnion:()=>wy,e164:()=>iy,email:()=>Mg,emoji:()=>Hg,encode:()=>tm,encodeAsync:()=>om,endsWith:()=>mr,enum:()=>Pc,exactOptional:()=>zm,file:()=>Dy,flattenError:()=>Cr,float32:()=>py,float64:()=>dy,formatError:()=>zr,fromJSONSchema:()=>Yy,function:()=>By,getErrorMap:()=>xw,globalRegistry:()=>$e,gt:()=>lt,gte:()=>we,guid:()=>Ug,hash:()=>ly,hex:()=>uy,hostname:()=>cy,httpUrl:()=>Zg,includes:()=>pr,instanceof:()=>Gy,int:()=>tc,int32:()=>my,int64:()=>gy,intersection:()=>Im,ipv4:()=>Yg,ipv6:()=>ey,iso:()=>to,json:()=>Ky,jwt:()=>ay,keyof:()=>Ay,ksuid:()=>Xg,lazy:()=>Km,length:()=>Ut,literal:()=>zy,locales:()=>Gr,looseObject:()=>Ty,looseRecord:()=>ky,lowercase:()=>ur,lt:()=>ut,lte:()=>Le,mac:()=>Qg,map:()=>$y,maxLength:()=>Mt,maxSize:()=>bt,meta:()=>qy,mime:()=>fr,minLength:()=>Te,minSize:()=>pt,multipleOf:()=>_t,nan:()=>Uy,nanoid:()=>qg,nativeEnum:()=>Cy,negative:()=>ai,never:()=>_c,nonnegative:()=>ci,nonoptional:()=>Fm,nonpositive:()=>si,normalize:()=>hr,null:()=>hm,nullable:()=>Oi,nullish:()=>Ny,number:()=>lm,object:()=>Iy,optional:()=>wi,overwrite:()=>nt,parse:()=>Xd,parseAsync:()=>Yd,partialRecord:()=>Oy,pipe:()=>ki,positive:()=>ii,prefault:()=>Lm,preprocess:()=>Jy,prettifyError:()=>sa,promise:()=>jy,property:()=>ui,readonly:()=>qm,record:()=>Sm,refine:()=>Ym,regex:()=>ze,regexes:()=>Ge,registry:()=>Pn,safeDecode:()=>am,safeDecodeAsync:()=>cm,safeEncode:()=>im,safeEncodeAsync:()=>sm,safeParse:()=>Qd,safeParseAsync:()=>em,set:()=>Ry,setErrorMap:()=>vw,size:()=>Nt,slugify:()=>Kr,startsWith:()=>dr,strictObject:()=>Ey,string:()=>ec,stringFormat:()=>sy,stringbool:()=>Wy,success:()=>My,superRefine:()=>Qm,symbol:()=>vy,templateLiteral:()=>Fy,toJSONSchema:()=>di,toLowerCase:()=>yr,toUpperCase:()=>vr,transform:()=>Ac,treeifyError:()=>aa,trim:()=>gr,tuple:()=>Tm,uint32:()=>fy,uint64:()=>yy,ulid:()=>Kg,undefined:()=>xy,union:()=>bc,unknown:()=>_r,uppercase:()=>lr,url:()=>Vg,util:()=>C,uuid:()=>Lg,uuidv4:()=>Fg,uuidv6:()=>jg,uuidv7:()=>Bg,void:()=>by,xid:()=>Jg,xor:()=>Sy});var Ti={};Xe(Ti,{ZodAny:()=>gm,ZodArray:()=>_m,ZodBase64:()=>hc,ZodBase64URL:()=>gc,ZodBigInt:()=>so,ZodBigIntFormat:()=>xc,ZodBoolean:()=>ao,ZodCIDRv4:()=>mc,ZodCIDRv6:()=>fc,ZodCUID:()=>ac,ZodCUID2:()=>sc,ZodCatch:()=>Bm,ZodCodec:()=>Sc,ZodCustom:()=>Mi,ZodCustomStringFormat:()=>no,ZodDate:()=>Ri,ZodDefault:()=>Nm,ZodDiscriminatedUnion:()=>Pm,ZodE164:()=>yc,ZodEmail:()=>oc,ZodEmoji:()=>nc,ZodEnum:()=>ro,ZodExactOptional:()=>Cm,ZodFile:()=>$m,ZodFunction:()=>Xm,ZodGUID:()=>Si,ZodIPv4:()=>pc,ZodIPv6:()=>dc,ZodIntersection:()=>Am,ZodJWT:()=>vc,ZodKSUID:()=>lc,ZodLazy:()=>Wm,ZodLiteral:()=>km,ZodMAC:()=>um,ZodMap:()=>wm,ZodNaN:()=>Zm,ZodNanoID:()=>ic,ZodNever:()=>vm,ZodNonOptional:()=>Ec,ZodNull:()=>fm,ZodNullable:()=>Dm,ZodNumber:()=>io,ZodNumberFormat:()=>br,ZodObject:()=>zi,ZodOptional:()=>Ic,ZodPipe:()=>Tc,ZodPrefault:()=>Um,ZodPromise:()=>Jm,ZodReadonly:()=>Hm,ZodRecord:()=>Ni,ZodSet:()=>Om,ZodString:()=>oo,ZodStringFormat:()=>me,ZodSuccess:()=>jm,ZodSymbol:()=>dm,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>Rm,ZodTuple:()=>Em,ZodType:()=>ee,ZodULID:()=>cc,ZodURL:()=>$i,ZodUUID:()=>ft,ZodUndefined:()=>mm,ZodUnion:()=>Di,ZodUnknown:()=>ym,ZodVoid:()=>xm,ZodXID:()=>uc,ZodXor:()=>bm,_ZodString:()=>rc,_default:()=>Mm,_function:()=>By,any:()=>_y,array:()=>Ci,base64:()=>oy,base64url:()=>ny,bigint:()=>hy,boolean:()=>pm,catch:()=>Vm,check:()=>Vy,cidrv4:()=>ty,cidrv6:()=>ry,codec:()=>Ly,cuid:()=>Gg,cuid2:()=>Wg,custom:()=>Zy,date:()=>Py,describe:()=>Hy,discriminatedUnion:()=>wy,e164:()=>iy,email:()=>Mg,emoji:()=>Hg,enum:()=>Pc,exactOptional:()=>zm,file:()=>Dy,float32:()=>py,float64:()=>dy,function:()=>By,guid:()=>Ug,hash:()=>ly,hex:()=>uy,hostname:()=>cy,httpUrl:()=>Zg,instanceof:()=>Gy,int:()=>tc,int32:()=>my,int64:()=>gy,intersection:()=>Im,ipv4:()=>Yg,ipv6:()=>ey,json:()=>Ky,jwt:()=>ay,keyof:()=>Ay,ksuid:()=>Xg,lazy:()=>Km,literal:()=>zy,looseObject:()=>Ty,looseRecord:()=>ky,mac:()=>Qg,map:()=>$y,meta:()=>qy,nan:()=>Uy,nanoid:()=>qg,nativeEnum:()=>Cy,never:()=>_c,nonoptional:()=>Fm,null:()=>hm,nullable:()=>Oi,nullish:()=>Ny,number:()=>lm,object:()=>Iy,optional:()=>wi,partialRecord:()=>Oy,pipe:()=>ki,prefault:()=>Lm,preprocess:()=>Jy,promise:()=>jy,readonly:()=>qm,record:()=>Sm,refine:()=>Ym,set:()=>Ry,strictObject:()=>Ey,string:()=>ec,stringFormat:()=>sy,stringbool:()=>Wy,success:()=>My,superRefine:()=>Qm,symbol:()=>vy,templateLiteral:()=>Fy,transform:()=>Ac,tuple:()=>Tm,uint32:()=>fy,uint64:()=>yy,ulid:()=>Kg,undefined:()=>xy,union:()=>bc,unknown:()=>_r,url:()=>Vg,uuid:()=>Lg,uuidv4:()=>Fg,uuidv6:()=>jg,uuidv7:()=>Bg,void:()=>by,xid:()=>Jg,xor:()=>Sy});var Ks={};Xe(Ks,{endsWith:()=>mr,gt:()=>lt,gte:()=>we,includes:()=>pr,length:()=>Ut,lowercase:()=>ur,lt:()=>ut,lte:()=>Le,maxLength:()=>Mt,maxSize:()=>bt,mime:()=>fr,minLength:()=>Te,minSize:()=>pt,multipleOf:()=>_t,negative:()=>ai,nonnegative:()=>ci,nonpositive:()=>si,normalize:()=>hr,overwrite:()=>nt,positive:()=>ii,property:()=>ui,regex:()=>ze,size:()=>Nt,slugify:()=>Kr,startsWith:()=>dr,toLowerCase:()=>yr,toUpperCase:()=>vr,trim:()=>gr,uppercase:()=>lr});var to={};Xe(to,{ZodISODate:()=>Xs,ZodISODateTime:()=>Js,ZodISODuration:()=>Qs,ZodISOTime:()=>Ys,date:()=>Wd,datetime:()=>Gd,duration:()=>Jd,time:()=>Kd});var Js=y("ZodISODateTime",(e,t)=>{Yo.init(e,t),me.init(e,t)});function Gd(e){return Hn(Js,e)}s(Gd,"datetime");var Xs=y("ZodISODate",(e,t)=>{Qo.init(e,t),me.init(e,t)});function Wd(e){return qn(Xs,e)}s(Wd,"date");var Ys=y("ZodISOTime",(e,t)=>{en.init(e,t),me.init(e,t)});function Kd(e){return Gn(Ys,e)}s(Kd,"time");var Qs=y("ZodISODuration",(e,t)=>{tn.init(e,t),me.init(e,t)});function Jd(e){return Wn(Qs,e)}s(Jd,"duration");var Ng=s((e,t)=>{Go.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(o=>zr(e,o),"value")},flatten:{value:s(o=>Cr(e,o),"value")},addIssue:{value:s(o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,kr,2)},"value")},addIssues:{value:s(o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,kr,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),hw=y("ZodError",Ng),We=y("ZodError",Ng,{Parent:Error});var Xd=Dr(We),Yd=Nr(We),Qd=Mr(We),em=Lr(We),tm=ca(We),rm=ua(We),om=la(We),nm=pa(We),im=da(We),am=ma(We),sm=fa(We),cm=ha(We);var ee=y("ZodType",(e,t)=>(q.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Jr(e,"input"),output:Jr(e,"output")}}),e.toJSONSchema=Gp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(C.mergeDefs(t,{checks:[...t.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(o,n)=>ke(e,o,n),e.brand=()=>e,e.register=((o,n)=>(o.add(e,n),e)),e.parse=(o,n)=>Xd(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>Qd(e,o,n),e.parseAsync=async(o,n)=>Yd(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>em(e,o,n),e.spa=e.safeParseAsync,e.encode=(o,n)=>tm(e,o,n),e.decode=(o,n)=>rm(e,o,n),e.encodeAsync=async(o,n)=>om(e,o,n),e.decodeAsync=async(o,n)=>nm(e,o,n),e.safeEncode=(o,n)=>im(e,o,n),e.safeDecode=(o,n)=>am(e,o,n),e.safeEncodeAsync=async(o,n)=>sm(e,o,n),e.safeDecodeAsync=async(o,n)=>cm(e,o,n),e.refine=(o,n)=>e.check(Ym(o,n)),e.superRefine=o=>e.check(Qm(o)),e.overwrite=o=>e.check(nt(o)),e.optional=()=>wi(e),e.exactOptional=()=>zm(e),e.nullable=()=>Oi(e),e.nullish=()=>wi(Oi(e)),e.nonoptional=o=>Fm(e,o),e.array=()=>Ci(e),e.or=o=>bc([e,o]),e.and=o=>Im(e,o),e.transform=o=>ki(e,Ac(o)),e.default=o=>Mm(e,o),e.prefault=o=>Lm(e,o),e.catch=o=>Vm(e,o),e.pipe=o=>ki(e,o),e.readonly=()=>qm(e),e.describe=o=>{let n=e.clone();return $e.add(n,{description:o}),n},Object.defineProperty(e,"description",{get(){return $e.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return $e.get(e);let n=e.clone();return $e.add(n,o[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=o=>o(e),e)),rc=y("_ZodString",(e,t)=>{xt.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Wp(e,n,r,i);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...n)=>e.check(ze(...n)),e.includes=(...n)=>e.check(pr(...n)),e.startsWith=(...n)=>e.check(dr(...n)),e.endsWith=(...n)=>e.check(mr(...n)),e.min=(...n)=>e.check(Te(...n)),e.max=(...n)=>e.check(Mt(...n)),e.length=(...n)=>e.check(Ut(...n)),e.nonempty=(...n)=>e.check(Te(1,...n)),e.lowercase=n=>e.check(ur(n)),e.uppercase=n=>e.check(lr(n)),e.trim=()=>e.check(gr()),e.normalize=(...n)=>e.check(hr(...n)),e.toLowerCase=()=>e.check(yr()),e.toUpperCase=()=>e.check(vr()),e.slugify=()=>e.check(Kr())}),oo=y("ZodString",(e,t)=>{xt.init(e,t),rc.init(e,t),e.email=o=>e.check(En(oc,o)),e.url=o=>e.check(cr($i,o)),e.jwt=o=>e.check(Zn(vc,o)),e.emoji=o=>e.check(kn(nc,o)),e.guid=o=>e.check(Wr(Si,o)),e.uuid=o=>e.check(Tn(ft,o)),e.uuidv4=o=>e.check(Sn(ft,o)),e.uuidv6=o=>e.check(wn(ft,o)),e.uuidv7=o=>e.check(On(ft,o)),e.nanoid=o=>e.check($n(ic,o)),e.guid=o=>e.check(Wr(Si,o)),e.cuid=o=>e.check(Rn(ac,o)),e.cuid2=o=>e.check(Cn(sc,o)),e.ulid=o=>e.check(zn(cc,o)),e.base64=o=>e.check(jn(hc,o)),e.base64url=o=>e.check(Bn(gc,o)),e.xid=o=>e.check(Dn(uc,o)),e.ksuid=o=>e.check(Nn(lc,o)),e.ipv4=o=>e.check(Mn(pc,o)),e.ipv6=o=>e.check(Un(dc,o)),e.cidrv4=o=>e.check(Ln(mc,o)),e.cidrv6=o=>e.check(Fn(fc,o)),e.e164=o=>e.check(Vn(yc,o)),e.datetime=o=>e.check(Gd(o)),e.date=o=>e.check(Wd(o)),e.time=o=>e.check(Kd(o)),e.duration=o=>e.check(Jd(o))});function ec(e){return An(oo,e)}s(ec,"string");var me=y("ZodStringFormat",(e,t)=>{ue.init(e,t),rc.init(e,t)}),oc=y("ZodEmail",(e,t)=>{Sa.init(e,t),me.init(e,t)});function Mg(e){return En(oc,e)}s(Mg,"email");var Si=y("ZodGUID",(e,t)=>{Ea.init(e,t),me.init(e,t)});function Ug(e){return Wr(Si,e)}s(Ug,"guid");var ft=y("ZodUUID",(e,t)=>{Ta.init(e,t),me.init(e,t)});function Lg(e){return Tn(ft,e)}s(Lg,"uuid");function Fg(e){return Sn(ft,e)}s(Fg,"uuidv4");function jg(e){return wn(ft,e)}s(jg,"uuidv6");function Bg(e){return On(ft,e)}s(Bg,"uuidv7");var $i=y("ZodURL",(e,t)=>{Xo.init(e,t),me.init(e,t)});function Vg(e){return cr($i,e)}s(Vg,"url");function Zg(e){return cr($i,{protocol:/^https?$/,hostname:Ge.domain,...C.normalizeParams(e)})}s(Zg,"httpUrl");var nc=y("ZodEmoji",(e,t)=>{wa.init(e,t),me.init(e,t)});function Hg(e){return kn(nc,e)}s(Hg,"emoji");var ic=y("ZodNanoID",(e,t)=>{Oa.init(e,t),me.init(e,t)});function qg(e){return $n(ic,e)}s(qg,"nanoid");var ac=y("ZodCUID",(e,t)=>{ka.init(e,t),me.init(e,t)});function Gg(e){return Rn(ac,e)}s(Gg,"cuid");var sc=y("ZodCUID2",(e,t)=>{$a.init(e,t),me.init(e,t)});function Wg(e){return Cn(sc,e)}s(Wg,"cuid2");var cc=y("ZodULID",(e,t)=>{Ra.init(e,t),me.init(e,t)});function Kg(e){return zn(cc,e)}s(Kg,"ulid");var uc=y("ZodXID",(e,t)=>{Ca.init(e,t),me.init(e,t)});function Jg(e){return Dn(uc,e)}s(Jg,"xid");var lc=y("ZodKSUID",(e,t)=>{za.init(e,t),me.init(e,t)});function Xg(e){return Nn(lc,e)}s(Xg,"ksuid");var pc=y("ZodIPv4",(e,t)=>{Da.init(e,t),me.init(e,t)});function Yg(e){return Mn(pc,e)}s(Yg,"ipv4");var um=y("ZodMAC",(e,t)=>{Ma.init(e,t),me.init(e,t)});function Qg(e){return ys(um,e)}s(Qg,"mac");var dc=y("ZodIPv6",(e,t)=>{Na.init(e,t),me.init(e,t)});function ey(e){return Un(dc,e)}s(ey,"ipv6");var mc=y("ZodCIDRv4",(e,t)=>{Ua.init(e,t),me.init(e,t)});function ty(e){return Ln(mc,e)}s(ty,"cidrv4");var fc=y("ZodCIDRv6",(e,t)=>{La.init(e,t),me.init(e,t)});function ry(e){return Fn(fc,e)}s(ry,"cidrv6");var hc=y("ZodBase64",(e,t)=>{Fa.init(e,t),me.init(e,t)});function oy(e){return jn(hc,e)}s(oy,"base64");var gc=y("ZodBase64URL",(e,t)=>{ja.init(e,t),me.init(e,t)});function ny(e){return Bn(gc,e)}s(ny,"base64url");var yc=y("ZodE164",(e,t)=>{Ba.init(e,t),me.init(e,t)});function iy(e){return Vn(yc,e)}s(iy,"e164");var vc=y("ZodJWT",(e,t)=>{Va.init(e,t),me.init(e,t)});function ay(e){return Zn(vc,e)}s(ay,"jwt");var no=y("ZodCustomStringFormat",(e,t)=>{Za.init(e,t),me.init(e,t)});function sy(e,t,o={}){return xr(no,e,t,o)}s(sy,"stringFormat");function cy(e){return xr(no,"hostname",Ge.hostname,e)}s(cy,"hostname");function uy(e){return xr(no,"hex",Ge.hex,e)}s(uy,"hex");function ly(e,t){let o=t?.enc??"hex",n=`${e}_${o}`,r=Ge[n];if(!r)throw new Error(`Unrecognized hash format: ${n}`);return xr(no,n,r,t)}s(ly,"hash");var io=y("ZodNumber",(e,t)=>{Br.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Kp(e,n,r,i),e.gt=(n,r)=>e.check(lt(n,r)),e.gte=(n,r)=>e.check(we(n,r)),e.min=(n,r)=>e.check(we(n,r)),e.lt=(n,r)=>e.check(ut(n,r)),e.lte=(n,r)=>e.check(Le(n,r)),e.max=(n,r)=>e.check(Le(n,r)),e.int=n=>e.check(tc(n)),e.safe=n=>e.check(tc(n)),e.positive=n=>e.check(lt(0,n)),e.nonnegative=n=>e.check(we(0,n)),e.negative=n=>e.check(ut(0,n)),e.nonpositive=n=>e.check(Le(0,n)),e.multipleOf=(n,r)=>e.check(_t(n,r)),e.step=(n,r)=>e.check(_t(n,r)),e.finite=()=>e;let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function lm(e){return Kn(io,e)}s(lm,"number");var br=y("ZodNumberFormat",(e,t)=>{rn.init(e,t),io.init(e,t)});function tc(e){return Xn(br,e)}s(tc,"int");function py(e){return xs(br,e)}s(py,"float32");function dy(e){return _s(br,e)}s(dy,"float64");function my(e){return bs(br,e)}s(my,"int32");function fy(e){return Ps(br,e)}s(fy,"uint32");var ao=y("ZodBoolean",(e,t)=>{ar.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Jp(e,o,n,r)});function pm(e){return Yn(ao,e)}s(pm,"boolean");var so=y("ZodBigInt",(e,t)=>{Vr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xp(e,n,r,i),e.gte=(n,r)=>e.check(we(n,r)),e.min=(n,r)=>e.check(we(n,r)),e.gt=(n,r)=>e.check(lt(n,r)),e.gte=(n,r)=>e.check(we(n,r)),e.min=(n,r)=>e.check(we(n,r)),e.lt=(n,r)=>e.check(ut(n,r)),e.lte=(n,r)=>e.check(Le(n,r)),e.max=(n,r)=>e.check(Le(n,r)),e.positive=n=>e.check(lt(BigInt(0),n)),e.negative=n=>e.check(ut(BigInt(0),n)),e.nonpositive=n=>e.check(Le(BigInt(0),n)),e.nonnegative=n=>e.check(we(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(_t(n,r));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function hy(e){return As(so,e)}s(hy,"bigint");var xc=y("ZodBigIntFormat",(e,t)=>{Ha.init(e,t),so.init(e,t)});function gy(e){return Is(xc,e)}s(gy,"int64");function yy(e){return Es(xc,e)}s(yy,"uint64");var dm=y("ZodSymbol",(e,t)=>{qa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Yp(e,o,n,r)});function vy(e){return Ts(dm,e)}s(vy,"symbol");var mm=y("ZodUndefined",(e,t)=>{Ga.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ed(e,o,n,r)});function xy(e){return Ss(mm,e)}s(xy,"_undefined");var fm=y("ZodNull",(e,t)=>{Wa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Qp(e,o,n,r)});function hm(e){return ws(fm,e)}s(hm,"_null");var gm=y("ZodAny",(e,t)=>{on.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>od(e,o,n,r)});function _y(){return ti(gm)}s(_y,"any");var ym=y("ZodUnknown",(e,t)=>{nn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>nd(e,o,n,r)});function _r(){return ri(ym)}s(_r,"unknown");var vm=y("ZodNever",(e,t)=>{Ka.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>rd(e,o,n,r)});function _c(e){return Os(vm,e)}s(_c,"never");var xm=y("ZodVoid",(e,t)=>{an.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>td(e,o,n,r)});function by(e){return oi(xm,e)}s(by,"_void");var Ri=y("ZodDate",(e,t)=>{sn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,r,i)=>id(e,n,r,i),e.min=(n,r)=>e.check(we(n,r)),e.max=(n,r)=>e.check(Le(n,r));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function Py(e){return ks(Ri,e)}s(Py,"date");var _m=y("ZodArray",(e,t)=>{cn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>yd(e,o,n,r),e.element=t.element,e.min=(o,n)=>e.check(Te(o,n)),e.nonempty=o=>e.check(Te(1,o)),e.max=(o,n)=>e.check(Mt(o,n)),e.length=(o,n)=>e.check(Ut(o,n)),e.unwrap=()=>e.element});function Ci(e,t){return qp(_m,e,t)}s(Ci,"array");function Ay(e){let t=e._zod.def.shape;return Pc(Object.keys(t))}s(Ay,"keyof");var zi=y("ZodObject",(e,t)=>{Ql.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>vd(e,o,n,r),C.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Pc(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:_r()}),e.loose=()=>e.clone({...e._zod.def,catchall:_r()}),e.strict=()=>e.clone({...e._zod.def,catchall:_c()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>C.extend(e,o),e.safeExtend=o=>C.safeExtend(e,o),e.merge=o=>C.merge(e,o),e.pick=o=>C.pick(e,o),e.omit=o=>C.omit(e,o),e.partial=(...o)=>C.partial(Ic,e,o[0]),e.required=(...o)=>C.required(Ec,e,o[0])});function Iy(e,t){let o={type:"object",shape:e??{},...C.normalizeParams(t)};return new zi(o)}s(Iy,"object");function Ey(e,t){return new zi({type:"object",shape:e,catchall:_c(),...C.normalizeParams(t)})}s(Ey,"strictObject");function Ty(e,t){return new zi({type:"object",shape:e,catchall:_r(),...C.normalizeParams(t)})}s(Ty,"looseObject");var Di=y("ZodUnion",(e,t)=>{sr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Us(e,o,n,r),e.options=t.options});function bc(e,t){return new Di({type:"union",options:e,...C.normalizeParams(t)})}s(bc,"union");var bm=y("ZodXor",(e,t)=>{Di.init(e,t),Xa.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Us(e,o,n,r),e.options=t.options});function Sy(e,t){return new bm({type:"union",options:e,inclusive:!1,...C.normalizeParams(t)})}s(Sy,"xor");var Pm=y("ZodDiscriminatedUnion",(e,t)=>{Di.init(e,t),un.init(e,t)});function wy(e,t,o){return new Pm({type:"union",options:t,discriminator:e,...C.normalizeParams(o)})}s(wy,"discriminatedUnion");var Am=y("ZodIntersection",(e,t)=>{Ya.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>xd(e,o,n,r)});function Im(e,t){return new Am({type:"intersection",left:e,right:t})}s(Im,"intersection");var Em=y("ZodTuple",(e,t)=>{ln.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>_d(e,o,n,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Tm(e,t,o){let n=t instanceof q,r=n?o:t,i=n?t:null;return new Em({type:"tuple",items:e,rest:i,...C.normalizeParams(r)})}s(Tm,"tuple");var Ni=y("ZodRecord",(e,t)=>{pn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>bd(e,o,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Sm(e,t,o){return new Ni({type:"record",keyType:e,valueType:t,...C.normalizeParams(o)})}s(Sm,"record");function Oy(e,t,o){let n=ke(e);return n._zod.values=void 0,new Ni({type:"record",keyType:n,valueType:t,...C.normalizeParams(o)})}s(Oy,"partialRecord");function ky(e,t,o){return new Ni({type:"record",keyType:e,valueType:t,mode:"loose",...C.normalizeParams(o)})}s(ky,"looseRecord");var wm=y("ZodMap",(e,t)=>{Qa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>hd(e,o,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...o)=>e.check(pt(...o)),e.nonempty=o=>e.check(pt(1,o)),e.max=(...o)=>e.check(bt(...o)),e.size=(...o)=>e.check(Nt(...o))});function $y(e,t,o){return new wm({type:"map",keyType:e,valueType:t,...C.normalizeParams(o)})}s($y,"map");var Om=y("ZodSet",(e,t)=>{es.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>gd(e,o,n,r),e.min=(...o)=>e.check(pt(...o)),e.nonempty=o=>e.check(pt(1,o)),e.max=(...o)=>e.check(bt(...o)),e.size=(...o)=>e.check(Nt(...o))});function Ry(e,t){return new Om({type:"set",valueType:e,...C.normalizeParams(t)})}s(Ry,"set");var ro=y("ZodEnum",(e,t)=>{dn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ad(e,n,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let o=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let i={};for(let a of n)if(o.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ro({...t,checks:[],...C.normalizeParams(r),entries:i})},e.exclude=(n,r)=>{let i={...t.entries};for(let a of n)if(o.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ro({...t,checks:[],...C.normalizeParams(r),entries:i})}});function Pc(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ro({type:"enum",entries:o,...C.normalizeParams(t)})}s(Pc,"_enum");function Cy(e,t){return new ro({type:"enum",entries:e,...C.normalizeParams(t)})}s(Cy,"nativeEnum");var km=y("ZodLiteral",(e,t)=>{mn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>sd(e,o,n,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 zy(e,t){return new km({type:"literal",values:Array.isArray(e)?e:[e],...C.normalizeParams(t)})}s(zy,"literal");var $m=y("ZodFile",(e,t)=>{ts.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ld(e,o,n,r),e.min=(o,n)=>e.check(pt(o,n)),e.max=(o,n)=>e.check(bt(o,n)),e.mime=(o,n)=>e.check(fr(Array.isArray(o)?o:[o],n))});function Dy(e){return Rs($m,e)}s(Dy,"file");var Rm=y("ZodTransform",(e,t)=>{fn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>fd(e,o,n,r),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new $t(e.constructor.name);o.addIssue=i=>{if(typeof i=="string")o.issues.push(C.issue(i,o.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=o.value),a.inst??(a.inst=e),o.issues.push(C.issue(a))}};let r=t.transform(o.value,o);return r instanceof Promise?r.then(i=>(o.value=i,o)):(o.value=r,o)}});function Ac(e){return new Rm({type:"transform",transform:e})}s(Ac,"transform");var Ic=y("ZodOptional",(e,t)=>{Zr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ls(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function wi(e){return new Ic({type:"optional",innerType:e})}s(wi,"optional");var Cm=y("ZodExactOptional",(e,t)=>{rs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ls(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function zm(e){return new Cm({type:"optional",innerType:e})}s(zm,"exactOptional");var Dm=y("ZodNullable",(e,t)=>{hn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Pd(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Oi(e){return new Dm({type:"nullable",innerType:e})}s(Oi,"nullable");function Ny(e){return wi(Oi(e))}s(Ny,"nullish");var Nm=y("ZodDefault",(e,t)=>{os.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Id(e,o,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Mm(e,t){return new Nm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}s(Mm,"_default");var Um=y("ZodPrefault",(e,t)=>{ns.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ed(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Lm(e,t){return new Um({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}s(Lm,"prefault");var Ec=y("ZodNonOptional",(e,t)=>{is.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Ad(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function Fm(e,t){return new Ec({type:"nonoptional",innerType:e,...C.normalizeParams(t)})}s(Fm,"nonoptional");var jm=y("ZodSuccess",(e,t)=>{as.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>pd(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function My(e){return new jm({type:"success",innerType:e})}s(My,"success");var Bm=y("ZodCatch",(e,t)=>{ss.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Td(e,o,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vm(e,t){return new Bm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Vm,"_catch");var Zm=y("ZodNaN",(e,t)=>{cs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>cd(e,o,n,r)});function Uy(e){return $s(Zm,e)}s(Uy,"nan");var Tc=y("ZodPipe",(e,t)=>{gn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Sd(e,o,n,r),e.in=t.in,e.out=t.out});function ki(e,t){return new Tc({type:"pipe",in:e,out:t})}s(ki,"pipe");var Sc=y("ZodCodec",(e,t)=>{Tc.init(e,t),Hr.init(e,t)});function Ly(e,t,o){return new Sc({type:"pipe",in:e,out:t,transform:o.decode,reverseTransform:o.encode})}s(Ly,"codec");var Hm=y("ZodReadonly",(e,t)=>{us.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>wd(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function qm(e){return new Hm({type:"readonly",innerType:e})}s(qm,"readonly");var Gm=y("ZodTemplateLiteral",(e,t)=>{ls.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>ud(e,o,n,r)});function Fy(e,t){return new Gm({type:"template_literal",parts:e,...C.normalizeParams(t)})}s(Fy,"templateLiteral");var Wm=y("ZodLazy",(e,t)=>{ms.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>kd(e,o,n,r),e.unwrap=()=>e._zod.def.getter()});function Km(e){return new Wm({type:"lazy",getter:e})}s(Km,"lazy");var Jm=y("ZodPromise",(e,t)=>{ds.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>Od(e,o,n,r),e.unwrap=()=>e._zod.def.innerType});function jy(e){return new Jm({type:"promise",innerType:e})}s(jy,"promise");var Xm=y("ZodFunction",(e,t)=>{ps.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>md(e,o,n,r)});function By(e){return new Xm({type:"function",input:Array.isArray(e?.input)?Tm(e?.input):e?.input??Ci(_r()),output:e?.output??_r()})}s(By,"_function");var Mi=y("ZodCustom",(e,t)=>{yn.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,r)=>dd(e,o,n,r)});function Vy(e){let t=new de({check:"custom"});return t._zod.check=e,t}s(Vy,"check");function Zy(e,t){return li(Mi,e??(()=>!0),t)}s(Zy,"custom");function Ym(e,t={}){return pi(Mi,e,t)}s(Ym,"refine");function Qm(e){return Cs(e)}s(Qm,"superRefine");var Hy=zs,qy=Ds;function Gy(e,t={}){let o=new Mi({type:"custom",check:"custom",fn:s(n=>n instanceof e,"fn"),abort:!0,...C.normalizeParams(t)});return o._zod.bag.Class=e,o._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:o,path:[...o._zod.def.path??[]]})},o}s(Gy,"_instanceof");var Wy=s((...e)=>Ns({Codec:Sc,Boolean:ao,String:oo},...e),"stringbool");function Ky(e){let t=Km(()=>bc([ec(e),lm(),pm(),hm(),Ci(t),Sm(ec(),t)]));return t}s(Ky,"json");function Jy(e,t){return ki(Ac(e),t)}s(Jy,"preprocess");var yw={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 vw(e){xe({customError:e})}s(vw,"setErrorMap");function xw(){return xe().customError}s(xw,"getErrorMap");var ef;ef||(ef={});var N={...Ti,...Ks,iso:to},_w=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 bw(e,t){let o=e.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}s(bw,"detectVersion");function Pw(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=e.slice(1).split("/").filter(Boolean);if(o.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===n){let r=o[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}s(Pw,"resolveRef");function Xy(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return N.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 N.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=Pw(r,t),a=Ue(i,t);return t.refs.set(r,a),t.processing.delete(r),a}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 N.null();if(r.length===0)return N.never();if(r.length===1)return N.literal(r[0]);if(r.every(a=>typeof a=="string"))return N.enum(r);let i=r.map(a=>N.literal(a));return i.length<2?i[0]:N.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return N.literal(e.const);let o=e.type;if(Array.isArray(o)){let r=o.map(i=>{let a={...e,type:i};return Xy(a,t)});return r.length===0?N.never():r.length===1?r[0]:N.union(r)}if(!o)return N.any();let n;switch(o){case"string":{let r=N.string();if(e.format){let i=e.format;i==="email"?r=r.check(N.email()):i==="uri"||i==="uri-reference"?r=r.check(N.url()):i==="uuid"||i==="guid"?r=r.check(N.uuid()):i==="date-time"?r=r.check(N.iso.datetime()):i==="date"?r=r.check(N.iso.date()):i==="time"?r=r.check(N.iso.time()):i==="duration"?r=r.check(N.iso.duration()):i==="ipv4"?r=r.check(N.ipv4()):i==="ipv6"?r=r.check(N.ipv6()):i==="mac"?r=r.check(N.mac()):i==="cidr"?r=r.check(N.cidrv4()):i==="cidr-v6"?r=r.check(N.cidrv6()):i==="base64"?r=r.check(N.base64()):i==="base64url"?r=r.check(N.base64url()):i==="e164"?r=r.check(N.e164()):i==="jwt"?r=r.check(N.jwt()):i==="emoji"?r=r.check(N.emoji()):i==="nanoid"?r=r.check(N.nanoid()):i==="cuid"?r=r.check(N.cuid()):i==="cuid2"?r=r.check(N.cuid2()):i==="ulid"?r=r.check(N.ulid()):i==="xid"?r=r.check(N.xid()):i==="ksuid"&&(r=r.check(N.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))),n=r;break}case"number":case"integer":{let r=o==="integer"?N.number().int():N.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)),n=r;break}case"boolean":{n=N.boolean();break}case"null":{n=N.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[u,l]of Object.entries(i)){let d=Ue(l,t);r[u]=a.has(u)?d:d.optional()}if(e.propertyNames){let u=Ue(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Ue(e.additionalProperties,t):N.any();if(Object.keys(r).length===0){n=N.record(u,l);break}let d=N.object(r).passthrough(),f=N.looseRecord(u,l);n=N.intersection(d,f);break}if(e.patternProperties){let u=e.patternProperties,l=Object.keys(u),d=[];for(let h of l){let p=Ue(u[h],t),v=N.string().regex(new RegExp(h));d.push(N.looseRecord(v,p))}let f=[];if(Object.keys(r).length>0&&f.push(N.object(r).passthrough()),f.push(...d),f.length===0)n=N.object({}).passthrough();else if(f.length===1)n=f[0];else{let h=N.intersection(f[0],f[1]);for(let p=2;p<f.length;p++)h=N.intersection(h,f[p]);n=h}break}let c=N.object(r);e.additionalProperties===!1?n=c.strict():typeof e.additionalProperties=="object"?n=c.catchall(Ue(e.additionalProperties,t)):n=c.passthrough();break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=r.map(u=>Ue(u,t)),c=i&&typeof i=="object"&&!Array.isArray(i)?Ue(i,t):void 0;c?n=N.tuple(a).rest(c):n=N.tuple(a),typeof e.minItems=="number"&&(n=n.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(N.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>Ue(u,t)),c=e.additionalItems&&typeof e.additionalItems=="object"?Ue(e.additionalItems,t):void 0;c?n=N.tuple(a).rest(c):n=N.tuple(a),typeof e.minItems=="number"&&(n=n.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(N.maxLength(e.maxItems)))}else if(i!==void 0){let a=Ue(i,t),c=N.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),n=c}else n=N.array(N.any());break}default:throw new Error(`Unsupported type: ${o}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}s(Xy,"convertBaseSchema");function Ue(e,t){if(typeof e=="boolean")return e?N.any():N.never();let o=Xy(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(l=>Ue(l,t)),u=N.union(c);o=n?N.intersection(o,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(l=>Ue(l,t)),u=N.xor(c);o=n?N.intersection(o,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=n?o:N.any();else{let c=n?o:Ue(e.allOf[0],t),u=n?0:1;for(let l=u;l<e.allOf.length;l++)c=N.intersection(c,Ue(e.allOf[l],t));o=c}e.nullable===!0&&t.version==="openapi-3.0"&&(o=N.nullable(o)),e.readOnly===!0&&(o=N.readonly(o));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of i)c in e&&(r[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(r[c]=e[c]);for(let c of Object.keys(e))_w.has(c)||(r[c]=e[c]);return Object.keys(r).length>0&&t.registry.add(o,r),o}s(Ue,"convertSchema");function Yy(e,t){if(typeof e=="boolean")return e?N.any():N.never();let o=bw(e,t?.defaultTarget),n=e.$defs||e.definitions||{},r={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??$e};return Ue(e,r)}s(Yy,"fromJSONSchema");var tf={};Xe(tf,{bigint:()=>Tw,boolean:()=>Ew,date:()=>Sw,number:()=>Iw,string:()=>Aw});function Aw(e){return In(oo,e)}s(Aw,"string");function Iw(e){return Jn(io,e)}s(Iw,"number");function Ew(e){return Qn(ao,e)}s(Ew,"boolean");function Tw(e){return ei(so,e)}s(Tw,"bigint");function Sw(e){return ni(Ri,e)}s(Sw,"date");xe(vn());var rf={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"};var Qy=(o=>(o.IMAGE="image",o.TEXT="text",o))(Qy||{}),je=D.object({apiKey:D.string()}),ev=D.object({serviceAccountJson:D.string().min(1)}),tv=je,rv=je.extend({apiKeyHash:D.string()}),ov=je,nv=je,iv=je,av=je,sv=je,cv=je,uv=D.object({accessKeyId:D.string().min(1),secretAccessKey:D.string().min(1),sessionToken:D.string().optional()}),lv=je,pv=D.object({}),dv=D.object({}),of=D.object({modelId:D.string(),modelName:D.string(),modelType:D.enum(Qy)}),mv=D.object({apiKeyHeader:D.string(),baseUrl:D.string(),models:D.array(of),defaultHeaders:D.record(D.string(),D.string()).optional(),apiStyle:D.enum(["chat","responses"]).optional()}),fv=D.object({accountId:D.string(),gatewayId:D.string(),models:D.array(of),vertexProject:D.string().optional(),vertexRegion:D.string().optional()}),hv=D.object({resourceName:D.string(),apiVersion:D.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,D.string().optional())}),gv=D.object({}),yv=D.object({}),vv=D.object({}),xv=D.object({region:D.string().min(1)}),_v=D.object({project:D.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,rf.invalidGcpResourceId),region:D.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,rf.invalidGcpResourceId),models:D.array(of)}),bv=D.object({}),Pr=D.object({}),lF=D.union([tv,iv,av,sv,cv,nv,ov,rv,uv,ev,lv]),pF=D.union([mv,fv,hv,_v,xv,pv,gv,yv,vv,dv,bv,Pr]),dF=D.discriminatedUnion("provider",[D.object({provider:D.literal("openai"),config:yv.partial(),auth:sv.partial()}),D.object({provider:D.literal("openrouter"),config:vv.partial(),auth:cv.partial()}),D.object({provider:D.literal("anthropic"),config:pv.partial(),auth:tv.partial()}),D.object({provider:D.literal("azure"),config:hv.partial(),auth:iv.partial()}),D.object({provider:D.literal("google"),config:gv.partial(),auth:av.partial()}),D.object({provider:D.literal("cloudflare-gateway"),config:fv.partial(),auth:nv.partial()}),D.object({provider:D.literal("custom"),config:mv.partial(),auth:ov.partial()}),D.object({provider:D.literal("activepieces"),config:dv.partial(),auth:rv.partial()}),D.object({provider:D.literal("bedrock"),config:xv.partial(),auth:uv.partial()}),D.object({provider:D.literal("vertex"),config:_v.partial(),auth:ev.partial()}),D.object({provider:D.literal("mistral"),config:bv.partial(),auth:lv.partial()}),D.object({provider:D.literal("xai"),config:Pr.partial(),auth:je.partial()}),D.object({provider:D.literal("deepseek"),config:Pr.partial(),auth:je.partial()}),D.object({provider:D.literal("zai"),config:Pr.partial(),auth:je.partial()}),D.object({provider:D.literal("qwen"),config:Pr.partial(),auth:je.partial()}),D.object({provider:D.literal("minimax"),config:Pr.partial(),auth:je.partial()}),D.object({provider:D.literal("moonshot"),config:Pr.partial(),auth:je.partial()})]);var PF=m().check(ze(/^#[0-9A-Fa-f]{6}$/));var IF=b({filename:m(),data:K(),type:V("file"),mimetype:I(m())});var ww=Ze(Av());var $F=b({...it,name:m(),permissions:H(m()),platformId:_e(m()),type:m(),userCount:I(Re())});var jF=D.enum(["active","out_of_credits","rejected","unreachable"]);var Iv=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Iv||{}),nf=(o=>(o.FILE="FILE",o.TABLE="TABLE",o))(nf||{}),af=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(af||{});var sf=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(sf||{});var cf=(o=>(o.IN_PROGRESS="in-progress",o.COMPLETED="completed",o))(cf||{});var Ow=b({mode:Z(Iv),value:K()}),kw=b({auth:I(m()),fields:J(m(),Ow)}),$w=b({pieceName:m(),pieceVersion:m(),actionName:m(),predefinedInput:I(kw)}),Rw=b({type:V("PIECE"),toolName:m().check(Te(1)),pieceMetadata:$w}),Cw=b({type:V("none")}),zw=b({type:V("access_token"),accessToken:m()}),Dw=b({type:V("api_key"),apiKey:m(),apiKeyHeader:m()}),Nw=b({type:V("headers"),headers:J(m(),m())}),Mw=Bt("type",[Cw,zw,Dw,Nw]),Ev=b({type:V("FLOW"),toolName:m().check(Te(1)),externalFlowId:m(),flowDisplayName:I(m())}),Tv=b({type:V("MCP"),toolName:m().check(Te(1)),serverUrl:xg(),protocol:Z(af),auth:Mw}),Sv=b({type:V("KNOWLEDGE_BASE"),toolName:m().check(Te(1)),sourceType:Z(nf),sourceId:m(),sourceName:m()}),Uw=Bt("type",[Rw,Ev,Tv,Sv]),Lw=b({displayName:m(),description:I(m()),type:Z(sf)}),wv=b({type:V("MARKDOWN"),markdown:m()}),co={type:V("TOOL_CALL"),input:_e(J(m(),K())),output:I(K()),toolName:m(),status:Z(cf),toolCallId:m(),startTime:m(),endTime:I(m())},wj=b(co),Ov=Bt("toolCallType",[b({...co,toolCallType:V("PIECE"),pieceName:m(),pieceVersion:m(),actionName:m()}),b({...co,toolCallType:V("FLOW"),displayName:m(),externalFlowId:m()}),b({...co,toolCallType:V("MCP"),displayName:m(),serverUrl:m()}),b({...co,toolCallType:V("KNOWLEDGE_BASE"),displayName:m(),sourceType:m()}),b({...co,toolCallType:V("UNKNOWN"),displayName:m()})]),Fw=Q([wv,Ov]);var jw=10800*1e3,Bw=900*1e3;var lf=(o=>(o.IMAGE="image",o.TEXT="text",o))(lf||{}),St=b({apiKey:m()}),Zw=St,Hw=b({apiKey:m(),apiKeyHash:m()}),qw=St,Gw=St,Ww=St,Kw=St,Jw=St,Xw=St,Yw=St,Cv=b({serviceAccountJson:m().check(Te(1))}),zv=b({accessKeyId:m().check(Te(1)),secretAccessKey:m().check(Te(1)),sessionToken:I(m())}),Qw=b({}),eO=b({}),tO=b({}),rO=b({}),oO=b({}),nO=b({}),pf=b({modelId:m(),modelName:m(),modelType:Z(lf)}),Dv=b({apiKeyHeader:m(),baseUrl:m(),models:H(pf),defaultHeaders:I(J(m(),m())),apiStyle:I(Z(["chat","responses"]))}),Nv=b({accountId:m(),gatewayId:m(),models:H(pf),vertexProject:I(m()),vertexRegion:I(m())}),Mv=b({resourceName:m(),apiVersion:Zt(Vt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),I(m()))}),Uv=b({region:m().check(Te(1))}),Lv=b({project:m().check(ze(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:m().check(ze(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:H(pf)}),Fv=b({}),iO=Q([Zw,Ww,Kw,Jw,Xw,Gw,qw,Hw,zv,Cv,Yw]),jv=Q([Dv,Nv,Mv,Lv,Uv,Qw,tO,rO,oO,eO,nO,Fv]),aO=b({id:m(),name:m(),type:Z(lf)}),sO=b({id:m(),name:m(),provider:Z(Gt),config:jv,enabledForChat:se()}),cO=b({provider:Z(Gt),name:m(),enabledForChat:se(),keys:H(b({id:m(),name:m()}))}),uO=b({provider:Z(Gt),configId:m(),config:jv,auth:iO,platformId:m()});var Rj={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},kv=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],lO=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Bv=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],uf=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],pO=["grok-4.20"],Cj=Bv.map(e=>`anthropic/${e}`),dO={openai:kv,anthropic:lO,google:uf,vertex:uf,activepieces:[...Bv.map(e=>`anthropic/${e}`),...kv.map(e=>`openai/${e}`),...uf.map(e=>`google/${e}`),...pO.map(e=>`x-ai/${e}`)]};var $v=128e3,mO={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function fO({provider:e}){return e?mO[e]??$v:$v}s(fO,"getMaxContextTokens");var Rv={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"},hO={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},gO=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),yO={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 De(e){return{chatModels:dO[e],maxContextTokens:fO({provider:e}),defaultEmbeddingModel:Rv[e],supportsEmbedding:Rv[e]!==void 0,supportsImageGeneration:!gO.has(e),defaultImageModel:vO[e],webSearch:hO[e]}}s(De,"buildProviderCapabilities");var Vv=[{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"}],vO={activepieces:Vv[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-2.5-flash-image"},xO={openai:De("openai"),anthropic:De("anthropic"),openrouter:De("openrouter"),azure:De("azure"),google:De("google"),"cloudflare-gateway":De("cloudflare-gateway"),custom:De("custom"),bedrock:De("bedrock"),vertex:De("vertex"),mistral:De("mistral"),activepieces:De("activepieces"),xai:De("xai"),deepseek:De("deepseek"),zai:De("zai"),qwen:De("qwen"),minimax:De("minimax"),moonshot:De("moonshot")};var _O=b({base64Url:m(),fileName:m(),extension:I(m())}),bO=b({mimeType:m(),url:m(),fileName:I(m())}),df=Q([_O,bO]);var PO=Q([b({type:V("file"),value:df}),b({type:V("markdown"),value:m(),files:I(H(df))})]),AO=b({sessionId:m(),message:m(),files:I(H(m()))});var Hv=(o=>(o.ON_NEW_RECORD="ON_NEW_RECORD",o.ON_UPDATE_RECORD="ON_UPDATE_RECORD",o))(Hv||{}),qv=(o=>(o.ENABLED="ENABLED",o.DISABLED="DISABLED",o))(qv||{}),mf=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(mf||{});var IO=Q([b({...it,name:m(),externalId:m(),type:V("STATIC_DROPDOWN"),tableId:m(),projectId:m(),data:b({options:H(b({value:m()}))})}),b({...it,name:m(),externalId:m(),type:Q([V("TEXT"),V("NUMBER"),V("DATE"),V("DATETIME")]),tableId:m(),projectId:m()})]),EO=b({...it,name:m(),folderId:_e(m()),projectId:m(),externalId:m(),status:qd(qv),trigger:qd(Hv)}),TO=b({...it,tableId:m(),projectId:m(),cells:J(m(),b({updated:m(),created:m(),value:K(),fieldName:m()}))}),SO=b({events:H(Z(mf)),webhookUrl:m(),flowId:m()}),wO=b({fields:H(b({id:m(),name:m()})),rows:H(J(m(),m())),name:m()}),OO=b({projectId:m(),limit:I(hi.number()),cursor:I(m()),name:I(m()),externalIds:Ws(m()),folderId:I(m()),folderIds:Ws(m())}),kO=b({records:H(H(b({fieldId:m(),value:Wv()}))),tableId:m()}),$O=b({cells:I(H(b({fieldId:m(),value:Wv()}))),tableId:m(),agentUpdate:I(se())}),Gv=Bt("operator",[Ar("eq"),Ar("neq"),Ar("gt"),Ar("gte"),Ar("lt"),Ar("lte"),Ar("co"),Zv("exists"),Zv("not_exists")]),RO=b({tableId:m(),limit:I(hi.number()),cursor:I(m()),filters:Ws(Gv)});function Wv(){return Zt(Vt(e=>e==null?e:String(e)),fi(m()))}s(Wv,"coerceToString");function Ar(e){return b({fieldId:m(),operator:V(e),value:m()})}s(Ar,"valueFilter");function Zv(e){return b({fieldId:m(),operator:V(e)})}s(Zv,"existenceFilter");var CO=b({status:I(Re()),body:I(K()),headers:I(J(m(),m()))}),zO=b({...it,deleted:_e(qt),ownerId:m(),displayName:m(),platformId:m(),externalId:_e(m())});var Kv=b({name:m(),description:I(m()),type:m(),required:se()}),DO=b({pieceName:m(),triggerName:m(),input:b({toolName:m(),toolDescription:m(),inputSchema:H(Kv),returnsResponse:se()})});var Jv="^[0-9]+\\.[0-9]+\\.[0-9]+$",Yj=new RegExp(Jv),MO="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",Qj=m().check(ze(new RegExp(Jv))),e1=m().check(ze(new RegExp(MO))),UO=b({packageType:V("ARCHIVE"),pieceType:Z(Yr),pieceName:m(),pieceVersion:m(),archiveId:m(),platformId:m()}),Xv=b({packageType:V("REGISTRY"),pieceType:V("OFFICIAL"),pieceName:m(),pieceVersion:m()}),Yv=b({packageType:V("REGISTRY"),pieceType:V("CUSTOM"),pieceName:m(),pieceVersion:m(),platformId:m()}),t1=Q([Xv,Yv]),r1=Q([UO,Xv,Yv]);var LO=Bt("type",[b({type:V("CRON_EXPRESSION"),cronExpression:m(),timezone:m()}),b({type:V("INTERVAL"),intervalMs:_g().check(we(6e4))})]),o1=b({...it,type:Z(mt),projectId:m(),flowId:m(),triggerName:m(),schedule:_e(LO),flowVersionId:m(),pieceName:m(),pieceVersion:m(),deleted:_e(m()),simulate:se()}),Qv=(w=>(w.UNKNOWN="UNKNOWN",w.FLOW_RUN_LOG="FLOW_RUN_LOG",w.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",w.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",w.FLOW_STEP_FILE="FLOW_STEP_FILE",w.SAMPLE_DATA="SAMPLE_DATA",w.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",w.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",w.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",w.PROJECT_RELEASE="PROJECT_RELEASE",w.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",w.PLATFORM_ASSET="PLATFORM_ASSET",w.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",w.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",w.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",w.KNOWLEDGE_BASE="KNOWLEDGE_BASE",w.FLOW_BUNDLE="FLOW_BUNDLE",w.PREWARM_SCOPE="PREWARM_SCOPE",w))(Qv||{}),ex=(o=>(o.NONE="NONE",o.ZSTD="ZSTD",o))(ex||{}),tx=(o=>(o.S3="S3",o.DB="DB",o))(tx||{}),n1=b({...it,projectId:_e(m()),platformId:_e(m()),type:Z(Qv),compression:Z(ex),data:I(K()),location:Z(tx),size:_e(Re()),fileName:_e(m()),s3Key:_e(m()),metadata:_e(J(m(),m()))}),rx=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(rx||{}),ox=(o=>(o.ACTIVE="ACTIVE",o.INACTIVE="INACTIVE",o))(ox||{}),i1=b({id:m(),email:m(),firstName:m(),status:Z(ox),externalId:_e(m()),platformId:_e(m()),platformRole:Z(rx),lastName:m(),created:qt,updated:qt,lastActiveDate:_e(qt),imageUrl:_e(m())});var hf=b({...ae.shape,...X(J(m(),K()),"OBJECT").shape});var gf=b({...ae.shape,formatProperty:I(m()),...X(m(),"RICH_TEXT").shape});var ax=b({...ae.shape,...X(m(),"COLOR").shape});var yf=Q([et,Pt,gf,qs,It,tt,At,Ld,gi,jd,Et,xi,hf,_i,vi,Fd,yi,ax]),g={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 ht=b({displayName:m(),description:I(m()),hasConnectionIdentifier:I(se())});var sx=b({username:m(),password:m()}),vf=b({...ht.shape,username:b({displayName:m(),description:I(m())}),password:b({displayName:m(),description:I(m())}),...X(sx,"BASIC_AUTH").shape});var VO=J(m(),Q([et,Pt,Et,It,tt])),xf=b({...ht.shape,props:VO,...X(K(),"CUSTOM_AUTH").shape});var Ir=b({...ht.shape,...X(b({auth:m()}),"SECRET_TEXT").shape});var ZO=J(m(),Q([et,Pt,Ir,Et,It,tt,At,qs])),cx=b({...ht.shape,props:ZO,...X(K(),"OIDC").shape});var _f=(o=>(o.HEADER="HEADER",o.BODY="BODY",o))(_f||{}),ux=Q([et,Ir,tt]),lx=J(m(),ux),HO=b({props:I(J(m(),ux)),authUrl:m(),tokenUrl:m(),scope:H(m()),prompt:I(Q([V("none"),V("consent"),V("login"),V("omit")])),pkce:I(se()),pkceMethod:I(Q([V("plain"),V("S256")])),authorizationMethod:I(Z(_f)),grantType:I(Q([Z(Pi),V(Bd)])),extra:I(J(m(),m()))}),px=b({access_token:m(),props:I(lx),data:J(m(),mi())}),bf=b({...ht.shape,...HO.shape,...X(px,"OAUTH2").shape});var uo=Q([vf,xf,cx,bf,Ir]),Ui="Connection",Pf={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Ui}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Ui,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Ui}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Ui}},None(){}};var B4={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 qO=b({...ae.shape,...X(K(),"CUSTOM").shape,code:m()});var GO=Q([yf,uo]),Af=J(m(),GO),cB=J(m(),yf);var dx=Q([b({strategy:V("CRON"),cronExpression:m()}),b({strategy:V("NONE")})]),lo=class{constructor(t,o,n,r,i,a,c,u,l,d,f,h,p,v,P,A,E,w,j,oe,pe){this.name=t;this.displayName=o;this.description=n;this.requireAuth=r;this.props=i;this.type=a;this.handshakeConfiguration=c;this.onHandshake=u;this.renewConfiguration=l;this.onRenew=d;this.onEnable=f;this.onDisable=h;this.onStart=p;this.run=v;this.test=P;this.sampleData=A;this.testStrategy=E;this.outputSchema=w;this.aiMetadata=j;this.classification=oe;this.propertyGroups=pe}static{s(this,"ITrigger")}},po=s(e=>{switch(e.type){case"WEBHOOK":return new lo(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 lo(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 lo(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 lo(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,he(e.sampleData)&&he(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var mx="2",Oc="0.82.0";var If=class{constructor(t,o,n,r,i,a,c,u,l=Oc,d,f="",h){this.displayName=t;this.logoUrl=o;this.authors=n;this.events=r;this.categories=c;this.auth=u;this.minimumSupportedRelease=l;this.maximumSupportedRelease=d;this.description=f;this.deprecated=h;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:mx}),"getContextInfo");(!KO(l)||JO(l,Oc))&&(this.minimumSupportedRelease=Oc),i.forEach(p=>this._actions[p.name]=p),a.forEach(p=>this._triggers[p.name]=p)}static{s(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:WO(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}},hx=s(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((o,n,r)=>n===r.findIndex(i=>i.type===o.type)))throw new Error("Auth properties must be unique by type");return new If(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 WO(e){if(e!==void 0)return Array.isArray(e)?e.map(fx):fx(e)}s(WO,"withConnectionIdentifierFlag");function fx(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(fx,"flagConnectionIdentifier");function KO(e){return/^\d+\.\d+\.\d+$/.test(e)}s(KO,"isValidSimpleSemver");function JO(e,t){let[o,n,r]=e.split(".").map(Number),[i,a,c]=t.split(".").map(Number);return o!==i?o<i:n!==a?n<a:r<c}s(JO,"isSemverLessThan");var XO=I(J(m(),J(m(),m()))),gx=b({id:I(m()),name:m(),displayName:m(),logoUrl:m(),description:m(),authors:H(m()),platformId:I(m()),directoryPath:I(m()),auth:I(Q([uo,H(uo)])),version:m(),categories:I(H(Z(Qr))),minimumSupportedRelease:I(m()),maximumSupportedRelease:I(m()),deprecated:I(se()),i18n:XO}),YO=Z(["human","ai","both"]),yx=b({description:I(m()),idempotent:I(se())}),vx=Z(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var QO=Z(["tabs","section","summary","builder","footer"]),xx=b({key:m(),display:QO,label:I(m()),description:I(m()),icon:I(m()),props:H(m())}),_x=b({name:m(),displayName:m(),description:m(),props:Af,propertyGroups:I(H(xx)),requireAuth:se(),errorHandlingOptions:I(Ud),outputSchema:I(Vs()),audience:I(YO),aiMetadata:I(yx),classification:I(vx)}),bx=b({name:m(),displayName:m(),description:m(),props:Af,propertyGroups:I(H(xx)),errorHandlingOptions:I(Ud),type:Z(mt),sampleData:K(),handshakeConfiguration:I(Vs()),renewConfiguration:I(dx),testStrategy:Z(Ii),outputSchema:I(Vs()),aiMetadata:I(yx),classification:I(vx)}),ek=b({...gx.shape,actions:J(m(),_x),triggers:J(m(),bx)}),tk=b({...gx.shape,actions:Re(),triggers:Re(),suggestedActions:I(H(_x)),suggestedTriggers:I(H(bx))}),Px=b({projectUsage:Re(),pieceType:Z(Yr),packageType:Z(bi),platformId:I(m()),archiveId:I(m())}),p6=b({...ek.shape,...Px.shape}),d6=b({...tk.shape,...Px.shape}),m6=b({name:m(),version:m()});var rk=Ze(require("path")),ok=Ze(require("fs/promises"));var mo=require("node:stream");var kc=class{constructor(t,o){this.baseUrl=t;this.authenticationConverter=o}static{s(this,"BaseHttpClient")}getUrl(t){let o=new URL(`${this.baseUrl}${t.url}`),n=`${o.origin}${o.pathname}`,r=new URLSearchParams;return o.searchParams.forEach((i,a)=>{r.append(a,i)}),{urlWithoutQueryParams:n,queryParams:r}}getHeaders(t){let o={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,o),t.body&&(t.headers?.["Content-Type"]==="text/csv"?o["Content-Type"]="text/csv":o["Content-Type"]="application/json"),t.headers&&(o={...o,...t.headers}),o}populateAuthentication(t,o){this.authenticationConverter.convert(t,o)}};var $c=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new Ef,o=new Tf){this.converters={BEARER_TOKEN:t,BASIC:o}}convert(t,o){return this.converters[t.type].convert(t,o)}},Ef=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,o){return o.Authorization=`Bearer ${t.token}`,o}},Tf=class{static{s(this,"BasicTokenAuthenticationConverter")}convert(t,o){let n=`${t.username}:${t.password}`,r=Buffer.from(n).toString("base64");return o.Authorization=`Basic ${r}`,o}};var Li=class extends Error{constructor(o,n){let r=n.status||500,i=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:r,body:i},request:{body:o}}));this.requestBody=o;this.status=r,this.responseBody=i}static{s(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 Ax({error:e,requestBody:t}){return e instanceof Li?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(Ax,"toFailsafeOutput");var Sf=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(Sf||{});var Rc=class extends kc{static{s(this,"FetchHttpClient")}constructor(t="",o=new $c){super(t,o)}async sendRequest(t,o){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:r}=this.getUrl(t),i=this.getHeaders(t),a=t.queryParams??{};for(let[j,oe]of Object.entries(a))r.append(j,oe);let c=r.toString(),u=c?`${n}?${c}`:n,l=t.responseType??"json",d=t.followRedirects??!0,f=t.retries??0,{body:h,extraHeaders:p,isStream:v}=Cc(t.method)?nk(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},P=ak({...i,...p}),A=await ik(async()=>{let j=new AbortController,oe=t.timeout&&t.timeout>0?setTimeout(()=>j.abort(),t.timeout):void 0;try{let pe={method:t.method.toString(),headers:P,body:h,redirect:d?"follow":"manual",signal:j.signal};return v&&(pe.duplex="half"),o?.dispatcher!==void 0&&(pe.dispatcher=o.dispatcher),await fetch(u,pe)}finally{oe!==void 0&&clearTimeout(oe)}},v?0:f),E=d?300:400;if(A.status<200||A.status>=E){let j=await Ix(A,l==="stream"?"text":l),oe=new Li(t.body,{status:A.status,responseBody:j});throw console.error("[HttpClient#(sanitized error message)] Request failed:",oe),oe}let w=await Ix(A,l);return{status:A.status,headers:sk(A.headers),body:w}}};function Cc(e){return e!=="GET"&&e!=="HEAD"}s(Cc,"acceptsRequestBody");function nk(e,t){if(Tx(e))return{body:void 0,extraHeaders:{},isStream:!1};if(uk(e)){let n=ck(e);if(n!==null)return{body:n,extraHeaders:e.getHeaders(),isStream:!1};let r=new mo.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof mo.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}}s(nk,"serializeBody");async function Ix(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return Tx(e.body)?mo.Readable.from([]):mo.Readable.fromWeb(e.body);case"blob":return await e.blob();case"text":return await e.text();default:{let o=await e.text();if(o.length===0)return;try{return JSON.parse(o)}catch{return o}}}}s(Ix,"parseResponseBody");async function ik(e,t){let o;for(let n=0;n<=t;n++)try{let r=await e();if(r.status>=500&&n<t){await Ex(n);continue}return r}catch(r){if(o=r,n<t){await Ex(n);continue}throw r}throw o}s(ik,"sendWithRetries");function Ex(e){let t=Math.min(1e3*2**e,3e4);return new Promise(o=>setTimeout(o,t))}s(Ex,"backoff");function ak(e){let t=new Map;for(let[o,n]of Object.entries(e))n!==void 0&&t.set(o.toLowerCase(),[o,Array.isArray(n)?n.join(", "):n]);return Object.fromEntries(t.values())}s(ak,"normalizeHeaders");function sk(e){let t={};return e.forEach((o,n)=>{t[n]=o}),t}s(sk,"toHttpHeaders");function ck(e){if(!e.hasKnownLength()||e.getLengthSync()>lk)return null;let{data:t}=Zd(()=>e.getBuffer());return t}s(ck,"bufferFormDataIfSafe");function uk(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(uk,"isNodeFormData");function Tx(e){return e==null}s(Tx,"isNil");var lk=100*1024*1024;var Sx=new Rc;var X$=Ze(require("fs")),Cb=Ze(Rb());var Y$={"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 Q$(e){let t=e.split(";")[0].trim().toLowerCase();return Y$[t]??""}s(Q$,"contentTypeToExtension");var eR=s(({baseUrl:e,relativePath:t})=>{let o=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${o}${n}`},"joinBaseUrlWithRelativePath"),tR=s((e,t)=>{let o="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??o}catch{return o}},"getBaseUrlForDescription");function zb({auth:e,baseUrl:t,authMapping:o,description:n,displayName:r,name:i,props:a,extraProps:c,authLocation:u="headers",classification:l="WRITE"}){return O({audience:"human",name:i||"custom_api_call",classification:l,displayName:r||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:g.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:d})=>({url:g.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${tR(t,d)}`,required:!0,placeholder:"/resource",defaultValue:d?t(d):"",...a?.url??{}})}),"props")}),method:g.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Sf).map(d=>({label:d,value:d}))},...a?.method??{}}),headers:g.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:g.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:g.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:d})=>Cc(d)?{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:g.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:d,method:f})=>{if(!d||!Cc(f))return{};let h=d,p={};switch(h){case"none":break;case"json":p.data=g.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=g.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=g.Array({displayName:"Form Data",required:!0,properties:{fieldName:g.ShortText({displayName:"Field Name",required:!0}),fieldType:g.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:g.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:g.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:g.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:g.Checkbox({displayName:"Return Error as Output",description:"On a failed request, output the error instead of failing the step.",required:!1,advanced:!0,...a?.failsafe??{}}),timeout:g.Number({displayName:"Timeout",description:"Seconds to wait for a response. Empty: up to the flow limit (10 min).",required:!1,advanced:!0,...a?.timeout??{}}),followRedirects:g.Checkbox({displayName:"Follow redirects",description:"Follow 3xx redirects instead of returning them as the response.",required:!1,defaultValue:!1,advanced:!0,...a?.followRedirects??{}}),...c},run:s(async d=>{let{method:f,url:h,headers:p,queryParams:v,body:P,body_type:A,failsafe:E,timeout:w,response_is_binary:j,followRedirects:oe}=d.propsValue;Tt(f,"Method"),Tt(h,"URL");let pe=he(o)?{}:await o(d.auth,d.propsValue),Ne=h.url,Ae=Ne.startsWith("http://")||Ne.startsWith("https://")?Ne:eR({baseUrl:t(d.auth),relativePath:Ne}),ne={method:f,url:Ae,headers:{...p??{},...u==="headers"||!he(u)?pe:{}},queryParams:{...u==="queryParams"?pe:{},...v??{}},timeout:w?w*1e3:0,followRedirects:oe};if(j&&(ne.responseType="arraybuffer"),P)if(A&&A!=="none"){let Be=P.data;if(A==="form_data"){let ea=Be,W=new Cb.default;for(let{fieldName:L,fieldType:M,textFieldValue:B,fileFieldValue:U}of ea)M==="text"&&!Ei(B)?W.append(L,B):M==="file"&&!Ei(U)&&W.append(L,U.data,{filename:U?.filename});ne.body=W,ne.headers={...ne.headers,...W.getHeaders()}}else ne.body=Be}else A||(ne.body=P);try{let Be=await Sx.sendRequest(ne);return await rR(d.files,Be.body,Be.status,Be.headers,j)}catch(Be){if(E)return Ax({error:Be,requestBody:ne.body});throw Be}},"run")})}s(zb,"createCustomApiCallAction");var rR=s(async(e,t,o,n,r)=>{let i;if(r&&oR(t)){let a=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],c=Q$(a??"")||"txt",u;t instanceof ArrayBuffer?u=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?u=t:u=Buffer.from(t),i=await e.write({fileName:`output.${c}`,data:u})}else i=t;return{status:o,headers:n,body:i}},"handleBinaryResponse"),oR=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var gt={async poll(e,{store:t,auth:o,propsValue:n,maxItemsToPoll:r,files:i,server:a}){switch(e.strategy){case 0:{let c=await t.get("lastPoll");if(he(c))throw new Error("lastPoll doesn't exist in the store.");let u=await e.items({store:t,auth:o,propsValue:n,lastFetchEpochMS:c,server:a}),l=u.reduce((d,f)=>Math.max(d,f.epochMilliSeconds),c);return await t.put("lastPoll",l),u.filter(d=>d.epochMilliSeconds>c).map(d=>d.data)}case 1:{let c=await t.get("lastItem"),u=await e.items({store:t,auth:o,propsValue:n,lastItemId:c,files:i,server:a}),l=u.findIndex(h=>h.id===c),d=[];he(c)||l==-1?d=u??[]:d=u?.slice(0,l)??[],he(r)||(d=d.slice(-r));let f=d?.[0]?.id;return he(f)||await t.put("lastItem",f),d.map(h=>h.data)}}},async onEnable(e,{store:t,auth:o,propsValue:n,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!he(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!he(await t.get("lastItem")))break;let c=(await e.items({store:t,auth:o,propsValue:n,lastItemId:null,server:r}))?.[0]?.id;he(c)?await t.delete("lastItem"):await t.put("lastItem",c);break}}},async onDisable(e,t){switch(e.strategy){case 0:case 1:return}},async test(e,{auth:t,propsValue:o,store:n,files:r,server:i}){let a=[];switch(e.strategy){case 0:{a=await e.items({store:n,auth:t,propsValue:o,lastFetchEpochMS:0,server:i});break}case 1:{a=await e.items({store:n,auth:t,propsValue:o,lastItemId:null,files:r,server:i});break}}return nR(a.map(c=>c.data))}};function nR(e){return e.length<=5?e:e.slice(0,5)}s(nR,"getFirstFiveOrAll");var Vi="login.microsoftonline.com",Mb="login.microsoftonline.us",Db="Mail.ReadWrite Mail.Send Calendars.Read offline_access User.Read openid email profile",iR="https://graph.microsoft.com/.default",aR="https://graph.microsoft.us/.default",Nb={[Vi]:"https://graph.microsoft.com",[Mb]:"https://graph.microsoft.us"},Ub=g.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Vi,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Vi},{label:"US Government (GCC High)",value:Mb}]}}),Lb=g.StaticDropdown({displayName:"Access Mode",description:"Pick the option matching your Grant Type. Use a Delegated option with the Authorization Code grant (acts as the signed-in user). Use an App-only option with the Client Credentials grant (acts as the application \u2014 also set Tenant ID and Mailbox), choosing the one that matches your Cloud Environment.",required:!0,defaultValue:Db,options:{disabled:!1,options:[{label:"Delegated \u2014 Commercial (Global)",value:Db},{label:"App-only \u2014 Commercial (Global)",value:iR},{label:"App-only \u2014 US Government (GCC High)",value:aR}]}});function Fb(e){return e??Vi}s(Fb,"resolveCloudHost");function Vc(e){return Fb(e.props?.cloud)}s(Vc,"getMicrosoftCloudFromAuth");function xo(e){let t=Fb(e);return Nb[t]??Nb[Vi]}s(xo,"getGraphBaseUrl");var tA=Ze(Bu());function Tz(e){let t=Vc(e);return tA.Client.initWithMiddleware({authProvider:{getAccessToken:s(()=>Promise.resolve(e.access_token),"getAccessToken")},baseUrl:xo(t)})}s(Tz,"createClient");function Sz(e){let t=e.props?.mailbox?.trim();return t?`/users/${encodeURIComponent(t)}`:"/me"}s(Sz,"mailboxPrefix");var x={createClient:Tz,mailboxPrefix:Sz};var wz=`
|
|
45
45
|
This connection supports two access modes. Pick the matching **Grant Type** and **Access Mode** below.
|
|
46
46
|
|
|
47
47
|
**Delegated (Authorization Code)** \u2014 acts as the signed-in user. Keep **Access Mode** on the Delegated option, leave **Mailbox** blank, and keep **Tenant ID** as \`common\`. If you use your own Azure app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application), set the **Redirect URI** to {{redirectUrl}} and add these **Microsoft Graph (Delegated) permissions**:
|
|
@@ -56,7 +56,7 @@ This connection supports two access modes. Pick the matching **Grant Type** and
|
|
|
56
56
|
- Mail.Send
|
|
57
57
|
|
|
58
58
|
For app-only, Microsoft grants tenant-wide mailbox access by default \u2014 scope it to specific mailboxes with an [ApplicationAccessPolicy](https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access).
|
|
59
|
-
`,ne=Jm.OAuth2({description:qz,grantType:"both_client_credentials_and_authorization_code",props:{cloud:Fx,accessMode:Bx,tenant:w.ShortText({displayName:"Tenant ID",description:'Use "common" for the default delegated multi-tenant flow. For app-only (Client Credentials), set this to your Directory (tenant) ID.',required:!0,defaultValue:"common"}),mailbox:w.ShortText({displayName:"Mailbox (App-only)",description:"Email/UPN or user object ID of the mailbox to act on. Required for app-only (Client Credentials). Leave blank for delegated access (acts as the signed-in user).",required:!1})},authUrl:"https://{cloud}/{tenant}/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/{tenant}/oauth2/v2.0/token",required:!0,scope:["{accessMode}"],prompt:"omit",validate:s(async({auth:e})=>{try{let t=e;return await C.createClient(t).api(`${C.mailboxPrefix(t)}/mailFolders/inbox`).get(),{valid:!0}}catch(t){return{valid:!1,error:Gz(t)}}},"validate")});function Gz(e){if(typeof e=="object"&&e!==null){let t=[];if("statusCode"in e&&e.statusCode&&t.push(`HTTP ${String(e.statusCode)}`),"code"in e&&e.code&&t.push(String(e.code)),"message"in e&&e.message&&t.push(String(e.message)),"body"in e&&e.body){let n=e.body;t.push(typeof n=="string"?n.slice(0,800):JSON.stringify(n).slice(0,800))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"Unknown error while validating the connection."}s(Gz,"describeGraphError");var qt=s(e=>w.Dropdown({auth:ne,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your account first.",disabled:!0,options:[]};let n=t,o=C.createClient(n);try{return{disabled:!1,options:(await o.api(`${C.mailboxPrefix(n)}/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:`${a.subject||"No Subject"}`,value:a.id}))}}catch{return{disabled:!0,options:[]}}},"options")}),"messageIdDropdown"),sb=s(e=>w.Dropdown({auth:ne,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your account first.",disabled:!0,options:[]};let n=t,o=C.createClient(n);try{return{disabled:!1,options:(await o.api(`${C.mailboxPrefix(n)}/mailFolders/drafts/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:`${a.subject||"No Subject"}`,value:a.id}))}}catch{return{disabled:!0,options:[]}}},"options")}),"draftMessageIdDropdown"),Gt=s(e=>w.Dropdown({auth:ne,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your account first.",disabled:!0,options:[]};let n=t,o=C.createClient(n);try{return{disabled:!1,options:(await o.api(`${C.mailboxPrefix(n)}/mailFolders`).get()).value.map(a=>({label:a.displayName||a.id||"Unknown",value:a.id||""}))}}catch{return{disabled:!0,options:[]}}},"options")}),"mailFolderIdDropdown");var Pr=[{key:"name",label:"Name",value:"emailAddress.name"},{key:"address",label:"Email Address",value:"emailAddress.address",format:"email"}],Ic=[{key:"id",label:"Message ID"},{key:"subject",label:"Subject"},{key:"bodyPreview",label:"Body Preview"},{key:"body",label:"Body",children:[{key:"contentType",label:"Content Type"},{key:"content",label:"Content"}]},{key:"from",label:"From",children:Pr},{key:"sender",label:"Sender",children:Pr},{key:"toRecipients",label:"To Recipients",labelKey:"address",listItems:Pr},{key:"ccRecipients",label:"CC Recipients",labelKey:"address",listItems:Pr},{key:"bccRecipients",label:"BCC Recipients",labelKey:"address",listItems:Pr},{key:"replyTo",label:"Reply To",labelKey:"address",listItems:Pr},{key:"receivedDateTime",label:"Received At",format:"datetime"},{key:"sentDateTime",label:"Sent At",format:"datetime"},{key:"createdDateTime",label:"Created At",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"},{key:"hasAttachments",label:"Has Attachments",format:"boolean"},{key:"isRead",label:"Is Read",format:"boolean"},{key:"isDraft",label:"Is Draft",format:"boolean"},{key:"importance",label:"Importance"},{key:"categories",label:"Categories"},{key:"flag",label:"Flag",children:[{key:"flagStatus",label:"Flag Status"}]},{key:"webLink",label:"Web Link",format:"url"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"conversationId",label:"Conversation ID"},{key:"internetMessageId",label:"Internet Message ID"}],ub=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"file",label:"File",format:"url"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],cb=[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"messageId",label:"Message ID"}],bn={fields:Ic},lb={fields:Ic.filter(e=>e.key!=="from"&&e.key!=="sender")},pb={fields:[{key:"found",label:"Found",format:"boolean"},{key:"totalCount",label:"Total Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextPageUrl",label:"Next Page URL",format:"url"},{key:"result",label:"Emails",labelKey:"subject",listItems:Ic}]},db={itemLabel:"{name}",fields:[{key:"attachments",label:"Attachments",value:"",listItems:ub}]},mb={fields:cb},fb={fields:cb},gb={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"draftId",label:"Draft ID"},{key:"draftLink",label:"Draft Link",format:"url"}]},hb={fields:[{key:"approved",label:"Approved",format:"boolean"}]},Ac={fields:Ic},yb={fields:[...ub,{key:"messageId",label:"Message ID"},{key:"messageSubject",label:"Message Subject"},{key:"messageSender",label:"Message Sender",children:Pr},{key:"messageReceivedDateTime",label:"Message Received At",format:"datetime"},{key:"parentFolderId",label:"Parent Folder ID"}]};var vb=me({auth:ne,name:"addLabelToEmail",classification:"WRITE",displayName:"Add Label to Email",description:"Adds a category (label) to an email message.",audience:"both",aiMetadata:{description:"Adds one or more Outlook categories (labels) to a specific message, merging them with any categories already present. Use this to tag or classify an email. Idempotent: re-adding the same categories leaves the message unchanged since duplicates are de-duplicated.",idempotent:!0},outputSchema:bn,props:{messageId:qt({displayName:"Email",description:"Select the email message to add the label to.",required:!0}),categories:w.Array({displayName:"Categories",description:"Categories to add to the email.",required:!0})},async run(e){let{messageId:t,categories:n}=e.propsValue,o=C.createClient(e.auth),i=(await o.api(`${C.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[],a=[...new Set([...i,...n])];return await o.api(`${C.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var _b=me({auth:ne,name:"createDraftEmail",classification:"WRITE",displayName:"Create Draft Email",description:"Creates a draft email message.",audience:"both",aiMetadata:{description:"Creates a new unsent draft email in the Outlook mailbox with recipients, subject, body, and optional attachments. Use this to stage a message for later review or sending (pair with Send Draft Email). Not idempotent: each call creates a separate draft.",idempotent:!1},outputSchema:lb,props:{recipients:w.Array({displayName:"To Email(s)",required:!0}),ccRecipients:w.Array({displayName:"CC Email(s)",required:!1,defaultValue:[]}),bccRecipients:w.Array({displayName:"BCC Email(s)",required:!1,defaultValue:[]}),subject:w.ShortText({displayName:"Subject",required:!0}),bodyFormat:w.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:w.LongText({displayName:"Body",required:!0}),attachments:w.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:w.File({displayName:"File",required:!0}),fileName:w.ShortText({displayName:"File Name",required:!1})}})},async run(e){let t=e.propsValue.recipients,n=e.propsValue.ccRecipients??[],o=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:u}=e.propsValue,c={subject:i,body:{content:a,contentType:u},toRecipients:t.map(f=>({emailAddress:{address:f}})),ccRecipients:n.map(f=>({emailAddress:{address:f}})),bccRecipients:o.map(f=>({emailAddress:{address:f}})),attachments:r.map(f=>({"@odata.type":"#microsoft.graph.fileAttachment",name:f.fileName||f.file.filename,contentBytes:f.file.base64}))};return await C.createClient(e.auth).api(`${C.mailboxPrefix(e.auth)}/messages`).post(c)}});var xb=me({auth:ne,name:"downloadAttachment",classification:"READ",displayName:"Download Attachment",description:"Download attachments from a specific email message.",audience:"human",aiMetadata:{description:"Fetches all file attachments from a specific Outlook message (by message ID) and writes them to storage for downstream steps. Use this after locating a message to retrieve its attached files. Requires a valid message ID; idempotent since it only reads.",idempotent:!0},outputSchema:db,props:{messageId:w.ShortText({displayName:"Message ID",description:"The ID of the email message containing the attachment.",required:!0})},async run(e){let{messageId:t}=e.propsValue,o=await C.createClient(e.auth).api(`${C.mailboxPrefix(e.auth)}/messages/${t}/attachments`).get(),r=[];for(let i of o.value)i.name&&i.contentBytes&&r.push({...i,file:await e.files.write({fileName:i.name||"test.png",data:Buffer.from(i.contentBytes,"base64")})});return r}});var Wf=ot($i());var Pb=me({auth:ne,name:"findEmail",classification:"SEARCH",displayName:"Find Email",description:"Searches for emails using full-text search.",audience:"both",aiMetadata:{description:"Searches the Outlook mailbox for messages matching a full-text query (supports field syntax like from:, subject:, hasAttachments:), optionally scoped to one folder and capped by a max-results count. Use this to locate emails and obtain their message IDs for follow-up actions. Idempotent read-only lookup.",idempotent:!0},outputSchema:pb,props:{searchQuery:w.ShortText({displayName:"Search Query",description:'Search terms to find emails (e.g., "from:john@example.com", "subject:urgent", "hasAttachments:true")',required:!0}),folderId:Gt({displayName:"Folder",description:"Search in a specific folder. Leave empty to search all folders.",required:!1}),top:w.Number({displayName:"Max Results",description:"Maximum number of results to return (1-1000).",required:!1,defaultValue:25})},async run(e){let{searchQuery:t,folderId:n,top:o}=e.propsValue,r=C.createClient(e.auth),i=n?`${C.mailboxPrefix(e.auth)}/mailFolders/${n}/messages`:`${C.mailboxPrefix(e.auth)}/messages`,a=`$search="${t}"`,u=o?`$top=${Math.min(Math.max(o,1),1e3)}`:"$top=25",c=[a,u].filter(Boolean).join("&"),l=`${i}?${c}`,m={ConsistencyLevel:"eventual",Prefer:'outlook.body-content-type="text"'},f=await r.api(l).headers(m).get(),g=f.value,p=f["@odata.nextLink"];return t&&g.sort((y,_)=>(0,Wf.default)(_.receivedDateTime).valueOf()-(0,Wf.default)(y.receivedDateTime).valueOf()),{found:g.length>0,result:g,hasMore:!!p,nextPageUrl:p,totalCount:g.length}}});var bb=me({auth:ne,name:"forwardEmail",classification:"WRITE",displayName:"Forward Email",description:"Forwards an email message.",audience:"both",aiMetadata:{description:"Forwards an existing Outlook message (by message ID) to new recipients, preserving the original body and attachments and prepending an optional comment. Use this to pass an existing email along rather than composing a new one. Not idempotent: each call sends a new forwarded email.",idempotent:!1},outputSchema:fb,props:{messageId:qt({displayName:"Email",description:"Select the email message to forward.",required:!0}),recipients:w.Array({displayName:"To Email(s)",required:!0}),comment:w.LongText({displayName:"Comment",description:"Optional comment to include with the forwarded message.",required:!1})},async run(e){let{messageId:t,comment:n}=e.propsValue,o=e.propsValue.recipients,r=C.createClient(e.auth),i=await r.api(`${C.mailboxPrefix(e.auth)}/messages/${t}`).get(),a={toRecipients:o.map(u=>({emailAddress:{address:u}})),body:{contentType:"html",content:(n??"")+"<br><br>"+i.body.content},attachments:i.attachments};return await r.api(`${C.mailboxPrefix(e.auth)}/messages/${t}/forward`).post({message:a}),{success:!0,message:"Email forwarded successfully.",messageId:t}}});var Eb=me({auth:ne,name:"moveEmailToFolder",classification:"WRITE",displayName:"Move Email to Folder",description:"Moves an email message to a specific folder.",audience:"both",aiMetadata:{description:"Moves a specific Outlook message into a chosen mail folder. Use this to organize, archive, or route an email after processing it. Note: the move assigns a new message ID, so re-running with the original ID will fail once moved.",idempotent:!1},outputSchema:bn,props:{messageId:qt({displayName:"Email",description:"Select the email message to move.",required:!0}),destinationFolderId:Gt({displayName:"Destination Folder",description:"The folder to move the email to.",required:!0})},async run(e){let{messageId:t,destinationFolderId:n}=e.propsValue;return await C.createClient(e.auth).api(`${C.mailboxPrefix(e.auth)}/messages/${t}/move`).post({destinationId:n})}});var Tb=me({auth:ne,name:"removeLabelFromEmail",classification:"WRITE",displayName:"Remove Label from Email",description:"Removes a category (label) from an email message.",audience:"both",aiMetadata:{description:"Removes one or more Outlook categories (labels) from a specific message, leaving any other categories intact. Use this to untag or reclassify an email. Idempotent: re-running with the same categories yields the same final label set.",idempotent:!0},outputSchema:bn,props:{messageId:qt({displayName:"Email",description:"Select the email message to remove the label from.",required:!0}),categories:w.Array({displayName:"Categories to Remove",description:"Categories to remove from the email.",required:!0})},async run(e){let{messageId:t,categories:n}=e.propsValue,o=C.createClient(e.auth),a=((await o.api(`${C.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[]).filter(c=>!n.includes(c));return await o.api(`${C.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var Sb=me({auth:ne,name:"reply-email",classification:"WRITE",displayName:"Reply to Email",description:"Reply to an outlook email.",audience:"both",aiMetadata:{description:"Replies to an existing Outlook message (identified by message ID), supporting added CC/BCC recipients and attachments. Set the Create Draft flag to stage the reply without sending; otherwise it is sent immediately. Not idempotent when sending: each call creates and dispatches a new reply.",idempotent:!1},outputSchema:gb,props:{messageId:w.Dropdown({auth:ne,displayName:"Email",description:"Select the email message to reply to.",required:!0,refreshers:[],options:s(async({auth:e})=>{if(!e)return{disabled:!0,options:[]};let t=C.createClient(e);try{return{disabled:!1,options:(await t.api(`${C.mailboxPrefix(e)}/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(r=>({label:`${r.subject||"No Subject"} - ${r.from?.emailAddress?.name||r.from?.emailAddress?.address||"Unknown Sender"}`,value:r.id||""}))}}catch{return{disabled:!0,options:[]}}},"options")}),bodyFormat:w.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),replyBody:w.LongText({displayName:"Reply Body",required:!0}),ccRecipients:w.Array({displayName:"CC Recipients",required:!1}),bccRecipients:w.Array({displayName:"BCC Recipients",required:!1}),attachments:w.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:w.File({displayName:"File",required:!0}),fileName:w.ShortText({displayName:"File Name",required:!1})}}),draft:w.Checkbox({displayName:"Create Draft",description:"If enabled, creates draft without sending.",required:!0,defaultValue:!1})},async run(e){let{replyBody:t,bodyFormat:n,messageId:o,draft:r}=e.propsValue,i=e.propsValue.ccRecipients??[],a=e.propsValue.bccRecipients??[],u=e.propsValue.attachments??[],c={body:{content:t,contentType:n},ccRecipients:i.map(m=>({emailAddress:{address:m}})),bccRecipients:a.map(m=>({emailAddress:{address:m}})),attachments:u.map(m=>({"@odata.type":"#microsoft.graph.fileAttachment",name:m.fileName||m.file.filename,contentBytes:m.file.base64}))},l=C.createClient(e.auth);try{let f=(await l.api(`${C.mailboxPrefix(e.auth)}/messages/${o}/createReply`).post({message:c})).id;return r?{success:!0,message:"Draft created successfully.",draftId:f,draftLink:`https://outlook.office.com/mail/drafts/id/${f}`}:(await l.api(`${C.mailboxPrefix(e.auth)}/messages/${f}/send`).post({}),{success:!0,message:"Reply sent successfully.",draftId:f})}catch(m){console.error("Reply Email Error:",m);let f=m instanceof Error?m.message:"Unknown error";throw new Error(f)}}});var Ib=me({auth:ne,name:"sendDraftEmail",classification:"WRITE",displayName:"Send Draft Email",description:"Sends a draft email message.",audience:"both",aiMetadata:{description:"Sends an existing draft email (identified by draft message ID) from the Outlook mailbox. Use this to dispatch a draft previously staged by Create Draft Email or a draft reply. Not idempotent: once sent the draft no longer exists, so re-running with the same ID will fail.",idempotent:!1},outputSchema:mb,props:{messageId:sb({displayName:"Draft Email",description:"Select the draft email message to send.",required:!0})},async run(e){let{messageId:t}=e.propsValue;return await C.createClient(e.auth).api(`${C.mailboxPrefix(e.auth)}/messages/${t}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}});var Ab=me({auth:ne,name:"send-email",classification:"WRITE",displayName:"Send Email",description:"Sends an email using Microsoft Outlook.",audience:"both",aiMetadata:{description:"Composes and sends a new email from the authenticated Outlook mailbox to the given recipients, with optional CC/BCC and file attachments. Use this to send a fresh message (not a reply or forward). Not idempotent: each call dispatches a new email and saves a copy to Sent Items.",idempotent:!1},props:{recipients:w.Array({displayName:"To Email(s)",required:!0}),ccRecipients:w.Array({displayName:"CC Email(s)",required:!1,defaultValue:[]}),bccRecipients:w.Array({displayName:"BCC Email(s)",required:!1,defaultValue:[]}),subject:w.ShortText({displayName:"Subject",required:!0}),bodyFormat:w.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:w.LongText({displayName:"Body",required:!0}),attachments:w.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:w.File({displayName:"File",required:!0}),fileName:w.ShortText({displayName:"File Name",required:!1})}})},async run(e){let t=e.propsValue.recipients,n=e.propsValue.ccRecipients??[],o=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:u}=e.propsValue,c={subject:i,body:{content:a,contentType:u},toRecipients:t.map(f=>({emailAddress:{address:f}})),ccRecipients:n.map(f=>({emailAddress:{address:f}})),bccRecipients:o.map(f=>({emailAddress:{address:f}})),attachments:r.map(f=>({"@odata.type":"#microsoft.graph.fileAttachment",name:f.fileName||f.file.filename,contentBytes:f.file.base64}))};return await C.createClient(e.auth).api(`${C.mailboxPrefix(e.auth)}/sendMail`).post({message:c,saveToSentItems:"true"})}});var $c=ot($i());async function $b(e,t,n,o,r,i){let a=[];for(let u of n){if(i&&u.sender?.emailAddress?.address&&!u.sender.emailAddress.address.toLowerCase().includes(i.toLowerCase()))continue;let c=await e.api(`${t}/messages/${u.id}/attachments`).get();for(let l of c.value){let{contentBytes:m,...f}=l;if(!(r&&l.name&&!l.name.toLowerCase().includes(r.toLowerCase()))&&l.name&&m){let g=await o.write({fileName:l.name,data:Buffer.from(m,"base64")});a.push({file:g,messageId:u.id,messageSubject:u.subject,messageSender:u.sender,messageReceivedDateTime:u.receivedDateTime,parentFolderId:u.parentFolderId,...f})}}}return a}s($b,"enrichAttachments");var Ob=on({auth:ne,name:"newAttachment",classification:"READ",displayName:"New Attachment",description:"Triggers when a new email containing one or more attachments arrives.",aiMetadata:{description:"Fires once per attachment when a new email carrying one or more file attachments arrives, optionally scoped to a folder, sender, or attachment-name filter. Each fire represents a single attachment from a newly received message."},outputSchema:yb,props:{folderId:Gt({displayName:"Folder",description:"Monitor attachments in a specific folder. Leave empty to monitor all folders.",required:!1}),sender:w.ShortText({displayName:"From (Sender Email)",description:"Filter emails from a specific sender (optional). Leave empty to for all senders.",required:!1}),attachmentNameFilter:w.ShortText({displayName:"Attachment Name Filter",description:"Filter attachments by name (contains). Leave empty to include all attachments.",required:!1})},sampleData:{},type:"POLLING",async onEnable(e){await e.store.put("lastPoll",Date.now())},async onDisable(e){},async test(e){let{folderId:t,attachmentNameFilter:n,sender:o}=e.propsValue,r=C.createClient(e.auth),i=t?`${C.mailboxPrefix(e.auth)}/mailFolders/${t}/messages`:`${C.mailboxPrefix(e.auth)}/messages`,a=await r.api(`${i}?$filter=hasAttachments eq true`).top(10).get();return(await $b(r,C.mailboxPrefix(e.auth),a.value,e.files,n,o)).map(l=>({epochMilliSeconds:(0,$c.default)(l.messageReceivedDateTime).valueOf(),data:l})).map(l=>l.data)},async run(e){let t=await e.store.get("lastPoll");if(ye(t))throw new Error("lastPoll doesn't exist in the store.");let{folderId:n,attachmentNameFilter:o,sender:r}=e.propsValue,i=C.createClient(e.auth),a=n?`${C.mailboxPrefix(e.auth)}/mailFolders/${n}/messages`:`${C.mailboxPrefix(e.auth)}/messages`,u=await i.api(`${a}?$filter=receivedDateTime gt ${(0,$c.default)(t).toISOString()} and hasAttachments eq true`).orderby("receivedDateTime desc").get(),c=[];for(;u.value.length>0&&(c.push(...u.value),u["@odata.nextLink"]);)u=await i.api(u["@odata.nextLink"]).get();let m=(await $b(i,C.mailboxPrefix(e.auth),c,e.files,o,r)).map(g=>({epochMilliSeconds:(0,$c.default)(g.messageReceivedDateTime).valueOf(),data:g})),f=m.reduce((g,p)=>Math.max(g,p.epochMilliSeconds),t);return await e.store.put("lastPoll",f),m.filter(g=>g.epochMilliSeconds>t).map(g=>g.data)}});var Jf=ot($i());var Oc={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:n})=>{let o=C.createClient(e),r=[],i=n.folderId,a=t===0?"$top=10":`$filter=createdDateTime gt ${(0,Jf.default)(t).toISOString()}`,u=await o.api(`${C.mailboxPrefix(e)}/mailFolders/${i}/messages?${a}`).orderby("createdDateTime desc").get();if(t===0)for(let c of u.value)r.push(c);else for(;u.value.length>0;){for(let c of u.value)r.push(c);if(u["@odata.nextLink"])u=await o.api(u["@odata.nextLink"]).get();else break}return r.map(c=>({epochMilliSeconds:(0,Jf.default)(c.createdDateTime).valueOf(),data:c}))},"items")},wb=on({auth:ne,name:"newEmailInFolder",classification:"READ",displayName:"New Email in Folder",description:"Triggers when a new email is delivered into the specified folder.",aiMetadata:{description:"Fires when a new message appears in the chosen Outlook mail folder. Each fire represents one new email added to that folder."},outputSchema:Ac,props:{folderId:Gt({displayName:"Folder",description:"",required:!0})},sampleData:{},type:"POLLING",async onEnable(e){await mt.onEnable(Oc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await mt.onDisable(Oc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await mt.test(Oc,e)},async run(e){return await mt.poll(Oc,e)}});var Kf=ot($i());var wc={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:n})=>{let o=C.createClient(e),r=[],i=t===0?"$top=10":`$filter=receivedDateTime gt ${(0,Kf.default)(t).toISOString()}`,a=await o.api(`${C.mailboxPrefix(e)}/mailFolders/inbox/messages?${i}`).orderby("receivedDateTime desc").get();if(t===0)for(let c of a.value)r.push(c);else for(;a.value.length>0;){for(let c of a.value)r.push(c);if(a["@odata.nextLink"])a=await o.api(a["@odata.nextLink"]).get();else break}let u=r;return n?.sender&&(u=u.filter(c=>{let l=c.from?.emailAddress?.address?.toLowerCase(),m=n.sender?.toLowerCase();return l===m})),n?.recipient&&(u=u.filter(c=>c.toRecipients?.some(m=>{let f=m.emailAddress?.address?.toLowerCase(),g=n.recipient?.toLowerCase();return f===g}))),u.map(c=>({epochMilliSeconds:(0,Kf.default)(c.receivedDateTime).valueOf(),data:c}))},"items")},zb=on({auth:ne,name:"newEmail",classification:"READ",displayName:"New Email",description:"Triggers when a new email is received in the inbox.",aiMetadata:{description:"Fires when a new message arrives in the mailbox Inbox, optionally narrowed to a specific sender and/or recipient address. Each fire represents one newly received email."},outputSchema:Ac,props:{sender:w.ShortText({displayName:"From (Sender Email)",description:"Filter emails from a specific sender (optional). Leave empty to for all senders.",required:!1}),recipient:w.ShortText({displayName:"To (Recipient Email)",description:"Filter emails to a specific recipient (optional). Leave empty to for all recipients.",required:!1})},sampleData:{},type:"POLLING",async onEnable(e){await mt.onEnable(wc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await mt.onDisable(wc,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await mt.test(wc,e)},async run(e){return await mt.poll(wc,e)}});var Rb=me({auth:ne,name:"request_approval_in_mail",classification:"WRITE",displayName:"Request Approval in Email",description:"Send approval request email and then wait until the email is approved or disapproved",audience:"both",aiMetadata:{description:"Sends an email with a single link to a confirmation page where the recipient chooses Approve or Disapprove, then pauses the flow until they respond, resuming with the decision. Use this as a human-in-the-loop approval gate before proceeding. Not idempotent: each call sends a new email and creates a new pending waitpoint.",idempotent:!1},outputSchema:hb,props:{recipients:w.ShortText({displayName:"To Email Address",description:"The email address of the recipient who will receive the approval request.",required:!0}),subject:w.ShortText({displayName:"Subject",description:"The subject of the approval request email.",required:!0}),body:w.LongText({displayName:"Body",description:"The main content of the email. You can include details about the approval request here in the html format or plain text.",required:!0})},async run(e){if(e.executionType==="BEGIN")try{let t=e.auth.access_token,n=e.propsValue.recipients,{subject:o,body:r}=e.propsValue;bt(t,"token"),bt(n,"recipients"),bt(o,"subject"),bt(r,"body");let i=await e.run.createWaitpoint({type:"WEBHOOK"}),a=`${i.resumeUrl}/confirm`,u=`
|
|
59
|
+
`,S=Pf.OAuth2({description:wz,grantType:"both_client_credentials_and_authorization_code",props:{cloud:Ub,accessMode:Lb,tenant:g.ShortText({displayName:"Tenant ID",description:'Use "common" for the default delegated multi-tenant flow. For app-only (Client Credentials), set this to your Directory (tenant) ID.',required:!0,defaultValue:"common"}),mailbox:g.ShortText({displayName:"Mailbox (App-only)",description:"Email/UPN or user object ID of the mailbox to act on. Required for app-only (Client Credentials). Leave blank for delegated access (acts as the signed-in user).",required:!1})},authUrl:"https://{cloud}/{tenant}/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/{tenant}/oauth2/v2.0/token",required:!0,scope:["{accessMode}"],prompt:"omit",validate:s(async({auth:e})=>{try{let t=e;return await x.createClient(t).api(`${x.mailboxPrefix(t)}/mailFolders/inbox`).get(),{valid:!0}}catch(t){return{valid:!1,error:Oz(t)}}},"validate")});function Oz(e){if(typeof e=="object"&&e!==null){let t=[];if("statusCode"in e&&e.statusCode&&t.push(`HTTP ${String(e.statusCode)}`),"code"in e&&e.code&&t.push(String(e.code)),"message"in e&&e.message&&t.push(String(e.message)),"body"in e&&e.body){let o=e.body;t.push(typeof o=="string"?o.slice(0,800):JSON.stringify(o).slice(0,800))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"Unknown error while validating the connection."}s(Oz,"describeGraphError");var Xt=s(e=>g.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your account first.",disabled:!0,options:[]};let o=t,n=x.createClient(o);try{return{disabled:!1,options:(await n.api(`${x.mailboxPrefix(o)}/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:`${a.subject||"No Subject"}`,value:a.id}))}}catch{return{disabled:!0,options:[]}}},"options")}),"messageIdDropdown"),rA=s(e=>g.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your account first.",disabled:!0,options:[]};let o=t,n=x.createClient(o);try{return{disabled:!1,options:(await n.api(`${x.mailboxPrefix(o)}/mailFolders/drafts/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(a=>({label:`${a.subject||"No Subject"}`,value:a.id}))}}catch{return{disabled:!0,options:[]}}},"options")}),"draftMessageIdDropdown"),Yt=s(e=>g.Dropdown({auth:S,displayName:e.displayName,description:e.description,required:e.required,refreshers:[],options:s(async({auth:t})=>{if(!t)return{placeholder:"Please connect your account first.",disabled:!0,options:[]};let o=t,n=x.createClient(o);try{return{disabled:!1,options:(await n.api(`${x.mailboxPrefix(o)}/mailFolders`).get()).value.map(a=>({label:a.displayName||a.id||"Unknown",value:a.id||""}))}}catch{return{disabled:!0,options:[]}}},"options")}),"mailFolderIdDropdown");var wr=[{key:"name",label:"Name",value:"emailAddress.name"},{key:"address",label:"Email Address",value:"emailAddress.address",format:"email"}],ko=[{key:"id",label:"Message ID"},{key:"subject",label:"Subject"},{key:"bodyPreview",label:"Body Preview"},{key:"body",label:"Body",children:[{key:"contentType",label:"Content Type"},{key:"content",label:"Content"}]},{key:"from",label:"From",children:wr},{key:"sender",label:"Sender",children:wr},{key:"toRecipients",label:"To Recipients",labelKey:"address",listItems:wr},{key:"ccRecipients",label:"CC Recipients",labelKey:"address",listItems:wr},{key:"bccRecipients",label:"BCC Recipients",labelKey:"address",listItems:wr},{key:"replyTo",label:"Reply To",labelKey:"address",listItems:wr},{key:"receivedDateTime",label:"Received At",format:"datetime"},{key:"sentDateTime",label:"Sent At",format:"datetime"},{key:"createdDateTime",label:"Created At",format:"datetime"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"},{key:"hasAttachments",label:"Has Attachments",format:"boolean"},{key:"isRead",label:"Is Read",format:"boolean"},{key:"isDraft",label:"Is Draft",format:"boolean"},{key:"importance",label:"Importance"},{key:"categories",label:"Categories"},{key:"flag",label:"Flag",children:[{key:"flagStatus",label:"Flag Status"}]},{key:"webLink",label:"Web Link",format:"url"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"conversationId",label:"Conversation ID"},{key:"internetMessageId",label:"Internet Message ID"}],oA=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"file",label:"File",format:"url"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],$o=[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"messageId",label:"Message ID"}],nA=[{key:"name",label:"Name"},{key:"address",label:"Email Address",format:"email"}],Ji=[...ko,{key:"inferenceClassification",label:"Inference Classification"},{key:"isReadReceiptRequested",label:"Is Read Receipt Requested",format:"boolean"},{key:"isDeliveryReceiptRequested",label:"Is Delivery Receipt Requested",format:"boolean"}],iA=ko.filter(e=>e.key!=="body"),kz=Ji.filter(e=>e.key!=="from"&&e.key!=="sender"),Vu=[{key:"id",label:"Folder ID"},{key:"displayName",label:"Display Name"},{key:"parentFolderId",label:"Parent Folder ID"},{key:"childFolderCount",label:"Child Folder Count",format:"number"},{key:"unreadItemCount",label:"Unread Item Count",format:"number"},{key:"totalItemCount",label:"Total Item Count",format:"number"},{key:"isHidden",label:"Is Hidden",format:"boolean"}],Xi=[...Vu,{key:"sizeInBytes",label:"Size",format:"filesize"},{key:"wellKnownName",label:"Well-Known Name"}],vh=[{key:"id",label:"Attachment ID"},{key:"name",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"isInline",label:"Is Inline",format:"boolean"},{key:"lastModifiedDateTime",label:"Last Modified At",format:"datetime"}],aA=[{key:"messageId",label:"Message ID"},{key:"status",label:"HTTP Status",format:"number"},{key:"error",label:"Error"}],sA=[{key:"id",label:"Override ID"},{key:"classifyAs",label:"Classify As"},{key:"senderEmailAddress",label:"Sender",children:nA}],cA=[{key:"removed",label:"Removed",format:"boolean"},{key:"removedReason",label:"Removal Reason"}],Ro=[{key:"count",label:"Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextLink",label:"Next Page URL",format:"url"}],Co={fields:ko},uA={fields:ko.filter(e=>e.key!=="from"&&e.key!=="sender")},lA={fields:[{key:"found",label:"Found",format:"boolean"},{key:"totalCount",label:"Total Count",format:"number"},{key:"hasMore",label:"Has More",format:"boolean"},{key:"nextPageUrl",label:"Next Page URL",format:"url"},{key:"result",label:"Emails",labelKey:"subject",listItems:ko}]},pA={itemLabel:"{name}",fields:[{key:"attachments",label:"Attachments",value:"",listItems:oA}]},dA={fields:$o},mA={fields:$o},fA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Message"},{key:"draftId",label:"Draft ID"},{key:"draftLink",label:"Draft Link",format:"url"}]},hA={fields:[{key:"approved",label:"Approved",format:"boolean"}]},Zu={fields:ko},gA={fields:[...oA,{key:"messageId",label:"Message ID"},{key:"messageSubject",label:"Message Subject"},{key:"messageSender",label:"Message Sender",children:wr},{key:"messageReceivedDateTime",label:"Message Received At",format:"datetime"},{key:"parentFolderId",label:"Parent Folder ID"}]},yt={fields:Ji},Qt={fields:kz},yA={fields:[{key:"messages",label:"Messages",labelKey:"subject",listItems:iA},...Ro]},vA={fields:[{key:"found",label:"Found",format:"boolean"},{key:"messages",label:"Messages",labelKey:"subject",listItems:Ji},...Ro]},xA={fields:[{key:"changes",label:"Changed Messages",labelKey:"subject",listItems:[...iA,...cA]},...Ro,{key:"deltaLink",label:"Delta Link",format:"url"}]},_A={fields:[{key:"messageId",label:"Message ID"},{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"}]},bA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newMessageId",label:"New Message ID"},{key:"previousMessageId",label:"Previous Message ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"message",label:"Message",children:Ji}]},PA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newMessageId",label:"New Message ID"},{key:"sourceMessageId",label:"Source Message ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"message",label:"Message",children:Ji}]},AA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"requestedCount",label:"Requested Count",format:"number"},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"succeeded",label:"Succeeded",labelKey:"newMessageId",listItems:[{key:"messageId",label:"Previous Message ID"},{key:"newMessageId",label:"New Message ID"}]},{key:"failed",label:"Failed",labelKey:"messageId",listItems:aA}]},IA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"requestedCount",label:"Requested Count",format:"number"},{key:"succeededCount",label:"Succeeded Count",format:"number"},{key:"failedCount",label:"Failed Count",format:"number"},{key:"succeeded",label:"Succeeded",labelKey:"messageId",listItems:[{key:"messageId",label:"Message ID"}]},{key:"failed",label:"Failed",labelKey:"messageId",listItems:aA}]},EA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"messageId",label:"Message ID"}]},TA={fields:[{key:"messageId",label:"Message ID"},{key:"attachments",label:"Attachments",labelKey:"name",listItems:[...vh,{key:"attachmentType",label:"Attachment Type"}]},{key:"count",label:"Count",format:"number"}]},SA={fields:[...vh,{key:"attachmentType",label:"Attachment Type"},{key:"messageId",label:"Message ID"}]},wA={fields:[{key:"file",label:"File",format:"url"},{key:"fileName",label:"File Name"},{key:"contentType",label:"Content Type"},{key:"size",label:"Size",format:"filesize"},{key:"attachmentId",label:"Attachment ID"},{key:"messageId",label:"Message ID"}]},OA={fields:[...vh,{key:"attachmentType",label:"Attachment Type"},{key:"messageId",label:"Message ID"}]},kA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"messageId",label:"Message ID"},{key:"attachmentId",label:"Attachment ID"}]},$A={fields:Vu},RA={fields:Xi},CA={fields:[{key:"folders",label:"Folders",labelKey:"displayName",listItems:Vu},...Ro]},zA={fields:[{key:"parentFolderId",label:"Parent Folder ID"},{key:"folders",label:"Folders",labelKey:"displayName",listItems:Vu},...Ro]},DA={fields:[{key:"changes",label:"Changed Folders",labelKey:"displayName",listItems:[...Xi,...cA]},...Ro,{key:"deltaLink",label:"Delta Link",format:"url"}]},NA={fields:[{key:"created",label:"Created",format:"boolean"},{key:"folderId",label:"Folder ID"},{key:"folder",label:"Folder",children:Xi}]},MA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"newFolderId",label:"New Folder ID"},{key:"sourceFolderId",label:"Source Folder ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"folder",label:"Folder",children:Xi}]},UA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"folderId",label:"Folder ID"},{key:"newFolderId",label:"New Folder ID"},{key:"destinationFolderId",label:"Destination Folder ID"},{key:"folder",label:"Folder",children:Xi}]},LA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"folderId",label:"Folder ID"}]},Hu={fields:sA},FA={fields:[{key:"overrides",label:"Overrides",labelKey:"classifyAs",listItems:sA},{key:"count",label:"Count",format:"number"}]},jA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"overrideId",label:"Override ID"}]},BA={fields:[{key:"mailTips",label:"Mail Tips",listItems:[{key:"emailAddress",label:"Email Address",children:nA},{key:"mailboxFull",label:"Mailbox Full",format:"boolean"},{key:"deliveryRestricted",label:"Delivery Restricted",format:"boolean"},{key:"isModerated",label:"Is Moderated",format:"boolean"},{key:"recipientScope",label:"Recipient Scope"},{key:"maxMessageSize",label:"Max Message Size",format:"filesize"},{key:"externalMemberCount",label:"External Member Count",format:"number"},{key:"totalMemberCount",label:"Total Member Count",format:"number"},{key:"automaticReplies",label:"Automatic Replies"}]},{key:"count",label:"Count",format:"number"}]},VA={fields:[{key:"id",label:"User ID"},{key:"displayName",label:"Display Name"},{key:"mail",label:"Email Address",format:"email"},{key:"userPrincipalName",label:"User Principal Name"},{key:"source",label:"Source"}]},ZA={fields:[{key:"timeZones",label:"Time Zones",labelKey:"displayName",listItems:[{key:"alias",label:"Alias"},{key:"displayName",label:"Display Name"}]},{key:"count",label:"Count",format:"number"}]},HA={fields:[{key:"success",label:"Success",format:"boolean"},{key:"message",label:"Result Message"},{key:"subject",label:"Subject"},{key:"recipients",label:"Recipients"}]},qA={fields:$o},GA={fields:$o},WA={fields:$o},KA={fields:[...$o,{key:"recipients",label:"Recipients"}]};var JA=O({auth:S,name:"addLabelToEmail",classification:"WRITE",displayName:"Add Label to Email",description:"Adds a category (label) to an email message.",audience:"human",aiMetadata:{description:"Adds one or more Outlook categories (labels) to a specific message, merging them with any categories already present. Use this to tag or classify an email. Idempotent: re-adding the same categories leaves the message unchanged since duplicates are de-duplicated.",idempotent:!0},outputSchema:Co,props:{messageId:Xt({displayName:"Email",description:"Select the email message to add the label to.",required:!0}),categories:g.Array({displayName:"Categories",description:"Categories to add to the email.",required:!0})},async run(e){let{messageId:t,categories:o}=e.propsValue,n=x.createClient(e.auth),i=(await n.api(`${x.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[],a=[...new Set([...i,...o])];return await n.api(`${x.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var XA=O({auth:S,name:"createDraftEmail",classification:"WRITE",displayName:"Create Draft Email",description:"Creates a draft email message.",audience:"human",aiMetadata:{description:"Creates a new unsent draft email in the Outlook mailbox with recipients, subject, body, and optional attachments. Use this to stage a message for later review or sending (pair with Send Draft Email). Not idempotent: each call creates a separate draft.",idempotent:!1},outputSchema:uA,props:{recipients:g.Array({displayName:"To Email(s)",required:!0}),ccRecipients:g.Array({displayName:"CC Email(s)",required:!1,defaultValue:[]}),bccRecipients:g.Array({displayName:"BCC Email(s)",required:!1,defaultValue:[]}),subject:g.ShortText({displayName:"Subject",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:g.LongText({displayName:"Body",required:!0}),attachments:g.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}})},async run(e){let t=e.propsValue.recipients,o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c}=e.propsValue,u={subject:i,body:{content:a,contentType:c},toRecipients:t.map(f=>({emailAddress:{address:f}})),ccRecipients:o.map(f=>({emailAddress:{address:f}})),bccRecipients:n.map(f=>({emailAddress:{address:f}})),attachments:r.map(f=>({"@odata.type":"#microsoft.graph.fileAttachment",name:f.fileName||f.file.filename,contentBytes:f.file.base64}))};return await x.createClient(e.auth).api(`${x.mailboxPrefix(e.auth)}/messages`).post(u)}});var YA=O({auth:S,name:"downloadAttachment",classification:"READ",displayName:"Download Attachment",description:"Download attachments from a specific email message.",audience:"human",aiMetadata:{description:"Fetches all file attachments from a specific Outlook message (by message ID) and writes them to storage for downstream steps. Use this after locating a message to retrieve its attached files. Requires a valid message ID; idempotent since it only reads.",idempotent:!0},outputSchema:pA,props:{messageId:g.ShortText({displayName:"Message ID",description:"The ID of the email message containing the attachment.",required:!0})},async run(e){let{messageId:t}=e.propsValue,n=await x.createClient(e.auth).api(`${x.mailboxPrefix(e.auth)}/messages/${t}/attachments`).get(),r=[];for(let i of n.value)i.name&&i.contentBytes&&r.push({...i,file:await e.files.write({fileName:i.name||"test.png",data:Buffer.from(i.contentBytes,"base64")})});return r}});var bh=Ze(zo());var QA=O({auth:S,name:"findEmail",classification:"SEARCH",displayName:"Find Email",description:"Searches for emails using full-text search.",audience:"human",aiMetadata:{description:"Searches the Outlook mailbox for messages matching a full-text query (supports field syntax like from:, subject:, hasAttachments:), optionally scoped to one folder and capped by a max-results count. Use this to locate emails and obtain their message IDs for follow-up actions. Idempotent read-only lookup.",idempotent:!0},outputSchema:lA,props:{searchQuery:g.ShortText({displayName:"Search Query",description:'Search terms to find emails (e.g., "from:john@example.com", "subject:urgent", "hasAttachments:true")',required:!0}),folderId:Yt({displayName:"Folder",description:"Search in a specific folder. Leave empty to search all folders.",required:!1}),top:g.Number({displayName:"Max Results",description:"Maximum number of results to return (1-1000).",required:!1,defaultValue:25})},async run(e){let{searchQuery:t,folderId:o,top:n}=e.propsValue,r=x.createClient(e.auth),i=o?`${x.mailboxPrefix(e.auth)}/mailFolders/${o}/messages`:`${x.mailboxPrefix(e.auth)}/messages`,a=`$search="${t}"`,c=n?`$top=${Math.min(Math.max(n,1),1e3)}`:"$top=25",u=[a,c].filter(Boolean).join("&"),l=`${i}?${u}`,d={ConsistencyLevel:"eventual",Prefer:'outlook.body-content-type="text"'},f=await r.api(l).headers(d).get(),h=f.value,p=f["@odata.nextLink"];return t&&h.sort((v,P)=>(0,bh.default)(P.receivedDateTime).valueOf()-(0,bh.default)(v.receivedDateTime).valueOf()),{found:h.length>0,result:h,hasMore:!!p,nextPageUrl:p,totalCount:h.length}}});var eI=O({auth:S,name:"forwardEmail",classification:"WRITE",displayName:"Forward Email",description:"Forwards an email message.",audience:"human",aiMetadata:{description:"Forwards an existing Outlook message (by message ID) to new recipients, preserving the original body and attachments and prepending an optional comment. Use this to pass an existing email along rather than composing a new one. Not idempotent: each call sends a new forwarded email.",idempotent:!1},outputSchema:mA,props:{messageId:Xt({displayName:"Email",description:"Select the email message to forward.",required:!0}),recipients:g.Array({displayName:"To Email(s)",required:!0}),comment:g.LongText({displayName:"Comment",description:"Optional comment to include with the forwarded message.",required:!1})},async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=x.createClient(e.auth),i=await r.api(`${x.mailboxPrefix(e.auth)}/messages/${t}`).get(),a={toRecipients:n.map(c=>({emailAddress:{address:c}})),body:{contentType:"html",content:(o??"")+"<br><br>"+i.body.content},attachments:i.attachments};return await r.api(`${x.mailboxPrefix(e.auth)}/messages/${t}/forward`).post({message:a}),{success:!0,message:"Email forwarded successfully.",messageId:t}}});var tI=O({auth:S,name:"moveEmailToFolder",classification:"WRITE",displayName:"Move Email to Folder",description:"Moves an email message to a specific folder.",audience:"human",aiMetadata:{description:"Moves a specific Outlook message into a chosen mail folder. Use this to organize, archive, or route an email after processing it. Note: the move assigns a new message ID, so re-running with the original ID will fail once moved.",idempotent:!1},outputSchema:Co,props:{messageId:Xt({displayName:"Email",description:"Select the email message to move.",required:!0}),destinationFolderId:Yt({displayName:"Destination Folder",description:"The folder to move the email to.",required:!0})},async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue;return await x.createClient(e.auth).api(`${x.mailboxPrefix(e.auth)}/messages/${t}/move`).post({destinationId:o})}});var rI=O({auth:S,name:"removeLabelFromEmail",classification:"WRITE",displayName:"Remove Label from Email",description:"Removes a category (label) from an email message.",audience:"human",aiMetadata:{description:"Removes one or more Outlook categories (labels) from a specific message, leaving any other categories intact. Use this to untag or reclassify an email. Idempotent: re-running with the same categories yields the same final label set.",idempotent:!0},outputSchema:Co,props:{messageId:Xt({displayName:"Email",description:"Select the email message to remove the label from.",required:!0}),categories:g.Array({displayName:"Categories to Remove",description:"Categories to remove from the email.",required:!0})},async run(e){let{messageId:t,categories:o}=e.propsValue,n=x.createClient(e.auth),a=((await n.api(`${x.mailboxPrefix(e.auth)}/messages/${t}`).get()).categories||[]).filter(u=>!o.includes(u));return await n.api(`${x.mailboxPrefix(e.auth)}/messages/${t}`).patch({categories:a})}});var oI=O({auth:S,name:"reply-email",classification:"WRITE",displayName:"Reply to Email",description:"Reply to an outlook email.",audience:"human",aiMetadata:{description:"Replies to an existing Outlook message (identified by message ID), supporting added CC/BCC recipients and attachments. Set the Create Draft flag to stage the reply without sending; otherwise it is sent immediately. Not idempotent when sending: each call creates and dispatches a new reply.",idempotent:!1},outputSchema:fA,props:{messageId:g.Dropdown({auth:S,displayName:"Email",description:"Select the email message to reply to.",required:!0,refreshers:[],options:s(async({auth:e})=>{if(!e)return{disabled:!0,options:[]};let t=x.createClient(e);try{return{disabled:!1,options:(await t.api(`${x.mailboxPrefix(e)}/messages?$top=50&$select=id,subject,from,receivedDateTime`).orderby("receivedDateTime desc").get()).value.map(r=>({label:`${r.subject||"No Subject"} - ${r.from?.emailAddress?.name||r.from?.emailAddress?.address||"Unknown Sender"}`,value:r.id||""}))}}catch{return{disabled:!0,options:[]}}},"options")}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),replyBody:g.LongText({displayName:"Reply Body",required:!0}),ccRecipients:g.Array({displayName:"CC Recipients",required:!1}),bccRecipients:g.Array({displayName:"BCC Recipients",required:!1}),attachments:g.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}}),draft:g.Checkbox({displayName:"Create Draft",description:"If enabled, creates draft without sending.",required:!0,defaultValue:!1})},async run(e){let{replyBody:t,bodyFormat:o,messageId:n,draft:r}=e.propsValue,i=e.propsValue.ccRecipients??[],a=e.propsValue.bccRecipients??[],c=e.propsValue.attachments??[],u={body:{content:t,contentType:o},ccRecipients:i.map(d=>({emailAddress:{address:d}})),bccRecipients:a.map(d=>({emailAddress:{address:d}})),attachments:c.map(d=>({"@odata.type":"#microsoft.graph.fileAttachment",name:d.fileName||d.file.filename,contentBytes:d.file.base64}))},l=x.createClient(e.auth);try{let f=(await l.api(`${x.mailboxPrefix(e.auth)}/messages/${n}/createReply`).post({message:u})).id;return r?{success:!0,message:"Draft created successfully.",draftId:f,draftLink:`https://outlook.office.com/mail/drafts/id/${f}`}:(await l.api(`${x.mailboxPrefix(e.auth)}/messages/${f}/send`).post({}),{success:!0,message:"Reply sent successfully.",draftId:f})}catch(d){console.error("Reply Email Error:",d);let f=d instanceof Error?d.message:"Unknown error";throw new Error(f)}}});var nI=O({auth:S,name:"sendDraftEmail",classification:"WRITE",displayName:"Send Draft Email",description:"Sends a draft email message.",audience:"human",aiMetadata:{description:"Sends an existing draft email (identified by draft message ID) from the Outlook mailbox. Use this to dispatch a draft previously staged by Create Draft Email or a draft reply. Not idempotent: once sent the draft no longer exists, so re-running with the same ID will fail.",idempotent:!1},outputSchema:dA,props:{messageId:rA({displayName:"Draft Email",description:"Select the draft email message to send.",required:!0})},async run(e){let{messageId:t}=e.propsValue;return await x.createClient(e.auth).api(`${x.mailboxPrefix(e.auth)}/messages/${t}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}});var iI=O({auth:S,name:"send-email",classification:"WRITE",displayName:"Send Email",description:"Sends an email using Microsoft Outlook.",audience:"human",aiMetadata:{description:"Composes and sends a new email from the authenticated Outlook mailbox to the given recipients, with optional CC/BCC and file attachments. Use this to send a fresh message (not a reply or forward). Not idempotent: each call dispatches a new email and saves a copy to Sent Items.",idempotent:!1},props:{recipients:g.Array({displayName:"To Email(s)",required:!0}),ccRecipients:g.Array({displayName:"CC Email(s)",required:!1,defaultValue:[]}),bccRecipients:g.Array({displayName:"BCC Email(s)",required:!1,defaultValue:[]}),subject:g.ShortText({displayName:"Subject",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:g.LongText({displayName:"Body",required:!0}),attachments:g.Array({displayName:"Attachments",required:!1,defaultValue:[],properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}})},async run(e){let t=e.propsValue.recipients,o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c}=e.propsValue,u={subject:i,body:{content:a,contentType:c},toRecipients:t.map(f=>({emailAddress:{address:f}})),ccRecipients:o.map(f=>({emailAddress:{address:f}})),bccRecipients:n.map(f=>({emailAddress:{address:f}})),attachments:r.map(f=>({"@odata.type":"#microsoft.graph.fileAttachment",name:f.fileName||f.file.filename,contentBytes:f.file.base64}))};return await x.createClient(e.auth).api(`${x.mailboxPrefix(e.auth)}/sendMail`).post({message:u,saveToSentItems:"true"})}});var qu=Ze(zo());async function aI(e,t,o,n,r,i){let a=[];for(let c of o){if(i&&c.sender?.emailAddress?.address&&!c.sender.emailAddress.address.toLowerCase().includes(i.toLowerCase()))continue;let u=await e.api(`${t}/messages/${c.id}/attachments`).get();for(let l of u.value){let{contentBytes:d,...f}=l;if(!(r&&l.name&&!l.name.toLowerCase().includes(r.toLowerCase()))&&l.name&&d){let h=await n.write({fileName:l.name,data:Buffer.from(d,"base64")});a.push({file:h,messageId:c.id,messageSubject:c.subject,messageSender:c.sender,messageReceivedDateTime:c.receivedDateTime,parentFolderId:c.parentFolderId,...f})}}}return a}s(aI,"enrichAttachments");var sI=po({auth:S,name:"newAttachment",classification:"READ",displayName:"New Attachment",description:"Triggers when a new email containing one or more attachments arrives.",aiMetadata:{description:"Fires once per attachment when a new email carrying one or more file attachments arrives, optionally scoped to a folder, sender, or attachment-name filter. Each fire represents a single attachment from a newly received message."},outputSchema:gA,props:{folderId:Yt({displayName:"Folder",description:"Monitor attachments in a specific folder. Leave empty to monitor all folders.",required:!1}),sender:g.ShortText({displayName:"From (Sender Email)",description:"Filter emails from a specific sender (optional). Leave empty to for all senders.",required:!1}),attachmentNameFilter:g.ShortText({displayName:"Attachment Name Filter",description:"Filter attachments by name (contains). Leave empty to include all attachments.",required:!1})},sampleData:{},type:"POLLING",async onEnable(e){await e.store.put("lastPoll",Date.now())},async onDisable(e){},async test(e){let{folderId:t,attachmentNameFilter:o,sender:n}=e.propsValue,r=x.createClient(e.auth),i=t?`${x.mailboxPrefix(e.auth)}/mailFolders/${t}/messages`:`${x.mailboxPrefix(e.auth)}/messages`,a=await r.api(`${i}?$filter=hasAttachments eq true`).top(10).get();return(await aI(r,x.mailboxPrefix(e.auth),a.value,e.files,o,n)).map(l=>({epochMilliSeconds:(0,qu.default)(l.messageReceivedDateTime).valueOf(),data:l})).map(l=>l.data)},async run(e){let t=await e.store.get("lastPoll");if(he(t))throw new Error("lastPoll doesn't exist in the store.");let{folderId:o,attachmentNameFilter:n,sender:r}=e.propsValue,i=x.createClient(e.auth),a=o?`${x.mailboxPrefix(e.auth)}/mailFolders/${o}/messages`:`${x.mailboxPrefix(e.auth)}/messages`,c=await i.api(`${a}?$filter=receivedDateTime gt ${(0,qu.default)(t).toISOString()} and hasAttachments eq true`).orderby("receivedDateTime desc").get(),u=[];for(;c.value.length>0&&(u.push(...c.value),c["@odata.nextLink"]);)c=await i.api(c["@odata.nextLink"]).get();let d=(await aI(i,x.mailboxPrefix(e.auth),u,e.files,n,r)).map(h=>({epochMilliSeconds:(0,qu.default)(h.messageReceivedDateTime).valueOf(),data:h})),f=d.reduce((h,p)=>Math.max(h,p.epochMilliSeconds),t);return await e.store.put("lastPoll",f),d.filter(h=>h.epochMilliSeconds>t).map(h=>h.data)}});var Ph=Ze(zo());var Gu={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:o})=>{let n=x.createClient(e),r=[],i=o.folderId,a=t===0?"$top=10":`$filter=createdDateTime gt ${(0,Ph.default)(t).toISOString()}`,c=await n.api(`${x.mailboxPrefix(e)}/mailFolders/${i}/messages?${a}`).orderby("createdDateTime desc").get();if(t===0)for(let u of c.value)r.push(u);else for(;c.value.length>0;){for(let u of c.value)r.push(u);if(c["@odata.nextLink"])c=await n.api(c["@odata.nextLink"]).get();else break}return r.map(u=>({epochMilliSeconds:(0,Ph.default)(u.createdDateTime).valueOf(),data:u}))},"items")},cI=po({auth:S,name:"newEmailInFolder",classification:"READ",displayName:"New Email in Folder",description:"Triggers when a new email is delivered into the specified folder.",aiMetadata:{description:"Fires when a new message appears in the chosen Outlook mail folder. Each fire represents one new email added to that folder."},outputSchema:Zu,props:{folderId:Yt({displayName:"Folder",description:"",required:!0})},sampleData:{},type:"POLLING",async onEnable(e){await gt.onEnable(Gu,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await gt.onDisable(Gu,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await gt.test(Gu,e)},async run(e){return await gt.poll(Gu,e)}});var Ah=Ze(zo());var Wu={strategy:0,items:s(async({auth:e,lastFetchEpochMS:t,propsValue:o})=>{let n=x.createClient(e),r=[],i=t===0?"$top=10":`$filter=receivedDateTime gt ${(0,Ah.default)(t).toISOString()}`,a=await n.api(`${x.mailboxPrefix(e)}/mailFolders/inbox/messages?${i}`).orderby("receivedDateTime desc").get();if(t===0)for(let u of a.value)r.push(u);else for(;a.value.length>0;){for(let u of a.value)r.push(u);if(a["@odata.nextLink"])a=await n.api(a["@odata.nextLink"]).get();else break}let c=r;return o?.sender&&(c=c.filter(u=>{let l=u.from?.emailAddress?.address?.toLowerCase(),d=o.sender?.toLowerCase();return l===d})),o?.recipient&&(c=c.filter(u=>u.toRecipients?.some(d=>{let f=d.emailAddress?.address?.toLowerCase(),h=o.recipient?.toLowerCase();return f===h}))),c.map(u=>({epochMilliSeconds:(0,Ah.default)(u.receivedDateTime).valueOf(),data:u}))},"items")},uI=po({auth:S,name:"newEmail",classification:"READ",displayName:"New Email",description:"Triggers when a new email is received in the inbox.",aiMetadata:{description:"Fires when a new message arrives in the mailbox Inbox, optionally narrowed to a specific sender and/or recipient address. Each fire represents one newly received email."},outputSchema:Zu,props:{sender:g.ShortText({displayName:"From (Sender Email)",description:"Filter emails from a specific sender (optional). Leave empty to for all senders.",required:!1}),recipient:g.ShortText({displayName:"To (Recipient Email)",description:"Filter emails to a specific recipient (optional). Leave empty to for all recipients.",required:!1})},sampleData:{},type:"POLLING",async onEnable(e){await gt.onEnable(Wu,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async onDisable(e){await gt.onDisable(Wu,{auth:e.auth,store:e.store,propsValue:e.propsValue})},async test(e){return await gt.test(Wu,e)},async run(e){return await gt.poll(Wu,e)}});var lI=O({auth:S,name:"request_approval_in_mail",classification:"WRITE",displayName:"Request Approval in Email",description:"Send approval request email and then wait until the email is approved or disapproved",audience:"both",aiMetadata:{description:"Sends an email with a single link to a confirmation page where the recipient chooses Approve or Disapprove, then pauses the flow until they respond, resuming with the decision. Use this as a human-in-the-loop approval gate before proceeding. Not idempotent: each call sends a new email and creates a new pending waitpoint.",idempotent:!1},outputSchema:hA,props:{recipients:g.ShortText({displayName:"To Email Address",description:"The email address of the recipient who will receive the approval request.",required:!0}),subject:g.ShortText({displayName:"Subject",description:"The subject of the approval request email.",required:!0}),body:g.LongText({displayName:"Body",description:"The main content of the email. You can include details about the approval request here in the html format or plain text.",required:!0})},async run(e){if(e.executionType==="BEGIN")try{let t=e.auth.access_token,o=e.propsValue.recipients,{subject:n,body:r}=e.propsValue;Tt(t,"token"),Tt(o,"recipients"),Tt(n,"subject"),Tt(r,"body");let i=await e.run.createWaitpoint({type:"WEBHOOK"}),a=`${i.resumeUrl}/confirm`,c=`
|
|
60
60
|
<div>
|
|
61
61
|
<p>${r}</p>
|
|
62
62
|
<br />
|
|
@@ -64,7 +64,7 @@ For app-only, Microsoft grants tenant-wide mailbox access by default \u2014 scop
|
|
|
64
64
|
<a href="${a}" style="display: inline-block; padding: 10px 20px; background-color: #6e41e2; color: white; text-decoration: none; border-radius: 4px;">Review & Respond</a>
|
|
65
65
|
</p>
|
|
66
66
|
</div>
|
|
67
|
-
`,c=C.createClient(e.auth),l={subject:o,body:{content:u,contentType:"html"},toRecipients:[{emailAddress:{address:n}}]},m=await c.api(`${C.mailboxPrefix(e.auth)}/sendMail`).post({message:l,saveToSentItems:!0});return e.run.waitForWaitpoint(i.id),{approved:!1}}catch(t){throw console.error("[RequestApprovalEmail] Error during BEGIN execution:",t),t}else return{approved:e.resumePayload.queryParams.action==="approve"}}});var Jz=vv({displayName:"Microsoft Outlook",auth:ne,minimumSupportedRelease:"0.87.0",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-outlook.png",categories:["PRODUCTIVITY"],authors:["lucaslimasouza","kishanprmr","sanket-a11y"],actions:[Ab,xb,Sb,_b,vb,Tb,Rb,Eb,Ib,bb,Pb,Mx({auth:ne,baseUrl:s(e=>{let t=e.props?.cloud;return Au(t)+"/v1.0/"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[zb,wb,Ob]});0&&(module.exports={microsoftOutlook});
|
|
67
|
+
`,u=x.createClient(e.auth),l={subject:n,body:{content:c,contentType:"html"},toRecipients:[{emailAddress:{address:o}}]},d=await u.api(`${x.mailboxPrefix(e.auth)}/sendMail`).post({message:l,saveToSentItems:!0});return e.run.waitForWaitpoint(i.id),{approved:!1}}catch(t){throw console.error("[RequestApprovalEmail] Error during BEGIN execution:",t),t}else return{approved:e.resumePayload.queryParams.action==="approve"}}});var Rz={Prefer:'outlook.body-content-type="text"'},Cz="id,subject,bodyPreview,from,sender,toRecipients,ccRecipients,bccRecipients,replyTo,receivedDateTime,sentDateTime,createdDateTime,lastModifiedDateTime,hasAttachments,isRead,isDraft,importance,categories,flag,webLink,parentFolderId,conversationId,internetMessageId",zz="id,displayName,parentFolderId,childFolderCount,unreadItemCount,totalItemCount,isHidden",Dz="id,name,contentType,size,isInline,lastModifiedDateTime",Nz="Accepts a mail folder ID or a well-known name such as inbox, drafts, sentitems, deleteditems, archive or junkemail.",Mz="It must be a delta link returned by this action on this connection; links pointing at another mailbox or endpoint are rejected.",Uz="Outlook message ID. Resolve one with List Messages, Search Messages or Get Message.";function mI(e){return(e.props?.mailbox??"").trim()}s(mI,"getConfiguredMailbox");function Lz(e){return mI(e).length>0}s(Lz,"isAppOnlyConnection");function Fz(e){return encodeURIComponent(e.trim())}s(Fz,"encodeGraphId");function jz(e){return(e.props?.cloud??"").includes(".us")}s(jz,"isGovernmentCloud");function fI(e){if(typeof e=="object"&&e!==null&&"statusCode"in e){let t=e.statusCode;if(typeof t=="number")return t}}s(fI,"graphStatusCode");function hI(e){if(typeof e=="object"&&e!==null&&"code"in e){let t=e.code;if(typeof t=="string")return t}}s(hI,"graphErrorCode");function Bz(e){let t=hI(e)??"";return["BadRequest","RequestBroker--ParseUri","ResourceNotFound","ErrorInvalidUser","MailboxNotEnabledForRESTAPI"].some(n=>t===n)}s(Bz,"isUnsupportedMePathError");function Vz(e){let{"@removed":t,...o}=e;return{...o,removed:t!==void 0,removedReason:t?.reason??null}}s(Vz,"withDeltaRemoval");function gI(e){if(typeof e=="object"&&e!==null){let t=[],o=e;if(o.code&&t.push(String(o.code)),o.message&&t.push(String(o.message)),o.body){let n=o.body;t.push(typeof n=="string"?n.slice(0,500):JSON.stringify(n).slice(0,500))}if(t.length>0)return t.join(" | ")}return e instanceof Error&&e.message?e.message:"No further detail was returned by Microsoft Graph."}s(gI,"graphErrorDetail");function Zz({error:e,operation:t}){let o=fI(e),n=gI(e);return o===401?new Error(`${t} failed: the Outlook connection is not authenticated (HTTP 401). Reconnect the account. ${n}`):o===403?new Error(`${t} failed: Microsoft Graph denied the request (HTTP 403). The connection may lack the permission this endpoint requires, or the mailbox may not be accessible in this access mode. ${n}`):o===404?new Error(`${t} failed: the requested item was not found (HTTP 404). The ID may be wrong, or the item may have been moved or deleted. ${n}`):o===429?new Error(`${t} failed: Microsoft Graph throttled the request (HTTP 429). Retry after a short delay. ${n}`):new Error(`${t} failed. ${n}`)}s(Zz,"graphError");var pI=["v1.0","beta"],Hz="*";function dI(e){return e.split("?")[0].split("/").filter(t=>t.length>0).map(t=>{try{return decodeURIComponent(t)}catch{return t}})}s(dI,"pathSegments");function qz({segments:e,pattern:t}){return e.length!==t.length?!1:t.every((o,n)=>o===Hz?e[n].length>0:e[n]===o)}s(qz,"segmentsMatchPattern");function Gz({auth:e,deltaLink:t,expectedPath:o,operation:n}){let r=t.trim(),i=new URL(xo(Vc(e))).origin,a=dI(o),c=`Expected an absolute URL on ${i} whose path is /{${pI.join("|")}}/${a.join("/")}. Only pass a delta link that this action returned.`,u;try{u=new URL(r)}catch{throw new Do(`${n} failed: the supplied delta link is not an absolute URL. ${c}`)}if(u.origin!==i)throw new Do(`${n} failed: the supplied delta link points at ${u.origin}, which is not the Microsoft Graph endpoint of this connection. ${c}`);let l=dI(u.pathname);if(l.length===0||!pI.includes(l[0]))throw new Do(`${n} failed: the supplied delta link does not target a supported Microsoft Graph API version. ${c}`);if(!qz({segments:l.slice(1),pattern:a}))throw new Do(`${n} failed: the supplied delta link addresses /${l.slice(1).join("/")}, which is outside the mailbox and endpoint this action is configured for. ${c}`);return u.toString()}s(Gz,"resolveDeltaUrl");var Do=class extends Error{static{s(this,"InvalidDeltaLinkError")}constructor(t){super(t),this.name="InvalidDeltaLinkError"}},_={textBodyHeaders:Rz,messageSelect:Cz,mailFolderSelect:zz,attachmentSelect:Dz,wellKnownFolderHint:Nz,messageIdHint:Uz,getConfiguredMailbox:mI,isAppOnlyConnection:Lz,isGovernmentCloud:jz,encodeGraphId:Fz,graphStatusCode:fI,graphErrorCode:hI,graphErrorDetail:gI,isUnsupportedMePathError:Bz,withDeltaRemoval:Vz,resolveDeltaUrl:Gz,deltaLinkHint:Mz,graphError:Zz};var yI=O({auth:S,name:"outlook_add_message_attachment",classification:"WRITE",displayName:"Add Attachment to Draft",description:"Attaches a file to a draft message.",audience:"ai",aiMetadata:{description:"Attaches one file to an existing draft message and returns the created attachment metadata without echoing the file bytes back. Only meaningful on drafts, and only for files under 3 MB; larger files need an upload session, which this piece does not expose yet. Pair it with Create Draft and Send Draft. Not idempotent: each call adds another attachment, even with the same file name.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Draft Message ID",description:"ID of the draft to attach the file to. Obtain it from Create Draft.",required:!0}),file:g.File({displayName:"File",description:"File to attach. Must be smaller than 3 MB.",required:!0}),fileName:g.ShortText({displayName:"File Name",description:"Name shown on the attachment. Defaults to the uploaded file name.",required:!1})},outputSchema:OA,async run(e){let{messageId:t,fileName:o}=e.propsValue,n=e.propsValue.file,r=x.createClient(e.auth),i=x.mailboxPrefix(e.auth);try{let a=await r.api(`${i}/messages/${_.encodeGraphId(t)}/attachments`).post({"@odata.type":"#microsoft.graph.fileAttachment",name:o||n.filename,contentBytes:n.base64});return{messageId:t,id:a?.id??null,name:a?.name??null,contentType:a?.contentType??null,size:a?.size??null,isInline:a?.isInline??null,lastModifiedDateTime:a?.lastModifiedDateTime??null,attachmentType:a?.["@odata.type"]??null}}catch(a){throw _.graphError({error:a,operation:"Adding the attachment to the Outlook draft"})}}});var vI=O({auth:S,name:"outlook_add_message_categories",classification:"WRITE",displayName:"Add Categories to Message",description:"Adds categories (labels) to a message.",audience:"ai",aiMetadata:{description:"Adds one or more Outlook categories to a message, merging them with the categories already on it so nothing is overwritten. Use Remove Categories from Message for the inverse, and Update Message when other fields change too. Idempotent: re-adding the same categories leaves the message unchanged.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),categories:g.Array({displayName:"Categories",description:"Category names to add to the message.",required:!0})},outputSchema:yt,async run(e){let{messageId:t}=e.propsValue,o=e.propsValue.categories,n=x.createClient(e.auth),i=`${x.mailboxPrefix(e.auth)}/messages/${_.encodeGraphId(t)}`;try{let c=(await n.api(`${i}?$select=id,categories`).get())?.categories??[],u=[...new Set([...c,...o])];return await n.api(i).headers(_.textBodyHeaders).patch({categories:u})}catch(a){throw _.graphError({error:a,operation:"Adding categories to the Outlook message"})}}});var xI=20,Wz=15e3;function Kz(e){return new Promise(t=>setTimeout(t,e))}s(Kz,"delay");function Jz(e){let t=e.headers?.["Retry-After"]??e.headers?.["retry-after"],o=t?Number(t):NaN;return Number.isFinite(o)&&o>0?Math.min(o*1e3,Wz):2e3}s(Jz,"retryDelayMs");async function _I({client:e,requests:t}){return(await e.api("/$batch").post({requests:t}))?.responses??[]}s(_I,"postChunk");async function Yi({client:e,requests:t}){let o=[];for(let n=0;n<t.length;n+=xI){let r=t.slice(n,n+xI),i=await _I({client:e,requests:r}),a=i.filter(h=>h.status===429);if(a.length===0){o.push(...i);continue}let c=Math.max(...a.map(h=>Jz(h)));await Kz(c);let u=new Set(a.map(h=>h.id)),l=r.filter(h=>u.has(h.id)),d=await _I({client:e,requests:l}),f=new Map(d.map(h=>[h.id,h]));o.push(...i.map(h=>f.get(h.id)??h))}return o}s(Yi,"runGraphBatch");function Qi(e){let t=e.body;if(t&&typeof t=="object"&&"error"in t){let o=t.error,n=[o?.code,o?.message].filter(Boolean);if(n.length>0)return n.join(": ")}return typeof t=="string"&&t.length>0?t.slice(0,500):`Microsoft Graph returned HTTP ${e.status} for this item.`}s(Qi,"describeBatchFailure");var bI=O({auth:S,name:"outlook_batch_move_messages",classification:"WRITE",displayName:"Batch Move Messages",description:"Moves several messages to one folder in a single batched call.",audience:"ai",aiMetadata:{description:"Moves many messages into the same destination folder using Microsoft Graph batching, in chunks of 20 sub-requests. Every moved message gets a NEW ID, returned per item, and the original IDs stop resolving. Individual items can fail while others succeed, so always read the failed list. Use Move Message for a single message. Not idempotent: a retry with the old IDs fails.",idempotent:!1},props:{messageIds:g.Array({displayName:"Message IDs",description:"IDs of the messages to move. Resolve them with List Messages or Search Messages.",required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:_.wellKnownFolderHint,required:!0})},outputSchema:AA,async run(e){let{destinationFolderId:t}=e.propsValue,o=e.propsValue.messageIds??[];if(o.length===0)throw new Error("Batch moving Outlook messages failed: no message IDs were supplied.");let n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth),i=o.map((a,c)=>({id:String(c+1),method:"POST",url:`${r}/messages/${_.encodeGraphId(a)}/move`,headers:{"Content-Type":"application/json"},body:{destinationId:t}}));try{let a=await Yi({client:n,requests:i}),c=[],u=[];for(let l of a){let d=o[Number(l.id)-1];if(l.status>=200&&l.status<300){let f=l.body??{};c.push({messageId:d,newMessageId:f.id??null})}else u.push({messageId:d,status:l.status,error:Qi(l)})}return{success:u.length===0,destinationFolderId:t,requestedCount:o.length,succeededCount:c.length,failedCount:u.length,succeeded:c,failed:u}}catch(a){throw _.graphError({error:a,operation:"Batch moving Outlook messages"})}}});var PI=O({auth:S,name:"outlook_batch_update_messages",classification:"WRITE",displayName:"Batch Update Messages",description:"Applies the same property changes to several messages at once.",audience:"ai",aiMetadata:{description:"Applies the same read state, flag, importance and category changes to many messages through Microsoft Graph batching, in chunks of 20 sub-requests. Fields left empty are never sent, and categories are merged per message against that message current categories, so tags on other messages are not wiped. Individual items can fail while others succeed, so always read the failed list. Idempotent: re-applying the same field values converges on the same state and creates no new entities.",idempotent:!0},props:{messageIds:g.Array({displayName:"Message IDs",description:"IDs of the messages to update. Resolve them with List Messages or Search Messages.",required:!0}),isRead:g.StaticDropdown({displayName:"Read State",description:"Leave unset to keep each message current read state.",required:!1,options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}}),flagStatus:g.StaticDropdown({displayName:"Flag State",description:"Leave unset to keep each message current flag.",required:!1,options:{disabled:!1,options:[{label:"Flagged",value:"flagged"},{label:"Not flagged",value:"notFlagged"},{label:"Complete",value:"complete"}]}}),importance:g.StaticDropdown({displayName:"Importance",description:"Leave unset to keep each message current importance.",required:!1,options:{disabled:!1,options:[{label:"Low",value:"low"},{label:"Normal",value:"normal"},{label:"High",value:"high"}]}}),categoriesToAdd:g.Array({displayName:"Categories to Add",description:"Category names merged into the categories each message already has.",required:!1}),categoriesToRemove:g.Array({displayName:"Categories to Remove",description:"Category names removed from each message.",required:!1})},outputSchema:IA,async run(e){let{isRead:t,flagStatus:o,importance:n}=e.propsValue,r=e.propsValue.messageIds??[],i=e.propsValue.categoriesToAdd??[],a=e.propsValue.categoriesToRemove??[];if(r.length===0)throw new Error("Batch updating Outlook messages failed: no message IDs were supplied.");let c={};t!==void 0&&(c.isRead=t==="true"),o!==void 0&&(c.flag={flagStatus:o}),n!==void 0&&(c.importance=n);let u=i.length>0||a.length>0;if(Object.keys(c).length===0&&!u)throw new Error("Batch updating Outlook messages failed: no fields were supplied, so there is nothing to change.");let l=x.createClient(e.auth),d=x.mailboxPrefix(e.auth),f=[],h=new Map;try{if(u){let A=r.map((w,j)=>({id:String(j+1),method:"GET",url:`${d}/messages/${_.encodeGraphId(w)}?$select=id,categories`})),E=await Yi({client:l,requests:A});for(let w of E){let j=r[Number(w.id)-1];if(w.status>=200&&w.status<300){let pe=(w.body??{}).categories??[];h.set(j,[...new Set([...pe,...i])].filter(Ne=>!a.includes(Ne)))}else f.push({messageId:j,status:w.status,error:Qi(w)})}}let p=u?r.filter(A=>h.has(A)):r,v=p.map((A,E)=>({id:String(E+1),method:"PATCH",url:`${d}/messages/${_.encodeGraphId(A)}`,headers:{"Content-Type":"application/json"},body:u?{...c,categories:h.get(A)}:{...c}})),P=[];if(v.length>0){let A=await Yi({client:l,requests:v});for(let E of A){let w=p[Number(E.id)-1];E.status>=200&&E.status<300?P.push({messageId:w}):f.push({messageId:w,status:E.status,error:Qi(E)})}}return{success:f.length===0,requestedCount:r.length,succeededCount:P.length,failedCount:f.length,succeeded:P,failed:f}}catch(p){throw _.graphError({error:p,operation:"Batch updating Outlook messages"})}}});var AI=O({auth:S,name:"outlook_copy_mail_folder",classification:"WRITE",displayName:"Copy Mail Folder",description:"Copies a mail folder under another folder.",audience:"ai",aiMetadata:{description:"Copies a mail folder, with its messages and sub-folders, under a destination folder and returns the new folder. Use Move Mail Folder when the original should not stay in place. Not idempotent: each call creates another copy.",idempotent:!1},props:{folderId:g.ShortText({displayName:"Folder ID",description:_.wellKnownFolderHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:`Folder that will contain the copy. ${_.wellKnownFolderHint}`,required:!0})},outputSchema:MA,async run(e){let{folderId:t,destinationFolderId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/mailFolders/${_.encodeGraphId(t)}/copy`).post({destinationId:o});return{success:!0,sourceFolderId:t,newFolderId:i?.id??null,destinationFolderId:o,folder:i}}catch(i){throw _.graphError({error:i,operation:"Copying the Outlook mail folder"})}}});var II=O({auth:S,name:"outlook_copy_message",classification:"WRITE",displayName:"Copy Message",description:"Copies a message into another mail folder.",audience:"ai",aiMetadata:{description:"Copies one message into another mail folder, leaving the original where it is, and returns the copy. The copy has a NEW message ID, returned as newMessageId. Use Move Message when the original should not stay behind. Not idempotent: each call creates one more copy.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:_.wellKnownFolderHint,required:!0})},outputSchema:PA,async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${_.encodeGraphId(t)}/copy`).post({destinationId:o});return{success:!0,sourceMessageId:t,newMessageId:i?.id??null,destinationFolderId:o,message:i}}catch(i){throw _.graphError({error:i,operation:"Copying the Outlook message"})}}});var EI=O({auth:S,name:"outlook_create_draft",classification:"WRITE",displayName:"Create Draft",description:"Creates an unsent draft message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft email in the mailbox (optionally inside a specific folder) and returns its message ID. Use this to stage a message for review, to attach files with Add Attachment to Draft, or before Send Draft; use Send Email to send in one step. Not idempotent: every call creates another draft.",idempotent:!1},props:{recipients:g.Array({displayName:"To Email(s)",required:!1}),ccRecipients:g.Array({displayName:"CC Email(s)",required:!1}),bccRecipients:g.Array({displayName:"BCC Email(s)",required:!1}),subject:g.ShortText({displayName:"Subject",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:g.LongText({displayName:"Body",required:!0}),folderId:g.ShortText({displayName:"Folder ID",description:`Create the draft inside a specific folder. ${_.wellKnownFolderHint} Leave empty to use the Drafts folder.`,required:!1}),attachments:g.Array({displayName:"Attachments",description:"Files to attach. Total message size must stay under 3 MB.",required:!1,properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}})},outputSchema:Qt,async run(e){let t=e.propsValue.recipients??[],o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c,folderId:u}=e.propsValue,l={subject:i,body:{content:a,contentType:c},toRecipients:t.map(p=>({emailAddress:{address:p}})),ccRecipients:o.map(p=>({emailAddress:{address:p}})),bccRecipients:n.map(p=>({emailAddress:{address:p}})),attachments:r.map(p=>({"@odata.type":"#microsoft.graph.fileAttachment",name:p.fileName||p.file.filename,contentBytes:p.file.base64}))},d=x.createClient(e.auth),f=x.mailboxPrefix(e.auth),h=u?`${f}/mailFolders/${_.encodeGraphId(u)}/messages`:`${f}/messages`;try{return await d.api(h).post(l)}catch(p){throw _.graphError({error:p,operation:"Creating the Outlook draft"})}}});var TI=O({auth:S,name:"outlook_create_focused_inbox_override",classification:"WRITE",displayName:"Create Focused Inbox Override",description:"Forces mail from a sender into the Focused or Other tab.",audience:"ai",aiMetadata:{description:"Pins future mail from one sender address to the Focused or the Other tab. Microsoft upserts by sender address: if an override already exists for that address, its classification is updated instead of a duplicate being created, and the stored display name is left untouched unless Sender Display Name is supplied. Idempotent for that reason. Use Update Focused Inbox Override when you already hold an override ID.",idempotent:!0},props:{senderEmailAddress:g.ShortText({displayName:"Sender Email Address",description:"SMTP address of the sender the override applies to.",required:!0}),classifyAs:g.StaticDropdown({displayName:"Classify As",required:!0,defaultValue:"focused",options:{disabled:!1,options:[{label:"Focused",value:"focused"},{label:"Other",value:"other"}]}}),senderName:g.ShortText({displayName:"Sender Display Name",description:"Optional display name stored alongside the override.",required:!1})},outputSchema:Hu,async run(e){let{senderEmailAddress:t,classifyAs:o,senderName:n}=e.propsValue,r=x.createClient(e.auth),i=x.mailboxPrefix(e.auth);try{return await r.api(`${i}/inferenceClassification/overrides`).post({classifyAs:o,senderEmailAddress:{...n?{name:n}:{},address:t}})}catch(a){throw _.graphError({error:a,operation:"Creating the Focused Inbox override"})}}});var SI=O({auth:S,name:"outlook_create_forward_draft",classification:"WRITE",displayName:"Create Forward Draft",description:"Creates an unsent forward draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft that forwards an existing message to the given recipients, and returns the draft message ID so the forward can be edited before sending. Use Forward Message to send in one step, and Send Draft to dispatch this draft. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),recipients:g.Array({displayName:"To Email(s)",description:"Email addresses the draft will forward the message to.",required:!0}),comment:g.LongText({displayName:"Comment",description:"Optional text added above the forwarded message.",required:!1})},outputSchema:Qt,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=x.createClient(e.auth),i=x.mailboxPrefix(e.auth);try{return await r.api(`${i}/messages/${_.encodeGraphId(t)}/createForward`).post({comment:o??"",toRecipients:n.map(a=>({emailAddress:{address:a}}))})}catch(a){throw _.graphError({error:a,operation:"Creating the Outlook forward draft"})}}});var wI=O({auth:S,name:"outlook_create_mail_folder",classification:"WRITE",displayName:"Create Mail Folder",description:"Creates a mail folder, or returns the existing one with the same name.",audience:"ai",aiMetadata:{description:"Creates a mail folder at the top level or under a parent folder. It first queries the sibling folders by exact display name and returns the existing folder with created set to false when one already carries the same display name, so no duplicate folder is ever created. Idempotent: repeat calls return the same folder.",idempotent:!0},props:{displayName:g.ShortText({displayName:"Folder Name",description:"Display name of the folder to create.",required:!0}),parentFolderId:g.ShortText({displayName:"Parent Folder ID",description:`Create the folder under this parent. ${_.wellKnownFolderHint} Leave empty to create it at the top level.`,required:!1})},outputSchema:NA,async run(e){let{displayName:t,parentFolderId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth),i=o?`${r}/mailFolders/${_.encodeGraphId(o)}/childFolders`:`${r}/mailFolders`,a=t.trim();try{let u=((await n.api(`${i}?includeHiddenFolders=true&$select=${_.mailFolderSelect}&$filter=${encodeURIComponent(`displayName eq '${a.replace(/'/g,"''")}'`)}`).get()).value??[]).find(d=>(d.displayName??"").toLowerCase()===a.toLowerCase());if(u)return{created:!1,folder:u,folderId:u.id??null};let l=await n.api(i).post({displayName:t});return{created:!0,folder:l,folderId:l?.id??null}}catch(c){throw _.graphError({error:c,operation:"Creating the Outlook mail folder"})}}});var OI=O({auth:S,name:"outlook_create_reply_all_draft",classification:"WRITE",displayName:"Create Reply-All Draft",description:"Creates an unsent reply-all draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft addressed to the sender and every other recipient of an existing message, and returns the draft message ID. Use Create Reply Draft to answer only the sender, or Reply All to Message to send immediately. Send it later with Send Draft. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Optional text added above the quoted original message.",required:!1})},outputSchema:Qt,async run(e){let{messageId:t,comment:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${_.encodeGraphId(t)}/createReplyAll`).post({comment:o??""})}catch(i){throw _.graphError({error:i,operation:"Creating the Outlook reply-all draft"})}}});var kI=O({auth:S,name:"outlook_create_reply_draft",classification:"WRITE",displayName:"Create Reply Draft",description:"Creates an unsent reply draft for a message.",audience:"ai",aiMetadata:{description:"Creates an unsent draft reply to the sender of an existing message and returns the draft message ID. Use this when the reply needs editing, extra attachments or review before it goes out; use Reply to Message to send in one step, and Send Draft to dispatch the draft afterwards. Not idempotent: each call creates another draft.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Optional text added above the quoted original message.",required:!1})},outputSchema:Qt,async run(e){let{messageId:t,comment:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${_.encodeGraphId(t)}/createReply`).post({comment:o??""})}catch(i){throw _.graphError({error:i,operation:"Creating the Outlook reply draft"})}}});var $I=O({auth:S,name:"outlook_delete_focused_inbox_override",classification:"DESTRUCTIVE",displayName:"Delete Focused Inbox Override",description:"Removes a Focused Inbox sender override.",audience:"ai",aiMetadata:{description:"Deletes one Focused Inbox override so mail from that sender is classified by Outlook again. The override ID comes from List Focused Inbox Overrides. Not idempotent: repeating the call with the same ID fails once the override is gone.",idempotent:!1},props:{overrideId:g.ShortText({displayName:"Override ID",description:"Override ID from List Focused Inbox Overrides.",required:!0})},outputSchema:jA,async run(e){let{overrideId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{return await o.api(`${n}/inferenceClassification/overrides/${_.encodeGraphId(t)}`).delete(),{success:!0,message:"Focused Inbox override deleted.",overrideId:t}}catch(r){throw _.graphError({error:r,operation:"Deleting the Focused Inbox override"})}}});var RI=O({auth:S,name:"outlook_delete_mail_folder",classification:"DESTRUCTIVE",displayName:"Delete Mail Folder",description:"Deletes a mail folder and everything inside it.",audience:"ai",aiMetadata:{description:"Deletes a mail folder together with every message and sub-folder it contains. Move messages out with Batch Move Messages first if they must be kept. Not idempotent: repeating the call with the same ID fails once the folder is gone.",idempotent:!1},props:{folderId:g.ShortText({displayName:"Folder ID",description:`${_.wellKnownFolderHint} Well-known system folders cannot be deleted.`,required:!0})},outputSchema:LA,async run(e){let{folderId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{return await o.api(`${n}/mailFolders/${_.encodeGraphId(t)}`).delete(),{success:!0,message:"Mail folder deleted.",folderId:t}}catch(r){throw _.graphError({error:r,operation:"Deleting the Outlook mail folder"})}}});var CI=O({auth:S,name:"outlook_delete_message",classification:"DESTRUCTIVE",displayName:"Delete Message (to Deleted Items)",description:"Moves a message to the Deleted Items folder.",audience:"ai",aiMetadata:{description:"Deletes one message by moving it to Deleted Items, where it stays recoverable. This is the safe delete to prefer; Permanently Delete Message is unrecoverable. Not idempotent: repeating the call with the same ID fails once the message has moved.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0})},outputSchema:EA,async run(e){let{messageId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${_.encodeGraphId(t)}`).delete(),{success:!0,message:"Message moved to Deleted Items.",messageId:t}}catch(r){throw _.graphError({error:r,operation:"Deleting the Outlook message"})}}});var zI=O({auth:S,name:"outlook_delete_message_attachment",classification:"DESTRUCTIVE",displayName:"Delete Message Attachment",description:"Removes an attachment from a message.",audience:"ai",aiMetadata:{description:"Removes one attachment from a message, typically a draft, and it cannot be restored afterwards. Resolve the attachment ID with List Message Attachments first. Not idempotent: repeating the call with the same ID fails once the attachment is gone.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),attachmentId:g.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments.",required:!0})},outputSchema:kA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${_.encodeGraphId(t)}/attachments/${_.encodeGraphId(o)}`).delete(),{success:!0,message:"Attachment deleted.",messageId:t,attachmentId:o}}catch(i){throw _.graphError({error:i,operation:"Deleting the Outlook message attachment"})}}});var DI=Ze(Bu());var NI=O({auth:S,name:"outlook_download_message_attachment",classification:"READ",displayName:"Download Message Attachment",description:"Downloads one file attachment of a message.",audience:"ai",aiMetadata:{description:"Downloads the bytes of a single file attachment and stores it for downstream steps. Only file attachments can be downloaded; item attachments (an attached email or event) and reference attachments (a cloud link) are rejected with an explanatory error, so check the attachment kind with List Message Attachments first. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),attachmentId:g.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments. Attachment IDs are only valid inside their own message.",required:!0})},outputSchema:wA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=x.createClient(e.auth),i=`${x.mailboxPrefix(e.auth)}/messages/${_.encodeGraphId(t)}/attachments/${_.encodeGraphId(o)}`,a;try{a=await n.api(`${i}?$select=${_.attachmentSelect}`).get()}catch(u){throw _.graphError({error:u,operation:"Reading the Outlook attachment before download"})}let c=a?.["@odata.type"]??"";if(c!=="#microsoft.graph.fileAttachment")throw new Error(`Downloading the Outlook attachment failed: this attachment is a ${c||"non-file attachment"}, and only #microsoft.graph.fileAttachment items expose downloadable bytes. Use List Message Attachments to find a file attachment on this message.`);try{let u=await n.api(`${i}/$value`).responseType(DI.ResponseType.ARRAYBUFFER).get(),l=Buffer.isBuffer(u)?u:Buffer.from(u),d=a?.name??"attachment",f=await e.files.write({fileName:d,data:l});return{messageId:t,attachmentId:o,fileName:d,contentType:a?.contentType??null,size:l.length,file:f}}catch(u){throw _.graphError({error:u,operation:"Downloading the Outlook message attachment"})}}});var MI=O({auth:S,name:"outlook_forward_message",classification:"WRITE",displayName:"Forward Message",description:"Forwards a message to new recipients.",audience:"ai",aiMetadata:{description:"Forwards an existing message to new recipients, keeping the original body and attachments and prepending an optional comment. Use Create Forward Draft when the forward should be edited before sending. Not idempotent: each call sends another forwarded copy.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),recipients:g.Array({displayName:"To Email(s)",description:"Email addresses to forward the message to.",required:!0}),comment:g.LongText({displayName:"Comment",description:"Optional text added above the forwarded message.",required:!1})},outputSchema:KA,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.recipients,r=x.createClient(e.auth),i=x.mailboxPrefix(e.auth);try{return await r.api(`${i}/messages/${_.encodeGraphId(t)}/forward`).post({comment:o??"",toRecipients:n.map(a=>({emailAddress:{address:a}}))}),{success:!0,message:"Message forwarded successfully.",messageId:t,recipients:n}}catch(a){throw _.graphError({error:a,operation:"Forwarding the Outlook message"})}}});var UI=O({auth:S,name:"outlook_get_mail_folder",classification:"READ",displayName:"Get Mail Folder",description:"Reads one mail folder by ID or well-known name.",audience:"ai",aiMetadata:{description:"Reads a single mail folder and returns its display name, parent, child count and unread and total item counts. Accepts either an opaque folder ID or a well-known name such as inbox or drafts, which makes it the cheapest way to resolve a standard folder ID. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:_.wellKnownFolderHint,required:!0,defaultValue:"inbox"})},outputSchema:$A,async run(e){let{folderId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{return await o.api(`${n}/mailFolders/${_.encodeGraphId(t)}?$select=${_.mailFolderSelect}`).get()}catch(r){throw _.graphError({error:r,operation:"Reading the Outlook mail folder"})}}});var Xz="automaticReplies, mailboxFullStatus, customMailTip, externalMemberCount, maxMessageSize, deliveryRestriction, moderationStatus, recipientScope, totalMemberCount",LI=O({auth:S,name:"outlook_get_mail_tips",classification:"READ",displayName:"Get Mail Tips",description:"Reads pre-send mail tips for a set of recipients.",audience:"ai",aiMetadata:{description:"Checks recipients before sending and reports automatic replies or out-of-office messages, full mailboxes, maximum accepted message size, delivery restrictions, moderation and whether the recipient is external. Use this ahead of Send Email when a message is important or goes outside the organisation. Read-only and safe to retry.",idempotent:!0},props:{emailAddresses:g.Array({displayName:"Recipient Email Addresses",description:"Addresses to check. Up to 100 recipients per call.",required:!0})},outputSchema:BA,async run(e){let t=e.propsValue.emailAddresses;if(t.length===0)throw new Error("Reading Outlook mail tips failed: no recipient addresses were supplied.");let o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{let i=(await o.api(`${n}/getMailTips`).post({EmailAddresses:t,MailTipsOptions:Xz}))?.value??[];return{mailTips:i,count:i.length}}catch(r){throw _.graphError({error:r,operation:"Reading Outlook mail tips"})}}});var FI=O({auth:S,name:"outlook_get_message",classification:"READ",displayName:"Get Message",description:"Retrieves a single message by its ID.",audience:"ai",aiMetadata:{description:"Reads one Outlook message by ID and returns its headers, plain-text body and metadata. Use this after List Messages or Search Messages to inspect a specific email; use Get Message MIME Content when you need the raw RFC-822 source. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0})},outputSchema:yt,async run(e){let{messageId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${_.encodeGraphId(t)}`).headers(_.textBodyHeaders).get()}catch(r){throw _.graphError({error:r,operation:"Reading the Outlook message"})}}});var jI=O({auth:S,name:"outlook_get_message_attachment",classification:"READ",displayName:"Get Message Attachment",description:"Reads the metadata of one attachment.",audience:"ai",aiMetadata:{description:"Returns the metadata of a single attachment (name, content type, size, inline flag and attachment kind) without transferring the file bytes. Use Download Message Attachment when the file content itself is needed, and List Message Attachments to discover attachment IDs. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),attachmentId:g.ShortText({displayName:"Attachment ID",description:"Attachment ID from List Message Attachments. Attachment IDs are only valid inside their own message.",required:!0})},outputSchema:SA,async run(e){let{messageId:t,attachmentId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${_.encodeGraphId(t)}/attachments/${_.encodeGraphId(o)}?$select=${_.attachmentSelect}`).get();return{messageId:t,id:i?.id??null,name:i?.name??null,contentType:i?.contentType??null,size:i?.size??null,isInline:i?.isInline??null,lastModifiedDateTime:i?.lastModifiedDateTime??null,attachmentType:i?.["@odata.type"]??null}}catch(i){throw _.graphError({error:i,operation:"Reading the Outlook message attachment"})}}});var BI=Ze(Bu());var VI=O({auth:S,name:"outlook_get_message_mime",classification:"READ",displayName:"Get Message MIME Content",description:"Downloads the raw MIME (RFC-822) content of a message.",audience:"ai",aiMetadata:{description:"Stores the raw RFC-822 MIME source of one Outlook message, including full internet headers, as a byte-exact .eml file and returns that file plus its size. The content is not returned inline, because MIME can carry 8-bit and non-UTF-8 bytes that no text field round-trips; read the file when you need the headers. Use this for archival or forensic inspection; use Get Message when the parsed fields are enough. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0})},outputSchema:_A,async run(e){let{messageId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{let r=await o.api(`${n}/messages/${_.encodeGraphId(t)}/$value`).responseType(BI.ResponseType.ARRAYBUFFER).get(),i=Buffer.isBuffer(r)?r:Buffer.from(r),a="message.eml",c=await e.files.write({fileName:a,data:i});return{messageId:t,fileName:a,contentType:"message/rfc822",size:i.length,file:c}}catch(r){throw _.graphError({error:r,operation:"Downloading the Outlook message MIME content"})}}});var ZI=O({auth:S,name:"outlook_get_my_profile",classification:"READ",displayName:"Get My Profile",description:"Reads the identity of the connected account.",audience:"ai",aiMetadata:{description:"Returns the identity behind the connection: display name, primary email address and user principal name. Use this to learn your own address before composing mail, filtering a thread or deciding whether a sender is you. On app-only connections it reports the configured mailbox without calling Microsoft Graph, because reading another user profile would need a directory permission this piece does not request. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:VA,async run(e){if(_.isAppOnlyConnection(e.auth)){let o=_.getConfiguredMailbox(e.auth);return{id:null,displayName:null,mail:o,userPrincipalName:o,source:"connection-mailbox"}}let t=x.createClient(e.auth);try{let o=await t.api("/me?$select=id,displayName,mail,userPrincipalName").get();return{id:o?.id??null,displayName:o?.displayName??null,mail:o?.mail??null,userPrincipalName:o?.userPrincipalName??null,source:"graph"}}catch(o){throw _.graphError({error:o,operation:"Reading the Outlook profile"})}}});var HI=O({auth:S,name:"outlook_get_supported_time_zones",classification:"READ",displayName:"Get Supported Time Zones",description:"Lists the time zones Outlook accepts for this account.",audience:"ai",aiMetadata:{description:"Lists the time zone names Outlook accepts, so a time zone string can be validated before it is used elsewhere. Works on delegated connections only: Microsoft exposes no application permission for it, so app-only connections are rejected with an explanatory error. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:ZA,async run(e){if(_.isAppOnlyConnection(e.auth))throw new Error("Listing the supported time zones is available on delegated Outlook connections only. Microsoft Graph exposes no application permission for this endpoint, so an app-only connection with a configured mailbox cannot call it.");let t=x.createClient(e.auth),o=x.mailboxPrefix(e.auth);try{let r=(await t.api(`${o}/outlook/supportedTimeZones`).get()).value??[];return{timeZones:r,count:r.length}}catch(n){throw _.graphError({error:n,operation:"Listing the supported Outlook time zones"})}}});var qI=O({auth:S,name:"outlook_list_child_mail_folders",classification:"SEARCH",displayName:"List Child Mail Folders",description:"Lists the sub-folders of one mail folder.",audience:"ai",aiMetadata:{description:"Lists the direct sub-folders of a given mail folder, including hidden ones, so nested hierarchies can be walked one level at a time. Use List Mail Folders for the top level; a child folder ID works anywhere a folder ID is accepted. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Parent Folder ID",description:_.wellKnownFolderHint,required:!0,defaultValue:"inbox"}),maxResults:g.Number({displayName:"Max Results",description:"Maximum number of folders to return (1-100).",required:!1,defaultValue:50})},outputSchema:zA,async run(e){let{folderId:t,maxResults:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth),i=Math.min(Math.max(o??50,1),100);try{let a=await n.api(`${r}/mailFolders/${_.encodeGraphId(t)}/childFolders?includeHiddenFolders=true&$select=${_.mailFolderSelect}&$top=${i}`).get(),c=a.value??[],u=a["@odata.nextLink"];return{parentFolderId:t,folders:c,count:c.length,hasMore:!!u,nextLink:u??null}}catch(a){throw _.graphError({error:a,operation:"Listing the Outlook child mail folders"})}}});var GI=O({auth:S,name:"outlook_list_focused_inbox_overrides",classification:"SEARCH",displayName:"List Focused Inbox Overrides",description:"Lists the Focused Inbox sender overrides of the mailbox.",audience:"ai",aiMetadata:{description:"Lists the Focused Inbox overrides that force mail from specific senders into the Focused or Other tab, with the override ID for each sender. Run this first: Update Focused Inbox Override and Delete Focused Inbox Override both need an ID that only this action returns. Read-only and safe to retry.",idempotent:!0},props:{},outputSchema:FA,async run(e){let t=x.createClient(e.auth),o=x.mailboxPrefix(e.auth);try{let r=(await t.api(`${o}/inferenceClassification/overrides`).get()).value??[];return{overrides:r,count:r.length}}catch(n){throw _.graphError({error:n,operation:"Listing the Focused Inbox overrides"})}}});var WI=O({auth:S,name:"outlook_list_mail_folders",classification:"SEARCH",displayName:"List Mail Folders",description:"Lists the top-level mail folders of the mailbox.",audience:"ai",aiMetadata:{description:"Lists the top-level mail folders with their IDs, display names and item counts, including hidden folders. Use this to resolve a folder ID before moving, copying or listing messages; use List Child Mail Folders to walk deeper into the tree. Read-only and safe to retry.",idempotent:!0},props:{maxResults:g.Number({displayName:"Max Results",description:"Maximum number of folders to return (1-100).",required:!1,defaultValue:50})},outputSchema:CA,async run(e){let{maxResults:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth),r=Math.min(Math.max(t??50,1),100);try{let i=await o.api(`${n}/mailFolders?includeHiddenFolders=true&$select=${_.mailFolderSelect}&$top=${r}`).get(),a=i.value??[],c=i["@odata.nextLink"];return{folders:a,count:a.length,hasMore:!!c,nextLink:c??null}}catch(i){throw _.graphError({error:i,operation:"Listing the Outlook mail folders"})}}});var KI=O({auth:S,name:"outlook_list_mail_folders_delta",classification:"SEARCH",displayName:"List Folder Changes (Delta)",description:"Tracks created, renamed and deleted mail folders.",audience:"ai",aiMetadata:{description:"Returns the mail folders created, renamed or removed since a previous delta link, plus a fresh delta link for the next call. Use this to keep a folder tree in sync instead of re-listing it; it pairs with List Message Changes (Delta) for messages. The delta link must be one this action returned on the same connection: any other URL is rejected instead of being followed. Each change carries a removed flag: when it is true the folder was deleted and only its id and removedReason are meaningful. Read-only and safe to retry.",idempotent:!0},props:{deltaLink:g.ShortText({displayName:"Delta Link",description:`The deltaLink returned by a previous run. Leave empty to start a new sync from the current folder tree. ${_.deltaLinkHint}`,required:!1})},outputSchema:DA,async run(e){let{deltaLink:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth),r="Listing the Outlook mail folder changes",i=`${n}/mailFolders/delta`,a=t?_.resolveDeltaUrl({auth:e.auth,deltaLink:t,expectedPath:i,operation:r}):i;try{let c=await o.api(a).headers({Prefer:"odata.maxpagesize=50"}).get(),u=(c.value??[]).map(f=>_.withDeltaRemoval(f)),l=c["@odata.nextLink"],d=c["@odata.deltaLink"];return{changes:u,count:u.length,hasMore:!!l,nextLink:l??null,deltaLink:d??null}}catch(c){throw _.graphError({error:c,operation:r})}}});var JI=O({auth:S,name:"outlook_list_message_attachments",classification:"SEARCH",displayName:"List Message Attachments",description:"Lists the attachments of a message without downloading them.",audience:"ai",aiMetadata:{description:"Lists every attachment on one message with its ID, name, content type, size and kind, without transferring any file bytes. Use this first to pick an attachment ID for Download Message Attachment or Get Message Attachment. Read-only and safe to retry.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0})},outputSchema:TA,async run(e){let{messageId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{let i=(await o.api(`${n}/messages/${_.encodeGraphId(t)}/attachments?$select=${_.attachmentSelect}`).get()).value??[];return{messageId:t,attachments:i.map(a=>({id:a.id??null,name:a.name??null,contentType:a.contentType??null,size:a.size??null,isInline:a.isInline??null,lastModifiedDateTime:a.lastModifiedDateTime??null,attachmentType:a["@odata.type"]??null})),count:i.length}}catch(r){throw _.graphError({error:r,operation:"Listing the Outlook message attachments"})}}});var XI=O({auth:S,name:"outlook_list_messages",classification:"SEARCH",displayName:"List Messages",description:"Lists messages from the mailbox or a single mail folder.",audience:"ai",aiMetadata:{description:"Enumerates Outlook messages, optionally scoped to one mail folder and narrowed by an OData $filter expression, and returns their IDs and headers. Use this to discover message IDs for other actions; use Search Messages instead when you only have free-text keywords. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:`Limit the listing to one folder. ${_.wellKnownFolderHint} Leave empty to list the whole mailbox.`,required:!1}),filter:g.ShortText({displayName:"Filter",description:"Optional OData $filter expression, for example: isRead eq false, or receivedDateTime ge 2024-01-01T00:00:00Z.",required:!1}),maxResults:g.Number({displayName:"Max Results",description:"Maximum number of messages to return (1-100).",required:!1,defaultValue:25}),skip:g.Number({displayName:"Skip",description:"Number of messages to skip before returning results, for paging.",required:!1})},outputSchema:yA,async run(e){let{folderId:t,filter:o,maxResults:n,skip:r}=e.propsValue,i=x.createClient(e.auth),a=x.mailboxPrefix(e.auth),c=t?`${a}/mailFolders/${_.encodeGraphId(t)}/messages`:`${a}/messages`,u=Math.min(Math.max(n??25,1),100),l=[`$select=${_.messageSelect}`,`$top=${u}`];o?l.push(`$filter=${encodeURIComponent(o)}`):l.push("$orderby=receivedDateTime%20desc"),r!==void 0&&r>0&&l.push(`$skip=${Math.floor(r)}`);try{let d=await i.api(`${c}?${l.join("&")}`).headers(_.textBodyHeaders).get(),f=d.value??[],h=d["@odata.nextLink"];return{messages:f,count:f.length,hasMore:!!h,nextLink:h??null}}catch(d){throw _.graphError({error:d,operation:"Listing Outlook messages"})}}});var YI=O({auth:S,name:"outlook_list_messages_delta",classification:"SEARCH",displayName:"List Message Changes (Delta)",description:"Tracks created, updated and deleted messages in a folder.",audience:"ai",aiMetadata:{description:"Returns the messages added, changed or removed in one mail folder since a previous delta link, plus a fresh delta link for the next call. Use this for incremental sync instead of re-listing a folder; a first call without a delta link returns the current contents. The delta link must be one this action returned on the same connection: any other URL is rejected instead of being followed. Each change carries a removed flag: when it is true the item was deleted and only its id and removedReason are meaningful. Delta payloads omit message bodies and attachments, so follow up with Get Message for full content. Read-only and safe to retry.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:`Folder to track. ${_.wellKnownFolderHint}`,required:!0,defaultValue:"inbox"}),deltaLink:g.ShortText({displayName:"Delta Link",description:`The deltaLink returned by a previous run. Leave empty to start a new sync from the current folder state. ${_.deltaLinkHint}`,required:!1})},outputSchema:xA,async run(e){let{folderId:t,deltaLink:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth),i="Listing Outlook message changes",a=o?_.resolveDeltaUrl({auth:e.auth,deltaLink:o,expectedPath:`${r}/mailFolders/*/messages/delta`,operation:i}):`${r}/mailFolders/${_.encodeGraphId(t)}/messages/delta?$select=${_.messageSelect}`;try{let c=await n.api(a).headers({Prefer:"odata.maxpagesize=50"}).get(),u=(c.value??[]).map(f=>_.withDeltaRemoval(f)),l=c["@odata.nextLink"],d=c["@odata.deltaLink"];return{changes:u,count:u.length,hasMore:!!l,nextLink:l??null,deltaLink:d??null}}catch(c){throw _.graphError({error:c,operation:i})}}});var QI=O({auth:S,name:"outlook_move_mail_folder",classification:"WRITE",displayName:"Move Mail Folder",description:"Moves a mail folder under another folder.",audience:"ai",aiMetadata:{description:"Reparents a mail folder, moving it with its messages and sub-folders under a different destination folder. Use Copy Mail Folder to duplicate instead of relocating, and Rename Mail Folder to change only its name. The move issues the folder a new ID: carry newFolderId forward into later steps, not the folderId that was passed in. Not idempotent: once moved, the same call repeated against the old parent no longer applies.",idempotent:!1},props:{folderId:g.ShortText({displayName:"Folder ID",description:_.wellKnownFolderHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:`New parent folder. ${_.wellKnownFolderHint}`,required:!0})},outputSchema:UA,async run(e){let{folderId:t,destinationFolderId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/mailFolders/${_.encodeGraphId(t)}/move`).post({destinationId:o});return{success:!0,folderId:t,newFolderId:i?.id??null,destinationFolderId:o,folder:i}}catch(i){throw _.graphError({error:i,operation:"Moving the Outlook mail folder"})}}});var eE=O({auth:S,name:"outlook_move_message",classification:"WRITE",displayName:"Move Message",description:"Moves a message to another mail folder.",audience:"ai",aiMetadata:{description:"Moves one message into another mail folder and returns the moved copy. The move mints a NEW message ID: the original ID stops resolving, so use the returned newMessageId for any follow-up step. Use Copy Message to leave the original in place, or Batch Move Messages for many messages. Not idempotent: a retry with the old ID fails.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),destinationFolderId:g.ShortText({displayName:"Destination Folder ID",description:_.wellKnownFolderHint,required:!0})},outputSchema:bA,async run(e){let{messageId:t,destinationFolderId:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{let i=await n.api(`${r}/messages/${_.encodeGraphId(t)}/move`).post({destinationId:o});return{success:!0,previousMessageId:t,newMessageId:i?.id??null,destinationFolderId:o,message:i}}catch(i){throw _.graphError({error:i,operation:"Moving the Outlook message"})}}});var tE=O({auth:S,name:"outlook_permanently_delete_message",classification:"DESTRUCTIVE",displayName:"Permanently Delete Message",description:"Permanently deletes a message so it cannot be recovered.",audience:"ai",aiMetadata:{description:"Permanently removes one message from the mailbox with no way to recover it, bypassing Deleted Items. Prefer Delete Message (to Deleted Items) in every case where recovery might be wanted; only use this when the caller explicitly asked for unrecoverable deletion. Unavailable on US Government DoD and 21Vianet clouds. Not idempotent: a retry with the same ID fails.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),confirm:g.Checkbox({displayName:"Confirm Permanent Deletion",description:"Must be enabled. The message cannot be recovered afterwards.",required:!0,defaultValue:!1})},async run(e){let{messageId:t,confirm:o}=e.propsValue;if(!o)throw new Error("Permanently deleting the Outlook message was refused: enable Confirm Permanent Deletion to proceed, or use Delete Message (to Deleted Items) instead.");if(_.isGovernmentCloud(e.auth))throw new Error("Permanently deleting the Outlook message is not available on the US Government cloud. Use Delete Message (to Deleted Items) instead.");let n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth),i=_.encodeGraphId(t);try{return await n.api(`${r}/messages/${i}/permanentDelete`).post({}),{success:!0,message:"Message permanently deleted.",messageId:t}}catch(a){if(!(r==="/me"&&_.isUnsupportedMePathError(a)))throw _.graphError({error:a,operation:"Permanently deleting the Outlook message"});try{let l=(await n.api("/me?$select=id").get())?.id;if(!l)throw _.graphError({error:a,operation:"Permanently deleting the Outlook message"});return await n.api(`/users/${_.encodeGraphId(l)}/messages/${i}/permanentDelete`).post({}),{success:!0,message:"Message permanently deleted.",messageId:t}}catch(u){throw _.graphError({error:u,operation:`Permanently deleting the Outlook message (retried against /users/{id} after the /me path was rejected with: ${_.graphErrorDetail(a)})`})}}}});var rE=O({auth:S,name:"outlook_remove_message_categories",classification:"WRITE",displayName:"Remove Categories from Message",description:"Removes categories (labels) from a message.",audience:"ai",aiMetadata:{description:"Removes one or more Outlook categories from a message while leaving its other categories intact. Use Add Categories to Message for the inverse, and Update Message when other fields change too. Idempotent: removing a category the message does not have changes nothing.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),categories:g.Array({displayName:"Categories to Remove",description:"Category names to remove from the message.",required:!0})},outputSchema:yt,async run(e){let{messageId:t}=e.propsValue,o=e.propsValue.categories,n=x.createClient(e.auth),i=`${x.mailboxPrefix(e.auth)}/messages/${_.encodeGraphId(t)}`;try{let u=((await n.api(`${i}?$select=id,categories`).get())?.categories??[]).filter(l=>!o.includes(l));return await n.api(i).headers(_.textBodyHeaders).patch({categories:u})}catch(a){throw _.graphError({error:a,operation:"Removing categories from the Outlook message"})}}});var oE=O({auth:S,name:"outlook_reply_all_to_message",classification:"WRITE",displayName:"Reply All to Message",description:"Replies to the sender and all recipients of a message.",audience:"ai",aiMetadata:{description:"Sends a reply to the sender and every other recipient of an existing message. Use Reply to Message to answer the sender only, or Create Reply-All Draft when the reply must be reviewed first. Not idempotent: each call sends another reply to everyone on the thread.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Text added above the quoted original message.",required:!0})},outputSchema:WA,async run(e){let{messageId:t,comment:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${_.encodeGraphId(t)}/replyAll`).post({comment:o}),{success:!0,message:"Reply-all sent successfully.",messageId:t}}catch(i){throw _.graphError({error:i,operation:"Replying to all recipients of the Outlook message"})}}});var nE=O({auth:S,name:"outlook_reply_to_message",classification:"WRITE",displayName:"Reply to Message",description:"Replies to the sender of a message.",audience:"ai",aiMetadata:{description:"Sends a reply to the sender of an existing message, quoting the original thread. Use Reply All to Message to include every original recipient, or Create Reply Draft when the reply must be reviewed before sending. Not idempotent: each call sends another reply.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),comment:g.LongText({displayName:"Reply Text",description:"Text added above the quoted original message.",required:!0}),ccRecipients:g.Array({displayName:"Additional CC Email(s)",required:!1})},outputSchema:GA,async run(e){let{messageId:t,comment:o}=e.propsValue,n=e.propsValue.ccRecipients??[],r=x.createClient(e.auth),i=x.mailboxPrefix(e.auth),a={comment:o};n.length>0&&(a.message={ccRecipients:n.map(c=>({emailAddress:{address:c}}))});try{return await r.api(`${i}/messages/${_.encodeGraphId(t)}/reply`).post(a),{success:!0,message:"Reply sent successfully.",messageId:t}}catch(c){throw _.graphError({error:c,operation:"Replying to the Outlook message"})}}});var Ih=Ze(zo());var iE=O({auth:S,name:"outlook_search_messages",classification:"SEARCH",displayName:"Search Messages",description:"Searches messages with a full-text query.",audience:"ai",aiMetadata:{description:"Runs a full-text Outlook search (KQL terms such as from:jane@contoso.com, subject:invoice or hasAttachments:true), optionally inside one folder, and returns matching messages newest first. Pick this when you have keywords; use List Messages when you need an exact OData filter or paging. Search cannot be combined with filters or server-side sorting, and is unreliable on personal Microsoft accounts. Read-only and safe to retry.",idempotent:!0},props:{searchQuery:g.ShortText({displayName:"Search Query",description:"Keywords or KQL terms to match, for example: from:john@example.com, subject:urgent, hasAttachments:true.",required:!0}),folderId:g.ShortText({displayName:"Folder ID",description:`Search inside one folder only. ${_.wellKnownFolderHint} Leave empty to search the whole mailbox.`,required:!1}),maxResults:g.Number({displayName:"Max Results",description:"Maximum number of results to return (1-1000).",required:!1,defaultValue:25})},outputSchema:vA,async run(e){let{searchQuery:t,folderId:o,maxResults:n}=e.propsValue,r=x.createClient(e.auth),i=x.mailboxPrefix(e.auth),a=o?`${i}/mailFolders/${_.encodeGraphId(o)}/messages`:`${i}/messages`,c=Math.min(Math.max(n??25,1),1e3),u=`${a}?$search=${encodeURIComponent(`"${t}"`)}&$top=${c}`;try{let l=await r.api(u).headers({ConsistencyLevel:"eventual",..._.textBodyHeaders}).get(),d=l.value??[];d.sort((h,p)=>(0,Ih.default)(p.receivedDateTime).valueOf()-(0,Ih.default)(h.receivedDateTime).valueOf());let f=l["@odata.nextLink"];return{found:d.length>0,messages:d,count:d.length,hasMore:!!f,nextLink:f??null}}catch(l){throw _.graphError({error:l,operation:"Searching Outlook messages"})}}});var aE=O({auth:S,name:"outlook_send_draft",classification:"WRITE",displayName:"Send Draft",description:"Sends an existing draft message.",audience:"ai",aiMetadata:{description:"Sends a draft that already exists in the mailbox, identified by its message ID. Use this after Create Draft, Create Reply Draft, Create Reply-All Draft or Create Forward Draft. Not idempotent: the draft stops existing once sent, so a repeat call with the same ID fails.",idempotent:!1},props:{messageId:g.ShortText({displayName:"Draft Message ID",description:"ID of the draft to send. Obtain it from Create Draft or one of the Create ... Draft actions.",required:!0})},outputSchema:qA,async run(e){let{messageId:t}=e.propsValue,o=x.createClient(e.auth),n=x.mailboxPrefix(e.auth);try{return await o.api(`${n}/messages/${_.encodeGraphId(t)}/send`).post({}),{success:!0,message:"Draft sent successfully.",messageId:t}}catch(r){throw _.graphError({error:r,operation:"Sending the Outlook draft"})}}});var sE=O({auth:S,name:"outlook_send_email",classification:"WRITE",displayName:"Send Email",description:"Composes and sends a new email.",audience:"ai",aiMetadata:{description:"Composes and immediately sends a brand new email from the connected Outlook mailbox, with optional CC, BCC and attachments, and saves a copy in Sent Items. Use Reply to Message or Forward Message instead when responding to existing mail, and Create Draft when the message should be staged rather than sent. Not idempotent: every call dispatches another email.",idempotent:!1},props:{recipients:g.Array({displayName:"To Email(s)",description:"Email addresses of the primary recipients.",required:!0}),ccRecipients:g.Array({displayName:"CC Email(s)",required:!1}),bccRecipients:g.Array({displayName:"BCC Email(s)",required:!1}),subject:g.ShortText({displayName:"Subject",required:!0}),bodyFormat:g.StaticDropdown({displayName:"Body Format",required:!0,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}}),body:g.LongText({displayName:"Body",required:!0}),attachments:g.Array({displayName:"Attachments",description:"Files to attach. Total message size must stay under 3 MB.",required:!1,properties:{file:g.File({displayName:"File",required:!0}),fileName:g.ShortText({displayName:"File Name",required:!1})}})},outputSchema:HA,async run(e){let t=e.propsValue.recipients,o=e.propsValue.ccRecipients??[],n=e.propsValue.bccRecipients??[],r=e.propsValue.attachments??[],{subject:i,body:a,bodyFormat:c}=e.propsValue,u={subject:i,body:{content:a,contentType:c},toRecipients:t.map(d=>({emailAddress:{address:d}})),ccRecipients:o.map(d=>({emailAddress:{address:d}})),bccRecipients:n.map(d=>({emailAddress:{address:d}})),attachments:r.map(d=>({"@odata.type":"#microsoft.graph.fileAttachment",name:d.fileName||d.file.filename,contentBytes:d.file.base64}))},l=x.createClient(e.auth);try{return await l.api(`${x.mailboxPrefix(e.auth)}/sendMail`).post({message:u,saveToSentItems:"true"}),{success:!0,message:"Email sent successfully.",subject:i,recipients:t}}catch(d){throw _.graphError({error:d,operation:"Sending the Outlook email"})}}});var cE=O({auth:S,name:"outlook_set_message_read_status",classification:"WRITE",displayName:"Mark Message Read / Unread",description:"Marks a message as read or unread.",audience:"ai",aiMetadata:{description:"Sets only the read state of one message, leaving every other property untouched. Use this for the common mark-as-read step; use Update Message when other fields change too, or Batch Update Messages for many messages at once. Idempotent: re-applying the same state changes nothing.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),isRead:g.StaticDropdown({displayName:"Read State",required:!0,defaultValue:"true",options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}})},outputSchema:yt,async run(e){let{messageId:t,isRead:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/messages/${_.encodeGraphId(t)}`).headers(_.textBodyHeaders).patch({isRead:o==="true"})}catch(i){throw _.graphError({error:i,operation:"Updating the read state of the Outlook message"})}}});var uE=O({auth:S,name:"outlook_update_focused_inbox_override",classification:"WRITE",displayName:"Update Focused Inbox Override",description:"Changes the classification of a Focused Inbox override.",audience:"ai",aiMetadata:{description:"Switches an existing Focused Inbox override between the Focused and Other tabs. The classification is the only writable property, and the override ID comes from List Focused Inbox Overrides. Idempotent: applying the same classification again changes nothing.",idempotent:!0},props:{overrideId:g.ShortText({displayName:"Override ID",description:"Override ID from List Focused Inbox Overrides.",required:!0}),classifyAs:g.StaticDropdown({displayName:"Classify As",required:!0,options:{disabled:!1,options:[{label:"Focused",value:"focused"},{label:"Other",value:"other"}]}})},outputSchema:Hu,async run(e){let{overrideId:t,classifyAs:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/inferenceClassification/overrides/${_.encodeGraphId(t)}`).patch({classifyAs:o})}catch(i){throw _.graphError({error:i,operation:"Updating the Focused Inbox override"})}}});var lE=O({auth:S,name:"outlook_update_mail_folder",classification:"WRITE",displayName:"Rename Mail Folder",description:"Renames a mail folder.",audience:"ai",aiMetadata:{description:"Renames a mail folder. The display name is the only writable property of a folder, so use Move Mail Folder to change its parent and Create Mail Folder to add a new one. Idempotent: applying the same name again changes nothing.",idempotent:!0},props:{folderId:g.ShortText({displayName:"Folder ID",description:_.wellKnownFolderHint,required:!0}),displayName:g.ShortText({displayName:"New Folder Name",required:!0})},outputSchema:RA,async run(e){let{folderId:t,displayName:o}=e.propsValue,n=x.createClient(e.auth),r=x.mailboxPrefix(e.auth);try{return await n.api(`${r}/mailFolders/${_.encodeGraphId(t)}`).patch({displayName:o})}catch(i){throw _.graphError({error:i,operation:"Renaming the Outlook mail folder"})}}});var pE=O({auth:S,name:"outlook_update_message",classification:"WRITE",displayName:"Update Message",description:"Updates the writable properties of a message.",audience:"ai",aiMetadata:{description:"Updates one message in place: read state, flag state, importance and categories on any message, plus subject and body on a draft. Fields left empty are not sent, and categories are merged with the ones already on the message instead of replacing them. Use Mark Message Read / Unread for the read flag alone, or Batch Update Messages for many messages at once. Idempotent: re-applying the same values converges on the same state.",idempotent:!0},props:{messageId:g.ShortText({displayName:"Message ID",description:_.messageIdHint,required:!0}),isRead:g.StaticDropdown({displayName:"Read State",description:"Leave unset to keep the current read state.",required:!1,options:{disabled:!1,options:[{label:"Mark as read",value:"true"},{label:"Mark as unread",value:"false"}]}}),flagStatus:g.StaticDropdown({displayName:"Flag State",description:"Leave unset to keep the current flag.",required:!1,options:{disabled:!1,options:[{label:"Flagged",value:"flagged"},{label:"Not flagged",value:"notFlagged"},{label:"Complete",value:"complete"}]}}),importance:g.StaticDropdown({displayName:"Importance",description:"Leave unset to keep the current importance.",required:!1,options:{disabled:!1,options:[{label:"Low",value:"low"},{label:"Normal",value:"normal"},{label:"High",value:"high"}]}}),categoriesToAdd:g.Array({displayName:"Categories to Add",description:"Category names to add, merged with the categories already on the message.",required:!1}),categoriesToRemove:g.Array({displayName:"Categories to Remove",description:"Category names to remove from the message.",required:!1}),subject:g.ShortText({displayName:"Subject",description:"Only writable while the message is still a draft.",required:!1}),body:g.LongText({displayName:"Body",description:"Only writable while the message is still a draft.",required:!1}),bodyFormat:g.StaticDropdown({displayName:"Body Format",description:"Format of the new body. Ignored when no body is supplied.",required:!1,defaultValue:"text",options:{disabled:!1,options:[{label:"HTML",value:"html"},{label:"Text",value:"text"}]}})},outputSchema:yt,async run(e){let{messageId:t,isRead:o,flagStatus:n,importance:r,subject:i,body:a,bodyFormat:c}=e.propsValue,u=e.propsValue.categoriesToAdd??[],l=e.propsValue.categoriesToRemove??[],d=x.createClient(e.auth),h=`${x.mailboxPrefix(e.auth)}/messages/${_.encodeGraphId(t)}`,p={};o!==void 0&&(p.isRead=o==="true"),n!==void 0&&(p.flag={flagStatus:n}),r!==void 0&&(p.importance=r),i!==void 0&&(p.subject=i),a!==void 0&&(p.body={content:a,contentType:c??"text"});let v=u.length>0||l.length>0;if(Object.keys(p).length===0&&!v)throw new Error("Updating the Outlook message failed: no fields were supplied, so there is nothing to change.");try{if(v){let A=(await d.api(`${h}?$select=id,categories`).get())?.categories??[],E=[...new Set([...A,...u])].filter(w=>!l.includes(w));p.categories=E}return await d.api(h).headers(_.textBodyHeaders).patch(p)}catch(P){throw _.graphError({error:P,operation:"Updating the Outlook message"})}}});var Yz=hx({displayName:"Microsoft Outlook",auth:S,minimumSupportedRelease:"0.87.0",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-outlook.png",categories:["PRODUCTIVITY"],authors:["lucaslimasouza","kishanprmr","sanket-a11y"],actions:[iI,YA,oI,XA,JA,rI,lI,tI,nI,eI,QA,XI,FI,iE,VI,YI,sE,EI,aE,nE,oE,MI,kI,OI,SI,pE,cE,eE,II,CI,tE,bI,PI,vI,rE,JI,jI,NI,yI,zI,WI,qI,UI,wI,lE,RI,AI,QI,KI,GI,TI,uE,$I,LI,ZI,HI,zb({auth:S,baseUrl:s(e=>{let t=e.props?.cloud;return xo(t)+"/v1.0/"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[uI,cI,sI]});0&&(module.exports={microsoftOutlook});
|
|
68
68
|
/*! Bundled license information:
|
|
69
69
|
|
|
70
70
|
mime-types/index.js:
|