@activepieces/piece-microsoft-365-planner 0.2.7 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +43 -5
package/src/index.js CHANGED
@@ -1,14 +1,52 @@
1
- "use strict";var sd=Object.create;var qt=Object.defineProperty;var ud=Object.getOwnPropertyDescriptor;var cd=Object.getOwnPropertyNames;var ld=Object.getPrototypeOf,pd=Object.prototype.hasOwnProperty;var i=(e,t)=>qt(e,"name",{value:t,configurable:!0});var dd=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var b=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},po=(e,t)=>{for(var r in t)qt(e,r,{get:t[r],enumerable:!0})},Zi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cd(t))!pd.call(e,o)&&o!==r&&qt(e,o,{get:()=>t[o],enumerable:!(n=ud(t,o))||n.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?sd(ld(e)):{},Zi(t||!e||!e.__esModule?qt(r,"default",{value:e,enumerable:!0}):r,e)),ie=e=>Zi(qt({},"__esModule",{value:!0}),e);var ms=b((fs,qr)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={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"),o=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${a})?$`,"i")};function p(l,f){if(l.indexOf("::")!==l.lastIndexOf("::"))return null;let y=0,h=-1,P=(l.match(u.zoneIndex)||[])[0],T,H;for(P&&(P=P.substring(1),l=l.replace(/%.+$/,""));(h=l.indexOf(":",h+1))>=0;)y++;if(l.substr(0,2)==="::"&&y--,l.substr(-2,2)==="::"&&y--,y>f)return null;for(H=f-y,T=":";H--;)T+="0:";return l=l.replace("::",T),l[0]===":"&&(l=l.slice(1)),l[l.length-1]===":"&&(l=l.slice(0,-1)),f=(function(){let fe=l.split(":"),xe=[];for(let Ce=0;Ce<fe.length;Ce++)xe.push(parseInt(fe[Ce],16));return xe})(),{parts:f,zoneId:P}}i(p,"expandIPv6");function d(l,f,y,h){if(l.length!==f.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let P=0,T;for(;h>0;){if(T=y-h,T<0&&(T=0),l[P]>>T!==f[P]>>T)return!1;h-=y,P+=1}return!0}i(d,"matchCIDR");function g(l){if(o.test(l))return parseInt(l,16);if(l[0]==="0"&&!isNaN(parseInt(l[1],10))){if(n.test(l))return parseInt(l,8);throw new Error(`ipaddr: cannot parse ${l} as octal`)}return parseInt(l,10)}i(g,"parseIntAuto");function x(l,f){for(;l.length<f;)l=`0${l}`;return l}i(x,"padPart");let v={};v.IPv4=(function(){function l(f){if(f.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let y,h;for(y=0;y<f.length;y++)if(h=f[y],!(0<=h&&h<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=f}return i(l,"IPv4"),l.prototype.SpecialRanges={unspecified:[[new l([0,0,0,0]),8]],broadcast:[[new l([255,255,255,255]),32]],multicast:[[new l([224,0,0,0]),4]],linkLocal:[[new l([169,254,0,0]),16]],loopback:[[new l([127,0,0,0]),8]],carrierGradeNat:[[new l([100,64,0,0]),10]],private:[[new l([10,0,0,0]),8],[new l([172,16,0,0]),12],[new l([192,168,0,0]),16]],reserved:[[new l([192,0,0,0]),24],[new l([192,0,2,0]),24],[new l([192,88,99,0]),24],[new l([198,18,0,0]),15],[new l([198,51,100,0]),24],[new l([203,0,113,0]),24],[new l([240,0,0,0]),4]],as112:[[new l([192,175,48,0]),24],[new l([192,31,196,0]),24]],amt:[[new l([192,52,193,0]),24]]},l.prototype.kind=function(){return"ipv4"},l.prototype.match=function(f,y){let h;if(y===void 0&&(h=f,f=h[0],y=h[1]),f.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return d(this.octets,f.octets,8,y)},l.prototype.prefixLengthFromSubnetMask=function(){let f=0,y=!1,h={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},P,T,H;for(P=3;P>=0;P-=1)if(T=this.octets[P],T in h){if(H=h[T],y&&H!==0)return null;H!==8&&(y=!0),f+=H}else return null;return 32-f},l.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},l.prototype.toByteArray=function(){return this.octets.slice(0)},l.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse(`::ffff:${this.toString()}`)},l.prototype.toNormalizedString=function(){return this.toString()},l.prototype.toString=function(){return this.octets.join(".")},l})(),v.IPv4.broadcastAddressFromCIDR=function(l){try{let f=this.parseCIDR(l),y=f[0].toByteArray(),h=this.subnetMaskFromPrefixLength(f[1]).toByteArray(),P=[],T=0;for(;T<4;)P.push(parseInt(y[T],10)|parseInt(h[T],10)^255),T++;return new this(P)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(l){return this.parser(l)!==null},v.IPv4.isValid=function(l){try{return new this(this.parser(l)),!0}catch{return!1}},v.IPv4.isValidCIDR=function(l){try{return this.parseCIDR(l),!0}catch{return!1}},v.IPv4.isValidFourPartDecimal=function(l){return!!(v.IPv4.isValid(l)&&l.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.isValidCIDRFourPartDecimal=function(l){let f=l.match(/^(.+)\/(\d+)$/);return!v.IPv4.isValidCIDR(l)||!f?!1:v.IPv4.isValidFourPartDecimal(f[1])},v.IPv4.networkAddressFromCIDR=function(l){let f,y,h,P,T;try{for(f=this.parseCIDR(l),h=f[0].toByteArray(),T=this.subnetMaskFromPrefixLength(f[1]).toByteArray(),P=[],y=0;y<4;)P.push(parseInt(h[y],10)&parseInt(T[y],10)),y++;return new this(P)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(l){let f=this.parser(l);if(f===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(f)},v.IPv4.parseCIDR=function(l){let f;if(f=l.match(/^(.+)\/(\d+)$/)){let y=parseInt(f[2]);if(y>=0&&y<=32){let h=[this.parse(f[1]),y];return Object.defineProperty(h,"toString",{value:i(function(){return this.join("/")},"value")}),h}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(l){let f,y,h;if(f=l.match(r.fourOctet))return(function(){let P=f.slice(1,6),T=[];for(let H=0;H<P.length;H++)y=P[H],T.push(g(y));return T})();if(f=l.match(r.longValue)){if(h=g(f[1]),h>4294967295||h<0)throw new Error("ipaddr: address outside defined range");return(function(){let P=[],T;for(T=0;T<=24;T+=8)P.push(h>>T&255);return P})().reverse()}else return(f=l.match(r.twoOctet))?(function(){let P=f.slice(1,4),T=[];if(h=g(P[1]),h>16777215||h<0)throw new Error("ipaddr: address outside defined range");return T.push(g(P[0])),T.push(h>>16&255),T.push(h>>8&255),T.push(h&255),T})():(f=l.match(r.threeOctet))?(function(){let P=f.slice(1,5),T=[];if(h=g(P[2]),h>65535||h<0)throw new Error("ipaddr: address outside defined range");return T.push(g(P[0])),T.push(g(P[1])),T.push(h>>8&255),T.push(h&255),T})():null},v.IPv4.subnetMaskFromPrefixLength=function(l){if(l=parseInt(l),l<0||l>32)throw new Error("ipaddr: invalid IPv4 prefix length");let f=[0,0,0,0],y=0,h=Math.floor(l/8);for(;y<h;)f[y]=255,y++;return h<4&&(f[h]=Math.pow(2,l%8)-1<<8-l%8),new this(f)},v.IPv6=(function(){function l(f,y){let h,P;if(f.length===16)for(this.parts=[],h=0;h<=14;h+=2)this.parts.push(f[h]<<8|f[h+1]);else if(f.length===8)this.parts=f;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(h=0;h<this.parts.length;h++)if(P=this.parts[h],!(0<=P&&P<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");y&&(this.zoneId=y)}return i(l,"IPv6"),l.prototype.SpecialRanges={unspecified:[new l([0,0,0,0,0,0,0,0]),128],linkLocal:[new l([65152,0,0,0,0,0,0,0]),10],multicast:[new l([65280,0,0,0,0,0,0,0]),8],loopback:[new l([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new l([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new l([0,0,0,0,0,65535,0,0]),96],discard:[new l([256,0,0,0,0,0,0,0]),64],rfc6145:[new l([0,0,0,0,65535,0,0,0]),96],rfc6052:[new l([100,65435,0,0,0,0,0,0]),96],"6to4":[new l([8194,0,0,0,0,0,0,0]),16],teredo:[new l([8193,0,0,0,0,0,0,0]),32],benchmarking:[new l([8193,2,0,0,0,0,0,0]),48],amt:[new l([8193,3,0,0,0,0,0,0]),32],as112v6:[[new l([8193,4,274,0,0,0,0,0]),48],[new l([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new l([8193,16,0,0,0,0,0,0]),28],orchid2:[new l([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new l([8193,48,0,0,0,0,0,0]),28],reserved:[[new l([8193,0,0,0,0,0,0,0]),23],[new l([8193,3512,0,0,0,0,0,0]),32]]},l.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},l.prototype.kind=function(){return"ipv6"},l.prototype.match=function(f,y){let h;if(y===void 0&&(h=f,f=h[0],y=h[1]),f.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return d(this.parts,f.parts,16,y)},l.prototype.prefixLengthFromSubnetMask=function(){let f=0,y=!1,h={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},P,T;for(let H=7;H>=0;H-=1)if(P=this.parts[H],P in h){if(T=h[P],y&&T!==0)return null;T!==16&&(y=!0),f+=T}else return null;return 128-f},l.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},l.prototype.toByteArray=function(){let f,y=[],h=this.parts;for(let P=0;P<h.length;P++)f=h[P],y.push(f>>8),y.push(f&255);return y},l.prototype.toFixedLengthString=function(){let f=(function(){let h=[];for(let P=0;P<this.parts.length;P++)h.push(x(this.parts[P].toString(16),4));return h}).call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),f+y},l.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let f=this.parts.slice(-2),y=f[0],h=f[1];return new v.IPv4([y>>8,y&255,h>>8,h&255])},l.prototype.toNormalizedString=function(){let f=(function(){let h=[];for(let P=0;P<this.parts.length;P++)h.push(this.parts[P].toString(16));return h}).call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),f+y},l.prototype.toRFC5952String=function(){let f=/((^|:)(0(:|$)){2,})/g,y=this.toNormalizedString(),h=0,P=-1,T;for(;T=f.exec(y);)T[0].length>P&&(h=T.index,P=T[0].length);return P<0?y:`${y.substring(0,h)}::${y.substring(h+P)}`},l.prototype.toString=function(){return this.toRFC5952String()},l})(),v.IPv6.broadcastAddressFromCIDR=function(l){try{let f=this.parseCIDR(l),y=f[0].toByteArray(),h=this.subnetMaskFromPrefixLength(f[1]).toByteArray(),P=[],T=0;for(;T<16;)P.push(parseInt(y[T],10)|parseInt(h[T],10)^255),T++;return new this(P)}catch(f){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${f})`)}},v.IPv6.isIPv6=function(l){return this.parser(l)!==null},v.IPv6.isValid=function(l){if(typeof l=="string"&&l.indexOf(":")===-1)return!1;try{let f=this.parser(l);return new this(f.parts,f.zoneId),!0}catch{return!1}},v.IPv6.isValidCIDR=function(l){if(typeof l=="string"&&l.indexOf(":")===-1)return!1;try{return this.parseCIDR(l),!0}catch{return!1}},v.IPv6.networkAddressFromCIDR=function(l){let f,y,h,P,T;try{for(f=this.parseCIDR(l),h=f[0].toByteArray(),T=this.subnetMaskFromPrefixLength(f[1]).toByteArray(),P=[],y=0;y<16;)P.push(parseInt(h[y],10)&parseInt(T[y],10)),y++;return new this(P)}catch(H){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${H})`)}},v.IPv6.parse=function(l){let f=this.parser(l);if(f.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(f.parts,f.zoneId)},v.IPv6.parseCIDR=function(l){let f,y,h;if((y=l.match(/^(.+)\/(\d+)$/))&&(f=parseInt(y[2]),f>=0&&f<=128))return h=[this.parse(y[1]),f],Object.defineProperty(h,"toString",{value:i(function(){return this.join("/")},"value")}),h;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(l){let f,y,h,P,T,H;if(h=l.match(u.deprecatedTransitional))return this.parser(`::ffff:${h[1]}`);if(u.native.test(l))return p(l,8);if((h=l.match(u.transitional))&&(H=h[6]||"",f=h[1],h[1].endsWith("::")||(f=f.slice(0,-1)),f=p(f+H,6),f.parts)){for(T=[parseInt(h[2]),parseInt(h[3]),parseInt(h[4]),parseInt(h[5])],y=0;y<T.length;y++)if(P=T[y],!(0<=P&&P<=255))return null;return f.parts.push(T[0]<<8|T[1]),f.parts.push(T[2]<<8|T[3]),{parts:f.parts,zoneId:f.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(l){if(l=parseInt(l),l<0||l>128)throw new Error("ipaddr: invalid IPv6 prefix length");let f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=0,h=Math.floor(l/8);for(;y<h;)f[y]=255,y++;return h<16&&(f[h]=Math.pow(2,l%8)-1<<8-l%8),new this(f)},v.fromByteArray=function(l){let f=l.length;if(f===4)return new v.IPv4(l);if(f===16)return new v.IPv6(l);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},v.isValid=function(l){return v.IPv6.isValid(l)||v.IPv4.isValid(l)},v.isValidCIDR=function(l){return v.IPv6.isValidCIDR(l)||v.IPv4.isValidCIDR(l)},v.parse=function(l){if(v.IPv6.isValid(l))return v.IPv6.parse(l);if(v.IPv4.isValid(l))return v.IPv4.parse(l);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},v.parseCIDR=function(l){try{return v.IPv6.parseCIDR(l)}catch{try{return v.IPv4.parseCIDR(l)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},v.process=function(l){let f=this.parse(l);return f.kind()==="ipv6"&&f.isIPv4MappedAddress()?f.toIPv4Address():f},v.subnetMatch=function(l,f,y){let h,P,T,H;y==null&&(y="unicast");for(P in f)if(Object.prototype.hasOwnProperty.call(f,P)){for(T=f[P],T[0]&&!(T[0]instanceof Array)&&(T=[T]),h=0;h<T.length;h++)if(H=T[h],l.kind()===H[0].kind()&&l.match.apply(l,H))return P}return y},typeof qr<"u"&&qr.exports?qr.exports=v:e.ipaddr=v})(fs)});var se={};po(se,{__addDisposableResource:()=>Mu,__assign:()=>Wr,__asyncDelegator:()=>Ou,__asyncGenerator:()=>wu,__asyncValues:()=>zu,__await:()=>wt,__awaiter:()=>Tu,__classPrivateFieldGet:()=>Cu,__classPrivateFieldIn:()=>Uu,__classPrivateFieldSet:()=>Nu,__createBinding:()=>Jr,__decorate:()=>hu,__disposeResources:()=>Lu,__esDecorate:()=>vu,__exportStar:()=>Iu,__extends:()=>mu,__generator:()=>Eu,__importDefault:()=>Du,__importStar:()=>ku,__makeTemplateObject:()=>Ru,__metadata:()=>bu,__param:()=>yu,__propKey:()=>Pu,__read:()=>Yo,__rest:()=>gu,__rewriteRelativeImportExtension:()=>ju,__runInitializers:()=>_u,__setFunctionName:()=>xu,__spread:()=>Au,__spreadArray:()=>$u,__spreadArrays:()=>Su,__values:()=>Kr,default:()=>Zm});function mu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jo(e,t);function r(){this.constructor=e}i(r,"__"),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function gu(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function hu(e,t,r,n){var o=arguments.length,a=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(s=e[u])&&(a=(o<3?s(a):o>3?s(t,r,a):s(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function yu(e,t){return function(r,n){t(r,n,e)}}function vu(e,t,r,n,o,a){function s(P){if(P!==void 0&&typeof P!="function")throw new TypeError("Function expected");return P}i(s,"accept");for(var u=n.kind,p=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,g=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),x,v=!1,l=r.length-1;l>=0;l--){var f={};for(var y in n)f[y]=y==="access"?{}:n[y];for(var y in n.access)f.access[y]=n.access[y];f.addInitializer=function(P){if(v)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(P||null))};var h=(0,r[l])(u==="accessor"?{get:g.get,set:g.set}:g[p],f);if(u==="accessor"){if(h===void 0)continue;if(h===null||typeof h!="object")throw new TypeError("Object expected");(x=s(h.get))&&(g.get=x),(x=s(h.set))&&(g.set=x),(x=s(h.init))&&o.unshift(x)}else(x=s(h))&&(u==="field"?o.unshift(x):g[p]=x)}d&&Object.defineProperty(d,n.name,g),v=!0}function _u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function Pu(e){return typeof e=="symbol"?e:"".concat(e)}function xu(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function bu(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Tu(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(g){try{d(n.next(g))}catch(x){s(x)}}i(u,"fulfilled");function p(g){try{d(n.throw(g))}catch(x){s(x)}}i(p,"rejected");function d(g){g.done?a(g.value):o(g.value).then(u,p)}i(d,"step"),d((n=n.apply(e,t||[])).next())})}function Eu(e,t){var r={label:0,sent:i(function(){if(a[0]&1)throw a[1];return a[1]},"sent"),trys:[],ops:[]},n,o,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=u(0),s.throw=u(1),s.return=u(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(g){return p([d,g])}}function p(d){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(r=0)),r;)try{if(n=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,o=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){r.label=d[1];break}if(d[0]===6&&r.label<a[1]){r.label=a[1],a=d;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(d);break}a[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(g){d=[6,g],o=0}finally{n=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Iu(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Jr(t,e,r)}function Kr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:i(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 Yo(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return a}function Au(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Yo(arguments[t]));return e}function Su(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],s=0,u=a.length;s<u;s++,o++)n[o]=a[s];return n}function $u(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function wt(e){return this instanceof wt?(this.v=e,this):new wt(e)}function wu(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(l){return function(f){return Promise.resolve(f).then(l,x)}}function u(l,f){n[l]&&(o[l]=function(y){return new Promise(function(h,P){a.push([l,y,h,P])>1||p(l,y)})},f&&(o[l]=f(o[l])))}function p(l,f){try{d(n[l](f))}catch(y){v(a[0][3],y)}}function d(l){l.value instanceof wt?Promise.resolve(l.value.v).then(g,x):v(a[0][2],l)}function g(l){p("next",l)}function x(l){p("throw",l)}function v(l,f){l(f),a.shift(),a.length&&p(a[0][0],a[0][1])}}function Ou(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(s){return(r=!r)?{value:wt(e[o](s)),done:!1}:a?a(s):s}:a}}function zu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Kr=="function"?Kr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(u,p){s=e[a](s),o(u,p,s.done,s.value)})}}function o(a,s,u,p){Promise.resolve(p).then(function(d){a({value:d,done:u})},s)}}function Ru(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ku(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Xo(e),n=0;n<r.length;n++)r[n]!=="default"&&Jr(t,e,r[n]);return Hm(t,e),t}function Du(e){return e&&e.__esModule?e:{default:e}}function Cu(e,t,r,n){if(r==="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 r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Nu(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function Uu(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 Mu(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){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],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=i(function(){try{o.call(this)}catch(a){return Promise.reject(a)}},"dispose")),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function Lu(e){function t(a){e.error=e.hasError?new Vm(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}i(t,"fail");var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(o,function(s){return t(s),o()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i(o,"next"),o()}function ju(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,a,s){return n?t?".jsx":".js":o&&(!a||!s)?r:o+a+"."+s.toLowerCase()+"js"}):e}var Jo,Wr,Jr,Hm,Xo,Vm,Zm,ue=dd(()=>{Jo=i(function(e,t){return Jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Jo(e,t)},"extendStatics");i(mu,"__extends");Wr=i(function(){return Wr=Object.assign||i(function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},"__assign"),Wr.apply(this,arguments)},"__assign");i(gu,"__rest");i(hu,"__decorate");i(yu,"__param");i(vu,"__esDecorate");i(_u,"__runInitializers");i(Pu,"__propKey");i(xu,"__setFunctionName");i(bu,"__metadata");i(Tu,"__awaiter");i(Eu,"__generator");Jr=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});i(Iu,"__exportStar");i(Kr,"__values");i(Yo,"__read");i(Au,"__spread");i(Su,"__spreadArrays");i($u,"__spreadArray");i(wt,"__await");i(wu,"__asyncGenerator");i(Ou,"__asyncDelegator");i(zu,"__asyncValues");i(Ru,"__makeTemplateObject");Hm=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Xo=i(function(e){return Xo=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Xo(e)},"ownKeys");i(ku,"__importStar");i(Du,"__importDefault");i(Cu,"__classPrivateFieldGet");i(Nu,"__classPrivateFieldSet");i(Uu,"__classPrivateFieldIn");i(Mu,"__addDisposableResource");Vm=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};i(Lu,"__disposeResources");i(ju,"__rewriteRelativeImportExtension");Zm={__extends:mu,__assign:Wr,__rest:gu,__decorate:hu,__param:yu,__esDecorate:vu,__runInitializers:_u,__propKey:Pu,__setFunctionName:xu,__metadata:bu,__awaiter:Tu,__generator:Eu,__createBinding:Jr,__exportStar:Iu,__values:Kr,__read:Yo,__spread:Au,__spreadArrays:Su,__spreadArray:$u,__await:wt,__asyncGenerator:wu,__asyncDelegator:Ou,__asyncValues:zu,__makeTemplateObject:Ru,__importStar:ku,__importDefault:Du,__classPrivateFieldGet:Cu,__classPrivateFieldSet:Nu,__classPrivateFieldIn:Uu,__addDisposableResource:Mu,__disposeResources:Lu,__rewriteRelativeImportExtension:ju}});var gr=b(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.RequestMethod=void 0;var Fu;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(Fu||(Xr.RequestMethod=Fu={}))});var Bu=b(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.BatchRequestContent=void 0;var Ot=(ue(),ie(se)),Qo=gr(),qm=(function(){function e(t){if(this.requests=new Map,typeof t<"u"){var r=e.requestLimit;if(t.length>r){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(r));throw n.name="Limit Exceeded Error",n}for(var o=0,a=t;o<a.length;o++){var s=a[o];this.addRequest(s)}}}return i(e,"BatchRequestContent"),e.validateDependencies=function(t){var r=i(function(s){for(var u=s.entries(),p=u.next();!p.done;){var d=p.value[1];if(d.dependsOn!==void 0&&d.dependsOn.length>0)return!1;p=u.next()}return!0},"isParallel"),n=i(function(s){var u=s.entries(),p=u.next(),d=p.value[1];if(d.dependsOn!==void 0&&d.dependsOn.length>0)return!1;var g=p;for(p=u.next();!p.done;){var x=p.value[1];if(x.dependsOn===void 0||x.dependsOn.length!==1||x.dependsOn[0]!==g.value[1].id)return!1;g=p,p=u.next()}return!0},"isSerial"),o=i(function(s){var u=s.entries(),p=u.next(),d=p.value[1],g;if(d.dependsOn===void 0||d.dependsOn.length===0)g=d.id;else if(d.dependsOn.length===1){var x=d.dependsOn[0];if(x!==d.id&&s.has(x))g=x;else return!1}else return!1;for(p=u.next();!p.done;){var v=p.value[1];if((v.dependsOn===void 0||v.dependsOn.length===0)&&g!==v.id||v.dependsOn!==void 0&&v.dependsOn.length!==0&&(v.dependsOn.length===1&&(v.id===g||v.dependsOn[0]!==g)||v.dependsOn.length>1))return!1;p=u.next()}return!0},"isSame");if(t.size===0){var a=new Error("Empty requests map, Please provide at least one request.");throw a.name="Empty Requests Error",a}return r(t)||n(t)||o(t)},e.getRequestData=function(t){return Ot.__awaiter(this,void 0,void 0,function(){var r,n,o,a;return Ot.__generator(this,function(s){switch(s.label){case 0:return r={url:""},n=new RegExp("^https?://"),r.url=n.test(t.url)?"/"+t.url.split(/.*?\/\/.*?\//)[1]:t.url,r.method=t.method,o={},t.headers.forEach(function(u,p){o[p]=u}),Object.keys(o).length&&(r.headers=o),t.method===Qo.RequestMethod.PATCH||t.method===Qo.RequestMethod.POST||t.method===Qo.RequestMethod.PUT?(a=r,[4,e.getRequestBody(t)]):[3,2];case 1:a.body=s.sent(),s.label=2;case 2:return[2,r]}})})},e.getRequestBody=function(t){return Ot.__awaiter(this,void 0,void 0,function(){var r,n,o,a,s,u,p,d;return Ot.__generator(this,function(g){switch(g.label){case 0:r=!1,g.label=1;case 1:return g.trys.push([1,3,,4]),o=t.clone(),[4,o.json()];case 2:return n=g.sent(),r=!0,[3,4];case 3:return a=g.sent(),[3,4];case 4:if(r)return[3,12];g.label=5;case 5:return g.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return s=g.sent(),u=new FileReader,[4,new Promise(function(x){u.addEventListener("load",function(){var v=u.result,l=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),f=l.exec(v);x(f[4])},!1),u.readAsDataURL(s)})];case 7:return n=g.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:p=g.sent(),n=p.toString("base64"),g.label=10;case 10:return r=!0,[3,12];case 11:return d=g.sent(),[3,12];case 12:return[2,n]}})})},e.prototype.addRequest=function(t){var r=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===r){var n=new Error("Maximum requests limit exceeded, Max allowed number of requests are ".concat(r));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 r=this.requests.delete(t),n=this.requests.entries(),o=n.next();!o.done;){var a=o.value[1].dependsOn;if(typeof a<"u"){var s=a.indexOf(t);s!==-1&&a.splice(s,1),a.length===0&&delete o.value[1].dependsOn}o=n.next()}return r},e.prototype.getContent=function(){return Ot.__awaiter(this,void 0,void 0,function(){var t,r,n,o,u,u,a,s,u;return Ot.__generator(this,function(p){switch(p.label){case 0:if(t=[],r={requests:t},n=this.requests.entries(),o=n.next(),o.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 eE=Object.create;var Sn=Object.defineProperty;var tE=Object.getOwnPropertyDescriptor;var rE=Object.getOwnPropertyNames;var nE=Object.getPrototypeOf,oE=Object.prototype.hasOwnProperty;var s=(e,t)=>Sn(e,"name",{value:t,configurable:!0});var iE=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(o){throw n=[o],o}};var I=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Ke=(e,t)=>{for(var n in t)Sn(e,n,{get:t[n],enumerable:!0})},og=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of rE(t))!oE.call(e,r)&&r!==n&&Sn(e,r,{get:()=>t[r],enumerable:!(o=tE(t,r))||o.enumerable});return e};var ft=(e,t,n)=>(n=e!=null?eE(nE(e)):{},og(t||!e||!e.__esModule?Sn(n,"default",{value:e,enumerable:!0}):n,e)),he=e=>og(Sn({},"__esModule",{value:!0}),e);var rv=I((tv,gu)=>{(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,g){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let _=0,b=-1,E=(p.match(u.zoneIndex)||[])[0],T,L;for(E&&(E=E.substring(1),p=p.replace(/%.+$/,""));(b=p.indexOf(":",b+1))>=0;)_++;if(p.substr(0,2)==="::"&&_--,p.substr(-2,2)==="::"&&_--,_>g)return null;for(L=g-_,T=":";L--;)T+="0:";return p=p.replace("::",T),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),g=(function(){let ne=p.split(":"),pe=[];for(let Be=0;Be<ne.length;Be++)pe.push(parseInt(ne[Be],16));return pe})(),{parts:g,zoneId:E}}s(c,"expandIPv6");function l(p,g,_,b){if(p.length!==g.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let E=0,T;for(;b>0;){if(T=_-b,T<0&&(T=0),p[E]>>T!==g[E]>>T)return!1;b-=_,E+=1}return!0}s(l,"matchCIDR");function f(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(f,"parseIntAuto");function y(p,g){for(;p.length<g;)p=`0${p}`;return p}s(y,"padPart");let h={};h.IPv4=(function(){function p(g){if(g.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,b;for(_=0;_<g.length;_++)if(b=g[_],!(0<=b&&b<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=g}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(g,_){let b;if(_===void 0&&(b=g,g=b[0],_=b[1]),g.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,g.octets,8,_)},p.prototype.prefixLengthFromSubnetMask=function(){let g=0,_=!1,b={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},E,T,L;for(E=3;E>=0;E-=1)if(T=this.octets[E],T in b){if(L=b[T],_&&L!==0)return null;L!==8&&(_=!0),g+=L}else return null;return 32-g},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 g=this.parseCIDR(p),_=g[0].toByteArray(),b=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],T=0;for(;T<4;)E.push(parseInt(_[T],10)|parseInt(b[T],10)^255),T++;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 g=p.match(/^(.+)\/(\d+)$/);return!h.IPv4.isValidCIDR(p)||!g?!1:h.IPv4.isValidFourPartDecimal(g[1])},h.IPv4.networkAddressFromCIDR=function(p){let g,_,b,E,T;try{for(g=this.parseCIDR(p),b=g[0].toByteArray(),T=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],_=0;_<4;)E.push(parseInt(b[_],10)&parseInt(T[_],10)),_++;return new this(E)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(p){let g=this.parser(p);if(g===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(g)},h.IPv4.parseCIDR=function(p){let g;if(g=p.match(/^(.+)\/(\d+)$/)){let _=parseInt(g[2]);if(_>=0&&_<=32){let b=[this.parse(g[1]),_];return Object.defineProperty(b,"toString",{value:s(function(){return this.join("/")},"value")}),b}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(p){let g,_,b;if(g=p.match(n.fourOctet))return(function(){let E=g.slice(1,6),T=[];for(let L=0;L<E.length;L++)_=E[L],T.push(f(_));return T})();if(g=p.match(n.longValue)){if(b=f(g[1]),b>4294967295||b<0)throw new Error("ipaddr: address outside defined range");return(function(){let E=[],T;for(T=0;T<=24;T+=8)E.push(b>>T&255);return E})().reverse()}else return(g=p.match(n.twoOctet))?(function(){let E=g.slice(1,4),T=[];if(b=f(E[1]),b>16777215||b<0)throw new Error("ipaddr: address outside defined range");return T.push(f(E[0])),T.push(b>>16&255),T.push(b>>8&255),T.push(b&255),T})():(g=p.match(n.threeOctet))?(function(){let E=g.slice(1,5),T=[];if(b=f(E[2]),b>65535||b<0)throw new Error("ipaddr: address outside defined range");return T.push(f(E[0])),T.push(f(E[1])),T.push(b>>8&255),T.push(b&255),T})():null},h.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let g=[0,0,0,0],_=0,b=Math.floor(p/8);for(;_<b;)g[_]=255,_++;return b<4&&(g[b]=Math.pow(2,p%8)-1<<8-p%8),new this(g)},h.IPv6=(function(){function p(g,_){let b,E;if(g.length===16)for(this.parts=[],b=0;b<=14;b+=2)this.parts.push(g[b]<<8|g[b+1]);else if(g.length===8)this.parts=g;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(b=0;b<this.parts.length;b++)if(E=this.parts[b],!(0<=E&&E<=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(g,_){let b;if(_===void 0&&(b=g,g=b[0],_=b[1]),g.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,g.parts,16,_)},p.prototype.prefixLengthFromSubnetMask=function(){let g=0,_=!1,b={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,T;for(let L=7;L>=0;L-=1)if(E=this.parts[L],E in b){if(T=b[E],_&&T!==0)return null;T!==16&&(_=!0),g+=T}else return null;return 128-g},p.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let g,_=[],b=this.parts;for(let E=0;E<b.length;E++)g=b[E],_.push(g>>8),_.push(g&255);return _},p.prototype.toFixedLengthString=function(){let g=(function(){let b=[];for(let E=0;E<this.parts.length;E++)b.push(y(this.parts[E].toString(16),4));return b}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),g+_},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let g=this.parts.slice(-2),_=g[0],b=g[1];return new h.IPv4([_>>8,_&255,b>>8,b&255])},p.prototype.toNormalizedString=function(){let g=(function(){let b=[];for(let E=0;E<this.parts.length;E++)b.push(this.parts[E].toString(16));return b}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),g+_},p.prototype.toRFC5952String=function(){let g=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),b=0,E=-1,T;for(;T=g.exec(_);)T[0].length>E&&(b=T.index,E=T[0].length);return E<0?_:`${_.substring(0,b)}::${_.substring(b+E)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),h.IPv6.broadcastAddressFromCIDR=function(p){try{let g=this.parseCIDR(p),_=g[0].toByteArray(),b=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],T=0;for(;T<16;)E.push(parseInt(_[T],10)|parseInt(b[T],10)^255),T++;return new this(E)}catch(g){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${g})`)}},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 g=this.parser(p);return new this(g.parts,g.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 g,_,b,E,T;try{for(g=this.parseCIDR(p),b=g[0].toByteArray(),T=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),E=[],_=0;_<16;)E.push(parseInt(b[_],10)&parseInt(T[_],10)),_++;return new this(E)}catch(L){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${L})`)}},h.IPv6.parse=function(p){let g=this.parser(p);if(g.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(g.parts,g.zoneId)},h.IPv6.parseCIDR=function(p){let g,_,b;if((_=p.match(/^(.+)\/(\d+)$/))&&(g=parseInt(_[2]),g>=0&&g<=128))return b=[this.parse(_[1]),g],Object.defineProperty(b,"toString",{value:s(function(){return this.join("/")},"value")}),b;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(p){let g,_,b,E,T,L;if(b=p.match(u.deprecatedTransitional))return this.parser(`::ffff:${b[1]}`);if(u.native.test(p))return c(p,8);if((b=p.match(u.transitional))&&(L=b[6]||"",g=b[1],b[1].endsWith("::")||(g=g.slice(0,-1)),g=c(g+L,6),g.parts)){for(T=[parseInt(b[2]),parseInt(b[3]),parseInt(b[4]),parseInt(b[5])],_=0;_<T.length;_++)if(E=T[_],!(0<=E&&E<=255))return null;return g.parts.push(T[0]<<8|T[1]),g.parts.push(T[2]<<8|T[3]),{parts:g.parts,zoneId:g.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 g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,b=Math.floor(p/8);for(;_<b;)g[_]=255,_++;return b<16&&(g[b]=Math.pow(2,p%8)-1<<8-p%8),new this(g)},h.fromByteArray=function(p){let g=p.length;if(g===4)return new h.IPv4(p);if(g===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 g=this.parse(p);return g.kind()==="ipv6"&&g.isIPv4MappedAddress()?g.toIPv4Address():g},h.subnetMatch=function(p,g,_){let b,E,T,L;_==null&&(_="unicast");for(E in g)if(Object.prototype.hasOwnProperty.call(g,E)){for(T=g[E],T[0]&&!(T[0]instanceof Array)&&(T=[T]),b=0;b<T.length;b++)if(L=T[b],p.kind()===L[0].kind()&&p.match.apply(p,L))return E}return _},typeof gu<"u"&&gu.exports?gu.exports=h:e.ipaddr=h})(tv)});var Pe={};Ke(Pe,{__addDisposableResource:()=>R_,__assign:()=>yu,__asyncDelegator:()=>E_,__asyncGenerator:()=>b_,__asyncValues:()=>T_,__await:()=>cn,__awaiter:()=>h_,__classPrivateFieldGet:()=>$_,__classPrivateFieldIn:()=>w_,__classPrivateFieldSet:()=>O_,__createBinding:()=>_u,__decorate:()=>c_,__disposeResources:()=>z_,__esDecorate:()=>p_,__exportStar:()=>v_,__extends:()=>s_,__generator:()=>y_,__importDefault:()=>S_,__importStar:()=>I_,__makeTemplateObject:()=>A_,__metadata:()=>g_,__param:()=>l_,__propKey:()=>f_,__read:()=>pm,__rest:()=>u_,__rewriteRelativeImportExtension:()=>k_,__runInitializers:()=>d_,__setFunctionName:()=>m_,__spread:()=>__,__spreadArray:()=>x_,__spreadArrays:()=>P_,__values:()=>vu,default:()=>WS});function s_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cm(e,t);function n(){this.constructor=e}s(n,"__"),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function u_(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 c_(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 l_(e,t){return function(n,o){t(n,o,e)}}function p_(e,t,n,o,r,i){function a(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}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,f=t||(l?Object.getOwnPropertyDescriptor(l,o.name):{}),y,h=!1,p=n.length-1;p>=0;p--){var g={};for(var _ in o)g[_]=_==="access"?{}:o[_];for(var _ in o.access)g.access[_]=o.access[_];g.addInitializer=function(E){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(E||null))};var b=(0,n[p])(u==="accessor"?{get:f.get,set:f.set}:f[c],g);if(u==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(y=a(b.get))&&(f.get=y),(y=a(b.set))&&(f.set=y),(y=a(b.init))&&r.unshift(y)}else(y=a(b))&&(u==="field"?r.unshift(y):f[c]=y)}l&&Object.defineProperty(l,o.name,f),h=!0}function d_(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 f_(e){return typeof e=="symbol"?e:"".concat(e)}function m_(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 g_(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function h_(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(f){try{l(o.next(f))}catch(y){a(y)}}s(u,"fulfilled");function c(f){try{l(o.throw(f))}catch(y){a(y)}}s(c,"rejected");function l(f){f.done?i(f.value):r(f.value).then(u,c)}s(l,"step"),l((o=o.apply(e,t||[])).next())})}function y_(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(f){return c([l,f])}}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(f){l=[6,f],r=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function v_(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_u(t,e,n)}function vu(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 pm(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 __(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(pm(arguments[t]));return e}function P_(){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 x_(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 cn(e){return this instanceof cn?(this.v=e,this):new cn(e)}function b_(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(g){return Promise.resolve(g).then(p,y)}}function u(p,g){o[p]&&(r[p]=function(_){return new Promise(function(b,E){i.push([p,_,b,E])>1||c(p,_)})},g&&(r[p]=g(r[p])))}function c(p,g){try{l(o[p](g))}catch(_){h(i[0][3],_)}}function l(p){p.value instanceof cn?Promise.resolve(p.value.v).then(f,y):h(i[0][2],p)}function f(p){c("next",p)}function y(p){c("throw",p)}function h(p,g){p(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function E_(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:cn(e[r](a)),done:!1}:i?i(a):a}:i}}function T_(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 vu=="function"?vu(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 A_(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I_(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=lm(e),o=0;o<n.length;o++)n[o]!=="default"&&_u(t,e,n[o]);return qS(t,e),t}function S_(e){return e&&e.__esModule?e:{default:e}}function $_(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 O_(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 w_(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 R_(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 z_(e){function t(i){e.error=e.hasError?new GS(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 k_(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 cm,yu,_u,qS,lm,GS,WS,xe=iE(()=>{cm=s(function(e,t){return cm=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])},cm(e,t)},"extendStatics");s(s_,"__extends");yu=s(function(){return yu=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"),yu.apply(this,arguments)},"__assign");s(u_,"__rest");s(c_,"__decorate");s(l_,"__param");s(p_,"__esDecorate");s(d_,"__runInitializers");s(f_,"__propKey");s(m_,"__setFunctionName");s(g_,"__metadata");s(h_,"__awaiter");s(y_,"__generator");_u=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(v_,"__exportStar");s(vu,"__values");s(pm,"__read");s(__,"__spread");s(P_,"__spreadArrays");s(x_,"__spreadArray");s(cn,"__await");s(b_,"__asyncGenerator");s(E_,"__asyncDelegator");s(T_,"__asyncValues");s(A_,"__makeTemplateObject");qS=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},lm=s(function(e){return lm=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},lm(e)},"ownKeys");s(I_,"__importStar");s(S_,"__importDefault");s($_,"__classPrivateFieldGet");s(O_,"__classPrivateFieldSet");s(w_,"__classPrivateFieldIn");s(R_,"__addDisposableResource");GS=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(z_,"__disposeResources");s(k_,"__rewriteRelativeImportExtension");WS={__extends:s_,__assign:yu,__rest:u_,__decorate:c_,__param:l_,__esDecorate:p_,__runInitializers:d_,__propKey:f_,__setFunctionName:m_,__metadata:g_,__awaiter:h_,__generator:y_,__createBinding:_u,__exportStar:v_,__values:vu,__read:pm,__spread:__,__spreadArrays:P_,__spreadArray:x_,__await:cn,__asyncGenerator:b_,__asyncDelegator:E_,__asyncValues:T_,__makeTemplateObject:A_,__importStar:I_,__importDefault:S_,__classPrivateFieldGet:$_,__classPrivateFieldSet:O_,__classPrivateFieldIn:w_,__addDisposableResource:R_,__disposeResources:z_,__rewriteRelativeImportExtension:k_}});var wi=I(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.RequestMethod=void 0;var C_;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(C_||(Pu.RequestMethod=C_={}))});var D_=I(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.BatchRequestContent=void 0;var ln=(xe(),he(Pe)),dm=wi(),JS=(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 f=c;for(c=u.next();!c.done;){var y=c.value[1];if(y.dependsOn===void 0||y.dependsOn.length!==1||y.dependsOn[0]!==f.value[1].id)return!1;f=c,c=u.next()}return!0},"isSerial"),r=s(function(a){var u=a.entries(),c=u.next(),l=c.value[1],f;if(l.dependsOn===void 0||l.dependsOn.length===0)f=l.id;else if(l.dependsOn.length===1){var y=l.dependsOn[0];if(y!==l.id&&a.has(y))f=y;else return!1}else return!1;for(c=u.next();!c.done;){var h=c.value[1];if((h.dependsOn===void 0||h.dependsOn.length===0)&&f!==h.id||h.dependsOn!==void 0&&h.dependsOn.length!==0&&(h.dependsOn.length===1&&(h.id===f||h.dependsOn[0]!==f)||h.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 ln.__awaiter(this,void 0,void 0,function(){var n,o,r,i;return ln.__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===dm.RequestMethod.PATCH||t.method===dm.RequestMethod.POST||t.method===dm.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 ln.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c,l;return ln.__generator(this,function(f){switch(f.label){case 0:n=!1,f.label=1;case 1:return f.trys.push([1,3,,4]),r=t.clone(),[4,r.json()];case 2:return o=f.sent(),n=!0,[3,4];case 3:return i=f.sent(),[3,4];case 4:if(n)return[3,12];f.label=5;case 5:return f.trys.push([5,11,,12]),typeof Blob<"u"?[4,t.blob()]:[3,8];case 6:return a=f.sent(),u=new FileReader,[4,new Promise(function(y){u.addEventListener("load",function(){var h=u.result,p=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$"),g=p.exec(h);y(g[4])},!1),u.readAsDataURL(a)})];case 7:return o=f.sent(),[3,10];case 8:return typeof Buffer<"u"?[4,t.buffer()]:[3,10];case 9:c=f.sent(),o=c.toString("base64"),f.label=10;case 10:return n=!0,[3,12];case 11:return l=f.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 ln.__awaiter(this,void 0,void 0,function(){var t,n,o,r,u,u,i,a,u;return ln.__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:
2
2
  1. Parallel - no individual request states a dependency in the dependsOn property.
3
3
  2. Serial - all individual requests depend on the previous individual request.
4
- 3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`),u.name="Invalid Dependency",u;p.label=1;case 1:return o.done?[3,3]:(a=o.value[1],[4,e.getRequestData(a.request)]);case 2:if(s=p.sent(),s.body!==void 0&&(s.headers===void 0||s.headers["content-type"]===void 0))throw u=new Error("Content-type header is not mentioned for request #".concat(a.id,", For request having body, Content-type header should be mentioned")),u.name="Invalid Content-type header",u;return s.id=a.id,a.dependsOn!==void 0&&a.dependsOn.length>0&&(s.dependsOn=a.dependsOn),t.push(s),o=n.next(),[3,1];case 3:return r.requests=t,[2,r]}})})},e.prototype.addDependency=function(t,r){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 r<"u"&&!this.requests.has(r)){var n=new Error("Dependency ".concat(r," does not exists, Please check the id"));throw n.name="Invalid Dependency",n}if(typeof r<"u"){var o=this.requests.get(t);if(o.dependsOn===void 0&&(o.dependsOn=[]),o.dependsOn.indexOf(r)!==-1){var n=new Error("Dependency ".concat(r," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}o.dependsOn.push(r)}else{for(var a=this.requests.entries(),s=void 0,u=a.next();!u.done&&u.value[1].id!==t;)s=u,u=a.next();if(typeof s<"u"){var p=s.value[0];if(u.value[1].dependsOn===void 0&&(u.value[1].dependsOn=[]),u.value[1].dependsOn.indexOf(p)!==-1){var n=new Error("Dependency ".concat(p," is already added for the request ").concat(t));throw n.name="Duplicate Dependency",n}u.value[1].dependsOn.push(p)}else{var n=new Error("Can't add dependency ".concat(r,", There is only a dependent request in the batch"));throw n.name="Invalid Dependency Addition",n}}},e.prototype.removeDependency=function(t,r){var n=this.requests.get(t);if(typeof n>"u"||n.dependsOn===void 0||n.dependsOn.length===0)return!1;if(typeof r<"u"){var o=n.dependsOn.indexOf(r);return o===-1?!1:(n.dependsOn.splice(o,1),!0)}else return delete n.dependsOn,!0},e.requestLimit=20,e})();Yr.BatchRequestContent=qm});var Hu=b(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.BatchResponseContent=void 0;var Gm=(ue(),ie(se)),Wm=(function(){function e(t){this.responses=new Map,this.update(t)}return i(e,"BatchResponseContent"),e.prototype.createResponseObject=function(t){var r=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 o=JSON.stringify(r);return new Response(o,n)}return new Response(r,n)},e.prototype.update=function(t){this.nextLink=t["@odata.nextLink"];for(var r=t.responses,n=0,o=r.length;n<o;n++)this.responses.set(r[n].id,this.createResponseObject(r[n]))},e.prototype.getResponseById=function(t){return this.responses.get(t)},e.prototype.getResponses=function(){return this.responses},e.prototype.getResponsesIterator=function(){var t,r;return Gm.__generator(this,function(n){switch(n.label){case 0:t=this.responses.entries(),r=t.next(),n.label=1;case 1:return r.done?[3,3]:[4,r.value];case 2:return n.sent(),r=t.next(),[3,1];case 3:return[2]}})},e})();Qr.BatchResponseContent=Wm});var ei=b(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.GRAPH_URLS=ot.GRAPH_BASE_URL=ot.GRAPH_API_VERSION=void 0;ot.GRAPH_API_VERSION="v1.0";ot.GRAPH_BASE_URL="https://graph.microsoft.com/";ot.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 Ge=b(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.GraphClientError=void 0;var Km=(ue(),ie(se)),Jm=(function(e){Km.__extends(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return i(t,"GraphClientError"),t.setGraphClientError=function(r){var n;return r instanceof Error?n=r:(n=new t,n.customError=r),n},t})(Error);en.GraphClientError=Jm});var tn=b(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.isCustomHost=ze.isGraphURL=ze.serializeContent=ze.urlJoin=ze.oDataQueryNames=void 0;var Xm=ei(),Ym=Ge();ze.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var Qm=i(function(e){var t=i(function(a){return a.replace(/\/+$/,"")},"removePostSlash"),r=i(function(a){return a.replace(/^\/+/,"")},"removePreSlash"),n=i(function(a,s){return[t(a),r(s)].join("/")},"joiner"),o=Array.prototype.slice.call(e);return o.reduce(n)},"urlJoin");ze.urlJoin=Qm;var eg=i(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");ze.serializeContent=eg;var tg=i(function(e){return Vu(e)},"isGraphURL");ze.isGraphURL=tg;var rg=i(function(e,t){return t.forEach(function(r){return ng(r)}),Vu(e,t)},"isCustomHost");ze.isCustomHost=rg;var Vu=i(function(e,t){if(t===void 0&&(t=Xm.GRAPH_URLS),e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");var r=e.indexOf(":"),n=e.indexOf("/"),o="";if(n!==-1)return r!==-1&&r<n?(o=e.substring(0,r),t.has(o)):(o=e.substring(0,n),t.has(o))}return!1},"isValidEndpoint"),ng=i(function(e){if(e.indexOf("/")!==-1)throw new Ym.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 it=b(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.MiddlewareControl=void 0;var og=(function(){function e(t){t===void 0&&(t=[]),this.middlewareOptions=new Map;for(var r=0,n=t;r<n.length;r++){var o=n[r],a=o.constructor;this.middlewareOptions.set(a,o)}}return i(e,"MiddlewareControl"),e.prototype.getMiddlewareOptions=function(t){return this.middlewareOptions.get(t)},e.prototype.setMiddlewareOptions=function(t,r){this.middlewareOptions.set(t,r)},e})();rn.MiddlewareControl=og});var zt=b(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.cloneRequestWithNewUrl=Re.appendRequestHeader=Re.setRequestHeader=Re.getRequestHeader=Re.generateUUID=void 0;var Zu=(ue(),ie(se)),ig=i(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");Re.generateUUID=ig;var ag=i(function(e,t,r){var n=null;if(typeof Request<"u"&&e instanceof Request)n=e.headers.get(r);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)n=t.headers.get(r);else if(t.headers instanceof Array){for(var o=t.headers,a=0,s=o.length;a<s;a++)if(o[a][0]===r){n=o[a][1];break}}else t.headers[r]!==void 0&&(n=t.headers[r]);return n},"getRequestHeader");Re.getRequestHeader=ag;var sg=i(function(e,t,r,n){var o,a;if(typeof Request<"u"&&e instanceof Request)e.headers.set(r,n);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers((o={},o[r]=n,o));else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(r,n);else if(t.headers instanceof Array){for(var s=0,u=t.headers.length;s<u;s++){var p=t.headers[s];if(p[0]===r){p[1]=n;break}}s===u&&t.headers.push([r,n])}else Object.assign(t.headers,(a={},a[r]=n,a))},"setRequestHeader");Re.setRequestHeader=sg;var ug=i(function(e,t,r,n){var o,a;typeof Request<"u"&&e instanceof Request?e.headers.append(r,n):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers((o={},o[r]=n,o)):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(r,n):t.headers instanceof Array?t.headers.push([r,n]):t.headers===void 0?t.headers=(a={},a[r]=n,a):t.headers[r]===void 0?t.headers[r]=n:t.headers[r]+=", ".concat(n))},"appendRequestHeader");Re.appendRequestHeader=ug;var cg=i(function(e,t){return Zu.__awaiter(void 0,void 0,void 0,function(){var r,n,o,a,s,u,p,d,g,x,v,l,f;return Zu.__generator(this,function(y){switch(y.label){case 0:return t.headers.get("Content-Type")?[4,t.blob()]:[3,2];case 1:return n=y.sent(),[3,4];case 2:return[4,Promise.resolve(void 0)];case 3:n=y.sent(),y.label=4;case 4:return r=n,o=t.method,a=t.headers,s=t.referrer,u=t.referrerPolicy,p=t.mode,d=t.credentials,g=t.cache,x=t.redirect,v=t.integrity,l=t.keepalive,f=t.signal,[2,new Request(e,{method:o,headers:a,body:r,referrer:s,referrerPolicy:u,mode:p,credentials:d,cache:g,redirect:x,integrity:v,keepalive:l,signal:f})]}})})},"cloneRequestWithNewUrl");Re.cloneRequestWithNewUrl=cg});var ti=b(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.AuthenticationHandlerOptions=void 0;var lg=(function(){function e(t,r){this.authenticationProvider=t,this.authenticationProviderOptions=r}return i(e,"AuthenticationHandlerOptions"),e})();nn.AuthenticationHandlerOptions=lg});var kt=b(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.TelemetryHandlerOptions=Rt.FeatureUsageFlag=void 0;var qu=it(),ri;(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"})(ri||(Rt.FeatureUsageFlag=ri={}));var pg=(function(){function e(){this.featureUsage=ri.NONE}return i(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,r){var n;t.middlewareControl instanceof qu.MiddlewareControl?n=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new qu.MiddlewareControl,typeof n>"u"&&(n=new e,t.middlewareControl.setMiddlewareOptions(e,n)),n.setFeatureUsage(r)},e.prototype.setFeatureUsage=function(t){this.featureUsage=this.featureUsage|t},e.prototype.getFeatureUsage=function(){return this.featureUsage.toString(16)},e})();Rt.TelemetryHandlerOptions=pg});var an=b(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.AuthenticationHandler=void 0;var Gu=(ue(),ie(se)),Wu=tn(),dg=it(),fg=zt(),mg=ti(),Ku=kt(),gg=(function(){function e(t){this.authenticationProvider=t}return i(e,"AuthenticationHandler"),e.prototype.execute=function(t){return Gu.__awaiter(this,void 0,void 0,function(){var r,n,o,a,s,u;return Gu.__generator(this,function(p){switch(p.label){case 0:return r=typeof t.request=="string"?t.request:t.request.url,(0,Wu.isGraphURL)(r)||t.customHosts&&(0,Wu.isCustomHost)(r,t.customHosts)?(n=void 0,t.middlewareControl instanceof dg.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(mg.AuthenticationHandlerOptions)),o=void 0,a=void 0,n&&(o=n.authenticationProvider,a=n.authenticationProviderOptions),o||(o=this.authenticationProvider),[4,o.getAccessToken(a)]):[3,2];case 1:return s=p.sent(),u="Bearer ".concat(s),(0,fg.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),Ku.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Ku.FeatureUsageFlag.AUTHENTICATION_HANDLER_ENABLED),[3,3];case 2:t.options.headers&&delete t.options.headers[e.AUTHORIZATION_HEADER],p.label=3;case 3:return[4,this.nextMiddleware.execute(t)];case 4:return[2,p.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e.AUTHORIZATION_HEADER="Authorization",e})();on.AuthenticationHandler=gg});var un=b(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.HTTPMessageHandler=void 0;var Ju=(ue(),ie(se)),hg=(function(){function e(){}return i(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return Ju.__awaiter(this,void 0,void 0,function(){var r;return Ju.__generator(this,function(n){switch(n.label){case 0:return r=t,[4,fetch(t.request,t.options)];case 1:return r.response=n.sent(),[2]}})})},e})();sn.HTTPMessageHandler=hg});var hr=b(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.RetryHandlerOptions=void 0;var yg=(function(){function e(t,r,n){if(t===void 0&&(t=e.DEFAULT_DELAY),r===void 0&&(r=e.DEFAULT_MAX_RETRIES),n===void 0&&(n=e.defaultShouldRetry),t>e.MAX_DELAY&&r>e.MAX_MAX_RETRIES){var o=new Error("Delay and MaxRetries should not be more than ".concat(e.MAX_DELAY," and ").concat(e.MAX_MAX_RETRIES));throw o.name="MaxLimitExceeded",o}else if(t>e.MAX_DELAY){var o=new Error("Delay should not be more than ".concat(e.MAX_DELAY));throw o.name="MaxLimitExceeded",o}else if(r>e.MAX_MAX_RETRIES){var o=new Error("MaxRetries should not be more than ".concat(e.MAX_MAX_RETRIES));throw o.name="MaxLimitExceeded",o}else if(t<0&&r<0){var o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}else if(t<0){var o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}else if(r<0){var o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(t,e.MAX_DELAY),this.maxRetries=Math.min(r,e.MAX_MAX_RETRIES),this.shouldRetry=n}return i(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})();cn.RetryHandlerOptions=yg});var pn=b(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.RetryHandler=void 0;var Dt=(ue(),ie(se)),ni=gr(),vg=it(),Xu=zt(),Yu=hr(),Qu=kt(),_g=(function(){function e(t){t===void 0&&(t=new Yu.RetryHandlerOptions),this.options=t}return i(e,"RetryHandler"),e.prototype.isRetry=function(t){return e.RETRY_STATUS_CODES.indexOf(t.status)!==-1},e.prototype.isBuffered=function(t,r){var n=typeof t=="string"?r.method:t.method,o=n===ni.RequestMethod.PUT||n===ni.RequestMethod.PATCH||n===ni.RequestMethod.POST;if(o){var a=(0,Xu.getRequestHeader)(t,r,"Content-Type")==="application/octet-stream";if(a)return!1}return!0},e.prototype.getDelay=function(t,r,n){var o=i(function(){return Number(Math.random().toFixed(3))},"getRandomness"),a=t.headers!==void 0?t.headers.get(e.RETRY_AFTER_HEADER):null,s;return a!==null?Number.isNaN(Number(a))?s=Math.round((new Date(a).getTime()-Date.now())/1e3):s=Number(a):s=r>=2?this.getExponentialBackOffTime(r)+n+o():n+o(),Math.min(s,this.options.getMaxDelay()+o())},e.prototype.getExponentialBackOffTime=function(t){return Math.round(1/2*(Math.pow(2,t)-1))},e.prototype.sleep=function(t){return Dt.__awaiter(this,void 0,void 0,function(){var r;return Dt.__generator(this,function(n){return r=t*1e3,[2,new Promise(function(o){return setTimeout(o,r)})]})})},e.prototype.getOptions=function(t){var r;return t.middlewareControl instanceof vg.MiddlewareControl&&(r=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof r>"u"&&(r=Object.assign(new Yu.RetryHandlerOptions,this.options)),r},e.prototype.executeWithRetry=function(t,r,n){return Dt.__awaiter(this,void 0,void 0,function(){var o;return Dt.__generator(this,function(a){switch(a.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return a.sent(),r<n.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&n.shouldRetry(n.delay,r,t.request,t.options,t.response)?(++r,(0,Xu.setRequestHeader)(t.request,t.options,e.RETRY_ATTEMPT_HEADER,r.toString()),o=this.getDelay(t.response,r,n.delay),[4,this.sleep(o)]):[3,4];case 2:return a.sent(),[4,this.executeWithRetry(t,r,n)];case 3:return[2,a.sent()];case 4:return[2]}})})},e.prototype.execute=function(t){return Dt.__awaiter(this,void 0,void 0,function(){var r,n;return Dt.__generator(this,function(o){switch(o.label){case 0:return r=0,n=this.getOptions(t),Qu.TelemetryHandlerOptions.updateFeatureUsageFlag(t,Qu.FeatureUsageFlag.RETRY_HANDLER_ENABLED),[4,this.executeWithRetry(t,r,n)];case 1:return[2,o.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})();ln.RetryHandler=_g});var yr=b(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.RedirectHandlerOptions=void 0;var Pg=(function(){function e(t,r){if(t===void 0&&(t=e.DEFAULT_MAX_REDIRECTS),r===void 0&&(r=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=r}return i(e,"RedirectHandlerOptions"),e.DEFAULT_MAX_REDIRECTS=5,e.MAX_MAX_REDIRECTS=20,e.defaultShouldRedirect=function(){return!0},e})();dn.RedirectHandlerOptions=Pg});var mn=b(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.RedirectHandler=void 0;var Ct=(ue(),ie(se)),xg=gr(),bg=it(),Tg=zt(),oi=yr(),ec=kt(),Eg=(function(){function e(t){t===void 0&&(t=new oi.RedirectHandlerOptions),this.options=t}return i(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,r){var n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=n.exec(t),a,s;o!==null&&(a=o[0]);var u=n.exec(r);return u!==null&&(s=u[0]),typeof a<"u"&&typeof s<"u"&&a!==s},e.prototype.updateRequestUrl=function(t,r){return Ct.__awaiter(this,void 0,void 0,function(){var n,o;return Ct.__generator(this,function(a){switch(a.label){case 0:return n=r,typeof r.request!="string"?[3,1]:(o=t,[3,3]);case 1:return[4,(0,Tg.cloneRequestWithNewUrl)(t,r.request)];case 2:o=a.sent(),a.label=3;case 3:return n.request=o,[2]}})})},e.prototype.getOptions=function(t){var r;return t.middlewareControl instanceof bg.MiddlewareControl&&(r=t.middlewareControl.getMiddlewareOptions(oi.RedirectHandlerOptions)),typeof r>"u"&&(r=Object.assign(new oi.RedirectHandlerOptions,this.options)),r},e.prototype.executeWithRedirect=function(t,r,n){return Ct.__awaiter(this,void 0,void 0,function(){var o,a;return Ct.__generator(this,function(s){switch(s.label){case 0:return[4,this.nextMiddleware.execute(t)];case 1:return s.sent(),o=t.response,r<n.maxRedirects&&this.isRedirect(o)&&this.hasLocationHeader(o)&&n.shouldRedirect(o)?(++r,o.status!==e.STATUS_CODE_SEE_OTHER?[3,2]:(t.options.method=xg.RequestMethod.GET,delete t.options.body,[3,4])):[3,6];case 2:return a=this.getLocationHeader(o),!this.isRelativeURL(a)&&this.shouldDropAuthorizationHeader(o.url,a)&&delete t.options.headers[e.AUTHORIZATION_HEADER],[4,this.updateRequestUrl(a,t)];case 3:s.sent(),s.label=4;case 4:return[4,this.executeWithRedirect(t,r,n)];case 5:return s.sent(),[3,7];case 6:return[2];case 7:return[2]}})})},e.prototype.execute=function(t){return Ct.__awaiter(this,void 0,void 0,function(){var r,n;return Ct.__generator(this,function(o){switch(o.label){case 0:return r=0,n=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,ec.TelemetryHandlerOptions.updateFeatureUsageFlag(t,ec.FeatureUsageFlag.REDIRECT_HANDLER_ENABLED),[4,this.executeWithRedirect(t,r,n)];case 1:return[2,o.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})();fn.RedirectHandler=Eg});var tc=b(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.PACKAGE_VERSION=void 0;gn.PACKAGE_VERSION="3.0.7"});var vn=b(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.TelemetryHandler=void 0;var rc=(ue(),ie(se)),nc=tn(),Ig=tc(),Ag=it(),hn=zt(),Sg=kt(),$g=(function(){function e(){}return i(e,"TelemetryHandler"),e.prototype.execute=function(t){return rc.__awaiter(this,void 0,void 0,function(){var r,n,o,a,s;return rc.__generator(this,function(u){switch(u.label){case 0:return r=typeof t.request=="string"?t.request:t.request.url,(0,nc.isGraphURL)(r)||t.customHosts&&(0,nc.isCustomHost)(r,t.customHosts)?(n=(0,hn.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),n||(n=(0,hn.generateUUID)(),(0,hn.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,n)),o="".concat(e.PRODUCT_NAME,"/").concat(Ig.PACKAGE_VERSION),a=void 0,t.middlewareControl instanceof Ag.MiddlewareControl&&(a=t.middlewareControl.getMiddlewareOptions(Sg.TelemetryHandlerOptions)),a&&(s=a.getFeatureUsage(),o+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(s,")")),(0,hn.appendRequestHeader)(t.request,t.options,e.SDK_VERSION_HEADER,o)):(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})();yn.TelemetryHandler=$g});var oc=b(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.MiddlewareFactory=void 0;var wg=an(),Og=un(),zg=yr(),Rg=hr(),kg=mn(),Dg=pn(),Cg=vn(),Ng=i(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),Ug=(function(){function e(){}return i(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var r=[],n=new wg.AuthenticationHandler(t),o=new Dg.RetryHandler(new Rg.RetryHandlerOptions),a=new Cg.TelemetryHandler,s=new Og.HTTPMessageHandler;if(r.push(n),r.push(o),Ng()){var u=new kg.RedirectHandler(new zg.RedirectHandlerOptions);r.push(u)}return r.push(a),r.push(s),r},e})();_n.MiddlewareFactory=Ug});var xn=b(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ChaosStrategy=void 0;var ic;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(ic||(Pn.ChaosStrategy=ic={}))});var ii=b(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ChaosHandlerOptions=void 0;var Mg=xn(),Lg=(function(){function e(t,r,n,o,a,s){if(t===void 0&&(t=Mg.ChaosStrategy.RANDOM),r===void 0&&(r="Some error Happened"),this.chaosStrategy=t,this.statusCode=n,this.statusMessage=r,this.chaosPercentage=o!==void 0?o:10,this.responseBody=a,this.headers=s,this.chaosPercentage>100)throw new Error("Error Pecentage can not be more than 100")}return i(e,"ChaosHandlerOptions"),e})();bn.ChaosHandlerOptions=Lg});var ac=b(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.httpStatusCode=Nt.methodStatusCode=void 0;Nt.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]};Nt.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 cc=b(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.ChaosHandler=void 0;var Tn=(ue(),ie(se)),jg=it(),Fg=zt(),sc=ac(),ai=ii(),uc=xn(),Bg=(function(){function e(t,r){t===void 0&&(t=new ai.ChaosHandlerOptions),this.options=t,this.manualMap=r}return i(e,"ChaosHandler"),e.prototype.createResponseHeaders=function(t,r,n){var o=t.headers?new Headers(t.headers):new Headers;return o.append("Cache-Control","no-store"),o.append("request-id",r),o.append("client-request-id",r),o.append("x-ms-ags-diagnostic",""),o.append("Date",n),o.append("Strict-Transport-Security",""),t.statusCode===429&&o.append("retry-after","3"),o},e.prototype.createResponseBody=function(t,r,n){if(t.responseBody)return t.responseBody;var o;if(t.statusCode>=400){var a=sc.httpStatusCode[t.statusCode],s=t.statusMessage;o={error:{code:a,message:s,innerError:{"request-id":r,date:n}}}}else o={};return o},e.prototype.createResponse=function(t,r){var n=r.request,o=(0,Fg.generateUUID)(),a=new Date,s=this.createResponseHeaders(t,o,a.toString()),u=this.createResponseBody(t,o,a.toString()),p={url:n,status:t.statusCode,statusText:t.statusMessage,headers:s};r.response=new Response(typeof u=="string"?u:JSON.stringify(u),p)},e.prototype.sendRequest=function(t,r){return Tn.__awaiter(this,void 0,void 0,function(){return Tn.__generator(this,function(n){switch(n.label){case 0:return this.setStatusCode(t,r.request,r.options.method),t.chaosStrategy===uc.ChaosStrategy.MANUAL&&!this.nextMiddleware||Math.floor(Math.random()*100)<t.chaosPercentage?(this.createResponse(t,r),[3,3]):[3,1];case 1:return this.nextMiddleware?[4,this.nextMiddleware.execute(r)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.getRandomStatusCode=function(t){var r=sc.methodStatusCode[t];return r[Math.floor(Math.random()*r.length)]},e.prototype.getRelativeURL=function(t){var r=/https?:\/\/graph\.microsoft\.com\/[^/]+(.+?)(\?|$)/,n;return r.exec(t)!==null&&(n=r.exec(t)[1]),n},e.prototype.setStatusCode=function(t,r,n){var o=this;if(t.chaosStrategy===uc.ChaosStrategy.MANUAL){if(t.statusCode===void 0){var a=this.getRelativeURL(r);this.manualMap.get(a)!==void 0?this.manualMap.get(a).get(n)!==void 0&&(t.statusCode=this.manualMap.get(a).get(n)):this.manualMap.forEach(function(s,u){var p=new RegExp(u+"$");p.test(a)&&o.manualMap.get(u).get(n)!==void 0&&(t.statusCode=o.manualMap.get(u).get(n))})}}else t.statusCode=this.getRandomStatusCode(n)},e.prototype.getOptions=function(t){var r;return t.middlewareControl instanceof jg.MiddlewareControl&&(r=t.middlewareControl.getMiddlewareOptions(ai.ChaosHandlerOptions)),typeof r>"u"&&(r=Object.assign(new ai.ChaosHandlerOptions,this.options)),r},e.prototype.execute=function(t){return Tn.__awaiter(this,void 0,void 0,function(){var r;return Tn.__generator(this,function(n){switch(n.label){case 0:return r=this.getOptions(t),[4,this.sendRequest(r,t)];case 1:return[2,n.sent()]}})})},e.prototype.setNext=function(t){this.nextMiddleware=t},e})();En.ChaosHandler=Bg});var vr=b(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.ResponseType=void 0;var lc;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(lc||(In.ResponseType=lc={}))});var ui=b(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.GraphResponseHandler=Ut.DocumentType=void 0;var An=(ue(),ie(se)),mt=vr(),si;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(si||(Ut.DocumentType=si={}));var Sn;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Sn||(Sn={}));var $n;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})($n||($n={}));var Hg=(function(){function e(){}return i(e,"GraphResponseHandler"),e.parseDocumentResponse=function(t,r){return typeof DOMParser<"u"?new Promise(function(n,o){t.text().then(function(a){try{var s=new DOMParser,u=s.parseFromString(a,r);n(u)}catch(p){o(p)}})}):Promise.resolve(t.body)},e.convertResponse=function(t,r){return An.__awaiter(this,void 0,void 0,function(){var n,o,a,s;return An.__generator(this,function(u){switch(u.label){case 0:if(t.status===204)return[2,Promise.resolve()];switch(o=t.headers.get("Content-type"),a=r,a){case mt.ResponseType.ARRAYBUFFER:return[3,1];case mt.ResponseType.BLOB:return[3,3];case mt.ResponseType.DOCUMENT:return[3,5];case mt.ResponseType.JSON:return[3,7];case mt.ResponseType.STREAM:return[3,9];case mt.ResponseType.TEXT:return[3,11]}return[3,13];case 1:return[4,t.arrayBuffer()];case 2:return n=u.sent(),[3,24];case 3:return[4,t.blob()];case 4:return n=u.sent(),[3,24];case 5:return[4,e.parseDocumentResponse(t,si.TEXT_XML)];case 6:return n=u.sent(),[3,24];case 7:return[4,t.json()];case 8:return n=u.sent(),[3,24];case 9:return[4,Promise.resolve(t.body)];case 10:return n=u.sent(),[3,24];case 11:return[4,t.text()];case 12:return n=u.sent(),[3,24];case 13:return o===null?[3,22]:(s=o.split(";")[0],new RegExp($n.DOCUMENT).test(s)?[4,e.parseDocumentResponse(t,s)]:[3,15]);case 14:return n=u.sent(),[3,21];case 15:return new RegExp($n.IMAGE).test(s)?(n=t.blob(),[3,21]):[3,16];case 16:return s!==Sn.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return n=u.sent(),[3,21];case 18:return s!==Sn.APPLICATION_JSON?[3,20]:[4,t.json()];case 19:return n=u.sent(),[3,21];case 20:n=Promise.resolve(t.body),u.label=21;case 21:return[3,23];case 22:n=Promise.resolve(t.body),u.label=23;case 23:return[3,24];case 24:return[2,n]}})})},e.getResponse=function(t,r,n){return An.__awaiter(this,void 0,void 0,function(){var o;return An.__generator(this,function(a){switch(a.label){case 0:return r!==mt.ResponseType.RAW?[3,1]:[2,Promise.resolve(t)];case 1:return[4,e.convertResponse(t,r)];case 2:if(o=a.sent(),t.ok)if(typeof n=="function")n(null,o);else return[2,o];else throw o;a.label=3;case 3:return[2]}})})},e})();Ut.GraphResponseHandler=Hg});var ci=b(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.Range=void 0;var Vg=(function(){function e(t,r){t===void 0&&(t=-1),r===void 0&&(r=-1),this.minValue=t,this.maxValue=r}return i(e,"Range"),e})();wn.Range=Vg});var li=b(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.UploadResult=void 0;var Zg=(function(){function e(t,r){this._location=r,this._responseBody=t}return i(e,"UploadResult"),Object.defineProperty(e.prototype,"location",{get:i(function(){return this._location},"get"),set:i(function(t){this._location=t},"set"),enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseBody",{get:i(function(){return this._responseBody},"get"),set:i(function(t){this._responseBody=t},"set"),enumerable:!1,configurable:!0}),e.CreateUploadResult=function(t,r){return new e(t,r.get("location"))},e})();On.UploadResult=Zg});var di=b(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.LargeFileUploadTask=void 0;var Ie=(ue(),ie(se)),pi=Ge(),qg=ui(),pc=vr(),zn=ci(),Gg=li(),Wg=(function(){function e(t,r,n,o){if(o===void 0&&(o={}),this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=t,r.sliceFile)this.file=r;else throw new pi.GraphClientError("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=r,o.rangeSize||(o.rangeSize=this.DEFAULT_FILE_SIZE),this.options=o,this.uploadSession=n,this.nextRange=new zn.Range(0,this.options.rangeSize-1)}return i(e,"LargeFileUploadTask"),e.createUploadSession=function(t,r,n,o){return o===void 0&&(o={}),Ie.__awaiter(this,void 0,void 0,function(){var a,s;return Ie.__generator(this,function(u){switch(u.label){case 0:return[4,t.api(r).headers(o).post(n)];case 1:return a=u.sent(),s={url:a.uploadUrl,expiry:new Date(a.expirationDateTime),isCancelled:!1},[2,s]}})})},e.prototype.parseRange=function(t){var r=t[0];if(typeof r>"u"||r==="")return new zn.Range;var n=r.split("-"),o=parseInt(n[0],10),a=parseInt(n[1],10);return Number.isNaN(a)&&(a=this.file.size-1),new zn.Range(o,a)},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,r=t+this.options.rangeSize-1;return r>=this.file.size&&(r=this.file.size-1),new zn.Range(t,r)},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 pi.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 Ie.__awaiter(this,void 0,void 0,function(){var t,r,n,o,a,s,u;return Ie.__generator(this,function(p){switch(p.label){case 0:t=this.options&&this.options.uploadEventHandlers,p.label=1;case 1:if(this.uploadSession.isCancelled)return[3,5];if(r=this.getNextRange(),r.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(r)];case 2:return o=p.sent(),[4,this.uploadSliceGetRawResponse(o,r,this.file.size)];case 3:if(a=p.sent(),!a)throw new pi.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,qg.GraphResponseHandler.getResponse(a)];case 4:return s=p.sent(),a.status===201||a.status===200&&s.id?(this.reportProgress(t,r),[2,Gg.UploadResult.CreateUploadResult(s,a.headers)]):(u={expirationDateTime:s.expirationDateTime||s.ExpirationDateTime,nextExpectedRanges:s.NextExpectedRanges||s.nextExpectedRanges},this.updateTaskStatus(u),this.reportProgress(t,r),[3,1]);case 5:return[2]}})})},e.prototype.reportProgress=function(t,r){t&&t.progress&&t.progress(r,t.extraCallbackParam)},e.prototype.uploadSlice=function(t,r,n){return Ie.__awaiter(this,void 0,void 0,function(){return Ie.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(r.maxValue-r.minValue+1),"Content-Range":"bytes ".concat(r.minValue,"-").concat(r.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).put(t)];case 1:return[2,o.sent()]}})})},e.prototype.uploadSliceGetRawResponse=function(t,r,n){return Ie.__awaiter(this,void 0,void 0,function(){return Ie.__generator(this,function(o){switch(o.label){case 0:return[4,this.client.api(this.uploadSession.url).headers({"Content-Length":"".concat(r.maxValue-r.minValue+1),"Content-Range":"bytes ".concat(r.minValue,"-").concat(r.maxValue,"/").concat(n),"Content-Type":"application/octet-stream"}).responseType(pc.ResponseType.RAW).put(t)];case 1:return[2,o.sent()]}})})},e.prototype.cancel=function(){return Ie.__awaiter(this,void 0,void 0,function(){var t;return Ie.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(pc.ResponseType.RAW).delete()];case 1:return t=r.sent(),t.status===204&&(this.uploadSession.isCancelled=!0),[2,t]}})})},e.prototype.getStatus=function(){return Ie.__awaiter(this,void 0,void 0,function(){var t;return Ie.__generator(this,function(r){switch(r.label){case 0:return[4,this.client.api(this.uploadSession.url).get()];case 1:return t=r.sent(),this.updateTaskStatus(t),[2,t]}})})},e.prototype.resume=function(){return Ie.__awaiter(this,void 0,void 0,function(){return Ie.__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})();Rn.LargeFileUploadTask=Wg});var fi=b(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.FileUpload=void 0;var Kg=Ge(),Jg=(function(){function e(t,r,n){if(this.content=t,this.name=r,this.size=n,!t||!r||!n)throw new Kg.GraphClientError("Please provide the upload content, name of the file and size of the file")}return i(e,"FileUpload"),e.prototype.sliceFile=function(t){return this.content.slice(t.minValue,t.maxValue+1)},e})();kn.FileUpload=Jg});var mi=b(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getValidRangeSize=void 0;var Xg=5*1024*1024,Yg=i(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),Qg=i(function(e){e===void 0&&(e=Xg);var t=60*1024*1024;return e>t&&(e=t),Yg(e)},"getValidRangeSize");Dn.getValidRangeSize=Qg});var fc=b(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.OneDriveLargeFileUploadTask=void 0;var We=(ue(),ie(se)),dc=Ge(),eh=fi(),th=di(),rh=mi(),nh=(function(e){We.__extends(t,e);function t(r,n,o,a){return e.call(this,r,n,o,a)||this}return i(t,"OneDriveLargeFileUploadTask"),t.constructCreateSessionUrl=function(r,n){return n===void 0&&(n=t.DEFAULT_UPLOAD_PATH),r=r.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(o){return encodeURIComponent(o)}).join("/")).concat(encodeURIComponent(r),":/createUploadSession")},t.getFileInfo=function(r,n){var o,a;if(typeof Blob<"u"&&r instanceof Blob)o=new File([r],n),a=o.size;else if(typeof File<"u"&&r instanceof File)o=r,a=o.size;else if(typeof Uint8Array<"u"&&r instanceof Uint8Array){var s=r;a=s.byteLength,o=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}return{content:o,size:a}},t.create=function(r,n,o){return We.__awaiter(this,void 0,void 0,function(){var a,s,u;return We.__generator(this,function(p){if(!r||!n||!o)throw new dc.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return a=o.fileName,s=t.getFileInfo(n,a),u=new eh.FileUpload(s.content,a,s.size),[2,this.createTaskWithFileObject(r,u,o)]})})},t.createTaskWithFileObject=function(r,n,o){return We.__awaiter(this,void 0,void 0,function(){var a,s,u,p;return We.__generator(this,function(d){switch(d.label){case 0:if(!r||!n||!o)throw new dc.GraphClientError("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");return a=o.uploadSessionURL?o.uploadSessionURL:t.constructCreateSessionUrl(o.fileName,o.path),s={fileName:o.fileName,fileDescription:o.fileDescription,conflictBehavior:o.conflictBehavior},[4,t.createUploadSession(r,a,s)];case 1:return u=d.sent(),p=(0,rh.getValidRangeSize)(o.rangeSize),[2,new t(r,n,u,{rangeSize:p,uploadEventHandlers:o.uploadEventHandlers})]}})})},t.createUploadSession=function(r,n,o){return We.__awaiter(this,void 0,void 0,function(){var a;return We.__generator(this,function(s){return a={item:{"@microsoft.graph.conflictBehavior":o?.conflictBehavior||"rename",name:o?.fileName,description:o?.fileDescription}},[2,e.createUploadSession.call(this,r,n,a)]})})},t.prototype.commit=function(r,n){return n===void 0&&(n="rename"),We.__awaiter(this,void 0,void 0,function(){var o;return We.__generator(this,function(a){switch(a.label){case 0:return o={name:this.file.name,"@microsoft.graph.conflictBehavior":n,"@microsoft.graph.sourceUrl":this.uploadSession.url},[4,this.client.api(r).put(o)];case 1:return[2,a.sent()]}})})},t.DEFAULT_UPLOAD_PATH="/",t})(th.LargeFileUploadTask);Cn.OneDriveLargeFileUploadTask=nh});var gc=b(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.StreamUpload=void 0;var mc=(ue(),ie(se)),_r=Ge(),oh=(function(){function e(t,r,n){if(this.content=t,this.name=r,this.size=n,!t||!r||!n)throw new _r.GraphClientError("Please provide the Readable Stream content, name of the file and size of the file")}return i(e,"StreamUpload"),e.prototype.sliceFile=function(t){return mc.__awaiter(this,void 0,void 0,function(){var r,n,o,a,s,u,p;return mc.__generator(this,function(d){switch(d.label){case 0:if(r=t.maxValue-t.minValue+1,n=[],this.previousSlice){if(t.minValue<this.previousSlice.range.minValue)throw new _r.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(o=this.previousSlice.range.minValue,a=this.previousSlice.range.maxValue,t.minValue===o&&t.maxValue===a)return[2,this.previousSlice.fileSlice];if(t.maxValue===a)return[2,this.previousSlice.fileSlice.slice(t.minValue,t.maxValue+1)];n.push(this.previousSlice.fileSlice.slice(t.minValue,a+1)),r=t.maxValue-a}}return this.content&&this.content.readable?this.content.readableLength>=r?(n.push(this.content.read(r)),[3,3]):[3,1]:[3,4];case 1:return u=(s=n).push,[4,this.readNBytesFromStream(r)];case 2:u.apply(s,[d.sent()]),d.label=3;case 3:return[3,5];case 4:throw new _r.GraphClientError("Stream is not readable.");case 5:return p=Buffer.concat(n),this.previousSlice={fileSlice:p,range:t},[2,p]}})})},e.prototype.readNBytesFromStream=function(t){var r=this;return new Promise(function(n,o){var a=[],s=t,u=0;r.content.on("end",function(){if(s>0)return o(new _r.GraphClientError("Stream ended before reading required range size"))}),r.content.on("readable",function(){for(var p;u<t&&(p=r.content.read(s))!==null;)u+=p.length,a.push(p),s>0&&(s=t-u);if(u===t)return n(Buffer.concat(a));if(!r.content||!r.content.readable)return o(new _r.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();Nn.StreamUpload=oh});var hc=b(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.PageIterator=void 0;var Mt=(ue(),ie(se)),ih=(function(){function e(t,r,n,o){this.client=t,this.collection=r.value,this.nextLink=r["@odata.nextLink"],this.deltaLink=r["@odata.deltaLink"],this.callback=n,this.cursor=0,this.complete=!1,this.requestOptions=o}return i(e,"PageIterator"),e.prototype.iterationHelper=function(){if(this.collection===void 0)return!1;for(var t=!0;t&&this.cursor<this.collection.length;){var r=this.collection[this.cursor];t=this.callback(r),this.cursor++}return t},e.prototype.fetchAndUpdateNextPageData=function(){return Mt.__awaiter(this,void 0,void 0,function(){var t,r;return Mt.__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 r=n.sent(),this.collection=r.value,this.cursor=0,this.nextLink=r["@odata.nextLink"],this.deltaLink=r["@odata.deltaLink"],[2]}})})},e.prototype.getDeltaLink=function(){return this.deltaLink},e.prototype.iterate=function(){return Mt.__awaiter(this,void 0,void 0,function(){var t;return Mt.__generator(this,function(r){switch(r.label){case 0:t=this.iterationHelper(),r.label=1;case 1:return t?this.nextLink===void 0?[3,3]:[4,this.fetchAndUpdateNextPageData()]:[3,5];case 2:return r.sent(),t=this.iterationHelper(),[3,4];case 3:t=!1,r.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 Mt.__awaiter(this,void 0,void 0,function(){return Mt.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();Un.PageIterator=ih});var gi=b(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.CustomAuthenticationProvider=void 0;var Mn=(ue(),ie(se)),yc=Ge(),ah=(function(){function e(t){this.provider=t}return i(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return Mn.__awaiter(this,void 0,void 0,function(){var t=this;return Mn.__generator(this,function(r){return[2,new Promise(function(n,o){t.provider(function(a,s){return Mn.__awaiter(t,void 0,void 0,function(){var u,p;return Mn.__generator(this,function(d){switch(d.label){case 0:return s?(n(s),[3,3]):[3,1];case 1:return a||(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",a=new yc.GraphClientError(u)),[4,yc.GraphClientError.setGraphClientError(a)];case 2:p=d.sent(),o(p),d.label=3;case 3:return[2]}})})})})]})})},e})();Ln.CustomAuthenticationProvider=ah});var hi=b(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.GraphError=void 0;var sh=(ue(),ie(se)),uh=(function(e){sh.__extends(t,e);function t(r,n,o){r===void 0&&(r=-1);var a=e.call(this,n||o&&o.message)||this;return Object.setPrototypeOf(a,t.prototype),a.statusCode=r,a.code=null,a.requestId=null,a.date=new Date,a.body=null,a.stack=o?o.stack:a.stack,a}return i(t,"GraphError"),t})(Error);jn.GraphError=uh});var _c=b(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.GraphErrorHandler=void 0;var vc=(ue(),ie(se)),yi=hi(),ch=(function(){function e(){}return i(e,"GraphErrorHandler"),e.constructError=function(t,r,n){var o=new yi.GraphError(r,"",t);return t.name!==void 0&&(o.code=t.name),o.body=t.toString(),o.date=new Date,o.headers=n?.headers,o},e.constructErrorFromResponse=function(t,r,n){var o=t.error,a=new yi.GraphError(r,o.message);return a.code=o.code,o.innerError!==void 0&&(a.requestId=o.innerError["request-id"],a.date=new Date(o.innerError.date)),a.body=JSON.stringify(o),a.headers=n?.headers,a},e.getError=function(t,r,n,o){return t===void 0&&(t=null),r===void 0&&(r=-1),vc.__awaiter(this,void 0,void 0,function(){var a;return vc.__generator(this,function(s){if(t&&t.error?a=e.constructErrorFromResponse(t,r,o):t instanceof Error?a=e.constructError(t,r,o):(a=new yi.GraphError(r),a.body=t),typeof n=="function")n(a,null);else return[2,a];return[2]})})},e})();Fn.GraphErrorHandler=ch});var vi=b(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.GraphRequest=void 0;var re=(ue(),ie(se)),lh=Ge(),ph=_c(),Pr=tn(),dh=ui(),fh=it(),gt=gr(),mh=vr(),gh=(function(){function e(t,r,n){var o=this;this.parsePath=function(a){if(a.indexOf("https://")!==-1){a=a.replace("https://","");var s=a.indexOf("/");s!==-1&&(o.urlComponents.host="https://"+a.substring(0,s),a=a.substring(s+1,a.length));var u=a.indexOf("/");u!==-1&&(o.urlComponents.version=a.substring(0,u),a=a.substring(u+1,a.length))}a.charAt(0)==="/"&&(a=a.substr(1));var p=a.indexOf("?");if(p===-1)o.urlComponents.path=a;else{o.urlComponents.path=a.substr(0,p);for(var d=a.substring(p+1,a.length).split("&"),g=0,x=d;g<x.length;g++){var v=x[g];o.parseQueryParameter(v)}}},this.httpClient=t,this.config=r,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}return i(e,"GraphRequest"),e.prototype.addCsvQueryParameter=function(t,r,n){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";var o=[];n.length>1&&typeof r=="string"?o=Array.prototype.slice.call(n):typeof r=="string"?o.push(r):o=o.concat(r),this.urlComponents.oDataQueryParams[t]+=o.join(",")},e.prototype.buildFullUrl=function(){var t=(0,Pr.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,r=[];if(Object.keys(t.oDataQueryParams).length!==0)for(var n in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,n)&&r.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)&&r.push(n+"="+t.otherURLQueryParams[n]);if(t.otherURLQueryOptions.length!==0)for(var o=0,a=t.otherURLQueryOptions;o<a.length;o++){var s=a[o];r.push(s)}return r.length>0?"?"+r.join("&"):""},e.prototype.parseQueryParameter=function(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1)for(var r=t.split("&"),n=0,o=r;n<o.length;n++){var a=o[n];this.parseQueryParamenterString(a)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&this.setURLComponentsQueryParamater(s,t[s]);return this},e.prototype.parseQueryParamenterString=function(t){if(this.isValidQueryKeyValuePair(t)){var r=t.indexOf("="),n=t.substring(0,r),o=t.substring(r+1);this.setURLComponentsQueryParamater(n,o)}else this.urlComponents.otherURLQueryOptions.push(t)},e.prototype.setURLComponentsQueryParamater=function(t,r){if(Pr.oDataQueryNames.indexOf(t)!==-1){var n=this.urlComponents.oDataQueryParams[t],o=n&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=o?n+","+r:r}else this.urlComponents.otherURLQueryParams[t]=r},e.prototype.isValidQueryKeyValuePair=function(t){var r=t.indexOf("=");if(r===-1)return!1;var n=t.indexOf("(");return!(n!==-1&&t.indexOf("(")<r)},e.prototype.updateRequestOptions=function(t){var r=re.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var n=re.__assign({},this.config.fetchOptions);Object.assign(t,n),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=re.__assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(r,t.headers),Object.assign(r,this._headers),t.headers=r},e.prototype.send=function(t,r,n){var o;return re.__awaiter(this,void 0,void 0,function(){var a,s,u,p,d,g,x,v;return re.__generator(this,function(l){switch(l.label){case 0:s=new fh.MiddlewareControl(this._middlewareOptions),this.updateRequestOptions(r),u=(o=this.config)===null||o===void 0?void 0:o.customHosts,l.label=1;case 1:return l.trys.push([1,4,,6]),[4,this.httpClient.sendRequest({request:t,options:r,middlewareControl:s,customHosts:u})];case 2:return p=l.sent(),a=p.response,[4,dh.GraphResponseHandler.getResponse(a,this._responseType,n)];case 3:return d=l.sent(),[2,d];case 4:if(g=l.sent(),g instanceof lh.GraphClientError)throw g;return x=void 0,a&&(x=a.status),[4,ph.GraphErrorHandler.getError(g,x,n,a)];case 5:throw v=l.sent(),v;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),r=0,n=t;r<n.length;r++){var o=n[r];if(o.toLowerCase()==="content-type")return}this.header("Content-Type","application/json")},e.prototype.header=function(t,r){return this._headers[t]=r,this},e.prototype.headers=function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._headers[r]=t[r]);return this},e.prototype.option=function(t,r){return this._options[t]=r,this},e.prototype.options=function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._options[r]=t[r]);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 re.__awaiter(this,void 0,void 0,function(){var r,n,o;return re.__generator(this,function(a){switch(a.label){case 0:return r=this.buildFullUrl(),n={method:gt.RequestMethod.GET},[4,this.send(r,n,t)];case 1:return o=a.sent(),[2,o]}})})},e.prototype.post=function(t,r){return re.__awaiter(this,void 0,void 0,function(){var n,o,a;return re.__generator(this,function(s){switch(s.label){case 0:return n=this.buildFullUrl(),o={method:gt.RequestMethod.POST,body:(0,Pr.serializeContent)(t)},a=t&&t.constructor&&t.constructor.name,a==="FormData"?o.headers={}:(this.setHeaderContentType(),o.headers=this._headers),[4,this.send(n,o,r)];case 1:return[2,s.sent()]}})})},e.prototype.create=function(t,r){return re.__awaiter(this,void 0,void 0,function(){return re.__generator(this,function(n){switch(n.label){case 0:return[4,this.post(t,r)];case 1:return[2,n.sent()]}})})},e.prototype.put=function(t,r){return re.__awaiter(this,void 0,void 0,function(){var n,o;return re.__generator(this,function(a){switch(a.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),o={method:gt.RequestMethod.PUT,body:(0,Pr.serializeContent)(t)},[4,this.send(n,o,r)];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,r){return re.__awaiter(this,void 0,void 0,function(){var n,o;return re.__generator(this,function(a){switch(a.label){case 0:return n=this.buildFullUrl(),this.setHeaderContentType(),o={method:gt.RequestMethod.PATCH,body:(0,Pr.serializeContent)(t)},[4,this.send(n,o,r)];case 1:return[2,a.sent()]}})})},e.prototype.update=function(t,r){return re.__awaiter(this,void 0,void 0,function(){return re.__generator(this,function(n){switch(n.label){case 0:return[4,this.patch(t,r)];case 1:return[2,n.sent()]}})})},e.prototype.delete=function(t){return re.__awaiter(this,void 0,void 0,function(){var r,n;return re.__generator(this,function(o){switch(o.label){case 0:return r=this.buildFullUrl(),n={method:gt.RequestMethod.DELETE},[4,this.send(r,n,t)];case 1:return[2,o.sent()]}})})},e.prototype.del=function(t){return re.__awaiter(this,void 0,void 0,function(){return re.__generator(this,function(r){switch(r.label){case 0:return[4,this.delete(t)];case 1:return[2,r.sent()]}})})},e.prototype.getStream=function(t){return re.__awaiter(this,void 0,void 0,function(){var r,n;return re.__generator(this,function(o){switch(o.label){case 0:return r=this.buildFullUrl(),n={method:gt.RequestMethod.GET},this.responseType(mh.ResponseType.STREAM),[4,this.send(r,n,t)];case 1:return[2,o.sent()]}})})},e.prototype.putStream=function(t,r){return re.__awaiter(this,void 0,void 0,function(){var n,o;return re.__generator(this,function(a){switch(a.label){case 0:return n=this.buildFullUrl(),o={method:gt.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(n,o,r)];case 1:return[2,a.sent()]}})})},e})();Bn.GraphRequest=gh});var _i=b(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.HTTPClient=void 0;var Pc=(ue(),ie(se)),hh=(function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];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 i(e,"HTTPClient"),e.prototype.setMiddleware=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]},e.prototype.parseMiddleWareArray=function(t){t.forEach(function(r,n){n<t.length-1&&r.setNext(t[n+1])}),this.middleware=t[0]},e.prototype.sendRequest=function(t){return Pc.__awaiter(this,void 0,void 0,function(){var r;return Pc.__generator(this,function(n){switch(n.label){case 0:if(typeof t.request=="string"&&t.options===void 0)throw r=new Error,r.name="InvalidRequestOptions",r.message="Unable to execute the middleware, Please provide valid options for a request",r;return[4,this.middleware.execute(t)];case 1:return n.sent(),[2,t]}})})},e})();Hn.HTTPClient=hh});var bc=b(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.HTTPClientFactory=void 0;var yh=(ue(),ie(se)),xc=_i(),vh=an(),_h=un(),Ph=yr(),xh=hr(),bh=mn(),Th=pn(),Eh=vn(),Ih=i(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),Ah=(function(){function e(){}return i(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var r=new vh.AuthenticationHandler(t),n=new Th.RetryHandler(new xh.RetryHandlerOptions),o=new Eh.TelemetryHandler,a=new _h.HTTPMessageHandler;if(r.setNext(n),Ih()){var s=new bh.RedirectHandler(new Ph.RedirectHandlerOptions);n.setNext(s),s.setNext(o)}else n.setNext(o);return o.setNext(a),e.createWithMiddleware(r)},e.createWithMiddleware=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new(xc.HTTPClient.bind.apply(xc.HTTPClient,yh.__spreadArray([void 0],t,!1)))},e})();Vn.HTTPClientFactory=Ah});var Tc=b(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.validatePolyFilling=void 0;var Sh=i(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");Zn.validatePolyFilling=Sh});var Ac=b(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.Client=void 0;var $h=(ue(),ie(se)),Ec=ei(),wh=gi(),Oh=vi(),Ic=_i(),zh=bc(),Rh=Tc(),kh=(function(){function e(t){this.config={baseUrl:Ec.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:Ec.GRAPH_API_VERSION},(0,Rh.validatePolyFilling)();for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.config[r]=t[r]);var n;if(t.authProvider!==void 0&&t.middleware!==void 0){var o=new Error;throw o.name="AmbiguityInInitialization",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",o}else if(t.authProvider!==void 0)n=zh.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)n=new(Ic.HTTPClient.bind.apply(Ic.HTTPClient,$h.__spreadArray([void 0],[].concat(t.middleware),!1)));else{var o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",o}this.httpClient=n}return i(e,"Client"),e.init=function(t){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=n==="authProvider"?new wh.CustomAuthenticationProvider(t[n]):t[n]);return e.initWithMiddleware(r)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new Oh.GraphRequest(this.httpClient,this.config,t)},e})();qn.Client=kh});var $c=b($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.ResponseType=$.GraphRequest=$.GraphClientError=$.GraphError=$.CustomAuthenticationProvider=$.Client=$.PageIterator=$.Range=$.UploadResult=$.FileUpload=$.StreamUpload=$.getValidRangeSize=$.OneDriveLargeFileUploadTask=$.LargeFileUploadTask=$.ChaosHandler=$.ChaosStrategy=$.ChaosHandlerOptions=$.TelemetryHandlerOptions=$.FeatureUsageFlag=$.RedirectHandlerOptions=$.RetryHandlerOptions=$.AuthenticationHandlerOptions=$.MiddlewareFactory=$.TelemetryHandler=$.RedirectHandler=$.RetryHandler=$.HTTPMessageHandler=$.AuthenticationHandler=$.BatchResponseContent=$.BatchRequestContent=void 0;var Dh=Bu();Object.defineProperty($,"BatchRequestContent",{enumerable:!0,get:i(function(){return Dh.BatchRequestContent},"get")});var Ch=Hu();Object.defineProperty($,"BatchResponseContent",{enumerable:!0,get:i(function(){return Ch.BatchResponseContent},"get")});var Nh=an();Object.defineProperty($,"AuthenticationHandler",{enumerable:!0,get:i(function(){return Nh.AuthenticationHandler},"get")});var Uh=un();Object.defineProperty($,"HTTPMessageHandler",{enumerable:!0,get:i(function(){return Uh.HTTPMessageHandler},"get")});var Mh=pn();Object.defineProperty($,"RetryHandler",{enumerable:!0,get:i(function(){return Mh.RetryHandler},"get")});var Lh=mn();Object.defineProperty($,"RedirectHandler",{enumerable:!0,get:i(function(){return Lh.RedirectHandler},"get")});var jh=vn();Object.defineProperty($,"TelemetryHandler",{enumerable:!0,get:i(function(){return jh.TelemetryHandler},"get")});var Fh=oc();Object.defineProperty($,"MiddlewareFactory",{enumerable:!0,get:i(function(){return Fh.MiddlewareFactory},"get")});var Bh=ti();Object.defineProperty($,"AuthenticationHandlerOptions",{enumerable:!0,get:i(function(){return Bh.AuthenticationHandlerOptions},"get")});var Hh=hr();Object.defineProperty($,"RetryHandlerOptions",{enumerable:!0,get:i(function(){return Hh.RetryHandlerOptions},"get")});var Vh=yr();Object.defineProperty($,"RedirectHandlerOptions",{enumerable:!0,get:i(function(){return Vh.RedirectHandlerOptions},"get")});var Sc=kt();Object.defineProperty($,"FeatureUsageFlag",{enumerable:!0,get:i(function(){return Sc.FeatureUsageFlag},"get")});Object.defineProperty($,"TelemetryHandlerOptions",{enumerable:!0,get:i(function(){return Sc.TelemetryHandlerOptions},"get")});var Zh=ii();Object.defineProperty($,"ChaosHandlerOptions",{enumerable:!0,get:i(function(){return Zh.ChaosHandlerOptions},"get")});var qh=xn();Object.defineProperty($,"ChaosStrategy",{enumerable:!0,get:i(function(){return qh.ChaosStrategy},"get")});var Gh=cc();Object.defineProperty($,"ChaosHandler",{enumerable:!0,get:i(function(){return Gh.ChaosHandler},"get")});var Wh=di();Object.defineProperty($,"LargeFileUploadTask",{enumerable:!0,get:i(function(){return Wh.LargeFileUploadTask},"get")});var Kh=fc();Object.defineProperty($,"OneDriveLargeFileUploadTask",{enumerable:!0,get:i(function(){return Kh.OneDriveLargeFileUploadTask},"get")});var Jh=mi();Object.defineProperty($,"getValidRangeSize",{enumerable:!0,get:i(function(){return Jh.getValidRangeSize},"get")});var Xh=gc();Object.defineProperty($,"StreamUpload",{enumerable:!0,get:i(function(){return Xh.StreamUpload},"get")});var Yh=fi();Object.defineProperty($,"FileUpload",{enumerable:!0,get:i(function(){return Yh.FileUpload},"get")});var Qh=li();Object.defineProperty($,"UploadResult",{enumerable:!0,get:i(function(){return Qh.UploadResult},"get")});var ey=ci();Object.defineProperty($,"Range",{enumerable:!0,get:i(function(){return ey.Range},"get")});var ty=hc();Object.defineProperty($,"PageIterator",{enumerable:!0,get:i(function(){return ty.PageIterator},"get")});var ry=Ac();Object.defineProperty($,"Client",{enumerable:!0,get:i(function(){return ry.Client},"get")});var ny=gi();Object.defineProperty($,"CustomAuthenticationProvider",{enumerable:!0,get:i(function(){return ny.CustomAuthenticationProvider},"get")});var oy=hi();Object.defineProperty($,"GraphError",{enumerable:!0,get:i(function(){return oy.GraphError},"get")});var iy=Ge();Object.defineProperty($,"GraphClientError",{enumerable:!0,get:i(function(){return iy.GraphClientError},"get")});var ay=vi();Object.defineProperty($,"GraphRequest",{enumerable:!0,get:i(function(){return ay.GraphRequest},"get")});var sy=vr();Object.defineProperty($,"ResponseType",{enumerable:!0,get:i(function(){return sy.ResponseType},"get")})});var Kc=b((S0,Wc)=>{var Gc=require("stream").Stream,hy=require("util");Wc.exports=De;function De(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i(De,"DelayedStream");hy.inherits(De,Gc);De.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(De.prototype,"readable",{configurable:!0,enumerable:!0,get:i(function(){return this.source.readable},"get")});De.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};De.prototype.resume=function(){this._released||this.release(),this.source.resume()};De.prototype.pause=function(){this.source.pause()};De.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};De.prototype.pipe=function(){var e=Gc.prototype.pipe.apply(this,arguments);return this.resume(),e};De.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)};De.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 Qc=b((w0,Yc)=>{var yy=require("util"),Xc=require("stream").Stream,Jc=Kc();Yc.exports=de;function de(){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}i(de,"CombinedStream");yy.inherits(de,Xc);de.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};de.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};de.prototype.append=function(e){var t=de.isStreamLike(e);if(t){if(!(e instanceof Jc)){var r=Jc.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};de.prototype.pipe=function(e,t){return Xc.prototype.pipe.call(this,e,t),this.resume(),e};de.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}};de.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(r){var n=de.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};de.prototype._pipeNext=function(e){this._currentStream=e;var t=de.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};de.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};de.prototype.write=function(e){this.emit("data",e)};de.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};de.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")};de.prototype.end=function(){this._reset(),this.emit("end")};de.prototype.destroy=function(){this._reset(),this.emit("close")};de.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};de.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};de.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)};de.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var tl=b((z0,el)=>{"use strict";el.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 ol=b(Ae=>{"use strict";var Yn=tl(),vy=require("path").extname,rl=/^\s*([^;\s]*)(?:;|\s|$)/,_y=/^text\//i;Ae.charset=nl;Ae.charsets={lookup:nl};Ae.contentType=Py;Ae.extension=xy;Ae.extensions=Object.create(null);Ae.lookup=by;Ae.types=Object.create(null);Ty(Ae.extensions,Ae.types);function nl(e){if(!e||typeof e!="string")return!1;var t=rl.exec(e),r=t&&Yn[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&_y.test(t[1])?"UTF-8":!1}i(nl,"charset");function Py(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Ae.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Ae.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}i(Py,"contentType");function xy(e){if(!e||typeof e!="string")return!1;var t=rl.exec(e),r=t&&Ae.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}i(xy,"extension");function by(e){if(!e||typeof e!="string")return!1;var t=vy("x."+e).toLowerCase().substr(1);return t&&Ae.types[t]||!1}i(by,"lookup");function Ty(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Yn).forEach(i(function(o){var a=Yn[o],s=a.extensions;if(!(!s||!s.length)){e[o]=s;for(var u=0;u<s.length;u++){var p=s[u];if(t[p]){var d=r.indexOf(Yn[t[p]].source),g=r.indexOf(a.source);if(t[p]!=="application/octet-stream"&&(d>g||d===g&&t[p].substr(0,12)==="application/"))continue}t[p]=o}}},"forEachMimeType"))}i(Ty,"populateMaps")});var al=b((D0,il)=>{il.exports=Ey;function Ey(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}i(Ey,"defer")});var Ti=b((N0,ul)=>{var sl=al();ul.exports=Iy;function Iy(e){var t=!1;return sl(function(){t=!0}),i(function(n,o){t?e(n,o):sl(i(function(){e(n,o)},"nextTick_callback"))},"async_callback")}i(Iy,"async")});var Ei=b((M0,cl)=>{cl.exports=Ay;function Ay(e){Object.keys(e.jobs).forEach(Sy.bind(e)),e.jobs={}}i(Ay,"abort");function Sy(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}i(Sy,"clean")});var Ii=b((j0,pl)=>{var ll=Ti(),$y=Ei();pl.exports=wy;function wy(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=Oy(t,o,e[o],function(a,s){o in r.jobs&&(delete r.jobs[o],a?$y(r):r.results[o]=s,n(a,r.results))})}i(wy,"iterate");function Oy(e,t,r,n){var o;return e.length==2?o=e(r,ll(n)):o=e(r,t,ll(n)),o}i(Oy,"runJob")});var Ai=b((B0,dl)=>{dl.exports=zy;function zy(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(o,a){return t(e[o],e[a])}),n}i(zy,"state")});var Si=b((V0,fl)=>{var Ry=Ei(),ky=Ti();fl.exports=Dy;function Dy(e){Object.keys(this.jobs).length&&(this.index=this.size,Ry(this),ky(e)(null,this.results))}i(Dy,"terminator")});var gl=b((q0,ml)=>{var Cy=Ii(),Ny=Ai(),Uy=Si();ml.exports=My;function My(e,t,r){for(var n=Ny(e);n.index<(n.keyedList||e).length;)Cy(e,t,n,function(o,a){if(o){r(o,a);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return Uy.bind(n,r)}i(My,"parallel")});var $i=b((W0,Qn)=>{var hl=Ii(),Ly=Ai(),jy=Si();Qn.exports=Fy;Qn.exports.ascending=yl;Qn.exports.descending=By;function Fy(e,t,r,n){var o=Ly(e,r);return hl(e,t,o,i(function a(s,u){if(s){n(s,u);return}if(o.index++,o.index<(o.keyedList||e).length){hl(e,t,o,a);return}n(null,o.results)},"iteratorHandler")),jy.bind(o,n)}i(Fy,"serialOrdered");function yl(e,t){return e<t?-1:e>t?1:0}i(yl,"ascending");function By(e,t){return-1*yl(e,t)}i(By,"descending")});var _l=b((J0,vl)=>{var Hy=$i();vl.exports=Vy;function Vy(e,t,r){return Hy(e,t,null,r)}i(Vy,"serial")});var xl=b((Y0,Pl)=>{Pl.exports={parallel:gl(),serial:_l(),serialOrdered:$i()}});var wi=b((Q0,bl)=>{"use strict";bl.exports=Object});var El=b((eU,Tl)=>{"use strict";Tl.exports=Error});var Al=b((tU,Il)=>{"use strict";Il.exports=EvalError});var $l=b((rU,Sl)=>{"use strict";Sl.exports=RangeError});var Ol=b((nU,wl)=>{"use strict";wl.exports=ReferenceError});var Rl=b((oU,zl)=>{"use strict";zl.exports=SyntaxError});var eo=b((iU,kl)=>{"use strict";kl.exports=TypeError});var Cl=b((aU,Dl)=>{"use strict";Dl.exports=URIError});var Ul=b((sU,Nl)=>{"use strict";Nl.exports=Math.abs});var Ll=b((uU,Ml)=>{"use strict";Ml.exports=Math.floor});var Fl=b((cU,jl)=>{"use strict";jl.exports=Math.max});var Hl=b((lU,Bl)=>{"use strict";Bl.exports=Math.min});var Zl=b((pU,Vl)=>{"use strict";Vl.exports=Math.pow});var Gl=b((dU,ql)=>{"use strict";ql.exports=Math.round});var Kl=b((fU,Wl)=>{"use strict";Wl.exports=Number.isNaN||i(function(t){return t!==t},"isNaN")});var Xl=b((gU,Jl)=>{"use strict";var Zy=Kl();Jl.exports=i(function(t){return Zy(t)||t===0?t:t<0?-1:1},"sign")});var Ql=b((yU,Yl)=>{"use strict";Yl.exports=Object.getOwnPropertyDescriptor});var Oi=b((vU,ep)=>{"use strict";var to=Ql();if(to)try{to([],"length")}catch{to=null}ep.exports=to});var rp=b((_U,tp)=>{"use strict";var ro=Object.defineProperty||!1;if(ro)try{ro({},"a",{value:1})}catch{ro=!1}tp.exports=ro});var zi=b((PU,np)=>{"use strict";np.exports=i(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var ap=b((bU,ip)=>{"use strict";var op=typeof Symbol<"u"&&Symbol,qy=zi();ip.exports=i(function(){return typeof op!="function"||typeof Symbol!="function"||typeof op("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qy()},"hasNativeSymbols")});var Ri=b((EU,sp)=>{"use strict";sp.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var ki=b((IU,up)=>{"use strict";var Gy=wi();up.exports=Gy.getPrototypeOf||null});var pp=b((AU,lp)=>{"use strict";var Wy="Function.prototype.bind called on incompatible ",Ky=Object.prototype.toString,Jy=Math.max,Xy="[object Function]",cp=i(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},"concatty"),Yy=i(function(t,r){for(var n=[],o=r||0,a=0;o<t.length;o+=1,a+=1)n[a]=t[o];return n},"slicy"),Qy=i(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");lp.exports=i(function(t){var r=this;if(typeof r!="function"||Ky.apply(r)!==Xy)throw new TypeError(Wy+r);for(var n=Yy(arguments,1),o,a=i(function(){if(this instanceof o){var g=r.apply(this,cp(n,arguments));return Object(g)===g?g:this}return r.apply(t,cp(n,arguments))},"binder"),s=Jy(0,r.length-n.length),u=[],p=0;p<s;p++)u[p]="$"+p;if(o=Function("binder","return function ("+Qy(u,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var d=i(function(){},"Empty");d.prototype=r.prototype,o.prototype=new d,d.prototype=null}return o},"bind")});var Lt=b(($U,dp)=>{"use strict";var ev=pp();dp.exports=Function.prototype.bind||ev});var no=b((wU,fp)=>{"use strict";fp.exports=Function.prototype.call});var Di=b((OU,mp)=>{"use strict";mp.exports=Function.prototype.apply});var hp=b((zU,gp)=>{"use strict";gp.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var vp=b((RU,yp)=>{"use strict";var tv=Lt(),rv=Di(),nv=no(),ov=hp();yp.exports=ov||tv.call(nv,rv)});var Pp=b((kU,_p)=>{"use strict";var iv=Lt(),av=eo(),sv=no(),uv=vp();_p.exports=i(function(t){if(t.length<1||typeof t[0]!="function")throw new av("a function is required");return uv(iv,sv,t)},"callBindBasic")});var Ap=b((CU,Ip)=>{"use strict";var cv=Pp(),xp=Oi(),Tp;try{Tp=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ci=!!Tp&&xp&&xp(Object.prototype,"__proto__"),Ep=Object,bp=Ep.getPrototypeOf;Ip.exports=Ci&&typeof Ci.get=="function"?cv([Ci.get]):typeof bp=="function"?i(function(t){return bp(t==null?t:Ep(t))},"getDunder"):!1});var zp=b((UU,Op)=>{"use strict";var Sp=Ri(),$p=ki(),wp=Ap();Op.exports=Sp?i(function(t){return Sp(t)},"getProto"):$p?i(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return $p(t)},"getProto"):wp?i(function(t){return wp(t)},"getProto"):null});var Ni=b((LU,Rp)=>{"use strict";var lv=Function.prototype.call,pv=Object.prototype.hasOwnProperty,dv=Lt();Rp.exports=dv.call(lv,pv)});var Lp=b((jU,Mp)=>{"use strict";var J,fv=wi(),mv=El(),gv=Al(),hv=$l(),yv=Ol(),Ht=Rl(),Bt=eo(),vv=Cl(),_v=Ul(),Pv=Ll(),xv=Fl(),bv=Hl(),Tv=Zl(),Ev=Gl(),Iv=Xl(),Np=Function,Ui=i(function(e){try{return Np('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),br=Oi(),Av=rp(),Mi=i(function(){throw new Bt},"throwTypeError"),Sv=br?(function(){try{return arguments.callee,Mi}catch{try{return br(arguments,"callee").get}catch{return Mi}}})():Mi,jt=ap()(),_e=zp(),$v=ki(),wv=Ri(),Up=Di(),Tr=no(),Ft={},Ov=typeof Uint8Array>"u"||!_e?J:_e(Uint8Array),ht={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?J:ArrayBuffer,"%ArrayIteratorPrototype%":jt&&_e?_e([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":Ft,"%AsyncGenerator%":Ft,"%AsyncGeneratorFunction%":Ft,"%AsyncIteratorPrototype%":Ft,"%Atomics%":typeof Atomics>"u"?J:Atomics,"%BigInt%":typeof BigInt>"u"?J:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?J:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?J:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mv,"%eval%":eval,"%EvalError%":gv,"%Float16Array%":typeof Float16Array>"u"?J:Float16Array,"%Float32Array%":typeof Float32Array>"u"?J:Float32Array,"%Float64Array%":typeof Float64Array>"u"?J:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?J:FinalizationRegistry,"%Function%":Np,"%GeneratorFunction%":Ft,"%Int8Array%":typeof Int8Array>"u"?J:Int8Array,"%Int16Array%":typeof Int16Array>"u"?J:Int16Array,"%Int32Array%":typeof Int32Array>"u"?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jt&&_e?_e(_e([][Symbol.iterator]())):J,"%JSON%":typeof JSON=="object"?JSON:J,"%Map%":typeof Map>"u"?J:Map,"%MapIteratorPrototype%":typeof Map>"u"||!jt||!_e?J:_e(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fv,"%Object.getOwnPropertyDescriptor%":br,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?J:Promise,"%Proxy%":typeof Proxy>"u"?J:Proxy,"%RangeError%":hv,"%ReferenceError%":yv,"%Reflect%":typeof Reflect>"u"?J:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?J:Set,"%SetIteratorPrototype%":typeof Set>"u"||!jt||!_e?J:_e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jt&&_e?_e(""[Symbol.iterator]()):J,"%Symbol%":jt?Symbol:J,"%SyntaxError%":Ht,"%ThrowTypeError%":Sv,"%TypedArray%":Ov,"%TypeError%":Bt,"%Uint8Array%":typeof Uint8Array>"u"?J:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?J:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?J:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?J:Uint32Array,"%URIError%":vv,"%WeakMap%":typeof WeakMap>"u"?J:WeakMap,"%WeakRef%":typeof WeakRef>"u"?J:WeakRef,"%WeakSet%":typeof WeakSet>"u"?J:WeakSet,"%Function.prototype.call%":Tr,"%Function.prototype.apply%":Up,"%Object.defineProperty%":Av,"%Object.getPrototypeOf%":$v,"%Math.abs%":_v,"%Math.floor%":Pv,"%Math.max%":xv,"%Math.min%":bv,"%Math.pow%":Tv,"%Math.round%":Ev,"%Math.sign%":Iv,"%Reflect.getPrototypeOf%":wv};if(_e)try{null.error}catch(e){kp=_e(_e(e)),ht["%Error.prototype%"]=kp}var kp,zv=i(function e(t){var r;if(t==="%AsyncFunction%")r=Ui("async function () {}");else if(t==="%GeneratorFunction%")r=Ui("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ui("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&_e&&(r=_e(o.prototype))}return ht[t]=r,r},"doEval"),Dp={__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"]},Er=Lt(),oo=Ni(),Rv=Er.call(Tr,Array.prototype.concat),kv=Er.call(Up,Array.prototype.splice),Cp=Er.call(Tr,String.prototype.replace),io=Er.call(Tr,String.prototype.slice),Dv=Er.call(Tr,RegExp.prototype.exec),Cv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nv=/\\(\\)?/g,Uv=i(function(t){var r=io(t,0,1),n=io(t,-1);if(r==="%"&&n!=="%")throw new Ht("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ht("invalid intrinsic syntax, expected opening `%`");var o=[];return Cp(t,Cv,function(a,s,u,p){o[o.length]=u?Cp(p,Nv,"$1"):s||a}),o},"stringToPath"),Mv=i(function(t,r){var n=t,o;if(oo(Dp,n)&&(o=Dp[n],n="%"+o[0]+"%"),oo(ht,n)){var a=ht[n];if(a===Ft&&(a=zv(n)),typeof a>"u"&&!r)throw new Bt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Ht("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Mp.exports=i(function(t,r){if(typeof t!="string"||t.length===0)throw new Bt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bt('"allowMissing" argument must be a boolean');if(Dv(/^%?[^%]*%?$/,t)===null)throw new Ht("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Uv(t),o=n.length>0?n[0]:"",a=Mv("%"+o+"%",r),s=a.name,u=a.value,p=!1,d=a.alias;d&&(o=d[0],kv(n,Rv([0,1],d)));for(var g=1,x=!0;g<n.length;g+=1){var v=n[g],l=io(v,0,1),f=io(v,-1);if((l==='"'||l==="'"||l==="`"||f==='"'||f==="'"||f==="`")&&l!==f)throw new Ht("property names with quotes must have matching quotes");if((v==="constructor"||!x)&&(p=!0),o+="."+v,s="%"+o+"%",oo(ht,s))u=ht[s];else if(u!=null){if(!(v in u)){if(!r)throw new Bt("base intrinsic for "+t+" exists, but the property is not available.");return}if(br&&g+1>=n.length){var y=br(u,v);x=!!y,x&&"get"in y&&!("originalValue"in y.get)?u=y.get:u=u[v]}else x=oo(u,v),u=u[v];x&&!p&&(ht[s]=u)}}return u},"GetIntrinsic")});var Fp=b((BU,jp)=>{"use strict";var Lv=zi();jp.exports=i(function(){return Lv()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Vp=b((VU,Hp)=>{"use strict";var jv=Lp(),Bp=jv("%Object.defineProperty%",!0),Fv=Fp()(),Bv=Ni(),Hv=eo(),ao=Fv?Symbol.toStringTag:null;Hp.exports=i(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new Hv("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");ao&&(n||!Bv(t,ao))&&(Bp?Bp(t,ao,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[ao]=r)},"setToStringTag")});var qp=b((qU,Zp)=>{"use strict";var Vv=Function.prototype.call,Zv=Object.prototype.hasOwnProperty,qv=Lt();Zp.exports=qv.call(Vv,Zv)});var Wp=b((GU,Gp)=>{"use strict";Gp.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Xp=b((WU,Jp)=>{"use strict";var Bi=Qc(),Gv=require("util"),Li=require("path"),Wv=require("http"),Kv=require("https"),Jv=require("url").parse,Xv=require("fs"),Yv=require("stream").Stream,Qv=require("crypto"),ji=ol(),e_=xl(),t_=Vp(),st=qp(),Fi=Wp();function Kp(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}i(Kp,"escapeHeaderParam");function X(e){if(!(this instanceof X))return new X(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Bi.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(X,"FormData");Gv.inherits(X,Bi);X.LINE_BREAK=`\r
5
- `;X.DEFAULT_CONTENT_TYPE="application/octet-stream";X.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Bi.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 o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};X.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+X.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&st(t,"httpVersion"))&&!(t instanceof Yv))&&(r.knownLength||this._valuesToMeasure.push(t))};X.prototype._lengthRetriever=function(e,t){st(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Xv.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):st(e,"httpVersion")?t(null,Number(e.headers["content-length"])):st(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};X.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+Kp(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Fi(s,r.header);var u;for(var p in s)if(st(s,p)){if(u=s[p],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=p+": "+u.join("; ")+X.LINE_BREAK)}return"--"+this.getBoundary()+X.LINE_BREAK+a+X.LINE_BREAK};X.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Li.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Li.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&st(e,"httpVersion")&&(r=Li.basename(e.client._httpMessage.path||"")),r)return'filename="'+Kp(r)+'"'};X.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=ji.lookup(e.name)),!r&&e&&e.path&&(r=ji.lookup(e.path)),!r&&e&&e.readable&&st(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=ji.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=X.DEFAULT_CONTENT_TYPE),r};X.prototype._multiPartFooter=function(){return function(e){var t=X.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};X.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+X.LINE_BREAK};X.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)st(e,t)&&(r[t.toLowerCase()]=e[t]);return r};X.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};X.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};X.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(X.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};X.prototype._generateBoundary=function(){this._boundary="--------------------------"+Qv.randomBytes(12).toString("hex")};X.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};X.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};X.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}e_.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};X.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=Jv(e),n=Fi({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Fi(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=Kv.request(n):r=Wv.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,p=i(function(d,g){return r.removeListener("error",p),r.removeListener("response",u),t.call(this,d,g)},"callback");u=p.bind(this,null),r.on("error",p),r.on("response",u)}}.bind(this)),r};X.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};X.prototype.toString=function(){return"[object FormData]"};t_(X.prototype,"FormData");Jp.exports=X});var so=b((Hi,Vi)=>{(function(e,t){typeof Hi=="object"&&typeof Vi<"u"?Vi.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Hi,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",a="minute",s="hour",u="day",p="week",d="month",g="quarter",x="year",v="date",l="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,h={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:i(function(j){var A=["th","st","nd","rd"],E=j%100;return"["+j+(A[(E-20)%10]||A[E]||A[0])+"]"},"ordinal")},P=i(function(j,A,E){var O=String(j);return!O||O.length>=A?j:""+Array(A+1-O.length).join(E)+j},"m"),T={s:P,z:i(function(j){var A=-j.utcOffset(),E=Math.abs(A),O=Math.floor(E/60),S=E%60;return(A<=0?"+":"-")+P(O,2,"0")+":"+P(S,2,"0")},"z"),m:i(function j(A,E){if(A.date()<E.date())return-j(E,A);var O=12*(E.year()-A.year())+(E.month()-A.month()),S=A.clone().add(O,d),V=E-S<0,Z=A.clone().add(O+(V?-1:1),d);return+(-(O+(E-S)/(V?S-Z:Z-S))||0)},"t"),a:i(function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},"a"),p:i(function(j){return{M:d,y:x,w:p,d:u,D:v,h:s,m:a,s:o,ms:n,Q:g}[j]||String(j||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function(j){return j===void 0},"u")},H="en",fe={};fe[H]=h;var xe=i(function(j){return j instanceof yt},"p"),Ce=i(function j(A,E,O){var S;if(!A)return H;if(typeof A=="string"){var V=A.toLowerCase();fe[V]&&(S=V),E&&(fe[V]=E,S=V);var Z=A.split("-");if(!S&&Z.length>1)return j(Z[0])}else{var te=A.name;fe[te]=A,S=te}return!O&&S&&(H=S),S||!O&&H},"t"),ee=i(function(j,A){if(xe(j))return j.clone();var E=typeof A=="object"?A:{};return E.date=j,E.args=arguments,new yt(E)},"w"),G=T;G.l=Ce,G.i=xe,G.w=function(j,A){return ee(j,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var yt=(function(){function j(E){this.$L=Ce(E.locale,null,!0),this.parse(E)}i(j,"M");var A=j.prototype;return A.parse=function(E){this.$d=(function(O){var S=O.date,V=O.utc;if(S===null)return new Date(NaN);if(G.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var Z=S.match(f);if(Z){var te=Z[2]-1||0,me=(Z[7]||"0").substring(0,3);return V?new Date(Date.UTC(Z[1],te,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,me)):new Date(Z[1],te,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,me)}}return new Date(S)})(E),this.$x=E.x||{},this.init()},A.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},A.$utils=function(){return G},A.isValid=function(){return this.$d.toString()!==l},A.isSame=function(E,O){var S=ee(E);return this.startOf(O)<=S&&S<=this.endOf(O)},A.isAfter=function(E,O){return ee(E)<this.startOf(O)},A.isBefore=function(E,O){return this.endOf(O)<ee(E)},A.$g=function(E,O,S){return G.u(E)?this[O]:this.set(S,E)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(E,O){var S=this,V=!!G.u(O)||O,Z=G.p(E),te=i(function(lt,Ee){var Ke=G.w(S.$u?Date.UTC(S.$y,Ee,lt):new Date(S.$y,Ee,lt),S);return V?Ke:Ke.endOf(u)},"l"),me=i(function(lt,Ee){return G.w(S.toDate()[lt].apply(S.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(Ee)),S)},"$"),ve=this.$W,Pe=this.$M,we=this.$D,vt="set"+(this.$u?"UTC":"");switch(Z){case x:return V?te(1,0):te(31,11);case d:return V?te(1,Pe):te(0,Pe+1);case p:var ct=this.$locale().weekStart||0,Vt=(ve<ct?ve+7:ve)-ct;return te(V?we-Vt:we+(6-Vt),Pe);case u:case v:return me(vt+"Hours",0);case s:return me(vt+"Minutes",1);case a:return me(vt+"Seconds",2);case o:return me(vt+"Milliseconds",3);default:return this.clone()}},A.endOf=function(E){return this.startOf(E,!1)},A.$set=function(E,O){var S,V=G.p(E),Z="set"+(this.$u?"UTC":""),te=(S={},S[u]=Z+"Date",S[v]=Z+"Date",S[d]=Z+"Month",S[x]=Z+"FullYear",S[s]=Z+"Hours",S[a]=Z+"Minutes",S[o]=Z+"Seconds",S[n]=Z+"Milliseconds",S)[V],me=V===u?this.$D+(O-this.$W):O;if(V===d||V===x){var ve=this.clone().set(v,1);ve.$d[te](me),ve.init(),this.$d=ve.set(v,Math.min(this.$D,ve.daysInMonth())).$d}else te&&this.$d[te](me);return this.init(),this},A.set=function(E,O){return this.clone().$set(E,O)},A.get=function(E){return this[G.p(E)]()},A.add=function(E,O){var S,V=this;E=Number(E);var Z=G.p(O),te=i(function(Pe){var we=ee(V);return G.w(we.date(we.date()+Math.round(Pe*E)),V)},"y");if(Z===d)return this.set(d,this.$M+E);if(Z===x)return this.set(x,this.$y+E);if(Z===u)return te(1);if(Z===p)return te(7);var me=(S={},S[a]=t,S[s]=r,S[o]=e,S)[Z]||1,ve=this.$d.getTime()+E*me;return G.w(ve,this)},A.subtract=function(E,O){return this.add(-1*E,O)},A.format=function(E){var O=this,S=this.$locale();if(!this.isValid())return S.invalidDate||l;var V=E||"YYYY-MM-DDTHH:mm:ssZ",Z=G.z(this),te=this.$H,me=this.$m,ve=this.$M,Pe=S.weekdays,we=S.months,vt=S.meridiem,ct=i(function(Ee,Ke,Zt,Ir){return Ee&&(Ee[Ke]||Ee(O,V))||Zt[Ke].slice(0,Ir)},"h"),Vt=i(function(Ee){return G.s(te%12||12,Ee,"0")},"d"),lt=vt||function(Ee,Ke,Zt){var Ir=Ee<12?"AM":"PM";return Zt?Ir.toLowerCase():Ir};return V.replace(y,(function(Ee,Ke){return Ke||(function(Zt){switch(Zt){case"YY":return String(O.$y).slice(-2);case"YYYY":return G.s(O.$y,4,"0");case"M":return ve+1;case"MM":return G.s(ve+1,2,"0");case"MMM":return ct(S.monthsShort,ve,we,3);case"MMMM":return ct(we,ve);case"D":return O.$D;case"DD":return G.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ct(S.weekdaysMin,O.$W,Pe,2);case"ddd":return ct(S.weekdaysShort,O.$W,Pe,3);case"dddd":return Pe[O.$W];case"H":return String(te);case"HH":return G.s(te,2,"0");case"h":return Vt(1);case"hh":return Vt(2);case"a":return lt(te,me,!0);case"A":return lt(te,me,!1);case"m":return String(me);case"mm":return G.s(me,2,"0");case"s":return String(O.$s);case"ss":return G.s(O.$s,2,"0");case"SSS":return G.s(O.$ms,3,"0");case"Z":return Z}return null})(Ee)||Z.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(E,O,S){var V,Z=this,te=G.p(O),me=ee(E),ve=(me.utcOffset()-this.utcOffset())*t,Pe=this-me,we=i(function(){return G.m(Z,me)},"D");switch(te){case x:V=we()/12;break;case d:V=we();break;case g:V=we()/3;break;case p:V=(Pe-ve)/6048e5;break;case u:V=(Pe-ve)/864e5;break;case s:V=Pe/r;break;case a:V=Pe/t;break;case o:V=Pe/e;break;default:V=Pe}return S?V:G.a(V)},A.daysInMonth=function(){return this.endOf(d).$D},A.$locale=function(){return fe[this.$L]},A.locale=function(E,O){if(!E)return this.$L;var S=this.clone(),V=Ce(E,O,!0);return V&&(S.$L=V),S},A.clone=function(){return G.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},j})(),ut=yt.prototype;return ee.prototype=ut,[["$ms",n],["$s",o],["$m",a],["$H",s],["$W",u],["$M",d],["$y",x],["$D",v]].forEach((function(j){ut[j[1]]=function(A){return this.$g(A,j[0],j[1])}})),ee.extend=function(j,A){return j.$i||(j(A,yt,ee),j.$i=!0),ee},ee.locale=Ce,ee.isDayjs=xe,ee.unix=function(j){return ee(1e3*j)},ee.en=fe[H],ee.Ls=fe,ee.p={},ee}))});var f_={};po(f_,{microsoft365Planner:()=>d_});module.exports=ie(f_);var fd=Object.freeze({status:"aborted"});function w(e,t,r){function n(u,p){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:p,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,p);let d=s.prototype,g=Object.keys(d);for(let x=0;x<g.length;x++){let v=g[x];v in u||(u[v]=d[v].bind(u))}}i(n,"init");let o=r?.Parent??Object;class a extends o{static{i(this,"Definition")}}Object.defineProperty(a,"name",{value:e});function s(u){var p;let d=r?.Parent?new a:this;n(d,u),(p=d._zod).deferred??(p.deferred=[]);for(let g of d._zod.deferred)g();return d}return i(s,"_"),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:i(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}i(w,"$constructor");var Ue=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ar=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},fo={};function Fe(e){return e&&Object.assign(fo,e),fo}i(Fe,"config");function go(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}i(go,"getEnumValues");function Gi(e,t){return typeof t=="bigint"?t.toString():t}i(Gi,"jsonStringifyReplacer");function $r(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i($r,"cached");function Wi(e){return e==null}i(Wi,"nullish");function wr(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(wr,"cleanRegex");var qi=Symbol("evaluating");function he(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==qi)return n===void 0&&(n=qi,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}i(he,"defineLazy");var ho="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Gt,"isObject");var md=$r(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ki(e){if(Gt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Gt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(Ki,"isPlainObject");var Ji=new Set(["string","number","symbol"]);function _t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(_t,"escapeRegex");function Or(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}i(Or,"clone");function ne(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>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:i(()=>t.error,"error")}:t}i(ne,"normalizeParams");function Xi(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(Xi,"optionalKeys");var Yi={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]};function Pt(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(Pt,"aborted");function Je(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}i(Je,"prefixIssues");function Sr(e){return typeof e=="string"?e:e?.message}i(Sr,"unwrapMessage");function Xe(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=Sr(e.inst?._zod.def?.error?.(e))??Sr(t?.error?.(e))??Sr(r.customError?.(e))??Sr(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}i(Xe,"finalizeIssue");function Qi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(Qi,"getLengthableOrigin");function yo(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}i(yo,"issue");var ea=i((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,Gi,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),ta=w("$ZodError",ea),Wt=w("$ZodError",ea,{Parent:Error});var hd=i(e=>(t,r,n,o)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new Ue;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(p=>Xe(p,a,Fe())));throw ho(u,o?.callee),u}return s.value},"_parse"),zr=hd(Wt),yd=i(e=>async(t,r,n,o)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(p=>Xe(p,a,Fe())));throw ho(u,o?.callee),u}return s.value},"_parseAsync"),Rr=yd(Wt),vd=i(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Ue;return a.issues.length?{success:!1,error:new(e??ta)(a.issues.map(s=>Xe(s,o,Fe())))}:{success:!0,data:a.value}},"_safeParse"),Kt=vd(Wt),_d=i(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>Xe(s,o,Fe())))}:{success:!0,data:a.value}},"_safeParseAsync"),Jt=_d(Wt);var Pd="(?:(?:\\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])))",xd=new RegExp(`^${Pd}$`);var ra=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),na=/^-?\d+n?$/,oa=/^-?\d+$/,vo=/^-?\d+(?:\.\d+)?$/,ia=/^(?:true|false)$/i;var Ye=w("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),bd={number:"number",bigint:"bigint",object:"date"};var aa=w("$ZodCheckGreaterThan",(e,t)=>{Ye.init(e,t);let r=bd[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var sa=w("$ZodCheckNumberFormat",(e,t)=>{Ye.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,a]=Yi[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=o,u.maximum=a,r&&(u.pattern=oa)}),e._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}u<o&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}});var ua=w("$ZodCheckMinLength",(e,t)=>{var r;Ye.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Wi(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let s=Qi(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var _o=w("$ZodCheckStringFormat",(e,t)=>{var r,n;Ye.init(e,t),e._zod.onattach.push(o=>{let a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),ca=w("$ZodCheckRegex",(e,t)=>{_o.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var pa={major:4,minor:3,patch:6};var ce=w("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=pa;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=i((s,u,p)=>{let d=Pt(s),g;for(let x of u){if(x._zod.def.when){if(!x._zod.def.when(s))continue}else if(d)continue;let v=s.issues.length,l=x._zod.check(s);if(l instanceof Promise&&p?.async===!1)throw new Ue;if(g||l instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await l,s.issues.length!==v&&(d||(d=Pt(s,v)))});else{if(s.issues.length===v)continue;d||(d=Pt(s,v))}}return g?g.then(()=>s):s},"runChecks"),a=i((s,u,p)=>{if(Pt(s))return s.aborted=!0,s;let d=o(u,n,p);if(d instanceof Promise){if(p.async===!1)throw new Ue;return d.then(g=>e._zod.parse(g,p))}return e._zod.parse(d,p)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let d=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return d instanceof Promise?d.then(g=>a(g,s,u)):a(d,s,u)}let p=e._zod.parse(s,u);if(p instanceof Promise){if(u.async===!1)throw new Ue;return p.then(d=>o(d,n,u))}return o(p,n,u)}}he(e,"~standard",()=>({validate:i(o=>{try{let a=Kt(e,o);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Jt(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Cr=w("$ZodString",(e,t)=>{ce.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ra(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Po=w("$ZodStringFormat",(e,t)=>{_o.init(e,t),Cr.init(e,t)});var ha=w("$ZodURL",(e,t)=>{Po.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var xo=w("$ZodNumber",(e,t)=>{ce.init(e,t),e._zod.pattern=e._zod.bag.pattern??vo,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),r}}),ya=w("$ZodNumberFormat",(e,t)=>{sa.init(e,t),xo.init(e,t)}),bo=w("$ZodBoolean",(e,t)=>{ce.init(e,t),e._zod.pattern=ia,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),va=w("$ZodBigInt",(e,t)=>{ce.init(e,t),e._zod.pattern=na,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var _a=w("$ZodAny",(e,t)=>{ce.init(e,t),e._zod.parse=r=>r}),Pa=w("$ZodUnknown",(e,t)=>{ce.init(e,t),e._zod.parse=r=>r});var xa=w("$ZodVoid",(e,t)=>{ce.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),ba=w("$ZodDate",(e,t)=>{ce.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,a=o instanceof Date;return a&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...a?{received:"Invalid Date"}:{},inst:e}),r}});function da(e,t,r){e.issues.length&&t.issues.push(...Je(r,e.issues)),t.value[r]=e.value}i(da,"handleArrayResult");var Ta=w("$ZodArray",(e,t)=>{ce.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let a=[];for(let s=0;s<o.length;s++){let u=o[s],p=t.element._zod.run({value:u,issues:[]},n);p instanceof Promise?a.push(p.then(d=>da(d,r,s))):da(p,r,s)}return a.length?Promise.all(a).then(()=>r):r}});function Dr(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...Je(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}i(Dr,"handlePropertyResult");function Td(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 r=Xi(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(Td,"normalizeDef");function Ed(e,t,r,n,o,a){let s=[],u=o.keySet,p=o.catchall._zod,d=p.def.type,g=p.optout==="optional";for(let x in t){if(u.has(x))continue;if(d==="never"){s.push(x);continue}let v=p.run({value:t[x],issues:[]},n);v instanceof Promise?e.push(v.then(l=>Dr(l,r,x,t,g))):Dr(v,r,x,t,g)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}i(Ed,"handleCatchall");var Ea=w("$ZodObject",(e,t)=>{if(ce.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let p={...u};return Object.defineProperty(t,"shape",{value:p}),p},"get")})}let n=$r(()=>Td(t));he(e._zod,"propValues",()=>{let u=t.shape,p={};for(let d in u){let g=u[d]._zod;if(g.values){p[d]??(p[d]=new Set);for(let x of g.values)p[d].add(x)}}return p});let o=Gt,a=t.catchall,s;e._zod.parse=(u,p)=>{s??(s=n.value);let d=u.value;if(!o(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value={};let g=[],x=s.shape;for(let v of s.keys){let l=x[v],f=l._zod.optout==="optional",y=l._zod.run({value:d[v],issues:[]},p);y instanceof Promise?g.push(y.then(h=>Dr(h,u,v,d,f))):Dr(y,u,v,d,f)}return a?Ed(g,d,u,p,n.value,e):g.length?Promise.all(g).then(()=>u):u}});function fa(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let o=e.filter(a=>!Pt(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>Xe(s,n,Fe())))}),t)}i(fa,"handleUnionResults");var To=w("$ZodUnion",(e,t)=>{ce.init(e,t),he(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),he(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),he(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),he(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>wr(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,a)=>{if(r)return n(o,a);let s=!1,u=[];for(let p of t.options){let d=p._zod.run({value:o.value,issues:[]},a);if(d instanceof Promise)u.push(d),s=!0;else{if(d.issues.length===0)return d;u.push(d)}}return s?Promise.all(u).then(p=>fa(p,o,e,a)):fa(u,o,e,a)}});var Ia=w("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,To.init(e,t);let r=e._zod.parse;he(e._zod,"propValues",()=>{let o={};for(let a of t.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[u,p]of Object.entries(s)){o[u]||(o[u]=new Set);for(let d of p)o[u].add(d)}}return o});let n=$r(()=>{let o=t.options,a=new Map;for(let s of o){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let p of u){if(a.has(p))throw new Error(`Duplicate discriminator value "${String(p)}"`);a.set(p,s)}}return a});e._zod.parse=(o,a)=>{let s=o.value;if(!Gt(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=n.value.get(s?.[t.discriminator]);return u?u._zod.run(o,a):t.unionFallback?r(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}});var Aa=w("$ZodRecord",(e,t)=>{ce.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Ki(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let a=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let d of s)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){u.add(typeof d=="number"?d.toString():d);let g=t.valueType._zod.run({value:o[d],issues:[]},n);g instanceof Promise?a.push(g.then(x=>{x.issues.length&&r.issues.push(...Je(d,x.issues)),r.value[d]=x.value})):(g.issues.length&&r.issues.push(...Je(d,g.issues)),r.value[d]=g.value)}let p;for(let d in o)u.has(d)||(p=p??[],p.push(d));p&&p.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:p})}else{r.value={};for(let u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let p=t.keyType._zod.run({value:u,issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&vo.test(u)&&p.issues.length){let x=t.keyType._zod.run({value:Number(u),issues:[]},n);if(x instanceof Promise)throw new Error("Async schemas not supported in object keys currently");x.issues.length===0&&(p=x)}if(p.issues.length){t.mode==="loose"?r.value[u]=o[u]:r.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(x=>Xe(x,n,Fe())),input:u,path:[u],inst:e});continue}let g=t.valueType._zod.run({value:o[u],issues:[]},n);g instanceof Promise?a.push(g.then(x=>{x.issues.length&&r.issues.push(...Je(u,x.issues)),r.value[p.value]=x.value})):(g.issues.length&&r.issues.push(...Je(u,g.issues)),r.value[p.value]=g.value)}}return a.length?Promise.all(a).then(()=>r):r}});var Sa=w("$ZodEnum",(e,t)=>{ce.init(e,t);let r=go(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>Ji.has(typeof o)).map(o=>typeof o=="string"?_t(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{let s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),$a=w("$ZodLiteral",(e,t)=>{if(ce.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?_t(n):n?_t(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}});var wa=w("$ZodTransform",(e,t)=>{ce.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Ar(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new Ue;return r.value=o,r}});function ma(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(ma,"handleOptionalResult");var Oa=w("$ZodOptional",(e,t)=>{ce.init(e,t),e._zod.optin="optional",e._zod.optout="optional",he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),he(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${wr(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>ma(a,r.value)):ma(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var za=w("$ZodNullable",(e,t)=>{ce.init(e,t),he(e._zod,"optin",()=>t.innerType._zod.optin),he(e._zod,"optout",()=>t.innerType._zod.optout),he(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${wr(r.source)}|null)$`):void 0}),he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var Ra=w("$ZodPipe",(e,t)=>{ce.init(e,t),he(e._zod,"values",()=>t.in._zod.values),he(e._zod,"optin",()=>t.in._zod.optin),he(e._zod,"optout",()=>t.out._zod.optout),he(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>kr(s,t.in,n)):kr(a,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(a=>kr(a,t.out,n)):kr(o,t.out,n)}});function kr(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(kr,"handlePipeResult");var ka=w("$ZodCustom",(e,t)=>{Ye.init(e,t),ce.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(a=>ga(a,r,n,e));ga(o,r,n,e)}});function ga(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(yo(o))}}i(ga,"handleRefineResult");var Ca;var Eo=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[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 r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Na(){return new Eo}i(Na,"registry");(Ca=globalThis).__zod_globalRegistry??(Ca.__zod_globalRegistry=Na());var Io=globalThis.__zod_globalRegistry;function Ua(e,t){return new e({type:"string",...ne(t)})}i(Ua,"_string");function Ma(e,t){return new e({type:"string",coerce:!0,...ne(t)})}i(Ma,"_coercedString");function La(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ne(t)})}i(La,"_url");function ja(e,t){return new e({type:"number",checks:[],...ne(t)})}i(ja,"_number");function Fa(e,t){return new e({type:"number",coerce:!0,checks:[],...ne(t)})}i(Fa,"_coercedNumber");function Ba(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ne(t)})}i(Ba,"_int");function Ha(e,t){return new e({type:"boolean",...ne(t)})}i(Ha,"_boolean");function Va(e,t){return new e({type:"boolean",coerce:!0,...ne(t)})}i(Va,"_coercedBoolean");function Za(e,t){return new e({type:"bigint",coerce:!0,...ne(t)})}i(Za,"_coercedBigint");function qa(e){return new e({type:"any"})}i(qa,"_any");function Ga(e){return new e({type:"unknown"})}i(Ga,"_unknown");function Wa(e,t){return new e({type:"void",...ne(t)})}i(Wa,"_void");function Ka(e,t){return new e({type:"date",coerce:!0,...ne(t)})}i(Ka,"_coercedDate");function Nr(e,t){return new aa({check:"greater_than",...ne(t),value:e,inclusive:!0})}i(Nr,"_gte");function ke(e,t){return new ua({check:"min_length",...ne(t),minimum:e})}i(ke,"_minLength");function Qe(e,t){return new ca({check:"string_format",format:"regex",...ne(t),pattern:e})}i(Qe,"_regex");function Ja(e,t,r){let n=ne(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}i(Ja,"_custom");var ye=w("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");ce.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>zr(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Kt(e,r,n),e.parseAsync=async(r,n)=>Rr(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Jt(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Or(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Mr=w("ZodMiniString",(e,t)=>{Cr.init(e,t),ye.init(e,t)});function c(e){return Ua(Mr,e)}i(c,"string");var Xa=w("ZodMiniStringFormat",(e,t)=>{Po.init(e,t),Mr.init(e,t)});var Ud=w("ZodMiniURL",(e,t)=>{ha.init(e,t),Xa.init(e,t)});function Ya(e){return La(Ud,e)}i(Ya,"url");var Lr=w("ZodMiniNumber",(e,t)=>{xo.init(e,t),ye.init(e,t)});function be(e){return ja(Lr,e)}i(be,"number");var Md=w("ZodMiniNumberFormat",(e,t)=>{ya.init(e,t),Lr.init(e,t)});function Qa(e){return Ba(Md,e)}i(Qa,"int");var Ao=w("ZodMiniBoolean",(e,t)=>{bo.init(e,t),ye.init(e,t)});function Y(e){return Ha(Ao,e)}i(Y,"boolean");var es=w("ZodMiniBigInt",(e,t)=>{va.init(e,t),ye.init(e,t)});var Ld=w("ZodMiniAny",(e,t)=>{_a.init(e,t),ye.init(e,t)});function Yt(){return qa(Ld)}i(Yt,"any");var jd=w("ZodMiniUnknown",(e,t)=>{Pa.init(e,t),ye.init(e,t)});function U(){return Ga(jd)}i(U,"unknown");var Fd=w("ZodMiniVoid",(e,t)=>{xa.init(e,t),ye.init(e,t)});function ts(e){return Wa(Fd,e)}i(ts,"_void");var rs=w("ZodMiniDate",(e,t)=>{ba.init(e,t),ye.init(e,t)});var Bd=w("ZodMiniArray",(e,t)=>{Ta.init(e,t),ye.init(e,t)});function F(e,t){return new Bd({type:"array",element:e,...ne(t)})}i(F,"array");var Hd=w("ZodMiniObject",(e,t)=>{Ea.init(e,t),ye.init(e,t),he(e,"shape",()=>t.shape)});function m(e,t){let r={type:"object",shape:e??{},...ne(t)};return new Hd(r)}i(m,"object");var Vd=w("ZodMiniUnion",(e,t)=>{To.init(e,t),ye.init(e,t)});function B(e,t){return new Vd({type:"union",options:e,...ne(t)})}i(B,"union");var Zd=w("ZodMiniDiscriminatedUnion",(e,t)=>{Ia.init(e,t),ye.init(e,t)});function et(e,t,r){return new Zd({type:"union",options:t,discriminator:e,...ne(r)})}i(et,"discriminatedUnion");var qd=w("ZodMiniRecord",(e,t)=>{Aa.init(e,t),ye.init(e,t)});function M(e,t,r){return new qd({type:"record",keyType:e,valueType:t,...ne(r)})}i(M,"record");var Gd=w("ZodMiniEnum",(e,t)=>{Sa.init(e,t),ye.init(e,t),e.options=Object.values(t.entries)});function W(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Gd({type:"enum",entries:r,...ne(t)})}i(W,"_enum");var Wd=w("ZodMiniLiteral",(e,t)=>{$a.init(e,t),ye.init(e,t)});function k(e,t){return new Wd({type:"literal",values:Array.isArray(e)?e:[e],...ne(t)})}i(k,"literal");var Kd=w("ZodMiniTransform",(e,t)=>{wa.init(e,t),ye.init(e,t)});function tt(e){return new Kd({type:"transform",transform:e})}i(tt,"transform");var Jd=w("ZodMiniOptional",(e,t)=>{Oa.init(e,t),ye.init(e,t)});function _(e){return new Jd({type:"optional",innerType:e})}i(_,"optional");var Xd=w("ZodMiniNullable",(e,t)=>{za.init(e,t),ye.init(e,t)});function Qt(e){return new Xd({type:"nullable",innerType:e})}i(Qt,"nullable");var Yd=w("ZodMiniPipe",(e,t)=>{Ra.init(e,t),ye.init(e,t)});function rt(e,t){return new Yd({type:"pipe",in:e,out:t})}i(rt,"pipe");var Qd=w("ZodMiniCustom",(e,t)=>{ka.init(e,t),ye.init(e,t)});function jr(e,t){return Ja(Qd,e??(()=>!0),t)}i(jr,"custom");var er={};po(er,{bigint:()=>af,boolean:()=>of,date:()=>sf,number:()=>nf,string:()=>rf});function rf(e){return Ma(Mr,e)}i(rf,"string");function nf(e){return Fa(Lr,e)}i(nf,"number");function of(e){return Va(Ao,e)}i(of,"boolean");function af(e){return Za(es,e)}i(af,"bigint");function sf(e){return Ka(rs,e)}i(sf,"date");var $o=m({retryOnFailure:m({defaultValue:_(Y()),hide:_(Y())}),continueOnFailure:m({defaultValue:_(Y()),hide:_(Y())})}),So=class{constructor(t,r,n,o,a,s,u,p,d,g,x){this.name=t;this.displayName=r;this.description=n;this.props=o;this.run=a;this.test=s;this.requireAuth=u;this.errorHandlingOptions=p;this.outputSchema=d;this.audience=g;this.aiMetadata=x}static{i(this,"IAction")}},oe=i(e=>new So(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var Q=m({displayName:c(),description:_(c())}),q=i((e,t)=>m({type:k(t),required:Y(),defaultValue:_(Yt())}),"TPropertyValue");var Se=m({...Q.shape,...q(c(),"SHORT_TEXT").shape}),Be=m({...Q.shape,...q(c(),"LONG_TEXT").shape});var os=m({label:c(),value:U()}),Fr=m({disabled:_(Y()),placeholder:_(c()),options:F(os)});var $e=m({...Q.shape,options:Fr,...q(U(),"STATIC_DROPDOWN").shape}),He=m({...Q.shape,options:Fr,...q(F(U()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var wo=m({...Q.shape,...q(U(),"DROPDOWN").shape,refreshers:F(c())}),tr=m({...Q.shape,...q(F(U()),"MULTI_SELECT_DROPDOWN").shape,refreshers:F(c())});var Ve=m({...Q.shape,...q(Y(),"CHECKBOX").shape});var Ze=m({...Q.shape,...q(be(),"NUMBER").shape});var rr=m({...Q.shape,streaming:_(Y()),...q(U(),"FILE").shape});var nr=m({...Q.shape,...q(c(),"DATE_TIME").shape});var is=M(c(),B([Se,Be,$e,tr,He,Ve,Ze,rr,nr])),or=m({...Q.shape,properties:is,...q(F(U()),"ARRAY").shape});var ir=m({...Q.shape,...q(B([M(c(),U())]),"JSON").shape});var as=B([Se,$e,ir,or,He]),cf=M(c(),as),Oo=m({refreshers:F(c()),...Q.shape,...q(U(),"DYNAMIC").shape});var Br=m({...Q.shape,...q(ts(),"MARKDOWN").shape});var ar=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(ar||{}),xt=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(xt||{}),sr=(P=>(P.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",P.COMMUNICATION="COMMUNICATION",P.COMMERCE="COMMERCE",P.CORE="CORE",P.UNIVERSAL_AI="UNIVERSAL_AI",P.FLOW_CONTROL="FLOW_CONTROL",P.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",P.ACCOUNTING="ACCOUNTING",P.PRODUCTIVITY="PRODUCTIVITY",P.CONTENT_AND_FILES="CONTENT_AND_FILES",P.DEVELOPER_TOOLS="DEVELOPER_TOOLS",P.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",P.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",P.HUMAN_RESOURCES="HUMAN_RESOURCES",P.PAYMENT_PROCESSING="PAYMENT_PROCESSING",P.MARKETING="MARKETING",P.SALES_AND_CRM="SALES_AND_CRM",P))(sr||{});var ur=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(ur||{}),zo="both_client_credentials_and_authorization_code";var Me=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Me||{}),cr=(a=>(a.NONE="NONE",a.HEADER_PRESENT="HEADER_PRESENT",a.QUERY_PRESENT="QUERY_PRESENT",a.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",a.HEAD_REQUEST="HEAD_REQUEST",a))(cr||{}),lf=m({strategy:W(cr),paramName:_(c())}),lr=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(lr||{});var Hr=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Hr||{}),ss=m({status:_(be()),body:_(U()),headers:_(M(c(),c()))}),us=m({type:k("DELAY"),resumeDateTime:c(),requestIdToReply:_(c()),handlerId:_(c()),streamStepProgress:_(W(Hr))}),cs=m({type:k("WEBHOOK"),requestId:c(),requestIdToReply:_(c()),response:ss,handlerId:_(c()),streamStepProgress:_(W(Hr))}),pf=B([us,cs]);var df=m({body:U(),rawBody:_(U()),headers:M(c(),c()),queryParams:M(c(),c())});function ge(e){return e==null}i(ge,"isNil");function pr(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}i(pr,"isEmpty");function Vr(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}i(Vr,"assertNotNullOrUndefined");var Ro=Ne(require("crypto"),1);var ff=128,pt,bt,mf=i(e=>{!pt||pt.length<e?(pt=Buffer.allocUnsafe(e*ff),Ro.default.randomFillSync(pt),bt=0):bt+e>pt.length&&(Ro.default.randomFillSync(pt),bt=0),bt+=e},"fillPool"),gf=i(e=>(mf(e|=0),pt.subarray(bt-e,bt)),"random"),hf=i((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(a=t)=>{let s="";for(;;){let u=r(o),p=o;for(;p--;)if(s+=e[u[p]&n]||"",s.length===a)return s}}},"customRandom"),ps=i((e,t=21)=>hf(e,t,gf),"customAlphabet");var yf="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ds=21,G$=c().check(Qe(new RegExp(`^[0-9a-zA-Z]{${ds}}$`))),vf=ps(yf,ds);var nt=rt(tt(e=>e instanceof Date?e.toISOString():e),c()),Oe={id:c(),created:nt,updated:nt},ae=i(e=>_(Qt(e)),"Nullable");function ko(e){return _(Qt(W(e)))}i(ko,"NullableEnum");var J$=rt(tt(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),_(Y())),Zr=i(e=>rt(tt(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),_(F(e))),"OptionalArrayFromQuery");var Q$=M(c(),U());var dr=(g=>(g.OPENAI="openai",g.OPENROUTER="openrouter",g.ANTHROPIC="anthropic",g.AZURE="azure",g.GOOGLE="google",g.ACTIVEPIECES="activepieces",g.CLOUDFLARE_GATEWAY="cloudflare-gateway",g.CUSTOM="custom",g.BEDROCK="bedrock",g.MISTRAL="mistral",g))(dr||{});var pw=c().check(Qe(/^#[0-9A-Fa-f]{6}$/));var fw=m({filename:c(),data:U(),type:k("file"),mimetype:_(c())});var _f=Ne(ms());var Pw=m({...Oe,name:c(),permissions:F(c()),platformId:ae(c()),type:c(),userCount:_(be())});var gs=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(gs||{}),Do=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Do||{}),Co=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Co||{});var No=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(No||{});var Uo=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Uo||{});var Pf=m({mode:W(gs),value:U()}),xf=m({auth:_(c()),fields:M(c(),Pf)}),bf=m({pieceName:c(),pieceVersion:c(),actionName:c(),predefinedInput:_(xf)}),Tf=m({type:k("PIECE"),toolName:c().check(ke(1)),pieceMetadata:bf}),Ef=m({type:k("none")}),If=m({type:k("access_token"),accessToken:c()}),Af=m({type:k("api_key"),apiKey:c(),apiKeyHeader:c()}),Sf=m({type:k("headers"),headers:M(c(),c())}),$f=et("type",[Ef,If,Af,Sf]),hs=m({type:k("FLOW"),toolName:c().check(ke(1)),externalFlowId:c(),flowDisplayName:_(c())}),ys=m({type:k("MCP"),toolName:c().check(ke(1)),serverUrl:Ya(),protocol:W(Co),auth:$f}),vs=m({type:k("KNOWLEDGE_BASE"),toolName:c().check(ke(1)),sourceType:W(Do),sourceId:c(),sourceName:c()}),wf=et("type",[Tf,hs,ys,vs]),Of=m({displayName:c(),description:_(c()),type:W(No)}),_s=m({type:k("MARKDOWN"),markdown:c()}),Tt={type:k("TOOL_CALL"),input:ae(M(c(),U())),output:_(U()),toolName:c(),status:W(Uo),toolCallId:c(),startTime:c(),endTime:_(c())},Xw=m(Tt),Ps=et("toolCallType",[m({...Tt,toolCallType:k("PIECE"),pieceName:c(),pieceVersion:c(),actionName:c()}),m({...Tt,toolCallType:k("FLOW"),displayName:c(),externalFlowId:c()}),m({...Tt,toolCallType:k("MCP"),displayName:c(),serverUrl:c()}),m({...Tt,toolCallType:k("KNOWLEDGE_BASE"),displayName:c(),sourceType:c()}),m({...Tt,toolCallType:k("UNKNOWN"),displayName:c()})]),zf=B([_s,Ps]);var Mo=(r=>(r.IMAGE="image",r.TEXT="text",r))(Mo||{}),qe=m({apiKey:c()}),Rf=qe,kf=m({apiKey:c(),apiKeyHash:c()}),Df=qe,Cf=qe,Nf=qe,Uf=qe,Mf=qe,Lf=qe,jf=qe,Is=m({accessKeyId:c().check(ke(1)),secretAccessKey:c().check(ke(1))}),Ff=m({}),Bf=m({}),Hf=m({}),Vf=m({}),Zf=m({}),qf=m({}),As=m({modelId:c(),modelName:c(),modelType:W(Mo)}),Ss=m({apiKeyHeader:c(),baseUrl:c(),models:F(As),defaultHeaders:_(M(c(),c()))}),$s=m({accountId:c(),gatewayId:c(),models:F(As),vertexProject:_(c()),vertexRegion:_(c())}),ws=m({resourceName:c(),apiVersion:rt(tt(e=>typeof e=="string"&&e.trim().length===0?void 0:e),_(c()))}),Os=m({region:c().check(ke(1))}),Gf=B([Rf,Nf,Uf,Mf,Lf,Cf,Df,kf,Is,jf]),zs=B([Ss,$s,ws,Os,Ff,Hf,Vf,Zf,Bf,qf]),Wf=m({id:c(),name:c(),type:W(Mo)}),Kf=m({id:c(),name:c(),provider:W(dr),config:zs,enabledForChat:Y()}),Jf=m({provider:W(dr),config:zs,auth:Gf,platformId:c()});var tO={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},xs=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],Xf=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],Yf=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],bs=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],Qf=["grok-4.20","grok-4.1-fast"],em={openai:xs,anthropic:Xf,google:bs,activepieces:[...Yf.map(e=>`anthropic/${e}`),...xs.map(e=>`openai/${e}`),...bs.map(e=>`google/${e}`),...Qf.map(e=>`x-ai/${e}`)]};var Ts=128e3,tm={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function rm({provider:e}){return e?tm[e]??Ts:Ts}i(rm,"getMaxContextTokens");var Es={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"},nm={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},om=new Set(["anthropic","mistral"]);function Le(e){return{chatModels:em[e],maxContextTokens:rm({provider:e}),defaultEmbeddingModel:Es[e],supportsEmbedding:Es[e]!==void 0,supportsImageGeneration:!om.has(e),webSearch:nm[e]}}i(Le,"buildProviderCapabilities");var im={openai:Le("openai"),anthropic:Le("anthropic"),openrouter:Le("openrouter"),azure:Le("azure"),google:Le("google"),"cloudflare-gateway":Le("cloudflare-gateway"),custom:Le("custom"),bedrock:Le("bedrock"),mistral:Le("mistral"),activepieces:Le("activepieces")};var am=m({base64Url:c(),fileName:c(),extension:_(c())}),sm=m({mimeType:c(),url:c(),fileName:_(c())}),Lo=B([am,sm]);var um=B([m({type:k("file"),value:Lo}),m({type:k("markdown"),value:c(),files:_(F(Lo))})]),cm=m({sessionId:c(),message:c(),files:_(F(c()))});var ks=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(ks||{}),Ds=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(Ds||{}),jo=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(jo||{});var lm=B([m({...Oe,name:c(),externalId:c(),type:k("STATIC_DROPDOWN"),tableId:c(),projectId:c(),data:m({options:F(m({value:c()}))})}),m({...Oe,name:c(),externalId:c(),type:B([k("TEXT"),k("NUMBER"),k("DATE")]),tableId:c(),projectId:c()})]),pm=m({...Oe,name:c(),folderId:ae(c()),projectId:c(),externalId:c(),status:ko(Ds),trigger:ko(ks)}),dm=m({...Oe,tableId:c(),projectId:c(),cells:M(c(),m({updated:c(),created:c(),value:U(),fieldName:c()}))}),fm=m({events:F(W(jo)),webhookUrl:c(),flowId:c()}),mm=m({fields:F(m({id:c(),name:c()})),rows:F(M(c(),c())),name:c()}),gm=m({projectId:c(),limit:_(er.number()),cursor:_(c()),name:_(c()),externalIds:Zr(c()),folderId:_(c()),folderIds:Zr(c())}),hm=m({records:F(F(m({fieldId:c(),value:Ns()}))),tableId:c()}),ym=m({cells:_(F(m({fieldId:c(),value:Ns()}))),tableId:c(),agentUpdate:_(Y())}),Cs=et("operator",[dt("eq"),dt("neq"),dt("gt"),dt("gte"),dt("lt"),dt("lte"),dt("co"),Rs("exists"),Rs("not_exists")]),vm=m({tableId:c(),limit:_(er.number()),cursor:_(c()),filters:Zr(Cs)});function Ns(){return rt(tt(e=>e==null?e:String(e)),Qt(c()))}i(Ns,"coerceToString");function dt(e){return m({fieldId:c(),operator:k(e),value:c()})}i(dt,"valueFilter");function Rs(e){return m({fieldId:c(),operator:k(e)})}i(Rs,"existenceFilter");var _m=m({status:_(be()),body:_(U()),headers:_(M(c(),c()))}),Pm=m({...Oe,deleted:ae(nt),ownerId:c(),displayName:c(),platformId:c(),externalId:ae(c())});var Us=m({name:c(),description:_(c()),type:c(),required:Y()}),xm=m({pieceName:c(),triggerName:c(),input:m({toolName:c(),toolDescription:c(),inputSchema:F(Us),returnsResponse:Y()})});var Ms="^[0-9]+\\.[0-9]+\\.[0-9]+$",PO=new RegExp(Ms),Tm="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",xO=c().check(Qe(new RegExp(Ms))),bO=c().check(Qe(new RegExp(Tm))),Em=m({packageType:k("ARCHIVE"),pieceType:W(xt),pieceName:c(),pieceVersion:c(),archiveId:c(),platformId:c()}),Ls=m({packageType:k("REGISTRY"),pieceType:k("OFFICIAL"),pieceName:c(),pieceVersion:c()}),js=m({packageType:k("REGISTRY"),pieceType:k("CUSTOM"),pieceName:c(),pieceVersion:c(),platformId:c()}),TO=B([Ls,js]),EO=B([Em,Ls,js]);var Im=et("type",[m({type:k("CRON_EXPRESSION"),cronExpression:c(),timezone:c()}),m({type:k("INTERVAL"),intervalMs:Qa().check(Nr(6e4))})]),IO=m({...Oe,type:W(Me),projectId:c(),flowId:c(),triggerName:c(),schedule:ae(Im),flowVersionId:c(),pieceName:c(),pieceVersion:c(),deleted:ae(c()),simulate:Y()}),Fs=(h=>(h.UNKNOWN="UNKNOWN",h.FLOW_RUN_LOG="FLOW_RUN_LOG",h.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",h.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",h.FLOW_STEP_FILE="FLOW_STEP_FILE",h.SAMPLE_DATA="SAMPLE_DATA",h.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",h.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",h.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",h.PROJECT_RELEASE="PROJECT_RELEASE",h.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",h.PLATFORM_ASSET="PLATFORM_ASSET",h.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",h.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",h.KNOWLEDGE_BASE="KNOWLEDGE_BASE",h.FLOW_BUNDLE="FLOW_BUNDLE",h))(Fs||{}),Bs=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(Bs||{}),Hs=(r=>(r.S3="S3",r.DB="DB",r))(Hs||{}),AO=m({...Oe,projectId:ae(c()),platformId:ae(c()),type:W(Fs),compression:W(Bs),data:_(U()),location:W(Hs),size:ae(be()),fileName:ae(c()),s3Key:ae(c()),metadata:ae(M(c(),c()))}),Vs=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(Vs||{}),Zs=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(Zs||{}),SO=m({id:c(),email:c(),firstName:c(),status:W(Zs),externalId:ae(c()),platformId:ae(c()),platformRole:W(Vs),lastName:c(),created:nt,updated:nt,lastActiveDate:ae(nt),imageUrl:ae(c())});var Fo=m({...Q.shape,...q(M(c(),U()),"OBJECT").shape});var Ks=m({...Q.shape,...q(c(),"COLOR").shape});var Bo=B([Se,Be,Br,Ve,$e,He,wo,tr,Oo,Ze,or,Fo,ir,nr,rr,Ks]),R={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"}},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"}},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 je=m({displayName:c(),description:_(c()),hasConnectionIdentifier:_(Y())});var Js=m({username:c(),password:c()}),Ho=m({...je.shape,username:m({displayName:c(),description:_(c())}),password:m({displayName:c(),description:_(c())}),...q(Js,"BASIC_AUTH").shape});var wm=M(c(),B([Se,Be,Ze,Ve,$e])),Vo=m({...je.shape,props:wm,...q(U(),"CUSTOM_AUTH").shape});var ft=m({...je.shape,...q(m({auth:c()}),"SECRET_TEXT").shape});var Om=M(c(),B([Se,Be,ft,Ze,Ve,$e,He,Br])),Xs=m({...je.shape,props:Om,...q(U(),"OIDC").shape});var Zo=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Zo||{}),Ys=B([Se,ft,$e]),Qs=M(c(),Ys),zm=m({props:_(M(c(),Ys)),authUrl:c(),tokenUrl:c(),scope:F(c()),prompt:_(B([k("none"),k("consent"),k("login"),k("omit")])),pkce:_(Y()),pkceMethod:_(B([k("plain"),k("S256")])),authorizationMethod:_(W(Zo)),grantType:_(B([W(ur),k(zo)])),extra:_(M(c(),c()))}),eu=m({access_token:c(),props:_(Qs),data:M(c(),Yt())}),qo=m({...je.shape,...zm.shape,...q(eu,"OAUTH2").shape});var Et=B([Ho,Vo,Xs,qo,ft]),fr="Connection",Go={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||fr}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||fr,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||fr}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||fr}},None(){}};var iR={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 Rm=m({...Q.shape,...q(U(),"CUSTOM").shape,code:c()});var km=B([Bo,Et]),Wo=M(c(),km),IR=M(c(),Bo);var tu=B([m({strategy:k("CRON"),cronExpression:c()}),m({strategy:k("NONE")})]),It=class{constructor(t,r,n,o,a,s,u,p,d,g,x,v,l,f,y,h,P,T,H){this.name=t;this.displayName=r;this.description=n;this.requireAuth=o;this.props=a;this.type=s;this.handshakeConfiguration=u;this.onHandshake=p;this.renewConfiguration=d;this.onRenew=g;this.onEnable=x;this.onDisable=v;this.onStart=l;this.run=f;this.test=y;this.sampleData=h;this.testStrategy=P;this.outputSchema=T;this.aiMetadata=H}static{i(this,"ITrigger")}},At=i(e=>{switch(e.type){case"WEBHOOK":return new It(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);case"POLLING":return new It(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);case"MANUAL":return new It(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);case"APP_WEBHOOK":return new It(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,ge(e.sampleData)&&ge(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var ru="2",Gr="0.82.0";var Ko=class{constructor(t,r,n,o,a,s,u,p,d=Gr,g,x="",v){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=u;this.auth=p;this.minimumSupportedRelease=d;this.maximumSupportedRelease=g;this.description=x;this.deprecated=v;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:ru}),"getContextInfo");(!Cm(d)||Nm(d,Gr))&&(this.minimumSupportedRelease=Gr),a.forEach(l=>this._actions[l.name]=l),s.forEach(l=>this._triggers[l.name]=l)}static{i(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:Dm(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}},ou=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(a=>a.type===r.type)))throw new Error("Auth properties must be unique by type");return new Ko(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 Dm(e){if(e!==void 0)return Array.isArray(e)?e.map(nu):nu(e)}i(Dm,"withConnectionIdentifierFlag");function nu(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}i(nu,"flagConnectionIdentifier");function Cm(e){return/^\d+\.\d+\.\d+$/.test(e)}i(Cm,"isValidSimpleSemver");function Nm(e,t){let[r,n,o]=e.split(".").map(Number),[a,s,u]=t.split(".").map(Number);return r!==a?r<a:n!==s?n<s:o<u}i(Nm,"isSemverLessThan");var Um=_(M(c(),M(c(),c()))),iu=m({id:_(c()),name:c(),displayName:c(),logoUrl:c(),description:c(),authors:F(c()),platformId:_(c()),directoryPath:_(c()),auth:_(B([Et,F(Et)])),version:c(),categories:_(F(W(sr))),minimumSupportedRelease:_(c()),maximumSupportedRelease:_(c()),deprecated:_(Y()),i18n:Um}),Mm=W(["human","ai","both"]),au=m({description:_(c()),idempotent:_(Y())}),su=m({name:c(),displayName:c(),description:c(),props:Wo,requireAuth:Y(),errorHandlingOptions:_($o),outputSchema:_(jr()),audience:_(Mm),aiMetadata:_(au)}),uu=m({name:c(),displayName:c(),description:c(),props:Wo,errorHandlingOptions:_($o),type:W(Me),sampleData:U(),handshakeConfiguration:_(jr()),renewConfiguration:_(tu),testStrategy:W(lr),outputSchema:_(jr()),aiMetadata:_(au)}),Lm=m({...iu.shape,actions:M(c(),su),triggers:M(c(),uu)}),jm=m({...iu.shape,actions:be(),triggers:be(),suggestedActions:_(F(su)),suggestedTriggers:_(F(uu))}),cu=m({projectUsage:be(),pieceType:W(xt),packageType:W(ar),platformId:_(c()),archiveId:_(c())}),Ik=m({...Lm.shape,...cu.shape}),Ak=m({...jm.shape,...cu.shape}),Sk=m({name:c(),version:c()});var Fm=Ne(require("path")),Bm=Ne(require("fs/promises"));var mr="login.microsoftonline.com",pu="login.microsoftonline.us",lu={[mr]:"https://graph.microsoft.com",[pu]:"https://graph.microsoft.us"},du=R.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:mr,options:{disabled:!1,options:[{label:"Commercial (Global)",value:mr},{label:"US Government (GCC High)",value:pu}]}});function fu(e){return e??mr}i(fu,"resolveCloudHost");function St(e){return fu(e.props?.cloud)}i(St,"getMicrosoftCloudFromAuth");function $t(e){let t=fu(e);return lu[t]??lu[mr]}i($t,"getGraphBaseUrl");var wc=Ne($c());var uy=`
4
+ 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})();xu.BatchRequestContent=JS});var N_=I(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.BatchResponseContent=void 0;var XS=(xe(),he(Pe)),KS=(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 XS.__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})();bu.BatchResponseContent=KS});var fm=I(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.GRAPH_URLS=qt.GRAPH_BASE_URL=qt.GRAPH_API_VERSION=void 0;qt.GRAPH_API_VERSION="v1.0";qt.GRAPH_BASE_URL="https://graph.microsoft.com/";qt.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 It=I(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.GraphClientError=void 0;var YS=(xe(),he(Pe)),QS=(function(e){YS.__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);Eu.GraphClientError=QS});var Tu=I(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isCustomHost=at.isGraphURL=at.serializeContent=at.urlJoin=at.oDataQueryNames=void 0;var e$=fm(),t$=It();at.oDataQueryNames=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"];var r$=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");at.urlJoin=r$;var n$=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=n$;var o$=s(function(e){return M_(e)},"isGraphURL");at.isGraphURL=o$;var i$=s(function(e,t){return t.forEach(function(n){return a$(n)}),M_(e,t)},"isCustomHost");at.isCustomHost=i$;var M_=s(function(e,t){if(t===void 0&&(t=e$.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"),a$=s(function(e){if(e.indexOf("/")!==-1)throw new t$.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 Gt=I(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.MiddlewareControl=void 0;var s$=(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})();Au.MiddlewareControl=s$});var pn=I(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.cloneRequestWithNewUrl=st.appendRequestHeader=st.setRequestHeader=st.getRequestHeader=st.generateUUID=void 0;var U_=(xe(),he(Pe)),u$=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=u$;var c$=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");st.getRequestHeader=c$;var l$=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");st.setRequestHeader=l$;var p$=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");st.appendRequestHeader=p$;var d$=s(function(e,t){return U_.__awaiter(void 0,void 0,void 0,function(){var n,o,r,i,a,u,c,l,f,y,h,p,g;return U_.__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,f=t.cache,y=t.redirect,h=t.integrity,p=t.keepalive,g=t.signal,[2,new Request(e,{method:r,headers:i,body:n,referrer:a,referrerPolicy:u,mode:c,credentials:l,cache:f,redirect:y,integrity:h,keepalive:p,signal:g})]}})})},"cloneRequestWithNewUrl");st.cloneRequestWithNewUrl=d$});var mm=I(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.AuthenticationHandlerOptions=void 0;var f$=(function(){function e(t,n){this.authenticationProvider=t,this.authenticationProviderOptions=n}return s(e,"AuthenticationHandlerOptions"),e})();Iu.AuthenticationHandlerOptions=f$});var fn=I(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.TelemetryHandlerOptions=dn.FeatureUsageFlag=void 0;var L_=Gt(),gm;(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"})(gm||(dn.FeatureUsageFlag=gm={}));var m$=(function(){function e(){this.featureUsage=gm.NONE}return s(e,"TelemetryHandlerOptions"),e.updateFeatureUsageFlag=function(t,n){var o;t.middlewareControl instanceof L_.MiddlewareControl?o=t.middlewareControl.getMiddlewareOptions(e):t.middlewareControl=new L_.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})();dn.TelemetryHandlerOptions=m$});var $u=I(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.AuthenticationHandler=void 0;var j_=(xe(),he(Pe)),F_=Tu(),g$=Gt(),h$=pn(),y$=mm(),B_=fn(),v$=(function(){function e(t){this.authenticationProvider=t}return s(e,"AuthenticationHandler"),e.prototype.execute=function(t){return j_.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u;return j_.__generator(this,function(c){switch(c.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,F_.isGraphURL)(n)||t.customHosts&&(0,F_.isCustomHost)(n,t.customHosts)?(o=void 0,t.middlewareControl instanceof g$.MiddlewareControl&&(o=t.middlewareControl.getMiddlewareOptions(y$.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,h$.appendRequestHeader)(t.request,t.options,e.AUTHORIZATION_HEADER,u),B_.TelemetryHandlerOptions.updateFeatureUsageFlag(t,B_.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})();Su.AuthenticationHandler=v$});var wu=I(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.HTTPMessageHandler=void 0;var Z_=(xe(),he(Pe)),_$=(function(){function e(){}return s(e,"HTTPMessageHandler"),e.prototype.execute=function(t){return Z_.__awaiter(this,void 0,void 0,function(){var n;return Z_.__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})();Ou.HTTPMessageHandler=_$});var Ri=I(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.RetryHandlerOptions=void 0;var P$=(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})();Ru.RetryHandlerOptions=P$});var ku=I(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.RetryHandler=void 0;var mn=(xe(),he(Pe)),hm=wi(),x$=Gt(),V_=pn(),H_=Ri(),q_=fn(),b$=(function(){function e(t){t===void 0&&(t=new H_.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===hm.RequestMethod.PUT||o===hm.RequestMethod.PATCH||o===hm.RequestMethod.POST;if(r){var i=(0,V_.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 mn.__awaiter(this,void 0,void 0,function(){var n;return mn.__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 x$.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof n>"u"&&(n=Object.assign(new H_.RetryHandlerOptions,this.options)),n},e.prototype.executeWithRetry=function(t,n,o){return mn.__awaiter(this,void 0,void 0,function(){var r;return mn.__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,V_.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 mn.__awaiter(this,void 0,void 0,function(){var n,o;return mn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),q_.TelemetryHandlerOptions.updateFeatureUsageFlag(t,q_.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=b$});var zi=I(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.RedirectHandlerOptions=void 0;var E$=(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})();Cu.RedirectHandlerOptions=E$});var Nu=I(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.RedirectHandler=void 0;var gn=(xe(),he(Pe)),T$=wi(),A$=Gt(),I$=pn(),ym=zi(),G_=fn(),S$=(function(){function e(t){t===void 0&&(t=new ym.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 gn.__awaiter(this,void 0,void 0,function(){var o,r;return gn.__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,I$.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 A$.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(ym.RedirectHandlerOptions)),typeof n>"u"&&(n=Object.assign(new ym.RedirectHandlerOptions,this.options)),n},e.prototype.executeWithRedirect=function(t,n,o){return gn.__awaiter(this,void 0,void 0,function(){var r,i;return gn.__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=T$.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 gn.__awaiter(this,void 0,void 0,function(){var n,o;return gn.__generator(this,function(r){switch(r.label){case 0:return n=0,o=this.getOptions(t),t.options.redirect=e.MANUAL_REDIRECT,G_.TelemetryHandlerOptions.updateFeatureUsageFlag(t,G_.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})();Du.RedirectHandler=S$});var W_=I(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.PACKAGE_VERSION=void 0;Mu.PACKAGE_VERSION="3.0.7"});var ju=I(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.TelemetryHandler=void 0;var J_=(xe(),he(Pe)),X_=Tu(),$$=W_(),O$=Gt(),Uu=pn(),w$=fn(),R$=(function(){function e(){}return s(e,"TelemetryHandler"),e.prototype.execute=function(t){return J_.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a;return J_.__generator(this,function(u){switch(u.label){case 0:return n=typeof t.request=="string"?t.request:t.request.url,(0,X_.isGraphURL)(n)||t.customHosts&&(0,X_.isCustomHost)(n,t.customHosts)?(o=(0,Uu.getRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER),o||(o=(0,Uu.generateUUID)(),(0,Uu.setRequestHeader)(t.request,t.options,e.CLIENT_REQUEST_ID_HEADER,o)),r="".concat(e.PRODUCT_NAME,"/").concat($$.PACKAGE_VERSION),i=void 0,t.middlewareControl instanceof O$.MiddlewareControl&&(i=t.middlewareControl.getMiddlewareOptions(w$.TelemetryHandlerOptions)),i&&(a=i.getFeatureUsage(),r+=" (".concat(e.FEATURE_USAGE_STRING,"=").concat(a,")")),(0,Uu.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})();Lu.TelemetryHandler=R$});var K_=I(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.MiddlewareFactory=void 0;var z$=$u(),k$=wu(),C$=zi(),D$=Ri(),N$=Nu(),M$=ku(),U$=ju(),L$=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),j$=(function(){function e(){}return s(e,"MiddlewareFactory"),e.getDefaultMiddlewareChain=function(t){var n=[],o=new z$.AuthenticationHandler(t),r=new M$.RetryHandler(new D$.RetryHandlerOptions),i=new U$.TelemetryHandler,a=new k$.HTTPMessageHandler;if(n.push(o),n.push(r),L$()){var u=new N$.RedirectHandler(new C$.RedirectHandlerOptions);n.push(u)}return n.push(i),n.push(a),n},e})();Fu.MiddlewareFactory=j$});var Zu=I(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.ChaosStrategy=void 0;var Y_;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(Y_||(Bu.ChaosStrategy=Y_={}))});var vm=I(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.ChaosHandlerOptions=void 0;var F$=Zu(),B$=(function(){function e(t,n,o,r,i,a){if(t===void 0&&(t=F$.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})();Vu.ChaosHandlerOptions=B$});var Q_=I(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.httpStatusCode=hn.methodStatusCode=void 0;hn.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]};hn.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 rP=I(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.ChaosHandler=void 0;var Hu=(xe(),he(Pe)),Z$=Gt(),V$=pn(),eP=Q_(),_m=vm(),tP=Zu(),H$=(function(){function e(t,n){t===void 0&&(t=new _m.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=eP.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,V$.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 Hu.__awaiter(this,void 0,void 0,function(){return Hu.__generator(this,function(o){switch(o.label){case 0:return this.setStatusCode(t,n.request,n.options.method),t.chaosStrategy===tP.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=eP.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===tP.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 Z$.MiddlewareControl&&(n=t.middlewareControl.getMiddlewareOptions(_m.ChaosHandlerOptions)),typeof n>"u"&&(n=Object.assign(new _m.ChaosHandlerOptions,this.options)),n},e.prototype.execute=function(t){return Hu.__awaiter(this,void 0,void 0,function(){var n;return Hu.__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})();qu.ChaosHandler=H$});var ki=I(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.ResponseType=void 0;var nP;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(nP||(Gu.ResponseType=nP={}))});var xm=I(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.GraphResponseHandler=yn.DocumentType=void 0;var Wu=(xe(),he(Pe)),xr=ki(),Pm;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(Pm||(yn.DocumentType=Pm={}));var Ju;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Ju||(Ju={}));var Xu;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Xu||(Xu={}));var q$=(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 Wu.__awaiter(this,void 0,void 0,function(){var o,r,i,a;return Wu.__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 xr.ResponseType.ARRAYBUFFER:return[3,1];case xr.ResponseType.BLOB:return[3,3];case xr.ResponseType.DOCUMENT:return[3,5];case xr.ResponseType.JSON:return[3,7];case xr.ResponseType.STREAM:return[3,9];case xr.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,Pm.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(Xu.DOCUMENT).test(a)?[4,e.parseDocumentResponse(t,a)]:[3,15]);case 14:return o=u.sent(),[3,21];case 15:return new RegExp(Xu.IMAGE).test(a)?(o=t.blob(),[3,21]):[3,16];case 16:return a!==Ju.TEXT_PLAIN?[3,18]:[4,t.text()];case 17:return o=u.sent(),[3,21];case 18:return a!==Ju.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 Wu.__awaiter(this,void 0,void 0,function(){var r;return Wu.__generator(this,function(i){switch(i.label){case 0:return n!==xr.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})();yn.GraphResponseHandler=q$});var bm=I(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Range=void 0;var G$=(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})();Ku.Range=G$});var Em=I(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.UploadResult=void 0;var W$=(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})();Yu.UploadResult=W$});var Am=I(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.LargeFileUploadTask=void 0;var Je=(xe(),he(Pe)),Tm=It(),J$=xm(),oP=ki(),Qu=bm(),X$=Em(),K$=(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 Tm.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 Qu.Range(0,this.options.rangeSize-1)}return s(e,"LargeFileUploadTask"),e.createUploadSession=function(t,n,o,r){return r===void 0&&(r={}),Je.__awaiter(this,void 0,void 0,function(){var i,a;return Je.__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 Qu.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 Qu.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 Qu.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 Tm.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,n,o,r,i,a,u;return Je.__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 Tm.GraphClientError("Something went wrong! Large file upload slice response is null.");return[4,J$.GraphResponseHandler.getResponse(i)];case 4:return a=c.sent(),i.status===201||i.status===200&&a.id?(this.reportProgress(t,n),[2,X$.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 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(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 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(n.maxValue-n.minValue+1),"Content-Range":"bytes ".concat(n.minValue,"-").concat(n.maxValue,"/").concat(o),"Content-Type":"application/octet-stream"}).responseType(oP.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(n){switch(n.label){case 0:return[4,this.client.api(this.uploadSession.url).responseType(oP.ResponseType.RAW).delete()];case 1:return t=n.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(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 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})();ec.LargeFileUploadTask=K$});var Im=I(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.FileUpload=void 0;var Y$=It(),Q$=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new Y$.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})();tc.FileUpload=Q$});var Sm=I(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.getValidRangeSize=void 0;var eO=5*1024*1024,tO=s(function(e){return e>320*1024&&(e=Math.floor(e/(320*1024))*320*1024),e},"roundTo320KB"),rO=s(function(e){e===void 0&&(e=eO);var t=60*1024*1024;return e>t&&(e=t),tO(e)},"getValidRangeSize");rc.getValidRangeSize=rO});var aP=I(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.OneDriveLargeFileUploadTask=void 0;var St=(xe(),he(Pe)),iP=It(),nO=Im(),oO=Am(),iO=Sm(),aO=(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 iP.GraphClientError("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");return i=r.fileName,a=t.getFileInfo(o,i),u=new nO.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 iP.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,iO.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})(oO.LargeFileUploadTask);nc.OneDriveLargeFileUploadTask=aO});var uP=I(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.StreamUpload=void 0;var sP=(xe(),he(Pe)),Ci=It(),sO=(function(){function e(t,n,o){if(this.content=t,this.name=n,this.size=o,!t||!n||!o)throw new Ci.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 sP.__awaiter(this,void 0,void 0,function(){var n,o,r,i,a,u,c;return sP.__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 Ci.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 Ci.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 Ci.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 Ci.GraphClientError("Error encountered while reading the stream during the upload"))})})},e})();oc.StreamUpload=sO});var cP=I(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.PageIterator=void 0;var vn=(xe(),he(Pe)),uO=(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 vn.__awaiter(this,void 0,void 0,function(){var t,n;return vn.__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 vn.__awaiter(this,void 0,void 0,function(){var t;return vn.__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 vn.__awaiter(this,void 0,void 0,function(){return vn.__generator(this,function(t){return[2,this.iterate()]})})},e.prototype.isComplete=function(){return this.complete},e})();ic.PageIterator=uO});var $m=I(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.CustomAuthenticationProvider=void 0;var ac=(xe(),he(Pe)),lP=It(),cO=(function(){function e(t){this.provider=t}return s(e,"CustomAuthenticationProvider"),e.prototype.getAccessToken=function(){return ac.__awaiter(this,void 0,void 0,function(){var t=this;return ac.__generator(this,function(n){return[2,new Promise(function(o,r){t.provider(function(i,a){return ac.__awaiter(t,void 0,void 0,function(){var u,c;return ac.__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 lP.GraphClientError(u)),[4,lP.GraphClientError.setGraphClientError(i)];case 2:c=l.sent(),r(c),l.label=3;case 3:return[2]}})})})})]})})},e})();sc.CustomAuthenticationProvider=cO});var Om=I(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.GraphError=void 0;var lO=(xe(),he(Pe)),pO=(function(e){lO.__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);uc.GraphError=pO});var dP=I(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.GraphErrorHandler=void 0;var pP=(xe(),he(Pe)),wm=Om(),dO=(function(){function e(){}return s(e,"GraphErrorHandler"),e.constructError=function(t,n,o){var r=new wm.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 wm.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),pP.__awaiter(this,void 0,void 0,function(){var i;return pP.__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 wm.GraphError(n),i.body=t),typeof o=="function")o(i,null);else return[2,i];return[2]})})},e})();cc.GraphErrorHandler=dO});var Rm=I(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.GraphRequest=void 0;var fe=(xe(),he(Pe)),fO=It(),mO=dP(),Di=Tu(),gO=xm(),hO=Gt(),br=wi(),yO=ki(),vO=(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("&"),f=0,y=l;f<y.length;f++){var h=y[f];r.parseQueryParameter(h)}}},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,Di.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(Di.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=fe.__assign({},t.headers);if(this.config.fetchOptions!==void 0){var o=fe.__assign({},this.config.fetchOptions);Object.assign(t,o),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=fe.__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 fe.__awaiter(this,void 0,void 0,function(){var i,a,u,c,l,f,y,h;return fe.__generator(this,function(p){switch(p.label){case 0:a=new hO.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,gO.GraphResponseHandler.getResponse(i,this._responseType,o)];case 3:return l=p.sent(),[2,l];case 4:if(f=p.sent(),f instanceof fO.GraphClientError)throw f;return y=void 0,i&&(y=i.status),[4,mO.GraphErrorHandler.getError(f,y,o,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),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 fe.__awaiter(this,void 0,void 0,function(){var n,o,r;return fe.__generator(this,function(i){switch(i.label){case 0:return n=this.buildFullUrl(),o={method:br.RequestMethod.GET},[4,this.send(n,o,t)];case 1:return r=i.sent(),[2,r]}})})},e.prototype.post=function(t,n){return fe.__awaiter(this,void 0,void 0,function(){var o,r,i;return fe.__generator(this,function(a){switch(a.label){case 0:return o=this.buildFullUrl(),r={method:br.RequestMethod.POST,body:(0,Di.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 fe.__awaiter(this,void 0,void 0,function(){return fe.__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 fe.__awaiter(this,void 0,void 0,function(){var o,r;return fe.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:br.RequestMethod.PUT,body:(0,Di.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.patch=function(t,n){return fe.__awaiter(this,void 0,void 0,function(){var o,r;return fe.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),this.setHeaderContentType(),r={method:br.RequestMethod.PATCH,body:(0,Di.serializeContent)(t)},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e.prototype.update=function(t,n){return fe.__awaiter(this,void 0,void 0,function(){return fe.__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 fe.__awaiter(this,void 0,void 0,function(){var n,o;return fe.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:br.RequestMethod.DELETE},[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.del=function(t){return fe.__awaiter(this,void 0,void 0,function(){return fe.__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 fe.__awaiter(this,void 0,void 0,function(){var n,o;return fe.__generator(this,function(r){switch(r.label){case 0:return n=this.buildFullUrl(),o={method:br.RequestMethod.GET},this.responseType(yO.ResponseType.STREAM),[4,this.send(n,o,t)];case 1:return[2,r.sent()]}})})},e.prototype.putStream=function(t,n){return fe.__awaiter(this,void 0,void 0,function(){var o,r;return fe.__generator(this,function(i){switch(i.label){case 0:return o=this.buildFullUrl(),r={method:br.RequestMethod.PUT,headers:{"Content-Type":"application/octet-stream"},body:t},[4,this.send(o,r,n)];case 1:return[2,i.sent()]}})})},e})();lc.GraphRequest=vO});var zm=I(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.HTTPClient=void 0;var fP=(xe(),he(Pe)),_O=(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 fP.__awaiter(this,void 0,void 0,function(){var n;return fP.__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})();pc.HTTPClient=_O});var gP=I(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.HTTPClientFactory=void 0;var PO=(xe(),he(Pe)),mP=zm(),xO=$u(),bO=wu(),EO=zi(),TO=Ri(),AO=Nu(),IO=ku(),SO=ju(),$O=s(function(){return typeof process=="object"&&typeof require=="function"},"isNodeEnvironment"),OO=(function(){function e(){}return s(e,"HTTPClientFactory"),e.createWithAuthenticationProvider=function(t){var n=new xO.AuthenticationHandler(t),o=new IO.RetryHandler(new TO.RetryHandlerOptions),r=new SO.TelemetryHandler,i=new bO.HTTPMessageHandler;if(n.setNext(o),$O()){var a=new AO.RedirectHandler(new EO.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(mP.HTTPClient.bind.apply(mP.HTTPClient,PO.__spreadArray([void 0],t,!1)))},e})();dc.HTTPClientFactory=OO});var hP=I(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.validatePolyFilling=void 0;var wO=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");fc.validatePolyFilling=wO});var _P=I(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.Client=void 0;var RO=(xe(),he(Pe)),yP=fm(),zO=$m(),kO=Rm(),vP=zm(),CO=gP(),DO=hP(),NO=(function(){function e(t){this.config={baseUrl:yP.GRAPH_BASE_URL,debugLogging:!1,defaultVersion:yP.GRAPH_API_VERSION},(0,DO.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=CO.HTTPClientFactory.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)o=new(vP.HTTPClient.bind.apply(vP.HTTPClient,RO.__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 zO.CustomAuthenticationProvider(t[o]):t[o]);return e.initWithMiddleware(n)},e.initWithMiddleware=function(t){return new e(t)},e.prototype.api=function(t){return new kO.GraphRequest(this.httpClient,this.config,t)},e})();mc.Client=NO});var xP=I(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 MO=D_();Object.defineProperty(N,"BatchRequestContent",{enumerable:!0,get:s(function(){return MO.BatchRequestContent},"get")});var UO=N_();Object.defineProperty(N,"BatchResponseContent",{enumerable:!0,get:s(function(){return UO.BatchResponseContent},"get")});var LO=$u();Object.defineProperty(N,"AuthenticationHandler",{enumerable:!0,get:s(function(){return LO.AuthenticationHandler},"get")});var jO=wu();Object.defineProperty(N,"HTTPMessageHandler",{enumerable:!0,get:s(function(){return jO.HTTPMessageHandler},"get")});var FO=ku();Object.defineProperty(N,"RetryHandler",{enumerable:!0,get:s(function(){return FO.RetryHandler},"get")});var BO=Nu();Object.defineProperty(N,"RedirectHandler",{enumerable:!0,get:s(function(){return BO.RedirectHandler},"get")});var ZO=ju();Object.defineProperty(N,"TelemetryHandler",{enumerable:!0,get:s(function(){return ZO.TelemetryHandler},"get")});var VO=K_();Object.defineProperty(N,"MiddlewareFactory",{enumerable:!0,get:s(function(){return VO.MiddlewareFactory},"get")});var HO=mm();Object.defineProperty(N,"AuthenticationHandlerOptions",{enumerable:!0,get:s(function(){return HO.AuthenticationHandlerOptions},"get")});var qO=Ri();Object.defineProperty(N,"RetryHandlerOptions",{enumerable:!0,get:s(function(){return qO.RetryHandlerOptions},"get")});var GO=zi();Object.defineProperty(N,"RedirectHandlerOptions",{enumerable:!0,get:s(function(){return GO.RedirectHandlerOptions},"get")});var PP=fn();Object.defineProperty(N,"FeatureUsageFlag",{enumerable:!0,get:s(function(){return PP.FeatureUsageFlag},"get")});Object.defineProperty(N,"TelemetryHandlerOptions",{enumerable:!0,get:s(function(){return PP.TelemetryHandlerOptions},"get")});var WO=vm();Object.defineProperty(N,"ChaosHandlerOptions",{enumerable:!0,get:s(function(){return WO.ChaosHandlerOptions},"get")});var JO=Zu();Object.defineProperty(N,"ChaosStrategy",{enumerable:!0,get:s(function(){return JO.ChaosStrategy},"get")});var XO=rP();Object.defineProperty(N,"ChaosHandler",{enumerable:!0,get:s(function(){return XO.ChaosHandler},"get")});var KO=Am();Object.defineProperty(N,"LargeFileUploadTask",{enumerable:!0,get:s(function(){return KO.LargeFileUploadTask},"get")});var YO=aP();Object.defineProperty(N,"OneDriveLargeFileUploadTask",{enumerable:!0,get:s(function(){return YO.OneDriveLargeFileUploadTask},"get")});var QO=Sm();Object.defineProperty(N,"getValidRangeSize",{enumerable:!0,get:s(function(){return QO.getValidRangeSize},"get")});var ew=uP();Object.defineProperty(N,"StreamUpload",{enumerable:!0,get:s(function(){return ew.StreamUpload},"get")});var tw=Im();Object.defineProperty(N,"FileUpload",{enumerable:!0,get:s(function(){return tw.FileUpload},"get")});var rw=Em();Object.defineProperty(N,"UploadResult",{enumerable:!0,get:s(function(){return rw.UploadResult},"get")});var nw=bm();Object.defineProperty(N,"Range",{enumerable:!0,get:s(function(){return nw.Range},"get")});var ow=cP();Object.defineProperty(N,"PageIterator",{enumerable:!0,get:s(function(){return ow.PageIterator},"get")});var iw=_P();Object.defineProperty(N,"Client",{enumerable:!0,get:s(function(){return iw.Client},"get")});var aw=$m();Object.defineProperty(N,"CustomAuthenticationProvider",{enumerable:!0,get:s(function(){return aw.CustomAuthenticationProvider},"get")});var sw=Om();Object.defineProperty(N,"GraphError",{enumerable:!0,get:s(function(){return sw.GraphError},"get")});var uw=It();Object.defineProperty(N,"GraphClientError",{enumerable:!0,get:s(function(){return uw.GraphClientError},"get")});var cw=Rm();Object.defineProperty(N,"GraphRequest",{enumerable:!0,get:s(function(){return cw.GraphRequest},"get")});var lw=ki();Object.defineProperty(N,"ResponseType",{enumerable:!0,get:s(function(){return lw.ResponseType},"get")})});var BP=I((CZ,FP)=>{var jP=require("stream").Stream,_w=require("util");FP.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");_w.inherits(dt,jP);dt.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(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=jP.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 qP=I((NZ,HP)=>{var Pw=require("util"),VP=require("stream").Stream,ZP=BP();HP.exports=Te;function Te(){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(Te,"CombinedStream");Pw.inherits(Te,VP);Te.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};Te.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Te.prototype.append=function(e){var t=Te.isStreamLike(e);if(t){if(!(e instanceof ZP)){var n=ZP.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};Te.prototype.pipe=function(e,t){return VP.prototype.pipe.call(this,e,t),this.resume(),e};Te.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}};Te.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=Te.isStreamLike(n);o&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Te.prototype._pipeNext=function(e){this._currentStream=e;var t=Te.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()};Te.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};Te.prototype.write=function(e){this.emit("data",e)};Te.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Te.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")};Te.prototype.end=function(){this._reset(),this.emit("end")};Te.prototype.destroy=function(){this._reset(),this.emit("close")};Te.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Te.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Te.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)};Te.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var WP=I((UZ,GP)=>{"use strict";GP.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 KP=I(Xe=>{"use strict";var xc=WP(),xw=require("path").extname,JP=/^\s*([^;\s]*)(?:;|\s|$)/,bw=/^text\//i;Xe.charset=XP;Xe.charsets={lookup:XP};Xe.contentType=Ew;Xe.extension=Tw;Xe.extensions=Object.create(null);Xe.lookup=Aw;Xe.types=Object.create(null);Iw(Xe.extensions,Xe.types);function XP(e){if(!e||typeof e!="string")return!1;var t=JP.exec(e),n=t&&xc[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&bw.test(t[1])?"UTF-8":!1}s(XP,"charset");function Ew(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Xe.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=Xe.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}s(Ew,"contentType");function Tw(e){if(!e||typeof e!="string")return!1;var t=JP.exec(e),n=t&&Xe.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}s(Tw,"extension");function Aw(e){if(!e||typeof e!="string")return!1;var t=xw("x."+e).toLowerCase().substr(1);return t&&Xe.types[t]||!1}s(Aw,"lookup");function Iw(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(xc).forEach(s(function(r){var i=xc[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(xc[t[c]].source),f=n.indexOf(i.source);if(t[c]!=="application/octet-stream"&&(l>f||l===f&&t[c].substr(0,12)==="application/"))continue}t[c]=r}}},"forEachMimeType"))}s(Iw,"populateMaps")});var QP=I((FZ,YP)=>{YP.exports=Sw;function Sw(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}s(Sw,"defer")});var Nm=I((ZZ,tx)=>{var ex=QP();tx.exports=$w;function $w(e){var t=!1;return ex(function(){t=!0}),s(function(o,r){t?e(o,r):ex(s(function(){e(o,r)},"nextTick_callback"))},"async_callback")}s($w,"async")});var Mm=I((HZ,rx)=>{rx.exports=Ow;function Ow(e){Object.keys(e.jobs).forEach(ww.bind(e)),e.jobs={}}s(Ow,"abort");function ww(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}s(ww,"clean")});var Um=I((GZ,ox)=>{var nx=Nm(),Rw=Mm();ox.exports=zw;function zw(e,t,n,o){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=kw(t,r,e[r],function(i,a){r in n.jobs&&(delete n.jobs[r],i?Rw(n):n.results[r]=a,o(i,n.results))})}s(zw,"iterate");function kw(e,t,n,o){var r;return e.length==2?r=e(n,nx(o)):r=e(n,t,nx(o)),r}s(kw,"runJob")});var Lm=I((JZ,ix)=>{ix.exports=Cw;function Cw(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(Cw,"state")});var jm=I((KZ,ax)=>{var Dw=Mm(),Nw=Nm();ax.exports=Mw;function Mw(e){Object.keys(this.jobs).length&&(this.index=this.size,Dw(this),Nw(e)(null,this.results))}s(Mw,"terminator")});var ux=I((QZ,sx)=>{var Uw=Um(),Lw=Lm(),jw=jm();sx.exports=Fw;function Fw(e,t,n){for(var o=Lw(e);o.index<(o.keyedList||e).length;)Uw(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 jw.bind(o,n)}s(Fw,"parallel")});var Fm=I((tV,bc)=>{var cx=Um(),Bw=Lm(),Zw=jm();bc.exports=Vw;bc.exports.ascending=lx;bc.exports.descending=Hw;function Vw(e,t,n,o){var r=Bw(e,n);return cx(e,t,r,s(function i(a,u){if(a){o(a,u);return}if(r.index++,r.index<(r.keyedList||e).length){cx(e,t,r,i);return}o(null,r.results)},"iteratorHandler")),Zw.bind(r,o)}s(Vw,"serialOrdered");function lx(e,t){return e<t?-1:e>t?1:0}s(lx,"ascending");function Hw(e,t){return-1*lx(e,t)}s(Hw,"descending")});var dx=I((nV,px)=>{var qw=Fm();px.exports=Gw;function Gw(e,t,n){return qw(e,t,null,n)}s(Gw,"serial")});var mx=I((iV,fx)=>{fx.exports={parallel:ux(),serial:dx(),serialOrdered:Fm()}});var Bm=I((aV,gx)=>{"use strict";gx.exports=Object});var yx=I((sV,hx)=>{"use strict";hx.exports=Error});var _x=I((uV,vx)=>{"use strict";vx.exports=EvalError});var xx=I((cV,Px)=>{"use strict";Px.exports=RangeError});var Ex=I((lV,bx)=>{"use strict";bx.exports=ReferenceError});var Ax=I((pV,Tx)=>{"use strict";Tx.exports=SyntaxError});var Ec=I((dV,Ix)=>{"use strict";Ix.exports=TypeError});var $x=I((fV,Sx)=>{"use strict";Sx.exports=URIError});var wx=I((mV,Ox)=>{"use strict";Ox.exports=Math.abs});var zx=I((gV,Rx)=>{"use strict";Rx.exports=Math.floor});var Cx=I((hV,kx)=>{"use strict";kx.exports=Math.max});var Nx=I((yV,Dx)=>{"use strict";Dx.exports=Math.min});var Ux=I((vV,Mx)=>{"use strict";Mx.exports=Math.pow});var jx=I((_V,Lx)=>{"use strict";Lx.exports=Math.round});var Bx=I((PV,Fx)=>{"use strict";Fx.exports=Number.isNaN||s(function(t){return t!==t},"isNaN")});var Vx=I((bV,Zx)=>{"use strict";var Ww=Bx();Zx.exports=s(function(t){return Ww(t)||t===0?t:t<0?-1:1},"sign")});var qx=I((TV,Hx)=>{"use strict";Hx.exports=Object.getOwnPropertyDescriptor});var Zm=I((AV,Gx)=>{"use strict";var Tc=qx();if(Tc)try{Tc([],"length")}catch{Tc=null}Gx.exports=Tc});var Jx=I((IV,Wx)=>{"use strict";var Ac=Object.defineProperty||!1;if(Ac)try{Ac({},"a",{value:1})}catch{Ac=!1}Wx.exports=Ac});var Vm=I((SV,Xx)=>{"use strict";Xx.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 Qx=I((OV,Yx)=>{"use strict";var Kx=typeof Symbol<"u"&&Symbol,Jw=Vm();Yx.exports=s(function(){return typeof Kx!="function"||typeof Symbol!="function"||typeof Kx("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jw()},"hasNativeSymbols")});var Hm=I((RV,eb)=>{"use strict";eb.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var qm=I((zV,tb)=>{"use strict";var Xw=Bm();tb.exports=Xw.getPrototypeOf||null});var ob=I((kV,nb)=>{"use strict";var Kw="Function.prototype.bind called on incompatible ",Yw=Object.prototype.toString,Qw=Math.max,eR="[object Function]",rb=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"),tR=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"),rR=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");nb.exports=s(function(t){var n=this;if(typeof n!="function"||Yw.apply(n)!==eR)throw new TypeError(Kw+n);for(var o=tR(arguments,1),r,i=s(function(){if(this instanceof r){var f=n.apply(this,rb(o,arguments));return Object(f)===f?f:this}return n.apply(t,rb(o,arguments))},"binder"),a=Qw(0,n.length-o.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(r=Function("binder","return function ("+rR(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 Pn=I((DV,ib)=>{"use strict";var nR=ob();ib.exports=Function.prototype.bind||nR});var Ic=I((NV,ab)=>{"use strict";ab.exports=Function.prototype.call});var Gm=I((MV,sb)=>{"use strict";sb.exports=Function.prototype.apply});var cb=I((UV,ub)=>{"use strict";ub.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var pb=I((LV,lb)=>{"use strict";var oR=Pn(),iR=Gm(),aR=Ic(),sR=cb();lb.exports=sR||oR.call(aR,iR)});var fb=I((jV,db)=>{"use strict";var uR=Pn(),cR=Ec(),lR=Ic(),pR=pb();db.exports=s(function(t){if(t.length<1||typeof t[0]!="function")throw new cR("a function is required");return pR(uR,lR,t)},"callBindBasic")});var _b=I((BV,vb)=>{"use strict";var dR=fb(),mb=Zm(),hb;try{hb=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Wm=!!hb&&mb&&mb(Object.prototype,"__proto__"),yb=Object,gb=yb.getPrototypeOf;vb.exports=Wm&&typeof Wm.get=="function"?dR([Wm.get]):typeof gb=="function"?s(function(t){return gb(t==null?t:yb(t))},"getDunder"):!1});var Tb=I((VV,Eb)=>{"use strict";var Pb=Hm(),xb=qm(),bb=_b();Eb.exports=Pb?s(function(t){return Pb(t)},"getProto"):xb?s(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return xb(t)},"getProto"):bb?s(function(t){return bb(t)},"getProto"):null});var Jm=I((qV,Ab)=>{"use strict";var fR=Function.prototype.call,mR=Object.prototype.hasOwnProperty,gR=Pn();Ab.exports=gR.call(fR,mR)});var zb=I((GV,Rb)=>{"use strict";var re,hR=Bm(),yR=yx(),vR=_x(),_R=xx(),PR=Ex(),Tn=Ax(),En=Ec(),xR=$x(),bR=wx(),ER=zx(),TR=Cx(),AR=Nx(),IR=Ux(),SR=jx(),$R=Vx(),Ob=Function,Xm=s(function(e){try{return Ob('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Mi=Zm(),OR=Jx(),Km=s(function(){throw new En},"throwTypeError"),wR=Mi?(function(){try{return arguments.callee,Km}catch{try{return Mi(arguments,"callee").get}catch{return Km}}})():Km,xn=Qx()(),ke=Tb(),RR=qm(),zR=Hm(),wb=Gm(),Ui=Ic(),bn={},kR=typeof Uint8Array>"u"||!ke?re:ke(Uint8Array),Er={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?re:ArrayBuffer,"%ArrayIteratorPrototype%":xn&&ke?ke([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":bn,"%AsyncGenerator%":bn,"%AsyncGeneratorFunction%":bn,"%AsyncIteratorPrototype%":bn,"%Atomics%":typeof Atomics>"u"?re:Atomics,"%BigInt%":typeof BigInt>"u"?re:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":yR,"%eval%":eval,"%EvalError%":vR,"%Float16Array%":typeof Float16Array>"u"?re:Float16Array,"%Float32Array%":typeof Float32Array>"u"?re:Float32Array,"%Float64Array%":typeof Float64Array>"u"?re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?re:FinalizationRegistry,"%Function%":Ob,"%GeneratorFunction%":bn,"%Int8Array%":typeof Int8Array>"u"?re:Int8Array,"%Int16Array%":typeof Int16Array>"u"?re:Int16Array,"%Int32Array%":typeof Int32Array>"u"?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xn&&ke?ke(ke([][Symbol.iterator]())):re,"%JSON%":typeof JSON=="object"?JSON:re,"%Map%":typeof Map>"u"?re:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xn||!ke?re:ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":hR,"%Object.getOwnPropertyDescriptor%":Mi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?re:Promise,"%Proxy%":typeof Proxy>"u"?re:Proxy,"%RangeError%":_R,"%ReferenceError%":PR,"%Reflect%":typeof Reflect>"u"?re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?re:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xn||!ke?re:ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xn&&ke?ke(""[Symbol.iterator]()):re,"%Symbol%":xn?Symbol:re,"%SyntaxError%":Tn,"%ThrowTypeError%":wR,"%TypedArray%":kR,"%TypeError%":En,"%Uint8Array%":typeof Uint8Array>"u"?re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?re:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?re:Uint32Array,"%URIError%":xR,"%WeakMap%":typeof WeakMap>"u"?re:WeakMap,"%WeakRef%":typeof WeakRef>"u"?re:WeakRef,"%WeakSet%":typeof WeakSet>"u"?re:WeakSet,"%Function.prototype.call%":Ui,"%Function.prototype.apply%":wb,"%Object.defineProperty%":OR,"%Object.getPrototypeOf%":RR,"%Math.abs%":bR,"%Math.floor%":ER,"%Math.max%":TR,"%Math.min%":AR,"%Math.pow%":IR,"%Math.round%":SR,"%Math.sign%":$R,"%Reflect.getPrototypeOf%":zR};if(ke)try{null.error}catch(e){Ib=ke(ke(e)),Er["%Error.prototype%"]=Ib}var Ib,CR=s(function e(t){var n;if(t==="%AsyncFunction%")n=Xm("async function () {}");else if(t==="%GeneratorFunction%")n=Xm("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Xm("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&ke&&(n=ke(r.prototype))}return Er[t]=n,n},"doEval"),Sb={__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"]},Li=Pn(),Sc=Jm(),DR=Li.call(Ui,Array.prototype.concat),NR=Li.call(wb,Array.prototype.splice),$b=Li.call(Ui,String.prototype.replace),$c=Li.call(Ui,String.prototype.slice),MR=Li.call(Ui,RegExp.prototype.exec),UR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LR=/\\(\\)?/g,jR=s(function(t){var n=$c(t,0,1),o=$c(t,-1);if(n==="%"&&o!=="%")throw new Tn("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new Tn("invalid intrinsic syntax, expected opening `%`");var r=[];return $b(t,UR,function(i,a,u,c){r[r.length]=u?$b(c,LR,"$1"):a||i}),r},"stringToPath"),FR=s(function(t,n){var o=t,r;if(Sc(Sb,o)&&(r=Sb[o],o="%"+r[0]+"%"),Sc(Er,o)){var i=Er[o];if(i===bn&&(i=CR(o)),typeof i>"u"&&!n)throw new En("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new Tn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Rb.exports=s(function(t,n){if(typeof t!="string"||t.length===0)throw new En("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new En('"allowMissing" argument must be a boolean');if(MR(/^%?[^%]*%?$/,t)===null)throw new Tn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=jR(t),r=o.length>0?o[0]:"",i=FR("%"+r+"%",n),a=i.name,u=i.value,c=!1,l=i.alias;l&&(r=l[0],NR(o,DR([0,1],l)));for(var f=1,y=!0;f<o.length;f+=1){var h=o[f],p=$c(h,0,1),g=$c(h,-1);if((p==='"'||p==="'"||p==="`"||g==='"'||g==="'"||g==="`")&&p!==g)throw new Tn("property names with quotes must have matching quotes");if((h==="constructor"||!y)&&(c=!0),r+="."+h,a="%"+r+"%",Sc(Er,a))u=Er[a];else if(u!=null){if(!(h in u)){if(!n)throw new En("base intrinsic for "+t+" exists, but the property is not available.");return}if(Mi&&f+1>=o.length){var _=Mi(u,h);y=!!_,y&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[h]}else y=Sc(u,h),u=u[h];y&&!c&&(Er[a]=u)}}return u},"GetIntrinsic")});var Cb=I((JV,kb)=>{"use strict";var BR=Vm();kb.exports=s(function(){return BR()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Mb=I((KV,Nb)=>{"use strict";var ZR=zb(),Db=ZR("%Object.defineProperty%",!0),VR=Cb()(),HR=Jm(),qR=Ec(),Oc=VR?Symbol.toStringTag:null;Nb.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 qR("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Oc&&(o||!HR(t,Oc))&&(Db?Db(t,Oc,{configurable:!r,enumerable:!1,value:n,writable:!1}):t[Oc]=n)},"setToStringTag")});var Lb=I((QV,Ub)=>{"use strict";var GR=Function.prototype.call,WR=Object.prototype.hasOwnProperty,JR=Pn();Ub.exports=JR.call(GR,WR)});var Fb=I((e2,jb)=>{"use strict";jb.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var Vb=I((t2,Zb)=>{"use strict";var tg=qP(),XR=require("util"),Ym=require("path"),KR=require("http"),YR=require("https"),QR=require("url").parse,ez=require("fs"),tz=require("stream").Stream,rz=require("crypto"),Qm=KP(),nz=mx(),oz=Mb(),Jt=Lb(),eg=Fb();function Bb(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}s(Bb,"escapeHeaderParam");function ae(e){if(!(this instanceof ae))return new ae(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],tg.call(this),e=e||{};for(var t in e)this[t]=e[t]}s(ae,"FormData");XR.inherits(ae,tg);ae.LINE_BREAK=`\r
5
+ `;ae.DEFAULT_CONTENT_TYPE="application/octet-stream";ae.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var o=tg.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)};ae.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)+ae.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Jt(t,"httpVersion"))&&!(t instanceof tz))&&(n.knownLength||this._valuesToMeasure.push(t))};ae.prototype._lengthRetriever=function(e,t){Jt(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):ez.stat(e.path,function(n,o){if(n){t(n);return}var r=o.size-(e.start?e.start:0);t(null,r)}):Jt(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Jt(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")};ae.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="'+Bb(e)+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};typeof n.header=="object"&&eg(a,n.header);var u;for(var c in a)if(Jt(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(i+=c+": "+u.join("; ")+ae.LINE_BREAK)}return"--"+this.getBoundary()+ae.LINE_BREAK+i+ae.LINE_BREAK};ae.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath=="string"?n=Ym.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=Ym.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Jt(e,"httpVersion")&&(n=Ym.basename(e.client._httpMessage.path||"")),n)return'filename="'+Bb(n)+'"'};ae.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=Qm.lookup(e.name)),!n&&e&&e.path&&(n=Qm.lookup(e.path)),!n&&e&&e.readable&&Jt(e,"httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=Qm.lookup(t.filepath||t.filename)),!n&&e&&typeof e=="object"&&(n=ae.DEFAULT_CONTENT_TYPE),n};ae.prototype._multiPartFooter=function(){return function(e){var t=ae.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};ae.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ae.LINE_BREAK};ae.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Jt(e,t)&&(n[t.toLowerCase()]=e[t]);return n};ae.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ae.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ae.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(ae.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ae.prototype._generateBoundary=function(){this._boundary="--------------------------"+rz.randomBytes(12).toString("hex")};ae.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};ae.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ae.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}nz.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,o){if(n){e(n);return}o.forEach(function(r){t+=r}),e(null,t)})};ae.prototype.submit=function(e,t){var n,o,r={method:"post"};return typeof e=="string"?(e=QR(e),o=eg({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(o=eg(e,r),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?n=YR.request(o):n=KR.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,f){return n.removeListener("error",c),n.removeListener("response",u),t.call(this,l,f)},"callback");u=c.bind(this,null),n.on("error",c),n.on("response",u)}}.bind(this)),n};ae.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ae.prototype.toString=function(){return"[object FormData]"};oz(ae.prototype,"FormData");Zb.exports=ae});var wc=I((rg,ng)=>{(function(e,t){typeof rg=="object"&&typeof ng<"u"?ng.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(rg,(function(){"use strict";var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",a="hour",u="day",c="week",l="month",f="quarter",y="year",h="date",p="Invalid Date",g=/^(\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,b={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(H){var D=["th","st","nd","rd"],z=H%100;return"["+H+(D[(z-20)%10]||D[z]||D[0])+"]"},"ordinal")},E=s(function(H,D,z){var M=String(H);return!M||M.length>=D?H:""+Array(D+1-M.length).join(z)+H},"m"),T={s:E,z:s(function(H){var D=-H.utcOffset(),z=Math.abs(D),M=Math.floor(z/60),C=z%60;return(D<=0?"+":"-")+E(M,2,"0")+":"+E(C,2,"0")},"z"),m:s(function H(D,z){if(D.date()<z.date())return-H(z,D);var M=12*(z.year()-D.year())+(z.month()-D.month()),C=D.clone().add(M,l),Y=z-C<0,Q=D.clone().add(M+(Y?-1:1),l);return+(-(M+(z-C)/(Y?C-Q:Q-C))||0)},"t"),a:s(function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},"a"),p:s(function(H){return{M:l,y,w:c,d:u,D:h,h:a,m:i,s:r,ms:o,Q:f}[H]||String(H||"").toLowerCase().replace(/s$/,"")},"p"),u:s(function(H){return H===void 0},"u")},L="en",ne={};ne[L]=b;var pe=s(function(H){return H instanceof Ze},"p"),Be=s(function H(D,z,M){var C;if(!D)return L;if(typeof D=="string"){var Y=D.toLowerCase();ne[Y]&&(C=Y),z&&(ne[Y]=z,C=Y);var Q=D.split("-");if(!C&&Q.length>1)return H(Q[0])}else{var de=D.name;ne[de]=D,C=de}return!M&&C&&(L=C),C||!M&&L},"t"),be=s(function(H,D){if(pe(H))return H.clone();var z=typeof D=="object"?D:{};return z.date=H,z.args=arguments,new Ze(z)},"w"),te=T;te.l=Be,te.i=pe,te.w=function(H,D){return be(H,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var Ze=(function(){function H(z){this.$L=Be(z.locale,null,!0),this.parse(z)}s(H,"M");var D=H.prototype;return D.parse=function(z){this.$d=(function(M){var C=M.date,Y=M.utc;if(C===null)return new Date(NaN);if(te.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var Q=C.match(g);if(Q){var de=Q[2]-1||0,Ae=(Q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Q[1],de,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,Ae)):new Date(Q[1],de,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,Ae)}}return new Date(C)})(z),this.$x=z.x||{},this.init()},D.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},D.$utils=function(){return te},D.isValid=function(){return this.$d.toString()!==p},D.isSame=function(z,M){var C=be(z);return this.startOf(M)<=C&&C<=this.endOf(M)},D.isAfter=function(z,M){return be(z)<this.startOf(M)},D.isBefore=function(z,M){return this.endOf(M)<be(z)},D.$g=function(z,M,C){return te.u(z)?this[M]:this.set(C,z)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(z,M){var C=this,Y=!!te.u(M)||M,Q=te.p(z),de=s(function(Kt,Ve){var $t=te.w(C.$u?Date.UTC(C.$y,Ve,Kt):new Date(C.$y,Ve,Kt),C);return Y?$t:$t.endOf(u)},"l"),Ae=s(function(Kt,Ve){return te.w(C.toDate()[Kt].apply(C.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(Ve)),C)},"$"),Oe=this.$W,Ne=this.$M,rt=this.$D,Tr="set"+(this.$u?"UTC":"");switch(Q){case y:return Y?de(1,0):de(31,11);case l:return Y?de(1,Ne):de(0,Ne+1);case c:var Xt=this.$locale().weekStart||0,An=(Oe<Xt?Oe+7:Oe)-Xt;return de(Y?rt-An:rt+(6-An),Ne);case u:case h:return Ae(Tr+"Hours",0);case a:return Ae(Tr+"Minutes",1);case i:return Ae(Tr+"Seconds",2);case r:return Ae(Tr+"Milliseconds",3);default:return this.clone()}},D.endOf=function(z){return this.startOf(z,!1)},D.$set=function(z,M){var C,Y=te.p(z),Q="set"+(this.$u?"UTC":""),de=(C={},C[u]=Q+"Date",C[h]=Q+"Date",C[l]=Q+"Month",C[y]=Q+"FullYear",C[a]=Q+"Hours",C[i]=Q+"Minutes",C[r]=Q+"Seconds",C[o]=Q+"Milliseconds",C)[Y],Ae=Y===u?this.$D+(M-this.$W):M;if(Y===l||Y===y){var Oe=this.clone().set(h,1);Oe.$d[de](Ae),Oe.init(),this.$d=Oe.set(h,Math.min(this.$D,Oe.daysInMonth())).$d}else de&&this.$d[de](Ae);return this.init(),this},D.set=function(z,M){return this.clone().$set(z,M)},D.get=function(z){return this[te.p(z)]()},D.add=function(z,M){var C,Y=this;z=Number(z);var Q=te.p(M),de=s(function(Ne){var rt=be(Y);return te.w(rt.date(rt.date()+Math.round(Ne*z)),Y)},"y");if(Q===l)return this.set(l,this.$M+z);if(Q===y)return this.set(y,this.$y+z);if(Q===u)return de(1);if(Q===c)return de(7);var Ae=(C={},C[i]=t,C[a]=n,C[r]=e,C)[Q]||1,Oe=this.$d.getTime()+z*Ae;return te.w(Oe,this)},D.subtract=function(z,M){return this.add(-1*z,M)},D.format=function(z){var M=this,C=this.$locale();if(!this.isValid())return C.invalidDate||p;var Y=z||"YYYY-MM-DDTHH:mm:ssZ",Q=te.z(this),de=this.$H,Ae=this.$m,Oe=this.$M,Ne=C.weekdays,rt=C.months,Tr=C.meridiem,Xt=s(function(Ve,$t,In,Fi){return Ve&&(Ve[$t]||Ve(M,Y))||In[$t].slice(0,Fi)},"h"),An=s(function(Ve){return te.s(de%12||12,Ve,"0")},"d"),Kt=Tr||function(Ve,$t,In){var Fi=Ve<12?"AM":"PM";return In?Fi.toLowerCase():Fi};return Y.replace(_,(function(Ve,$t){return $t||(function(In){switch(In){case"YY":return String(M.$y).slice(-2);case"YYYY":return te.s(M.$y,4,"0");case"M":return Oe+1;case"MM":return te.s(Oe+1,2,"0");case"MMM":return Xt(C.monthsShort,Oe,rt,3);case"MMMM":return Xt(rt,Oe);case"D":return M.$D;case"DD":return te.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return Xt(C.weekdaysMin,M.$W,Ne,2);case"ddd":return Xt(C.weekdaysShort,M.$W,Ne,3);case"dddd":return Ne[M.$W];case"H":return String(de);case"HH":return te.s(de,2,"0");case"h":return An(1);case"hh":return An(2);case"a":return Kt(de,Ae,!0);case"A":return Kt(de,Ae,!1);case"m":return String(Ae);case"mm":return te.s(Ae,2,"0");case"s":return String(M.$s);case"ss":return te.s(M.$s,2,"0");case"SSS":return te.s(M.$ms,3,"0");case"Z":return Q}return null})(Ve)||Q.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(z,M,C){var Y,Q=this,de=te.p(M),Ae=be(z),Oe=(Ae.utcOffset()-this.utcOffset())*t,Ne=this-Ae,rt=s(function(){return te.m(Q,Ae)},"D");switch(de){case y:Y=rt()/12;break;case l:Y=rt();break;case f:Y=rt()/3;break;case c:Y=(Ne-Oe)/6048e5;break;case u:Y=(Ne-Oe)/864e5;break;case a:Y=Ne/n;break;case i:Y=Ne/t;break;case r:Y=Ne/e;break;default:Y=Ne}return C?Y:te.a(Y)},D.daysInMonth=function(){return this.endOf(l).$D},D.$locale=function(){return ne[this.$L]},D.locale=function(z,M){if(!z)return this.$L;var C=this.clone(),Y=Be(z,M,!0);return Y&&(C.$L=Y),C},D.clone=function(){return te.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()},H})(),ji=Ze.prototype;return be.prototype=ji,[["$ms",o],["$s",r],["$m",i],["$H",a],["$W",u],["$M",l],["$y",y],["$D",h]].forEach((function(H){ji[H[1]]=function(D){return this.$g(D,H[0],H[1])}})),be.extend=function(H,D){return H.$i||(H(D,Ze,be),H.$i=!0),be},be.locale=Be,be.isDayjs=pe,be.unix=function(H){return be(1e3*H)},be.en=ne[L],be.Ls=ne,be.p={},be}))});var hz={};Ke(hz,{microsoft365Planner:()=>gz});module.exports=he(hz);var Qe={};Ke(Qe,{$ZodAny:()=>qn,$ZodArray:()=>Xn,$ZodAsyncError:()=>ut,$ZodBase64:()=>Ia,$ZodBase64URL:()=>Sa,$ZodBigInt:()=>Ur,$ZodBigIntFormat:()=>Ra,$ZodBoolean:()=>rr,$ZodCIDRv4:()=>Ta,$ZodCIDRv6:()=>Aa,$ZodCUID:()=>ha,$ZodCUID2:()=>ya,$ZodCatch:()=>Ga,$ZodCheck:()=>ce,$ZodCheckBigIntFormat:()=>_l,$ZodCheckEndsWith:()=>Rl,$ZodCheckGreaterThan:()=>ia,$ZodCheckIncludes:()=>Ol,$ZodCheckLengthEquals:()=>Al,$ZodCheckLessThan:()=>oa,$ZodCheckLowerCase:()=>Sl,$ZodCheckMaxLength:()=>El,$ZodCheckMaxSize:()=>Pl,$ZodCheckMimeType:()=>kl,$ZodCheckMinLength:()=>Tl,$ZodCheckMinSize:()=>xl,$ZodCheckMultipleOf:()=>yl,$ZodCheckNumberFormat:()=>vl,$ZodCheckOverwrite:()=>Cl,$ZodCheckProperty:()=>zl,$ZodCheckRegex:()=>Il,$ZodCheckSizeEquals:()=>bl,$ZodCheckStartsWith:()=>wl,$ZodCheckStringFormat:()=>Nr,$ZodCheckUpperCase:()=>$l,$ZodCodec:()=>jr,$ZodCustom:()=>io,$ZodCustomStringFormat:()=>wa,$ZodDate:()=>Jn,$ZodDefault:()=>Za,$ZodDiscriminatedUnion:()=>Kn,$ZodE164:()=>$a,$ZodEmail:()=>fa,$ZodEmoji:()=>ma,$ZodEncodeError:()=>Ot,$ZodEnum:()=>eo,$ZodError:()=>Nn,$ZodExactOptional:()=>Ba,$ZodFile:()=>Fa,$ZodFunction:()=>Ka,$ZodGUID:()=>pa,$ZodIPv4:()=>xa,$ZodIPv6:()=>ba,$ZodISODate:()=>Bn,$ZodISODateTime:()=>Fn,$ZodISODuration:()=>Vn,$ZodISOTime:()=>Zn,$ZodIntersection:()=>Ua,$ZodJWT:()=>Oa,$ZodKSUID:()=>Pa,$ZodLazy:()=>Qa,$ZodLiteral:()=>to,$ZodMAC:()=>Ea,$ZodMap:()=>La,$ZodNaN:()=>Wa,$ZodNanoID:()=>ga,$ZodNever:()=>Da,$ZodNonOptional:()=>Ha,$ZodNull:()=>Ca,$ZodNullable:()=>no,$ZodNumber:()=>Mr,$ZodNumberFormat:()=>Hn,$ZodObject:()=>Na,$ZodObjectJIT:()=>Ul,$ZodOptional:()=>Lr,$ZodPipe:()=>oo,$ZodPrefault:()=>Va,$ZodPromise:()=>Ya,$ZodReadonly:()=>Ja,$ZodRealError:()=>qe,$ZodRecord:()=>Qn,$ZodRegistry:()=>es,$ZodSet:()=>ja,$ZodString:()=>vt,$ZodStringFormat:()=>se,$ZodSuccess:()=>qa,$ZodSymbol:()=>za,$ZodTemplateLiteral:()=>Xa,$ZodTransform:()=>ro,$ZodTuple:()=>Yn,$ZodType:()=>Z,$ZodULID:()=>va,$ZodURL:()=>jn,$ZodUUID:()=>da,$ZodUndefined:()=>ka,$ZodUnion:()=>nr,$ZodUnknown:()=>Gn,$ZodVoid:()=>Wn,$ZodXID:()=>_a,$ZodXor:()=>Ma,$brand:()=>On,$constructor:()=>m,$input:()=>rs,$output:()=>ts,Doc:()=>Ln,JSONSchema:()=>Kg,JSONSchemaGenerator:()=>Is,NEVER:()=>Bi,TimePrecision:()=>os,_any:()=>Vo,_array:()=>Rp,_base64:()=>wo,_base64url:()=>Ro,_bigint:()=>cs,_boolean:()=>Fo,_catch:()=>pA,_check:()=>Xg,_cidrv4:()=>$o,_cidrv6:()=>Oo,_coercedBigint:()=>Zo,_coercedBoolean:()=>Bo,_coercedDate:()=>Go,_coercedNumber:()=>Lo,_coercedString:()=>fo,_cuid:()=>xo,_cuid2:()=>bo,_custom:()=>Qo,_date:()=>hs,_decode:()=>Ji,_decodeAsync:()=>Ki,_default:()=>uA,_discriminatedUnion:()=>XT,_e164:()=>zo,_email:()=>mo,_emoji:()=>_o,_encode:()=>Wi,_encodeAsync:()=>Xi,_endsWith:()=>cr,_enum:()=>rA,_file:()=>vs,_float32:()=>is,_float64:()=>as,_gt:()=>lt,_gte:()=>$e,_guid:()=>Zr,_includes:()=>sr,_int:()=>jo,_int32:()=>ss,_int64:()=>ls,_intersection:()=>KT,_ipv4:()=>Io,_ipv6:()=>So,_isoDate:()=>Do,_isoDateTime:()=>Co,_isoDuration:()=>Mo,_isoTime:()=>No,_jwt:()=>ko,_ksuid:()=>Ao,_lazy:()=>gA,_length:()=>Nt,_literal:()=>oA,_lowercase:()=>ir,_lt:()=>ct,_lte:()=>Ue,_mac:()=>ns,_map:()=>eA,_max:()=>Ue,_maxLength:()=>Dt,_maxSize:()=>Pt,_mime:()=>lr,_min:()=>$e,_minLength:()=>Ie,_minSize:()=>pt,_multipleOf:()=>_t,_nan:()=>ys,_nanoid:()=>Po,_nativeEnum:()=>nA,_negative:()=>Jo,_never:()=>gs,_nonnegative:()=>Ko,_nonoptional:()=>cA,_nonpositive:()=>Xo,_normalize:()=>pr,_null:()=>ms,_nullable:()=>sA,_number:()=>Uo,_optional:()=>aA,_overwrite:()=>ot,_parse:()=>wr,_parseAsync:()=>Rr,_pipe:()=>dA,_positive:()=>Wo,_promise:()=>hA,_property:()=>Yo,_readonly:()=>fA,_record:()=>QT,_refine:()=>ei,_regex:()=>Ce,_safeDecode:()=>Qi,_safeDecodeAsync:()=>ta,_safeEncode:()=>Yi,_safeEncodeAsync:()=>ea,_safeParse:()=>zr,_safeParseAsync:()=>Cr,_set:()=>tA,_size:()=>Ct,_slugify:()=>Vr,_startsWith:()=>ur,_string:()=>po,_stringFormat:()=>gr,_stringbool:()=>bs,_success:()=>lA,_superRefine:()=>_s,_symbol:()=>ds,_templateLiteral:()=>mA,_toLowerCase:()=>fr,_toUpperCase:()=>mr,_transform:()=>iA,_trim:()=>dr,_tuple:()=>YT,_uint32:()=>us,_uint64:()=>ps,_ulid:()=>Eo,_undefined:()=>fs,_union:()=>WT,_unknown:()=>Ho,_uppercase:()=>ar,_url:()=>or,_uuid:()=>go,_uuidv4:()=>ho,_uuidv6:()=>yo,_uuidv7:()=>vo,_void:()=>qo,_xid:()=>To,_xor:()=>JT,clone:()=>we,config:()=>ye,createStandardJSONSchemaMethod:()=>Hr,createToJSONSchemaMethod:()=>zp,decode:()=>yg,decodeAsync:()=>_g,describe:()=>Ps,encode:()=>hg,encodeAsync:()=>vg,extractDefs:()=>Ut,finalize:()=>Lt,flattenError:()=>$r,formatError:()=>Or,globalConfig:()=>$n,globalRegistry:()=>Re,initializeContext:()=>Mt,isValidBase64:()=>Ml,isValidBase64URL:()=>Fg,isValidJWT:()=>Bg,locales:()=>Br,meta:()=>xs,parse:()=>Qt,parseAsync:()=>er,prettifyError:()=>Gi,process:()=>ue,regexes:()=>Ge,registry:()=>lo,safeDecode:()=>xg,safeDecodeAsync:()=>Eg,safeEncode:()=>Pg,safeEncodeAsync:()=>bg,safeParse:()=>kr,safeParseAsync:()=>Dr,toDotPath:()=>gg,toJSONSchema:()=>ti,treeifyError:()=>qi,util:()=>$,version:()=>Dl});var Bi=Object.freeze({status:"aborted"});function m(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,f=Object.keys(l);for(let y=0;y<f.length;y++){let h=f[y];h in u||(u[h]=l[h].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 f of l._zod.deferred)f();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(m,"$constructor");var On=Symbol("zod_brand"),ut=class extends Error{static{s(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ot=class extends Error{static{s(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},$n={};function ye(e){return e&&Object.assign($n,e),$n}s(ye,"config");var $={};Ke($,{BIGINT_FORMAT_RANGES:()=>Bc,Class:()=>Dc,NUMBER_FORMAT_RANGES:()=>Fc,aborted:()=>kt,allowsEval:()=>Uc,assert:()=>lE,assertEqual:()=>aE,assertIs:()=>uE,assertNever:()=>cE,assertNotEqual:()=>sE,assignProp:()=>Rt,base64ToUint8Array:()=>dg,base64urlToUint8Array:()=>xE,cached:()=>Ir,captureStackTrace:()=>Vi,cleanEnum:()=>PE,cleanRegex:()=>zn,clone:()=>we,cloneDef:()=>dE,createTransparentProxy:()=>vE,defineLazy:()=>J,esc:()=>Zi,escapeRegex:()=>nt,extend:()=>ug,finalizeIssue:()=>He,floatSafeRemainder:()=>Nc,getElementAtPath:()=>fE,getEnumValues:()=>Rn,getLengthableOrigin:()=>Dn,getParsedType:()=>yE,getSizableOrigin:()=>Cn,hexToUint8Array:()=>EE,isObject:()=>Yt,isPlainObject:()=>zt,issue:()=>Sr,joinValues:()=>x,jsonStringifyReplacer:()=>Ar,merge:()=>_E,mergeDefs:()=>yt,normalizeParams:()=>A,nullish:()=>wt,numKeys:()=>hE,objectClone:()=>pE,omit:()=>sg,optionalKeys:()=>jc,parsedType:()=>O,partial:()=>lg,pick:()=>ag,prefixIssues:()=>Ye,primitiveTypes:()=>Lc,promiseAllObject:()=>mE,propertyKeyTypes:()=>kn,randomString:()=>gE,required:()=>pg,safeExtend:()=>cg,shallowClone:()=>Hi,slugify:()=>Mc,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>fg,uint8ArrayToBase64url:()=>bE,uint8ArrayToHex:()=>TE,unwrapMessage:()=>wn});function aE(e){return e}s(aE,"assertEqual");function sE(e){return e}s(sE,"assertNotEqual");function uE(e){}s(uE,"assertIs");function cE(e){throw new Error("Unexpected value in exhaustive check")}s(cE,"assertNever");function lE(e){}s(lE,"assert");function Rn(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(Rn,"getEnumValues");function x(e,t="|"){return e.map(n=>S(n)).join(t)}s(x,"joinValues");function Ar(e,t){return typeof t=="bigint"?t.toString():t}s(Ar,"jsonStringifyReplacer");function Ir(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}s(Ir,"cached");function wt(e){return e==null}s(wt,"nullish");function zn(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}s(zn,"cleanRegex");function Nc(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(Nc,"floatSafeRemainder");var ig=Symbol("evaluating");function J(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==ig)return o===void 0&&(o=ig,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}s(J,"defineLazy");function pE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}s(pE,"objectClone");function Rt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}s(Rt,"assignProp");function yt(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}s(yt,"mergeDefs");function dE(e){return yt(e._zod.def)}s(dE,"cloneDef");function fE(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}s(fE,"getElementAtPath");function mE(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(mE,"promiseAllObject");function gE(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}s(gE,"randomString");function Zi(e){return JSON.stringify(e)}s(Zi,"esc");function Mc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}s(Mc,"slugify");var Vi="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}s(Yt,"isObject");var Uc=Ir(()=>{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(Yt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Yt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}s(zt,"isPlainObject");function Hi(e){return zt(e)?{...e}:Array.isArray(e)?[...e]:e}s(Hi,"shallowClone");function hE(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}s(hE,"numKeys");var yE=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"),kn=new Set(["string","number","symbol"]),Lc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(nt,"escapeRegex");function we(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}s(we,"clone");function A(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(A,"normalizeParams");function vE(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(vE,"createTransparentProxy");function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}s(S,"stringifyPrimitive");function jc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}s(jc,"optionalKeys");var Fc={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]},Bc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ag(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=yt(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 Rt(this,"shape",a),a},checks:[]});return we(e,i)}s(ag,"pick");function sg(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=yt(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 Rt(this,"shape",a),a},checks:[]});return we(e,i)}s(sg,"omit");function ug(e,t){if(!zt(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=yt(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Rt(this,"shape",i),i}});return we(e,r)}s(ug,"extend");function cg(e,t){if(!zt(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=yt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Rt(this,"shape",o),o}});return we(e,n)}s(cg,"safeExtend");function _E(e,t){let n=yt(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Rt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return we(e,n)}s(_E,"merge");function lg(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=yt(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 Rt(this,"shape",c),c},checks:[]});return we(t,a)}s(lg,"partial");function pg(e,t,n){let o=yt(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 Rt(this,"shape",i),i}});return we(t,o)}s(pg,"required");function kt(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(kt,"aborted");function Ye(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}s(Ye,"prefixIssues");function wn(e){return typeof e=="string"?e:e?.message}s(wn,"unwrapMessage");function He(e,t,n){let o={...e,path:e.path??[]};if(!e.message){let r=wn(e.inst?._zod.def?.error?.(e))??wn(t?.error?.(e))??wn(n.customError?.(e))??wn(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}s(He,"finalizeIssue");function Cn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}s(Cn,"getSizableOrigin");function Dn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}s(Dn,"getLengthableOrigin");function O(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(O,"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 PE(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}s(PE,"cleanEnum");function dg(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(dg,"base64ToUint8Array");function fg(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}s(fg,"uint8ArrayToBase64");function xE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return dg(t+n)}s(xE,"base64urlToUint8Array");function bE(e){return fg(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}s(bE,"uint8ArrayToBase64url");function EE(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(EE,"hexToUint8Array");function TE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}s(TE,"uint8ArrayToHex");var Dc=class{static{s(this,"Class")}constructor(...t){}};var mg=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,Ar,2),Object.defineProperty(e,"toString",{value:s(()=>e.message,"value"),enumerable:!1})},"initializer"),Nn=m("$ZodError",mg),qe=m("$ZodError",mg,{Parent:Error});function $r(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($r,"flattenError");function Or(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(Or,"formatError");function qi(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 f=n,y=0;for(;y<l.length;){let h=l[y],p=y===l.length-1;typeof h=="string"?(f.properties??(f.properties={}),(a=f.properties)[h]??(a[h]={errors:[]}),f=f.properties[h]):(f.items??(f.items=[]),(u=f.items)[h]??(u[h]={errors:[]}),f=f.items[h]),p&&f.errors.push(t(c)),y++}}},"processError");return o(e),n}s(qi,"treeifyError");function gg(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(gg,"toDotPath");function Gi(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 ${gg(o.path)}`);return t.join(`
6
+ `)}s(Gi,"prettifyError");var wr=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 ut;if(a.issues.length){let u=new(r?.Err??e)(a.issues.map(c=>He(c,i,ye())));throw Vi(u,r?.callee),u}return a.value},"_parse"),Qt=wr(qe),Rr=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=>He(c,i,ye())));throw Vi(u,r?.callee),u}return a.value},"_parseAsync"),er=Rr(qe),zr=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 ut;return i.issues.length?{success:!1,error:new(e??Nn)(i.issues.map(a=>He(a,r,ye())))}:{success:!0,data:i.value}},"_safeParse"),kr=zr(qe),Cr=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=>He(a,r,ye())))}:{success:!0,data:i.value}},"_safeParseAsync"),Dr=Cr(qe),Wi=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return wr(e)(t,n,r)},"_encode"),hg=Wi(qe),Ji=s(e=>(t,n,o)=>wr(e)(t,n,o),"_decode"),yg=Ji(qe),Xi=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Rr(e)(t,n,r)},"_encodeAsync"),vg=Xi(qe),Ki=s(e=>async(t,n,o)=>Rr(e)(t,n,o),"_decodeAsync"),_g=Ki(qe),Yi=s(e=>(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return zr(e)(t,n,r)},"_safeEncode"),Pg=Yi(qe),Qi=s(e=>(t,n,o)=>zr(e)(t,n,o),"_safeDecode"),xg=Qi(qe),ea=s(e=>async(t,n,o)=>{let r=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Cr(e)(t,n,r)},"_safeEncodeAsync"),bg=ea(qe),ta=s(e=>async(t,n,o)=>Cr(e)(t,n,o),"_safeDecodeAsync"),Eg=ta(qe);var Ge={};Ke(Ge,{base64:()=>ol,base64url:()=>ra,bigint:()=>ll,boolean:()=>dl,browserEmail:()=>kE,cidrv4:()=>rl,cidrv6:()=>nl,cuid:()=>Zc,cuid2:()=>Vc,date:()=>al,datetime:()=>ul,domain:()=>NE,duration:()=>Jc,e164:()=>il,email:()=>Kc,emoji:()=>Yc,extendedDuration:()=>IE,guid:()=>Xc,hex:()=>ME,hostname:()=>DE,html5Email:()=>wE,idnEmail:()=>zE,integer:()=>pl,ipv4:()=>Qc,ipv6:()=>el,ksuid:()=>Gc,lowercase:()=>gl,mac:()=>tl,md5_base64:()=>LE,md5_base64url:()=>jE,md5_hex:()=>UE,nanoid:()=>Wc,null:()=>fl,number:()=>na,rfc5322Email:()=>RE,sha1_base64:()=>BE,sha1_base64url:()=>ZE,sha1_hex:()=>FE,sha256_base64:()=>HE,sha256_base64url:()=>qE,sha256_hex:()=>VE,sha384_base64:()=>WE,sha384_base64url:()=>JE,sha384_hex:()=>GE,sha512_base64:()=>KE,sha512_base64url:()=>YE,sha512_hex:()=>XE,string:()=>cl,time:()=>sl,ulid:()=>Hc,undefined:()=>ml,unicodeEmail:()=>Tg,uppercase:()=>hl,uuid:()=>tr,uuid4:()=>SE,uuid6:()=>$E,uuid7:()=>OE,xid:()=>qc});var Zc=/^[cC][^\s-]{8,}$/,Vc=/^[0-9a-z]+$/,Hc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qc=/^[0-9a-vA-V]{20}$/,Gc=/^[A-Za-z0-9]{27}$/,Wc=/^[a-zA-Z0-9_-]{21}$/,Jc=/^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)?)??$/,Xc=/^([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})$/,tr=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"),SE=tr(4),$E=tr(6),OE=tr(7),Kc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wE=/^[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])?)*$/,RE=/^(([^<>()\[\]\\.,;:\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,}))$/,Tg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,zE=Tg,kE=/^[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])?)*$/,CE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yc(){return new RegExp(CE,"u")}s(Yc,"emoji");var 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])$/,el=/^(([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}|:))$/,tl=s(e=>{let t=nt(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"),rl=/^((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])$/,nl=/^(([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])$/,ol=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ra=/^[A-Za-z0-9_-]*$/,DE=/^(?=.{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])?)*\.?$/,NE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,il=/^\+[1-9]\d{6,14}$/,Ag="(?:(?:\\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])))",al=new RegExp(`^${Ag}$`);function Ig(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(Ig,"timeSource");function sl(e){return new RegExp(`^${Ig(e)}$`)}s(sl,"time");function ul(e){let t=Ig({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(`^${Ag}T(?:${o})$`)}s(ul,"datetime");var cl=s(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),ll=/^-?\d+n?$/,pl=/^-?\d+$/,na=/^-?\d+(?:\.\d+)?$/,dl=/^(?:true|false)$/i,fl=/^null$/i;var ml=/^undefined$/i;var gl=/^[^A-Z]*$/,hl=/^[^a-z]*$/,ME=/^[0-9a-fA-F]*$/;function Mn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}s(Mn,"fixedBase64");function Un(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}s(Un,"fixedBase64url");var UE=/^[0-9a-fA-F]{32}$/,LE=Mn(22,"=="),jE=Un(22),FE=/^[0-9a-fA-F]{40}$/,BE=Mn(27,"="),ZE=Un(27),VE=/^[0-9a-fA-F]{64}$/,HE=Mn(43,"="),qE=Un(43),GE=/^[0-9a-fA-F]{96}$/,WE=Mn(64,""),JE=Un(64),XE=/^[0-9a-fA-F]{128}$/,KE=Mn(86,"=="),YE=Un(86);var ce=m("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),$g={number:"number",bigint:"bigint",object:"date"},oa=m("$ZodCheckLessThan",(e,t)=>{ce.init(e,t);let n=$g[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})}}),ia=m("$ZodCheckGreaterThan",(e,t)=>{ce.init(e,t);let n=$g[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})}}),yl=m("$ZodCheckMultipleOf",(e,t)=>{ce.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):Nc(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})}}),vl=m("$ZodCheckNumberFormat",(e,t)=>{ce.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=Fc[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=pl)}),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})}}),_l=m("$ZodCheckBigIntFormat",(e,t)=>{ce.init(e,t);let[n,o]=Bc[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})}}),Pl=m("$ZodCheckMaxSize",(e,t)=>{var n;ce.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!wt(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:Cn(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),xl=m("$ZodCheckMinSize",(e,t)=>{var n;ce.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!wt(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:Cn(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bl=m("$ZodCheckSizeEquals",(e,t)=>{var n;ce.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!wt(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:Cn(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})}}),El=m("$ZodCheckMaxLength",(e,t)=>{var n;ce.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!wt(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=Dn(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Tl=m("$ZodCheckMinLength",(e,t)=>{var n;ce.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!wt(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=Dn(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Al=m("$ZodCheckLengthEquals",(e,t)=>{var n;ce.init(e,t),(n=e._zod.def).when??(n.when=o=>{let r=o.value;return!wt(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=Dn(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})}}),Nr=m("$ZodCheckStringFormat",(e,t)=>{var n,o;ce.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=()=>{})}),Il=m("$ZodCheckRegex",(e,t)=>{Nr.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})}}),Sl=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gl),Nr.init(e,t)}),$l=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hl),Nr.init(e,t)}),Ol=m("$ZodCheckIncludes",(e,t)=>{ce.init(e,t);let n=nt(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})}}),wl=m("$ZodCheckStartsWith",(e,t)=>{ce.init(e,t);let n=new RegExp(`^${nt(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})}}),Rl=m("$ZodCheckEndsWith",(e,t)=>{ce.init(e,t);let n=new RegExp(`.*${nt(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 Sg(e,t,n){e.issues.length&&t.issues.push(...Ye(n,e.issues))}s(Sg,"handleCheckPropertyResult");var zl=m("$ZodCheckProperty",(e,t)=>{ce.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=>Sg(r,n,t.property));Sg(o,n,t.property)}}),kl=m("$ZodCheckMimeType",(e,t)=>{ce.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})}}),Cl=m("$ZodCheckOverwrite",(e,t)=>{ce.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Ln=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(...o.map(a=>a.length-a.trimStart().length)),i=o.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,n=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
8
+ `))}};var Dl={major:4,minor:3,patch:6};var Z=m("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Dl;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=kt(a),f;for(let y of u){if(y._zod.def.when){if(!y._zod.def.when(a))continue}else if(l)continue;let h=a.issues.length,p=y._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new ut;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,a.issues.length!==h&&(l||(l=kt(a,h)))});else{if(a.issues.length===h)continue;l||(l=kt(a,h))}}return f?f.then(()=>a):a},"runChecks"),i=s((a,u,c)=>{if(kt(a))return a.aborted=!0,a;let l=r(u,o,c);if(l instanceof Promise){if(c.async===!1)throw new ut;return l.then(f=>e._zod.parse(f,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(f=>i(f,a,u)):i(l,a,u)}let c=e._zod.parse(a,u);if(c instanceof Promise){if(u.async===!1)throw new ut;return c.then(l=>r(l,o,u))}return r(c,o,u)}}J(e,"~standard",()=>({validate:s(r=>{try{let i=kr(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Dr(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),vt=m("$ZodString",(e,t)=>{Z.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cl(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}}),se=m("$ZodStringFormat",(e,t)=>{Nr.init(e,t),vt.init(e,t)}),pa=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Xc),se.init(e,t)}),da=m("$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=tr(o))}else t.pattern??(t.pattern=tr());se.init(e,t)}),fa=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Kc),se.init(e,t)}),jn=m("$ZodURL",(e,t)=>{se.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})}}}),ma=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Yc()),se.init(e,t)}),ga=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Wc),se.init(e,t)}),ha=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Zc),se.init(e,t)}),ya=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Vc),se.init(e,t)}),va=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Hc),se.init(e,t)}),_a=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=qc),se.init(e,t)}),Pa=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Gc),se.init(e,t)}),Fn=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ul(t)),se.init(e,t)}),Bn=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=al),se.init(e,t)}),Zn=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=sl(t)),se.init(e,t)}),Vn=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Jc),se.init(e,t)}),xa=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Qc),se.init(e,t),e._zod.bag.format="ipv4"}),ba=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=el),se.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})}}}),Ea=m("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=tl(t.delimiter)),se.init(e,t),e._zod.bag.format="mac"}),Ta=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=rl),se.init(e,t)}),Aa=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=nl),se.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 Ml(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}s(Ml,"isValidBase64");var Ia=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ol),se.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ml(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Fg(e){if(!ra.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ml(n)}s(Fg,"isValidBase64URL");var Sa=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ra),se.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Fg(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),$a=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=il),se.init(e,t)});function Bg(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(Bg,"isValidJWT");var Oa=m("$ZodJWT",(e,t)=>{se.init(e,t),e._zod.check=n=>{Bg(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),wa=m("$ZodCustomStringFormat",(e,t)=>{se.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})}}),Mr=m("$ZodNumber",(e,t)=>{Z.init(e,t),e._zod.pattern=e._zod.bag.pattern??na,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}}),Hn=m("$ZodNumberFormat",(e,t)=>{vl.init(e,t),Mr.init(e,t)}),rr=m("$ZodBoolean",(e,t)=>{Z.init(e,t),e._zod.pattern=dl,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}}),Ur=m("$ZodBigInt",(e,t)=>{Z.init(e,t),e._zod.pattern=ll,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}}),Ra=m("$ZodBigIntFormat",(e,t)=>{_l.init(e,t),Ur.init(e,t)}),za=m("$ZodSymbol",(e,t)=>{Z.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}}),ka=m("$ZodUndefined",(e,t)=>{Z.init(e,t),e._zod.pattern=ml,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}}),Ca=m("$ZodNull",(e,t)=>{Z.init(e,t),e._zod.pattern=fl,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}}),qn=m("$ZodAny",(e,t)=>{Z.init(e,t),e._zod.parse=n=>n}),Gn=m("$ZodUnknown",(e,t)=>{Z.init(e,t),e._zod.parse=n=>n}),Da=m("$ZodNever",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Wn=m("$ZodVoid",(e,t)=>{Z.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}}),Jn=m("$ZodDate",(e,t)=>{Z.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 wg(e,t,n){e.issues.length&&t.issues.push(...Ye(n,e.issues)),t.value[n]=e.value}s(wg,"handleArrayResult");var Xn=m("$ZodArray",(e,t)=>{Z.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=>wg(l,n,a))):wg(c,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function la(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...Ye(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}s(la,"handlePropertyResult");function Zg(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=jc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}s(Zg,"normalizeDef");function Vg(e,t,n,o,r,i){let a=[],u=r.keySet,c=r.catchall._zod,l=c.def.type,f=c.optout==="optional";for(let y in t){if(u.has(y))continue;if(l==="never"){a.push(y);continue}let h=c.run({value:t[y],issues:[]},o);h instanceof Promise?e.push(h.then(p=>la(p,n,y,t,f))):la(h,n,y,t,f)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}s(Vg,"handleCatchall");var Na=m("$ZodObject",(e,t)=>{if(Z.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=Ir(()=>Zg(t));J(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let f=u[l]._zod;if(f.values){c[l]??(c[l]=new Set);for(let y of f.values)c[l].add(y)}}return c});let r=Yt,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 f=[],y=a.shape;for(let h of a.keys){let p=y[h],g=p._zod.optout==="optional",_=p._zod.run({value:l[h],issues:[]},c);_ instanceof Promise?f.push(_.then(b=>la(b,u,h,l,g))):la(_,u,h,l,g)}return i?Vg(f,l,u,c,o.value,e):f.length?Promise.all(f).then(()=>u):u}}),Ul=m("$ZodObjectJIT",(e,t)=>{Na.init(e,t);let n=e._zod.parse,o=Ir(()=>Zg(t)),r=s(h=>{let p=new Ln(["shape","payload","ctx"]),g=o.value,_=s(L=>{let ne=Zi(L);return`shape[${ne}]._zod.run({ value: input[${ne}], issues: [] }, ctx)`},"parseStr");p.write("const input = payload.value;");let b=Object.create(null),E=0;for(let L of g.keys)b[L]=`key_${E++}`;p.write("const newResult = {};");for(let L of g.keys){let ne=b[L],pe=Zi(L),be=h[L]?._zod?.optout==="optional";p.write(`const ${ne} = ${_(L)};`),be?p.write(`
9
+ if (${ne}.issues.length) {
10
+ if (${pe} in input) {
11
+ payload.issues = payload.issues.concat(${ne}.issues.map(iss => ({
12
+ ...iss,
13
+ path: iss.path ? [${pe}, ...iss.path] : [${pe}]
14
+ })));
15
+ }
16
+ }
17
+
18
+ if (${ne}.value === undefined) {
19
+ if (${pe} in input) {
20
+ newResult[${pe}] = undefined;
21
+ }
22
+ } else {
23
+ newResult[${pe}] = ${ne}.value;
24
+ }
25
+
26
+ `):p.write(`
27
+ if (${ne}.issues.length) {
28
+ payload.issues = payload.issues.concat(${ne}.issues.map(iss => ({
29
+ ...iss,
30
+ path: iss.path ? [${pe}, ...iss.path] : [${pe}]
31
+ })));
32
+ }
33
+
34
+ if (${ne}.value === undefined) {
35
+ if (${pe} in input) {
36
+ newResult[${pe}] = undefined;
37
+ }
38
+ } else {
39
+ newResult[${pe}] = ${ne}.value;
40
+ }
41
+
42
+ `)}p.write("payload.value = newResult;"),p.write("return payload;");let T=p.compile();return(L,ne)=>T(h,L,ne)},"generateFastpass"),i,a=Yt,u=!$n.jitless,l=u&&Uc.value,f=t.catchall,y;e._zod.parse=(h,p)=>{y??(y=o.value);let g=h.value;return a(g)?u&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),h=i(h,p),f?Vg([],g,h,p,y,e):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function Rg(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=>!kt(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=>He(a,o,ye())))}),t)}s(Rg,"handleUnionResults");var nr=m("$ZodUnion",(e,t)=>{Z.init(e,t),J(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),J(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),J(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),J(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=>zn(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=>Rg(c,r,e,i)):Rg(u,r,e,i)}});function zg(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=>He(a,o,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}s(zg,"handleExclusiveUnionResults");var Ma=m("$ZodXor",(e,t)=>{nr.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=>zg(c,r,e,i)):zg(u,r,e,i)}}),Kn=m("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nr.init(e,t);let n=e._zod.parse;J(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=Ir(()=>{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(!Yt(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)}}),Ua=m("$ZodIntersection",(e,t)=>{Z.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])=>kg(n,c,l)):kg(n,i,a)}});function Nl(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 n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(let i of o){let a=Nl(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=Nl(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(Nl,"mergeValues");function kg(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}),kt(e))return e;let a=Nl(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(kg,"handleIntersectionResults");var Yn=m("$ZodTuple",(e,t)=>{Z.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(f=>f._zod.optin!=="optional"),c=u===-1?0:n.length-u;if(!t.rest){let f=i.length>n.length,y=i.length<c-1;if(f||y)return o.issues.push({...f?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),o}let l=-1;for(let f of n){if(l++,l>=i.length&&l>=c)continue;let y=f._zod.run({value:i[l],issues:[]},r);y instanceof Promise?a.push(y.then(h=>aa(h,o,l))):aa(y,o,l)}if(t.rest){let f=i.slice(n.length);for(let y of f){l++;let h=t.rest._zod.run({value:y,issues:[]},r);h instanceof Promise?a.push(h.then(p=>aa(p,o,l))):aa(h,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function aa(e,t,n){e.issues.length&&t.issues.push(...Ye(n,e.issues)),t.value[n]=e.value}s(aa,"handleTupleResult");var Qn=m("$ZodRecord",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!zt(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 f=t.valueType._zod.run({value:r[l],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&n.issues.push(...Ye(l,y.issues)),n.value[l]=y.value})):(f.issues.length&&n.issues.push(...Ye(l,f.issues)),n.value[l]=f.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"&&na.test(u)&&c.issues.length){let y=t.keyType._zod.run({value:Number(u),issues:[]},o);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(c=y)}if(c.issues.length){t.mode==="loose"?n.value[u]=r[u]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(y=>He(y,o,ye())),input:u,path:[u],inst:e});continue}let f=t.valueType._zod.run({value:r[u],issues:[]},o);f instanceof Promise?i.push(f.then(y=>{y.issues.length&&n.issues.push(...Ye(u,y.issues)),n.value[c.value]=y.value})):(f.issues.length&&n.issues.push(...Ye(u,f.issues)),n.value[c.value]=f.value)}}return i.length?Promise.all(i).then(()=>n):n}}),La=m("$ZodMap",(e,t)=>{Z.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(([f,y])=>{Cg(f,y,n,a,r,e,o)})):Cg(c,l,n,a,r,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Cg(e,t,n,o,r,i,a){e.issues.length&&(kn.has(typeof o)?n.issues.push(...Ye(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(u=>He(u,a,ye()))})),t.issues.length&&(kn.has(typeof o)?n.issues.push(...Ye(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(u=>He(u,a,ye()))})),n.value.set(e.value,t.value)}s(Cg,"handleMapResult");var ja=m("$ZodSet",(e,t)=>{Z.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=>Dg(c,n))):Dg(u,n)}return i.length?Promise.all(i).then(()=>n):n}});function Dg(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}s(Dg,"handleSetResult");var eo=m("$ZodEnum",(e,t)=>{Z.init(e,t);let n=Rn(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>kn.has(typeof r)).map(r=>typeof r=="string"?nt(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}}),to=m("$ZodLiteral",(e,t)=>{if(Z.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"?nt(o):o?nt(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}}),Fa=m("$ZodFile",(e,t)=>{Z.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}}),ro=m("$ZodTransform",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot(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 ut;return n.value=r,n}});function Ng(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}s(Ng,"handleOptionalResult");var Lr=m("$ZodOptional",(e,t)=>{Z.init(e,t),e._zod.optin="optional",e._zod.optout="optional",J(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),J(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${zn(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=>Ng(i,n.value)):Ng(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Ba=m("$ZodExactOptional",(e,t)=>{Lr.init(e,t),J(e._zod,"values",()=>t.innerType._zod.values),J(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),no=m("$ZodNullable",(e,t)=>{Z.init(e,t),J(e._zod,"optin",()=>t.innerType._zod.optin),J(e._zod,"optout",()=>t.innerType._zod.optout),J(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${zn(n.source)}|null)$`):void 0}),J(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)}),Za=m("$ZodDefault",(e,t)=>{Z.init(e,t),e._zod.optin="optional",J(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=>Mg(i,t)):Mg(r,t)}});function Mg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}s(Mg,"handleDefaultResult");var Va=m("$ZodPrefault",(e,t)=>{Z.init(e,t),e._zod.optin="optional",J(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))}),Ha=m("$ZodNonOptional",(e,t)=>{Z.init(e,t),J(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=>Ug(i,e)):Ug(r,e)}});function Ug(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(Ug,"handleNonOptionalResult");var qa=m("$ZodSuccess",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot("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)}}),Ga=m("$ZodCatch",(e,t)=>{Z.init(e,t),J(e._zod,"optin",()=>t.innerType._zod.optin),J(e._zod,"optout",()=>t.innerType._zod.optout),J(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=>He(a,o,ye()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>He(i,o,ye()))},input:n.value}),n.issues=[]),n)}}),Wa=m("$ZodNaN",(e,t)=>{Z.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)}),oo=m("$ZodPipe",(e,t)=>{Z.init(e,t),J(e._zod,"values",()=>t.in._zod.values),J(e._zod,"optin",()=>t.in._zod.optin),J(e._zod,"optout",()=>t.out._zod.optout),J(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=>sa(a,t.in,o)):sa(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>sa(i,t.out,o)):sa(r,t.out,o)}});function sa(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}s(sa,"handlePipeResult");var jr=m("$ZodCodec",(e,t)=>{Z.init(e,t),J(e._zod,"values",()=>t.in._zod.values),J(e._zod,"optin",()=>t.in._zod.optin),J(e._zod,"optout",()=>t.out._zod.optout),J(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=>ua(a,t,o)):ua(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>ua(a,t,o)):ua(i,t,o)}}});function ua(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=>ca(e,i,t.out,n)):ca(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>ca(e,i,t.in,n)):ca(e,r,t.in,n)}}s(ua,"handleCodecAResult");function ca(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}s(ca,"handleCodecTxResult");var Ja=m("$ZodReadonly",(e,t)=>{Z.init(e,t),J(e._zod,"propValues",()=>t.innerType._zod.propValues),J(e._zod,"values",()=>t.innerType._zod.values),J(e._zod,"optin",()=>t.innerType?._zod?.optin),J(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(Lg):Lg(r)}});function Lg(e){return e.value=Object.freeze(e.value),e}s(Lg,"handleReadonlyResult");var Xa=m("$ZodTemplateLiteral",(e,t)=>{Z.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||Lc.has(typeof o))n.push(nt(`${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)}),Ka=m("$ZodFunction",(e,t)=>(Z.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?Qt(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?Qt(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 er(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await er(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 Yn({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)),Ya=m("$ZodPromise",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),Qa=m("$ZodLazy",(e,t)=>{Z.init(e,t),J(e._zod,"innerType",()=>t.getter()),J(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),J(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),J(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),J(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),io=m("$ZodCustom",(e,t)=>{ce.init(e,t),Z.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=>jg(i,n,o,e));jg(r,n,o,e)}});function jg(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(jg,"handleRefineResult");var Br={};Ke(Br,{ar:()=>Ll,az:()=>jl,be:()=>Fl,bg:()=>Bl,ca:()=>Zl,cs:()=>Vl,da:()=>Hl,de:()=>ql,en:()=>ao,eo:()=>Gl,es:()=>Wl,fa:()=>Jl,fi:()=>Xl,fr:()=>Kl,frCA:()=>Yl,he:()=>Ql,hu:()=>ep,hy:()=>tp,id:()=>rp,is:()=>np,it:()=>op,ja:()=>ip,ka:()=>ap,kh:()=>sp,km:()=>so,ko:()=>up,lt:()=>cp,mk:()=>lp,ms:()=>pp,nl:()=>dp,no:()=>fp,ota:()=>mp,pl:()=>hp,ps:()=>gp,pt:()=>yp,ru:()=>vp,sl:()=>_p,sv:()=>Pp,ta:()=>xp,th:()=>bp,tr:()=>Ep,ua:()=>Tp,uk:()=>co,ur:()=>Ap,uz:()=>Ip,vi:()=>Sp,yo:()=>wp,zhCN:()=>$p,zhTW:()=>Op});var eT=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=O(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 ${S(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: ${x(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":""}: ${x(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 Ll(){return{localeError:eT()}}s(Ll,"default");var tT=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=O(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 ${S(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${x(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":""}: ${x(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 jl(){return{localeError:tT()}}s(jl,"default");function Hg(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(Hg,"getBelarusianPlural");var rT=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=O(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 ${S(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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Hg(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=Hg(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"}: ${x(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 Fl(){return{localeError:rT()}}s(Fl,"default");var nT=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=O(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 ${S(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 ${x(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":""}: ${x(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 Bl(){return{localeError:nT()}}s(Bl,"default");var oT=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=O(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 ${S(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${x(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":""}: ${x(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 Zl(){return{localeError:oT()}}s(Zl,"default");var iT=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=O(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 ${S(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${x(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: ${x(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 Vl(){return{localeError:iT()}}s(Vl,"default");var aT=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=O(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 ${S(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${x(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"}: ${x(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 Hl(){return{localeError:aT()}}s(Hl,"default");var sT=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=O(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 ${S(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${x(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"}: ${x(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 ql(){return{localeError:sT()}}s(ql,"default");var uT=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=O(r.input),u=o[a]??a;return`Invalid input: expected ${i}, received ${u}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${S(r.values[0])}`:`Invalid option: expected one of ${x(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":""}: ${x(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 ao(){return{localeError:uT()}}s(ao,"default");var cT=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=O(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 ${S(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${x(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":""}: ${x(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 Gl(){return{localeError:cT()}}s(Gl,"default");var lT=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=O(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 ${S(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${x(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":""}: ${x(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 Wl(){return{localeError:lT()}}s(Wl,"default");var pT=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=O(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 ${S(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 ${x(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: ${x(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 Jl(){return{localeError:pT()}}s(Jl,"default");var dT=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=O(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 ${S(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${x(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"}: ${x(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 Xl(){return{localeError:dT()}}s(Xl,"default");var fT=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=O(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 : ${S(r.values[0])} attendu`:`Option invalide : une valeur parmi ${x(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":""} : ${x(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 Kl(){return{localeError:fT()}}s(Kl,"default");var mT=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=O(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 ${S(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${x(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":""} : ${x(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 Yl(){return{localeError:mT()}}s(Yl,"default");var gT=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 f=n(l);return f?f.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 f=l.expected,y=c[f??""]??o(f),h=O(l.input),p=c[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 ${y}, \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 ${S(l.values[0])}`;let f=l.values.map(p=>S(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 ${f[0]} \u05D0\u05D5 ${f[1]}`;let y=f[f.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${y}`}case"too_big":{let f=a(l.origin),y=r(l.origin??"value");if(l.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${f?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let g=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: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=l.inclusive?`${l.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${y} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=l.inclusive?"<=":"<",p=i(l.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${y} ${p} ${h}${l.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${y} ${p} ${h}${l.maximum.toString()}`}case"too_small":{let f=a(l.origin),y=r(l.origin??"value");if(l.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${y} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${f?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let g=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: ${y} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(l.origin==="array"||l.origin==="set"){let g=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let b=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let _=l.inclusive?`${l.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${y} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let h=l.inclusive?">=":">",p=i(l.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${y} ${p} ${h}${l.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${y} ${p} ${h}${l.minimum.toString()}`}case"invalid_format":{let f=l;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${f.pattern}`;let y=u[f.format],h=y?.label??f.format,g=(y?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${g}`}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"}: ${x(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 Ql(){return{localeError:gT()}}s(Ql,"default");var hT=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=O(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 ${S(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${x(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":""}: ${x(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 ep(){return{localeError:hT()}}s(ep,"default");function qg(e,t,n){return Math.abs(e)===1?t:n}s(qg,"getArmenianPlural");function Fr(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(Fr,"withDefiniteArticle");var yT=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=O(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 ${S(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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=qg(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 ${Fr(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 ${Fr(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=qg(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 ${Fr(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 ${Fr(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":""}. ${x(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Fr(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 ${Fr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function tp(){return{localeError:yT()}}s(tp,"default");var vT=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=O(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 ${S(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${x(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":""}: ${x(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 rp(){return{localeError:vT()}}s(rp,"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 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=O(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 ${S(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${x(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"}: ${x(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 np(){return{localeError:_T()}}s(np,"default");var PT=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=O(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 ${S(r.values[0])}`:`Opzione non valida: atteso uno tra ${x(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"}: ${x(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 op(){return{localeError:PT()}}s(op,"default");var xT=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=O(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: ${S(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${x(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":""}: ${x(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 ip(){return{localeError:xT()}}s(ip,"default");var bT=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=O(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 ${S(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 ${x(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"}: ${x(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 ap(){return{localeError:bT()}}s(ap,"default");var ET=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=O(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 ${S(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 ${x(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 ${x(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 so(){return{localeError:ET()}}s(so,"default");function sp(){return so()}s(sp,"default");var TT=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=O(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 ${S(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${x(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: ${x(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 up(){return{localeError:TT()}}s(up,"default");var uo=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function Gg(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(Gg,"getUnitTypeFromNumber");var AT=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=O(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 ${S(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${x(r.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,Gg(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${uo(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`${uo(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,Gg(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${uo(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`${uo(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"}: ${x(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`${uo(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function cp(){return{localeError:AT()}}s(cp,"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=O(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 ${S(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 ${x(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"}: ${x(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 lp(){return{localeError:IT()}}s(lp,"default");var ST=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=O(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 ${S(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${x(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: ${x(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 pp(){return{localeError:ST()}}s(pp,"default");var $T=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=O(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 ${S(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${x(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":""}: ${x(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 dp(){return{localeError:$T()}}s(dp,"default");var OT=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=O(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 ${S(r.values[0])}`:`Ugyldig valg: forventet en av ${x(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"}: ${x(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 fp(){return{localeError:OT()}}s(fp,"default");var wT=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=O(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 ${S(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${x(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":""}: ${x(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 mp(){return{localeError:wT()}}s(mp,"default");var RT=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=O(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 ${S(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${x(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"}: ${x(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 gp(){return{localeError:RT()}}s(gp,"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 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=O(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 ${S(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${x(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":""}: ${x(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 hp(){return{localeError:zT()}}s(hp,"default");var kT=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=O(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 ${S(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${x(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":""}: ${x(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 yp(){return{localeError:kT()}}s(yp,"default");function Wg(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(Wg,"getRussianPlural");var CT=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=O(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 ${S(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 ${x(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let u=Number(r.maximum),c=Wg(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=Wg(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":""}: ${x(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 vp(){return{localeError:CT()}}s(vp,"default");var DT=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=O(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 ${S(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${x(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"}: ${x(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 _p(){return{localeError:DT()}}s(_p,"default");var NT=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=O(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 ${S(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${x(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"}: ${x(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 Pp(){return{localeError:NT()}}s(Pp,"default");var MT=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=O(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 ${S(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 ${x(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":""}: ${x(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 xp(){return{localeError:MT()}}s(xp,"default");var UT=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=O(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 ${S(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 ${x(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: ${x(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 bp(){return{localeError:UT()}}s(bp,"default");var LT=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=O(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 ${S(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${x(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":""}: ${x(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 Ep(){return{localeError:LT()}}s(Ep,"default");var jT=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=O(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 ${S(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 ${x(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":""}: ${x(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 co(){return{localeError:jT()}}s(co,"default");function Tp(){return co()}s(Tp,"default");var FT=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=O(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: ${S(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${x(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":""}: ${x(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 Ap(){return{localeError:FT()}}s(Ap,"default");var BT=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=O(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 ${S(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${x(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":""}: ${x(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 Ip(){return{localeError:BT()}}s(Ip,"default");var ZT=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=O(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 ${S(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 ${x(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: ${x(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 Sp(){return{localeError:ZT()}}s(Sp,"default");var VT=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=O(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 ${S(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${x(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): ${x(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 $p(){return{localeError:VT()}}s($p,"default");var HT=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=O(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 ${S(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${x(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${x(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 Op(){return{localeError:HT()}}s(Op,"default");var qT=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=O(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 ${S(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${x(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: ${x(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 wp(){return{localeError:qT()}}s(wp,"default");var Jg,ts=Symbol("ZodOutput"),rs=Symbol("ZodInput"),es=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 lo(){return new es}s(lo,"registry");(Jg=globalThis).__zod_globalRegistry??(Jg.__zod_globalRegistry=lo());var Re=globalThis.__zod_globalRegistry;function po(e,t){return new e({type:"string",...A(t)})}s(po,"_string");function fo(e,t){return new e({type:"string",coerce:!0,...A(t)})}s(fo,"_coercedString");function mo(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...A(t)})}s(mo,"_email");function Zr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...A(t)})}s(Zr,"_guid");function go(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...A(t)})}s(go,"_uuid");function ho(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...A(t)})}s(ho,"_uuidv4");function yo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...A(t)})}s(yo,"_uuidv6");function vo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...A(t)})}s(vo,"_uuidv7");function or(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...A(t)})}s(or,"_url");function _o(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...A(t)})}s(_o,"_emoji");function Po(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...A(t)})}s(Po,"_nanoid");function xo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...A(t)})}s(xo,"_cuid");function bo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...A(t)})}s(bo,"_cuid2");function Eo(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...A(t)})}s(Eo,"_ulid");function To(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...A(t)})}s(To,"_xid");function Ao(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...A(t)})}s(Ao,"_ksuid");function Io(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...A(t)})}s(Io,"_ipv4");function So(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...A(t)})}s(So,"_ipv6");function ns(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...A(t)})}s(ns,"_mac");function $o(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...A(t)})}s($o,"_cidrv4");function Oo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...A(t)})}s(Oo,"_cidrv6");function wo(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...A(t)})}s(wo,"_base64");function Ro(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...A(t)})}s(Ro,"_base64url");function zo(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...A(t)})}s(zo,"_e164");function ko(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...A(t)})}s(ko,"_jwt");var os={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Co(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...A(t)})}s(Co,"_isoDateTime");function Do(e,t){return new e({type:"string",format:"date",check:"string_format",...A(t)})}s(Do,"_isoDate");function No(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...A(t)})}s(No,"_isoTime");function Mo(e,t){return new e({type:"string",format:"duration",check:"string_format",...A(t)})}s(Mo,"_isoDuration");function Uo(e,t){return new e({type:"number",checks:[],...A(t)})}s(Uo,"_number");function Lo(e,t){return new e({type:"number",coerce:!0,checks:[],...A(t)})}s(Lo,"_coercedNumber");function jo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...A(t)})}s(jo,"_int");function is(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...A(t)})}s(is,"_float32");function as(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...A(t)})}s(as,"_float64");function ss(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...A(t)})}s(ss,"_int32");function us(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...A(t)})}s(us,"_uint32");function Fo(e,t){return new e({type:"boolean",...A(t)})}s(Fo,"_boolean");function Bo(e,t){return new e({type:"boolean",coerce:!0,...A(t)})}s(Bo,"_coercedBoolean");function cs(e,t){return new e({type:"bigint",...A(t)})}s(cs,"_bigint");function Zo(e,t){return new e({type:"bigint",coerce:!0,...A(t)})}s(Zo,"_coercedBigint");function ls(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...A(t)})}s(ls,"_int64");function ps(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...A(t)})}s(ps,"_uint64");function ds(e,t){return new e({type:"symbol",...A(t)})}s(ds,"_symbol");function fs(e,t){return new e({type:"undefined",...A(t)})}s(fs,"_undefined");function ms(e,t){return new e({type:"null",...A(t)})}s(ms,"_null");function Vo(e){return new e({type:"any"})}s(Vo,"_any");function Ho(e){return new e({type:"unknown"})}s(Ho,"_unknown");function gs(e,t){return new e({type:"never",...A(t)})}s(gs,"_never");function qo(e,t){return new e({type:"void",...A(t)})}s(qo,"_void");function hs(e,t){return new e({type:"date",...A(t)})}s(hs,"_date");function Go(e,t){return new e({type:"date",coerce:!0,...A(t)})}s(Go,"_coercedDate");function ys(e,t){return new e({type:"nan",...A(t)})}s(ys,"_nan");function ct(e,t){return new oa({check:"less_than",...A(t),value:e,inclusive:!1})}s(ct,"_lt");function Ue(e,t){return new oa({check:"less_than",...A(t),value:e,inclusive:!0})}s(Ue,"_lte");function lt(e,t){return new ia({check:"greater_than",...A(t),value:e,inclusive:!1})}s(lt,"_gt");function $e(e,t){return new ia({check:"greater_than",...A(t),value:e,inclusive:!0})}s($e,"_gte");function Wo(e){return lt(0,e)}s(Wo,"_positive");function Jo(e){return ct(0,e)}s(Jo,"_negative");function Xo(e){return Ue(0,e)}s(Xo,"_nonpositive");function Ko(e){return $e(0,e)}s(Ko,"_nonnegative");function _t(e,t){return new yl({check:"multiple_of",...A(t),value:e})}s(_t,"_multipleOf");function Pt(e,t){return new Pl({check:"max_size",...A(t),maximum:e})}s(Pt,"_maxSize");function pt(e,t){return new xl({check:"min_size",...A(t),minimum:e})}s(pt,"_minSize");function Ct(e,t){return new bl({check:"size_equals",...A(t),size:e})}s(Ct,"_size");function Dt(e,t){return new El({check:"max_length",...A(t),maximum:e})}s(Dt,"_maxLength");function Ie(e,t){return new Tl({check:"min_length",...A(t),minimum:e})}s(Ie,"_minLength");function Nt(e,t){return new Al({check:"length_equals",...A(t),length:e})}s(Nt,"_length");function Ce(e,t){return new Il({check:"string_format",format:"regex",...A(t),pattern:e})}s(Ce,"_regex");function ir(e){return new Sl({check:"string_format",format:"lowercase",...A(e)})}s(ir,"_lowercase");function ar(e){return new $l({check:"string_format",format:"uppercase",...A(e)})}s(ar,"_uppercase");function sr(e,t){return new Ol({check:"string_format",format:"includes",...A(t),includes:e})}s(sr,"_includes");function ur(e,t){return new wl({check:"string_format",format:"starts_with",...A(t),prefix:e})}s(ur,"_startsWith");function cr(e,t){return new Rl({check:"string_format",format:"ends_with",...A(t),suffix:e})}s(cr,"_endsWith");function Yo(e,t,n){return new zl({check:"property",property:e,schema:t,...A(n)})}s(Yo,"_property");function lr(e,t){return new kl({check:"mime_type",mime:e,...A(t)})}s(lr,"_mime");function ot(e){return new Cl({check:"overwrite",tx:e})}s(ot,"_overwrite");function pr(e){return ot(t=>t.normalize(e))}s(pr,"_normalize");function dr(){return ot(e=>e.trim())}s(dr,"_trim");function fr(){return ot(e=>e.toLowerCase())}s(fr,"_toLowerCase");function mr(){return ot(e=>e.toUpperCase())}s(mr,"_toUpperCase");function Vr(){return ot(e=>Mc(e))}s(Vr,"_slugify");function Rp(e,t,n){return new e({type:"array",element:t,...A(n)})}s(Rp,"_array");function WT(e,t,n){return new e({type:"union",options:t,...A(n)})}s(WT,"_union");function JT(e,t,n){return new e({type:"union",options:t,inclusive:!1,...A(n)})}s(JT,"_xor");function XT(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...A(o)})}s(XT,"_discriminatedUnion");function KT(e,t,n){return new e({type:"intersection",left:t,right:n})}s(KT,"_intersection");function YT(e,t,n,o){let r=n instanceof Z,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...A(i)})}s(YT,"_tuple");function QT(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...A(o)})}s(QT,"_record");function eA(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...A(o)})}s(eA,"_map");function tA(e,t,n){return new e({type:"set",valueType:t,...A(n)})}s(tA,"_set");function rA(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...A(n)})}s(rA,"_enum");function nA(e,t,n){return new e({type:"enum",entries:t,...A(n)})}s(nA,"_nativeEnum");function oA(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...A(n)})}s(oA,"_literal");function vs(e,t){return new e({type:"file",...A(t)})}s(vs,"_file");function iA(e,t){return new e({type:"transform",transform:t})}s(iA,"_transform");function aA(e,t){return new e({type:"optional",innerType:t})}s(aA,"_optional");function sA(e,t){return new e({type:"nullable",innerType:t})}s(sA,"_nullable");function uA(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Hi(n)}})}s(uA,"_default");function cA(e,t,n){return new e({type:"nonoptional",innerType:t,...A(n)})}s(cA,"_nonoptional");function lA(e,t){return new e({type:"success",innerType:t})}s(lA,"_success");function pA(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}s(pA,"_catch");function dA(e,t,n){return new e({type:"pipe",in:t,out:n})}s(dA,"_pipe");function fA(e,t){return new e({type:"readonly",innerType:t})}s(fA,"_readonly");function mA(e,t,n){return new e({type:"template_literal",parts:t,...A(n)})}s(mA,"_templateLiteral");function gA(e,t){return new e({type:"lazy",getter:t})}s(gA,"_lazy");function hA(e,t){return new e({type:"promise",innerType:t})}s(hA,"_promise");function Qo(e,t,n){let o=A(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}s(Qo,"_custom");function ei(e,t,n){return new e({type:"custom",check:"custom",fn:t,...A(n)})}s(ei,"_refine");function _s(e){let t=Xg(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(_s,"_superRefine");function Xg(e,t){let n=new ce({check:"custom",...A(t)});return n._zod.check=e,n}s(Xg,"_check");function Ps(e){let t=new ce({check:"describe"});return t._zod.onattach=[n=>{let o=Re.get(n)??{};Re.add(n,{...o,description:e})}],t._zod.check=()=>{},t}s(Ps,"describe");function xs(e){let t=new ce({check:"meta"});return t._zod.onattach=[n=>{let o=Re.get(n)??{};Re.add(n,{...o,...e})}],t._zod.check=()=>{},t}s(xs,"meta");function bs(e,t){let n=A(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??jr,c=e.Boolean??rr,l=e.String??vt,f=new l({type:"string",error:n.error}),y=new c({type:"boolean",error:n.error}),h=new u({type:"pipe",in:f,out:y,transform:s(((p,g)=>{let _=p;return n.case!=="sensitive"&&(_=_.toLowerCase()),i.has(_)?!0:a.has(_)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:g.value,inst:h,continue:!1}),{})}),"transform"),reverseTransform:s(((p,g)=>p===!0?o[0]||"true":r[0]||"false"),"reverseTransform"),error:n.error});return h}s(bs,"_stringbool");function gr(e,t,n,o={}){let r=A(o),i={...A(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(gr,"_stringFormat");function Mt(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??Re,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(Mt,"initializeContext");function ue(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 f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,f);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,f)}let y=e._zod.parent;y&&(a.ref||(a.ref=y),ue(y,t,f),t.seen.get(y).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Le(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(ue,"process");function Ut(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 y=e.external.registry.get(a[0])?.id,h=e.external.uri??(g=>g);if(y)return{ref:h(y)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${h("__shared")}#/${u}/${p}`}}if(a[1]===n)return{ref:"#"};let l=`#/${u}/`,f=a[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:l+f}},"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 f=u.schema;for(let y in f)delete f[y];f.$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>
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(Ut,"extractDefs");function Lt(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},f=u.ref;if(u.ref=null,f){o(f);let h=e.seen.get(f),p=h.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===f)for(let _ in c)_==="$ref"||_==="allOf"||_ in l||delete c[_];if(p.$ref&&h.def)for(let _ in c)_==="$ref"||_==="allOf"||_ in h.def&&JSON.stringify(c[_])===JSON.stringify(h.def[_])&&delete c[_]}let y=a._zod.parent;if(y&&y!==f){o(y);let h=e.seen.get(y);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let p in c)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(c[p])===JSON.stringify(h.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:Hr(t,"input",e.processors),output:Hr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}s(Lt,"finalize");function Le(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 Le(o.element,n);if(o.type==="set")return Le(o.valueType,n);if(o.type==="lazy")return Le(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 Le(o.innerType,n);if(o.type==="intersection")return Le(o.left,n)||Le(o.right,n);if(o.type==="record"||o.type==="map")return Le(o.keyType,n)||Le(o.valueType,n);if(o.type==="pipe")return Le(o.in,n)||Le(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Le(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Le(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Le(r,n))return!0;return!!(o.rest&&Le(o.rest,n))}return!1}s(Le,"isTransforming");var zp=s((e,t={})=>n=>{let o=Mt({...n,processors:t});return ue(e,o),Ut(o,e),Lt(o,e)},"createToJSONSchemaMethod"),Hr=s((e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=Mt({...r??{},target:i,io:t,processors:n});return ue(e,a),Ut(a,e),Lt(a,e)},"createStandardJSONSchemaMethod");var yA={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},kp=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=yA[u]??u,r.format===""&&delete r.format,u==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let f=[...c];f.length===1?r.pattern=f[0].source:f.length>1&&(r.allOf=[...f.map(y=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},"stringProcessor"),Cp=s((e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:u,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:f}=e._zod.bag;typeof u=="string"&&u.includes("int")?r.type="integer":r.type="number",typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=f,r.exclusiveMinimum=!0):r.exclusiveMinimum=f),typeof i=="number"&&(r.minimum=i,typeof f=="number"&&t.target!=="draft-04"&&(f>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof 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"),Dp=s((e,t,n,o)=>{n.type="boolean"},"booleanProcessor"),Np=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),Mp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),Up=s((e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},"nullProcessor"),Lp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),jp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),Fp=s((e,t,n,o)=>{n.not={}},"neverProcessor"),Bp=s((e,t,n,o)=>{},"anyProcessor"),Zp=s((e,t,n,o)=>{},"unknownProcessor"),Vp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Hp=s((e,t,n,o)=>{let r=e._zod.def,i=Rn(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},"enumProcessor"),qp=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"),Gp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Wp=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"),Jp=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"),Xp=s((e,t,n,o)=>{n.type="boolean"},"successProcessor"),Kp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),Yp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),Qp=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),ed=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),td=s((e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),rd=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=ue(i.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),nd=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]=ue(a[l],t,{...o,path:[...o.path,"properties",l]});let u=new Set(Object.keys(a)),c=new Set([...u].filter(l=>{let f=i.shape[l]._zod;return t.io==="input"?f.optin===void 0:f.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=ue(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},"objectProcessor"),Ts=s((e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((u,c)=>ue(u,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},"unionProcessor"),od=s((e,t,n,o)=>{let r=e._zod.def,i=ue(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=ue(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"),id=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((h,p)=>ue(h,t,{...o,path:[...o.path,a,p]})),l=i.rest?ue(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:f,maximum:y}=e._zod.bag;typeof f=="number"&&(r.minItems=f),typeof y=="number"&&(r.maxItems=y)},"tupleProcessor"),ad=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 f=ue(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let y of c)r.patternProperties[y.source]=f}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=ue(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=ue(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let f=[...l].filter(y=>typeof y=="string"||typeof y=="number");f.length>0&&(r.required=f)}},"recordProcessor"),sd=s((e,t,n,o)=>{let r=e._zod.def,i=ue(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"),ud=s((e,t,n,o)=>{let r=e._zod.def;ue(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"nonoptionalProcessor"),cd=s((e,t,n,o)=>{let r=e._zod.def;ue(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},"defaultProcessor"),ld=s((e,t,n,o)=>{let r=e._zod.def;ue(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"),pd=s((e,t,n,o)=>{let r=e._zod.def;ue(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"),dd=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;ue(i,t,o);let a=t.seen.get(e);a.ref=i},"pipeProcessor"),fd=s((e,t,n,o)=>{let r=e._zod.def;ue(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},"readonlyProcessor"),md=s((e,t,n,o)=>{let r=e._zod.def;ue(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"promiseProcessor"),As=s((e,t,n,o)=>{let r=e._zod.def;ue(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},"optionalProcessor"),gd=s((e,t,n,o)=>{let r=e._zod.innerType;ue(r,t,o);let i=t.seen.get(e);i.ref=r},"lazyProcessor"),Es={string:kp,number:Cp,boolean:Dp,bigint:Np,symbol:Mp,null:Up,undefined:Lp,void:jp,never:Fp,any:Bp,unknown:Zp,date:Vp,enum:Hp,literal:qp,nan:Gp,template_literal:Wp,file:Jp,success:Xp,custom:Kp,function:Yp,transform:Qp,map:ed,set:td,array:rd,object:nd,union:Ts,intersection:od,tuple:id,record:ad,nullable:sd,nonoptional:ud,default:cd,prefault:ld,catch:pd,pipe:dd,readonly:fd,promise:md,optional:As,lazy:gd};function ti(e,t){if("_idmap"in e){let o=e,r=Mt({...t,processors:Es}),i={};for(let c of o._idmap.entries()){let[l,f]=c;ue(f,r)}let a={},u={registry:o,uri:t?.uri,defs:i};r.external=u;for(let c of o._idmap.entries()){let[l,f]=c;Ut(r,f),a[l]=Lt(r,f)}if(Object.keys(i).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let n=Mt({...t,processors:Es});return ue(e,n),Ut(n,e),Lt(n,e)}s(ti,"toJSONSchema");var Is=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=Mt({processors:Es,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 ue(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)),Ut(this.ctx,t);let o=Lt(this.ctx,t),{"~standard":r,...i}=o;return i}};var Kg={};var Se=m("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Z.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>Qt(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>kr(e,n,o),e.parseAsync=async(n,o)=>er(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Dr(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)=>we(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),Ss=m("ZodMiniString",(e,t)=>{vt.init(e,t),Se.init(e,t)});function d(e){return po(Ss,e)}s(d,"string");var qr=m("ZodMiniStringFormat",(e,t)=>{se.init(e,t),Ss.init(e,t)});var PA=m("ZodMiniURL",(e,t)=>{jn.init(e,t),qr.init(e,t)});function Yg(e){return or(PA,e)}s(Yg,"url");var $s=m("ZodMiniNumber",(e,t)=>{Mr.init(e,t),Se.init(e,t)});function ze(e){return Uo($s,e)}s(ze,"number");var xA=m("ZodMiniNumberFormat",(e,t)=>{Hn.init(e,t),$s.init(e,t)});function Qg(e){return jo(xA,e)}s(Qg,"int");var hd=m("ZodMiniBoolean",(e,t)=>{rr.init(e,t),Se.init(e,t)});function ie(e){return Fo(hd,e)}s(ie,"boolean");var eh=m("ZodMiniBigInt",(e,t)=>{Ur.init(e,t),Se.init(e,t)});var bA=m("ZodMiniAny",(e,t)=>{qn.init(e,t),Se.init(e,t)});function ri(){return Vo(bA)}s(ri,"any");var EA=m("ZodMiniUnknown",(e,t)=>{Gn.init(e,t),Se.init(e,t)});function q(){return Ho(EA)}s(q,"unknown");var TA=m("ZodMiniVoid",(e,t)=>{Wn.init(e,t),Se.init(e,t)});function th(e){return qo(TA,e)}s(th,"_void");var rh=m("ZodMiniDate",(e,t)=>{Jn.init(e,t),Se.init(e,t)});var AA=m("ZodMiniArray",(e,t)=>{Xn.init(e,t),Se.init(e,t)});function B(e,t){return new AA({type:"array",element:e,...A(t)})}s(B,"array");var IA=m("ZodMiniObject",(e,t)=>{Na.init(e,t),Se.init(e,t),J(e,"shape",()=>t.shape)});function v(e,t){let n={type:"object",shape:e??{},...A(t)};return new IA(n)}s(v,"object");var SA=m("ZodMiniUnion",(e,t)=>{nr.init(e,t),Se.init(e,t)});function X(e,t){return new SA({type:"union",options:e,...A(t)})}s(X,"union");var $A=m("ZodMiniDiscriminatedUnion",(e,t)=>{Kn.init(e,t),Se.init(e,t)});function jt(e,t,n){return new $A({type:"union",options:t,discriminator:e,...A(n)})}s(jt,"discriminatedUnion");var OA=m("ZodMiniRecord",(e,t)=>{Qn.init(e,t),Se.init(e,t)});function G(e,t,n){return new OA({type:"record",keyType:e,valueType:t,...A(n)})}s(G,"record");var wA=m("ZodMiniEnum",(e,t)=>{eo.init(e,t),Se.init(e,t),e.options=Object.values(t.entries)});function F(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new wA({type:"enum",entries:n,...A(t)})}s(F,"_enum");var RA=m("ZodMiniLiteral",(e,t)=>{to.init(e,t),Se.init(e,t)});function j(e,t){return new RA({type:"literal",values:Array.isArray(e)?e:[e],...A(t)})}s(j,"literal");var zA=m("ZodMiniTransform",(e,t)=>{ro.init(e,t),Se.init(e,t)});function Ft(e){return new zA({type:"transform",transform:e})}s(Ft,"transform");var kA=m("ZodMiniOptional",(e,t)=>{Lr.init(e,t),Se.init(e,t)});function P(e){return new kA({type:"optional",innerType:e})}s(P,"optional");var CA=m("ZodMiniNullable",(e,t)=>{no.init(e,t),Se.init(e,t)});function ni(e){return new CA({type:"nullable",innerType:e})}s(ni,"nullable");var DA=m("ZodMiniPipe",(e,t)=>{oo.init(e,t),Se.init(e,t)});function Bt(e,t){return new DA({type:"pipe",in:e,out:t})}s(Bt,"pipe");var nh=m("ZodMiniCustom",(e,t)=>{io.init(e,t),Se.init(e,t)});function Os(e,t){return Qo(nh,e??(()=>!0),t)}s(Os,"custom");function yd(e,t={}){return ei(nh,e,t)}s(yd,"refine");var ws={};Ke(ws,{ZodMiniISODate:()=>_d,ZodMiniISODateTime:()=>vd,ZodMiniISODuration:()=>xd,ZodMiniISOTime:()=>Pd,date:()=>MA,datetime:()=>NA,duration:()=>LA,time:()=>UA});var vd=m("ZodMiniISODateTime",(e,t)=>{Fn.init(e,t),qr.init(e,t)});function NA(e){return Co(vd,e)}s(NA,"datetime");var _d=m("ZodMiniISODate",(e,t)=>{Bn.init(e,t),qr.init(e,t)});function MA(e){return Do(_d,e)}s(MA,"date");var Pd=m("ZodMiniISOTime",(e,t)=>{Zn.init(e,t),qr.init(e,t)});function UA(e){return No(Pd,e)}s(UA,"time");var xd=m("ZodMiniISODuration",(e,t)=>{Vn.init(e,t),qr.init(e,t)});function LA(e){return Mo(xd,e)}s(LA,"duration");var oi={};Ke(oi,{bigint:()=>ZA,boolean:()=>BA,date:()=>VA,number:()=>FA,string:()=>jA});function jA(e){return fo(Ss,e)}s(jA,"string");function FA(e){return Lo($s,e)}s(FA,"number");function BA(e){return Bo(hd,e)}s(BA,"boolean");function ZA(e){return Zo(eh,e)}s(ZA,"bigint");function VA(e){return Go(rh,e)}s(VA,"date");var Ed=v({retryOnFailure:v({defaultValue:P(ie()),hide:P(ie())}),continueOnFailure:v({defaultValue:P(ie()),hide:P(ie())})}),bd=class{constructor(t,n,o,r,i,a,u,c,l,f,y,h,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=f;this.audience=y;this.aiMetadata=h;this.classification=p}static{s(this,"IAction")}},me=s(e=>new bd(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 oe=v({displayName:d(),description:P(d()),advanced:P(ie()),width:P(F(["half","full"])),icon:P(d()),placeholder:P(d())}),W=s((e,t)=>v({type:j(t),required:ie(),defaultValue:P(ri())}),"TPropertyValue");var et=v({...oe.shape,...W(d(),"SHORT_TEXT").shape}),xt=v({...oe.shape,...W(d(),"LONG_TEXT").shape});var ih=v({label:d(),value:q(),description:P(d()),icon:P(d())}),Rs=v({disabled:P(ie()),placeholder:P(d()),options:B(ih)});var qA=F(["cards"]),tt=v({...oe.shape,options:Rs,display:P(qA),...W(q(),"STATIC_DROPDOWN").shape}),bt=v({...oe.shape,options:Rs,...W(B(q()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Td=v({...oe.shape,...W(q(),"DROPDOWN").shape,refreshers:B(d())}),ii=v({...oe.shape,...W(B(q()),"MULTI_SELECT_DROPDOWN").shape,refreshers:B(d())});var Et=v({...oe.shape,reveals:P(B(d())),...W(ie(),"CHECKBOX").shape});var Tt=v({...oe.shape,display:P(F(["stepper"])),min:P(ze()),max:P(ze()),step:P(ze()),...W(ze(),"NUMBER").shape});var ai=v({...oe.shape,streaming:P(ie()),...W(q(),"FILE").shape});var si=v({...oe.shape,...W(d(),"DATE_TIME").shape});var ah=G(d(),X([et,xt,tt,ii,bt,Et,Tt,ai,si])),ui=v({...oe.shape,properties:ah,...W(B(q()),"ARRAY").shape});var sh=F(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),uh=v({preset:P(sh),after:P(d()),before:P(d())}),Ad=v({...oe.shape,display:P(F(["dropdown"])),...W(uh,"DATE_RANGE").shape});var ci=v({...oe.shape,...W(X([G(d(),q())]),"JSON").shape});var ch=X([et,tt,ci,ui,bt]),GA=G(d(),ch),Id=v({refreshers:B(d()),...oe.shape,...W(q(),"DYNAMIC").shape});var zs=v({...oe.shape,...W(th(),"MARKDOWN").shape});var li=(n=>(n.ARCHIVE="ARCHIVE",n.REGISTRY="REGISTRY",n))(li||{}),Gr=(n=>(n.CUSTOM="CUSTOM",n.OFFICIAL="OFFICIAL",n))(Gr||{}),pi=(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))(pi||{});var di=(n=>(n.AUTHORIZATION_CODE="authorization_code",n.CLIENT_CREDENTIALS="client_credentials",n))(di||{}),Sd="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||{}),fi=(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))(fi||{}),WA=v({strategy:F(fi),paramName:P(d())}),mi=(n=>(n.SIMULATION="SIMULATION",n.TEST_FUNCTION="TEST_FUNCTION",n))(mi||{});var ks=(n=>(n.WEBSOCKET="WEBSOCKET",n.NONE="NONE",n))(ks||{}),lh=v({status:P(ze()),body:P(q()),headers:P(G(d(),d()))}),ph=v({type:j("DELAY"),resumeDateTime:d(),requestIdToReply:P(d()),handlerId:P(d()),streamStepProgress:P(F(ks))}),dh=v({type:j("WEBHOOK"),requestId:d(),requestIdToReply:P(d()),response:lh,handlerId:P(d()),streamStepProgress:P(F(ks))}),JA=X([ph,dh]);var XA=v({body:q(),rawBody:P(q()),headers:G(d(),d()),queryParams:G(d(),d())});function ve(e){return e==null}s(ve,"isNil");function gi(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}s(gi,"isEmpty");function Cs(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}s(Cs,"assertNotNullOrUndefined");function Od(e){try{return{data:e(),error:null}}catch(t){return{data:null,error:t}}}s(Od,"tryCatchSync");var wd=ft(require("crypto"),1);var KA=128,Zt,Wr,YA=s(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Zt||Zt.length<e?(Zt=Buffer.allocUnsafe(e*KA),wd.default.randomFillSync(Zt),Wr=0):Wr+e>Zt.length&&(wd.default.randomFillSync(Zt),Wr=0)}catch(t){throw Zt=void 0,t}Wr+=e},"fillPool"),QA=s(e=>(YA(e|=0),Zt.subarray(Wr-e,Wr)),"random"),eI=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"),fh=s((e,t=21)=>eI(e,t,QA),"customAlphabet");var tI="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",mh=21,w0=d().check(Ce(new RegExp(`^[0-9a-zA-Z]{${mh}}$`))),rI=fh(tI,mh);var Vt=Bt(Ft(e=>e instanceof Date?e.toISOString():e),d()),it={id:d(),created:Vt,updated:Vt},_e=s(e=>P(ni(e)),"Nullable");function Rd(e){return P(ni(F(e)))}s(Rd,"NullableEnum");var k0=Bt(Ft(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),P(ie())),C0=P(ws.datetime({offset:!0}).check(yd(e=>e.slice(0,4)!=="0000"))),Ds=s(e=>Bt(Ft(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),P(B(e))),"OptionalArrayFromQuery");var M0=G(d(),q());var Ht=(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))(Ht||{});var w={};Ke(w,{$brand:()=>On,$input:()=>rs,$output:()=>ts,NEVER:()=>Bi,TimePrecision:()=>os,ZodAny:()=>tf,ZodArray:()=>af,ZodBase64:()=>ru,ZodBase64URL:()=>nu,ZodBigInt:()=>tn,ZodBigIntFormat:()=>au,ZodBoolean:()=>en,ZodCIDRv4:()=>eu,ZodCIDRv6:()=>tu,ZodCUID:()=>Gs,ZodCUID2:()=>Ws,ZodCatch:()=>$f,ZodCodec:()=>mu,ZodCustom:()=>Si,ZodCustomStringFormat:()=>Yr,ZodDate:()=>bi,ZodDefault:()=>bf,ZodDiscriminatedUnion:()=>uf,ZodE164:()=>ou,ZodEmail:()=>Vs,ZodEmoji:()=>Hs,ZodEnum:()=>Xr,ZodError:()=>nI,ZodExactOptional:()=>_f,ZodFile:()=>yf,ZodFirstPartyTypeKind:()=>jf,ZodFunction:()=>Mf,ZodGUID:()=>yi,ZodIPv4:()=>Ys,ZodIPv6:()=>Qs,ZodISODate:()=>Us,ZodISODateTime:()=>Ms,ZodISODuration:()=>js,ZodISOTime:()=>Ls,ZodIntersection:()=>cf,ZodIssueCode:()=>iI,ZodJWT:()=>iu,ZodKSUID:()=>Ks,ZodLazy:()=>Cf,ZodLiteral:()=>hf,ZodMAC:()=>Wd,ZodMap:()=>mf,ZodNaN:()=>wf,ZodNanoID:()=>qs,ZodNever:()=>nf,ZodNonOptional:()=>du,ZodNull:()=>Qd,ZodNullable:()=>xf,ZodNumber:()=>Qr,ZodNumberFormat:()=>yr,ZodObject:()=>Ti,ZodOptional:()=>pu,ZodPipe:()=>fu,ZodPrefault:()=>Tf,ZodPromise:()=>Nf,ZodReadonly:()=>Rf,ZodRealError:()=>We,ZodRecord:()=>Ii,ZodSet:()=>gf,ZodString:()=>Kr,ZodStringFormat:()=>le,ZodSuccess:()=>Sf,ZodSymbol:()=>Kd,ZodTemplateLiteral:()=>kf,ZodTransform:()=>vf,ZodTuple:()=>pf,ZodType:()=>K,ZodULID:()=>Js,ZodURL:()=>xi,ZodUUID:()=>gt,ZodUndefined:()=>Yd,ZodUnion:()=>Ai,ZodUnknown:()=>rf,ZodVoid:()=>of,ZodXID:()=>Xs,ZodXor:()=>sf,_ZodString:()=>Zs,_default:()=>Ef,_function:()=>xy,any:()=>Qh,array:()=>Ei,base64:()=>Nh,base64url:()=>Mh,bigint:()=>Wh,boolean:()=>Xd,catch:()=>Of,check:()=>by,cidrv4:()=>Ch,cidrv6:()=>Dh,clone:()=>we,codec:()=>vy,coerce:()=>Ff,config:()=>ye,core:()=>Qe,cuid:()=>Ih,cuid2:()=>Sh,custom:()=>Ey,date:()=>ty,decode:()=>Fd,decodeAsync:()=>Zd,describe:()=>Ty,discriminatedUnion:()=>sy,e164:()=>Uh,email:()=>hh,emoji:()=>Th,encode:()=>jd,encodeAsync:()=>Bd,endsWith:()=>cr,enum:()=>cu,exactOptional:()=>Pf,file:()=>my,flattenError:()=>$r,float32:()=>Vh,float64:()=>Hh,formatError:()=>Or,fromJSONSchema:()=>Ry,function:()=>xy,getErrorMap:()=>sI,globalRegistry:()=>Re,gt:()=>lt,gte:()=>$e,guid:()=>yh,hash:()=>Zh,hex:()=>Bh,hostname:()=>Fh,httpUrl:()=>Eh,includes:()=>sr,instanceof:()=>Iy,int:()=>Bs,int32:()=>qh,int64:()=>Jh,intersection:()=>lf,ipv4:()=>Rh,ipv6:()=>kh,iso:()=>Jr,json:()=>$y,jwt:()=>Lh,keyof:()=>ry,ksuid:()=>wh,lazy:()=>Df,length:()=>Nt,literal:()=>fy,locales:()=>Br,looseObject:()=>iy,looseRecord:()=>cy,lowercase:()=>ir,lt:()=>ct,lte:()=>Ue,mac:()=>zh,map:()=>ly,maxLength:()=>Dt,maxSize:()=>Pt,meta:()=>Ay,mime:()=>lr,minLength:()=>Ie,minSize:()=>pt,multipleOf:()=>_t,nan:()=>yy,nanoid:()=>Ah,nativeEnum:()=>dy,negative:()=>Jo,never:()=>su,nonnegative:()=>Ko,nonoptional:()=>If,nonpositive:()=>Xo,normalize:()=>pr,null:()=>ef,nullable:()=>_i,nullish:()=>gy,number:()=>Jd,object:()=>ny,optional:()=>vi,overwrite:()=>ot,parse:()=>Nd,parseAsync:()=>Md,partialRecord:()=>uy,pipe:()=>Pi,positive:()=>Wo,prefault:()=>Af,preprocess:()=>Oy,prettifyError:()=>Gi,promise:()=>Py,property:()=>Yo,readonly:()=>zf,record:()=>ff,refine:()=>Uf,regex:()=>Ce,regexes:()=>Ge,registry:()=>lo,safeDecode:()=>Hd,safeDecodeAsync:()=>Gd,safeEncode:()=>Vd,safeEncodeAsync:()=>qd,safeParse:()=>Ud,safeParseAsync:()=>Ld,set:()=>py,setErrorMap:()=>aI,size:()=>Ct,slugify:()=>Vr,startsWith:()=>ur,strictObject:()=>oy,string:()=>Fs,stringFormat:()=>jh,stringbool:()=>Sy,success:()=>hy,superRefine:()=>Lf,symbol:()=>Kh,templateLiteral:()=>_y,toJSONSchema:()=>ti,toLowerCase:()=>fr,toUpperCase:()=>mr,transform:()=>lu,treeifyError:()=>qi,trim:()=>dr,tuple:()=>df,uint32:()=>Gh,uint64:()=>Xh,ulid:()=>$h,undefined:()=>Yh,union:()=>uu,unknown:()=>hr,uppercase:()=>ar,url:()=>bh,util:()=>$,uuid:()=>vh,uuidv4:()=>_h,uuidv6:()=>Ph,uuidv7:()=>xh,void:()=>ey,xid:()=>Oh,xor:()=>ay});var hi={};Ke(hi,{ZodAny:()=>tf,ZodArray:()=>af,ZodBase64:()=>ru,ZodBase64URL:()=>nu,ZodBigInt:()=>tn,ZodBigIntFormat:()=>au,ZodBoolean:()=>en,ZodCIDRv4:()=>eu,ZodCIDRv6:()=>tu,ZodCUID:()=>Gs,ZodCUID2:()=>Ws,ZodCatch:()=>$f,ZodCodec:()=>mu,ZodCustom:()=>Si,ZodCustomStringFormat:()=>Yr,ZodDate:()=>bi,ZodDefault:()=>bf,ZodDiscriminatedUnion:()=>uf,ZodE164:()=>ou,ZodEmail:()=>Vs,ZodEmoji:()=>Hs,ZodEnum:()=>Xr,ZodExactOptional:()=>_f,ZodFile:()=>yf,ZodFunction:()=>Mf,ZodGUID:()=>yi,ZodIPv4:()=>Ys,ZodIPv6:()=>Qs,ZodIntersection:()=>cf,ZodJWT:()=>iu,ZodKSUID:()=>Ks,ZodLazy:()=>Cf,ZodLiteral:()=>hf,ZodMAC:()=>Wd,ZodMap:()=>mf,ZodNaN:()=>wf,ZodNanoID:()=>qs,ZodNever:()=>nf,ZodNonOptional:()=>du,ZodNull:()=>Qd,ZodNullable:()=>xf,ZodNumber:()=>Qr,ZodNumberFormat:()=>yr,ZodObject:()=>Ti,ZodOptional:()=>pu,ZodPipe:()=>fu,ZodPrefault:()=>Tf,ZodPromise:()=>Nf,ZodReadonly:()=>Rf,ZodRecord:()=>Ii,ZodSet:()=>gf,ZodString:()=>Kr,ZodStringFormat:()=>le,ZodSuccess:()=>Sf,ZodSymbol:()=>Kd,ZodTemplateLiteral:()=>kf,ZodTransform:()=>vf,ZodTuple:()=>pf,ZodType:()=>K,ZodULID:()=>Js,ZodURL:()=>xi,ZodUUID:()=>gt,ZodUndefined:()=>Yd,ZodUnion:()=>Ai,ZodUnknown:()=>rf,ZodVoid:()=>of,ZodXID:()=>Xs,ZodXor:()=>sf,_ZodString:()=>Zs,_default:()=>Ef,_function:()=>xy,any:()=>Qh,array:()=>Ei,base64:()=>Nh,base64url:()=>Mh,bigint:()=>Wh,boolean:()=>Xd,catch:()=>Of,check:()=>by,cidrv4:()=>Ch,cidrv6:()=>Dh,codec:()=>vy,cuid:()=>Ih,cuid2:()=>Sh,custom:()=>Ey,date:()=>ty,describe:()=>Ty,discriminatedUnion:()=>sy,e164:()=>Uh,email:()=>hh,emoji:()=>Th,enum:()=>cu,exactOptional:()=>Pf,file:()=>my,float32:()=>Vh,float64:()=>Hh,function:()=>xy,guid:()=>yh,hash:()=>Zh,hex:()=>Bh,hostname:()=>Fh,httpUrl:()=>Eh,instanceof:()=>Iy,int:()=>Bs,int32:()=>qh,int64:()=>Jh,intersection:()=>lf,ipv4:()=>Rh,ipv6:()=>kh,json:()=>$y,jwt:()=>Lh,keyof:()=>ry,ksuid:()=>wh,lazy:()=>Df,literal:()=>fy,looseObject:()=>iy,looseRecord:()=>cy,mac:()=>zh,map:()=>ly,meta:()=>Ay,nan:()=>yy,nanoid:()=>Ah,nativeEnum:()=>dy,never:()=>su,nonoptional:()=>If,null:()=>ef,nullable:()=>_i,nullish:()=>gy,number:()=>Jd,object:()=>ny,optional:()=>vi,partialRecord:()=>uy,pipe:()=>Pi,prefault:()=>Af,preprocess:()=>Oy,promise:()=>Py,readonly:()=>zf,record:()=>ff,refine:()=>Uf,set:()=>py,strictObject:()=>oy,string:()=>Fs,stringFormat:()=>jh,stringbool:()=>Sy,success:()=>hy,superRefine:()=>Lf,symbol:()=>Kh,templateLiteral:()=>_y,transform:()=>lu,tuple:()=>df,uint32:()=>Gh,uint64:()=>Xh,ulid:()=>$h,undefined:()=>Yh,union:()=>uu,unknown:()=>hr,url:()=>bh,uuid:()=>vh,uuidv4:()=>_h,uuidv6:()=>Ph,uuidv7:()=>xh,void:()=>ey,xid:()=>Oh,xor:()=>ay});var Ns={};Ke(Ns,{endsWith:()=>cr,gt:()=>lt,gte:()=>$e,includes:()=>sr,length:()=>Nt,lowercase:()=>ir,lt:()=>ct,lte:()=>Ue,maxLength:()=>Dt,maxSize:()=>Pt,mime:()=>lr,minLength:()=>Ie,minSize:()=>pt,multipleOf:()=>_t,negative:()=>Jo,nonnegative:()=>Ko,nonpositive:()=>Xo,normalize:()=>pr,overwrite:()=>ot,positive:()=>Wo,property:()=>Yo,regex:()=>Ce,size:()=>Ct,slugify:()=>Vr,startsWith:()=>ur,toLowerCase:()=>fr,toUpperCase:()=>mr,trim:()=>dr,uppercase:()=>ar});var Jr={};Ke(Jr,{ZodISODate:()=>Us,ZodISODateTime:()=>Ms,ZodISODuration:()=>js,ZodISOTime:()=>Ls,date:()=>kd,datetime:()=>zd,duration:()=>Dd,time:()=>Cd});var Ms=m("ZodISODateTime",(e,t)=>{Fn.init(e,t),le.init(e,t)});function zd(e){return Co(Ms,e)}s(zd,"datetime");var Us=m("ZodISODate",(e,t)=>{Bn.init(e,t),le.init(e,t)});function kd(e){return Do(Us,e)}s(kd,"date");var Ls=m("ZodISOTime",(e,t)=>{Zn.init(e,t),le.init(e,t)});function Cd(e){return No(Ls,e)}s(Cd,"time");var js=m("ZodISODuration",(e,t)=>{Vn.init(e,t),le.init(e,t)});function Dd(e){return Mo(js,e)}s(Dd,"duration");var gh=s((e,t)=>{Nn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:s(n=>Or(e,n),"value")},flatten:{value:s(n=>$r(e,n),"value")},addIssue:{value:s(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ar,2)},"value")},addIssues:{value:s(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ar,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),nI=m("ZodError",gh),We=m("ZodError",gh,{Parent:Error});var Nd=wr(We),Md=Rr(We),Ud=zr(We),Ld=Cr(We),jd=Wi(We),Fd=Ji(We),Bd=Xi(We),Zd=Ki(We),Vd=Yi(We),Hd=Qi(We),qd=ea(We),Gd=ta(We);var K=m("ZodType",(e,t)=>(Z.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Hr(e,"input"),output:Hr(e,"output")}}),e.toJSONSchema=zp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone($.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)=>we(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Nd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Ud(e,n,o),e.parseAsync=async(n,o)=>Md(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Ld(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>jd(e,n,o),e.decode=(n,o)=>Fd(e,n,o),e.encodeAsync=async(n,o)=>Bd(e,n,o),e.decodeAsync=async(n,o)=>Zd(e,n,o),e.safeEncode=(n,o)=>Vd(e,n,o),e.safeDecode=(n,o)=>Hd(e,n,o),e.safeEncodeAsync=async(n,o)=>qd(e,n,o),e.safeDecodeAsync=async(n,o)=>Gd(e,n,o),e.refine=(n,o)=>e.check(Uf(n,o)),e.superRefine=n=>e.check(Lf(n)),e.overwrite=n=>e.check(ot(n)),e.optional=()=>vi(e),e.exactOptional=()=>Pf(e),e.nullable=()=>_i(e),e.nullish=()=>vi(_i(e)),e.nonoptional=n=>If(e,n),e.array=()=>Ei(e),e.or=n=>uu([e,n]),e.and=n=>lf(e,n),e.transform=n=>Pi(e,lu(n)),e.default=n=>Ef(e,n),e.prefault=n=>Af(e,n),e.catch=n=>Of(e,n),e.pipe=n=>Pi(e,n),e.readonly=()=>zf(e),e.describe=n=>{let o=e.clone();return Re.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Re.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Re.get(e);let o=e.clone();return Re.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Zs=m("_ZodString",(e,t)=>{vt.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>kp(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(Ce(...o)),e.includes=(...o)=>e.check(sr(...o)),e.startsWith=(...o)=>e.check(ur(...o)),e.endsWith=(...o)=>e.check(cr(...o)),e.min=(...o)=>e.check(Ie(...o)),e.max=(...o)=>e.check(Dt(...o)),e.length=(...o)=>e.check(Nt(...o)),e.nonempty=(...o)=>e.check(Ie(1,...o)),e.lowercase=o=>e.check(ir(o)),e.uppercase=o=>e.check(ar(o)),e.trim=()=>e.check(dr()),e.normalize=(...o)=>e.check(pr(...o)),e.toLowerCase=()=>e.check(fr()),e.toUpperCase=()=>e.check(mr()),e.slugify=()=>e.check(Vr())}),Kr=m("ZodString",(e,t)=>{vt.init(e,t),Zs.init(e,t),e.email=n=>e.check(mo(Vs,n)),e.url=n=>e.check(or(xi,n)),e.jwt=n=>e.check(ko(iu,n)),e.emoji=n=>e.check(_o(Hs,n)),e.guid=n=>e.check(Zr(yi,n)),e.uuid=n=>e.check(go(gt,n)),e.uuidv4=n=>e.check(ho(gt,n)),e.uuidv6=n=>e.check(yo(gt,n)),e.uuidv7=n=>e.check(vo(gt,n)),e.nanoid=n=>e.check(Po(qs,n)),e.guid=n=>e.check(Zr(yi,n)),e.cuid=n=>e.check(xo(Gs,n)),e.cuid2=n=>e.check(bo(Ws,n)),e.ulid=n=>e.check(Eo(Js,n)),e.base64=n=>e.check(wo(ru,n)),e.base64url=n=>e.check(Ro(nu,n)),e.xid=n=>e.check(To(Xs,n)),e.ksuid=n=>e.check(Ao(Ks,n)),e.ipv4=n=>e.check(Io(Ys,n)),e.ipv6=n=>e.check(So(Qs,n)),e.cidrv4=n=>e.check($o(eu,n)),e.cidrv6=n=>e.check(Oo(tu,n)),e.e164=n=>e.check(zo(ou,n)),e.datetime=n=>e.check(zd(n)),e.date=n=>e.check(kd(n)),e.time=n=>e.check(Cd(n)),e.duration=n=>e.check(Dd(n))});function Fs(e){return po(Kr,e)}s(Fs,"string");var le=m("ZodStringFormat",(e,t)=>{se.init(e,t),Zs.init(e,t)}),Vs=m("ZodEmail",(e,t)=>{fa.init(e,t),le.init(e,t)});function hh(e){return mo(Vs,e)}s(hh,"email");var yi=m("ZodGUID",(e,t)=>{pa.init(e,t),le.init(e,t)});function yh(e){return Zr(yi,e)}s(yh,"guid");var gt=m("ZodUUID",(e,t)=>{da.init(e,t),le.init(e,t)});function vh(e){return go(gt,e)}s(vh,"uuid");function _h(e){return ho(gt,e)}s(_h,"uuidv4");function Ph(e){return yo(gt,e)}s(Ph,"uuidv6");function xh(e){return vo(gt,e)}s(xh,"uuidv7");var xi=m("ZodURL",(e,t)=>{jn.init(e,t),le.init(e,t)});function bh(e){return or(xi,e)}s(bh,"url");function Eh(e){return or(xi,{protocol:/^https?$/,hostname:Ge.domain,...$.normalizeParams(e)})}s(Eh,"httpUrl");var Hs=m("ZodEmoji",(e,t)=>{ma.init(e,t),le.init(e,t)});function Th(e){return _o(Hs,e)}s(Th,"emoji");var qs=m("ZodNanoID",(e,t)=>{ga.init(e,t),le.init(e,t)});function Ah(e){return Po(qs,e)}s(Ah,"nanoid");var Gs=m("ZodCUID",(e,t)=>{ha.init(e,t),le.init(e,t)});function Ih(e){return xo(Gs,e)}s(Ih,"cuid");var Ws=m("ZodCUID2",(e,t)=>{ya.init(e,t),le.init(e,t)});function Sh(e){return bo(Ws,e)}s(Sh,"cuid2");var Js=m("ZodULID",(e,t)=>{va.init(e,t),le.init(e,t)});function $h(e){return Eo(Js,e)}s($h,"ulid");var Xs=m("ZodXID",(e,t)=>{_a.init(e,t),le.init(e,t)});function Oh(e){return To(Xs,e)}s(Oh,"xid");var Ks=m("ZodKSUID",(e,t)=>{Pa.init(e,t),le.init(e,t)});function wh(e){return Ao(Ks,e)}s(wh,"ksuid");var Ys=m("ZodIPv4",(e,t)=>{xa.init(e,t),le.init(e,t)});function Rh(e){return Io(Ys,e)}s(Rh,"ipv4");var Wd=m("ZodMAC",(e,t)=>{Ea.init(e,t),le.init(e,t)});function zh(e){return ns(Wd,e)}s(zh,"mac");var Qs=m("ZodIPv6",(e,t)=>{ba.init(e,t),le.init(e,t)});function kh(e){return So(Qs,e)}s(kh,"ipv6");var eu=m("ZodCIDRv4",(e,t)=>{Ta.init(e,t),le.init(e,t)});function Ch(e){return $o(eu,e)}s(Ch,"cidrv4");var tu=m("ZodCIDRv6",(e,t)=>{Aa.init(e,t),le.init(e,t)});function Dh(e){return Oo(tu,e)}s(Dh,"cidrv6");var ru=m("ZodBase64",(e,t)=>{Ia.init(e,t),le.init(e,t)});function Nh(e){return wo(ru,e)}s(Nh,"base64");var nu=m("ZodBase64URL",(e,t)=>{Sa.init(e,t),le.init(e,t)});function Mh(e){return Ro(nu,e)}s(Mh,"base64url");var ou=m("ZodE164",(e,t)=>{$a.init(e,t),le.init(e,t)});function Uh(e){return zo(ou,e)}s(Uh,"e164");var iu=m("ZodJWT",(e,t)=>{Oa.init(e,t),le.init(e,t)});function Lh(e){return ko(iu,e)}s(Lh,"jwt");var Yr=m("ZodCustomStringFormat",(e,t)=>{wa.init(e,t),le.init(e,t)});function jh(e,t,n={}){return gr(Yr,e,t,n)}s(jh,"stringFormat");function Fh(e){return gr(Yr,"hostname",Ge.hostname,e)}s(Fh,"hostname");function Bh(e){return gr(Yr,"hex",Ge.hex,e)}s(Bh,"hex");function Zh(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=Ge[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return gr(Yr,o,r,t)}s(Zh,"hash");var Qr=m("ZodNumber",(e,t)=>{Mr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Cp(e,o,r,i),e.gt=(o,r)=>e.check(lt(o,r)),e.gte=(o,r)=>e.check($e(o,r)),e.min=(o,r)=>e.check($e(o,r)),e.lt=(o,r)=>e.check(ct(o,r)),e.lte=(o,r)=>e.check(Ue(o,r)),e.max=(o,r)=>e.check(Ue(o,r)),e.int=o=>e.check(Bs(o)),e.safe=o=>e.check(Bs(o)),e.positive=o=>e.check(lt(0,o)),e.nonnegative=o=>e.check($e(0,o)),e.negative=o=>e.check(ct(0,o)),e.nonpositive=o=>e.check(Ue(0,o)),e.multipleOf=(o,r)=>e.check(_t(o,r)),e.step=(o,r)=>e.check(_t(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 Uo(Qr,e)}s(Jd,"number");var yr=m("ZodNumberFormat",(e,t)=>{Hn.init(e,t),Qr.init(e,t)});function Bs(e){return jo(yr,e)}s(Bs,"int");function Vh(e){return is(yr,e)}s(Vh,"float32");function Hh(e){return as(yr,e)}s(Hh,"float64");function qh(e){return ss(yr,e)}s(qh,"int32");function Gh(e){return us(yr,e)}s(Gh,"uint32");var en=m("ZodBoolean",(e,t)=>{rr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dp(e,n,o,r)});function Xd(e){return Fo(en,e)}s(Xd,"boolean");var tn=m("ZodBigInt",(e,t)=>{Ur.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Np(e,o,r,i),e.gte=(o,r)=>e.check($e(o,r)),e.min=(o,r)=>e.check($e(o,r)),e.gt=(o,r)=>e.check(lt(o,r)),e.gte=(o,r)=>e.check($e(o,r)),e.min=(o,r)=>e.check($e(o,r)),e.lt=(o,r)=>e.check(ct(o,r)),e.lte=(o,r)=>e.check(Ue(o,r)),e.max=(o,r)=>e.check(Ue(o,r)),e.positive=o=>e.check(lt(BigInt(0),o)),e.negative=o=>e.check(ct(BigInt(0),o)),e.nonpositive=o=>e.check(Ue(BigInt(0),o)),e.nonnegative=o=>e.check($e(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(_t(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Wh(e){return cs(tn,e)}s(Wh,"bigint");var au=m("ZodBigIntFormat",(e,t)=>{Ra.init(e,t),tn.init(e,t)});function Jh(e){return ls(au,e)}s(Jh,"int64");function Xh(e){return ps(au,e)}s(Xh,"uint64");var Kd=m("ZodSymbol",(e,t)=>{za.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mp(e,n,o,r)});function Kh(e){return ds(Kd,e)}s(Kh,"symbol");var Yd=m("ZodUndefined",(e,t)=>{ka.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Lp(e,n,o,r)});function Yh(e){return fs(Yd,e)}s(Yh,"_undefined");var Qd=m("ZodNull",(e,t)=>{Ca.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Up(e,n,o,r)});function ef(e){return ms(Qd,e)}s(ef,"_null");var tf=m("ZodAny",(e,t)=>{qn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Bp(e,n,o,r)});function Qh(){return Vo(tf)}s(Qh,"any");var rf=m("ZodUnknown",(e,t)=>{Gn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zp(e,n,o,r)});function hr(){return Ho(rf)}s(hr,"unknown");var nf=m("ZodNever",(e,t)=>{Da.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fp(e,n,o,r)});function su(e){return gs(nf,e)}s(su,"never");var of=m("ZodVoid",(e,t)=>{Wn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jp(e,n,o,r)});function ey(e){return qo(of,e)}s(ey,"_void");var bi=m("ZodDate",(e,t)=>{Jn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Vp(e,o,r,i),e.min=(o,r)=>e.check($e(o,r)),e.max=(o,r)=>e.check(Ue(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 ty(e){return hs(bi,e)}s(ty,"date");var af=m("ZodArray",(e,t)=>{Xn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r),e.element=t.element,e.min=(n,o)=>e.check(Ie(n,o)),e.nonempty=n=>e.check(Ie(1,n)),e.max=(n,o)=>e.check(Dt(n,o)),e.length=(n,o)=>e.check(Nt(n,o)),e.unwrap=()=>e.element});function Ei(e,t){return Rp(af,e,t)}s(Ei,"array");function ry(e){let t=e._zod.def.shape;return cu(Object.keys(t))}s(ry,"keyof");var Ti=m("ZodObject",(e,t)=>{Ul.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n,o,r),$.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>cu(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hr()}),e.loose=()=>e.clone({...e._zod.def,catchall:hr()}),e.strict=()=>e.clone({...e._zod.def,catchall:su()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>$.extend(e,n),e.safeExtend=n=>$.safeExtend(e,n),e.merge=n=>$.merge(e,n),e.pick=n=>$.pick(e,n),e.omit=n=>$.omit(e,n),e.partial=(...n)=>$.partial(pu,e,n[0]),e.required=(...n)=>$.required(du,e,n[0])});function ny(e,t){let n={type:"object",shape:e??{},...$.normalizeParams(t)};return new Ti(n)}s(ny,"object");function oy(e,t){return new Ti({type:"object",shape:e,catchall:su(),...$.normalizeParams(t)})}s(oy,"strictObject");function iy(e,t){return new Ti({type:"object",shape:e,catchall:hr(),...$.normalizeParams(t)})}s(iy,"looseObject");var Ai=m("ZodUnion",(e,t)=>{nr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ts(e,n,o,r),e.options=t.options});function uu(e,t){return new Ai({type:"union",options:e,...$.normalizeParams(t)})}s(uu,"union");var sf=m("ZodXor",(e,t)=>{Ai.init(e,t),Ma.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ts(e,n,o,r),e.options=t.options});function ay(e,t){return new sf({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}s(ay,"xor");var uf=m("ZodDiscriminatedUnion",(e,t)=>{Ai.init(e,t),Kn.init(e,t)});function sy(e,t,n){return new uf({type:"union",options:t,discriminator:e,...$.normalizeParams(n)})}s(sy,"discriminatedUnion");var cf=m("ZodIntersection",(e,t)=>{Ua.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>od(e,n,o,r)});function lf(e,t){return new cf({type:"intersection",left:e,right:t})}s(lf,"intersection");var pf=m("ZodTuple",(e,t)=>{Yn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>id(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function df(e,t,n){let o=t instanceof Z,r=o?n:t,i=o?t:null;return new pf({type:"tuple",items:e,rest:i,...$.normalizeParams(r)})}s(df,"tuple");var Ii=m("ZodRecord",(e,t)=>{Qn.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function ff(e,t,n){return new Ii({type:"record",keyType:e,valueType:t,...$.normalizeParams(n)})}s(ff,"record");function uy(e,t,n){let o=we(e);return o._zod.values=void 0,new Ii({type:"record",keyType:o,valueType:t,...$.normalizeParams(n)})}s(uy,"partialRecord");function cy(e,t,n){return new Ii({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(n)})}s(cy,"looseRecord");var mf=m("ZodMap",(e,t)=>{La.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ed(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(pt(...n)),e.nonempty=n=>e.check(pt(1,n)),e.max=(...n)=>e.check(Pt(...n)),e.size=(...n)=>e.check(Ct(...n))});function ly(e,t,n){return new mf({type:"map",keyType:e,valueType:t,...$.normalizeParams(n)})}s(ly,"map");var gf=m("ZodSet",(e,t)=>{ja.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o,r),e.min=(...n)=>e.check(pt(...n)),e.nonempty=n=>e.check(pt(1,n)),e.max=(...n)=>e.check(Pt(...n)),e.size=(...n)=>e.check(Ct(...n))});function py(e,t){return new gf({type:"set",valueType:e,...$.normalizeParams(t)})}s(py,"set");var Xr=m("ZodEnum",(e,t)=>{eo.init(e,t),K.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Hp(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 Xr({...t,checks:[],...$.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 Xr({...t,checks:[],...$.normalizeParams(r),entries:i})}});function cu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Xr({type:"enum",entries:n,...$.normalizeParams(t)})}s(cu,"_enum");function dy(e,t){return new Xr({type:"enum",entries:e,...$.normalizeParams(t)})}s(dy,"nativeEnum");var hf=m("ZodLiteral",(e,t)=>{to.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qp(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 fy(e,t){return new hf({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}s(fy,"literal");var yf=m("ZodFile",(e,t)=>{Fa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jp(e,n,o,r),e.min=(n,o)=>e.check(pt(n,o)),e.max=(n,o)=>e.check(Pt(n,o)),e.mime=(n,o)=>e.check(lr(Array.isArray(n)?n:[n],o))});function my(e){return vs(yf,e)}s(my,"file");var vf=m("ZodTransform",(e,t)=>{ro.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qp(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ot(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push($.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($.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 lu(e){return new vf({type:"transform",transform:e})}s(lu,"transform");var pu=m("ZodOptional",(e,t)=>{Lr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>As(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function vi(e){return new pu({type:"optional",innerType:e})}s(vi,"optional");var _f=m("ZodExactOptional",(e,t)=>{Ba.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>As(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Pf(e){return new _f({type:"optional",innerType:e})}s(Pf,"exactOptional");var xf=m("ZodNullable",(e,t)=>{no.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 _i(e){return new xf({type:"nullable",innerType:e})}s(_i,"nullable");function gy(e){return vi(_i(e))}s(gy,"nullish");var bf=m("ZodDefault",(e,t)=>{Za.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ef(e,t){return new bf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}s(Ef,"_default");var Tf=m("ZodPrefault",(e,t)=>{Va.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 Af(e,t){return new Tf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}s(Af,"prefault");var du=m("ZodNonOptional",(e,t)=>{Ha.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function If(e,t){return new du({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}s(If,"nonoptional");var Sf=m("ZodSuccess",(e,t)=>{qa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xp(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function hy(e){return new Sf({type:"success",innerType:e})}s(hy,"success");var $f=m("ZodCatch",(e,t)=>{Ga.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Of(e,t){return new $f({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}s(Of,"_catch");var wf=m("ZodNaN",(e,t)=>{Wa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gp(e,n,o,r)});function yy(e){return ys(wf,e)}s(yy,"nan");var fu=m("ZodPipe",(e,t)=>{oo.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),e.in=t.in,e.out=t.out});function Pi(e,t){return new fu({type:"pipe",in:e,out:t})}s(Pi,"pipe");var mu=m("ZodCodec",(e,t)=>{fu.init(e,t),jr.init(e,t)});function vy(e,t,n){return new mu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}s(vy,"codec");var Rf=m("ZodReadonly",(e,t)=>{Ja.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function zf(e){return new Rf({type:"readonly",innerType:e})}s(zf,"readonly");var kf=m("ZodTemplateLiteral",(e,t)=>{Xa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wp(e,n,o,r)});function _y(e,t){return new kf({type:"template_literal",parts:e,...$.normalizeParams(t)})}s(_y,"templateLiteral");var Cf=m("ZodLazy",(e,t)=>{Qa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gd(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Df(e){return new Cf({type:"lazy",getter:e})}s(Df,"lazy");var Nf=m("ZodPromise",(e,t)=>{Ya.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>md(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Py(e){return new Nf({type:"promise",innerType:e})}s(Py,"promise");var Mf=m("ZodFunction",(e,t)=>{Ka.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yp(e,n,o,r)});function xy(e){return new Mf({type:"function",input:Array.isArray(e?.input)?df(e?.input):e?.input??Ei(hr()),output:e?.output??hr()})}s(xy,"_function");var Si=m("ZodCustom",(e,t)=>{io.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kp(e,n,o,r)});function by(e){let t=new ce({check:"custom"});return t._zod.check=e,t}s(by,"check");function Ey(e,t){return Qo(Si,e??(()=>!0),t)}s(Ey,"custom");function Uf(e,t={}){return ei(Si,e,t)}s(Uf,"refine");function Lf(e){return _s(e)}s(Lf,"superRefine");var Ty=Ps,Ay=xs;function Iy(e,t={}){let n=new Si({type:"custom",check:"custom",fn:s(o=>o instanceof e,"fn"),abort:!0,...$.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(Iy,"_instanceof");var Sy=s((...e)=>bs({Codec:mu,Boolean:en,String:Kr},...e),"stringbool");function $y(e){let t=Df(()=>uu([Fs(e),Jd(),Xd(),ef(),Ei(t),ff(Fs(),t)]));return t}s($y,"json");function Oy(e,t){return Pi(lu(e),t)}s(Oy,"preprocess");var iI={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 aI(e){ye({customError:e})}s(aI,"setErrorMap");function sI(){return ye().customError}s(sI,"getErrorMap");var jf;jf||(jf={});var R={...hi,...Ns,iso:Jr},uI=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 cI(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(cI,"detectVersion");function lI(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(lI,"resolveRef");function wy(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return R.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 R.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=lI(r,t),a=Me(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 R.null();if(r.length===0)return R.never();if(r.length===1)return R.literal(r[0]);if(r.every(a=>typeof a=="string"))return R.enum(r);let i=r.map(a=>R.literal(a));return i.length<2?i[0]:R.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return R.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return wy(a,t)});return r.length===0?R.never():r.length===1?r[0]:R.union(r)}if(!n)return R.any();let o;switch(n){case"string":{let r=R.string();if(e.format){let i=e.format;i==="email"?r=r.check(R.email()):i==="uri"||i==="uri-reference"?r=r.check(R.url()):i==="uuid"||i==="guid"?r=r.check(R.uuid()):i==="date-time"?r=r.check(R.iso.datetime()):i==="date"?r=r.check(R.iso.date()):i==="time"?r=r.check(R.iso.time()):i==="duration"?r=r.check(R.iso.duration()):i==="ipv4"?r=r.check(R.ipv4()):i==="ipv6"?r=r.check(R.ipv6()):i==="mac"?r=r.check(R.mac()):i==="cidr"?r=r.check(R.cidrv4()):i==="cidr-v6"?r=r.check(R.cidrv6()):i==="base64"?r=r.check(R.base64()):i==="base64url"?r=r.check(R.base64url()):i==="e164"?r=r.check(R.e164()):i==="jwt"?r=r.check(R.jwt()):i==="emoji"?r=r.check(R.emoji()):i==="nanoid"?r=r.check(R.nanoid()):i==="cuid"?r=r.check(R.cuid()):i==="cuid2"?r=r.check(R.cuid2()):i==="ulid"?r=r.check(R.ulid()):i==="xid"?r=r.check(R.xid()):i==="ksuid"&&(r=r.check(R.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"?R.number().int():R.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=R.boolean();break}case"null":{o=R.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(i)){let f=Me(l,t);r[c]=a.has(c)?f:f.optional()}if(e.propertyNames){let c=Me(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Me(e.additionalProperties,t):R.any();if(Object.keys(r).length===0){o=R.record(c,l);break}let f=R.object(r).passthrough(),y=R.looseRecord(c,l);o=R.intersection(f,y);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),f=[];for(let h of l){let p=Me(c[h],t),g=R.string().regex(new RegExp(h));f.push(R.looseRecord(g,p))}let y=[];if(Object.keys(r).length>0&&y.push(R.object(r).passthrough()),y.push(...f),y.length===0)o=R.object({}).passthrough();else if(y.length===1)o=y[0];else{let h=R.intersection(y[0],y[1]);for(let p=2;p<y.length;p++)h=R.intersection(h,y[p]);o=h}break}let u=R.object(r);e.additionalProperties===!1?o=u.strict():typeof e.additionalProperties=="object"?o=u.catchall(Me(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=>Me(c,t)),u=i&&typeof i=="object"&&!Array.isArray(i)?Me(i,t):void 0;u?o=R.tuple(a).rest(u):o=R.tuple(a),typeof e.minItems=="number"&&(o=o.check(R.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(R.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>Me(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?Me(e.additionalItems,t):void 0;u?o=R.tuple(a).rest(u):o=R.tuple(a),typeof e.minItems=="number"&&(o=o.check(R.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(R.maxLength(e.maxItems)))}else if(i!==void 0){let a=Me(i,t),u=R.array(a);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),o=u}else o=R.array(R.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(wy,"convertBaseSchema");function Me(e,t){if(typeof e=="boolean")return e?R.any():R.never();let n=wy(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=>Me(l,t)),c=R.union(u);n=o?R.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>Me(l,t)),c=R.xor(u);n=o?R.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:R.any();else{let u=o?n:Me(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)u=R.intersection(u,Me(e.allOf[l],t));n=u}e.nullable===!0&&t.version==="openapi-3.0"&&(n=R.nullable(n)),e.readOnly===!0&&(n=R.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))uI.has(u)||(r[u]=e[u]);return Object.keys(r).length>0&&t.registry.add(n,r),n}s(Me,"convertSchema");function Ry(e,t){if(typeof e=="boolean")return e?R.any():R.never();let n=cI(e,t?.defaultTarget),o=e.$defs||e.definitions||{},r={version:n,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Re};return Me(e,r)}s(Ry,"fromJSONSchema");var Ff={};Ke(Ff,{bigint:()=>mI,boolean:()=>fI,date:()=>gI,number:()=>dI,string:()=>pI});function pI(e){return fo(Kr,e)}s(pI,"string");function dI(e){return Lo(Qr,e)}s(dI,"number");function fI(e){return Bo(en,e)}s(fI,"boolean");function mI(e){return Zo(tn,e)}s(mI,"bigint");function gI(e){return Go(bi,e)}s(gI,"date");ye(ao());var Bf={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 zy=(n=>(n.IMAGE="image",n.TEXT="text",n))(zy||{}),je=w.object({apiKey:w.string()}),ky=w.object({serviceAccountJson:w.string().min(1)}),Cy=je,Dy=je.extend({apiKeyHash:w.string()}),Ny=je,My=je,Uy=je,Ly=je,jy=je,Fy=je,By=w.object({accessKeyId:w.string().min(1),secretAccessKey:w.string().min(1),sessionToken:w.string().optional()}),Zy=je,Vy=w.object({}),Hy=w.object({}),Zf=w.object({modelId:w.string(),modelName:w.string(),modelType:w.enum(zy)}),qy=w.object({apiKeyHeader:w.string(),baseUrl:w.string(),models:w.array(Zf),defaultHeaders:w.record(w.string(),w.string()).optional(),apiStyle:w.enum(["chat","responses"]).optional()}),Gy=w.object({accountId:w.string(),gatewayId:w.string(),models:w.array(Zf),vertexProject:w.string().optional(),vertexRegion:w.string().optional()}),Wy=w.object({resourceName:w.string(),apiVersion:w.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,w.string().optional())}),Jy=w.object({}),Xy=w.object({}),Ky=w.object({}),Yy=w.object({region:w.string().min(1)}),Qy=w.object({project:w.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,Bf.invalidGcpResourceId),region:w.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,Bf.invalidGcpResourceId),models:w.array(Zf)}),ev=w.object({}),vr=w.object({}),SM=w.union([Cy,Uy,Ly,jy,Fy,My,Ny,Dy,By,ky,Zy]),$M=w.union([qy,Gy,Wy,Qy,Yy,Vy,Jy,Xy,Ky,Hy,ev,vr]),OM=w.discriminatedUnion("provider",[w.object({provider:w.literal("openai"),config:Xy.partial(),auth:jy.partial()}),w.object({provider:w.literal("openrouter"),config:Ky.partial(),auth:Fy.partial()}),w.object({provider:w.literal("anthropic"),config:Vy.partial(),auth:Cy.partial()}),w.object({provider:w.literal("azure"),config:Wy.partial(),auth:Uy.partial()}),w.object({provider:w.literal("google"),config:Jy.partial(),auth:Ly.partial()}),w.object({provider:w.literal("cloudflare-gateway"),config:Gy.partial(),auth:My.partial()}),w.object({provider:w.literal("custom"),config:qy.partial(),auth:Ny.partial()}),w.object({provider:w.literal("activepieces"),config:Hy.partial(),auth:Dy.partial()}),w.object({provider:w.literal("bedrock"),config:Yy.partial(),auth:By.partial()}),w.object({provider:w.literal("vertex"),config:Qy.partial(),auth:ky.partial()}),w.object({provider:w.literal("mistral"),config:ev.partial(),auth:Zy.partial()}),w.object({provider:w.literal("xai"),config:vr.partial(),auth:je.partial()}),w.object({provider:w.literal("deepseek"),config:vr.partial(),auth:je.partial()}),w.object({provider:w.literal("zai"),config:vr.partial(),auth:je.partial()}),w.object({provider:w.literal("qwen"),config:vr.partial(),auth:je.partial()}),w.object({provider:w.literal("minimax"),config:vr.partial(),auth:je.partial()}),w.object({provider:w.literal("moonshot"),config:vr.partial(),auth:je.partial()})]);var LM=d().check(Ce(/^#[0-9A-Fa-f]{6}$/));var FM=v({filename:d(),data:q(),type:j("file"),mimetype:P(d())});var hI=ft(rv());var WM=v({...it,name:d(),permissions:B(d()),platformId:_e(d()),type:d(),userCount:P(ze())});var oU=w.enum(["active","out_of_credits","rejected","unreachable"]);var nv=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(nv||{}),Vf=(n=>(n.FILE="FILE",n.TABLE="TABLE",n))(Vf||{}),Hf=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(Hf||{});var qf=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(qf||{});var Gf=(n=>(n.IN_PROGRESS="in-progress",n.COMPLETED="completed",n))(Gf||{});var yI=v({mode:F(nv),value:q()}),vI=v({auth:P(d()),fields:G(d(),yI)}),_I=v({pieceName:d(),pieceVersion:d(),actionName:d(),predefinedInput:P(vI)}),PI=v({type:j("PIECE"),toolName:d().check(Ie(1)),pieceMetadata:_I}),xI=v({type:j("none")}),bI=v({type:j("access_token"),accessToken:d()}),EI=v({type:j("api_key"),apiKey:d(),apiKeyHeader:d()}),TI=v({type:j("headers"),headers:G(d(),d())}),AI=jt("type",[xI,bI,EI,TI]),ov=v({type:j("FLOW"),toolName:d().check(Ie(1)),externalFlowId:d(),flowDisplayName:P(d())}),iv=v({type:j("MCP"),toolName:d().check(Ie(1)),serverUrl:Yg(),protocol:F(Hf),auth:AI}),av=v({type:j("KNOWLEDGE_BASE"),toolName:d().check(Ie(1)),sourceType:F(Vf),sourceId:d(),sourceName:d()}),II=jt("type",[PI,ov,iv,av]),SI=v({displayName:d(),description:P(d()),type:F(qf)}),sv=v({type:j("MARKDOWN"),markdown:d()}),rn={type:j("TOOL_CALL"),input:_e(G(d(),q())),output:P(q()),toolName:d(),status:F(Gf),toolCallId:d(),startTime:d(),endTime:P(d())},HU=v(rn),uv=jt("toolCallType",[v({...rn,toolCallType:j("PIECE"),pieceName:d(),pieceVersion:d(),actionName:d()}),v({...rn,toolCallType:j("FLOW"),displayName:d(),externalFlowId:d()}),v({...rn,toolCallType:j("MCP"),displayName:d(),serverUrl:d()}),v({...rn,toolCallType:j("KNOWLEDGE_BASE"),displayName:d(),sourceType:d()}),v({...rn,toolCallType:j("UNKNOWN"),displayName:d()})]),$I=X([sv,uv]);var OI=10800*1e3,wI=900*1e3;var Jf=(n=>(n.IMAGE="image",n.TEXT="text",n))(Jf||{}),At=v({apiKey:d()}),zI=At,kI=v({apiKey:d(),apiKeyHash:d()}),CI=At,DI=At,NI=At,MI=At,UI=At,LI=At,jI=At,dv=v({serviceAccountJson:d().check(Ie(1))}),fv=v({accessKeyId:d().check(Ie(1)),secretAccessKey:d().check(Ie(1)),sessionToken:P(d())}),FI=v({}),BI=v({}),ZI=v({}),VI=v({}),HI=v({}),qI=v({}),Xf=v({modelId:d(),modelName:d(),modelType:F(Jf)}),mv=v({apiKeyHeader:d(),baseUrl:d(),models:B(Xf),defaultHeaders:P(G(d(),d())),apiStyle:P(F(["chat","responses"]))}),gv=v({accountId:d(),gatewayId:d(),models:B(Xf),vertexProject:P(d()),vertexRegion:P(d())}),hv=v({resourceName:d(),apiVersion:Bt(Ft(e=>typeof e=="string"&&e.trim().length===0?void 0:e),P(d()))}),yv=v({region:d().check(Ie(1))}),vv=v({project:d().check(Ce(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:d().check(Ce(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:B(Xf)}),_v=v({}),GI=X([zI,NI,MI,UI,LI,DI,CI,kI,fv,dv,jI]),Pv=X([mv,gv,hv,vv,yv,FI,ZI,VI,HI,BI,qI,_v]),WI=v({id:d(),name:d(),type:F(Jf)}),JI=v({id:d(),name:d(),provider:F(Ht),config:Pv,enabledForChat:ie()}),XI=v({provider:F(Ht),name:d(),enabledForChat:ie(),keys:B(v({id:d(),name:d()}))}),KI=v({provider:F(Ht),configId:d(),config:Pv,auth:GI,platformId:d()});var JU={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},cv=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],YI=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],xv=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],Wf=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],QI=["grok-4.20"],XU=xv.map(e=>`anthropic/${e}`),eS={openai:cv,anthropic:YI,google:Wf,vertex:Wf,activepieces:[...xv.map(e=>`anthropic/${e}`),...cv.map(e=>`openai/${e}`),...Wf.map(e=>`google/${e}`),...QI.map(e=>`x-ai/${e}`)]};var lv=128e3,tS={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function rS({provider:e}){return e?tS[e]??lv:lv}s(rS,"getMaxContextTokens");var pv={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"},nS={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},oS=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),iS={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:eS[e],maxContextTokens:rS({provider:e}),defaultEmbeddingModel:pv[e],supportsEmbedding:pv[e]!==void 0,supportsImageGeneration:!oS.has(e),defaultImageModel:aS[e],webSearch:nS[e]}}s(De,"buildProviderCapabilities");var bv=[{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"}],aS={activepieces:bv[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-2.5-flash-image"},sS={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 uS=v({base64Url:d(),fileName:d(),extension:P(d())}),cS=v({mimeType:d(),url:d(),fileName:P(d())}),Kf=X([uS,cS]);var lS=X([v({type:j("file"),value:Kf}),v({type:j("markdown"),value:d(),files:P(B(Kf))})]),pS=v({sessionId:d(),message:d(),files:P(B(d()))});var Tv=(n=>(n.ON_NEW_RECORD="ON_NEW_RECORD",n.ON_UPDATE_RECORD="ON_UPDATE_RECORD",n))(Tv||{}),Av=(n=>(n.ENABLED="ENABLED",n.DISABLED="DISABLED",n))(Av||{}),Yf=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(Yf||{});var dS=X([v({...it,name:d(),externalId:d(),type:j("STATIC_DROPDOWN"),tableId:d(),projectId:d(),data:v({options:B(v({value:d()}))})}),v({...it,name:d(),externalId:d(),type:X([j("TEXT"),j("NUMBER"),j("DATE"),j("DATETIME")]),tableId:d(),projectId:d()})]),fS=v({...it,name:d(),folderId:_e(d()),projectId:d(),externalId:d(),status:Rd(Av),trigger:Rd(Tv)}),mS=v({...it,tableId:d(),projectId:d(),cells:G(d(),v({updated:d(),created:d(),value:q(),fieldName:d()}))}),gS=v({events:B(F(Yf)),webhookUrl:d(),flowId:d()}),hS=v({fields:B(v({id:d(),name:d()})),rows:B(G(d(),d())),name:d()}),yS=v({projectId:d(),limit:P(oi.number()),cursor:P(d()),name:P(d()),externalIds:Ds(d()),folderId:P(d()),folderIds:Ds(d())}),vS=v({records:B(B(v({fieldId:d(),value:Sv()}))),tableId:d()}),_S=v({cells:P(B(v({fieldId:d(),value:Sv()}))),tableId:d(),agentUpdate:P(ie())}),Iv=jt("operator",[_r("eq"),_r("neq"),_r("gt"),_r("gte"),_r("lt"),_r("lte"),_r("co"),Ev("exists"),Ev("not_exists")]),PS=v({tableId:d(),limit:P(oi.number()),cursor:P(d()),filters:Ds(Iv)});function Sv(){return Bt(Ft(e=>e==null?e:String(e)),ni(d()))}s(Sv,"coerceToString");function _r(e){return v({fieldId:d(),operator:j(e),value:d()})}s(_r,"valueFilter");function Ev(e){return v({fieldId:d(),operator:j(e)})}s(Ev,"existenceFilter");var xS=v({status:P(ze()),body:P(q()),headers:P(G(d(),d()))}),bS=v({...it,deleted:_e(Vt),ownerId:d(),displayName:d(),platformId:d(),externalId:_e(d())});var $v=v({name:d(),description:P(d()),type:d(),required:ie()}),ES=v({pieceName:d(),triggerName:d(),input:v({toolName:d(),toolDescription:d(),inputSchema:B($v),returnsResponse:ie()})});var Ov="^[0-9]+\\.[0-9]+\\.[0-9]+$",gL=new RegExp(Ov),AS="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",hL=d().check(Ce(new RegExp(Ov))),yL=d().check(Ce(new RegExp(AS))),IS=v({packageType:j("ARCHIVE"),pieceType:F(Gr),pieceName:d(),pieceVersion:d(),archiveId:d(),platformId:d()}),wv=v({packageType:j("REGISTRY"),pieceType:j("OFFICIAL"),pieceName:d(),pieceVersion:d()}),Rv=v({packageType:j("REGISTRY"),pieceType:j("CUSTOM"),pieceName:d(),pieceVersion:d(),platformId:d()}),vL=X([wv,Rv]),_L=X([IS,wv,Rv]);var SS=jt("type",[v({type:j("CRON_EXPRESSION"),cronExpression:d(),timezone:d()}),v({type:j("INTERVAL"),intervalMs:Qg().check($e(6e4))})]),PL=v({...it,type:F(mt),projectId:d(),flowId:d(),triggerName:d(),schedule:_e(SS),flowVersionId:d(),pieceName:d(),pieceVersion:d(),deleted:_e(d()),simulate:ie()}),zv=(T=>(T.UNKNOWN="UNKNOWN",T.FLOW_RUN_LOG="FLOW_RUN_LOG",T.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",T.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",T.FLOW_STEP_FILE="FLOW_STEP_FILE",T.SAMPLE_DATA="SAMPLE_DATA",T.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",T.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",T.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",T.PROJECT_RELEASE="PROJECT_RELEASE",T.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",T.PLATFORM_ASSET="PLATFORM_ASSET",T.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",T.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",T.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",T.KNOWLEDGE_BASE="KNOWLEDGE_BASE",T.FLOW_BUNDLE="FLOW_BUNDLE",T.PREWARM_SCOPE="PREWARM_SCOPE",T))(zv||{}),kv=(n=>(n.NONE="NONE",n.ZSTD="ZSTD",n))(kv||{}),Cv=(n=>(n.S3="S3",n.DB="DB",n))(Cv||{}),xL=v({...it,projectId:_e(d()),platformId:_e(d()),type:F(zv),compression:F(kv),data:P(q()),location:F(Cv),size:_e(ze()),fileName:_e(d()),s3Key:_e(d()),metadata:_e(G(d(),d()))}),Dv=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(Dv||{}),Nv=(n=>(n.ACTIVE="ACTIVE",n.INACTIVE="INACTIVE",n))(Nv||{}),bL=v({id:d(),email:d(),firstName:d(),status:F(Nv),externalId:_e(d()),platformId:_e(d()),platformRole:F(Dv),lastName:d(),created:Vt,updated:Vt,lastActiveDate:_e(Vt),imageUrl:_e(d())});var Qf=v({...oe.shape,...W(G(d(),q()),"OBJECT").shape});var em=v({...oe.shape,formatProperty:P(d()),...W(d(),"RICH_TEXT").shape});var jv=v({...oe.shape,...W(d(),"COLOR").shape});var tm=X([et,xt,em,zs,Et,tt,bt,Td,ii,Id,Tt,ui,Qf,ci,si,Ad,ai,jv]),U={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=v({displayName:d(),description:P(d()),hasConnectionIdentifier:P(ie())});var Fv=v({username:d(),password:d()}),rm=v({...ht.shape,username:v({displayName:d(),description:P(d())}),password:v({displayName:d(),description:P(d())}),...W(Fv,"BASIC_AUTH").shape});var RS=G(d(),X([et,xt,Tt,Et,tt])),nm=v({...ht.shape,props:RS,...W(q(),"CUSTOM_AUTH").shape});var Pr=v({...ht.shape,...W(v({auth:d()}),"SECRET_TEXT").shape});var zS=G(d(),X([et,xt,Pr,Tt,Et,tt,bt,zs])),Bv=v({...ht.shape,props:zS,...W(q(),"OIDC").shape});var om=(n=>(n.HEADER="HEADER",n.BODY="BODY",n))(om||{}),Zv=X([et,Pr,tt]),Vv=G(d(),Zv),kS=v({props:P(G(d(),Zv)),authUrl:d(),tokenUrl:d(),scope:B(d()),prompt:P(X([j("none"),j("consent"),j("login"),j("omit")])),pkce:P(ie()),pkceMethod:P(X([j("plain"),j("S256")])),authorizationMethod:P(F(om)),grantType:P(X([F(di),j(Sd)])),extra:P(G(d(),d()))}),Hv=v({access_token:d(),props:P(Vv),data:G(d(),ri())}),im=v({...ht.shape,...kS.shape,...W(Hv,"OAUTH2").shape});var nn=X([rm,nm,Bv,im,Pr]),$i="Connection",am={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||$i}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||$i,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||$i}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||$i}},None(){}};var i1={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 CS=v({...oe.shape,...W(q(),"CUSTOM").shape,code:d()});var DS=X([tm,nn]),sm=G(d(),DS),A1=G(d(),tm);var qv=X([v({strategy:j("CRON"),cronExpression:d()}),v({strategy:j("NONE")})]),on=class{constructor(t,n,o,r,i,a,u,c,l,f,y,h,p,g,_,b,E,T,L,ne,pe){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=f;this.onEnable=y;this.onDisable=h;this.onStart=p;this.run=g;this.test=_;this.sampleData=b;this.testStrategy=E;this.outputSchema=T;this.aiMetadata=L;this.classification=ne;this.propertyGroups=pe}static{s(this,"ITrigger")}},an=s(e=>{switch(e.type){case"WEBHOOK":return new on(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 on(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 on(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 on(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,ve(e.sampleData)&&ve(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var Gv="2",hu="0.82.0";var um=class{constructor(t,n,o,r,i,a,u,c,l=hu,f,y="",h){this.displayName=t;this.logoUrl=n;this.authors=o;this.events=r;this.categories=u;this.auth=c;this.minimumSupportedRelease=l;this.maximumSupportedRelease=f;this.description=y;this.deprecated=h;this._actions={};this._triggers={};this.getContextInfo=s(()=>({version:Gv}),"getContextInfo");(!MS(l)||US(l,hu))&&(this.minimumSupportedRelease=hu),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:NS(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}},Jv=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 um(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 NS(e){if(e!==void 0)return Array.isArray(e)?e.map(Wv):Wv(e)}s(NS,"withConnectionIdentifierFlag");function Wv(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}s(Wv,"flagConnectionIdentifier");function MS(e){return/^\d+\.\d+\.\d+$/.test(e)}s(MS,"isValidSimpleSemver");function US(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(US,"isSemverLessThan");var LS=P(G(d(),G(d(),d()))),Xv=v({id:P(d()),name:d(),displayName:d(),logoUrl:d(),description:d(),authors:B(d()),platformId:P(d()),directoryPath:P(d()),auth:P(X([nn,B(nn)])),version:d(),categories:P(B(F(pi))),minimumSupportedRelease:P(d()),maximumSupportedRelease:P(d()),deprecated:P(ie()),i18n:LS}),jS=F(["human","ai","both"]),Kv=v({description:P(d()),idempotent:P(ie())}),Yv=F(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var FS=F(["tabs","section","summary","builder","footer"]),Qv=v({key:d(),display:FS,label:P(d()),description:P(d()),icon:P(d()),props:B(d())}),e_=v({name:d(),displayName:d(),description:d(),props:sm,propertyGroups:P(B(Qv)),requireAuth:ie(),errorHandlingOptions:P(Ed),outputSchema:P(Os()),audience:P(jS),aiMetadata:P(Kv),classification:P(Yv)}),t_=v({name:d(),displayName:d(),description:d(),props:sm,propertyGroups:P(B(Qv)),errorHandlingOptions:P(Ed),type:F(mt),sampleData:q(),handshakeConfiguration:P(Os()),renewConfiguration:P(qv),testStrategy:F(mi),outputSchema:P(Os()),aiMetadata:P(Kv),classification:P(Yv)}),BS=v({...Xv.shape,actions:G(d(),e_),triggers:G(d(),t_)}),ZS=v({...Xv.shape,actions:ze(),triggers:ze(),suggestedActions:P(B(e_)),suggestedTriggers:P(B(t_))}),r_=v({projectUsage:ze(),pieceType:F(Gr),packageType:F(li),platformId:P(d()),archiveId:P(d())}),$4=v({...BS.shape,...r_.shape}),O4=v({...ZS.shape,...r_.shape}),w4=v({name:d(),version:d()});var VS=ft(require("path")),HS=ft(require("fs/promises"));var Oi="login.microsoftonline.com",o_="login.microsoftonline.us",n_={[Oi]:"https://graph.microsoft.com",[o_]:"https://graph.microsoft.us"},i_=U.StaticDropdown({displayName:"Cloud Environment",description:"Select your Microsoft cloud environment.",required:!0,defaultValue:Oi,options:{disabled:!1,options:[{label:"Commercial (Global)",value:Oi},{label:"US Government (GCC High)",value:o_}]}});function a_(e){return e??Oi}s(a_,"resolveCloudHost");function sn(e){return a_(e.props?.cloud)}s(sn,"getMicrosoftCloudFromAuth");function un(e){let t=a_(e);return n_[t]??n_[Oi]}s(un,"getGraphBaseUrl");var bP=ft(xP());var pw=`
6
45
  If you'd like to use your own custom Azure app instead of the default app, follow the [Azure app creation guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application),
7
46
  set the **Redirect URI** to {{redirectUrl}} and add the following **Microsoft Graph (Delegated) permissions** under **API permissions**:
8
47
  - Group.Read.All
9
48
  - Tasks.ReadWrite
10
- - User.Read`,K=Go.OAuth2({description:uy,props:{cloud:du},authUrl:"https://{cloud}/common/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/common/oauth2/v2.0/token",required:!0,scope:["Tasks.ReadWrite","User.Read","Group.Read.All","openid","email","profile"],prompt:"omit"}),I={endpoints:{createPlan:"/planner/plans",listPlans:"/me/planner/plans",listGroups:"/groups",planDetail:i(e=>`/planner/plans/${e}`,"planDetail"),listBuckets:i(e=>`/planner/plans/${e}/buckets`,"listBuckets"),listPlanTasks:i(e=>`/planner/plans/${e}/tasks`,"listPlanTasks"),createBucket:"/planner/buckets",bucketDetail:i(e=>`/planner/buckets/${e}`,"bucketDetail"),createTask:"/planner/tasks",deleteTask:i(e=>`/planner/tasks/${e}`,"deleteTask")},getClient:i(({auth:e})=>{let t=St(e);return wc.Client.initWithMiddleware({authProvider:{getAccessToken:i(async()=>e.access_token,"getAccessToken")},baseUrl:$t(t)})},"getClient"),getUser:i(async({auth:e})=>await I.getClient({auth:e}).api("/me").get(),"getUser"),getEtag:i(async({auth:e,id:t,endpointType:r})=>{let n=I.getClient({auth:e}),o=I.endpoints[r],a=o(t);return(await n.api(a).get())["@odata.etag"]},"getEtag"),listUsers:i(async({auth:e})=>(await I.getClient({auth:e}).api("/users").get()).value,"listUsers"),listGroups:i(async({auth:e})=>(await I.getClient({auth:e}).api(I.endpoints.listGroups).get()).value,"listGroups"),listPlans:i(async({auth:e})=>(await I.getClient({auth:e}).api(I.endpoints.listPlans).get()).value,"listPlans"),listBuckets:i(async({auth:e,planId:t})=>(await I.getClient({auth:e}).api(I.endpoints.listBuckets(t)).get()).value,"listBuckets"),listTasks:i(async({auth:e,planId:t})=>(await I.getClient({auth:e}).api(I.endpoints.listPlanTasks(t)).get()).value,"listTasks"),createPlan:i(async({auth:e,...t})=>await I.getClient({auth:e}).api(I.endpoints.createPlan).create(t),"createPlan"),createBucket:i(async({auth:e,...t})=>await I.getClient({auth:e}).api(I.endpoints.createBucket).create(t),"createBucket"),updateBucket:i(async({auth:e,id:t,name:r,orderHint:n})=>{let o=I.getClient({auth:e}),a=await I.getEtag({auth:e,id:t,endpointType:"bucketDetail"});return await o.api(I.endpoints.bucketDetail(t)).header("If-Match",a).update({name:r,orderHint:n}),{success:!0}},"updateBucket"),deleteTask:i(async({auth:e,id:t})=>{let r=I.getClient({auth:e}),n=await I.getEtag({auth:e,id:t,endpointType:"deleteTask"});return await r.api(I.endpoints.deleteTask(t)).header("If-Match",n).delete(),{success:!0}},"deleteTask"),createTask:i(async({auth:e,...t})=>await I.getClient({auth:e}).api(I.endpoints.createTask).create(t),"createTask"),updateTask:i(async({auth:e,id:t,...r})=>{let n=I.getClient({auth:e}),o=await I.getEtag({auth:e,id:t,endpointType:"deleteTask"});return await n.api(I.endpoints.deleteTask(t)).header("If-Match",o).update(r),{success:!0}},"updateTask"),deleteBucket:i(async({auth:e,id:t})=>{let r=I.getClient({auth:e}),n=await I.getEtag({auth:e,id:t,endpointType:"bucketDetail"});return await r.api(I.endpoints.bucketDetail(t)).header("If-Match",n).delete(),{success:!0}},"deleteBucket"),updatePlan:i(async({auth:e,id:t,title:r})=>{let n=I.getClient({auth:e}),o=await I.getEtag({auth:e,id:t,endpointType:"planDetail"});return await n.api(I.endpoints.planDetail(t)).header("If-Match",o).update({title:r}),{success:!0}},"updatePlan"),getBucketDetails:i(async({auth:e,bucketId:t})=>await I.getClient({auth:e}).api(I.endpoints.bucketDetail(t)).get(),"getBucketDetails")};var Oc=i(({required:e=!0})=>R.Dropdown({auth:K,displayName:"Group",description:"Select the Grroup",required:e,refreshers:["auth"],options:i(async({auth:t})=>t?{options:(await I.listGroups({auth:t})).map(n=>({label:n.displayName??"",value:n.id??""})),disabled:!1,placeholder:"Select a group"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),"groupDropdown"),pe=i(({required:e=!0})=>R.Dropdown({auth:K,displayName:"Plan",description:"Select the plan",required:e,refreshers:["auth"],options:i(async({auth:t})=>t?{options:(await I.listPlans({auth:t})).map(n=>({label:n.title??"",value:n.id??""})),disabled:!1,placeholder:"Select a plan"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),"PlanDropdown"),at=i(({required:e=!0})=>R.Dropdown({auth:K,displayName:"Bucket",description:"Select the bucket",required:e,refreshers:["auth","planId"],options:i(async({auth:t,planId:r})=>{if(!t)return{options:[],disabled:!0,placeholder:"Please select an authentication first"};if(!r)return{options:[],disabled:!0,placeholder:"Please select a plan first"};let n=await I.listBuckets({auth:t,planId:r});return console.log("Buckets:",JSON.stringify(n)),{options:n.map(o=>({label:o.name??"",value:o.id??""})),disabled:!1,placeholder:"Select a bucket"}},"options")}),"BucketDropdown"),Gn=i(({required:e=!0})=>R.Dropdown({auth:K,displayName:"Task",description:"Select the task",required:e,refreshers:["auth","planId"],options:i(async({auth:t,planId:r})=>t?r?{options:(await I.listTasks({auth:t,planId:r})).map(o=>({label:o.title??"",value:o.id??""})),disabled:!1,placeholder:"Select a task"}:{options:[],disabled:!0,placeholder:"Please select a plan first"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),"TaskDropdown"),Wn=i(({required:e=!1})=>R.ShortText({displayName:"Order Hint",description:"Hint used to order items of this type in a list. The format is defined as outlined here: https://learn.microsoft.com/en-us/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0",required:e}),"OrderHintProperty");var zc=oe({auth:K,name:"createBucket",displayName:"Create Bucket",description:"Create a bucket (category) under a plan.",audience:"both",aiMetadata:{description:"Creates a new bucket (a column/category for grouping tasks) under an existing Planner plan, identified by plan ID. Use to organize tasks within a plan. Each call adds another bucket, so it is not idempotent.",idempotent:!1},props:{planId:pe({required:!0}),name:R.ShortText({displayName:"Bucket Name",description:"The name of the bucket to be created",required:!0}),orderHint:Wn({required:!1})},async run({auth:e,propsValue:t}){return await I.createBucket({auth:e,...t})}});var Rc=oe({auth:K,name:"createPlan",displayName:"Create Plan",description:"Create a new planner plan",audience:"both",aiMetadata:{description:"Creates a new Microsoft 365 Planner plan with the given title, owned by a specified Microsoft 365 group. Use to set up a fresh planning board before adding buckets or tasks. The group must already exist; each call creates a separate plan, so it is not idempotent.",idempotent:!1},props:{groupId:Oc({required:!0}),title:R.ShortText({displayName:"Title",description:"The title of the plan",required:!0})},async run({auth:e,propsValue:t}){let r=St(e),o={container:{url:`${$t(r)}/v1.0/groups/${t.groupId}`},title:t.title};return await I.createPlan({auth:e,...o})}});var kc=oe({auth:K,name:"createTask",displayName:"Create Task",description:"Create a new planner task with title, assignments, due date, etc.",audience:"both",aiMetadata:{description:"Creates a new task in a Planner plan, optionally placing it in a bucket and setting assignees, due/start dates, priority, and percent complete. Use to add work items to a plan. Each call creates a separate task, so it is not idempotent.",idempotent:!1},props:{planId:pe({required:!0}),bucketId:at({required:!1}),title:R.ShortText({displayName:"Title",description:"The title of the task to be created",required:!0}),assignments:R.MultiSelectDropdown({displayName:"Assignments",description:"Select users to assign the task to. If left empty, the task will be unassigned.",required:!1,auth:K,refreshers:["auth"],options:i(async({auth:e})=>e?{options:(await I.listUsers({auth:e})).map(r=>({label:r.displayName||r.userPrincipalName||"No Name",value:r.id||""})),disabled:!1,placeholder:"Select users to assign the task to"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),dueDateTime:R.DateTime({displayName:"Due Date",description:"The due date and time for the task",required:!1}),percentComplete:R.Number({displayName:"Percent Complete",description:"The completion percentage of the task (0-100)",required:!1}),priority:R.Number({displayName:"Priority",description:"The priority of the task between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority).",required:!1}),startDateTime:R.DateTime({displayName:"Start Date",description:"The start date and time for the task",required:!1})},async run({auth:e,propsValue:t}){let r={...t,assignments:t.assignments?Object.fromEntries(t.assignments.map(n=>[n,{"@odata.type":"microsoft.graph.plannerAssignment"}])):void 0,dueDateTime:t.dueDateTime?new Date(t.dueDateTime).toISOString():void 0,startDateTime:t.startDateTime?new Date(t.startDateTime).toISOString():void 0};return await I.createTask({auth:e,...r})}});var Dc=oe({auth:K,name:"deleteBucket",displayName:"Delete Bucket",description:"Delete an existing bucket.",audience:"both",aiMetadata:{description:"Permanently deletes a bucket from a Planner plan by bucket ID. Use to remove a category and stop grouping tasks under it. Destructive and not idempotent; once removed, repeating the call fails because the bucket no longer exists.",idempotent:!1},props:{planId:pe({required:!0}),id:at({required:!0})},async run({auth:e,propsValue:{id:t}}){if(!t)throw new Error("Bucket id is required");return await I.deleteBucket({auth:e,id:t})}});var Cc=oe({auth:K,name:"deleteTask",displayName:"Delete Task",description:"Remove a specific task by ID.",audience:"both",aiMetadata:{description:"Permanently deletes a task from a Planner plan by task ID. Use to remove a work item. Destructive and not idempotent; once removed, repeating the call fails because the task no longer exists.",idempotent:!1},props:{planId:pe({required:!0}),id:Gn({required:!0})},async run({auth:e,propsValue:{id:t}}){if(!t)throw new Error("Task id is required");return await I.deleteTask({auth:e,id:t})}});var Nc=oe({auth:K,name:"findAPlan",displayName:"Find a Plan",description:"Finds a plan by field.",audience:"both",aiMetadata:{description:"Searches across the authenticated user's Planner plans and returns those whose title contains the given text (case-insensitive substring match). Use to resolve a plan name into its plan ID before acting on it. Read-only and idempotent; the title input is required.",idempotent:!0},props:{title:R.ShortText({displayName:"Title",description:"The title of the plan to search for",required:!0})},async run({auth:e,propsValue:{title:t}}){return(await I.listPlans({auth:e})).filter(n=>n.title&&n.title.toLowerCase().includes(t.toLowerCase()))}});var Uc=oe({auth:K,name:"findTask",displayName:"Find Task",description:"Find task by fields.",audience:"both",aiMetadata:{description:"Searches the tasks of a given Planner plan and returns those whose title contains the given text (case-insensitive substring match). Use to locate a task ID within a known plan. Read-only and idempotent; both plan ID and title are required.",idempotent:!0},props:{planId:pe({required:!0}),title:R.ShortText({displayName:"Title",description:"The title of the task to search for",required:!0})},async run({auth:e,propsValue:{title:t,planId:r}}){if(!r)throw new Error("Plan ID is required to fetch tasks.");return(await I.listTasks({auth:e,planId:r})).filter(o=>o.title&&o.title.toLowerCase().includes(t.toLowerCase()))}});var Mc=oe({auth:K,name:"getABucket",displayName:"Get a Bucket",description:"Retrieve details about a specific bucket.",audience:"both",aiMetadata:{description:"Retrieves the details of a single Planner bucket by its bucket ID (within a known plan). Use to inspect a bucket's current name and order hint. Read-only and idempotent.",idempotent:!0},props:{planId:pe({required:!0}),bucketId:at({required:!0})},async run({auth:e,propsValue:{bucketId:t}}){if(!t)throw new Error("Bucket ID is required to fetch bucket details.");return await I.getBucketDetails({auth:e,bucketId:t})}});var Lc=oe({auth:K,name:"updateBucket",displayName:"Update Bucket",description:"Modify bucket\u2019s name or properties.",audience:"both",aiMetadata:{description:"Updates an existing bucket's name and/or order hint, identified by bucket ID within a plan. Use to rename or reorder a bucket. Idempotent: applying the same field values repeatedly leaves the bucket in the same end state.",idempotent:!0},props:{planId:pe({required:!0}),id:at({required:!0}),name:R.ShortText({displayName:"Name",description:"The new name of the bucket",required:!1}),orderHint:Wn({required:!1})},async run({auth:e,propsValue:t}){let{planId:r,id:n,...o}=t;if(!n)throw new Error("Bucket ID is required to update a bucket.");return await I.updateBucket({auth:e,id:n,...o})}});var jc=oe({auth:K,name:"updatePlan",displayName:"Update Plan",description:"modify metadata of a plan (e.g. title changes).",audience:"both",aiMetadata:{description:"Updates an existing Planner plan's title, identified by plan ID. Use to rename a plan. Idempotent: setting the same title repeatedly leaves the plan in the same end state.",idempotent:!0},props:{id:pe({required:!0}),title:R.ShortText({displayName:"Title",description:"The new title of the plan",required:!0})},async run({auth:e,propsValue:{id:t,title:r}}){if(!t)throw new Error("Plan id is required");return await I.updatePlan({auth:e,id:t,title:r})}});var Fc=oe({auth:K,name:"updateTask",displayName:"Update Task",description:"Modify existing task fields: title, due date, assignments, descriptions.",audience:"both",aiMetadata:{description:"Updates fields on an existing Planner task identified by task ID, such as title, assignees, due/start dates, priority, and percent complete. Use to edit a task; only provided fields are changed. Idempotent: applying the same field values repeatedly leaves the task in the same end state.",idempotent:!0},props:{planId:pe({required:!0}),id:Gn({required:!0}),title:R.ShortText({displayName:"Title",description:"The new title of the task",required:!1}),assignments:R.MultiSelectDropdown({displayName:"Assignments",description:"Select users to assign the task to. If left empty, the task will be unassigned.",required:!1,refreshers:["auth"],auth:K,options:i(async({auth:e})=>e?{options:(await I.listUsers({auth:e})).map(r=>({label:r.displayName||r.userPrincipalName||"No Name",value:r.id||""})),disabled:!1,placeholder:"Select users to assign the task to"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),dueDateTime:R.DateTime({displayName:"Due Date",description:"The due date and time for the task",required:!1}),percentComplete:R.Number({displayName:"Percent Complete",description:"The completion percentage of the task (0-100)",required:!1}),priority:R.Number({displayName:"Priority",description:"The priority of the task between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority).",required:!1}),startDateTime:R.DateTime({displayName:"Start Date",description:"The start date and time for the task",required:!1})},async run({auth:e,propsValue:t}){let{planId:r,id:n,...o}=t;if(!n)throw new Error("Task ID is required to update a task.");let a={...o,assignments:o.assignments?Object.fromEntries(o.assignments.map(s=>[s,{"@odata.type":"microsoft.graph.plannerAssignment"}])):void 0};return await I.updateTask({auth:e,id:n,...a})}});var Zc=require("node:stream");var Kn=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((a,s)=>{o.append(s,a)}),{urlWithoutQueryParams:n,queryParams:o}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var Jn=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new Pi,r=new xi){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Pi=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},xi=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var xr=class extends Error{constructor(r,n){let o=n.status||500,a=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:a},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=a}static{i(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 Bc({error:e,requestBody:t}){return e instanceof xr?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}i(Bc,"toFailsafeOutput");var bi=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(bi||{});var Xn=class extends Kn{static{i(this,"FetchHttpClient")}constructor(t="",r=new Jn){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),a=this.getHeaders(t),s=t.queryParams??{};for(let[H,fe]of Object.entries(s))o.append(H,fe);let u=o.toString(),p=u?`${n}?${u}`:n,d=t.responseType??"json",g=t.followRedirects??!0,x=t.retries??0,{body:v,extraHeaders:l,isStream:f}=cy(t.method)?ly(t.body,a):{body:void 0,extraHeaders:{},isStream:!1},y=dy({...a,...l}),h=await py(async()=>{let H=new AbortController,fe=t.timeout&&t.timeout>0?setTimeout(()=>H.abort(),t.timeout):void 0;try{let xe={method:t.method.toString(),headers:y,body:v,redirect:g?"follow":"manual",signal:H.signal};return f&&(xe.duplex="half"),r?.dispatcher!==void 0&&(xe.dispatcher=r.dispatcher),await fetch(p,xe)}finally{fe!==void 0&&clearTimeout(fe)}},x),P=g?300:400;if(h.status<200||h.status>=P){let H=await Hc(h,d),fe=new xr(t.body,{status:h.status,responseBody:H});throw console.error("[HttpClient#(sanitized error message)] Request failed:",fe),fe}let T=await Hc(h,d);return{status:h.status,headers:fy(h.headers),body:T}}};function cy(e){return e!=="GET"&&e!=="HEAD"}i(cy,"acceptsRequestBody");function ly(e,t){if(gy(e))return{body:void 0,extraHeaders:{},isStream:!1};if(my(e)){let n=new Zc.PassThrough;return e.on("error",o=>n.destroy(o)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return 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}}i(ly,"serializeBody");async function Hc(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}i(Hc,"parseResponseBody");async function py(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await Vc(n);continue}return o}catch(o){if(r=o,n<t){await Vc(n);continue}throw o}throw r}i(py,"sendWithRetries");function Vc(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(Vc,"backoff");function dy(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}i(dy,"normalizeHeaders");function fy(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(fy,"toHttpHeaders");function my(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}i(my,"isNodeFormData");function gy(e){return e==null}i(gy,"isNil");var qc=new Xn;var r_=Ne(require("fs")),Yp=Ne(Xp());var n_={"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 o_(e){let t=e.split(";")[0].trim().toLowerCase();return n_[t]??""}i(o_,"contentTypeToExtension");var i_=i(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),a_=i((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function Qp({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:a,props:s,extraProps:u,authLocation:p="headers"}){return oe({audience:"human",name:a||"custom_api_call",displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:R.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:i(async({auth:d})=>({url:R.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
11
- i.e ${a_(t,d)}/resource or /resource`,required:!0,defaultValue:d?t(d):"",...s?.url??{}})}),"props")}),method:R.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(bi).map(d=>({label:d,value:d}))},...s?.method??{}}),headers:R.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...s?.headers??{}}),queryParams:R.Object({displayName:"Query Parameters",required:!0,...s?.queryParams??{}}),body_type:R.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:R.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:i(async({body_type:d})=>{if(!d)return{};let g=d,x={};switch(g){case"none":break;case"json":x.data=R.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":x.data=R.LongText({displayName:"Raw Body",required:!0});break;case"form_data":x.data=R.Array({displayName:"Form Data",required:!0,properties:{fieldName:R.ShortText({displayName:"Field Name",required:!0}),fieldType:R.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:R.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:R.File({displayName:"File Field Value",required:!1})}});break}return x},"props")}),response_is_binary:R.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:R.Checkbox({displayName:"No Error on Failure",required:!1,...s?.failsafe??{}}),timeout:R.Number({displayName:"Timeout (in seconds)",required:!1,...s?.timeout??{}}),followRedirects:R.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...u},run:i(async d=>{let{method:g,url:x,headers:v,queryParams:l,body:f,body_type:y,failsafe:h,timeout:P,response_is_binary:T,followRedirects:H}=d.propsValue;Vr(g,"Method"),Vr(x,"URL");let fe=ge(r)?{}:await r(d.auth,d.propsValue),xe=x.url,Ce=xe.startsWith("http://")||xe.startsWith("https://")?xe:i_({baseUrl:t(d.auth),relativePath:xe}),ee={method:g,url:Ce,headers:{...v??{},...p==="headers"||!ge(p)?fe:{}},queryParams:{...p==="queryParams"?fe:{},...l??{}},timeout:P?P*1e3:0,followRedirects:H};if(T&&(ee.responseType="arraybuffer"),f)if(y&&y!=="none"){let G=f.data;if(y==="form_data"){let yt=G,ut=new Yp.default;for(let{fieldName:j,fieldType:A,textFieldValue:E,fileFieldValue:O}of yt)A==="text"&&!pr(E)?ut.append(j,E):A==="file"&&!pr(O)&&ut.append(j,O.data,{filename:O?.filename});ee.body=ut,ee.headers={...ee.headers,...ut.getHeaders()}}else ee.body=G}else y||(ee.body=f);try{let G=await qc.sendRequest(ee);return await s_(d.files,G.body,G.status,G.headers,T)}catch(G){if(h)return Bc({error:G,requestBody:ee.body});throw G}},"run")})}i(Qp,"createCustomApiCallAction");var s_=i(async(e,t,r,n,o)=>{let a;if(o&&u_(t)){let s=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],u=o_(s??"")||"txt",p;t instanceof ArrayBuffer?p=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?p=t:p=Buffer.from(t),a=await e.write({fileName:`output.${u}`,data:p})}else a=t;return{status:r,headers:n,body:a}},"handleBinaryResponse"),u_=i(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Te={async poll(e,{store:t,auth:r,propsValue:n,maxItemsToPoll:o,files:a,server:s}){switch(e.strategy){case 0:{let u=await t.get("lastPoll");if(ge(u))throw new Error("lastPoll doesn't exist in the store.");let p=await e.items({store:t,auth:r,propsValue:n,lastFetchEpochMS:u,server:s}),d=p.reduce((g,x)=>Math.max(g,x.epochMilliSeconds),u);return await t.put("lastPoll",d),p.filter(g=>g.epochMilliSeconds>u).map(g=>g.data)}case 1:{let u=await t.get("lastItem"),p=await e.items({store:t,auth:r,propsValue:n,lastItemId:u,files:a,server:s}),d=p.findIndex(v=>v.id===u),g=[];ge(u)||d==-1?g=p??[]:g=p?.slice(0,d)??[],ge(o)||(g=g.slice(-o));let x=g?.[0]?.id;return ge(x)||await t.put("lastItem",x),g.map(v=>v.data)}}},async onEnable(e,{store:t,auth:r,propsValue:n,server:o,isRepublish:a}){switch(e.strategy){case 0:{if(a&&!ge(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(a&&!ge(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:r,propsValue:n,lastItemId:null,server:o}))?.[0]?.id;ge(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:r,store:n,files:o,server:a}){let s=[];switch(e.strategy){case 0:{s=await e.items({store:n,auth:t,propsValue:r,lastFetchEpochMS:0,server:a});break}case 1:{s=await e.items({store:n,auth:t,propsValue:r,lastItemId:null,files:o,server:a});break}}return c_(s.map(u=>u.data))}};function c_(e){return e.length<=5?e:e.slice(0,5)}i(c_,"getFirstFiveOrAll");var td=Ne(so());var uo={strategy:0,items:i(async({auth:e})=>(await I.listPlans({auth:e})).map(r=>({epochMilliSeconds:(0,td.default)(r.createdDateTime).valueOf(),data:r})),"items")},rd=At({auth:K,name:"newPlanCreated",displayName:"New Plan Created",description:"Triggers when a new Plan is created in Microsoft 365 Planner.",aiMetadata:{description:"Fires when a new plan is created in Microsoft 365 Planner across the authenticated user's accessible plans. Polls periodically and emits each newly created plan."},props:{},sampleData:{},type:"POLLING",async test(e){return await Te.test(uo,e)},async onEnable(e){let{store:t,auth:r,propsValue:n}=e;await Te.onEnable(uo,{store:t,auth:r,propsValue:n})},async onDisable(e){let{store:t,auth:r,propsValue:n}=e;await Te.onDisable(uo,{store:t,auth:r,propsValue:n})},async run(e){return await Te.poll(uo,e)}});var nd=Ne(so());var l_={planId:pe({required:!0})},co={strategy:0,items:i(async({auth:e,propsValue:{planId:t}})=>{if(!t)return[];let r=await I.getUser({auth:e});if(!r||!r.id)throw new Error("Unable to fetch authenticated user details.");return(await I.listTasks({auth:e,planId:t})).filter(o=>{let a=String(r.id);return o.assignments&&Object.prototype.hasOwnProperty.call(o.assignments,a)}).map(o=>({epochMilliSeconds:(0,nd.default)(o.createdDateTime).valueOf(),data:o}))},"items")},od=At({auth:K,name:"newTaskAssignedToUser",displayName:"New Task Assigned to User",description:"Triggers when a Task is assigned to the authenticated user in Microsoft 365 Planner.",aiMetadata:{description:"Fires when a task within a specified Planner plan is assigned to the authenticated (connected) user. Polls periodically and emits each new task in that plan where the current user is among the assignees."},props:l_,sampleData:{},type:"POLLING",async test(e){return await Te.test(co,e)},async onEnable(e){let{store:t,auth:r,propsValue:n}=e;await Te.onEnable(co,{store:t,auth:r,propsValue:n})},async onDisable(e){let{store:t,auth:r,propsValue:n}=e;await Te.onDisable(co,{store:t,auth:r,propsValue:n})},async run(e){return await Te.poll(co,e)}});var id=Ne(so());var p_={planId:pe({required:!0})},lo={strategy:0,items:i(async({auth:e,propsValue:{planId:t}})=>t?(await I.listTasks({auth:e,planId:t})).map(n=>({epochMilliSeconds:(0,id.default)(n.createdDateTime).valueOf(),data:n})):[],"items")},ad=At({auth:K,name:"newTaskCreated",displayName:"New Task Created",description:"Triggers when a new Task is created in Microsoft 365 Planner.",aiMetadata:{description:"Fires when a new task is created within a specified Planner plan. Polls periodically and emits each newly created task for the configured plan."},props:p_,sampleData:{"@odata.etag":'W/"JzEtVGFzayAgQEBAffEBAQEBAQEBARCc="',planId:"s58lztas2UyCXSffEjnlVRgWUAFMLw",bucketId:"xZ2RCz88uE6BffffftN-0TKffPGUAB-pQ",title:"test task 123",orderHint:"8584411578775238762",assigneePriority:"",percentComplete:0,startDateTime:null,createdDateTime:"2025-10-14T13:36:47.953708Z",dueDateTime:null,hasDescription:!1,previewType:"automatic",completedDateTime:null,referenceCount:0,checklistItemCount:0,activeChecklistItemCount:0,conversationThreadId:null,priority:5,id:"wvG9lNxhuUO2JuedF9-rimUAFsBA",completedBy:null,createdBy:{user:{displayName:null,id:"90b3720d-f459-42c1-a02e-6471a1ecb068"},application:{displayName:null,id:"5ea0744c-62fa-4a19-99be-99f0869d3182"}},appliedCategories:{},assignments:{}},type:"POLLING",async test(e){return await Te.test(lo,e)},async onEnable(e){let{store:t,auth:r,propsValue:n}=e;await Te.onEnable(lo,{store:t,auth:r,propsValue:n})},async onDisable(e){let{store:t,auth:r,propsValue:n}=e;await Te.onDisable(lo,{store:t,auth:r,propsValue:n})},async run(e){return await Te.poll(lo,e)}});var d_=ou({displayName:"Microsoft 365 Planner",description:"Microsoft 365 Planner is part of the Microsoft 365 suite, offering lightweight task and bucket-based planning for teams. This integration supports creating plans, buckets, tasks, fetching them, deleting them, and custom API calls.",auth:K,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-365-planner.png",authors:["LuizDMM","sanket-a11y"],actions:[Rc,zc,kc,Dc,Cc,jc,Lc,Fc,Nc,Mc,Uc,Qp({auth:K,baseUrl:i(e=>{let t=St(e);return $t(t)+"/v1.0/"},"baseUrl"),authMapping:i(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[rd,ad,od]});0&&(module.exports={microsoft365Planner});
49
+ - User.Read`,ee=am.OAuth2({description:pw,props:{cloud:i_},authUrl:"https://{cloud}/common/oauth2/v2.0/authorize",tokenUrl:"https://{cloud}/common/oauth2/v2.0/token",required:!0,scope:["Tasks.ReadWrite","User.Read","Group.Read.All","openid","email","profile"],prompt:"omit"}),k={endpoints:{createPlan:"/planner/plans",listPlans:"/me/planner/plans",listGroups:"/groups",planDetail:s(e=>`/planner/plans/${e}`,"planDetail"),listBuckets:s(e=>`/planner/plans/${e}/buckets`,"listBuckets"),listPlanTasks:s(e=>`/planner/plans/${e}/tasks`,"listPlanTasks"),createBucket:"/planner/buckets",bucketDetail:s(e=>`/planner/buckets/${e}`,"bucketDetail"),createTask:"/planner/tasks",deleteTask:s(e=>`/planner/tasks/${e}`,"deleteTask")},getClient:s(({auth:e})=>{let t=sn(e);return bP.Client.initWithMiddleware({authProvider:{getAccessToken:s(async()=>e.access_token,"getAccessToken")},baseUrl:un(t)})},"getClient"),getUser:s(async({auth:e})=>await k.getClient({auth:e}).api("/me").get(),"getUser"),getEtag:s(async({auth:e,id:t,endpointType:n})=>{let o=k.getClient({auth:e}),r=k.endpoints[n],i=r(t);return(await o.api(i).get())["@odata.etag"]},"getEtag"),listUsers:s(async({auth:e})=>(await k.getClient({auth:e}).api("/users").get()).value,"listUsers"),listGroups:s(async({auth:e})=>(await k.getClient({auth:e}).api(k.endpoints.listGroups).get()).value,"listGroups"),listPlans:s(async({auth:e})=>(await k.getClient({auth:e}).api(k.endpoints.listPlans).get()).value,"listPlans"),listBuckets:s(async({auth:e,planId:t})=>(await k.getClient({auth:e}).api(k.endpoints.listBuckets(t)).get()).value,"listBuckets"),listTasks:s(async({auth:e,planId:t})=>(await k.getClient({auth:e}).api(k.endpoints.listPlanTasks(t)).get()).value,"listTasks"),createPlan:s(async({auth:e,...t})=>await k.getClient({auth:e}).api(k.endpoints.createPlan).create(t),"createPlan"),createBucket:s(async({auth:e,...t})=>await k.getClient({auth:e}).api(k.endpoints.createBucket).create(t),"createBucket"),updateBucket:s(async({auth:e,id:t,name:n,orderHint:o})=>{let r=k.getClient({auth:e}),i=await k.getEtag({auth:e,id:t,endpointType:"bucketDetail"});return await r.api(k.endpoints.bucketDetail(t)).header("If-Match",i).update({name:n,orderHint:o}),{success:!0}},"updateBucket"),deleteTask:s(async({auth:e,id:t})=>{let n=k.getClient({auth:e}),o=await k.getEtag({auth:e,id:t,endpointType:"deleteTask"});return await n.api(k.endpoints.deleteTask(t)).header("If-Match",o).delete(),{success:!0}},"deleteTask"),createTask:s(async({auth:e,...t})=>await k.getClient({auth:e}).api(k.endpoints.createTask).create(t),"createTask"),updateTask:s(async({auth:e,id:t,...n})=>{let o=k.getClient({auth:e}),r=await k.getEtag({auth:e,id:t,endpointType:"deleteTask"});return await o.api(k.endpoints.deleteTask(t)).header("If-Match",r).update(n),{success:!0}},"updateTask"),deleteBucket:s(async({auth:e,id:t})=>{let n=k.getClient({auth:e}),o=await k.getEtag({auth:e,id:t,endpointType:"bucketDetail"});return await n.api(k.endpoints.bucketDetail(t)).header("If-Match",o).delete(),{success:!0}},"deleteBucket"),updatePlan:s(async({auth:e,id:t,title:n})=>{let o=k.getClient({auth:e}),r=await k.getEtag({auth:e,id:t,endpointType:"planDetail"});return await o.api(k.endpoints.planDetail(t)).header("If-Match",r).update({title:n}),{success:!0}},"updatePlan"),getBucketDetails:s(async({auth:e,bucketId:t})=>await k.getClient({auth:e}).api(k.endpoints.bucketDetail(t)).get(),"getBucketDetails")};var EP=s(({required:e=!0})=>U.Dropdown({auth:ee,displayName:"Group",description:"Select the Grroup",required:e,refreshers:["auth"],options:s(async({auth:t})=>t?{options:(await k.listGroups({auth:t})).map(o=>({label:o.displayName??"",value:o.id??""})),disabled:!1,placeholder:"Select a group"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),"groupDropdown"),Ee=s(({required:e=!0})=>U.Dropdown({auth:ee,displayName:"Plan",description:"Select the plan",required:e,refreshers:["auth"],options:s(async({auth:t})=>t?{options:(await k.listPlans({auth:t})).map(o=>({label:o.title??"",value:o.id??""})),disabled:!1,placeholder:"Select a plan"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),"PlanDropdown"),Wt=s(({required:e=!0})=>U.Dropdown({auth:ee,displayName:"Bucket",description:"Select the bucket",required:e,refreshers:["auth","planId"],options:s(async({auth:t,planId:n})=>{if(!t)return{options:[],disabled:!0,placeholder:"Please select an authentication first"};if(!n)return{options:[],disabled:!0,placeholder:"Please select a plan first"};let o=await k.listBuckets({auth:t,planId:n});return console.log("Buckets:",JSON.stringify(o)),{options:o.map(r=>({label:r.name??"",value:r.id??""})),disabled:!1,placeholder:"Select a bucket"}},"options")}),"BucketDropdown"),gc=s(({required:e=!0})=>U.Dropdown({auth:ee,displayName:"Task",description:"Select the task",required:e,refreshers:["auth","planId"],options:s(async({auth:t,planId:n})=>t?n?{options:(await k.listTasks({auth:t,planId:n})).map(r=>({label:r.title??"",value:r.id??""})),disabled:!1,placeholder:"Select a task"}:{options:[],disabled:!0,placeholder:"Please select a plan first"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),"TaskDropdown"),hc=s(({required:e=!1})=>U.ShortText({displayName:"Order Hint",description:"Hint used to order items of this type in a list. The format is defined as outlined here: https://learn.microsoft.com/en-us/graph/api/resources/planner-order-hint-format?view=graph-rest-1.0",required:e}),"OrderHintProperty");var TP=me({auth:ee,name:"createBucket",classification:"WRITE",displayName:"Create Bucket",description:"Create a bucket (category) under a plan.",audience:"both",aiMetadata:{description:"Creates a new bucket (a column/category for grouping tasks) under an existing Planner plan, identified by plan ID. Use to organize tasks within a plan. Each call adds another bucket, so it is not idempotent.",idempotent:!1},props:{planId:Ee({required:!0}),name:U.ShortText({displayName:"Bucket Name",description:"The name of the bucket to be created",required:!0}),orderHint:hc({required:!1})},async run({auth:e,propsValue:t}){return await k.createBucket({auth:e,...t})}});var AP=me({auth:ee,name:"createPlan",classification:"WRITE",displayName:"Create Plan",description:"Create a new planner plan",audience:"both",aiMetadata:{description:"Creates a new Microsoft 365 Planner plan with the given title, owned by a specified Microsoft 365 group. Use to set up a fresh planning board before adding buckets or tasks. The group must already exist; each call creates a separate plan, so it is not idempotent.",idempotent:!1},props:{groupId:EP({required:!0}),title:U.ShortText({displayName:"Title",description:"The title of the plan",required:!0})},async run({auth:e,propsValue:t}){let n=sn(e),r={container:{url:`${un(n)}/v1.0/groups/${t.groupId}`},title:t.title};return await k.createPlan({auth:e,...r})}});var IP=me({auth:ee,name:"createTask",classification:"WRITE",displayName:"Create Task",description:"Create a new planner task with title, assignments, due date, etc.",audience:"both",aiMetadata:{description:"Creates a new task in a Planner plan, optionally placing it in a bucket and setting assignees, due/start dates, priority, and percent complete. Use to add work items to a plan. Each call creates a separate task, so it is not idempotent.",idempotent:!1},props:{planId:Ee({required:!0}),bucketId:Wt({required:!1}),title:U.ShortText({displayName:"Title",description:"The title of the task to be created",required:!0}),assignments:U.MultiSelectDropdown({displayName:"Assignments",description:"Select users to assign the task to. If left empty, the task will be unassigned.",required:!1,auth:ee,refreshers:["auth"],options:s(async({auth:e})=>e?{options:(await k.listUsers({auth:e})).map(n=>({label:n.displayName||n.userPrincipalName||"No Name",value:n.id||""})),disabled:!1,placeholder:"Select users to assign the task to"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),dueDateTime:U.DateTime({displayName:"Due Date",description:"The due date and time for the task",required:!1}),percentComplete:U.Number({displayName:"Percent Complete",description:"The completion percentage of the task (0-100)",required:!1}),priority:U.Number({displayName:"Priority",description:"The priority of the task between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority).",required:!1}),startDateTime:U.DateTime({displayName:"Start Date",description:"The start date and time for the task",required:!1})},async run({auth:e,propsValue:t}){let n={...t,assignments:t.assignments?Object.fromEntries(t.assignments.map(o=>[o,{"@odata.type":"microsoft.graph.plannerAssignment"}])):void 0,dueDateTime:t.dueDateTime?new Date(t.dueDateTime).toISOString():void 0,startDateTime:t.startDateTime?new Date(t.startDateTime).toISOString():void 0};return await k.createTask({auth:e,...n})}});var SP=me({auth:ee,name:"deleteBucket",classification:"DESTRUCTIVE",displayName:"Delete Bucket",description:"Delete an existing bucket.",audience:"both",aiMetadata:{description:"Permanently deletes a bucket from a Planner plan by bucket ID. Use to remove a category and stop grouping tasks under it. Destructive and not idempotent; once removed, repeating the call fails because the bucket no longer exists.",idempotent:!1},props:{planId:Ee({required:!0}),id:Wt({required:!0})},async run({auth:e,propsValue:{id:t}}){if(!t)throw new Error("Bucket id is required");return await k.deleteBucket({auth:e,id:t})}});var $P=me({auth:ee,name:"deleteTask",classification:"DESTRUCTIVE",displayName:"Delete Task",description:"Remove a specific task by ID.",audience:"both",aiMetadata:{description:"Permanently deletes a task from a Planner plan by task ID. Use to remove a work item. Destructive and not idempotent; once removed, repeating the call fails because the task no longer exists.",idempotent:!1},props:{planId:Ee({required:!0}),id:gc({required:!0})},async run({auth:e,propsValue:{id:t}}){if(!t)throw new Error("Task id is required");return await k.deleteTask({auth:e,id:t})}});var OP=me({auth:ee,name:"findAPlan",classification:"SEARCH",displayName:"Find a Plan",description:"Finds a plan by field.",audience:"both",aiMetadata:{description:"Searches across the authenticated user's Planner plans and returns those whose title contains the given text (case-insensitive substring match). Use to resolve a plan name into its plan ID before acting on it. Read-only and idempotent; the title input is required.",idempotent:!0},props:{title:U.ShortText({displayName:"Title",description:"The title of the plan to search for",required:!0})},async run({auth:e,propsValue:{title:t}}){return(await k.listPlans({auth:e})).filter(o=>o.title&&o.title.toLowerCase().includes(t.toLowerCase()))}});var wP=me({auth:ee,name:"findTask",classification:"SEARCH",displayName:"Find Task",description:"Find task by fields.",audience:"both",aiMetadata:{description:"Searches the tasks of a given Planner plan and returns those whose title contains the given text (case-insensitive substring match). Use to locate a task ID within a known plan. Read-only and idempotent; both plan ID and title are required.",idempotent:!0},props:{planId:Ee({required:!0}),title:U.ShortText({displayName:"Title",description:"The title of the task to search for",required:!0})},async run({auth:e,propsValue:{title:t,planId:n}}){if(!n)throw new Error("Plan ID is required to fetch tasks.");return(await k.listTasks({auth:e,planId:n})).filter(r=>r.title&&r.title.toLowerCase().includes(t.toLowerCase()))}});var RP=me({auth:ee,name:"getABucket",classification:"READ",displayName:"Get a Bucket",description:"Retrieve details about a specific bucket.",audience:"both",aiMetadata:{description:"Retrieves the details of a single Planner bucket by its bucket ID (within a known plan). Use to inspect a bucket's current name and order hint. Read-only and idempotent.",idempotent:!0},props:{planId:Ee({required:!0}),bucketId:Wt({required:!0})},async run({auth:e,propsValue:{bucketId:t}}){if(!t)throw new Error("Bucket ID is required to fetch bucket details.");return await k.getBucketDetails({auth:e,bucketId:t})}});var zP=me({auth:ee,name:"updateBucket",classification:"WRITE",displayName:"Update Bucket",description:"Modify bucket\u2019s name or properties.",audience:"both",aiMetadata:{description:"Updates an existing bucket's name and/or order hint, identified by bucket ID within a plan. Use to rename or reorder a bucket. Idempotent: applying the same field values repeatedly leaves the bucket in the same end state.",idempotent:!0},props:{planId:Ee({required:!0}),id:Wt({required:!0}),name:U.ShortText({displayName:"Name",description:"The new name of the bucket",required:!1}),orderHint:hc({required:!1})},async run({auth:e,propsValue:t}){let{planId:n,id:o,...r}=t;if(!o)throw new Error("Bucket ID is required to update a bucket.");return await k.updateBucket({auth:e,id:o,...r})}});var kP=me({auth:ee,name:"updatePlan",classification:"WRITE",displayName:"Update Plan",description:"modify metadata of a plan (e.g. title changes).",audience:"both",aiMetadata:{description:"Updates an existing Planner plan's title, identified by plan ID. Use to rename a plan. Idempotent: setting the same title repeatedly leaves the plan in the same end state.",idempotent:!0},props:{id:Ee({required:!0}),title:U.ShortText({displayName:"Title",description:"The new title of the plan",required:!0})},async run({auth:e,propsValue:{id:t,title:n}}){if(!t)throw new Error("Plan id is required");return await k.updatePlan({auth:e,id:t,title:n})}});var CP=me({auth:ee,name:"updateTask",classification:"WRITE",displayName:"Update Task",description:"Modify existing task fields: title, due date, assignments, descriptions.",audience:"both",aiMetadata:{description:"Updates fields on an existing Planner task identified by task ID, such as title, assignees, due/start dates, priority, and percent complete. Use to edit a task; only provided fields are changed. Idempotent: applying the same field values repeatedly leaves the task in the same end state.",idempotent:!0},props:{planId:Ee({required:!0}),id:gc({required:!0}),title:U.ShortText({displayName:"Title",description:"The new title of the task",required:!1}),assignments:U.MultiSelectDropdown({displayName:"Assignments",description:"Select users to assign the task to. If left empty, the task will be unassigned.",required:!1,refreshers:["auth"],auth:ee,options:s(async({auth:e})=>e?{options:(await k.listUsers({auth:e})).map(n=>({label:n.displayName||n.userPrincipalName||"No Name",value:n.id||""})),disabled:!1,placeholder:"Select users to assign the task to"}:{options:[],disabled:!0,placeholder:"Please select an authentication first"},"options")}),dueDateTime:U.DateTime({displayName:"Due Date",description:"The due date and time for the task",required:!1}),percentComplete:U.Number({displayName:"Percent Complete",description:"The completion percentage of the task (0-100)",required:!1}),priority:U.Number({displayName:"Priority",description:"The priority of the task between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority).",required:!1}),startDateTime:U.DateTime({displayName:"Start Date",description:"The start date and time for the task",required:!1})},async run({auth:e,propsValue:t}){let{planId:n,id:o,...r}=t;if(!o)throw new Error("Task ID is required to update a task.");let i={...r,assignments:r.assignments?Object.fromEntries(r.assignments.map(a=>[a,{"@odata.type":"microsoft.graph.plannerAssignment"}])):void 0};return await k.updateTask({auth:e,id:o,...i})}});var _n=require("node:stream");var yc=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 vc=class{static{s(this,"DelegatingAuthenticationConverter")}constructor(t=new km,n=new Cm){this.converters={BEARER_TOKEN:t,BASIC:n}}convert(t,n){return this.converters[t.type].convert(t,n)}},km=class{static{s(this,"BearerTokenAuthenticationConverter")}convert(t,n){return n.Authorization=`Bearer ${t.token}`,n}},Cm=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 Ni=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 DP({error:e,requestBody:t}){return e instanceof Ni?e.errorMessage():{response:{status:0,body:e instanceof Error?e.message:String(e)},request:{body:t}}}s(DP,"toFailsafeOutput");var Dm=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(Dm||{});var _c=class extends yc{static{s(this,"FetchHttpClient")}constructor(t="",n=new vc){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[L,ne]of Object.entries(a))r.append(L,ne);let u=r.toString(),c=u?`${o}?${u}`:o,l=t.responseType??"json",f=t.followRedirects??!0,y=t.retries??0,{body:h,extraHeaders:p,isStream:g}=Pc(t.method)?dw(t.body,i):{body:void 0,extraHeaders:{},isStream:!1},_=mw({...i,...p}),b=await fw(async()=>{let L=new AbortController,ne=t.timeout&&t.timeout>0?setTimeout(()=>L.abort(),t.timeout):void 0;try{let pe={method:t.method.toString(),headers:_,body:h,redirect:f?"follow":"manual",signal:L.signal};return g&&(pe.duplex="half"),n?.dispatcher!==void 0&&(pe.dispatcher=n.dispatcher),await fetch(c,pe)}finally{ne!==void 0&&clearTimeout(ne)}},g?0:y),E=f?300:400;if(b.status<200||b.status>=E){let L=await NP(b,l==="stream"?"text":l),ne=new Ni(t.body,{status:b.status,responseBody:L});throw console.error("[HttpClient#(sanitized error message)] Request failed:",ne),ne}let T=await NP(b,l);return{status:b.status,headers:gw(b.headers),body:T}}};function Pc(e){return e!=="GET"&&e!=="HEAD"}s(Pc,"acceptsRequestBody");function dw(e,t){if(UP(e))return{body:void 0,extraHeaders:{},isStream:!1};if(yw(e)){let o=hw(e);if(o!==null)return{body:o,extraHeaders:e.getHeaders(),isStream:!1};let r=new _n.PassThrough;return e.on("error",i=>r.destroy(i)),e.pipe(r),{body:r,extraHeaders:e.getHeaders(),isStream:!0}}return e instanceof _n.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(dw,"serializeBody");async function NP(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"stream":return UP(e.body)?_n.Readable.from([]):_n.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(NP,"parseResponseBody");async function fw(e,t){let n;for(let o=0;o<=t;o++)try{let r=await e();if(r.status>=500&&o<t){await MP(o);continue}return r}catch(r){if(n=r,o<t){await MP(o);continue}throw r}throw n}s(fw,"sendWithRetries");function MP(e){let t=Math.min(1e3*2**e,3e4);return new Promise(n=>setTimeout(n,t))}s(MP,"backoff");function mw(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(mw,"normalizeHeaders");function gw(e){let t={};return e.forEach((n,o)=>{t[o]=n}),t}s(gw,"toHttpHeaders");function hw(e){if(!e.hasKnownLength()||e.getLengthSync()>vw)return null;let{data:t}=Od(()=>e.getBuffer());return t}s(hw,"bufferFormDataIfSafe");function yw(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}s(yw,"isNodeFormData");function UP(e){return e==null}s(UP,"isNil");var vw=100*1024*1024;var LP=new _c;var iz=ft(require("fs")),Hb=ft(Vb());var az={"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 sz(e){let t=e.split(";")[0].trim().toLowerCase();return az[t]??""}s(sz,"contentTypeToExtension");var uz=s(({baseUrl:e,relativePath:t})=>{let n=e.endsWith("/")?e:`${e}/`,o=t.startsWith("/")?t.slice(1):t;return`${n}${o}`},"joinBaseUrlWithRelativePath"),cz=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 qb({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:U.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:s(async({auth:f})=>({url:U.ShortText({displayName:"URL",description:`Full URL, or a path relative to ${cz(t,f)}`,required:!0,placeholder:"/resource",defaultValue:f?t(f):"",...a?.url??{}})}),"props")}),method:U.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(Dm).map(f=>({label:f,value:f}))},...a?.method??{}}),headers:U.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!1,...a?.headers??{}}),queryParams:U.Object({displayName:"Query Parameters",description:"Appended to the URL as ?key=value.",required:!1,...a?.queryParams??{}}),body_type:U.Dropdown({auth:e,displayName:"Body Type",required:!1,defaultValue:"none",refreshers:["method"],options:s(async({method:f})=>Pc(f)?{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}:{disabled:!0,placeholder:"Not available for GET or HEAD requests",options:[]},"options")}),body:U.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type","method"],required:!1,props:s(async({body_type:f,method:y})=>{if(!f||!Pc(y))return{};let h=f,p={};switch(h){case"none":break;case"json":p.data=U.Json({displayName:"JSON Body",required:!0,...a?.body??{}});break;case"raw":p.data=U.LongText({displayName:"Raw Body",required:!0});break;case"form_data":p.data=U.Array({displayName:"Form Data",required:!0,properties:{fieldName:U.ShortText({displayName:"Field Name",required:!0}),fieldType:U.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:U.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:U.File({displayName:"File Field Value",required:!1})}});break}return p},"props")}),response_is_binary:U.Checkbox({displayName:"Response is Binary",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1,advanced:!0,...a?.response_is_binary??{}}),failsafe:U.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:U.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:U.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 f=>{let{method:y,url:h,headers:p,queryParams:g,body:_,body_type:b,failsafe:E,timeout:T,response_is_binary:L,followRedirects:ne}=f.propsValue;Cs(y,"Method"),Cs(h,"URL");let pe=ve(n)?{}:await n(f.auth,f.propsValue),Be=h.url,be=Be.startsWith("http://")||Be.startsWith("https://")?Be:uz({baseUrl:t(f.auth),relativePath:Be}),te={method:y,url:be,headers:{...p??{},...c==="headers"||!ve(c)?pe:{}},queryParams:{...c==="queryParams"?pe:{},...g??{}},timeout:T?T*1e3:0,followRedirects:ne};if(L&&(te.responseType="arraybuffer"),_)if(b&&b!=="none"){let Ze=_.data;if(b==="form_data"){let ji=Ze,H=new Hb.default;for(let{fieldName:D,fieldType:z,textFieldValue:M,fileFieldValue:C}of ji)z==="text"&&!gi(M)?H.append(D,M):z==="file"&&!gi(C)&&H.append(D,C.data,{filename:C?.filename});te.body=H,te.headers={...te.headers,...H.getHeaders()}}else te.body=Ze}else b||(te.body=_);try{let Ze=await LP.sendRequest(te);return await lz(f.files,Ze.body,Ze.status,Ze.headers,L)}catch(Ze){if(E)return DP({error:Ze,requestBody:te.body});throw Ze}},"run")})}s(qb,"createCustomApiCallAction");var lz=s(async(e,t,n,o,r)=>{let i;if(r&&pz(t)){let a=Array.isArray(o?.["content-type"])?o["content-type"][0]:o?.["content-type"],u=sz(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"),pz=s(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Fe={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(ve(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((f,y)=>Math.max(f,y.epochMilliSeconds),u);return await t.put("lastPoll",l),c.filter(f=>f.epochMilliSeconds>u).map(f=>f.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(h=>h.id===u),f=[];ve(u)||l==-1?f=c??[]:f=c?.slice(0,l)??[],ve(r)||(f=f.slice(-r));let y=f?.[0]?.id;return ve(y)||await t.put("lastItem",y),f.map(h=>h.data)}}},async onEnable(e,{store:t,auth:n,propsValue:o,server:r,isRepublish:i}){switch(e.strategy){case 0:{if(i&&!ve(await t.get("lastPoll")))break;await t.put("lastPoll",Date.now());break}case 1:{if(i&&!ve(await t.get("lastItem")))break;let u=(await e.items({store:t,auth:n,propsValue:o,lastItemId:null,server:r}))?.[0]?.id;ve(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 dz(a.map(u=>u.data))}};function dz(e){return e.length<=5?e:e.slice(0,5)}s(dz,"getFirstFiveOrAll");var Wb=ft(wc());var Rc={strategy:0,items:s(async({auth:e})=>(await k.listPlans({auth:e})).map(n=>({epochMilliSeconds:(0,Wb.default)(n.createdDateTime).valueOf(),data:n})),"items")},Jb=an({auth:ee,name:"newPlanCreated",classification:"READ",displayName:"New Plan Created",description:"Triggers when a new Plan is created in Microsoft 365 Planner.",aiMetadata:{description:"Fires when a new plan is created in Microsoft 365 Planner across the authenticated user's accessible plans. Polls periodically and emits each newly created plan."},props:{},sampleData:{},type:"POLLING",async test(e){return await Fe.test(Rc,e)},async onEnable(e){let{store:t,auth:n,propsValue:o}=e;await Fe.onEnable(Rc,{store:t,auth:n,propsValue:o})},async onDisable(e){let{store:t,auth:n,propsValue:o}=e;await Fe.onDisable(Rc,{store:t,auth:n,propsValue:o})},async run(e){return await Fe.poll(Rc,e)}});var Xb=ft(wc());var fz={planId:Ee({required:!0})},zc={strategy:0,items:s(async({auth:e,propsValue:{planId:t}})=>{if(!t)return[];let n=await k.getUser({auth:e});if(!n||!n.id)throw new Error("Unable to fetch authenticated user details.");return(await k.listTasks({auth:e,planId:t})).filter(r=>{let i=String(n.id);return r.assignments&&Object.prototype.hasOwnProperty.call(r.assignments,i)}).map(r=>({epochMilliSeconds:(0,Xb.default)(r.createdDateTime).valueOf(),data:r}))},"items")},Kb=an({auth:ee,name:"newTaskAssignedToUser",classification:"READ",displayName:"New Task Assigned to User",description:"Triggers when a Task is assigned to the authenticated user in Microsoft 365 Planner.",aiMetadata:{description:"Fires when a task within a specified Planner plan is assigned to the authenticated (connected) user. Polls periodically and emits each new task in that plan where the current user is among the assignees."},props:fz,sampleData:{},type:"POLLING",async test(e){return await Fe.test(zc,e)},async onEnable(e){let{store:t,auth:n,propsValue:o}=e;await Fe.onEnable(zc,{store:t,auth:n,propsValue:o})},async onDisable(e){let{store:t,auth:n,propsValue:o}=e;await Fe.onDisable(zc,{store:t,auth:n,propsValue:o})},async run(e){return await Fe.poll(zc,e)}});var Yb=ft(wc());var mz={planId:Ee({required:!0})},kc={strategy:0,items:s(async({auth:e,propsValue:{planId:t}})=>t?(await k.listTasks({auth:e,planId:t})).map(o=>({epochMilliSeconds:(0,Yb.default)(o.createdDateTime).valueOf(),data:o})):[],"items")},Qb=an({auth:ee,name:"newTaskCreated",classification:"READ",displayName:"New Task Created",description:"Triggers when a new Task is created in Microsoft 365 Planner.",aiMetadata:{description:"Fires when a new task is created within a specified Planner plan. Polls periodically and emits each newly created task for the configured plan."},props:mz,sampleData:{"@odata.etag":'W/"JzEtVGFzayAgQEBAffEBAQEBAQEBARCc="',planId:"s58lztas2UyCXSffEjnlVRgWUAFMLw",bucketId:"xZ2RCz88uE6BffffftN-0TKffPGUAB-pQ",title:"test task 123",orderHint:"8584411578775238762",assigneePriority:"",percentComplete:0,startDateTime:null,createdDateTime:"2025-10-14T13:36:47.953708Z",dueDateTime:null,hasDescription:!1,previewType:"automatic",completedDateTime:null,referenceCount:0,checklistItemCount:0,activeChecklistItemCount:0,conversationThreadId:null,priority:5,id:"wvG9lNxhuUO2JuedF9-rimUAFsBA",completedBy:null,createdBy:{user:{displayName:null,id:"90b3720d-f459-42c1-a02e-6471a1ecb068"},application:{displayName:null,id:"5ea0744c-62fa-4a19-99be-99f0869d3182"}},appliedCategories:{},assignments:{}},type:"POLLING",async test(e){return await Fe.test(kc,e)},async onEnable(e){let{store:t,auth:n,propsValue:o}=e;await Fe.onEnable(kc,{store:t,auth:n,propsValue:o})},async onDisable(e){let{store:t,auth:n,propsValue:o}=e;await Fe.onDisable(kc,{store:t,auth:n,propsValue:o})},async run(e){return await Fe.poll(kc,e)}});var gz=Jv({displayName:"Microsoft 365 Planner",description:"Microsoft 365 Planner is part of the Microsoft 365 suite, offering lightweight task and bucket-based planning for teams. This integration supports creating plans, buckets, tasks, fetching them, deleting them, and custom API calls.",auth:ee,minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/microsoft-365-planner.png",authors:["LuizDMM","sanket-a11y"],actions:[AP,TP,IP,SP,$P,kP,zP,CP,OP,RP,wP,qb({auth:ee,baseUrl:s(e=>{let t=sn(e);return un(t)+"/v1.0/"},"baseUrl"),authMapping:s(async e=>({Authorization:`Bearer ${e.access_token}`}),"authMapping")})],triggers:[Jb,Qb,Kb]});0&&(module.exports={microsoft365Planner});
12
50
  /*! Bundled license information:
13
51
 
14
52
  mime-types/index.js: