ripplo 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,83 +1,82 @@
1
1
  #!/usr/bin/env node
2
- import {createRequire}from'node:module';import {a,b,c}from'./chunk-HA3VCAP6.js';import {execFile,exec}from'child_process';import Ei,{readFileSync,existsSync,writeFile as writeFile$1,readdirSync,statSync}from'fs';import zh,{resolve,normalize,join,relative,extname,dirname,basename}from'path';import pA,{homedir}from'os';import {Agent,RetryAgent,setGlobalDispatcher}from'undici';import {strictEqual,notStrictEqual}from'assert';import {format,promisify,inspect,styleText}from'util';import {fileURLToPath}from'url';import {createRequire as createRequire$1}from'module';import {gunzipSync}from'zlib';import {readFile,mkdir,writeFile,rename,rm as rm$1}from'fs/promises';import {setTimeout as setTimeout$1}from'timers/promises';import {stdin,stdout}from'process';import fF from'readline';import'tty';import {randomUUID}from'crypto';globalThis.require ?? createRequire(import.meta.url);
3
- var Wx=a((K8,Zx)=>{Zx.exports=function(t){if(t===void 0&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var r=Error.prepareStackTrace;Error.prepareStackTrace=function(n,o){return o};var i=new Error().stack;if(Error.prepareStackTrace=r,i!==null&&typeof i=="object")return i[t]?i[t].getFileName():void 0};});var Mu=a((mV,Wh)=>{var Lu=process||{},XD=Lu.argv||[],Uu=Lu.env||{},VP=!(Uu.NO_COLOR||XD.includes("--no-color"))&&(!!Uu.FORCE_COLOR||XD.includes("--color")||Lu.platform==="win32"||(Lu.stdout||{}).isTTY&&Uu.TERM!=="dumb"||!!Uu.CI),ZP=(e,t,r=e)=>i=>{let n=""+i,o=n.indexOf(t,e.length);return ~o?e+WP(n,t,r,o)+t:e+n+t},WP=(e,t,r,i)=>{let n="",o=0;do n+=e.substring(o,i)+r,o=i+t.length,i=e.indexOf(t,o);while(~i);return n+e.substring(o)},QD=(e=VP)=>{let t=e?ZP:()=>String;return {isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Wh.exports=QD();Wh.exports.createColors=QD;});var iw=a(($V,rw)=>{var og={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let r="";return e<0?r+=`\x1B[${-e}D`:e>0&&(r+=`\x1B[${e}C`),t<0?r+=`\x1B[${-t}A`:t>0&&(r+=`\x1B[${t}B`),r},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},uF={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},cF={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?og.up():"");return e&&(t+=og.left),t}};rw.exports={cursor:og,scroll:uF,erase:cF,beep:"\x07"};});var Fi={DOCUMENT:"Document",FRAGMENT_DEFINITION:"FragmentDefinition"};var lc=class extends Error{constructor(t,r,i,n,o,a,u){super(t),this.name="GraphQLError",this.message=t,o&&(this.path=o),r&&(this.nodes=Array.isArray(r)?r:[r]),i&&(this.source=i),n&&(this.positions=n),a&&(this.originalError=a);var c=u;if(!c&&a){var l=a.extensions;l&&typeof l=="object"&&(c=l);}this.extensions=c||{};}toJSON(){return {...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return "GraphQLError"}},Z,I;function et(e){return new lc(`Syntax Error: Unexpected token at ${I} in ${e}`)}function pg(e){if(e.lastIndex=I,e.test(Z))return Z.slice(I,I=e.lastIndex)}var Ho=/ +(?=[^\s])/y;function p$(e){for(var t=e.split(`
4
- `),r="",i=0,n=0,o=t.length-1,a=0;a<t.length;a++)Ho.lastIndex=0,Ho.test(t[a])&&(a&&(!i||Ho.lastIndex<i)&&(i=Ho.lastIndex),n=n||a,o=a);for(var u=n;u<=o;u++)u!==n&&(r+=`
5
- `),r+=t[u].slice(i).replace(/\\"""/g,'"""');return r}function ae(){for(var e=0|Z.charCodeAt(I++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|Z.charCodeAt(I++))if(e===35)for(;(e=0|Z.charCodeAt(I++))&&e!==10&&e!==13;);I--;}function dc(){for(var e=I,t=0|Z.charCodeAt(I++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|Z.charCodeAt(I++));if(e===I-1)throw et("Name");var r=Z.slice(e,--I);return ae(),r}function st(){return {kind:"Name",value:dc()}}var f$=/(?:"""|(?:[\s\S]*?[^\\])""")/y,m$=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function zr(e){var t;switch(Z.charCodeAt(I)){case 91:I++,ae();for(var r=[];Z.charCodeAt(I)!==93;)r.push(zr(e));return I++,ae(),{kind:"ListValue",values:r};case 123:I++,ae();for(var i=[];Z.charCodeAt(I)!==125;){var n=st();if(Z.charCodeAt(I++)!==58)throw et("ObjectField");ae(),i.push({kind:"ObjectField",name:n,value:zr(e)});}return I++,ae(),{kind:"ObjectValue",fields:i};case 36:if(e)throw et("Variable");return I++,{kind:"Variable",name:st()};case 34:if(Z.charCodeAt(I+1)===34&&Z.charCodeAt(I+2)===34){if(I+=3,(t=pg(f$))==null)throw et("StringValue");return ae(),{kind:"StringValue",value:p$(t.slice(0,-3)),block:true}}else {var o=I,a;I++;var u=false;for(a=0|Z.charCodeAt(I++);a===92&&(I++,u=true)||a!==10&&a!==13&&a!==34&&a;a=0|Z.charCodeAt(I++));if(a!==34)throw et("StringValue");return t=Z.slice(o,I),ae(),{kind:"StringValue",value:u?JSON.parse(t):t.slice(1,-1),block:false}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var c=I++,l;(l=0|Z.charCodeAt(I++))>=48&&l<=57;);var d=Z.slice(c,--I);if((l=Z.charCodeAt(I))===46||l===69||l===101){if((t=pg(m$))==null)throw et("FloatValue");return ae(),{kind:"FloatValue",value:d+t}}else return ae(),{kind:"IntValue",value:d};case 110:if(Z.charCodeAt(I+1)===117&&Z.charCodeAt(I+2)===108&&Z.charCodeAt(I+3)===108)return I+=4,ae(),{kind:"NullValue"};break;case 116:if(Z.charCodeAt(I+1)===114&&Z.charCodeAt(I+2)===117&&Z.charCodeAt(I+3)===101)return I+=4,ae(),{kind:"BooleanValue",value:true};break;case 102:if(Z.charCodeAt(I+1)===97&&Z.charCodeAt(I+2)===108&&Z.charCodeAt(I+3)===115&&Z.charCodeAt(I+4)===101)return I+=5,ae(),{kind:"BooleanValue",value:false};break}return {kind:"EnumValue",value:dc()}}function mg(e){if(Z.charCodeAt(I)===40){var t=[];I++,ae();do{var r=st();if(Z.charCodeAt(I++)!==58)throw et("Argument");ae(),t.push({kind:"Argument",name:r,value:zr(e)});}while(Z.charCodeAt(I)!==41);return I++,ae(),t}}function _n(e){if(Z.charCodeAt(I)===64){var t=[];do I++,t.push({kind:"Directive",name:st(),arguments:mg(e)});while(Z.charCodeAt(I)===64);return t}}function h$(){for(var e=0;Z.charCodeAt(I)===91;)e++,I++,ae();var t={kind:"NamedType",name:st()};do if(Z.charCodeAt(I)===33&&(I++,ae(),t={kind:"NonNullType",type:t}),e){if(Z.charCodeAt(I++)!==93)throw et("NamedType");ae(),t={kind:"ListType",type:t};}while(e--);return t}function Jo(){if(Z.charCodeAt(I++)!==123)throw et("SelectionSet");return ae(),Ko()}function Ko(){var e=[];do if(Z.charCodeAt(I)===46){if(Z.charCodeAt(++I)!==46||Z.charCodeAt(++I)!==46)throw et("SelectionSet");switch(I++,ae(),Z.charCodeAt(I)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:_n(false),selectionSet:Jo()});break;case 111:Z.charCodeAt(I+1)===110?(I+=2,ae(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:st()},directives:_n(false),selectionSet:Jo()})):e.push({kind:"FragmentSpread",name:st(),directives:_n(false)});break;case 123:I++,ae(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:Ko()});break;default:e.push({kind:"FragmentSpread",name:st(),directives:_n(false)});}}else {var t=st(),r=void 0;Z.charCodeAt(I)===58&&(I++,ae(),r=t,t=st());var i=mg(false),n=_n(false),o=void 0;Z.charCodeAt(I)===123&&(I++,ae(),o=Ko()),e.push({kind:"Field",alias:r,name:t,arguments:i,directives:n,selectionSet:o});}while(Z.charCodeAt(I)!==125);return I++,ae(),{kind:"SelectionSet",selections:e}}function g$(){if(ae(),Z.charCodeAt(I)===40){var e=[];I++,ae();do{var t=void 0;if(Z.charCodeAt(I)===34&&(t=zr(true)),Z.charCodeAt(I++)!==36)throw et("Variable");var r=st();if(Z.charCodeAt(I++)!==58)throw et("VariableDefinition");ae();var i=h$(),n=void 0;Z.charCodeAt(I)===61&&(I++,ae(),n=zr(true)),ae();var o={kind:"VariableDefinition",variable:{kind:"Variable",name:r},type:i,defaultValue:n,directives:_n(true)};t&&(o.description=t),e.push(o);}while(Z.charCodeAt(I)!==41);return I++,ae(),e}}function y$(e){var t=st();if(Z.charCodeAt(I++)!==111||Z.charCodeAt(I++)!==110)throw et("FragmentDefinition");ae();var r={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:st()},directives:_n(false),selectionSet:Jo()};return e&&(r.description=e),r}function fg(){var e=[];do{var t=void 0;if(Z.charCodeAt(I)===34&&(t=zr(true)),Z.charCodeAt(I)===123){if(t)throw et("Document");I++,ae(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:Ko()});}else {var r=dc();switch(r){case "fragment":e.push(y$(t));break;case "query":case "mutation":case "subscription":var i,n=void 0;(i=Z.charCodeAt(I))!==40&&i!==64&&i!==123&&(n=st());var o={kind:"OperationDefinition",operation:r,name:n,variableDefinitions:g$(),directives:_n(false),selectionSet:Jo()};t&&(o.description=t),e.push(o);break;default:throw et("Document")}}}while(I<Z.length);return e}function hg(e,t){return Z=e.body?e.body:e,I=0,ae(),{kind:"Document",definitions:fg(),loc:{start:0,end:Z.length,startToken:void 0,endToken:void 0,source:{body:Z,name:"graphql.web",locationOffset:{line:1,column:1}}}}}var gg=0,pc=new Set;function v$(){function e(t,r){var i=hg(t).definitions,n=new Set;for(var o of r||[])for(var a of o.definitions)a.kind===Fi.FRAGMENT_DEFINITION&&!n.has(a)&&(i.push(a),n.add(a));var u;(u=i[0].kind===Fi.FRAGMENT_DEFINITION)&&i[0].directives&&(i[0].directives=i[0].directives.filter((l=>l.name.value!=="_unmask")));var c;return {kind:Fi.DOCUMENT,definitions:i,get loc(){if(!c&&u){var l=t+(function(p){try{gg++;var m="";for(var h of p)if(!pc.has(h)){pc.add(h);var{loc:v}=h;v&&(m+=v.source.body);}return m}finally{--gg==0&&pc.clear();}})(r||[]);return {start:0,end:l.length,source:{body:l,name:"GraphQLTada",locationOffset:{line:1,column:1}}}}return c},set loc(l){c=l;}}}return e.scalar=function(r,i){return i},e.persisted=function(r,i){return {kind:Fi.DOCUMENT,definitions:i?i.definitions:[],documentId:r}},e}var Ue=v$();var s={};b(s,{$brand:()=>Yo,$input:()=>Ad,$output:()=>Rd,NEVER:()=>fc,TimePrecision:()=>jd,ZodAny:()=>$f,ZodArray:()=>Cf,ZodBase64:()=>_s,ZodBase64URL:()=>Es,ZodBigInt:()=>mi,ZodBigIntFormat:()=>ks,ZodBoolean:()=>fi,ZodCIDRv4:()=>xs,ZodCIDRv6:()=>Ds,ZodCUID:()=>ms,ZodCUID2:()=>hs,ZodCatch:()=>Xf,ZodCodec:()=>js,ZodCustom:()=>mo,ZodCustomStringFormat:()=>di,ZodDate:()=>uo,ZodDefault:()=>Gf,ZodDiscriminatedUnion:()=>Af,ZodE164:()=>ws,ZodEmail:()=>ds,ZodEmoji:()=>ps,ZodEnum:()=>ci,ZodError:()=>G0,ZodExactOptional:()=>Vf,ZodFile:()=>Mf,ZodFirstPartyTypeKind:()=>lm,ZodFunction:()=>sm,ZodGUID:()=>ro,ZodIPv4:()=>bs,ZodIPv6:()=>Ss,ZodISODate:()=>as,ZodISODateTime:()=>os,ZodISODuration:()=>us,ZodISOTime:()=>ss,ZodIntersection:()=>Tf,ZodIssueCode:()=>H0,ZodJWT:()=>$s,ZodKSUID:()=>vs,ZodLazy:()=>im,ZodLiteral:()=>Lf,ZodMAC:()=>bf,ZodMap:()=>Nf,ZodNaN:()=>em,ZodNanoID:()=>fs,ZodNever:()=>If,ZodNonOptional:()=>Ps,ZodNull:()=>Ef,ZodNullable:()=>Wf,ZodNumber:()=>pi,ZodNumberFormat:()=>or,ZodObject:()=>lo,ZodOptional:()=>Ts,ZodPipe:()=>Fs,ZodPrefault:()=>Hf,ZodPromise:()=>am,ZodReadonly:()=>tm,ZodRealError:()=>lt,ZodRecord:()=>fo,ZodSet:()=>Uf,ZodString:()=>li,ZodStringFormat:()=>ge,ZodSuccess:()=>Yf,ZodSymbol:()=>Df,ZodTemplateLiteral:()=>rm,ZodTransform:()=>Bf,ZodTuple:()=>Ff,ZodType:()=>ee,ZodULID:()=>gs,ZodURL:()=>so,ZodUUID:()=>Qt,ZodUndefined:()=>_f,ZodUnion:()=>po,ZodUnknown:()=>kf,ZodVoid:()=>Of,ZodXID:()=>ys,ZodXor:()=>Rf,_ZodString:()=>ls,_default:()=>qf,_function:()=>Hv,any:()=>kv,array:()=>co,base64:()=>lv,base64url:()=>dv,bigint:()=>Dv,boolean:()=>xf,catch:()=>Qf,check:()=>Jv,cidrv4:()=>uv,cidrv6:()=>cv,clone:()=>tt,codec:()=>Wv,coerce:()=>dm,config:()=>$e,core:()=>hn,cuid:()=>ev,cuid2:()=>tv,custom:()=>Kv,date:()=>Ov,decode:()=>pf,decodeAsync:()=>mf,describe:()=>Yv,discriminatedUnion:()=>Pv,e164:()=>pv,email:()=>Zy,emoji:()=>Xy,encode:()=>df,encodeAsync:()=>ff,endsWith:()=>Xr,enum:()=>Rs,exactOptional:()=>Zf,file:()=>Mv,flattenError:()=>Zi,float32:()=>vv,float64:()=>bv,formatError:()=>Wi,fromJSONSchema:()=>ib,function:()=>Hv,getErrorMap:()=>K0,globalRegistry:()=>qe,gt:()=>Yt,gte:()=>nt,guid:()=>Wy,hash:()=>yv,hex:()=>gv,hostname:()=>hv,httpUrl:()=>Yy,includes:()=>Kr,instanceof:()=>Qv,int:()=>cs,int32:()=>Sv,int64:()=>_v,intersection:()=>Pf,ipv4:()=>ov,ipv6:()=>sv,iso:()=>si,json:()=>tb,jwt:()=>fv,keyof:()=>Cv,ksuid:()=>iv,lazy:()=>om,length:()=>rr,literal:()=>Lv,locales:()=>Qi,looseObject:()=>Av,looseRecord:()=>jv,lowercase:()=>Hr,lt:()=>Kt,lte:()=>mt,mac:()=>av,map:()=>zv,maxLength:()=>nr,maxSize:()=>Cn,meta:()=>Xv,mime:()=>Qr,minLength:()=>mn,minSize:()=>Xt,multipleOf:()=>On,nan:()=>Zv,nanoid:()=>Qy,nativeEnum:()=>Uv,negative:()=>Ja,never:()=>Is,nonnegative:()=>Ya,nonoptional:()=>Kf,nonpositive:()=>Ka,normalize:()=>ei,null:()=>wf,nullable:()=>oo,nullish:()=>Bv,number:()=>Sf,object:()=>Os,optional:()=>io,overwrite:()=>Ut,parse:()=>sf,parseAsync:()=>uf,partialRecord:()=>Fv,pipe:()=>ao,positive:()=>Ha,prefault:()=>Jf,preprocess:()=>nb,prettifyError:()=>wc,promise:()=>qv,property:()=>Xa,readonly:()=>nm,record:()=>zf,refine:()=>um,regex:()=>qr,regexes:()=>$t,registry:()=>ka,safeDecode:()=>gf,safeDecodeAsync:()=>vf,safeEncode:()=>hf,safeEncodeAsync:()=>yf,safeParse:()=>cf,safeParseAsync:()=>lf,set:()=>Nv,setErrorMap:()=>J0,size:()=>tr,slugify:()=>ii,startsWith:()=>Yr,strictObject:()=>Rv,string:()=>ui,stringFormat:()=>mv,stringbool:()=>eb,success:()=>Vv,superRefine:()=>cm,symbol:()=>wv,templateLiteral:()=>Gv,toJSONSchema:()=>ns,toLowerCase:()=>ni,toUpperCase:()=>ri,transform:()=>As,treeifyError:()=>Ec,trim:()=>ti,tuple:()=>jf,uint32:()=>xv,uint64:()=>Ev,ulid:()=>nv,undefined:()=>$v,union:()=>Cs,unknown:()=>ir,uppercase:()=>Jr,url:()=>Ky,util:()=>k,uuid:()=>Gy,uuidv4:()=>qy,uuidv6:()=>Hy,uuidv7:()=>Jy,void:()=>Iv,xid:()=>rv,xor:()=>Tv});var hn={};b(hn,{$ZodAny:()=>Ql,$ZodArray:()=>id,$ZodAsyncError:()=>Nt,$ZodBase64:()=>Vl,$ZodBase64URL:()=>Zl,$ZodBigInt:()=>Sa,$ZodBigIntFormat:()=>Jl,$ZodBoolean:()=>Ji,$ZodCIDRv4:()=>Ll,$ZodCIDRv6:()=>Ml,$ZodCUID:()=>Il,$ZodCUID2:()=>Ol,$ZodCatch:()=>Dd,$ZodCheck:()=>ye,$ZodCheckBigIntFormat:()=>il,$ZodCheckEndsWith:()=>gl,$ZodCheckGreaterThan:()=>fa,$ZodCheckIncludes:()=>ml,$ZodCheckLengthEquals:()=>ll,$ZodCheckLessThan:()=>pa,$ZodCheckLowerCase:()=>pl,$ZodCheckMaxLength:()=>ul,$ZodCheckMaxSize:()=>ol,$ZodCheckMimeType:()=>vl,$ZodCheckMinLength:()=>cl,$ZodCheckMinSize:()=>al,$ZodCheckMultipleOf:()=>nl,$ZodCheckNumberFormat:()=>rl,$ZodCheckOverwrite:()=>bl,$ZodCheckProperty:()=>yl,$ZodCheckRegex:()=>dl,$ZodCheckSizeEquals:()=>sl,$ZodCheckStartsWith:()=>hl,$ZodCheckStringFormat:()=>Wr,$ZodCheckUpperCase:()=>fl,$ZodCodec:()=>Yi,$ZodCustom:()=>Cd,$ZodCustomStringFormat:()=>ql,$ZodDate:()=>rd,$ZodDefault:()=>vd,$ZodDiscriminatedUnion:()=>sd,$ZodE164:()=>Wl,$ZodEmail:()=>El,$ZodEmoji:()=>$l,$ZodEncodeError:()=>En,$ZodEnum:()=>pd,$ZodError:()=>Vi,$ZodExactOptional:()=>gd,$ZodFile:()=>md,$ZodFunction:()=>kd,$ZodGUID:()=>Dl,$ZodIPv4:()=>zl,$ZodIPv6:()=>Nl,$ZodISODate:()=>Pl,$ZodISODateTime:()=>Tl,$ZodISODuration:()=>jl,$ZodISOTime:()=>Fl,$ZodIntersection:()=>ud,$ZodJWT:()=>Gl,$ZodKSUID:()=>Al,$ZodLazy:()=>Od,$ZodLiteral:()=>fd,$ZodMAC:()=>Ul,$ZodMap:()=>ld,$ZodNaN:()=>_d,$ZodNanoID:()=>kl,$ZodNever:()=>td,$ZodNonOptional:()=>Sd,$ZodNull:()=>Xl,$ZodNullable:()=>yd,$ZodNumber:()=>ba,$ZodNumberFormat:()=>Hl,$ZodObject:()=>Vg,$ZodObjectJIT:()=>od,$ZodOptional:()=>Da,$ZodPipe:()=>Ed,$ZodPrefault:()=>bd,$ZodPromise:()=>Id,$ZodReadonly:()=>wd,$ZodRealError:()=>ct,$ZodRecord:()=>cd,$ZodRegistry:()=>$a,$ZodSet:()=>dd,$ZodString:()=>er,$ZodStringFormat:()=>he,$ZodSuccess:()=>xd,$ZodSymbol:()=>Kl,$ZodTemplateLiteral:()=>$d,$ZodTransform:()=>hd,$ZodTuple:()=>xa,$ZodType:()=>X,$ZodULID:()=>Cl,$ZodURL:()=>wl,$ZodUUID:()=>_l,$ZodUndefined:()=>Yl,$ZodUnion:()=>Ki,$ZodUnknown:()=>ed,$ZodVoid:()=>nd,$ZodXID:()=>Rl,$ZodXor:()=>ad,$brand:()=>Yo,$constructor:()=>y,$input:()=>Ad,$output:()=>Rd,Doc:()=>Hi,JSONSchema:()=>By,JSONSchemaGenerator:()=>rs,NEVER:()=>fc,TimePrecision:()=>jd,_any:()=>rp,_array:()=>lp,_base64:()=>Za,_base64url:()=>Wa,_bigint:()=>Kd,_boolean:()=>Hd,_catch:()=>N0,_check:()=>My,_cidrv4:()=>Ba,_cidrv6:()=>Va,_coercedBigint:()=>Yd,_coercedBoolean:()=>Jd,_coercedDate:()=>up,_coercedNumber:()=>Bd,_coercedString:()=>Pd,_cuid:()=>Fa,_cuid2:()=>ja,_custom:()=>pp,_date:()=>sp,_decode:()=>ra,_decodeAsync:()=>oa,_default:()=>F0,_discriminatedUnion:()=>_0,_e164:()=>Ga,_email:()=>Ia,_emoji:()=>Ta,_encode:()=>na,_encodeAsync:()=>ia,_endsWith:()=>Xr,_enum:()=>O0,_file:()=>dp,_float32:()=>Zd,_float64:()=>Wd,_gt:()=>Yt,_gte:()=>nt,_guid:()=>eo,_includes:()=>Kr,_int:()=>Vd,_int32:()=>Gd,_int64:()=>Xd,_intersection:()=>E0,_ipv4:()=>La,_ipv6:()=>Ma,_isoDate:()=>Nd,_isoDateTime:()=>zd,_isoDuration:()=>Ld,_isoTime:()=>Ud,_jwt:()=>qa,_ksuid:()=>Ua,_lazy:()=>B0,_length:()=>rr,_literal:()=>R0,_lowercase:()=>Hr,_lt:()=>Kt,_lte:()=>mt,_mac:()=>Fd,_map:()=>k0,_max:()=>mt,_maxLength:()=>nr,_maxSize:()=>Cn,_mime:()=>Qr,_min:()=>nt,_minLength:()=>mn,_minSize:()=>Xt,_multipleOf:()=>On,_nan:()=>cp,_nanoid:()=>Pa,_nativeEnum:()=>C0,_negative:()=>Ja,_never:()=>op,_nonnegative:()=>Ya,_nonoptional:()=>j0,_nonpositive:()=>Ka,_normalize:()=>ei,_null:()=>np,_nullable:()=>P0,_number:()=>Md,_optional:()=>T0,_overwrite:()=>Ut,_parse:()=>Mr,_parseAsync:()=>Br,_pipe:()=>U0,_positive:()=>Ha,_promise:()=>V0,_property:()=>Xa,_readonly:()=>L0,_record:()=>$0,_refine:()=>fp,_regex:()=>qr,_safeDecode:()=>sa,_safeDecodeAsync:()=>ca,_safeEncode:()=>aa,_safeEncodeAsync:()=>ua,_safeParse:()=>Vr,_safeParseAsync:()=>Zr,_set:()=>I0,_size:()=>tr,_slugify:()=>ii,_startsWith:()=>Yr,_string:()=>Td,_stringFormat:()=>oi,_stringbool:()=>yp,_success:()=>z0,_superRefine:()=>mp,_symbol:()=>ep,_templateLiteral:()=>M0,_toLowerCase:()=>ni,_toUpperCase:()=>ri,_transform:()=>A0,_trim:()=>ti,_tuple:()=>w0,_uint32:()=>qd,_uint64:()=>Qd,_ulid:()=>za,_undefined:()=>tp,_union:()=>x0,_unknown:()=>ip,_uppercase:()=>Jr,_url:()=>to,_uuid:()=>Oa,_uuidv4:()=>Ca,_uuidv6:()=>Ra,_uuidv7:()=>Aa,_void:()=>ap,_xid:()=>Na,_xor:()=>D0,clone:()=>tt,config:()=>$e,createStandardJSONSchemaMethod:()=>ai,createToJSONSchemaMethod:()=>vp,decode:()=>G$,decodeAsync:()=>H$,describe:()=>hp,encode:()=>W$,encodeAsync:()=>q$,extractDefs:()=>An,finalize:()=>Tn,flattenError:()=>Zi,formatError:()=>Wi,globalConfig:()=>ji,globalRegistry:()=>qe,initializeContext:()=>Rn,isValidBase64:()=>Bl,isValidBase64URL:()=>Ug,isValidJWT:()=>Lg,locales:()=>Qi,meta:()=>gp,parse:()=>ea,parseAsync:()=>ta,prettifyError:()=>wc,process:()=>le,regexes:()=>$t,registry:()=>ka,safeDecode:()=>K$,safeDecodeAsync:()=>X$,safeEncode:()=>J$,safeEncodeAsync:()=>Y$,safeParse:()=>$c,safeParseAsync:()=>kc,toDotPath:()=>xg,toJSONSchema:()=>ns,treeifyError:()=>Ec,util:()=>k,version:()=>Sl});var fc=Object.freeze({status:"aborted"});function y(e,t,r){function i(u,c){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:false}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,c);let l=a.prototype,d=Object.keys(l);for(let p=0;p<d.length;p++){let m=d[p];m in u||(u[m]=l[m].bind(u));}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function a(u){var c;let l=r?.Parent?new o:this;i(l,u),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?true:u?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Yo=Symbol("zod_brand"),Nt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},En=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError";}},ji={};function $e(e){return e&&Object.assign(ji,e),ji}var k={};b(k,{BIGINT_FORMAT_RANGES:()=>_c,Class:()=>hc,NUMBER_FORMAT_RANGES:()=>Dc,aborted:()=>In,allowsEval:()=>vc,assert:()=>_$,assertEqual:()=>b$,assertIs:()=>x$,assertNever:()=>D$,assertNotEqual:()=>S$,assignProp:()=>$n,base64ToUint8Array:()=>vg,base64urlToUint8Array:()=>L$,cached:()=>Ur,captureStackTrace:()=>Qo,cleanEnum:()=>U$,cleanRegex:()=>Ui,clone:()=>tt,cloneDef:()=>w$,createTransparentProxy:()=>R$,defineLazy:()=>re,esc:()=>Xo,escapeRegex:()=>wt,extend:()=>P$,finalizeIssue:()=>ut,floatSafeRemainder:()=>gc,getElementAtPath:()=>$$,getEnumValues:()=>Ni,getLengthableOrigin:()=>Bi,getParsedType:()=>C$,getSizableOrigin:()=>Mi,hexToUint8Array:()=>B$,isObject:()=>Xn,isPlainObject:()=>kn,issue:()=>Lr,joinValues:()=>_,jsonStringifyReplacer:()=>Nr,merge:()=>j$,mergeDefs:()=>fn,normalizeParams:()=>C,nullish:()=>wn,numKeys:()=>O$,objectClone:()=>E$,omit:()=>T$,optionalKeys:()=>xc,parsedType:()=>$,partial:()=>z$,pick:()=>A$,prefixIssues:()=>ft,primitiveTypes:()=>Sc,promiseAllObject:()=>k$,propertyKeyTypes:()=>Li,randomString:()=>I$,required:()=>N$,safeExtend:()=>F$,shallowClone:()=>bc,slugify:()=>yc,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>bg,uint8ArrayToBase64url:()=>M$,uint8ArrayToHex:()=>V$,unwrapMessage:()=>zi});function b$(e){return e}function S$(e){return e}function x$(e){}function D$(e){throw new Error("Unexpected value in exhaustive check")}function _$(e){}function Ni(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function _(e,t="|"){return e.map(r=>w(r)).join(t)}function Nr(e,t){return typeof t=="bigint"?t.toString():t}function Ur(e){return {get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function wn(e){return e==null}function Ui(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function gc(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]));}let o=r>n?r:n,a=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(t.toFixed(o).replace(".",""));return a%u/10**o}var yg=Symbol("evaluating");function re(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==yg)return i===void 0&&(i=yg,i=r()),i},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function E$(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $n(e,t,r){Object.defineProperty(e,t,{value:r,writable:true,enumerable:true,configurable:true});}function fn(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i);}return Object.defineProperties({},t)}function w$(e){return fn(e._zod.def)}function $$(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function k$(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function I$(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Xo(e){return JSON.stringify(e)}function yc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Qo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var vc=Ur(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function kn(e){if(Xn(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!="function")return true;let r=t.prototype;return !(Xn(r)===false||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===false)}function bc(e){return kn(e)?{...e}:Array.isArray(e)?[...e]:e}function O$(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var C$=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}`)}},Li=new Set(["string","number","symbol"]),Sc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function wt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tt(e,t,r){let i=new e._zod.constr(t??e._zod.def);return (!t||r?.parent)&&(i._zod.parent=e),i}function C(e){let t=e;if(!t)return {};if(typeof t=="string")return {error:()=>t};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:()=>t.error}:t}function R$(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function xc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Dc={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]},_c={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function A$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=fn(e._zod.def,{get shape(){let a={};for(let u in t){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(a[u]=r.shape[u]);}return $n(this,"shape",a),a},checks:[]});return tt(e,o)}function T$(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=fn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let u in t){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete a[u];}return $n(this,"shape",a),a},checks:[]});return tt(e,o)}function P$(e,t){if(!kn(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=fn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return $n(this,"shape",o),o}});return tt(e,n)}function F$(e,t){if(!kn(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=fn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return $n(this,"shape",i),i}});return tt(e,r)}function j$(e,t){let r=fn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return $n(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return tt(e,r)}function z$(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=fn(t._zod.def,{get shape(){let u=t._zod.def.shape,c={...u};if(r)for(let l in r){if(!(l in u))throw new Error(`Unrecognized key: "${l}"`);r[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 $n(this,"shape",c),c},checks:[]});return tt(t,a)}function N$(e,t,r){let i=fn(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:n[a]}));}else for(let a in n)o[a]=new e({type:"nonoptional",innerType:n[a]});return $n(this,"shape",o),o}});return tt(t,i)}function In(e,t=0){if(e.aborted===true)return true;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==true)return true;return false}function ft(e,t){return t.map(r=>{var i;return (i=r).path??(i.path=[]),r.path.unshift(e),r})}function zi(e){return typeof e=="string"?e:e?.message}function ut(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=zi(e.inst?._zod.def?.error?.(e))??zi(t?.error?.(e))??zi(r.customError?.(e))??zi(r.localeError?.(e))??"Invalid input";i.message=n;}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Mi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Bi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $(e){let t=typeof e;switch(t){case "number":return Number.isNaN(e)?"nan":"number";case "object":{if(e===null)return "null";if(Array.isArray(e))return "array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Lr(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function U$(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function vg(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function bg(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function L$(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return vg(t+r)}function M$(e){return bg(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function B$(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function V$(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var hc=class{constructor(...t){}};var Sg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,Nr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},Vi=y("$ZodError",Sg),ct=y("$ZodError",Sg,{Parent:Error});function Zi(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return {formErrors:i,fieldErrors:r}}function Wi(e,t=r=>r.message){let r={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else {let a=r,u=0;for(;u<o.path.length;){let c=o.path[u];u===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],u++;}}};return i(e),r}function Ec(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,u;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else {let l=[...o,...c.path];if(l.length===0){r.errors.push(t(c));continue}let d=r,p=0;for(;p<l.length;){let m=l[p],h=p===l.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(u=d.items)[m]??(u[m]={errors:[]}),d=d.items[m]),h&&d.errors.push(t(c)),p++;}}};return i(e),r}function xg(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function wc(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${xg(i.path)}`);return t.join(`
6
- `)}var Mr=e=>(t,r,i,n)=>{let o=i?Object.assign(i,{async:false}):{async:false},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Nt;if(a.issues.length){let u=new(n?.Err??e)(a.issues.map(c=>ut(c,o,$e())));throw Qo(u,n?.callee),u}return a.value},ea=Mr(ct),Br=e=>async(t,r,i,n)=>{let o=i?Object.assign(i,{async:true}):{async:true},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let u=new(n?.Err??e)(a.issues.map(c=>ut(c,o,$e())));throw Qo(u,n?.callee),u}return a.value},ta=Br(ct),Vr=e=>(t,r,i)=>{let n=i?{...i,async:false}:{async:false},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Nt;return o.issues.length?{success:false,error:new(e??Vi)(o.issues.map(a=>ut(a,n,$e())))}:{success:true,data:o.value}},$c=Vr(ct),Zr=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:true}):{async:true},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(a=>ut(a,n,$e())))}:{success:true,data:o.value}},kc=Zr(ct),na=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Mr(e)(t,r,n)},W$=na(ct),ra=e=>(t,r,i)=>Mr(e)(t,r,i),G$=ra(ct),ia=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Br(e)(t,r,n)},q$=ia(ct),oa=e=>async(t,r,i)=>Br(e)(t,r,i),H$=oa(ct),aa=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Vr(e)(t,r,n)},J$=aa(ct),sa=e=>(t,r,i)=>Vr(e)(t,r,i),K$=sa(ct),ua=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Zr(e)(t,r,n)},Y$=ua(ct),ca=e=>async(t,r,i)=>Zr(e)(t,r,i),X$=ca(ct);var $t={};b($t,{base64:()=>Vc,base64url:()=>la,bigint:()=>Jc,boolean:()=>Yc,browserEmail:()=>ak,cidrv4:()=>Mc,cidrv6:()=>Bc,cuid:()=>Ic,cuid2:()=>Oc,date:()=>Wc,datetime:()=>qc,domain:()=>ck,duration:()=>Pc,e164:()=>Zc,email:()=>jc,emoji:()=>zc,extendedDuration:()=>Q$,guid:()=>Fc,hex:()=>lk,hostname:()=>uk,html5Email:()=>rk,idnEmail:()=>ok,integer:()=>Kc,ipv4:()=>Nc,ipv6:()=>Uc,ksuid:()=>Ac,lowercase:()=>el,mac:()=>Lc,md5_base64:()=>pk,md5_base64url:()=>fk,md5_hex:()=>dk,nanoid:()=>Tc,null:()=>Xc,number:()=>da,rfc5322Email:()=>ik,sha1_base64:()=>hk,sha1_base64url:()=>gk,sha1_hex:()=>mk,sha256_base64:()=>vk,sha256_base64url:()=>bk,sha256_hex:()=>yk,sha384_base64:()=>xk,sha384_base64url:()=>Dk,sha384_hex:()=>Sk,sha512_base64:()=>Ek,sha512_base64url:()=>wk,sha512_hex:()=>_k,string:()=>Hc,time:()=>Gc,ulid:()=>Cc,undefined:()=>Qc,unicodeEmail:()=>Dg,uppercase:()=>tl,uuid:()=>Qn,uuid4:()=>ek,uuid6:()=>tk,uuid7:()=>nk,xid:()=>Rc});var Ic=/^[cC][^\s-]{8,}$/,Oc=/^[0-9a-z]+$/,Cc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Rc=/^[0-9a-vA-V]{20}$/,Ac=/^[A-Za-z0-9]{27}$/,Tc=/^[a-zA-Z0-9_-]{21}$/,Pc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Q$=/^[-+]?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)?)??$/,Fc=/^([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})$/,Qn=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)$/,ek=Qn(4),tk=Qn(6),nk=Qn(7),jc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rk=/^[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])?)*$/,ik=/^(([^<>()\[\]\\.,;:\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,}))$/,Dg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ok=Dg,ak=/^[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])?)*$/,sk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function zc(){return new RegExp(sk,"u")}var Nc=/^(?:(?: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])$/,Uc=/^(([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}|:))$/,Lc=e=>{let t=wt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Mc=/^((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])$/,Bc=/^(([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])$/,Vc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,la=/^[A-Za-z0-9_-]*$/,uk=/^(?=.{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])?)*\.?$/,ck=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Zc=/^\+[1-9]\d{6,14}$/,_g="(?:(?:\\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])))",Wc=new RegExp(`^${_g}$`);function Eg(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+)?)?`}function Gc(e){return new RegExp(`^${Eg(e)}$`)}function qc(e){let t=Eg({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${_g}T(?:${i})$`)}var Hc=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Jc=/^-?\d+n?$/,Kc=/^-?\d+$/,da=/^-?\d+(?:\.\d+)?$/,Yc=/^(?:true|false)$/i,Xc=/^null$/i;var Qc=/^undefined$/i;var el=/^[^A-Z]*$/,tl=/^[^a-z]*$/,lk=/^[0-9a-fA-F]*$/;function Gi(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function qi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var dk=/^[0-9a-fA-F]{32}$/,pk=Gi(22,"=="),fk=qi(22),mk=/^[0-9a-fA-F]{40}$/,hk=Gi(27,"="),gk=qi(27),yk=/^[0-9a-fA-F]{64}$/,vk=Gi(43,"="),bk=qi(43),Sk=/^[0-9a-fA-F]{96}$/,xk=Gi(64,""),Dk=qi(64),_k=/^[0-9a-fA-F]{128}$/,Ek=Gi(86,"=="),wk=qi(86);var ye=y("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[]);}),$g={number:"number",bigint:"bigint",object:"date"},pa=y("$ZodCheckLessThan",(e,t)=>{ye.init(e,t);let r=$g[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),fa=y("$ZodCheckGreaterThan",(e,t)=>{ye.init(e,t);let r=$g[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),nl=y("$ZodCheckMultipleOf",(e,t)=>{ye.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value);}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):gc(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort});};}),rl=y("$ZodCheckNumberFormat",(e,t)=>{ye.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Dc[t.format];e._zod.onattach.push(a=>{let u=a._zod.bag;u.format=t.format,u.minimum=n,u.maximum=o,r&&(u.pattern=Kc);}),e._zod.check=a=>{let u=a.value;if(r){if(!Number.isInteger(u)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:false,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:i,inclusive:true,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:i,inclusive:true,continue:!t.abort});return}}u<n&&a.issues.push({origin:"number",input:u,code:"too_small",minimum:n,inclusive:true,inst:e,continue:!t.abort}),u>o&&a.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:true,inst:e,continue:!t.abort});};}),il=y("$ZodCheckBigIntFormat",(e,t)=>{ye.init(e,t);let[r,i]=_c[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i;}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:true,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:true,inst:e,continue:!t.abort});};}),ol=y("$ZodCheckMaxSize",(e,t)=>{var r;ye.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return !wn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:Mi(n),code:"too_big",maximum:t.maximum,inclusive:true,input:n,inst:e,continue:!t.abort});};}),al=y("$ZodCheckMinSize",(e,t)=>{var r;ye.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return !wn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:Mi(n),code:"too_small",minimum:t.minimum,inclusive:true,input:n,inst:e,continue:!t.abort});};}),sl=y("$ZodCheckSizeEquals",(e,t)=>{var r;ye.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return !wn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size;}),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:Mi(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),ul=y("$ZodCheckMaxLength",(e,t)=>{var r;ye.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return !wn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let a=Bi(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:true,input:n,inst:e,continue:!t.abort});};}),cl=y("$ZodCheckMinLength",(e,t)=>{var r;ye.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return !wn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let a=Bi(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:true,input:n,inst:e,continue:!t.abort});};}),ll=y("$ZodCheckLengthEquals",(e,t)=>{var r;ye.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return !wn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length;}),e._zod.check=i=>{let n=i.value,o=n.length;if(o===t.length)return;let a=Bi(n),u=o>t.length;i.issues.push({origin:a,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),Wr=y("$ZodCheckStringFormat",(e,t)=>{var r,i;ye.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern));}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(i=e._zod).check??(i.check=()=>{});}),dl=y("$ZodCheckRegex",(e,t)=>{Wr.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});};}),pl=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=el),Wr.init(e,t);}),fl=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tl),Wr.init(e,t);}),ml=y("$ZodCheckIncludes",(e,t)=>{ye.init(e,t);let r=wt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i);}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort});};}),hl=y("$ZodCheckStartsWith",(e,t)=>{ye.init(e,t);let r=new RegExp(`^${wt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r);}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort});};}),gl=y("$ZodCheckEndsWith",(e,t)=>{ye.init(e,t);let r=new RegExp(`.*${wt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r);}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort});};});function wg(e,t,r){e.issues.length&&t.issues.push(...ft(r,e.issues));}var yl=y("$ZodCheckProperty",(e,t)=>{ye.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>wg(n,r,t.property));wg(i,r,t.property);};}),vl=y("$ZodCheckMimeType",(e,t)=>{ye.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime;}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort});};}),bl=y("$ZodCheckOverwrite",(e,t)=>{ye.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value);};});var Hi=class{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 i=t.split(`
7
- `).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a);}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
8
- `))}};var Sl={major:4,minor:3,patch:6};var X=y("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Sl;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let n=(a,u,c)=>{let l=In(a),d;for(let p of u){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,h=p._zod.check(a);if(h instanceof Promise&&c?.async===false)throw new Nt;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==m&&(l||(l=In(a,m)));});else {if(a.issues.length===m)continue;l||(l=In(a,m));}}return d?d.then(()=>a):a},o=(a,u,c)=>{if(In(a))return a.aborted=true,a;let l=n(u,i,c);if(l instanceof Promise){if(c.async===false)throw new Nt;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};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:true});return l instanceof Promise?l.then(d=>o(d,a,u)):o(l,a,u)}let c=e._zod.parse(a,u);if(c instanceof Promise){if(u.async===false)throw new Nt;return c.then(l=>n(l,i,u))}return n(c,i,u)};}re(e,"~standard",()=>({validate:n=>{try{let o=$c(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return kc(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}));}),er=y("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Hc(e._zod.bag),e._zod.parse=(r,i)=>{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};}),he=y("$ZodStringFormat",(e,t)=>{Wr.init(e,t),er.init(e,t);}),Dl=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Fc),he.init(e,t);}),_l=y("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qn(i));}else t.pattern??(t.pattern=Qn());he.init(e,t);}),El=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=jc),he.init(e,t);}),wl=y("$ZodURL",(e,t)=>{he.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.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(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.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=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});}};}),$l=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=zc()),he.init(e,t);}),kl=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Tc),he.init(e,t);}),Il=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ic),he.init(e,t);}),Ol=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Oc),he.init(e,t);}),Cl=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Cc),he.init(e,t);}),Rl=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Rc),he.init(e,t);}),Al=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ac),he.init(e,t);}),Tl=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qc(t)),he.init(e,t);}),Pl=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Wc),he.init(e,t);}),Fl=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gc(t)),he.init(e,t);}),jl=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Pc),he.init(e,t);}),zl=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Nc),he.init(e,t),e._zod.bag.format="ipv4";}),Nl=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Uc),he.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`);}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort});}};}),Ul=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Lc(t.delimiter)),he.init(e,t),e._zod.bag.format="mac";}),Ll=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Mc),he.init(e,t);}),Ml=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bc),he.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`);}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort});}};});function Bl(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var Vl=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Vc),he.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Bl(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort});};});function Ug(e){if(!la.test(e))return false;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bl(r)}var Zl=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=la),he.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Ug(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort});};}),Wl=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Zc),he.init(e,t);});function Lg(e,t=null){try{let r=e.split(".");if(r.length!==3)return !1;let[i]=r;if(!i)return !1;let n=JSON.parse(atob(i));return !("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return false}}var Gl=y("$ZodJWT",(e,t)=>{he.init(e,t),e._zod.check=r=>{Lg(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort});};}),ql=y("$ZodCustomStringFormat",(e,t)=>{he.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort});};}),ba=y("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??da,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value);}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r};}),Hl=y("$ZodNumberFormat",(e,t)=>{rl.init(e,t),ba.init(e,t);}),Ji=y("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=Yc,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value;}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r};}),Sa=y("$ZodBigInt",(e,t)=>{X.init(e,t),e._zod.pattern=Jc,e._zod.parse=(r,i)=>{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};}),Jl=y("$ZodBigIntFormat",(e,t)=>{il.init(e,t),Sa.init(e,t);}),Kl=y("$ZodSymbol",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r};}),Yl=y("$ZodUndefined",(e,t)=>{X.init(e,t),e._zod.pattern=Qc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r};}),Xl=y("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=Xc,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r};}),Ql=y("$ZodAny",(e,t)=>{X.init(e,t),e._zod.parse=r=>r;}),ed=y("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=r=>r;}),td=y("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r);}),nd=y("$ZodVoid",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r};}),rd=y("$ZodDate",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value);}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r};});function Ig(e,t,r){e.issues.length&&t.issues.push(...ft(r,e.issues)),t.value[r]=e.value;}var id=y("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let u=n[a],c=t.element._zod.run({value:u,issues:[]},i);c instanceof Promise?o.push(c.then(l=>Ig(l,r,a))):Ig(c,r,a);}return o.length?Promise.all(o).then(()=>r):r};});function va(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...ft(r,e.issues));}e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value;}function Mg(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=xc(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Bg(e,t,r,i,n,o){let a=[],u=n.keySet,c=n.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let p in t){if(u.has(p))continue;if(l==="never"){a.push(p);continue}let m=c.run({value:t[p],issues:[]},i);m instanceof Promise?e.push(m.then(h=>va(h,r,p,t,d))):va(m,r,p,t,d);}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Vg=y("$ZodObject",(e,t)=>{if(X.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...u};return Object.defineProperty(t,"shape",{value:c}),c}});}let i=Ur(()=>Mg(t));re(e._zod,"propValues",()=>{let u=t.shape,c={};for(let l in u){let d=u[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let p of d.values)c[l].add(p);}}return c});let n=Xn,o=t.catchall,a;e._zod.parse=(u,c)=>{a??(a=i.value);let l=u.value;if(!n(l))return u.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),u;u.value={};let d=[],p=a.shape;for(let m of a.keys){let h=p[m],v=h._zod.optout==="optional",D=h._zod.run({value:l[m],issues:[]},c);D instanceof Promise?d.push(D.then(b=>va(b,u,m,l,v))):va(D,u,m,l,v);}return o?Bg(d,l,u,c,i.value,e):d.length?Promise.all(d).then(()=>u):u};}),od=y("$ZodObjectJIT",(e,t)=>{Vg.init(e,t);let r=e._zod.parse,i=Ur(()=>Mg(t)),n=m=>{let h=new Hi(["shape","payload","ctx"]),v=i.value,D=B=>{let A=Xo(B);return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),U=0;for(let B of v.keys)b[B]=`key_${U++}`;h.write("const newResult = {};");for(let B of v.keys){let A=b[B],O=Xo(B),ne=m[B]?._zod?.optout==="optional";h.write(`const ${A} = ${D(B)};`),ne?h.write(`
9
- if (${A}.issues.length) {
10
- if (${O} in input) {
11
- payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
2
+ import {createRequire}from'node:module';import {a,b,c}from'./chunk-HA3VCAP6.js';import {execFile,exec}from'child_process';import Kn,{readFileSync,existsSync,writeFile as writeFile$1,readdirSync,statSync}from'fs';import Um,{resolve,normalize,join,relative,extname,dirname,basename}from'path';import pk,{homedir}from'os';import {Agent,RetryAgent,setGlobalDispatcher}from'undici';import {strictEqual,notStrictEqual}from'assert';import {format,promisify,inspect,styleText}from'util';import {fileURLToPath}from'url';import {createRequire as createRequire$1}from'module';import {gunzipSync}from'zlib';import {readFile,mkdir,writeFile,rename,rm}from'fs/promises';import {setTimeout as setTimeout$1}from'timers/promises';import {stdin,stdout}from'process';import pR from'readline';import'tty';import {randomUUID}from'crypto';globalThis.require ?? createRequire(import.meta.url);
3
+ var w_=a((LL,E_)=>{E_.exports=function(t){if(t===void 0&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,o){return o};var i=new Error().stack;if(Error.prepareStackTrace=n,i!==null&&typeof i=="object")return i[t]?i[t].getFileName():void 0};});var Qs=a((b8,Zm)=>{var Xs=process||{},RD=Xs.argv||[],Ks=Xs.env||{},BA=!(Ks.NO_COLOR||RD.includes("--no-color"))&&(!!Ks.FORCE_COLOR||RD.includes("--color")||Xs.platform==="win32"||(Xs.stdout||{}).isTTY&&Ks.TERM!=="dumb"||!!Ks.CI),VA=(e,t,n=e)=>i=>{let r=""+i,o=r.indexOf(t,e.length);return ~o?e+ZA(r,t,n,o)+t:e+r+t},ZA=(e,t,n,i)=>{let r="",o=0;do r+=e.substring(o,i)+n,o=i+t.length,i=e.indexOf(t,o);while(~i);return r+e.substring(o)},TD=(e=BA)=>{let t=e?VA:()=>String;return {isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Zm.exports=TD();Zm.exports.createColors=TD;});var RS=a((A8,AS)=>{var rh={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let n="";return e<0?n+=`\x1B[${-e}D`:e>0&&(n+=`\x1B[${e}C`),t<0?n+=`\x1B[${-t}A`:t>0&&(n+=`\x1B[${t}B`),n},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},sR={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},uR={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let n=0;n<e;n++)t+=this.line+(n<e-1?rh.up():"");return e&&(t+=rh.left),t}};AS.exports={cursor:rh,scroll:sR,erase:uR,beep:"\x07"};});var ui={DOCUMENT:"Document",FRAGMENT_DEFINITION:"FragmentDefinition"};var xu=class extends Error{constructor(t,n,i,r,o,a,s){super(t),this.name="GraphQLError",this.message=t,o&&(this.path=o),n&&(this.nodes=Array.isArray(n)?n:[n]),i&&(this.source=i),r&&(this.positions=r),a&&(this.originalError=a);var c=s;if(!c&&a){var l=a.extensions;l&&typeof l=="object"&&(c=l);}this.extensions=c||{};}toJSON(){return {...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return "GraphQLError"}},Z,O;function Ye(e){return new xu(`Syntax Error: Unexpected token at ${O} in ${e}`)}function lh(e){if(e.lastIndex=O,e.test(Z))return Z.slice(O,O=e.lastIndex)}var go=/ +(?=[^\s])/y;function zE(e){for(var t=e.split(`
4
+ `),n="",i=0,r=0,o=t.length-1,a=0;a<t.length;a++)go.lastIndex=0,go.test(t[a])&&(a&&(!i||go.lastIndex<i)&&(i=go.lastIndex),r=r||a,o=a);for(var s=r;s<=o;s++)s!==r&&(n+=`
5
+ `),n+=t[s].slice(i).replace(/\\"""/g,'"""');return n}function ae(){for(var e=0|Z.charCodeAt(O++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|Z.charCodeAt(O++))if(e===35)for(;(e=0|Z.charCodeAt(O++))&&e!==10&&e!==13;);O--;}function Su(){for(var e=O,t=0|Z.charCodeAt(O++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|Z.charCodeAt(O++));if(e===O-1)throw Ye("Name");var n=Z.slice(e,--O);return ae(),n}function rt(){return {kind:"Name",value:Su()}}var UE=/(?:"""|(?:[\s\S]*?[^\\])""")/y,jE=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function dn(e){var t;switch(Z.charCodeAt(O)){case 91:O++,ae();for(var n=[];Z.charCodeAt(O)!==93;)n.push(dn(e));return O++,ae(),{kind:"ListValue",values:n};case 123:O++,ae();for(var i=[];Z.charCodeAt(O)!==125;){var r=rt();if(Z.charCodeAt(O++)!==58)throw Ye("ObjectField");ae(),i.push({kind:"ObjectField",name:r,value:dn(e)});}return O++,ae(),{kind:"ObjectValue",fields:i};case 36:if(e)throw Ye("Variable");return O++,{kind:"Variable",name:rt()};case 34:if(Z.charCodeAt(O+1)===34&&Z.charCodeAt(O+2)===34){if(O+=3,(t=lh(UE))==null)throw Ye("StringValue");return ae(),{kind:"StringValue",value:zE(t.slice(0,-3)),block:true}}else {var o=O,a;O++;var s=false;for(a=0|Z.charCodeAt(O++);a===92&&(O++,s=true)||a!==10&&a!==13&&a!==34&&a;a=0|Z.charCodeAt(O++));if(a!==34)throw Ye("StringValue");return t=Z.slice(o,O),ae(),{kind:"StringValue",value:s?JSON.parse(t):t.slice(1,-1),block:false}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var c=O++,l;(l=0|Z.charCodeAt(O++))>=48&&l<=57;);var d=Z.slice(c,--O);if((l=Z.charCodeAt(O))===46||l===69||l===101){if((t=lh(jE))==null)throw Ye("FloatValue");return ae(),{kind:"FloatValue",value:d+t}}else return ae(),{kind:"IntValue",value:d};case 110:if(Z.charCodeAt(O+1)===117&&Z.charCodeAt(O+2)===108&&Z.charCodeAt(O+3)===108)return O+=4,ae(),{kind:"NullValue"};break;case 116:if(Z.charCodeAt(O+1)===114&&Z.charCodeAt(O+2)===117&&Z.charCodeAt(O+3)===101)return O+=4,ae(),{kind:"BooleanValue",value:true};break;case 102:if(Z.charCodeAt(O+1)===97&&Z.charCodeAt(O+2)===108&&Z.charCodeAt(O+3)===115&&Z.charCodeAt(O+4)===101)return O+=5,ae(),{kind:"BooleanValue",value:false};break}return {kind:"EnumValue",value:Su()}}function ph(e){if(Z.charCodeAt(O)===40){var t=[];O++,ae();do{var n=rt();if(Z.charCodeAt(O++)!==58)throw Ye("Argument");ae(),t.push({kind:"Argument",name:n,value:dn(e)});}while(Z.charCodeAt(O)!==41);return O++,ae(),t}}function ar(e){if(Z.charCodeAt(O)===64){var t=[];do O++,t.push({kind:"Directive",name:rt(),arguments:ph(e)});while(Z.charCodeAt(O)===64);return t}}function LE(){for(var e=0;Z.charCodeAt(O)===91;)e++,O++,ae();var t={kind:"NamedType",name:rt()};do if(Z.charCodeAt(O)===33&&(O++,ae(),t={kind:"NonNullType",type:t}),e){if(Z.charCodeAt(O++)!==93)throw Ye("NamedType");ae(),t={kind:"ListType",type:t};}while(e--);return t}function vo(){if(Z.charCodeAt(O++)!==123)throw Ye("SelectionSet");return ae(),yo()}function yo(){var e=[];do if(Z.charCodeAt(O)===46){if(Z.charCodeAt(++O)!==46||Z.charCodeAt(++O)!==46)throw Ye("SelectionSet");switch(O++,ae(),Z.charCodeAt(O)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:ar(false),selectionSet:vo()});break;case 111:Z.charCodeAt(O+1)===110?(O+=2,ae(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:rt()},directives:ar(false),selectionSet:vo()})):e.push({kind:"FragmentSpread",name:rt(),directives:ar(false)});break;case 123:O++,ae(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:yo()});break;default:e.push({kind:"FragmentSpread",name:rt(),directives:ar(false)});}}else {var t=rt(),n=void 0;Z.charCodeAt(O)===58&&(O++,ae(),n=t,t=rt());var i=ph(false),r=ar(false),o=void 0;Z.charCodeAt(O)===123&&(O++,ae(),o=yo()),e.push({kind:"Field",alias:n,name:t,arguments:i,directives:r,selectionSet:o});}while(Z.charCodeAt(O)!==125);return O++,ae(),{kind:"SelectionSet",selections:e}}function ME(){if(ae(),Z.charCodeAt(O)===40){var e=[];O++,ae();do{var t=void 0;if(Z.charCodeAt(O)===34&&(t=dn(true)),Z.charCodeAt(O++)!==36)throw Ye("Variable");var n=rt();if(Z.charCodeAt(O++)!==58)throw Ye("VariableDefinition");ae();var i=LE(),r=void 0;Z.charCodeAt(O)===61&&(O++,ae(),r=dn(true)),ae();var o={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:i,defaultValue:r,directives:ar(true)};t&&(o.description=t),e.push(o);}while(Z.charCodeAt(O)!==41);return O++,ae(),e}}function BE(e){var t=rt();if(Z.charCodeAt(O++)!==111||Z.charCodeAt(O++)!==110)throw Ye("FragmentDefinition");ae();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:rt()},directives:ar(false),selectionSet:vo()};return e&&(n.description=e),n}function dh(){var e=[];do{var t=void 0;if(Z.charCodeAt(O)===34&&(t=dn(true)),Z.charCodeAt(O)===123){if(t)throw Ye("Document");O++,ae(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:yo()});}else {var n=Su();switch(n){case "fragment":e.push(BE(t));break;case "query":case "mutation":case "subscription":var i,r=void 0;(i=Z.charCodeAt(O))!==40&&i!==64&&i!==123&&(r=rt());var o={kind:"OperationDefinition",operation:n,name:r,variableDefinitions:ME(),directives:ar(false),selectionSet:vo()};t&&(o.description=t),e.push(o);break;default:throw Ye("Document")}}}while(O<Z.length);return e}function fh(e,t){return Z=e.body?e.body:e,O=0,ae(),{kind:"Document",definitions:dh(),loc:{start:0,end:Z.length,startToken:void 0,endToken:void 0,source:{body:Z,name:"graphql.web",locationOffset:{line:1,column:1}}}}}var mh=0,Eu=new Set;function VE(){function e(t,n){var i=fh(t).definitions,r=new Set;for(var o of n||[])for(var a of o.definitions)a.kind===ui.FRAGMENT_DEFINITION&&!r.has(a)&&(i.push(a),r.add(a));var s;(s=i[0].kind===ui.FRAGMENT_DEFINITION)&&i[0].directives&&(i[0].directives=i[0].directives.filter((l=>l.name.value!=="_unmask")));var c;return {kind:ui.DOCUMENT,definitions:i,get loc(){if(!c&&s){var l=t+(function(p){try{mh++;var m="";for(var h of p)if(!Eu.has(h)){Eu.add(h);var{loc:y}=h;y&&(m+=y.source.body);}return m}finally{--mh==0&&Eu.clear();}})(n||[]);return {start:0,end:l.length,source:{body:l,name:"GraphQLTada",locationOffset:{line:1,column:1}}}}return c},set loc(l){c=l;}}}return e.scalar=function(n,i){return i},e.persisted=function(n,i){return {kind:ui.DOCUMENT,definitions:i?i.definitions:[],documentId:n}},e}var $e=VE();var u={};b(u,{$brand:()=>bo,$input:()=>Zl,$output:()=>Vl,NEVER:()=>wu,TimePrecision:()=>Hl,ZodAny:()=>zp,ZodArray:()=>Mp,ZodBase64:()=>Wa,ZodBase64URL:()=>Ga,ZodBigInt:()=>Bn,ZodBigIntFormat:()=>Ya,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Va,ZodCIDRv6:()=>Za,ZodCUID:()=>Na,ZodCUID2:()=>za,ZodCatch:()=>lf,ZodCodec:()=>is,ZodCustom:()=>Li,ZodCustomStringFormat:()=>jn,ZodDate:()=>Pi,ZodDefault:()=>nf,ZodDiscriminatedUnion:()=>Vp,ZodE164:()=>qa,ZodEmail:()=>Ta,ZodEmoji:()=>Fa,ZodEnum:()=>zn,ZodError:()=>v0,ZodExactOptional:()=>ef,ZodFile:()=>Xp,ZodFirstPartyTypeKind:()=>xf,ZodFunction:()=>bf,ZodGUID:()=>Ci,ZodIPv4:()=>Ma,ZodIPv6:()=>Ba,ZodISODate:()=>Oa,ZodISODateTime:()=>Ia,ZodISODuration:()=>Ca,ZodISOTime:()=>ka,ZodIntersection:()=>Zp,ZodIssueCode:()=>b0,ZodJWT:()=>Ha,ZodKSUID:()=>La,ZodLazy:()=>gf,ZodLiteral:()=>Kp,ZodMAC:()=>Cp,ZodMap:()=>Yp,ZodNaN:()=>pf,ZodNanoID:()=>Pa,ZodNever:()=>jp,ZodNonOptional:()=>rs,ZodNull:()=>Pp,ZodNullable:()=>rf,ZodNumber:()=>Ln,ZodNumberFormat:()=>zr,ZodObject:()=>zi,ZodOptional:()=>ts,ZodPipe:()=>ns,ZodPrefault:()=>af,ZodPromise:()=>yf,ZodReadonly:()=>ff,ZodRealError:()=>ot,ZodRecord:()=>ji,ZodSet:()=>Jp,ZodString:()=>Un,ZodStringFormat:()=>me,ZodSuccess:()=>cf,ZodSymbol:()=>Tp,ZodTemplateLiteral:()=>hf,ZodTransform:()=>Qp,ZodTuple:()=>Gp,ZodType:()=>ee,ZodULID:()=>Ua,ZodURL:()=>Fi,ZodUUID:()=>Zt,ZodUndefined:()=>Fp,ZodUnion:()=>Ui,ZodUnknown:()=>Up,ZodVoid:()=>Lp,ZodXID:()=>ja,ZodXor:()=>Bp,_ZodString:()=>Ra,_default:()=>of,_function:()=>Gv,any:()=>wv,array:()=>Ni,base64:()=>uv,base64url:()=>cv,bigint:()=>_v,boolean:()=>Rp,catch:()=>df,check:()=>qv,cidrv4:()=>av,cidrv6:()=>sv,clone:()=>Je,codec:()=>Vv,coerce:()=>Sf,config:()=>Se,core:()=>nr,cuid:()=>Xg,cuid2:()=>Qg,custom:()=>Hv,date:()=>Iv,decode:()=>Sp,decodeAsync:()=>wp,describe:()=>Yv,discriminatedUnion:()=>Rv,e164:()=>lv,email:()=>Bg,emoji:()=>Jg,encode:()=>xp,encodeAsync:()=>Ep,endsWith:()=>$n,enum:()=>Qa,exactOptional:()=>tf,file:()=>jv,flattenError:()=>vi,float32:()=>gv,float64:()=>vv,formatError:()=>yi,fromJSONSchema:()=>ry,function:()=>Gv,getErrorMap:()=>D0,globalRegistry:()=>Ze,gt:()=>Bt,gte:()=>Ke,guid:()=>Vg,hash:()=>hv,hex:()=>mv,hostname:()=>fv,httpUrl:()=>Yg,includes:()=>En,instanceof:()=>Kv,int:()=>Aa,int32:()=>yv,int64:()=>Dv,intersection:()=>Wp,ipv4:()=>nv,ipv6:()=>ov,iso:()=>Pn,json:()=>Qv,jwt:()=>dv,keyof:()=>Ov,ksuid:()=>rv,lazy:()=>vf,length:()=>Pr,literal:()=>Uv,locales:()=>$i,looseObject:()=>Cv,looseRecord:()=>Fv,lowercase:()=>xn,lt:()=>Mt,lte:()=>ct,mac:()=>iv,map:()=>Pv,maxLength:()=>Fr,maxSize:()=>fr,meta:()=>Jv,mime:()=>In,minLength:()=>rr,minSize:()=>Vt,multipleOf:()=>pr,nan:()=>Bv,nanoid:()=>Kg,nativeEnum:()=>zv,negative:()=>va,never:()=>Ja,nonnegative:()=>ba,nonoptional:()=>uf,nonpositive:()=>ya,normalize:()=>On,null:()=>Np,nullable:()=>Ri,nullish:()=>Lv,number:()=>Ap,object:()=>Ka,optional:()=>Ai,overwrite:()=>Tt,parse:()=>yp,parseAsync:()=>bp,partialRecord:()=>Tv,pipe:()=>Ti,positive:()=>ga,prefault:()=>sf,preprocess:()=>ey,prettifyError:()=>zu,promise:()=>Wv,property:()=>_a,readonly:()=>mf,record:()=>Hp,refine:()=>_f,regex:()=>Dn,regexes:()=>bt,registry:()=>Yo,safeDecode:()=>Ip,safeDecodeAsync:()=>kp,safeEncode:()=>$p,safeEncodeAsync:()=>Op,safeParse:()=>_p,safeParseAsync:()=>Dp,set:()=>Nv,setErrorMap:()=>_0,size:()=>Tr,slugify:()=>Rn,startsWith:()=>wn,strictObject:()=>kv,string:()=>Nn,stringFormat:()=>pv,stringbool:()=>Xv,success:()=>Mv,superRefine:()=>Df,symbol:()=>Sv,templateLiteral:()=>Zv,toJSONSchema:()=>Ea,toLowerCase:()=>Cn,toUpperCase:()=>An,transform:()=>es,treeifyError:()=>Nu,trim:()=>kn,tuple:()=>qp,uint32:()=>bv,uint64:()=>xv,ulid:()=>ev,undefined:()=>Ev,union:()=>Xa,unknown:()=>Nr,uppercase:()=>Sn,url:()=>Hg,util:()=>I,uuid:()=>Zg,uuidv4:()=>Wg,uuidv6:()=>Gg,uuidv7:()=>qg,void:()=>$v,xid:()=>tv,xor:()=>Av});var nr={};b(nr,{$ZodAny:()=>dl,$ZodArray:()=>gl,$ZodAsyncError:()=>Rt,$ZodBase64:()=>tl,$ZodBase64URL:()=>rl,$ZodBigInt:()=>Bo,$ZodBigIntFormat:()=>sl,$ZodBoolean:()=>xi,$ZodCIDRv4:()=>Xc,$ZodCIDRv6:()=>Qc,$ZodCUID:()=>Lc,$ZodCUID2:()=>Mc,$ZodCatch:()=>Fl,$ZodCheck:()=>he,$ZodCheckBigIntFormat:()=>gc,$ZodCheckEndsWith:()=>Oc,$ZodCheckGreaterThan:()=>Po,$ZodCheckIncludes:()=>$c,$ZodCheckLengthEquals:()=>xc,$ZodCheckLessThan:()=>Fo,$ZodCheckLowerCase:()=>Ec,$ZodCheckMaxLength:()=>_c,$ZodCheckMaxSize:()=>vc,$ZodCheckMimeType:()=>Cc,$ZodCheckMinLength:()=>Dc,$ZodCheckMinSize:()=>yc,$ZodCheckMultipleOf:()=>mc,$ZodCheckNumberFormat:()=>hc,$ZodCheckOverwrite:()=>Ac,$ZodCheckProperty:()=>kc,$ZodCheckRegex:()=>Sc,$ZodCheckSizeEquals:()=>bc,$ZodCheckStartsWith:()=>Ic,$ZodCheckStringFormat:()=>bn,$ZodCheckUpperCase:()=>wc,$ZodCodec:()=>Ei,$ZodCustom:()=>Bl,$ZodCustomStringFormat:()=>ol,$ZodDate:()=>hl,$ZodDefault:()=>Cl,$ZodDiscriminatedUnion:()=>bl,$ZodE164:()=>nl,$ZodEmail:()=>Nc,$ZodEmoji:()=>Uc,$ZodEncodeError:()=>sr,$ZodEnum:()=>El,$ZodError:()=>gi,$ZodExactOptional:()=>Ol,$ZodFile:()=>$l,$ZodFunction:()=>jl,$ZodGUID:()=>Fc,$ZodIPv4:()=>Yc,$ZodIPv6:()=>Jc,$ZodISODate:()=>Gc,$ZodISODateTime:()=>Wc,$ZodISODuration:()=>Hc,$ZodISOTime:()=>qc,$ZodIntersection:()=>_l,$ZodJWT:()=>il,$ZodKSUID:()=>Zc,$ZodLazy:()=>Ml,$ZodLiteral:()=>wl,$ZodMAC:()=>Kc,$ZodMap:()=>xl,$ZodNaN:()=>Pl,$ZodNanoID:()=>jc,$ZodNever:()=>fl,$ZodNonOptional:()=>Rl,$ZodNull:()=>ll,$ZodNullable:()=>kl,$ZodNumber:()=>Mo,$ZodNumberFormat:()=>al,$ZodObject:()=>Mh,$ZodObjectJIT:()=>vl,$ZodOptional:()=>Zo,$ZodPipe:()=>Nl,$ZodPrefault:()=>Al,$ZodPromise:()=>Ll,$ZodReadonly:()=>zl,$ZodRealError:()=>it,$ZodRecord:()=>Dl,$ZodRegistry:()=>Ho,$ZodSet:()=>Sl,$ZodString:()=>Rr,$ZodStringFormat:()=>fe,$ZodSuccess:()=>Tl,$ZodSymbol:()=>ul,$ZodTemplateLiteral:()=>Ul,$ZodTransform:()=>Il,$ZodTuple:()=>Vo,$ZodType:()=>X,$ZodULID:()=>Bc,$ZodURL:()=>zc,$ZodUUID:()=>Pc,$ZodUndefined:()=>cl,$ZodUnion:()=>Si,$ZodUnknown:()=>pl,$ZodVoid:()=>ml,$ZodXID:()=>Vc,$ZodXor:()=>yl,$brand:()=>bo,$constructor:()=>v,$input:()=>Zl,$output:()=>Vl,Doc:()=>Di,JSONSchema:()=>Lg,JSONSchemaGenerator:()=>wa,NEVER:()=>wu,TimePrecision:()=>Hl,_any:()=>hd,_array:()=>xd,_base64:()=>pa,_base64url:()=>fa,_bigint:()=>ud,_boolean:()=>ad,_catch:()=>c0,_check:()=>jg,_cidrv4:()=>la,_cidrv6:()=>da,_coercedBigint:()=>cd,_coercedBoolean:()=>sd,_coercedDate:()=>_d,_coercedNumber:()=>ed,_coercedString:()=>Gl,_cuid:()=>na,_cuid2:()=>ia,_custom:()=>Ed,_date:()=>bd,_decode:()=>wo,_decodeAsync:()=>Io,_default:()=>a0,_discriminatedUnion:()=>H$,_e164:()=>ma,_email:()=>Jo,_emoji:()=>ta,_encode:()=>Eo,_encodeAsync:()=>$o,_endsWith:()=>$n,_enum:()=>e0,_file:()=>Sd,_float32:()=>rd,_float64:()=>nd,_gt:()=>Bt,_gte:()=>Ke,_guid:()=>Ii,_includes:()=>En,_int:()=>td,_int32:()=>id,_int64:()=>ld,_intersection:()=>Y$,_ipv4:()=>ua,_ipv6:()=>ca,_isoDate:()=>Jl,_isoDateTime:()=>Yl,_isoDuration:()=>Xl,_isoTime:()=>Kl,_jwt:()=>ha,_ksuid:()=>sa,_lazy:()=>f0,_length:()=>Pr,_literal:()=>r0,_lowercase:()=>xn,_lt:()=>Mt,_lte:()=>ct,_mac:()=>ql,_map:()=>X$,_max:()=>ct,_maxLength:()=>Fr,_maxSize:()=>fr,_mime:()=>In,_min:()=>Ke,_minLength:()=>rr,_minSize:()=>Vt,_multipleOf:()=>pr,_nan:()=>Dd,_nanoid:()=>ra,_nativeEnum:()=>t0,_negative:()=>va,_never:()=>vd,_nonnegative:()=>ba,_nonoptional:()=>s0,_nonpositive:()=>ya,_normalize:()=>On,_null:()=>md,_nullable:()=>o0,_number:()=>Ql,_optional:()=>i0,_overwrite:()=>Tt,_parse:()=>hn,_parseAsync:()=>gn,_pipe:()=>l0,_positive:()=>ga,_promise:()=>m0,_property:()=>_a,_readonly:()=>d0,_record:()=>K$,_refine:()=>wd,_regex:()=>Dn,_safeDecode:()=>ko,_safeDecodeAsync:()=>Ao,_safeEncode:()=>Oo,_safeEncodeAsync:()=>Co,_safeParse:()=>vn,_safeParseAsync:()=>yn,_set:()=>Q$,_size:()=>Tr,_slugify:()=>Rn,_startsWith:()=>wn,_string:()=>Wl,_stringFormat:()=>Tn,_stringbool:()=>kd,_success:()=>u0,_superRefine:()=>$d,_symbol:()=>pd,_templateLiteral:()=>p0,_toLowerCase:()=>Cn,_toUpperCase:()=>An,_transform:()=>n0,_trim:()=>kn,_tuple:()=>J$,_uint32:()=>od,_uint64:()=>dd,_ulid:()=>oa,_undefined:()=>fd,_union:()=>G$,_unknown:()=>gd,_uppercase:()=>Sn,_url:()=>Oi,_uuid:()=>Ko,_uuidv4:()=>Xo,_uuidv6:()=>Qo,_uuidv7:()=>ea,_void:()=>yd,_xid:()=>aa,_xor:()=>q$,clone:()=>Je,config:()=>Se,createStandardJSONSchemaMethod:()=>Fn,createToJSONSchemaMethod:()=>Cd,decode:()=>vw,decodeAsync:()=>bw,describe:()=>Id,encode:()=>gw,encodeAsync:()=>yw,extractDefs:()=>hr,finalize:()=>gr,flattenError:()=>vi,formatError:()=>yi,globalConfig:()=>ci,globalRegistry:()=>Ze,initializeContext:()=>mr,isValidBase64:()=>el,isValidBase64URL:()=>zh,isValidJWT:()=>Uh,locales:()=>$i,meta:()=>Od,parse:()=>xo,parseAsync:()=>So,prettifyError:()=>zu,process:()=>le,regexes:()=>bt,registry:()=>Yo,safeDecode:()=>Dw,safeDecodeAsync:()=>Sw,safeEncode:()=>_w,safeEncodeAsync:()=>xw,safeParse:()=>Uu,safeParseAsync:()=>ju,toDotPath:()=>bh,toJSONSchema:()=>Ea,treeifyError:()=>Nu,util:()=>I,version:()=>Rc});var wu=Object.freeze({status:"aborted"});function v(e,t,n){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:false}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let l=a.prototype,d=Object.keys(l);for(let p=0;p<d.length;p++){let m=d[p];m in s||(s[m]=l[m].bind(s));}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let l=n?.Parent?new o:this;i(l,s),(c=l._zod).deferred??(c.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?true:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var bo=Symbol("zod_brand"),Rt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},sr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError";}},ci={};function Se(e){return e&&Object.assign(ci,e),ci}var I={};b(I,{BIGINT_FORMAT_RANGES:()=>Pu,Class:()=>Iu,NUMBER_FORMAT_RANGES:()=>Fu,aborted:()=>dr,allowsEval:()=>Cu,assert:()=>HE,assertEqual:()=>ZE,assertIs:()=>GE,assertNever:()=>qE,assertNotEqual:()=>WE,assignProp:()=>cr,base64ToUint8Array:()=>gh,base64urlToUint8Array:()=>dw,cached:()=>fn,captureStackTrace:()=>Do,cleanEnum:()=>lw,cleanRegex:()=>pi,clone:()=>Je,cloneDef:()=>JE,createTransparentProxy:()=>rw,defineLazy:()=>ne,esc:()=>_o,escapeRegex:()=>yt,extend:()=>ow,finalizeIssue:()=>nt,floatSafeRemainder:()=>Ou,getElementAtPath:()=>KE,getEnumValues:()=>di,getLengthableOrigin:()=>hi,getParsedType:()=>tw,getSizableOrigin:()=>mi,hexToUint8Array:()=>fw,isObject:()=>Cr,isPlainObject:()=>lr,issue:()=>mn,joinValues:()=>S,jsonStringifyReplacer:()=>pn,merge:()=>sw,mergeDefs:()=>tr,normalizeParams:()=>C,nullish:()=>ur,numKeys:()=>ew,objectClone:()=>YE,omit:()=>iw,optionalKeys:()=>Tu,parsedType:()=>$,partial:()=>uw,pick:()=>nw,prefixIssues:()=>ut,primitiveTypes:()=>Ru,promiseAllObject:()=>XE,propertyKeyTypes:()=>fi,randomString:()=>QE,required:()=>cw,safeExtend:()=>aw,shallowClone:()=>Au,slugify:()=>ku,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>vh,uint8ArrayToBase64url:()=>pw,uint8ArrayToHex:()=>mw,unwrapMessage:()=>li});function ZE(e){return e}function WE(e){return e}function GE(e){}function qE(e){throw new Error("Unexpected value in exhaustive check")}function HE(e){}function di(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function S(e,t="|"){return e.map(n=>w(n)).join(t)}function pn(e,t){return typeof t=="bigint"?t.toString():t}function fn(e){return {get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function ur(e){return e==null}function pi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ou(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(r=Number.parseInt(c[1]));}let o=n>r?n:r,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var hh=Symbol("evaluating");function ne(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==hh)return i===void 0&&(i=hh,i=n()),i},set(r){Object.defineProperty(e,t,{value:r});},configurable:true});}function YE(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function cr(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function tr(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i);}return Object.defineProperties({},t)}function JE(e){return tr(e._zod.def)}function KE(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function XE(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function QE(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function _o(e){return JSON.stringify(e)}function ku(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Do="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Cu=fn(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function lr(e){if(Cr(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!="function")return true;let n=t.prototype;return !(Cr(n)===false||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===false)}function Au(e){return lr(e)?{...e}:Array.isArray(e)?[...e]:e}function ew(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var tw=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}`)}},fi=new Set(["string","number","symbol"]),Ru=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e,t,n){let i=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(i._zod.parent=e),i}function C(e){let t=e;if(!t)return {};if(typeof t=="string")return {error:()=>t};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:()=>t.error}:t}function rw(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Tu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Fu={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]},Pu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function nw(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=tr(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s]);}return cr(this,"shape",a),a},checks:[]});return Je(e,o)}function iw(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=tr(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s];}return cr(this,"shape",a),a},checks:[]});return Je(e,o)}function ow(e,t){if(!lr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=tr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return cr(this,"shape",o),o}});return Je(e,r)}function aw(e,t){if(!lr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=tr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return cr(this,"shape",i),i}});return Je(e,n)}function sw(e,t){let n=tr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return cr(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Je(e,n)}function uw(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=tr(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:s[l]}):s[l]);}else for(let l in s)c[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return cr(this,"shape",c),c},checks:[]});return Je(t,a)}function cw(e,t,n){let i=tr(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}));}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return cr(this,"shape",o),o}});return Je(t,i)}function dr(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function ut(e,t){return t.map(n=>{var i;return (i=n).path??(i.path=[]),n.path.unshift(e),n})}function li(e){return typeof e=="string"?e:e?.message}function nt(e,t,n){let i={...e,path:e.path??[]};if(!e.message){let r=li(e.inst?._zod.def?.error?.(e))??li(t?.error?.(e))??li(n.customError?.(e))??li(n.localeError?.(e))??"Invalid input";i.message=r;}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function mi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function hi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function $(e){let t=typeof e;switch(t){case "number":return Number.isNaN(e)?"nan":"number";case "object":{if(e===null)return "null";if(Array.isArray(e))return "array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function mn(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function lw(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function gh(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function vh(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function dw(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return gh(t+n)}function pw(e){return vh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function fw(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 i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function mw(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Iu=class{constructor(...t){}};var yh=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,pn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},gi=v("$ZodError",yh),it=v("$ZodError",yh,{Parent:Error});function vi(e,t=n=>n.message){let n={},i=[];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))):i.push(t(r));return {formErrors:i,fieldErrors:n}}function yi(e,t=n=>n.message){let n={_errors:[]},i=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else {let a=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],s++;}}};return i(e),n}function Nu(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,s;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else {let l=[...o,...c.path];if(l.length===0){n.errors.push(t(c));continue}let d=n,p=0;for(;p<l.length;){let m=l[p],h=p===l.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(s=d.items)[m]??(s[m]={errors:[]}),d=d.items[m]),h&&d.errors.push(t(c)),p++;}}};return i(e),n}function bh(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function zu(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${bh(i.path)}`);return t.join(`
6
+ `)}var hn=e=>(t,n,i,r)=>{let o=i?Object.assign(i,{async:false}):{async:false},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Rt;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>nt(c,o,Se())));throw Do(s,r?.callee),s}return a.value},xo=hn(it),gn=e=>async(t,n,i,r)=>{let o=i?Object.assign(i,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(r?.Err??e)(a.issues.map(c=>nt(c,o,Se())));throw Do(s,r?.callee),s}return a.value},So=gn(it),vn=e=>(t,n,i)=>{let r=i?{...i,async:false}:{async:false},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Rt;return o.issues.length?{success:false,error:new(e??gi)(o.issues.map(a=>nt(a,r,Se())))}:{success:true,data:o.value}},Uu=vn(it),yn=e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(a=>nt(a,r,Se())))}:{success:true,data:o.value}},ju=yn(it),Eo=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return hn(e)(t,n,r)},gw=Eo(it),wo=e=>(t,n,i)=>hn(e)(t,n,i),vw=wo(it),$o=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return gn(e)(t,n,r)},yw=$o(it),Io=e=>async(t,n,i)=>gn(e)(t,n,i),bw=Io(it),Oo=e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vn(e)(t,n,r)},_w=Oo(it),ko=e=>(t,n,i)=>vn(e)(t,n,i),Dw=ko(it),Co=e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return yn(e)(t,n,r)},xw=Co(it),Ao=e=>async(t,n,i)=>yn(e)(t,n,i),Sw=Ao(it);var bt={};b(bt,{base64:()=>tc,base64url:()=>Ro,bigint:()=>sc,boolean:()=>cc,browserEmail:()=>Aw,cidrv4:()=>Qu,cidrv6:()=>ec,cuid:()=>Lu,cuid2:()=>Mu,date:()=>nc,datetime:()=>oc,domain:()=>Fw,duration:()=>Gu,e164:()=>rc,email:()=>Hu,emoji:()=>Yu,extendedDuration:()=>Ew,guid:()=>qu,hex:()=>Pw,hostname:()=>Tw,html5Email:()=>Ow,idnEmail:()=>Cw,integer:()=>uc,ipv4:()=>Ju,ipv6:()=>Ku,ksuid:()=>Zu,lowercase:()=>pc,mac:()=>Xu,md5_base64:()=>zw,md5_base64url:()=>Uw,md5_hex:()=>Nw,nanoid:()=>Wu,null:()=>lc,number:()=>To,rfc5322Email:()=>kw,sha1_base64:()=>Lw,sha1_base64url:()=>Mw,sha1_hex:()=>jw,sha256_base64:()=>Vw,sha256_base64url:()=>Zw,sha256_hex:()=>Bw,sha384_base64:()=>Gw,sha384_base64url:()=>qw,sha384_hex:()=>Ww,sha512_base64:()=>Yw,sha512_base64url:()=>Jw,sha512_hex:()=>Hw,string:()=>ac,time:()=>ic,ulid:()=>Bu,undefined:()=>dc,unicodeEmail:()=>_h,uppercase:()=>fc,uuid:()=>Ar,uuid4:()=>ww,uuid6:()=>$w,uuid7:()=>Iw,xid:()=>Vu});var Lu=/^[cC][^\s-]{8,}$/,Mu=/^[0-9a-z]+$/,Bu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vu=/^[0-9a-vA-V]{20}$/,Zu=/^[A-Za-z0-9]{27}$/,Wu=/^[a-zA-Z0-9_-]{21}$/,Gu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ew=/^[-+]?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)?)??$/,qu=/^([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})$/,Ar=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)$/,ww=Ar(4),$w=Ar(6),Iw=Ar(7),Hu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ow=/^[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])?)*$/,kw=/^(([^<>()\[\]\\.,;:\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,}))$/,_h=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Cw=_h,Aw=/^[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])?)*$/,Rw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yu(){return new RegExp(Rw,"u")}var Ju=/^(?:(?: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])$/,Ku=/^(([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}|:))$/,Xu=e=>{let t=yt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Qu=/^((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])$/,ec=/^(([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])$/,tc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ro=/^[A-Za-z0-9_-]*$/,Tw=/^(?=.{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])?)*\.?$/,Fw=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,rc=/^\+[1-9]\d{6,14}$/,Dh="(?:(?:\\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])))",nc=new RegExp(`^${Dh}$`);function xh(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+)?)?`}function ic(e){return new RegExp(`^${xh(e)}$`)}function oc(e){let t=xh({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Dh}T(?:${i})$`)}var ac=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sc=/^-?\d+n?$/,uc=/^-?\d+$/,To=/^-?\d+(?:\.\d+)?$/,cc=/^(?:true|false)$/i,lc=/^null$/i;var dc=/^undefined$/i;var pc=/^[^A-Z]*$/,fc=/^[^a-z]*$/,Pw=/^[0-9a-fA-F]*$/;function bi(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function _i(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Nw=/^[0-9a-fA-F]{32}$/,zw=bi(22,"=="),Uw=_i(22),jw=/^[0-9a-fA-F]{40}$/,Lw=bi(27,"="),Mw=_i(27),Bw=/^[0-9a-fA-F]{64}$/,Vw=bi(43,"="),Zw=_i(43),Ww=/^[0-9a-fA-F]{96}$/,Gw=bi(64,""),qw=_i(64),Hw=/^[0-9a-fA-F]{128}$/,Yw=bi(86,"=="),Jw=_i(86);var he=v("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),Eh={number:"number",bigint:"bigint",object:"date"},Fo=v("$ZodCheckLessThan",(e,t)=>{he.init(e,t);let n=Eh[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),Po=v("$ZodCheckGreaterThan",(e,t)=>{he.init(e,t);let n=Eh[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value);}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),mc=v("$ZodCheckMultipleOf",(e,t)=>{he.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.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):Ou(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});};}),hc=v("$ZodCheckNumberFormat",(e,t)=>{he.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=Fu[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=uc);}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:true,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:true,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:true,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:true,inst:e,continue:!t.abort});};}),gc=v("$ZodCheckBigIntFormat",(e,t)=>{he.init(e,t);let[n,i]=Pu[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i;}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:true,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:true,inst:e,continue:!t.abort});};}),vc=v("$ZodCheckMaxSize",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:mi(r),code:"too_big",maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),yc=v("$ZodCheckMinSize",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:mi(r),code:"too_small",minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),bc=v("$ZodCheckSizeEquals",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size;}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:mi(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),_c=v("$ZodCheckMaxLength",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum);}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=hi(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Dc=v("$ZodCheckMinLength",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum);}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=hi(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),xc=v("$ZodCheckLengthEquals",(e,t)=>{var n;he.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return !ur(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length;}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=hi(r),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:true,exact:true,input:i.value,inst:e,continue:!t.abort});};}),bn=v("$ZodCheckStringFormat",(e,t)=>{var n,i;he.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.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});}):(i=e._zod).check??(i.check=()=>{});}),Sc=v("$ZodCheckRegex",(e,t)=>{bn.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});};}),Ec=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=pc),bn.init(e,t);}),wc=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=fc),bn.init(e,t);}),$c=v("$ZodCheckIncludes",(e,t)=>{he.init(e,t);let n=yt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i);}),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});};}),Ic=v("$ZodCheckStartsWith",(e,t)=>{he.init(e,t);let n=new RegExp(`^${yt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n);}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort});};}),Oc=v("$ZodCheckEndsWith",(e,t)=>{he.init(e,t);let n=new RegExp(`.*${yt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n);}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort});};});function Sh(e,t,n){e.issues.length&&t.issues.push(...ut(n,e.issues));}var kc=v("$ZodCheckProperty",(e,t)=>{he.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Sh(r,n,t.property));Sh(i,n,t.property);};}),Cc=v("$ZodCheckMimeType",(e,t)=>{he.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime;}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort});};}),Ac=v("$ZodCheckOverwrite",(e,t)=>{he.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value);};});var Di=class{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 i=t.split(`
7
+ `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a);}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
8
+ `))}};var Rc={major:4,minor:3,patch:6};var X=v("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rc;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let r=(a,s,c)=>{let l=dr(a),d;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,h=p._zod.check(a);if(h instanceof Promise&&c?.async===false)throw new Rt;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==m&&(l||(l=dr(a,m)));});else {if(a.issues.length===m)continue;l||(l=dr(a,m));}}return d?d.then(()=>a):a},o=(a,s,c)=>{if(dr(a))return a.aborted=true,a;let l=r(s,i,c);if(l instanceof Promise){if(c.async===false)throw new Rt;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:true});return l instanceof Promise?l.then(d=>o(d,a,s)):o(l,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===false)throw new Rt;return c.then(l=>r(l,i,s))}return r(c,i,s)};}ne(e,"~standard",()=>({validate:r=>{try{let o=Uu(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return ju(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}));}),Rr=v("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ac(e._zod.bag),e._zod.parse=(n,i)=>{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};}),fe=v("$ZodStringFormat",(e,t)=>{bn.init(e,t),Rr.init(e,t);}),Fc=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qu),fe.init(e,t);}),Pc=v("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ar(i));}else t.pattern??(t.pattern=Ar());fe.init(e,t);}),Nc=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Hu),fe.init(e,t);}),zc=v("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);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=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});}};}),Uc=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Yu()),fe.init(e,t);}),jc=v("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Wu),fe.init(e,t);}),Lc=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Lu),fe.init(e,t);}),Mc=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Mu),fe.init(e,t);}),Bc=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Bu),fe.init(e,t);}),Vc=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Vu),fe.init(e,t);}),Zc=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Zu),fe.init(e,t);}),Wc=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=oc(t)),fe.init(e,t);}),Gc=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=nc),fe.init(e,t);}),qc=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ic(t)),fe.init(e,t);}),Hc=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Gu),fe.init(e,t);}),Yc=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ju),fe.init(e,t),e._zod.bag.format="ipv4";}),Jc=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ku),fe.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});}};}),Kc=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Xu(t.delimiter)),fe.init(e,t),e._zod.bag.format="mac";}),Xc=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Qu),fe.init(e,t);}),Qc=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ec),fe.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)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 el(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var tl=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tc),fe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{el(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort});};});function zh(e){if(!Ro.test(e))return false;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return el(n)}var rl=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ro),fe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{zh(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort});};}),nl=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=rc),fe.init(e,t);});function Uh(e,t=null){try{let n=e.split(".");if(n.length!==3)return !1;let[i]=n;if(!i)return !1;let r=JSON.parse(atob(i));return !("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return false}}var il=v("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=n=>{Uh(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort});};}),ol=v("$ZodCustomStringFormat",(e,t)=>{fe.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});};}),Mo=v("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??To,e._zod.parse=(n,i)=>{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 o=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,...o?{received:o}:{}}),n};}),al=v("$ZodNumberFormat",(e,t)=>{hc.init(e,t),Mo.init(e,t);}),xi=v("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=cc,e._zod.parse=(n,i)=>{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};}),Bo=v("$ZodBigInt",(e,t)=>{X.init(e,t),e._zod.pattern=sc,e._zod.parse=(n,i)=>{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};}),sl=v("$ZodBigIntFormat",(e,t)=>{gc.init(e,t),Bo.init(e,t);}),ul=v("$ZodSymbol",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n};}),cl=v("$ZodUndefined",(e,t)=>{X.init(e,t),e._zod.pattern=dc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n};}),ll=v("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=lc,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n};}),dl=v("$ZodAny",(e,t)=>{X.init(e,t),e._zod.parse=n=>n;}),pl=v("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=n=>n;}),fl=v("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n);}),ml=v("$ZodVoid",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n};}),hl=v("$ZodDate",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value);}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n};});function $h(e,t,n){e.issues.length&&t.issues.push(...ut(n,e.issues)),t.value[n]=e.value;}var gl=v("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{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 o=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(l=>$h(l,n,a))):$h(c,n,a);}return o.length?Promise.all(o).then(()=>n):n};});function Lo(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...ut(n,e.issues));}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value;}function jh(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=Tu(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Lh(e,t,n,i,r,o){let a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optout==="optional";for(let p in t){if(s.has(p))continue;if(l==="never"){a.push(p);continue}let m=c.run({value:t[p],issues:[]},i);m instanceof Promise?e.push(m.then(h=>Lo(h,n,p,t,d))):Lo(m,n,p,t,d);}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var Mh=v("$ZodObject",(e,t)=>{if(X.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}});}let i=fn(()=>jh(t));ne(e._zod,"propValues",()=>{let s=t.shape,c={};for(let l in s){let d=s[l]._zod;if(d.values){c[l]??(c[l]=new Set);for(let p of d.values)c[l].add(p);}}return c});let r=Cr,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let l=s.value;if(!r(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};let d=[],p=a.shape;for(let m of a.keys){let h=p[m],y=h._zod.optout==="optional",x=h._zod.run({value:l[m],issues:[]},c);x instanceof Promise?d.push(x.then(b=>Lo(b,s,m,l,y))):Lo(x,s,m,l,y);}return o?Lh(d,l,s,c,i.value,e):d.length?Promise.all(d).then(()=>s):s};}),vl=v("$ZodObjectJIT",(e,t)=>{Mh.init(e,t);let n=e._zod.parse,i=fn(()=>jh(t)),r=m=>{let h=new Di(["shape","payload","ctx"]),y=i.value,x=B=>{let R=_o(B);return `shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),j=0;for(let B of y.keys)b[B]=`key_${j++}`;h.write("const newResult = {};");for(let B of y.keys){let R=b[B],k=_o(B),re=m[B]?._zod?.optout==="optional";h.write(`const ${R} = ${x(B)};`),re?h.write(`
9
+ if (${R}.issues.length) {
10
+ if (${k} in input) {
11
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
12
12
  ...iss,
13
- path: iss.path ? [${O}, ...iss.path] : [${O}]
13
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
14
14
  })));
15
15
  }
16
16
  }
17
17
 
18
- if (${A}.value === undefined) {
19
- if (${O} in input) {
20
- newResult[${O}] = undefined;
18
+ if (${R}.value === undefined) {
19
+ if (${k} in input) {
20
+ newResult[${k}] = undefined;
21
21
  }
22
22
  } else {
23
- newResult[${O}] = ${A}.value;
23
+ newResult[${k}] = ${R}.value;
24
24
  }
25
25
 
26
26
  `):h.write(`
27
- if (${A}.issues.length) {
28
- payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
27
+ if (${R}.issues.length) {
28
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
29
29
  ...iss,
30
- path: iss.path ? [${O}, ...iss.path] : [${O}]
30
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
31
31
  })));
32
32
  }
33
33
 
34
- if (${A}.value === undefined) {
35
- if (${O} in input) {
36
- newResult[${O}] = undefined;
34
+ if (${R}.value === undefined) {
35
+ if (${k} in input) {
36
+ newResult[${k}] = undefined;
37
37
  }
38
38
  } else {
39
- newResult[${O}] = ${A}.value;
39
+ newResult[${k}] = ${R}.value;
40
40
  }
41
41
 
42
- `);}h.write("payload.value = newResult;"),h.write("return payload;");let H=h.compile();return (B,A)=>H(m,B,A)},o,a=Xn,u=!ji.jitless,l=u&&vc.value,d=t.catchall,p;e._zod.parse=(m,h)=>{p??(p=i.value);let v=m.value;return a(v)?u&&l&&h?.async===false&&h.jitless!==true?(o||(o=n(t.shape)),m=o(m,h),d?Bg([],v,m,h,p,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m)};});function Og(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!In(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>ut(a,i,$e())))}),t)}var Ki=y("$ZodUnion",(e,t)=>{X.init(e,t),re(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),re(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),re(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),re(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Ui(o.source)).join("|")})$`)}});let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let a=false,u=[];for(let c of t.options){let l=c._zod.run({value:n.value,issues:[]},o);if(l instanceof Promise)u.push(l),a=true;else {if(l.issues.length===0)return l;u.push(l);}}return a?Promise.all(u).then(c=>Og(c,n,e,o)):Og(u,n,e,o)};});function Cg(e,t,r,i){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>ut(a,i,$e())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:false}),t)}var ad=y("$ZodXor",(e,t)=>{Ki.init(e,t),t.inclusive=false;let r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return i(n,o);let a=false,u=[];for(let c of t.options){let l=c._zod.run({value:n.value,issues:[]},o);l instanceof Promise?(u.push(l),a=true):u.push(l);}return a?Promise.all(u).then(c=>Cg(c,n,e,o)):Cg(u,n,e,o)};}),sd=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=false,Ki.init(e,t);let r=e._zod.parse;re(e._zod,"propValues",()=>{let n={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[u,c]of Object.entries(a)){n[u]||(n[u]=new Set);for(let l of c)n[u].add(l);}}return n});let i=Ur(()=>{let n=t.options,o=new Map;for(let a of n){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(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a);}}return o});e._zod.parse=(n,o)=>{let a=n.value;if(!Xn(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let u=i.value.get(a?.[t.discriminator]);return u?u._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)};}),ud=y("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,l])=>Rg(r,c,l)):Rg(r,o,a)};});function xl(e,t){if(e===t)return {valid:true,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(kn(e)&&kn(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of i){let a=xl(e[o],t[o]);if(!a.valid)return {valid:false,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data;}return {valid:true,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=xl(n,o);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data);}return {valid:true,data:r}}return {valid:false,mergeErrorPath:[]}}function Rg(e,t,r){let i=new Map,n;for(let u of t.issues)if(u.code==="unrecognized_keys"){n??(n=u);for(let c of u.keys)i.has(c)||i.set(c,{}),i.get(c).l=true;}else e.issues.push(u);for(let u of r.issues)if(u.code==="unrecognized_keys")for(let c of u.keys)i.has(c)||i.set(c,{}),i.get(c).r=true;else e.issues.push(u);let o=[...i].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(o.length&&n&&e.issues.push({...n,keys:o}),In(e))return e;let a=xl(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var xa=y("$ZodTuple",(e,t)=>{X.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],u=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),c=u===-1?0:r.length-u;if(!t.rest){let d=o.length>r.length,p=o.length<c-1;if(d||p)return i.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:true}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(let d of r){if(l++,l>=o.length&&l>=c)continue;let p=d._zod.run({value:o[l],issues:[]},n);p instanceof Promise?a.push(p.then(m=>ma(m,i,l))):ma(p,i,l);}if(t.rest){let d=o.slice(r.length);for(let p of d){l++;let m=t.rest._zod.run({value:p,issues:[]},n);m instanceof Promise?a.push(m.then(h=>ma(h,i,l))):ma(m,i,l);}}return a.length?Promise.all(a).then(()=>i):i};});function ma(e,t,r){e.issues.length&&t.issues.push(...ft(r,e.issues)),t.value[r]=e.value;}var cd=y("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!kn(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],a=t.keyType._zod.values;if(a){r.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 d=t.valueType._zod.run({value:n[l],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&r.issues.push(...ft(l,p.issues)),r.value[l]=p.value;})):(d.issues.length&&r.issues.push(...ft(l,d.issues)),r.value[l]=d.value);}let c;for(let l in n)u.has(l)||(c=c??[],c.push(l));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c});}else {r.value={};for(let u of Reflect.ownKeys(n)){if(u==="__proto__")continue;let c=t.keyType._zod.run({value:u,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&da.test(u)&&c.issues.length){let p=t.keyType._zod.run({value:Number(u),issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p);}if(c.issues.length){t.mode==="loose"?r.value[u]=n[u]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>ut(p,i,$e())),input:u,path:[u],inst:e});continue}let d=t.valueType._zod.run({value:n[u],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&r.issues.push(...ft(u,p.issues)),r.value[c.value]=p.value;})):(d.issues.length&&r.issues.push(...ft(u,d.issues)),r.value[c.value]=d.value);}}return o.length?Promise.all(o).then(()=>r):r};}),ld=y("$ZodMap",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[a,u]of n){let c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:u,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([d,p])=>{Ag(d,p,r,a,n,e,i);})):Ag(c,l,r,a,n,e,i);}return o.length?Promise.all(o).then(()=>r):r};});function Ag(e,t,r,i,n,o,a){e.issues.length&&(Li.has(typeof i)?r.issues.push(...ft(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(u=>ut(u,a,$e()))})),t.issues.length&&(Li.has(typeof i)?r.issues.push(...ft(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(u=>ut(u,a,$e()))})),r.value.set(e.value,t.value);}var dd=y("$ZodSet",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let u=t.valueType._zod.run({value:a,issues:[]},i);u instanceof Promise?o.push(u.then(c=>Tg(c,r))):Tg(u,r);}return o.length?Promise.all(o).then(()=>r):r};});function Tg(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value);}var pd=y("$ZodEnum",(e,t)=>{X.init(e,t);let r=Ni(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>Li.has(typeof n)).map(n=>typeof n=="string"?wt(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n};}),fd=y("$ZodLiteral",(e,t)=>{if(X.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(i=>typeof i=="string"?wt(i):i?wt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i};}),md=y("$ZodFile",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r};}),hd=y("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new En(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return (n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new Nt;return r.value=n,r};});function Pg(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Da=y("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),re(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ui(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Pg(o,r.value)):Pg(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)};}),gd=y("$ZodExactOptional",(e,t)=>{Da.init(e,t),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i);}),yd=y("$ZodNullable",(e,t)=>{X.init(e,t),re(e._zod,"optin",()=>t.innerType._zod.optin),re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ui(r.source)}|null)$`):void 0}),re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i);}),vd=y("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Fg(o,t)):Fg(n,t)};});function Fg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var bd=y("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i));}),Sd=y("$ZodNonOptional",(e,t)=>{X.init(e,t),re(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>jg(o,e)):jg(n,e)};});function jg(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var xd=y("$ZodSuccess",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new En("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)};}),Dd=y("$ZodCatch",(e,t)=>{X.init(e,t),re(e._zod,"optin",()=>t.innerType._zod.optin),re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>ut(a,i,$e()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>ut(o,i,$e()))},input:r.value}),r.issues=[]),r)};}),_d=y("$ZodNaN",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r);}),Ed=y("$ZodPipe",(e,t)=>{X.init(e,t),re(e._zod,"values",()=>t.in._zod.values),re(e._zod,"optin",()=>t.in._zod.optin),re(e._zod,"optout",()=>t.out._zod.optout),re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>ha(a,t.in,i)):ha(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>ha(o,t.out,i)):ha(n,t.out,i)};});function ha(e,t,r){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},r)}var Yi=y("$ZodCodec",(e,t)=>{X.init(e,t),re(e._zod,"values",()=>t.in._zod.values),re(e._zod,"optin",()=>t.in._zod.optin),re(e._zod,"optout",()=>t.out._zod.optout),re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(a=>ga(a,t,i)):ga(o,t,i)}else {let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>ga(a,t,i)):ga(o,t,i)}};});function ga(e,t,r){if(e.issues.length)return e.aborted=true,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>ya(e,o,t.out,r)):ya(e,n,t.out,r)}else {let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>ya(e,o,t.in,r)):ya(e,n,t.in,r)}}function ya(e,t,r,i){return e.issues.length?(e.aborted=true,e):r._zod.run({value:t,issues:e.issues},i)}var wd=y("$ZodReadonly",(e,t)=>{X.init(e,t),re(e._zod,"propValues",()=>t.innerType._zod.propValues),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"optin",()=>t.innerType?._zod?.optin),re(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(zg):zg(n)};});function zg(e){return e.value=Object.freeze(e.value),e}var $d=y("$ZodTemplateLiteral",(e,t)=>{X.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a));}else if(i===null||Sc.has(typeof i))r.push(wt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i);}),kd=y("$ZodFunction",(e,t)=>(X.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?ea(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?ea(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await ta(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await ta(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new xa({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Id=y("$ZodPromise",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i));}),Od=y("$ZodLazy",(e,t)=>{X.init(e,t),re(e._zod,"innerType",()=>t.getter()),re(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),re(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),re(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),re(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i);}),Cd=y("$ZodCustom",(e,t)=>{ye.init(e,t),X.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>Ng(o,r,i,e));Ng(n,r,i,e);};});function Ng(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(Lr(n));}}var Qi={};b(Qi,{ar:()=>Zg,az:()=>Wg,be:()=>qg,bg:()=>Hg,ca:()=>Jg,cs:()=>Kg,da:()=>Yg,de:()=>Xg,en:()=>_a,eo:()=>Qg,es:()=>ey,fa:()=>ty,fi:()=>ny,fr:()=>ry,frCA:()=>iy,he:()=>oy,hu:()=>ay,hy:()=>uy,id:()=>cy,is:()=>ly,it:()=>dy,ja:()=>py,ka:()=>fy,kh:()=>my,km:()=>Ea,ko:()=>hy,lt:()=>yy,mk:()=>vy,ms:()=>by,nl:()=>Sy,no:()=>xy,ota:()=>Dy,pl:()=>Ey,ps:()=>_y,pt:()=>wy,ru:()=>ky,sl:()=>Iy,sv:()=>Oy,ta:()=>Cy,th:()=>Ry,tr:()=>Ay,ua:()=>Ty,uk:()=>wa,ur:()=>Py,uz:()=>Fy,vi:()=>jy,yo:()=>Uy,zhCN:()=>zy,zhTW:()=>Ny});var kk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case "invalid_value":return n.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 ${w(n.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: ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${n.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${_(n.keys,"\u060C ")}`;case "invalid_key":return `\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Zg(){return {localeError:kk()}}var Ik=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${u}`}case "invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${w(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case "not_multiple_of":return `Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case "unrecognized_keys":return `Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case "invalid_key":return `${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case "invalid_union":return "Yanl\u0131\u015F d\u0259y\u0259r";case "invalid_element":return `${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return "Yanl\u0131\u015F d\u0259y\u0259r"}}};function Wg(){return {localeError:Ik()}}function Gg(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var Ok=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case "invalid_value":return n.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 ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let u=Number(n.maximum),c=Gg(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let u=Number(n.minimum),c=Gg(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(n.keys,", ")}`;case "invalid_key":return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return "\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function qg(){return {localeError:Ok()}}var Ck=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case "invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${_(n.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Hg(){return {localeError:Ck()}}var Rk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${u}`}case "invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${w(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(n.values," o ")}`;case "too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case "not_multiple_of":return `N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case "unrecognized_keys":return `Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Clau inv\xE0lida a ${n.origin}`;case "invalid_union":return "Entrada inv\xE0lida";case "invalid_element":return `Element inv\xE0lid a ${n.origin}`;default:return "Entrada inv\xE0lida"}}};function Jg(){return {localeError:Rk()}}var Ak=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${u}`}case "invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${w(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case "not_multiple_of":return `Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case "unrecognized_keys":return `Nezn\xE1m\xE9 kl\xED\u010De: ${_(n.keys,", ")}`;case "invalid_key":return `Neplatn\xFD kl\xED\u010D v ${n.origin}`;case "invalid_union":return "Neplatn\xFD vstup";case "invalid_element":return `Neplatn\xE1 hodnota v ${n.origin}`;default:return "Neplatn\xFD vstup"}}};function Kg(){return {localeError:Ak()}}var Tk=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${u}`:`Ugyldigt input: forventede ${o}, fik ${u}`}case "invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${w(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),u=i[n.origin]??n.origin;return a?`For stor: forventede ${u??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${o} ${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin),u=i[n.origin]??n.origin;return a?`For lille: forventede ${u} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${u} havde ${o} ${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case "not_multiple_of":return `Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case "unrecognized_keys":return `${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${_(n.keys,", ")}`;case "invalid_key":return `Ugyldig n\xF8gle i ${n.origin}`;case "invalid_union":return "Ugyldigt input: matcher ingen af de tilladte typer";case "invalid_element":return `Ugyldig v\xE6rdi i ${n.origin}`;default:return "Ugyldigt input"}}};function Yg(){return {localeError:Tk()}}var Pk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${u}`}case "invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${w(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case "not_multiple_of":return `Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case "unrecognized_keys":return `${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(n.keys,", ")}`;case "invalid_key":return `Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case "invalid_union":return "Ung\xFCltige Eingabe";case "invalid_element":return `Ung\xFCltiger Wert in ${n.origin}`;default:return "Ung\xFCltige Eingabe"}}};function Xg(){return {localeError:Pk()}}var Fk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return `Invalid input: expected ${o}, received ${u}`}case "invalid_value":return n.values.length===1?`Invalid input: expected ${w(n.values[0])}`:`Invalid option: expected one of ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case "not_multiple_of":return `Invalid number: must be a multiple of ${n.divisor}`;case "unrecognized_keys":return `Unrecognized key${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Invalid key in ${n.origin}`;case "invalid_union":return "Invalid input";case "invalid_element":return `Invalid value in ${n.origin}`;default:return "Invalid input"}}};function _a(){return {localeError:Fk()}}var jk=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${u}`}case "invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${w(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case "not_multiple_of":return `Nevalida nombro: devas esti oblo de ${n.divisor}`;case "unrecognized_keys":return `Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Nevalida \u015Dlosilo en ${n.origin}`;case "invalid_union":return "Nevalida enigo";case "invalid_element":return `Nevalida valoro en ${n.origin}`;default:return "Nevalida enigo"}}};function Qg(){return {localeError:jk()}}var zk=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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"},i={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 n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${u}`}case "invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${w(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),u=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin),u=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case "not_multiple_of":return `N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case "unrecognized_keys":return `Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return "Entrada inv\xE1lida"}}};function ey(){return {localeError:zk()}}var Nk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case "invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${w(n.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 ${_(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case "unrecognized_keys":return `\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(n.keys,", ")}`;case "invalid_key":return `\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return "\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function ty(){return {localeError:Nk()}}var Uk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${u}`}case "invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${w(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case "not_multiple_of":return `Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case "unrecognized_keys":return `${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(n.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"}}};function ny(){return {localeError:Uk()}}var Lk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${u} re\xE7u`}case "invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${w(n.values[0])} attendu`:`Option invalide : une valeur parmi ${_(n.values,"|")} attendue`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case "not_multiple_of":return `Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case "unrecognized_keys":return `Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${_(n.keys,", ")}`;case "invalid_key":return `Cl\xE9 invalide dans ${n.origin}`;case "invalid_union":return "Entr\xE9e invalide";case "invalid_element":return `Valeur invalide dans ${n.origin}`;default:return "Entr\xE9e invalide"}}};function ry(){return {localeError:Lk()}}var Mk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${u}`}case "invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${w(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case "not_multiple_of":return `Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case "unrecognized_keys":return `Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${_(n.keys,", ")}`;case "invalid_key":return `Cl\xE9 invalide dans ${n.origin}`;case "invalid_union":return "Entr\xE9e invalide";case "invalid_element":return `Valeur invalide dans ${n.origin}`;default:return "Entr\xE9e invalide"}}};function iy(){return {localeError:Mk()}}var Bk=()=>{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"}},r=l=>l?e[l]:void 0,i=l=>{let d=r(l);return d?d.label:l??e.unknown.label},n=l=>`\u05D4${i(l)}`,o=l=>(r(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?t[l]??null:null,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 d=l.expected,p=c[d??""]??i(d),m=$(l.input),h=c[m]??e[m]?.label??m;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 ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}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 ${w(l.values[0])}`;let d=l.values.map(h=>w(h));if(l.values.length===2)return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.length-1];return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case "too_big":{let d=a(l.origin),p=n(l.origin??"value");if(l.origin==="string")return `${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",D=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${D}`.trim()}let m=l.inclusive?"<=":"<",h=o(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()}`}case "too_small":{let d=a(l.origin),p=n(l.origin??"value");if(l.origin==="string")return `${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let v=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(l.origin==="array"||l.origin==="set"){let v=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let b=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let D=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${D}`.trim()}let m=l.inclusive?">=":">",h=o(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()}`}case "invalid_format":{let d=l;if(d.format==="starts_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let p=u[d.format],m=p?.label??d.format,v=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return `${m} \u05DC\u05D0 ${v}`}case "not_multiple_of":return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case "unrecognized_keys":return `\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${_(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${n(l.origin??"array")}`;default:return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function oy(){return {localeError:Bk()}}var Vk=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${u}`}case "invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${w(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case "not_multiple_of":return `\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case "unrecognized_keys":return `Ismeretlen kulcs${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `\xC9rv\xE9nytelen kulcs ${n.origin}`;case "invalid_union":return "\xC9rv\xE9nytelen bemenet";case "invalid_element":return `\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return "\xC9rv\xE9nytelen bemenet"}}};function ay(){return {localeError:Vk()}}function sy(e,t,r){return Math.abs(e)===1?t:r}function Gr(e){if(!e)return "";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var Zk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case "invalid_value":return n.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 ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let u=Number(n.maximum),c=sy(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 ${Gr(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.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 ${Gr(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let u=Number(n.minimum),c=sy(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 ${Gr(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.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 ${Gr(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.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 ${n.divisor}-\u056B`;case "unrecognized_keys":return `\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${_(n.keys,", ")}`;case "invalid_key":return `\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Gr(n.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 ${Gr(n.origin)}-\u0578\u0582\u0574`;default:return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function uy(){return {localeError:Zk()}}var Wk=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${o}, diterima ${u}`}case "invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${w(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case "not_multiple_of":return `Angka tidak valid: harus kelipatan dari ${n.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Kunci tidak valid di ${n.origin}`;case "invalid_union":return "Input tidak valid";case "invalid_element":return `Nilai tidak valid di ${n.origin}`;default:return "Input tidak valid"}}};function cy(){return {localeError:Wk()}}var Gk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${o}`}case "invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${w(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case "not_multiple_of":return `R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case "unrecognized_keys":return `\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${_(n.keys,", ")}`;case "invalid_key":return `Rangur lykill \xED ${n.origin}`;case "invalid_union":return "Rangt gildi";case "invalid_element":return `Rangt gildi \xED ${n.origin}`;default:return "Rangt gildi"}}};function ly(){return {localeError:Gk()}}var qk=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${u}`:`Input non valido: atteso ${o}, ricevuto ${u}`}case "invalid_value":return n.values.length===1?`Input non valido: atteso ${w(n.values[0])}`:`Opzione non valida: atteso uno tra ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case "not_multiple_of":return `Numero non valido: deve essere un multiplo di ${n.divisor}`;case "unrecognized_keys":return `Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${_(n.keys,", ")}`;case "invalid_key":return `Chiave non valida in ${n.origin}`;case "invalid_union":return "Input non valido";case "invalid_element":return `Valore non valido in ${n.origin}`;default:return "Input non valido"}}};function dy(){return {localeError:qk()}}var Hk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case "invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${w(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case "too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case "not_multiple_of":return `\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${_(n.keys,"\u3001")}`;case "invalid_key":return `${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case "invalid_union":return "\u7121\u52B9\u306A\u5165\u529B";case "invalid_element":return `${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return "\u7121\u52B9\u306A\u5165\u529B"}}};function py(){return {localeError:Hk()}}var Jk=()=>{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(n){return e[n]??null}let r={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"},i={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 n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case "invalid_value":return n.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 ${w(n.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 ${_(n.values,"|")}-\u10D3\u10D0\u10DC`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${o}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${_(n.keys,", ")}`;case "invalid_key":return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function fy(){return {localeError:Jk()}}var Kk=()=>{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(n){return e[n]??null}let r={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"},i={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 n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case "invalid_value":return n.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 ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(n.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 ${n.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 ${n.origin}`;default:return "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Ea(){return {localeError:Kk()}}function my(){return Ea()}var Yk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case "invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${w(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(n.origin),c=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case "too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(n.origin),c=u?.unit??"\uC694\uC18C";return u?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case "not_multiple_of":return `\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "unrecognized_keys":return `\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(n.keys,", ")}`;case "invalid_key":return `\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case "invalid_union":return "\uC798\uBABB\uB41C \uC785\uB825";case "invalid_element":return `\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return "\uC798\uBABB\uB41C \uC785\uB825"}}};function hy(){return {localeError:Yk()}}var Xi=e=>e.charAt(0).toUpperCase()+e.slice(1);function gy(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var Xk=()=>{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(n,o,a,u){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[u][a?"inclusive":"notInclusive"]}}let r={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"},i={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 n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${o}`}case "invalid_value":return n.values.length===1?`Privalo b\u016Bti ${w(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${_(n.values,"|")} pasirinkim\u0173`;case "too_big":{let o=i[n.origin]??n.origin,a=t(n.origin,gy(Number(n.maximum)),n.inclusive??false,"smaller");if(a?.verb)return `${Xi(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let u=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return `${Xi(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.maximum.toString()} ${a?.unit}`}case "too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,gy(Number(n.minimum)),n.inclusive??false,"bigger");if(a?.verb)return `${Xi(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let u=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return `${Xi(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${n.minimum.toString()} ${a?.unit}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case "not_multiple_of":return `Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case "unrecognized_keys":return `Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${_(n.keys,", ")}`;case "invalid_key":return "Rastas klaidingas raktas";case "invalid_union":return "Klaidinga \u012Fvestis";case "invalid_element":{let o=i[n.origin]??n.origin;return `${Xi(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return "Klaidinga \u012Fvestis"}}};function yy(){return {localeError:Xk()}}var Qk=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case "invalid_value":return n.values.length===1?`Invalid input: expected ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `${n.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"}: ${_(n.keys,", ")}`;case "invalid_key":return `\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return "\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function vy(){return {localeError:Qk()}}var e0=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${u}`:`Input tidak sah: dijangka ${o}, diterima ${u}`}case "invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${w(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case "not_multiple_of":return `Nombor tidak sah: perlu gandaan ${n.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali: ${_(n.keys,", ")}`;case "invalid_key":return `Kunci tidak sah dalam ${n.origin}`;case "invalid_union":return "Input tidak sah";case "invalid_element":return `Nilai tidak sah dalam ${n.origin}`;default:return "Input tidak sah"}}};function by(){return {localeError:e0()}}var t0=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${o}, ontving ${u}`}case "invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${w(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),u=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${u}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${u}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin),u=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${u}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${u}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case "not_multiple_of":return `Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case "unrecognized_keys":return `Onbekende key${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Ongeldige key in ${n.origin}`;case "invalid_union":return "Ongeldige invoer";case "invalid_element":return `Ongeldige waarde in ${n.origin}`;default:return "Ongeldige invoer"}}};function Sy(){return {localeError:t0()}}var n0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${u}`:`Ugyldig input: forventet ${o}, fikk ${u}`}case "invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${w(n.values[0])}`:`Ugyldig valg: forventet en av ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case "not_multiple_of":return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case "unrecognized_keys":return `${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(n.keys,", ")}`;case "invalid_key":return `Ugyldig n\xF8kkel i ${n.origin}`;case "invalid_union":return "Ugyldig input";case "invalid_element":return `Ugyldig verdi i ${n.origin}`;default:return "Ugyldig input"}}};function xy(){return {localeError:n0()}}var r0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${u}`}case "invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${w(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case "invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case "not_multiple_of":return `F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case "unrecognized_keys":return `Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case "invalid_union":return "Giren tan\u0131namad\u0131.";case "invalid_element":return `${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return "K\u0131ymet tan\u0131namad\u0131."}}};function Dy(){return {localeError:r0()}}var i0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case "invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${w(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${_(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case "not_multiple_of":return `\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case "unrecognized_keys":return `\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${_(n.keys,", ")}`;case "invalid_key":return `\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return "\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function _y(){return {localeError:i0()}}var o0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${u}`}case "invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${w(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case "not_multiple_of":return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case "unrecognized_keys":return `Nierozpoznane klucze${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Nieprawid\u0142owy klucz w ${n.origin}`;case "invalid_union":return "Nieprawid\u0142owe dane wej\u015Bciowe";case "invalid_element":return `Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return "Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Ey(){return {localeError:o0()}}var a0=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${u}`}case "invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${w(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case "not_multiple_of":return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case "unrecognized_keys":return `Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case "invalid_key":return `Chave inv\xE1lida em ${n.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido em ${n.origin}`;default:return "Campo inv\xE1lido"}}};function wy(){return {localeError:a0()}}function $y(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var s0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case "invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let u=Number(n.maximum),c=$y(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let u=Number(n.minimum),c=$y(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${_(n.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function ky(){return {localeError:s0()}}var u0=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${u}`}case "invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${w(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case "not_multiple_of":return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case "unrecognized_keys":return `Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(n.keys,", ")}`;case "invalid_key":return `Neveljaven klju\u010D v ${n.origin}`;case "invalid_union":return "Neveljaven vnos";case "invalid_element":return `Neveljavna vrednost v ${n.origin}`;default:return "Neveljaven vnos"}}};function Iy(){return {localeError:u0()}}var c0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${u}`}case "invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${w(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case "not_multiple_of":return `Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case "unrecognized_keys":return `${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(n.keys,", ")}`;case "invalid_key":return `Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case "invalid_union":return "Ogiltig input";case "invalid_element":return `Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return "Ogiltig input"}}};function Oy(){return {localeError:c0()}}var l0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case "invalid_value":return n.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 ${w(n.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 ${_(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${o}${n.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 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.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 ${r[o.format]??n.format}`}case "not_multiple_of":return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(n.keys,", ")}`;case "invalid_key":return `${n.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 `${n.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"}}};function Cy(){return {localeError:l0()}}var d0=()=>{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(n){return e[n]??null}let r={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"},i={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 n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case "invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.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 ${n.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: ${_(n.keys,", ")}`;case "invalid_key":return `\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Ry(){return {localeError:d0()}}var p0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${u}`}case "invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${w(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case "not_multiple_of":return `Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case "unrecognized_keys":return `Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case "invalid_key":return `${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case "invalid_union":return "Ge\xE7ersiz de\u011Fer";case "invalid_element":return `${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return "Ge\xE7ersiz de\u011Fer"}}};function Ay(){return {localeError:p0()}}var f0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.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 ${n.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 ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case "invalid_value":return n.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 ${w(n.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 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${o}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${_(n.keys,", ")}`;case "invalid_key":return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function wa(){return {localeError:f0()}}function Ty(){return wa()}var m0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case "invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${w(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case "not_multiple_of":return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${_(n.keys,"\u060C ")}`;case "invalid_key":return `${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case "invalid_union":return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case "invalid_element":return `${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Py(){return {localeError:m0()}}var h0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${u}`}case "invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${w(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case "not_multiple_of":return `Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case "unrecognized_keys":return `Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case "invalid_key":return `${n.origin} dagi kalit noto\u2018g\u2018ri`;case "invalid_union":return "Noto\u2018g\u2018ri kirish";case "invalid_element":return `${n.origin} da noto\u2018g\u2018ri qiymat`;default:return "Noto\u2018g\u2018ri kirish"}}};function Fy(){return {localeError:h0()}}var g0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case "invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${w(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(n.keys,", ")}`;case "invalid_key":return `Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return "\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function jy(){return {localeError:g0()}}var y0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case "invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${w(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case "not_multiple_of":return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case "unrecognized_keys":return `\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(n.keys,", ")}`;case "invalid_key":return `${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case "invalid_union":return "\u65E0\u6548\u8F93\u5165";case "invalid_element":return `${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return "\u65E0\u6548\u8F93\u5165"}}};function zy(){return {localeError:y0()}}var v0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${u}`}case "invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${w(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case "invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case "not_multiple_of":return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case "unrecognized_keys":return `\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${_(n.keys,"\u3001")}`;case "invalid_key":return `${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case "invalid_union":return "\u7121\u6548\u7684\u8F38\u5165\u503C";case "invalid_element":return `${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return "\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Ny(){return {localeError:v0()}}var b0=()=>{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(n){return e[n]??null}let r={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"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case "invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),u=i[a]??a;return /^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case "invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${w(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${_(n.values,"|")}`;case "too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case "too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case "invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.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 ${n.divisor}`;case "unrecognized_keys":return `B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${_(n.keys,", ")}`;case "invalid_key":return `B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Uy(){return {localeError:b0()}}var Ly,Rd=Symbol("ZodOutput"),Ad=Symbol("ZodInput"),$a=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.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 i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ka(){return new $a}(Ly=globalThis).__zod_globalRegistry??(Ly.__zod_globalRegistry=ka());var qe=globalThis.__zod_globalRegistry;function Td(e,t){return new e({type:"string",...C(t)})}function Pd(e,t){return new e({type:"string",coerce:true,...C(t)})}function Ia(e,t){return new e({type:"string",format:"email",check:"string_format",abort:false,...C(t)})}function eo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:false,...C(t)})}function Oa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...C(t)})}function Ca(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...C(t)})}function Ra(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...C(t)})}function Aa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...C(t)})}function to(e,t){return new e({type:"string",format:"url",check:"string_format",abort:false,...C(t)})}function Ta(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...C(t)})}function Pa(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...C(t)})}function Fa(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...C(t)})}function ja(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...C(t)})}function za(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...C(t)})}function Na(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:false,...C(t)})}function Ua(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...C(t)})}function La(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...C(t)})}function Ma(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...C(t)})}function Fd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:false,...C(t)})}function Ba(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...C(t)})}function Va(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...C(t)})}function Za(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:false,...C(t)})}function Wa(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...C(t)})}function Ga(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:false,...C(t)})}function qa(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...C(t)})}var jd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function zd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...C(t)})}function Nd(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function Ud(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Ld(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function Md(e,t){return new e({type:"number",checks:[],...C(t)})}function Bd(e,t){return new e({type:"number",coerce:true,checks:[],...C(t)})}function Vd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...C(t)})}function Zd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float32",...C(t)})}function Wd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float64",...C(t)})}function Gd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"int32",...C(t)})}function qd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"uint32",...C(t)})}function Hd(e,t){return new e({type:"boolean",...C(t)})}function Jd(e,t){return new e({type:"boolean",coerce:true,...C(t)})}function Kd(e,t){return new e({type:"bigint",...C(t)})}function Yd(e,t){return new e({type:"bigint",coerce:true,...C(t)})}function Xd(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"int64",...C(t)})}function Qd(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"uint64",...C(t)})}function ep(e,t){return new e({type:"symbol",...C(t)})}function tp(e,t){return new e({type:"undefined",...C(t)})}function np(e,t){return new e({type:"null",...C(t)})}function rp(e){return new e({type:"any"})}function ip(e){return new e({type:"unknown"})}function op(e,t){return new e({type:"never",...C(t)})}function ap(e,t){return new e({type:"void",...C(t)})}function sp(e,t){return new e({type:"date",...C(t)})}function up(e,t){return new e({type:"date",coerce:true,...C(t)})}function cp(e,t){return new e({type:"nan",...C(t)})}function Kt(e,t){return new pa({check:"less_than",...C(t),value:e,inclusive:false})}function mt(e,t){return new pa({check:"less_than",...C(t),value:e,inclusive:true})}function Yt(e,t){return new fa({check:"greater_than",...C(t),value:e,inclusive:false})}function nt(e,t){return new fa({check:"greater_than",...C(t),value:e,inclusive:true})}function Ha(e){return Yt(0,e)}function Ja(e){return Kt(0,e)}function Ka(e){return mt(0,e)}function Ya(e){return nt(0,e)}function On(e,t){return new nl({check:"multiple_of",...C(t),value:e})}function Cn(e,t){return new ol({check:"max_size",...C(t),maximum:e})}function Xt(e,t){return new al({check:"min_size",...C(t),minimum:e})}function tr(e,t){return new sl({check:"size_equals",...C(t),size:e})}function nr(e,t){return new ul({check:"max_length",...C(t),maximum:e})}function mn(e,t){return new cl({check:"min_length",...C(t),minimum:e})}function rr(e,t){return new ll({check:"length_equals",...C(t),length:e})}function qr(e,t){return new dl({check:"string_format",format:"regex",...C(t),pattern:e})}function Hr(e){return new pl({check:"string_format",format:"lowercase",...C(e)})}function Jr(e){return new fl({check:"string_format",format:"uppercase",...C(e)})}function Kr(e,t){return new ml({check:"string_format",format:"includes",...C(t),includes:e})}function Yr(e,t){return new hl({check:"string_format",format:"starts_with",...C(t),prefix:e})}function Xr(e,t){return new gl({check:"string_format",format:"ends_with",...C(t),suffix:e})}function Xa(e,t,r){return new yl({check:"property",property:e,schema:t,...C(r)})}function Qr(e,t){return new vl({check:"mime_type",mime:e,...C(t)})}function Ut(e){return new bl({check:"overwrite",tx:e})}function ei(e){return Ut(t=>t.normalize(e))}function ti(){return Ut(e=>e.trim())}function ni(){return Ut(e=>e.toLowerCase())}function ri(){return Ut(e=>e.toUpperCase())}function ii(){return Ut(e=>yc(e))}function lp(e,t,r){return new e({type:"array",element:t,...C(r)})}function x0(e,t,r){return new e({type:"union",options:t,...C(r)})}function D0(e,t,r){return new e({type:"union",options:t,inclusive:false,...C(r)})}function _0(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...C(i)})}function E0(e,t,r){return new e({type:"intersection",left:t,right:r})}function w0(e,t,r,i){let n=r instanceof X,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...C(o)})}function $0(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...C(i)})}function k0(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...C(i)})}function I0(e,t,r){return new e({type:"set",valueType:t,...C(r)})}function O0(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...C(r)})}function C0(e,t,r){return new e({type:"enum",entries:t,...C(r)})}function R0(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(r)})}function dp(e,t){return new e({type:"file",...C(t)})}function A0(e,t){return new e({type:"transform",transform:t})}function T0(e,t){return new e({type:"optional",innerType:t})}function P0(e,t){return new e({type:"nullable",innerType:t})}function F0(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():bc(r)}})}function j0(e,t,r){return new e({type:"nonoptional",innerType:t,...C(r)})}function z0(e,t){return new e({type:"success",innerType:t})}function N0(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function U0(e,t,r){return new e({type:"pipe",in:t,out:r})}function L0(e,t){return new e({type:"readonly",innerType:t})}function M0(e,t,r){return new e({type:"template_literal",parts:t,...C(r)})}function B0(e,t){return new e({type:"lazy",getter:t})}function V0(e,t){return new e({type:"promise",innerType:t})}function pp(e,t,r){let i=C(r);return i.abort??(i.abort=true),new e({type:"custom",check:"custom",fn:t,...i})}function fp(e,t,r){return new e({type:"custom",check:"custom",fn:t,...C(r)})}function mp(e){let t=My(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Lr(i,r.value,t._zod.def));else {let n=i;n.fatal&&(n.continue=false),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Lr(n));}},e(r.value,r)));return t}function My(e,t){let r=new ye({check:"custom",...C(t)});return r._zod.check=e,r}function hp(e){let t=new ye({check:"describe"});return t._zod.onattach=[r=>{let i=qe.get(r)??{};qe.add(r,{...i,description:e});}],t._zod.check=()=>{},t}function gp(e){let t=new ye({check:"meta"});return t._zod.onattach=[r=>{let i=qe.get(r)??{};qe.add(r,{...i,...e});}],t._zod.check=()=>{},t}function yp(e,t){let r=C(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(h=>typeof h=="string"?h.toLowerCase():h),n=n.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(i),a=new Set(n),u=e.Codec??Yi,c=e.Boolean??Ji,l=e.String??er,d=new l({type:"string",error:r.error}),p=new c({type:"boolean",error:r.error}),m=new u({type:"pipe",in:d,out:p,transform:((h,v)=>{let D=h;return r.case!=="sensitive"&&(D=D.toLowerCase()),o.has(D)?true:a.has(D)?false:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:m,continue:false}),{})}),reverseTransform:((h,v)=>h===true?i[0]||"true":n[0]||"false"),error:r.error});return m}function oi(e,t,r,i={}){let n=C(i),o={...C(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:u=>r.test(u),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Rn(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??qe,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}}function le(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let u=e._zod.toJSONSchema?.();if(u)a.schema=u;else {let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else {let m=a.schema,h=t.processors[n.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);h(e,t,m,d);}let p=e._zod.parent;p&&(a.ref||(a.ref=p),le(p,t,d),t.seen.get(p).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&rt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function An(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let u=e.metadataRegistry.get(a[0])?.id;if(u){let c=i.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.`);i.set(u,a[0]);}}let n=a=>{let u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,m=e.external.uri??(v=>v);if(p)return {ref:m(p)};let h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${m("__shared")}#/${u}/${h}`}}if(a[1]===r)return {ref:"#"};let l=`#/${u}/`,d=a[1].schema.id??`__schema${e.counter++}`;return {defId:d,ref:l+d}},o=a=>{if(a[1].schema.$ref)return;let u=a[1],{ref:c,defId:l}=n(a);u.def={...u.schema},l&&(u.defId=l);let d=u.schema;for(let p in d)delete d[p];d.$ref=c;};if(e.cycles==="throw")for(let a of e.seen.entries()){let u=a[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
42
+ `);}h.write("payload.value = newResult;"),h.write("return payload;");let H=h.compile();return (B,R)=>H(m,B,R)},o,a=Cr,s=!ci.jitless,l=s&&Cu.value,d=t.catchall,p;e._zod.parse=(m,h)=>{p??(p=i.value);let y=m.value;return a(y)?s&&l&&h?.async===false&&h.jitless!==true?(o||(o=r(t.shape)),m=o(m,h),d?Lh([],y,m,h,p,e):m):n(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),m)};});function Ih(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!dr(o));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(o=>o.issues.map(a=>nt(a,i,Se())))}),t)}var Si=v("$ZodUnion",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ne(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ne(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ne(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>pi(o.source)).join("|")})$`)}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=false,s=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),a=true;else {if(l.issues.length===0)return l;s.push(l);}}return a?Promise.all(s).then(c=>Ih(c,r,e,o)):Ih(s,r,e,o)};});function Oh(e,t,n,i){let r=e.filter(o=>o.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(o=>o.issues.map(a=>nt(a,i,Se())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:false}),t)}var yl=v("$ZodXor",(e,t)=>{Si.init(e,t),t.inclusive=false;let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=false,s=[];for(let c of t.options){let l=c._zod.run({value:r.value,issues:[]},o);l instanceof Promise?(s.push(l),a=true):s.push(l);}return a?Promise.all(s).then(c=>Oh(c,r,e,o)):Oh(s,r,e,o)};}),bl=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=false,Si.init(e,t);let n=e._zod.parse;ne(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){r[s]||(r[s]=new Set);for(let l of c)r[s].add(l);}}return r});let i=fn(()=>{let r=t.options,o=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a);}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!Cr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)};}),_l=v("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,l])=>kh(n,c,l)):kh(n,o,a)};});function Tc(e,t){if(e===t)return {valid:true,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(lr(e)&&lr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=Tc(e[o],t[o]);if(!a.valid)return {valid:false,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data;}return {valid:true,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=Tc(r,o);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function kh(e,t,n){let i=new Map,r;for(let s of t.issues)if(s.code==="unrecognized_keys"){r??(r=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=true;}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=true;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&r&&e.issues.push({...r,keys:o}),dr(e))return e;let a=Tc(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Vo=v("$ZodTuple",(e,t)=>{X.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),c=s===-1?0:n.length-s;if(!t.rest){let d=o.length>n.length,p=o.length<c-1;if(d||p)return i.issues.push({...d?{code:"too_big",maximum:n.length,inclusive:true}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(let d of n){if(l++,l>=o.length&&l>=c)continue;let p=d._zod.run({value:o[l],issues:[]},r);p instanceof Promise?a.push(p.then(m=>No(m,i,l))):No(p,i,l);}if(t.rest){let d=o.slice(n.length);for(let p of d){l++;let m=t.rest._zod.run({value:p,issues:[]},r);m instanceof Promise?a.push(m.then(h=>No(h,i,l))):No(m,i,l);}}return a.length?Promise.all(a).then(()=>i):i};});function No(e,t,n){e.issues.length&&t.issues.push(...ut(n,e.issues)),t.value[n]=e.value;}var Dl=v("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!lr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let d=t.valueType._zod.run({value:r[l],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...ut(l,p.issues)),n.value[l]=p.value;})):(d.issues.length&&n.issues.push(...ut(l,d.issues)),n.value[l]=d.value);}let c;for(let l in r)s.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 s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&To.test(s)&&c.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p);}if(c.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>nt(p,i,Se())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:r[s],issues:[]},i);d instanceof Promise?o.push(d.then(p=>{p.issues.length&&n.issues.push(...ut(s,p.issues)),n.value[c.value]=p.value;})):(d.issues.length&&n.issues.push(...ut(s,d.issues)),n.value[c.value]=d.value);}}return o.length?Promise.all(o).then(()=>n):n};}),xl=v("$ZodMap",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([d,p])=>{Ch(d,p,n,a,r,e,i);})):Ch(c,l,n,a,r,e,i);}return o.length?Promise.all(o).then(()=>n):n};});function Ch(e,t,n,i,r,o,a){e.issues.length&&(fi.has(typeof i)?n.issues.push(...ut(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>nt(s,a,Se()))})),t.issues.length&&(fi.has(typeof i)?n.issues.push(...ut(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>nt(s,a,Se()))})),n.value.set(e.value,t.value);}var Sl=v("$ZodSet",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>Ah(c,n))):Ah(s,n);}return o.length?Promise.all(o).then(()=>n):n};});function Ah(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value);}var El=v("$ZodEnum",(e,t)=>{X.init(e,t);let n=di(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>fi.has(typeof r)).map(r=>typeof r=="string"?yt(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r};}),wl=v("$ZodLiteral",(e,t)=>{if(X.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(i=>typeof i=="string"?yt(i):i?yt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i};}),$l=v("$ZodFile",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n};}),Il=v("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new sr(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return (r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Rt;return n.value=r,n};});function Rh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Zo=v("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ne(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${pi(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Rh(o,n.value)):Rh(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)};}),Ol=v("$ZodExactOptional",(e,t)=>{Zo.init(e,t),ne(e._zod,"values",()=>t.innerType._zod.values),ne(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i);}),kl=v("$ZodNullable",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.innerType._zod.optin),ne(e._zod,"optout",()=>t.innerType._zod.optout),ne(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${pi(n.source)}|null)$`):void 0}),ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i);}),Cl=v("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Th(o,t)):Th(r,t)};});function Th(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Al=v("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i));}),Rl=v("$ZodNonOptional",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Fh(o,e)):Fh(r,e)};});function Fh(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Tl=v("$ZodSuccess",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new sr("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)};}),Fl=v("$ZodCatch",(e,t)=>{X.init(e,t),ne(e._zod,"optin",()=>t.innerType._zod.optin),ne(e._zod,"optout",()=>t.innerType._zod.optout),ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>nt(a,i,Se()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>nt(o,i,Se()))},input:n.value}),n.issues=[]),n)};}),Pl=v("$ZodNaN",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n);}),Nl=v("$ZodPipe",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>t.in._zod.values),ne(e._zod,"optin",()=>t.in._zod.optin),ne(e._zod,"optout",()=>t.out._zod.optout),ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>zo(a,t.in,i)):zo(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>zo(o,t.out,i)):zo(r,t.out,i)};});function zo(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ei=v("$ZodCodec",(e,t)=>{X.init(e,t),ne(e._zod,"values",()=>t.in._zod.values),ne(e._zod,"optin",()=>t.in._zod.optin),ne(e._zod,"optout",()=>t.out._zod.optout),ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>Uo(a,t,i)):Uo(o,t,i)}else {let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>Uo(a,t,i)):Uo(o,t,i)}};});function Uo(e,t,n){if(e.issues.length)return e.aborted=true,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>jo(e,o,t.out,n)):jo(e,r,t.out,n)}else {let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>jo(e,o,t.in,n)):jo(e,r,t.in,n)}}function jo(e,t,n,i){return e.issues.length?(e.aborted=true,e):n._zod.run({value:t,issues:e.issues},i)}var zl=v("$ZodReadonly",(e,t)=>{X.init(e,t),ne(e._zod,"propValues",()=>t.innerType._zod.propValues),ne(e._zod,"values",()=>t.innerType._zod.values),ne(e._zod,"optin",()=>t.innerType?._zod?.optin),ne(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(Ph):Ph(r)};});function Ph(e){return e.value=Object.freeze(e.value),e}var Ul=v("$ZodTemplateLiteral",(e,t)=>{X.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a));}else if(i===null||Ru.has(typeof i))n.push(yt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i);}),jl=v("$ZodFunction",(e,t)=>(X.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(...i){let r=e._def.input?xo(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?xo(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await So(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await So(e._def.output,o):o}},e._zod.parse=(n,i)=>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 i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Vo({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Ll=v("$ZodPromise",(e,t)=>{X.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i));}),Ml=v("$ZodLazy",(e,t)=>{X.init(e,t),ne(e._zod,"innerType",()=>t.getter()),ne(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ne(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ne(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ne(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i);}),Bl=v("$ZodCustom",(e,t)=>{he.init(e,t),X.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Nh(o,n,i,e));Nh(r,n,i,e);};});function Nh(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(mn(r));}}var $i={};b($i,{ar:()=>Bh,az:()=>Vh,be:()=>Wh,bg:()=>Gh,ca:()=>qh,cs:()=>Hh,da:()=>Yh,de:()=>Jh,en:()=>Wo,eo:()=>Kh,es:()=>Xh,fa:()=>Qh,fi:()=>eg,fr:()=>tg,frCA:()=>rg,he:()=>ng,hu:()=>ig,hy:()=>ag,id:()=>sg,is:()=>ug,it:()=>cg,ja:()=>lg,ka:()=>dg,kh:()=>pg,km:()=>Go,ko:()=>fg,lt:()=>hg,mk:()=>gg,ms:()=>vg,nl:()=>yg,no:()=>bg,ota:()=>_g,pl:()=>xg,ps:()=>Dg,pt:()=>Sg,ru:()=>wg,sl:()=>$g,sv:()=>Ig,ta:()=>Og,th:()=>kg,tr:()=>Cg,ua:()=>Ag,uk:()=>qo,ur:()=>Rg,uz:()=>Tg,vi:()=>Fg,yo:()=>zg,zhCN:()=>Pg,zhTW:()=>Ng});var Xw=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}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 ${w(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: ${S(r.values,"|")}`;case "too_big":{let o=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"} ${o} ${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"} ${o} ${r.maximum.toString()}`}case "too_small":{let o=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 ${o} ${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 ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${n[o.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":""}: ${S(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"}}};function Bh(){return {localeError:Xw()}}var Qw=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case "invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${w(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.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":""}: ${S(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"}}};function Vh(){return {localeError:Qw()}}function Zh(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var e$=()=>{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}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"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Zh(s,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} ${o}${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 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Zh(s,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} ${o}${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 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.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"}: ${S(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"}}};function Wh(){return {localeError:e$()}}var t$=()=>{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}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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=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 ${o}${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 ${o}${r.maximum.toString()}`}case "too_small":{let o=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 ${o}${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 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.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":""}: ${S(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"}}};function Gh(){return {localeError:t$()}}var r$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case "invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${w(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${S(r.values," o ")}`;case "too_big":{let o=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 ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.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":""}: ${S(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"}}};function qh(){return {localeError:r$()}}var n$=()=>{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}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"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case "invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${w(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.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: ${S(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"}}};function Hh(){return {localeError:n$()}}var i$=()=>{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}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case "invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${w(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.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"}: ${S(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"}}};function Yh(){return {localeError:i$()}}var o$=()=>{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}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"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case "invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${w(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.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"}: ${S(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"}}};function Jh(){return {localeError:o$()}}var a$=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return `Invalid input: expected ${o}, received ${s}`}case "invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.values[0])}`:`Invalid option: expected one of ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.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":""}: ${S(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"}}};function Wo(){return {localeError:a$()}}var 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}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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case "invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${w(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.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":""}: ${S(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"}}};function Kh(){return {localeError:s$()}}var u$=()=>{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}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case "invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${w(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.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":""}: ${S(r.keys,", ")}`;case "invalid_key":return `Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case "invalid_union":return "Entrada inv\xE1lida";case "invalid_element":return `Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return "Entrada inv\xE1lida"}}};function Xh(){return {localeError:u$()}}var c$=()=>{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}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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s} \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 ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \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 ${w(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 ${S(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case "too_big":{let o=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 ${o}${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 ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.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: ${S(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"}}};function Qh(){return {localeError:c$()}}var l$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case "invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${w(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.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"}: ${S(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"}}};function eg(){return {localeError:l$()}}var d$=()=>{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}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"},i={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case "invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${w(r.values[0])} attendu`:`Option invalide : une valeur parmi ${S(r.values,"|")} attendue`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.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":""} : ${S(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"}}};function tg(){return {localeError:d$()}}var p$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case "invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${w(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.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":""} : ${S(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"}}};function rg(){return {localeError:p$()}}var f$=()=>{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=l=>l?e[l]:void 0,i=l=>{let d=n(l);return d?d.label:l??e.unknown.label},r=l=>`\u05D4${i(l)}`,o=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",a=l=>l?t[l]??null:null,s={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 d=l.expected,p=c[d??""]??i(d),m=$(l.input),h=c[m]??e[m]?.label??m;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 ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}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 ${w(l.values[0])}`;let d=l.values.map(h=>w(h));if(l.values.length===2)return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.length-1];return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case "too_big":{let d=a(l.origin),p=r(l.origin??"value");if(l.origin==="string")return `${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=l.inclusive?"<=":"<",h=o(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.maximum.toString()}`}case "too_small":{let d=a(l.origin),p=r(l.origin??"value");if(l.origin==="string")return `${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let y=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(l.origin==="array"||l.origin==="set"){let y=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let b=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let x=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let m=l.inclusive?">=":">",h=o(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${h} ${m}${l.minimum.toString()}`}case "invalid_format":{let d=l;if(d.format==="starts_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let p=s[d.format],m=p?.label??d.format,y=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return `${m} \u05DC\u05D0 ${y}`}case "not_multiple_of":return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case "unrecognized_keys":return `\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${S(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"}}};function ng(){return {localeError:f$()}}var m$=()=>{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}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"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case "invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${w(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.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":""}: ${S(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"}}};function ig(){return {localeError:m$()}}function og(e,t,n){return Math.abs(e)===1?t:n}function _n(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")}var h$=()=>{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}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"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=og(s,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 ${_n(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${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 ${_n(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=og(s,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 ${_n(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${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 ${_n(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.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":""}. ${S(r.keys,", ")}`;case "invalid_key":return `\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${_n(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 ${_n(r.origin)}-\u0578\u0582\u0574`;default:return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function ag(){return {localeError:h$()}}var g$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case "invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${w(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.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":""}: ${S(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"}}};function sg(){return {localeError:g$()}}var v$=()=>{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}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"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case "invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${w(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.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"}: ${S(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"}}};function ug(){return {localeError:v$()}}var y$=()=>{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}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"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case "invalid_value":return r.values.length===1?`Input non valido: atteso ${w(r.values[0])}`:`Opzione non valida: atteso uno tra ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${n[o.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"}: ${S(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"}}};function cg(){return {localeError:y$()}}var b$=()=>{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}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"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case "invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${w(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${S(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case "too_big":{let o=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"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "too_small":{let o=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}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.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":""}: ${S(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"}}};function lg(){return {localeError:b$()}}var _$=()=>{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}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}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 ${w(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 ${S(r.values,"|")}-\u10D3\u10D0\u10DC`;case "too_big":{let o=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} ${o}${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 ${o}${r.maximum.toString()}`}case "too_small":{let o=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} ${o}${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 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.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"}: ${S(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"}}};function dg(){return {localeError:_$()}}var D$=()=>{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}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=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"} ${o} ${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"} ${o} ${r.maximum.toString()}`}case "too_small":{let o=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} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.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 ${S(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"}}};function Go(){return {localeError:D$()}}function pg(){return Go()}var x$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case "invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${w(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${S(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case "too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case "too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),c=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${c} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.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: ${S(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"}}};function fg(){return {localeError:x$()}}var wi=e=>e.charAt(0).toUpperCase()+e.slice(1);function mg(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var 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,o,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case "invalid_value":return r.values.length===1?`Privalo b\u016Bti ${w(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${S(r.values,"|")} pasirinkim\u0173`;case "too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,mg(Number(r.maximum)),r.inclusive??false,"smaller");if(a?.verb)return `${wi(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return `${wi(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case "too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,mg(Number(r.minimum)),r.inclusive??false,"bigger");if(a?.verb)return `${wi(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return `${wi(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.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"}: ${S(r.keys,", ")}`;case "invalid_key":return "Rastas klaidingas raktas";case "invalid_union":return "Klaidinga \u012Fvestis";case "invalid_element":{let o=i[r.origin]??r.origin;return `${wi(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return "Klaidinga \u012Fvestis"}}};function hg(){return {localeError:S$()}}var E$=()=>{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}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"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case "invalid_value":return r.values.length===1?`Invalid input: expected ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=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 ${o}${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 ${o}${r.maximum.toString()}`}case "too_small":{let o=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 ${o}${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 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${n[o.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"}: ${S(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"}}};function gg(){return {localeError:E$()}}var w$=()=>{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}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"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case "invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${w(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case "not_multiple_of":return `Nombor tidak sah: perlu gandaan ${r.divisor}`;case "unrecognized_keys":return `Kunci tidak dikenali: ${S(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"}}};function vg(){return {localeError:w$()}}var $$=()=>{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}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"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case "invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${w(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.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":""}: ${S(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"}}};function yg(){return {localeError:$$()}}var I$=()=>{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}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"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case "invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${w(r.values[0])}`:`Ugyldig valg: forventet en av ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.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"}: ${S(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"}}};function bg(){return {localeError:I$()}}var O$=()=>{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}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"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case "invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${w(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case "invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.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":""}: ${S(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."}}};function _g(){return {localeError:O$()}}var k$=()=>{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}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"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \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 ${w(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${S(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case "too_big":{let o=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 ${o}${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 ${o}${r.maximum.toString()} \u0648\u064A`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.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"}: ${S(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"}}};function Dg(){return {localeError:k$()}}var C$=()=>{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}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"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case "invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${w(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${S(r.values,"|")}`;case "too_big":{let o=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 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case "too_small":{let o=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 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.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":""}: ${S(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"}}};function xg(){return {localeError:C$()}}var A$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}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"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case "invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${w(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.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":""}: ${S(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"}}};function Sg(){return {localeError:A$()}}function Eg(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var R$=()=>{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}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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Eg(s,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 ${o}${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 ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Eg(s,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 ${o}${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 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.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":""}: ${S(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"}}};function wg(){return {localeError:R$()}}var T$=()=>{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}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"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case "invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${w(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.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"}: ${S(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"}}};function $g(){return {localeError:T$()}}var F$=()=>{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}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"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case "invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${w(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.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"}: ${S(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"}}};function Ig(){return {localeError:F$()}}var P$=()=>{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}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}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 ${w(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 ${S(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case "too_big":{let o=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"} ${o}${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"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "too_small":{let o=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} ${o}${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} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.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[o.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":""}: ${S(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"}}};function Og(){return {localeError:P$()}}var N$=()=>{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}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"},i={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 o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=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${o} ${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${o} ${r.maximum.toString()}`}case "too_small":{let o=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${o} ${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${o} ${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.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: ${S(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"}}};function kg(){return {localeError:N$()}}var z$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case "invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${w(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.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":""}: ${S(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"}}};function Cg(){return {localeError:z$()}}var U$=()=>{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}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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\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 ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}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 ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=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} ${o}${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 ${o}${r.maximum.toString()}`}case "too_small":{let o=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} ${o}${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 ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.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":""}: ${S(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"}}};function qo(){return {localeError:U$()}}function Ag(){return qo()}var j$=()=>{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}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"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case "invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${w(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${S(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${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 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${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 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.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":""}: ${S(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"}}};function Rg(){return {localeError:j$()}}var L$=()=>{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}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"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case "invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${w(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.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":""}: ${S(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"}}};function Tg(){return {localeError:L$()}}var M$=()=>{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}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"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case "invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${w(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 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.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: ${S(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"}}};function Fg(){return {localeError:M$()}}var B$=()=>{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}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"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[a]??a;return /^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case "invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${w(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.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): ${S(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"}}};function Pg(){return {localeError:B$()}}var V$=()=>{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}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"},i={nan:"NaN"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case "invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${w(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${S(r.values,"|")}`;case "too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case "too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case "invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.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${S(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"}}};function Ng(){return {localeError:V$()}}var Z$=()=>{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}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"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case "invalid_type":{let o=i[r.expected]??r.expected,a=$(r.input),s=i[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 ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case "invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${w(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${S(r.values,"|")}`;case "too_big":{let o=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} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case "too_small":{let o=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} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case "invalid_format":{let o=r;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.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: ${S(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"}}};function zg(){return {localeError:Z$()}}var Ug,Vl=Symbol("ZodOutput"),Zl=Symbol("ZodInput"),Ho=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.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 i={...this.get(n)??{}};delete i.id;let r={...i,...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 Yo(){return new Ho}(Ug=globalThis).__zod_globalRegistry??(Ug.__zod_globalRegistry=Yo());var Ze=globalThis.__zod_globalRegistry;function Wl(e,t){return new e({type:"string",...C(t)})}function Gl(e,t){return new e({type:"string",coerce:true,...C(t)})}function Jo(e,t){return new e({type:"string",format:"email",check:"string_format",abort:false,...C(t)})}function Ii(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:false,...C(t)})}function Ko(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...C(t)})}function Xo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...C(t)})}function Qo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...C(t)})}function ea(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...C(t)})}function Oi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:false,...C(t)})}function ta(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...C(t)})}function ra(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...C(t)})}function na(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...C(t)})}function ia(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...C(t)})}function oa(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...C(t)})}function aa(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:false,...C(t)})}function sa(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...C(t)})}function ua(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...C(t)})}function ca(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...C(t)})}function ql(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:false,...C(t)})}function la(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...C(t)})}function da(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...C(t)})}function pa(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:false,...C(t)})}function fa(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...C(t)})}function ma(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:false,...C(t)})}function ha(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...C(t)})}var Hl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Yl(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...C(t)})}function Jl(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function Kl(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Xl(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function Ql(e,t){return new e({type:"number",checks:[],...C(t)})}function ed(e,t){return new e({type:"number",coerce:true,checks:[],...C(t)})}function td(e,t){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...C(t)})}function rd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float32",...C(t)})}function nd(e,t){return new e({type:"number",check:"number_format",abort:false,format:"float64",...C(t)})}function id(e,t){return new e({type:"number",check:"number_format",abort:false,format:"int32",...C(t)})}function od(e,t){return new e({type:"number",check:"number_format",abort:false,format:"uint32",...C(t)})}function ad(e,t){return new e({type:"boolean",...C(t)})}function sd(e,t){return new e({type:"boolean",coerce:true,...C(t)})}function ud(e,t){return new e({type:"bigint",...C(t)})}function cd(e,t){return new e({type:"bigint",coerce:true,...C(t)})}function ld(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"int64",...C(t)})}function dd(e,t){return new e({type:"bigint",check:"bigint_format",abort:false,format:"uint64",...C(t)})}function pd(e,t){return new e({type:"symbol",...C(t)})}function fd(e,t){return new e({type:"undefined",...C(t)})}function md(e,t){return new e({type:"null",...C(t)})}function hd(e){return new e({type:"any"})}function gd(e){return new e({type:"unknown"})}function vd(e,t){return new e({type:"never",...C(t)})}function yd(e,t){return new e({type:"void",...C(t)})}function bd(e,t){return new e({type:"date",...C(t)})}function _d(e,t){return new e({type:"date",coerce:true,...C(t)})}function Dd(e,t){return new e({type:"nan",...C(t)})}function Mt(e,t){return new Fo({check:"less_than",...C(t),value:e,inclusive:false})}function ct(e,t){return new Fo({check:"less_than",...C(t),value:e,inclusive:true})}function Bt(e,t){return new Po({check:"greater_than",...C(t),value:e,inclusive:false})}function Ke(e,t){return new Po({check:"greater_than",...C(t),value:e,inclusive:true})}function ga(e){return Bt(0,e)}function va(e){return Mt(0,e)}function ya(e){return ct(0,e)}function ba(e){return Ke(0,e)}function pr(e,t){return new mc({check:"multiple_of",...C(t),value:e})}function fr(e,t){return new vc({check:"max_size",...C(t),maximum:e})}function Vt(e,t){return new yc({check:"min_size",...C(t),minimum:e})}function Tr(e,t){return new bc({check:"size_equals",...C(t),size:e})}function Fr(e,t){return new _c({check:"max_length",...C(t),maximum:e})}function rr(e,t){return new Dc({check:"min_length",...C(t),minimum:e})}function Pr(e,t){return new xc({check:"length_equals",...C(t),length:e})}function Dn(e,t){return new Sc({check:"string_format",format:"regex",...C(t),pattern:e})}function xn(e){return new Ec({check:"string_format",format:"lowercase",...C(e)})}function Sn(e){return new wc({check:"string_format",format:"uppercase",...C(e)})}function En(e,t){return new $c({check:"string_format",format:"includes",...C(t),includes:e})}function wn(e,t){return new Ic({check:"string_format",format:"starts_with",...C(t),prefix:e})}function $n(e,t){return new Oc({check:"string_format",format:"ends_with",...C(t),suffix:e})}function _a(e,t,n){return new kc({check:"property",property:e,schema:t,...C(n)})}function In(e,t){return new Cc({check:"mime_type",mime:e,...C(t)})}function Tt(e){return new Ac({check:"overwrite",tx:e})}function On(e){return Tt(t=>t.normalize(e))}function kn(){return Tt(e=>e.trim())}function Cn(){return Tt(e=>e.toLowerCase())}function An(){return Tt(e=>e.toUpperCase())}function Rn(){return Tt(e=>ku(e))}function xd(e,t,n){return new e({type:"array",element:t,...C(n)})}function G$(e,t,n){return new e({type:"union",options:t,...C(n)})}function q$(e,t,n){return new e({type:"union",options:t,inclusive:false,...C(n)})}function H$(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...C(i)})}function Y$(e,t,n){return new e({type:"intersection",left:t,right:n})}function J$(e,t,n,i){let r=n instanceof X,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...C(o)})}function K$(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...C(i)})}function X$(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...C(i)})}function Q$(e,t,n){return new e({type:"set",valueType:t,...C(n)})}function e0(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...C(n)})}function t0(e,t,n){return new e({type:"enum",entries:t,...C(n)})}function r0(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(n)})}function Sd(e,t){return new e({type:"file",...C(t)})}function n0(e,t){return new e({type:"transform",transform:t})}function i0(e,t){return new e({type:"optional",innerType:t})}function o0(e,t){return new e({type:"nullable",innerType:t})}function a0(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Au(n)}})}function s0(e,t,n){return new e({type:"nonoptional",innerType:t,...C(n)})}function u0(e,t){return new e({type:"success",innerType:t})}function c0(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function l0(e,t,n){return new e({type:"pipe",in:t,out:n})}function d0(e,t){return new e({type:"readonly",innerType:t})}function p0(e,t,n){return new e({type:"template_literal",parts:t,...C(n)})}function f0(e,t){return new e({type:"lazy",getter:t})}function m0(e,t){return new e({type:"promise",innerType:t})}function Ed(e,t,n){let i=C(n);return i.abort??(i.abort=true),new e({type:"custom",check:"custom",fn:t,...i})}function wd(e,t,n){return new e({type:"custom",check:"custom",fn:t,...C(n)})}function $d(e){let t=jg(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(mn(i,n.value,t._zod.def));else {let r=i;r.fatal&&(r.continue=false),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(mn(r));}},e(n.value,n)));return t}function jg(e,t){let n=new he({check:"custom",...C(t)});return n._zod.check=e,n}function Id(e){let t=new he({check:"describe"});return t._zod.onattach=[n=>{let i=Ze.get(n)??{};Ze.add(n,{...i,description:e});}],t._zod.check=()=>{},t}function Od(e){let t=new he({check:"meta"});return t._zod.onattach=[n=>{let i=Ze.get(n)??{};Ze.add(n,{...i,...e});}],t._zod.check=()=>{},t}function kd(e,t){let n=C(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(h=>typeof h=="string"?h.toLowerCase():h),r=r.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(i),a=new Set(r),s=e.Codec??Ei,c=e.Boolean??xi,l=e.String??Rr,d=new l({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),m=new s({type:"pipe",in:d,out:p,transform:((h,y)=>{let x=h;return n.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?true:a.has(x)?false:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:m,continue:false}),{})}),reverseTransform:((h,y)=>h===true?i[0]||"true":r[0]||"false"),error:n.error});return m}function Tn(e,t,n,i={}){let r=C(i),o={...C(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function mr(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??Ze,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}}function le(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else {let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else {let m=a.schema,h=t.processors[r.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);h(e,t,m,d);}let p=e._zod.parent;p&&(a.ref||(a.ref=p),le(p,t,d),t.seen.get(p).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Xe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function hr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0]);}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,m=e.external.uri??(y=>y);if(p)return {ref:m(p)};let h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${m("__shared")}#/${s}/${h}`}}if(a[1]===n)return {ref:"#"};let l=`#/${s}/`,d=a[1].schema.id??`__schema${e.counter++}`;return {defId:d,ref:l+d}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=r(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let p in d)delete d[p];d.$ref=c;};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
43
43
 
44
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let u=a[1];if(t===a[0]){o(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(u.cycle){o(a);continue}if(u.count>1&&e.reused==="ref"){o(a);continue}}}function Tn(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let u=e.seen.get(a);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){i(d);let m=e.seen.get(d),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(h)):Object.assign(c,h),Object.assign(c,l),a._zod.parent===d)for(let D in c)D==="$ref"||D==="allOf"||D in l||delete c[D];if(h.$ref&&m.def)for(let D in c)D==="$ref"||D==="allOf"||D in m.def&&JSON.stringify(c[D])===JSON.stringify(m.def[D])&&delete c[D];}let p=a._zod.parent;if(p&&p!==d){i(p);let m=e.seen.get(p);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let h in c)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(c[h])===JSON.stringify(m.def[h])&&delete c[h];}e.override({zodSchema:a,jsonSchema:c,path:u.path??[]});};for(let a of [...e.seen.entries()].reverse())i(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(a);}Object.assign(n,r.def??r.schema);let o=e.external?.defs??{};for(let a of e.seen.entries()){let u=a[1];u.def&&u.defId&&(o[u.defId]=u.def);}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:ai(t,"input",e.processors),output:ai(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function rt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return false;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return true;if(i.type==="array")return rt(i.element,r);if(i.type==="set")return rt(i.valueType,r);if(i.type==="lazy")return rt(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return rt(i.innerType,r);if(i.type==="intersection")return rt(i.left,r)||rt(i.right,r);if(i.type==="record"||i.type==="map")return rt(i.keyType,r)||rt(i.valueType,r);if(i.type==="pipe")return rt(i.in,r)||rt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(rt(i.shape[n],r))return true;return false}if(i.type==="union"){for(let n of i.options)if(rt(n,r))return true;return false}if(i.type==="tuple"){for(let n of i.items)if(rt(n,r))return true;return !!(i.rest&&rt(i.rest,r))}return false}var vp=(e,t={})=>r=>{let i=Rn({...r,processors:t});return le(e,i),An(i,e),Tn(i,e)},ai=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=Rn({...n??{},target:o,io:t,processors:r});return le(e,a),An(a,e),Tn(a,e)};var Z0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bp=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),u&&(n.format=Z0[u]??u,n.format===""&&delete n.format,u==="time"&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Sp=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,format:u,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof u=="string"&&u.includes("int")?n.type="integer":n.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=d,n.exclusiveMinimum=true):n.exclusiveMinimum=d),typeof o=="number"&&(n.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=true):n.exclusiveMaximum=l),typeof a=="number"&&(n.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c);},xp=(e,t,r,i)=>{r.type="boolean";},Dp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},_p=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Ep=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=true,r.enum=[null]):r.type="null";},wp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},$p=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},kp=(e,t,r,i)=>{r.not={};},Ip=(e,t,r,i)=>{},Op=(e,t,r,i)=>{},Cp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Rp=(e,t,r,i)=>{let n=e._zod.def,o=Ni(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o;},Ap=(e,t,r,i)=>{let n=e._zod.def,o=[];for(let a of n.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");o.push(Number(a));}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a;}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o;},Tp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Pp=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source;},Fp=(e,t,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:u,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),u!==void 0&&(o.maxLength=u),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(n,o);},jp=(e,t,r,i)=>{r.type="boolean";},zp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Np=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Up=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Mp=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Bp=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:u}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof u=="number"&&(n.maxItems=u),n.type="array",n.items=le(o.element,t,{...i,path:[...i.path,"items"]});},Vp=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let a=o.shape;for(let l in a)n.properties[l]=le(a[l],t,{...i,path:[...i.path,"properties",l]});let u=new Set(Object.keys(a)),c=new Set([...u].filter(l=>{let d=o.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=false:o.catchall?o.catchall&&(n.additionalProperties=le(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=false);},es=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===false,a=n.options.map((u,c)=>le(u,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a;},Zp=(e,t,r,i)=>{let n=e._zod.def,o=le(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=le(n.right,t,{...i,path:[...i.path,"allOf",1]}),u=l=>"allOf"in l&&Object.keys(l).length===1,c=[...u(o)?o.allOf:[o],...u(a)?a.allOf:[a]];r.allOf=c;},Wp=(e,t,r,i)=>{let n=r,o=e._zod.def;n.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=o.items.map((m,h)=>le(m,t,{...i,path:[...i.path,a,h]})),l=o.rest?le(o.rest,t,{...i,path:[...i.path,u,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),n.minItems=c.length,l||(n.maxItems=c.length)):(n.items=c,l&&(n.additionalItems=l));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p);},Gp=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=le(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let p of c)n.patternProperties[p.source]=d;}else (t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=le(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=le(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d);}},qp=(e,t,r,i)=>{let n=e._zod.def,o=le(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=true):r.anyOf=[o,{type:"null"}];},Hp=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;},Jp=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue));},Kp=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)));},Yp=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a;},Xp=(e,t,r,i)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;le(o,t,i);let a=t.seen.get(e);a.ref=o;},Qp=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=true;},ef=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;},ts=(e,t,r,i)=>{let n=e._zod.def;le(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;},tf=(e,t,r,i)=>{let n=e._zod.innerType;le(n,t,i);let o=t.seen.get(e);o.ref=n;},Qa={string:bp,number:Sp,boolean:xp,bigint:Dp,symbol:_p,null:Ep,undefined:wp,void:$p,never:kp,any:Ip,unknown:Op,date:Cp,enum:Rp,literal:Ap,nan:Tp,template_literal:Pp,file:Fp,success:jp,custom:zp,function:Np,transform:Up,map:Lp,set:Mp,array:Bp,object:Vp,union:es,intersection:Zp,tuple:Wp,record:Gp,nullable:qp,nonoptional:Hp,default:Jp,prefault:Kp,catch:Yp,pipe:Xp,readonly:Qp,promise:ef,optional:ts,lazy:tf};function ns(e,t){if("_idmap"in e){let i=e,n=Rn({...t,processors:Qa}),o={};for(let c of i._idmap.entries()){let[l,d]=c;le(d,n);}let a={},u={registry:i,uri:t?.uri,defs:o};n.external=u;for(let c of i._idmap.entries()){let[l,d]=c;An(n,d),a[l]=Tn(n,d);}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o};}return {schemas:a}}let r=Rn({...t,processors:Qa});return le(e,r),An(r,e),Tn(r,e)}var rs=class{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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Rn({processors:Qa,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}});}process(t,r={path:[],schemaPath:[]}){return le(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),An(this.ctx,t);let i=Tn(this.ctx,t),{"~standard":n,...o}=i;return o}};var By={};var no={};b(no,{ZodAny:()=>$f,ZodArray:()=>Cf,ZodBase64:()=>_s,ZodBase64URL:()=>Es,ZodBigInt:()=>mi,ZodBigIntFormat:()=>ks,ZodBoolean:()=>fi,ZodCIDRv4:()=>xs,ZodCIDRv6:()=>Ds,ZodCUID:()=>ms,ZodCUID2:()=>hs,ZodCatch:()=>Xf,ZodCodec:()=>js,ZodCustom:()=>mo,ZodCustomStringFormat:()=>di,ZodDate:()=>uo,ZodDefault:()=>Gf,ZodDiscriminatedUnion:()=>Af,ZodE164:()=>ws,ZodEmail:()=>ds,ZodEmoji:()=>ps,ZodEnum:()=>ci,ZodExactOptional:()=>Vf,ZodFile:()=>Mf,ZodFunction:()=>sm,ZodGUID:()=>ro,ZodIPv4:()=>bs,ZodIPv6:()=>Ss,ZodIntersection:()=>Tf,ZodJWT:()=>$s,ZodKSUID:()=>vs,ZodLazy:()=>im,ZodLiteral:()=>Lf,ZodMAC:()=>bf,ZodMap:()=>Nf,ZodNaN:()=>em,ZodNanoID:()=>fs,ZodNever:()=>If,ZodNonOptional:()=>Ps,ZodNull:()=>Ef,ZodNullable:()=>Wf,ZodNumber:()=>pi,ZodNumberFormat:()=>or,ZodObject:()=>lo,ZodOptional:()=>Ts,ZodPipe:()=>Fs,ZodPrefault:()=>Hf,ZodPromise:()=>am,ZodReadonly:()=>tm,ZodRecord:()=>fo,ZodSet:()=>Uf,ZodString:()=>li,ZodStringFormat:()=>ge,ZodSuccess:()=>Yf,ZodSymbol:()=>Df,ZodTemplateLiteral:()=>rm,ZodTransform:()=>Bf,ZodTuple:()=>Ff,ZodType:()=>ee,ZodULID:()=>gs,ZodURL:()=>so,ZodUUID:()=>Qt,ZodUndefined:()=>_f,ZodUnion:()=>po,ZodUnknown:()=>kf,ZodVoid:()=>Of,ZodXID:()=>ys,ZodXor:()=>Rf,_ZodString:()=>ls,_default:()=>qf,_function:()=>Hv,any:()=>kv,array:()=>co,base64:()=>lv,base64url:()=>dv,bigint:()=>Dv,boolean:()=>xf,catch:()=>Qf,check:()=>Jv,cidrv4:()=>uv,cidrv6:()=>cv,codec:()=>Wv,cuid:()=>ev,cuid2:()=>tv,custom:()=>Kv,date:()=>Ov,describe:()=>Yv,discriminatedUnion:()=>Pv,e164:()=>pv,email:()=>Zy,emoji:()=>Xy,enum:()=>Rs,exactOptional:()=>Zf,file:()=>Mv,float32:()=>vv,float64:()=>bv,function:()=>Hv,guid:()=>Wy,hash:()=>yv,hex:()=>gv,hostname:()=>hv,httpUrl:()=>Yy,instanceof:()=>Qv,int:()=>cs,int32:()=>Sv,int64:()=>_v,intersection:()=>Pf,ipv4:()=>ov,ipv6:()=>sv,json:()=>tb,jwt:()=>fv,keyof:()=>Cv,ksuid:()=>iv,lazy:()=>om,literal:()=>Lv,looseObject:()=>Av,looseRecord:()=>jv,mac:()=>av,map:()=>zv,meta:()=>Xv,nan:()=>Zv,nanoid:()=>Qy,nativeEnum:()=>Uv,never:()=>Is,nonoptional:()=>Kf,null:()=>wf,nullable:()=>oo,nullish:()=>Bv,number:()=>Sf,object:()=>Os,optional:()=>io,partialRecord:()=>Fv,pipe:()=>ao,prefault:()=>Jf,preprocess:()=>nb,promise:()=>qv,readonly:()=>nm,record:()=>zf,refine:()=>um,set:()=>Nv,strictObject:()=>Rv,string:()=>ui,stringFormat:()=>mv,stringbool:()=>eb,success:()=>Vv,superRefine:()=>cm,symbol:()=>wv,templateLiteral:()=>Gv,transform:()=>As,tuple:()=>jf,uint32:()=>xv,uint64:()=>Ev,ulid:()=>nv,undefined:()=>$v,union:()=>Cs,unknown:()=>ir,url:()=>Ky,uuid:()=>Gy,uuidv4:()=>qy,uuidv6:()=>Hy,uuidv7:()=>Jy,void:()=>Iv,xid:()=>rv,xor:()=>Tv});var is={};b(is,{endsWith:()=>Xr,gt:()=>Yt,gte:()=>nt,includes:()=>Kr,length:()=>rr,lowercase:()=>Hr,lt:()=>Kt,lte:()=>mt,maxLength:()=>nr,maxSize:()=>Cn,mime:()=>Qr,minLength:()=>mn,minSize:()=>Xt,multipleOf:()=>On,negative:()=>Ja,nonnegative:()=>Ya,nonpositive:()=>Ka,normalize:()=>ei,overwrite:()=>Ut,positive:()=>Ha,property:()=>Xa,regex:()=>qr,size:()=>tr,slugify:()=>ii,startsWith:()=>Yr,toLowerCase:()=>ni,toUpperCase:()=>ri,trim:()=>ti,uppercase:()=>Jr});var si={};b(si,{ZodISODate:()=>as,ZodISODateTime:()=>os,ZodISODuration:()=>us,ZodISOTime:()=>ss,date:()=>rf,datetime:()=>nf,duration:()=>af,time:()=>of});var os=y("ZodISODateTime",(e,t)=>{Tl.init(e,t),ge.init(e,t);});function nf(e){return zd(os,e)}var as=y("ZodISODate",(e,t)=>{Pl.init(e,t),ge.init(e,t);});function rf(e){return Nd(as,e)}var ss=y("ZodISOTime",(e,t)=>{Fl.init(e,t),ge.init(e,t);});function of(e){return Ud(ss,e)}var us=y("ZodISODuration",(e,t)=>{jl.init(e,t),ge.init(e,t);});function af(e){return Ld(us,e)}var Vy=(e,t)=>{Vi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Wi(e,r)},flatten:{value:r=>Zi(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Nr,2);}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Nr,2);}},isEmpty:{get(){return e.issues.length===0}}});},G0=y("ZodError",Vy),lt=y("ZodError",Vy,{Parent:Error});var sf=Mr(lt),uf=Br(lt),cf=Vr(lt),lf=Zr(lt),df=na(lt),pf=ra(lt),ff=ia(lt),mf=oa(lt),hf=aa(lt),gf=sa(lt),yf=ua(lt),vf=ca(lt);var ee=y("ZodType",(e,t)=>(X.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ai(e,"input"),output:ai(e,"output")}}),e.toJSONSchema=vp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(k.mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:true}),e.with=e.check,e.clone=(r,i)=>tt(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>sf(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>cf(e,r,i),e.parseAsync=async(r,i)=>uf(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>lf(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>df(e,r,i),e.decode=(r,i)=>pf(e,r,i),e.encodeAsync=async(r,i)=>ff(e,r,i),e.decodeAsync=async(r,i)=>mf(e,r,i),e.safeEncode=(r,i)=>hf(e,r,i),e.safeDecode=(r,i)=>gf(e,r,i),e.safeEncodeAsync=async(r,i)=>yf(e,r,i),e.safeDecodeAsync=async(r,i)=>vf(e,r,i),e.refine=(r,i)=>e.check(um(r,i)),e.superRefine=r=>e.check(cm(r)),e.overwrite=r=>e.check(Ut(r)),e.optional=()=>io(e),e.exactOptional=()=>Zf(e),e.nullable=()=>oo(e),e.nullish=()=>io(oo(e)),e.nonoptional=r=>Kf(e,r),e.array=()=>co(e),e.or=r=>Cs([e,r]),e.and=r=>Pf(e,r),e.transform=r=>ao(e,As(r)),e.default=r=>qf(e,r),e.prefault=r=>Jf(e,r),e.catch=r=>Qf(e,r),e.pipe=r=>ao(e,r),e.readonly=()=>nm(e),e.describe=r=>{let i=e.clone();return qe.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return qe.get(e)?.description},configurable:true}),e.meta=(...r)=>{if(r.length===0)return qe.get(e);let i=e.clone();return qe.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ls=y("_ZodString",(e,t)=>{er.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,n,o)=>bp(e,i,n);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(qr(...i)),e.includes=(...i)=>e.check(Kr(...i)),e.startsWith=(...i)=>e.check(Yr(...i)),e.endsWith=(...i)=>e.check(Xr(...i)),e.min=(...i)=>e.check(mn(...i)),e.max=(...i)=>e.check(nr(...i)),e.length=(...i)=>e.check(rr(...i)),e.nonempty=(...i)=>e.check(mn(1,...i)),e.lowercase=i=>e.check(Hr(i)),e.uppercase=i=>e.check(Jr(i)),e.trim=()=>e.check(ti()),e.normalize=(...i)=>e.check(ei(...i)),e.toLowerCase=()=>e.check(ni()),e.toUpperCase=()=>e.check(ri()),e.slugify=()=>e.check(ii());}),li=y("ZodString",(e,t)=>{er.init(e,t),ls.init(e,t),e.email=r=>e.check(Ia(ds,r)),e.url=r=>e.check(to(so,r)),e.jwt=r=>e.check(qa($s,r)),e.emoji=r=>e.check(Ta(ps,r)),e.guid=r=>e.check(eo(ro,r)),e.uuid=r=>e.check(Oa(Qt,r)),e.uuidv4=r=>e.check(Ca(Qt,r)),e.uuidv6=r=>e.check(Ra(Qt,r)),e.uuidv7=r=>e.check(Aa(Qt,r)),e.nanoid=r=>e.check(Pa(fs,r)),e.guid=r=>e.check(eo(ro,r)),e.cuid=r=>e.check(Fa(ms,r)),e.cuid2=r=>e.check(ja(hs,r)),e.ulid=r=>e.check(za(gs,r)),e.base64=r=>e.check(Za(_s,r)),e.base64url=r=>e.check(Wa(Es,r)),e.xid=r=>e.check(Na(ys,r)),e.ksuid=r=>e.check(Ua(vs,r)),e.ipv4=r=>e.check(La(bs,r)),e.ipv6=r=>e.check(Ma(Ss,r)),e.cidrv4=r=>e.check(Ba(xs,r)),e.cidrv6=r=>e.check(Va(Ds,r)),e.e164=r=>e.check(Ga(ws,r)),e.datetime=r=>e.check(nf(r)),e.date=r=>e.check(rf(r)),e.time=r=>e.check(of(r)),e.duration=r=>e.check(af(r));});function ui(e){return Td(li,e)}var ge=y("ZodStringFormat",(e,t)=>{he.init(e,t),ls.init(e,t);}),ds=y("ZodEmail",(e,t)=>{El.init(e,t),ge.init(e,t);});function Zy(e){return Ia(ds,e)}var ro=y("ZodGUID",(e,t)=>{Dl.init(e,t),ge.init(e,t);});function Wy(e){return eo(ro,e)}var Qt=y("ZodUUID",(e,t)=>{_l.init(e,t),ge.init(e,t);});function Gy(e){return Oa(Qt,e)}function qy(e){return Ca(Qt,e)}function Hy(e){return Ra(Qt,e)}function Jy(e){return Aa(Qt,e)}var so=y("ZodURL",(e,t)=>{wl.init(e,t),ge.init(e,t);});function Ky(e){return to(so,e)}function Yy(e){return to(so,{protocol:/^https?$/,hostname:$t.domain,...k.normalizeParams(e)})}var ps=y("ZodEmoji",(e,t)=>{$l.init(e,t),ge.init(e,t);});function Xy(e){return Ta(ps,e)}var fs=y("ZodNanoID",(e,t)=>{kl.init(e,t),ge.init(e,t);});function Qy(e){return Pa(fs,e)}var ms=y("ZodCUID",(e,t)=>{Il.init(e,t),ge.init(e,t);});function ev(e){return Fa(ms,e)}var hs=y("ZodCUID2",(e,t)=>{Ol.init(e,t),ge.init(e,t);});function tv(e){return ja(hs,e)}var gs=y("ZodULID",(e,t)=>{Cl.init(e,t),ge.init(e,t);});function nv(e){return za(gs,e)}var ys=y("ZodXID",(e,t)=>{Rl.init(e,t),ge.init(e,t);});function rv(e){return Na(ys,e)}var vs=y("ZodKSUID",(e,t)=>{Al.init(e,t),ge.init(e,t);});function iv(e){return Ua(vs,e)}var bs=y("ZodIPv4",(e,t)=>{zl.init(e,t),ge.init(e,t);});function ov(e){return La(bs,e)}var bf=y("ZodMAC",(e,t)=>{Ul.init(e,t),ge.init(e,t);});function av(e){return Fd(bf,e)}var Ss=y("ZodIPv6",(e,t)=>{Nl.init(e,t),ge.init(e,t);});function sv(e){return Ma(Ss,e)}var xs=y("ZodCIDRv4",(e,t)=>{Ll.init(e,t),ge.init(e,t);});function uv(e){return Ba(xs,e)}var Ds=y("ZodCIDRv6",(e,t)=>{Ml.init(e,t),ge.init(e,t);});function cv(e){return Va(Ds,e)}var _s=y("ZodBase64",(e,t)=>{Vl.init(e,t),ge.init(e,t);});function lv(e){return Za(_s,e)}var Es=y("ZodBase64URL",(e,t)=>{Zl.init(e,t),ge.init(e,t);});function dv(e){return Wa(Es,e)}var ws=y("ZodE164",(e,t)=>{Wl.init(e,t),ge.init(e,t);});function pv(e){return Ga(ws,e)}var $s=y("ZodJWT",(e,t)=>{Gl.init(e,t),ge.init(e,t);});function fv(e){return qa($s,e)}var di=y("ZodCustomStringFormat",(e,t)=>{ql.init(e,t),ge.init(e,t);});function mv(e,t,r={}){return oi(di,e,t,r)}function hv(e){return oi(di,"hostname",$t.hostname,e)}function gv(e){return oi(di,"hex",$t.hex,e)}function yv(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=$t[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return oi(di,i,n,t)}var pi=y("ZodNumber",(e,t)=>{ba.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Sp(e,i,n),e.gt=(i,n)=>e.check(Yt(i,n)),e.gte=(i,n)=>e.check(nt(i,n)),e.min=(i,n)=>e.check(nt(i,n)),e.lt=(i,n)=>e.check(Kt(i,n)),e.lte=(i,n)=>e.check(mt(i,n)),e.max=(i,n)=>e.check(mt(i,n)),e.int=i=>e.check(cs(i)),e.safe=i=>e.check(cs(i)),e.positive=i=>e.check(Yt(0,i)),e.nonnegative=i=>e.check(nt(0,i)),e.negative=i=>e.check(Kt(0,i)),e.nonpositive=i=>e.check(mt(0,i)),e.multipleOf=(i,n)=>e.check(On(i,n)),e.step=(i,n)=>e.check(On(i,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=true,e.format=r.format??null;});function Sf(e){return Md(pi,e)}var or=y("ZodNumberFormat",(e,t)=>{Hl.init(e,t),pi.init(e,t);});function cs(e){return Vd(or,e)}function vv(e){return Zd(or,e)}function bv(e){return Wd(or,e)}function Sv(e){return Gd(or,e)}function xv(e){return qd(or,e)}var fi=y("ZodBoolean",(e,t)=>{Ji.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xp(e,r,i);});function xf(e){return Hd(fi,e)}var mi=y("ZodBigInt",(e,t)=>{Sa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Dp(e,i),e.gte=(i,n)=>e.check(nt(i,n)),e.min=(i,n)=>e.check(nt(i,n)),e.gt=(i,n)=>e.check(Yt(i,n)),e.gte=(i,n)=>e.check(nt(i,n)),e.min=(i,n)=>e.check(nt(i,n)),e.lt=(i,n)=>e.check(Kt(i,n)),e.lte=(i,n)=>e.check(mt(i,n)),e.max=(i,n)=>e.check(mt(i,n)),e.positive=i=>e.check(Yt(BigInt(0),i)),e.negative=i=>e.check(Kt(BigInt(0),i)),e.nonpositive=i=>e.check(mt(BigInt(0),i)),e.nonnegative=i=>e.check(nt(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(On(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null;});function Dv(e){return Kd(mi,e)}var ks=y("ZodBigIntFormat",(e,t)=>{Jl.init(e,t),mi.init(e,t);});function _v(e){return Xd(ks,e)}function Ev(e){return Qd(ks,e)}var Df=y("ZodSymbol",(e,t)=>{Kl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_p(e,r);});function wv(e){return ep(Df,e)}var _f=y("ZodUndefined",(e,t)=>{Yl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wp(e,r);});function $v(e){return tp(_f,e)}var Ef=y("ZodNull",(e,t)=>{Xl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ep(e,r,i);});function wf(e){return np(Ef,e)}var $f=y("ZodAny",(e,t)=>{Ql.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ip();});function kv(){return rp($f)}var kf=y("ZodUnknown",(e,t)=>{ed.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Op();});function ir(){return ip(kf)}var If=y("ZodNever",(e,t)=>{td.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kp(e,r,i);});function Is(e){return op(If,e)}var Of=y("ZodVoid",(e,t)=>{nd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$p(e,r);});function Iv(e){return ap(Of,e)}var uo=y("ZodDate",(e,t)=>{rd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Cp(e,i),e.min=(i,n)=>e.check(nt(i,n)),e.max=(i,n)=>e.check(mt(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null;});function Ov(e){return sp(uo,e)}var Cf=y("ZodArray",(e,t)=>{id.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bp(e,r,i,n),e.element=t.element,e.min=(r,i)=>e.check(mn(r,i)),e.nonempty=r=>e.check(mn(1,r)),e.max=(r,i)=>e.check(nr(r,i)),e.length=(r,i)=>e.check(rr(r,i)),e.unwrap=()=>e.element;});function co(e,t){return lp(Cf,e,t)}function Cv(e){let t=e._zod.def.shape;return Rs(Object.keys(t))}var lo=y("ZodObject",(e,t)=>{od.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vp(e,r,i,n),k.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Rs(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ir()}),e.loose=()=>e.clone({...e._zod.def,catchall:ir()}),e.strict=()=>e.clone({...e._zod.def,catchall:Is()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>k.extend(e,r),e.safeExtend=r=>k.safeExtend(e,r),e.merge=r=>k.merge(e,r),e.pick=r=>k.pick(e,r),e.omit=r=>k.omit(e,r),e.partial=(...r)=>k.partial(Ts,e,r[0]),e.required=(...r)=>k.required(Ps,e,r[0]);});function Os(e,t){let r={type:"object",shape:e??{},...k.normalizeParams(t)};return new lo(r)}function Rv(e,t){return new lo({type:"object",shape:e,catchall:Is(),...k.normalizeParams(t)})}function Av(e,t){return new lo({type:"object",shape:e,catchall:ir(),...k.normalizeParams(t)})}var po=y("ZodUnion",(e,t)=>{Ki.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>es(e,r,i,n),e.options=t.options;});function Cs(e,t){return new po({type:"union",options:e,...k.normalizeParams(t)})}var Rf=y("ZodXor",(e,t)=>{po.init(e,t),ad.init(e,t),e._zod.processJSONSchema=(r,i,n)=>es(e,r,i,n),e.options=t.options;});function Tv(e,t){return new Rf({type:"union",options:e,inclusive:false,...k.normalizeParams(t)})}var Af=y("ZodDiscriminatedUnion",(e,t)=>{po.init(e,t),sd.init(e,t);});function Pv(e,t,r){return new Af({type:"union",options:t,discriminator:e,...k.normalizeParams(r)})}var Tf=y("ZodIntersection",(e,t)=>{ud.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zp(e,r,i,n);});function Pf(e,t){return new Tf({type:"intersection",left:e,right:t})}var Ff=y("ZodTuple",(e,t)=>{xa.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wp(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r});});function jf(e,t,r){let i=t instanceof X,n=i?r:t,o=i?t:null;return new Ff({type:"tuple",items:e,rest:o,...k.normalizeParams(n)})}var fo=y("ZodRecord",(e,t)=>{cd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gp(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType;});function zf(e,t,r){return new fo({type:"record",keyType:e,valueType:t,...k.normalizeParams(r)})}function Fv(e,t,r){let i=tt(e);return i._zod.values=void 0,new fo({type:"record",keyType:i,valueType:t,...k.normalizeParams(r)})}function jv(e,t,r){return new fo({type:"record",keyType:e,valueType:t,mode:"loose",...k.normalizeParams(r)})}var Nf=y("ZodMap",(e,t)=>{ld.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lp(e,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Xt(...r)),e.nonempty=r=>e.check(Xt(1,r)),e.max=(...r)=>e.check(Cn(...r)),e.size=(...r)=>e.check(tr(...r));});function zv(e,t,r){return new Nf({type:"map",keyType:e,valueType:t,...k.normalizeParams(r)})}var Uf=y("ZodSet",(e,t)=>{dd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mp(e,r),e.min=(...r)=>e.check(Xt(...r)),e.nonempty=r=>e.check(Xt(1,r)),e.max=(...r)=>e.check(Cn(...r)),e.size=(...r)=>e.check(tr(...r));});function Nv(e,t){return new Uf({type:"set",valueType:e,...k.normalizeParams(t)})}var ci=y("ZodEnum",(e,t)=>{pd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Rp(e,i,n),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ci({...t,checks:[],...k.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new ci({...t,checks:[],...k.normalizeParams(n),entries:o})};});function Rs(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ci({type:"enum",entries:r,...k.normalizeParams(t)})}function Uv(e,t){return new ci({type:"enum",entries:e,...k.normalizeParams(t)})}var Lf=y("ZodLiteral",(e,t)=>{fd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ap(e,r,i),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 Lv(e,t){return new Lf({type:"literal",values:Array.isArray(e)?e:[e],...k.normalizeParams(t)})}var Mf=y("ZodFile",(e,t)=>{md.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fp(e,r,i),e.min=(r,i)=>e.check(Xt(r,i)),e.max=(r,i)=>e.check(Cn(r,i)),e.mime=(r,i)=>e.check(Qr(Array.isArray(r)?r:[r],i));});function Mv(e){return dp(Mf,e)}var Bf=y("ZodTransform",(e,t)=>{hd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Up(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new En(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(k.issue(o,r.value,t));else {let a=o;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(k.issue(a));}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)};});function As(e){return new Bf({type:"transform",transform:e})}var Ts=y("ZodOptional",(e,t)=>{Da.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ts(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function io(e){return new Ts({type:"optional",innerType:e})}var Vf=y("ZodExactOptional",(e,t)=>{gd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ts(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function Zf(e){return new Vf({type:"optional",innerType:e})}var Wf=y("ZodNullable",(e,t)=>{yd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function oo(e){return new Wf({type:"nullable",innerType:e})}function Bv(e){return io(oo(e))}var Gf=y("ZodDefault",(e,t)=>{vd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function qf(e,t){return new Gf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():k.shallowClone(t)}})}var Hf=y("ZodPrefault",(e,t)=>{bd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function Jf(e,t){return new Hf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():k.shallowClone(t)}})}var Ps=y("ZodNonOptional",(e,t)=>{Sd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function Kf(e,t){return new Ps({type:"nonoptional",innerType:e,...k.normalizeParams(t)})}var Yf=y("ZodSuccess",(e,t)=>{xd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jp(e,r,i),e.unwrap=()=>e._zod.def.innerType;});function Vv(e){return new Yf({type:"success",innerType:e})}var Xf=y("ZodCatch",(e,t)=>{Dd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Qf(e,t){return new Xf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var em=y("ZodNaN",(e,t)=>{_d.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tp(e,r);});function Zv(e){return cp(em,e)}var Fs=y("ZodPipe",(e,t)=>{Ed.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xp(e,r,i,n),e.in=t.in,e.out=t.out;});function ao(e,t){return new Fs({type:"pipe",in:e,out:t})}var js=y("ZodCodec",(e,t)=>{Fs.init(e,t),Yi.init(e,t);});function Wv(e,t,r){return new js({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var tm=y("ZodReadonly",(e,t)=>{wd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function nm(e){return new tm({type:"readonly",innerType:e})}var rm=y("ZodTemplateLiteral",(e,t)=>{$d.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pp(e,r,i);});function Gv(e,t){return new rm({type:"template_literal",parts:e,...k.normalizeParams(t)})}var im=y("ZodLazy",(e,t)=>{Od.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>tf(e,r,i,n),e.unwrap=()=>e._zod.def.getter();});function om(e){return new im({type:"lazy",getter:e})}var am=y("ZodPromise",(e,t)=>{Id.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ef(e,r,i,n),e.unwrap=()=>e._zod.def.innerType;});function qv(e){return new am({type:"promise",innerType:e})}var sm=y("ZodFunction",(e,t)=>{kd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Np(e,r);});function Hv(e){return new sm({type:"function",input:Array.isArray(e?.input)?jf(e?.input):e?.input??co(ir()),output:e?.output??ir()})}var mo=y("ZodCustom",(e,t)=>{Cd.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zp(e,r);});function Jv(e){let t=new ye({check:"custom"});return t._zod.check=e,t}function Kv(e,t){return pp(mo,e??(()=>true),t)}function um(e,t={}){return fp(mo,e,t)}function cm(e){return mp(e)}var Yv=hp,Xv=gp;function Qv(e,t={}){let r=new mo({type:"custom",check:"custom",fn:i=>i instanceof e,abort:true,...k.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]});},r}var eb=(...e)=>yp({Codec:js,Boolean:fi,String:li},...e);function tb(e){let t=om(()=>Cs([ui(e),Sf(),xf(),wf(),co(t),zf(ui(),t)]));return t}function nb(e,t){return ao(As(e),t)}var H0={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 J0(e){$e({customError:e});}function K0(){return $e().customError}var lm;lm||(lm={});var P={...no,...is,iso:si},Y0=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 X0(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Q0(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function rb(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return P.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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return P.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=Q0(n,t),a=He(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===true&&n.length===1&&n[0]===null)return P.null();if(n.length===0)return P.never();if(n.length===1)return P.literal(n[0]);if(n.every(a=>typeof a=="string"))return P.enum(n);let o=n.map(a=>P.literal(a));return o.length<2?o[0]:P.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return P.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return rb(a,t)});return n.length===0?P.never():n.length===1?n[0]:P.union(n)}if(!r)return P.any();let i;switch(r){case "string":{let n=P.string();if(e.format){let o=e.format;o==="email"?n=n.check(P.email()):o==="uri"||o==="uri-reference"?n=n.check(P.url()):o==="uuid"||o==="guid"?n=n.check(P.uuid()):o==="date-time"?n=n.check(P.iso.datetime()):o==="date"?n=n.check(P.iso.date()):o==="time"?n=n.check(P.iso.time()):o==="duration"?n=n.check(P.iso.duration()):o==="ipv4"?n=n.check(P.ipv4()):o==="ipv6"?n=n.check(P.ipv6()):o==="mac"?n=n.check(P.mac()):o==="cidr"?n=n.check(P.cidrv4()):o==="cidr-v6"?n=n.check(P.cidrv6()):o==="base64"?n=n.check(P.base64()):o==="base64url"?n=n.check(P.base64url()):o==="e164"?n=n.check(P.e164()):o==="jwt"?n=n.check(P.jwt()):o==="emoji"?n=n.check(P.emoji()):o==="nanoid"?n=n.check(P.nanoid()):o==="cuid"?n=n.check(P.cuid()):o==="cuid2"?n=n.check(P.cuid2()):o==="ulid"?n=n.check(P.ulid()):o==="xid"?n=n.check(P.xid()):o==="ksuid"&&(n=n.check(P.ksuid()));}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case "number":case "integer":{let n=r==="integer"?P.number().int():P.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===true&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===true&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case "boolean":{i=P.boolean();break}case "null":{i=P.null();break}case "object":{let n={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let d=He(l,t);n[c]=a.has(c)?d:d.optional();}if(e.propertyNames){let c=He(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?He(e.additionalProperties,t):P.any();if(Object.keys(n).length===0){i=P.record(c,l);break}let d=P.object(n).passthrough(),p=P.looseRecord(c,l);i=P.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let m of l){let h=He(c[m],t),v=P.string().regex(new RegExp(m));d.push(P.looseRecord(v,h));}let p=[];if(Object.keys(n).length>0&&p.push(P.object(n).passthrough()),p.push(...d),p.length===0)i=P.object({}).passthrough();else if(p.length===1)i=p[0];else {let m=P.intersection(p[0],p[1]);for(let h=2;h<p.length;h++)m=P.intersection(m,p[h]);i=m;}break}let u=P.object(n);e.additionalProperties===false?i=u.strict():typeof e.additionalProperties=="object"?i=u.catchall(He(e.additionalProperties,t)):i=u.passthrough();break}case "array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>He(c,t)),u=o&&typeof o=="object"&&!Array.isArray(o)?He(o,t):void 0;u?i=P.tuple(a).rest(u):i=P.tuple(a),typeof e.minItems=="number"&&(i=i.check(P.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(P.maxLength(e.maxItems)));}else if(Array.isArray(o)){let a=o.map(c=>He(c,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?He(e.additionalItems,t):void 0;u?i=P.tuple(a).rest(u):i=P.tuple(a),typeof e.minItems=="number"&&(i=i.check(P.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(P.maxLength(e.maxItems)));}else if(o!==void 0){let a=He(o,t),u=P.array(a);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),i=u;}else i=P.array(P.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function He(e,t){if(typeof e=="boolean")return e?P.any():P.never();let r=rb(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let u=e.anyOf.map(l=>He(l,t)),c=P.union(u);r=i?P.intersection(r,c):c;}if(e.oneOf&&Array.isArray(e.oneOf)){let u=e.oneOf.map(l=>He(l,t)),c=P.xor(u);r=i?P.intersection(r,c):c;}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:P.any();else {let u=i?r:He(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)u=P.intersection(u,He(e.allOf[l],t));r=u;}e.nullable===true&&t.version==="openapi-3.0"&&(r=P.nullable(r)),e.readOnly===true&&(r=P.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let u of o)u in e&&(n[u]=e[u]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let u of a)u in e&&(n[u]=e[u]);for(let u of Object.keys(e))Y0.has(u)||(n[u]=e[u]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function ib(e,t){if(typeof e=="boolean")return e?P.any():P.never();let r=X0(e,t?.defaultTarget),i=e.$defs||e.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??qe};return He(e,n)}var dm={};b(dm,{bigint:()=>rI,boolean:()=>nI,date:()=>iI,number:()=>tI,string:()=>eI});function eI(e){return Pd(li,e)}function tI(e){return Bd(pi,e)}function nI(e){return Jd(fi,e)}function rI(e){return Yd(mi,e)}function iI(e){return up(uo,e)}$e(_a());async function ob({ms:e,signal:t}){t?.throwIfAborted(),await new Promise(r=>{let n=setTimeout(()=>{t?.removeEventListener("abort",o),r();},e),o=()=>{clearTimeout(n),r();};t?.addEventListener("abort",o,{once:true});}),t?.throwIfAborted();}var aI=300;function ab(e){return sb({...e,attempt:1})}async function sb(e){let t=await sI(e);return !t.retryable||e.attempt>=e.policy.attempts?t.outcome:(await ob({ms:uI(e.attempt),signal:e.init.signal??void 0}),sb({...e,attempt:e.attempt+1}))}async function sI({fetch:e,init:t,policy:r,url:i}){try{t.signal?.throwIfAborted();let n=AbortSignal.timeout(r.timeoutMs),o=t.signal==null?n:AbortSignal.any([t.signal,n]),a=await e(i,{...t,signal:o});return {outcome:{kind:"response",response:a},retryable:a.status>=500}}catch(n){return t.signal?.throwIfAborted(),{outcome:{detail:n instanceof Error?n.message:String(n),kind:"unreachable"},retryable:true}}}function uI(e){return aI*3**(e-1)*(.5+Math.random())}var cI=15e3,lI=3,zs=class extends Error{detail;serverUrl;constructor({detail:t,serverUrl:r}){super(`Failed to connect to Ripplo server at ${r}. Check the server is running and reachable. Details: ${t}`),this.name="GqlConnectionError",this.detail=t,this.serverUrl=r;}},ar=class extends Error{errors;constructor(t){super(t.map(r=>r.message).join(", ")),this.name="GqlRequestError",this.errors=t;}};function pm(e){if(e instanceof ar)return e.errors[0]?.extensions?.code}var dI={attempts:lI,timeoutMs:cI};async function Ae(e){return pI({headers:{},params:e,policy:dI,signal:void 0})}async function pI(e){let{headers:t,params:r,policy:i}=e,{print:n}=await import('./graphql-Z4UDRCDF.js'),o=n(r.document),a=JSON.stringify({query:o,variables:r.variables}),u=`${r.config.ripploServerUrl}/graphql`,c=await fI({init:{body:a,headers:{...t,Authorization:`Bearer ${r.config.token}`,"Content-Type":"application/json"},method:"POST",signal:e.signal},policy:i,serverUrl:r.config.ripploServerUrl,url:u}),l=await mI({res:c,url:u});if(!hI(l))throw new Error("Invalid GraphQL response");if(gI(l))throw new ar(l.errors);if(l.data==null)throw new Error("No data returned from server");return l.data}async function fI({init:e,policy:t,serverUrl:r,url:i}){let n=await ab({fetch:globalThis.fetch,init:e,policy:t,url:i});if(n.kind==="response"&&n.response.status<500)return n.response;throw new zs({detail:n.kind==="response"?`server returned status ${String(n.response.status)}`:n.detail,serverUrl:r})}async function mI({res:e,url:t}){let r=await e.text();if(r.length===0)throw new Error(`Empty response from Ripplo server at ${t} (status ${String(e.status)}). The server may have restarted or the request was rejected before a body was sent.`);try{return JSON.parse(r)}catch{throw new Error(`Non-JSON response from Ripplo server at ${t} (status ${String(e.status)}): ${r.slice(0,200)}`)}}function hI(e){return typeof e=="object"&&e!=null&&("data"in e||"errors"in e)}function gI(e){return Array.isArray(e.errors)&&e.errors.length>0}var hi=s.enum(["gt","gte","lt","lte"]),gi=s.union([s.string(),s.number(),s.boolean(),s.null()]),Te=s.json();s.record(s.string().min(1),Te);var ue=s.object({path:s.array(s.string().min(1)),source:s.string().min(1)}),yI=s.enum(["observed","setup"]),ub=s.intersection(ue,s.object({ownership:yI}));var dt=s.lazy(()=>s.discriminatedUnion("kind",[s.object({kind:s.literal("value"),value:gi}),s.object({kind:s.literal("reference"),path:s.array(s.string().min(1)).min(1),record:s.string().min(1)}),s.object({kind:s.literal("path"),selector:ue}),s.object({kind:s.literal("count"),selection:ho}),s.object({kind:s.literal("add"),left:dt,right:dt}),s.object({dividend:dt,divisor:dt,kind:s.literal("divide")}),s.object({kind:s.literal("concat"),values:s.array(dt).min(1)}),s.object({kind:s.literal("invert"),value:dt}),s.object({kind:s.literal("before")}),s.object({kind:s.literal("after")})])),Lt=s.lazy(()=>s.discriminatedUnion("kind",[s.object({kind:s.literal("equals"),left:dt,right:dt}),s.object({kind:s.literal("compare"),left:dt,op:hi,right:dt}),s.object({kind:s.literal("text"),left:dt,op:s.enum(["contains","startsWith"]),right:dt}),s.object({kind:s.literal("exists"),selection:ho}),s.object({kind:s.literal("not"),relation:Lt}),s.object({kind:s.literal("and"),relations:s.array(Lt).min(1)}),s.object({kind:s.literal("or"),relations:s.array(Lt).min(1)})])),ho=s.lazy(()=>s.object({alias:s.string().min(1),relation:Lt.nullable(),selector:ue}));var cb=s.enum(["fast","slow","async"]),go=s.object({ref:s.string().min(1)}),ur=s.union([s.string(),s.number(),s.boolean()]);var Ns=s.object({template:s.array(s.union([s.string(),go,dt])).min(1)}),lb=s.lazy(()=>s.union([go,ur,Ns])),sr=s.lazy(()=>s.union([lb,s.null()])),vI=s.lazy(()=>s.discriminatedUnion("kind",[s.object({kind:s.literal("not"),value:sr}),s.object({kind:s.literal("compare"),op:hi,value:sr}),s.object({kind:s.literal("anyOf"),values:s.array(sr).min(1)}),s.object({kind:s.literal("contains"),value:Mt}),s.object({kind:s.literal("startsWith"),value:Mt})])),bI=s.lazy(()=>s.object({entity:s.string().min(1),where:s.record(s.string().min(1),xI).default({})})),SI=s.lazy(()=>s.object({field:s.string().min(1),kind:s.literal("within"),selection:bI})),xI=s.lazy(()=>s.union([sr,SI,vI])),fm=s.lazy(()=>s.union([Mt,s.object({kind:s.literal("contains"),value:Mt}),s.object({kind:s.literal("startsWith"),value:Mt})])),DI=s.union([s.literal("increased"),s.literal("decreased")]),_I=s.object({direction:s.union([DI,s.undefined()]).optional().transform(e=>e),kind:s.literal("changed")});s.union([sr,_I]);var Mt=s.union([s.string(),go,Ns]);var EI=s.object({by:s.literal("role"),name:s.union([Mt,s.undefined()]).optional().transform(e=>e),role:s.string().min(1)}),wI=s.object({by:s.literal("testId"),value:Mt}),$I=s.object({by:s.literal("inside"),scope:s.lazy(()=>Ve),target:s.lazy(()=>Ve)}),kI=s.object({by:s.literal("surface"),container:s.lazy(()=>Ve),overlay:s.boolean()}),II=s.object({by:s.literal("frame"),element:s.lazy(()=>Ve)}),Ve=s.discriminatedUnion("by",[EI,wI,s.object({by:s.literal("element"),name:s.string().min(1),values:s.record(s.string().min(1),lb)}),$I,kI,II]),yo=s.enum(["string","number","boolean"]),db=s.enum(["strict","eventual"]),OI=s.enum(["companyName","email","fullName","id","slug","url","word"]),CI=s.object({kind:s.literal("pattern"),maxLength:s.number().int().positive().optional(),minLength:s.number().int().nonnegative().optional(),name:s.string().min(1),pattern:s.string().min(1),refine:s.string().min(1).optional(),sampler:OI.optional()}),RI=s.object({kind:s.literal("enum"),name:s.string().min(1),values:s.array(ur).min(1)}),AI=s.object({kind:s.literal("number"),max:s.number().int(),min:s.number().int(),name:s.string().min(1)}),TI=s.object({kind:s.literal("boolean"),name:s.string().min(1)}),PI=s.object({kind:s.literal("datetime"),maxOffsetDays:s.number().int(),minOffsetDays:s.number().int(),name:s.string().min(1)}),pb=s.discriminatedUnion("kind",[CI,RI,AI,TI,PI]);var FI=s.object({consistency:db.default("strict"),optional:s.boolean(),type:yo,valueSpace:s.string().min(1).optional()}),fb=s.enum(["backend","client"]);s.object({description:s.string().optional(),identity:s.array(s.string().min(1)).min(1),identityKind:s.enum(["surrogate","natural"]),name:s.string().min(1),principal:s.boolean().default(false),props:s.record(s.string().min(1),FI),source:fb.default("backend")});s.object({consistency:db.default("strict"),default:ur,description:s.string().optional(),name:s.string().min(1),source:fb.default("backend"),type:yo,valueSpace:s.string().min(1).optional()});var mb=s.enum(["url","title","viewport"]),hb=s.enum(["mobile","desktop"]);var _e=s.lazy(()=>s.discriminatedUnion("by",[s.object({by:s.literal("role"),name:s.union([s.string(),s.undefined()]).optional().transform(e=>e),role:s.string()}),s.object({by:s.literal("testId"),value:s.string()}),s.object({by:s.literal("element"),name:s.string().min(1),values:s.record(s.string(),ur)}),s.object({by:s.literal("inside"),scope:_e,target:_e}),s.object({by:s.literal("surface"),container:_e,overlay:s.boolean()}),s.object({by:s.literal("frame"),element:_e})])),gb=s.union([s.string(),s.number(),s.boolean(),s.null()]),Us=s.discriminatedUnion("kind",[s.object({kind:s.literal("goto"),url:s.string()}),s.object({kind:s.literal("fill"),locator:_e,value:gb}),s.object({kind:s.literal("clear"),locator:_e}),s.object({kind:s.literal("click"),locator:_e}),s.object({kind:s.literal("dblclick"),locator:_e}),s.object({kind:s.literal("select"),locator:_e,value:gb}),s.object({kind:s.literal("check"),locator:_e}),s.object({kind:s.literal("uncheck"),locator:_e}),s.object({kind:s.literal("hover"),locator:_e}),s.object({files:s.array(s.string().min(1)).min(1),kind:s.literal("upload"),locator:_e}),s.object({key:s.string().min(1),kind:s.literal("press"),locator:_e.optional()}),s.object({kind:s.literal("drag"),source:_e,target:_e})]);var jI=s.object({actual:s.string(),expected:s.string(),log:s.array(s.string()),name:s.string(),timeoutMs:s.number().int().nullable()}),zI=s.object({label:s.string().min(1),role:s.string().min(1)}),NI=3,Ls=s.object({ancestors:s.array(zI).max(NI),name:s.string().nullable(),role:s.string().nullable(),tag:s.string(),visible:s.boolean()}),yi={expectedRole:s.string().nullable()},vo={...yi,description:s.string()},Ms=s.discriminatedUnion("kind",[s.object({...vo,issues:s.array(s.string()),kind:s.literal("binding-values-invalid")}),s.object({...vo,kind:s.literal("binding-unbound"),locator:_e}),s.object({...vo,kind:s.literal("binding-missed"),locator:_e}),s.object({...vo,aliasOf:s.string().min(1),kind:s.literal("binding-alias")}),s.object({...vo,kind:s.literal("binding-unattributed"),reason:s.enum(["unbound","missed"])})]);new Set(Ms.options.map(e=>e.shape.kind.value));var UI=s.discriminatedUnion("kind",[...Ms.options,s.object({...yi,kind:s.literal("absent")}),s.object({...yi,kind:s.literal("hidden"),matches:s.array(Ls).min(1)}),s.object({...yi,kind:s.literal("ambiguous"),matches:s.array(Ls).min(2)}),s.object({...yi,kind:s.literal("text-elsewhere"),match:Ls,partial:s.boolean()}),s.object({...yi,actualName:s.string(),kind:s.literal("name-differs"),match:Ls})]),en=s.object({ariaSnapshot:s.string().nullable(),matcher:jI.nullable(),message:s.string(),miss:UI.nullable()});var Bs=s.object({path:s.array(s.string().min(1)),recordKeyIndex:s.number().int().nonnegative().nullable(),source:s.string().min(1)});var LI=s.record(s.string(),Te),MI=s.object({module:s.string().min(1)}),BI=s.object({implementation:MI.optional(),jsonSchema:LI,name:s.string().min(1),schemaHash:s.string().regex(/^[0-9a-f]{64}$/u)});s.object({binding:BI,datetimePaths:s.array(Bs).default([]),eventualPaths:s.array(Bs).default([]),recordPaths:s.array(ub).default([]),setupPaths:s.array(Bs).default([])});var yb=s.discriminatedUnion("kind",[s.object({kind:s.literal("equals"),selector:ue,value:Te}),s.object({kind:s.literal("absent-path"),selector:ue}),s.object({alias:s.string().min(1),fields:s.record(s.string().min(1),Te),kind:s.literal("required-record"),selector:ue}),s.object({fields:s.record(s.string().min(1),Te),kind:s.literal("absent-record"),selector:ue}),s.object({kind:s.literal("closed-record"),rows:s.array(Te),selector:ue}),s.object({kind:s.literal("relation"),label:s.string().min(1),relation:Lt})]);var VI=s.discriminatedUnion("kind",[s.object({kind:s.literal("transform"),relation:Lt}),s.object({kind:s.literal("value"),value:Te}),s.object({kind:s.literal("reference"),path:s.array(s.string().min(1)).min(1),record:s.string().min(1)})]),ZI=s.discriminatedUnion("kind",[s.object({kind:s.literal("null")}),s.object({kind:s.literal("scalar"),nullable:s.boolean(),type:yo})]),vb=s.object({domain:ZI,kind:s.literal("state-ref"),path:s.array(s.string().min(1)).min(1)}),WI=s.discriminatedUnion("kind",[s.object({kind:s.literal("absent")}),s.object({kind:s.literal("generated")}),vb,s.object({kind:s.literal("value"),value:Te}),s.object({kind:s.literal("reference"),path:s.array(s.string().min(1)).min(1),record:s.string().min(1)})]),Vs=s.discriminatedUnion("kind",[s.object({kind:s.literal("set"),selector:ue,value:Te}),s.object({kind:s.literal("transform"),relation:Lt,selector:ue}),s.object({kind:s.literal("create-path"),selector:ue,value:Te}),s.object({kind:s.literal("delete-path"),selector:ue}),s.object({as:s.string().min(1),fields:s.record(s.string().min(1),WI),kind:s.literal("create-record"),selector:ue}),s.object({kind:s.literal("delete-selected-records"),selection:ho,selector:ue}),s.object({changes:s.record(s.string().min(1),VI),kind:s.literal("update-selected-records"),selection:ho,selector:ue})]);s.object({constraints:s.array(yb),effects:s.array(Vs)});var gn=s.discriminatedUnion("present",[s.object({present:s.literal(false)}),s.object({present:s.literal(true),value:Te})]),mm=s.discriminatedUnion("kind",[s.object({actual:gn,constraint:yb,kind:s.literal("constraint"),selector:ue}),s.object({actual:gn,before:gn,effect:Vs,kind:s.literal("effect"),selector:ue,targetKeys:s.array(s.string())}),s.object({actual:gn,before:gn,kind:s.literal("unexpected-change"),selector:ue})]);s.object({mismatches:s.array(mm),requiredStateHolds:s.boolean()});var GI=s.discriminatedUnion("kind",[s.object({kind:s.literal("state")}),s.object({kind:s.literal("record"),path:s.array(s.string().min(1)).min(1)})]),Pn=s.lazy(()=>s.discriminatedUnion("kind",[s.object({fields:s.record(s.string().min(1),Pn),kind:s.literal("object")}),s.object({items:s.array(Pn),kind:s.literal("array")}),s.object({kind:s.literal("generate"),name:s.string().min(1),nullable:s.boolean(),space:pb,type:yo}),s.object({kind:s.literal("reference"),operation:s.string().min(1),path:s.array(s.string().min(1))}),vb,s.object({kind:s.literal("value"),value:Te})]));var qI=s.object({id:s.string().min(1),input:Pn,optional:s.boolean(),source:s.string().min(1),target:GI});var bo=s.discriminatedUnion("kind",[s.object({kind:s.literal("equals"),selector:ue,value:Pn}),s.object({kind:s.literal("absent-path"),selector:ue}),s.object({alias:s.string().min(1),kind:s.literal("optional-path"),operation:s.string().min(1),selector:ue,value:Pn}),s.object({alias:s.string().min(1),fields:s.record(s.string().min(1),Pn),kind:s.literal("required-record"),selector:ue}),s.object({alias:s.string().min(1),fields:s.record(s.string().min(1),Pn),kind:s.literal("optional-record"),selector:ue}),s.object({fields:s.record(s.string().min(1),Pn),kind:s.literal("absent-record"),selector:ue}),s.object({kind:s.literal("closed-record"),operations:s.array(s.string().min(1)),selector:ue}),s.object({kind:s.literal("relation"),label:s.string().min(1),relation:Lt})]);s.object({constraints:s.array(bo),operations:s.array(qI)});var HI=s.object({added:s.array(Te),collection:s.string().min(1),declared:s.record(s.string().min(1),Te),pending:s.record(s.string().min(1),s.enum(["absent","generated","reference","unresolved"]))}),hm=s.enum(["create-session","teardown"]),JI=s.enum(["unconfigured","navigate","not-signed-in","ticket-rejected"]),KI=s.enum(["create","read","setup"]),YI=s.discriminatedUnion("kind",[s.object({kind:s.literal("field"),name:s.string()}),s.object({kind:s.literal("record-entry")}),s.object({kind:s.literal("array-entry")})]),XI=s.object({issues:s.array(s.object({branches:s.array(s.number().int().nonnegative()),code:s.enum(["invalid_type","too_big","too_small","invalid_format","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","invalid_value","custom"]),path:s.array(s.union([s.string(),s.number()])),schemaPath:s.array(YI)})).min(1),schemaHash:s.string()}),bb=[s.object({detail:s.string(),kind:s.literal("authentication-http"),operation:hm,status:s.number().int()}),s.object({code:s.string().nullable(),kind:s.literal("authentication-network"),message:s.string(),operation:hm}),s.object({kind:s.literal("app-not-ready"),timeoutMs:s.number().int()}),s.object({kind:s.literal("authentication-response"),message:s.string(),operation:hm}),s.object({detail:s.string(),kind:s.literal("sign-in-failed"),stage:JI}),s.object({kind:s.literal("binding-failed"),message:s.string(),operation:KI,validation:XI.optional()}),s.object({kind:s.literal("state-setup"),message:s.string()}),s.object({fields:s.record(s.string().min(1),Te),kind:s.literal("read-only-record-unmatched"),selector:ue}),s.object({kind:s.literal("driver-launch"),message:s.string()}),s.object({kind:s.literal("state-effect-reference"),path:s.array(s.string()),record:s.string(),unbound:s.array(HI).optional()}),s.object({kind:s.literal("run-failed"),message:s.string()}),s.object({kind:s.literal("model-preparation"),message:s.string()}),s.object({action:s.string().optional(),kind:s.literal("workflow-plan"),reason:s.enum(["required-state-unsatisfied","no-effect","unresolvable","contradictory-expectations","action-relationship-unmet","invalid-state-effect"]),stepIndex:s.number().int().nonnegative(),test:s.string().min(1),unmet:s.string().optional()}),s.object({binding:Ms.optional(),kind:s.literal("page-read"),message:s.string()}),s.object({kind:s.literal("state-mismatch"),mismatches:s.array(mm).min(1)}),s.object({kind:s.literal("aborted")})],Sb=s.discriminatedUnion("kind",[...bb]);s.discriminatedUnion("kind",[...bb,s.object({action:s.string(),failure:en,kind:s.literal("action-failed")}),s.object({failure:en,kind:s.literal("check-failed")})]);var QI=new Set(["localhost","127.0.0.1","[::1]"]),xb="*";var gm="zz-ripplo-wildcard-zz",eO=2;function vi(e){let t=URL.parse(tO(e));if(t==null||!ym(t)||e.includes("#"))return null;let r=e.split(xb).length-1;if(r===0)return {kind:"exact",url:e};if(r>1||!t.hostname.includes(gm))return null;let i=t.hostname.split("."),n=i.findIndex(o=>o.includes(gm));return i.length-n-1<eO?null:{kind:"host-pattern",url:e}}function tO(e){return e.replace(xb,gm)}function ym(e){return e.protocol==="https:"?true:e.protocol==="http:"&&QI.has(e.hostname)}var vm=500,nO=/^(?:\d{1,3}(?:\.\d{1,3}){3}|\[.*\])$/u,Zs=s.string().trim().max(vm).refine(e=>wb(e),{message:"Must be an https URL with a hostname such as example.com, not an IP address. Plain http is allowed only on localhost."}),Ws=s.string().trim().min(1,"Required.").max(vm).refine(e=>e.startsWith("/")||wb(e),{message:"Must be a path starting with / or a full https URL. Plain http is allowed only on localhost."}),Db=s.string().trim().min(1,"Required.").max(60).regex(/^\S+$/u,"No spaces. The name is typed as auth=<name> in a GitHub comment."),cr=s.string().trim().min(1,"Required.").max(vm).refine(e=>vi(e)!=null,{message:"Must be an https address with no fragment. Plain http is allowed only on localhost. One * is allowed in the hostname, not in its last two labels."}),rO={name:Db,redirectUris:s.array(s.object({value:cr})).min(1,"Add at least one redirect URI."),signInEntry:Ws},_b="********",iO=s.object({enabled:s.literal(false)}),oO=s.object({baseUrl:Zs,enabled:s.literal(true),token:s.string().min(1,"Required.")}),Eb={...rO,scim:s.discriminatedUnion("enabled",[iO,oO])};s.object(Eb).transform(({redirectUris:e,scim:t,...r})=>({...r,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token}:null}));s.object(Eb).transform(({redirectUris:e,scim:t,...r})=>({...r,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token===_b?null:t.token}:null}));function wb(e){let t=URL.parse(e);return t!=null&&ym(t)&&t.hostname.length>0&&!nO.test(t.hostname)}var bm=cr;function Gs(e){let t=s.discriminatedUnion("expect",[s.object({expect:s.literal("is"),value:e}),s.object({expect:s.literal("not"),value:e}),s.object({expect:s.literal("absent")})]);return s.union([t,s.object({clauses:s.tuple([t,t]).rest(t).readonly(),expect:s.literal("all")})])}var uO=s.discriminatedUnion("kind",[s.object({kind:s.literal("path")}),s.object({key:s.string().min(1),kind:s.literal("query")}),s.object({kind:s.literal("hash")})]),Bt=s.union([cb,s.undefined()]).optional().transform(e=>e),tn=s.union([s.boolean(),s.undefined()]).optional().transform(e=>e),xm=s.object({alias:s.string().min(1),kind:s.literal("optional-record")}),Dm=s.object({alias:s.string().min(1),kind:s.literal("optional-path")}),_m=s.object({kind:s.literal("state-equals"),selector:ue,value:gi}),Em=s.object({kind:s.literal("state-compare"),op:hi,selector:ue,value:s.union([s.number(),s.string()])}),wm=s.object({kind:s.literal("state-relation"),relation:Lt}),cO=s.object({kind:s.literal("viewport"),value:hb}),Sm=s.lazy(()=>s.discriminatedUnion("kind",[Dm,xm,Em,_m,wm,s.object({kind:s.literal("not"),predicate:Sm}),s.object({kind:s.literal("and"),predicates:s.array(Sm)}),s.object({kind:s.literal("or"),predicates:s.array(Sm).min(1)})])),qs=s.lazy(()=>s.discriminatedUnion("kind",[Dm,xm,Em,_m,wm,cO,s.object({kind:s.literal("not"),predicate:qs}),s.object({kind:s.literal("and"),predicates:s.array(qs)}),s.object({kind:s.literal("or"),predicates:s.array(qs).min(1)})])),lO=s.lazy(()=>s.object({condition:s.union([qs,s.undefined()]).optional().transform(e=>e),consequence:s.array(bi),effects:s.array(Vs).default([]),name:s.string().min(1)})),bi=s.lazy(()=>s.discriminatedUnion("kind",[s.object({ephemeral:tn,kind:s.literal("visible"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("unobstructed"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("disabled"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("enabled"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("focused"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("checked"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("expanded"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("pressed"),locator:Ve,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("value"),locator:Ve,value:fm,wait:Bt}),s.object({ephemeral:tn,kind:s.literal("text"),locator:Ve,value:fm,wait:Bt}),s.object({kind:s.literal("browser"),name:mb,part:s.union([uO,s.undefined()]).optional().transform(e=>e),value:s.union([Mt,s.null()]),wait:Bt}),s.object({kind:s.literal("not"),predicate:bi}),s.object({kind:s.literal("and"),predicates:s.array(bi)}),s.object({kind:s.literal("or"),predicates:s.array(bi).min(1)}),Dm,xm,Em,_m,wm,s.object({branches:s.array(lO),kind:s.literal("when")})]));var $m=s.enum(["visible","enabled","focused","checked","expanded","pressed","value","text"]),km=s.discriminatedUnion("kind",[s.object({kind:s.literal("variable"),name:s.string().min(1)}),s.object({kind:s.literal("path")}),s.object({key:s.string().min(1),kind:s.literal("query")}),s.object({kind:s.literal("hash")}),s.object({kind:s.literal("title")}),s.object({kind:s.literal("viewport")})]),dO=s.discriminatedUnion("kind",[...km.options,s.object({kind:s.literal("element"),locator:Ve,state:$m})]),pO=Gs(sr),fO=s.object({expect:pO,subject:dO}),Hs=s.number().int().nonnegative(),mO=s.discriminatedUnion("kind",[s.object({kind:s.literal("user")}),s.object({kind:s.literal("anonymous")}),s.object({kind:s.literal("any")})]),$b=s.discriminatedUnion("kind",[s.object({kind:s.literal("user")}),s.object({kind:s.literal("anonymous")})]),hO=s.object({actor:mO.default({kind:"any"}),scalars:s.array(Hs)}),gO=s.discriminatedUnion("kind",[s.object({kind:s.literal("test"),test:s.string().min(1)}),s.object({kind:s.literal("declared"),name:s.string().min(1)})]),yO=s.object({consequence:bi,localConsequence:s.boolean(),logicalWhen:s.array(bo).default([]),origin:s.union([gO,s.undefined()]).optional().transform(e=>e),refs:s.array(s.string()),when:Hs}),vO=s.object({facts:s.array(yO),overrides:s.record(s.string(),s.array(s.string()))}),bO=s.object({stepIndex:s.union([s.number().int().nonnegative(),s.undefined()]).optional().transform(e=>e),testRef:s.string().min(1),testSlug:s.string().min(1),workflowIntent:s.string().min(1),workflowSlug:s.string().min(1)}),SO=s.object({steps:s.array(s.object({borrowed:s.array(Hs),stepIndex:s.number().int().nonnegative()})),testRef:s.string().min(1),testSlug:s.string().min(1),workflowSlug:s.string().min(1)}),xO=s.object({fact:Hs,origins:s.array(bO)});vO.extend({epoch:s.string().optional(),factPool:s.array(xO),factReports:s.array(SO),patternTable:s.array(hO),scalarTable:s.array(fO)});var kb=s.object({__codec:s.string().min(1),data:s.unknown(),version:s.number().int().positive()}),Js=class extends Error{codec;currentVersion;gotVersion;constructor(t){super(`Unsupported ${t.codec} version ${String(t.gotVersion)} (current ${String(t.currentVersion)}). Upgrade Ripplo or rebuild with a compatible CLI.`),this.name="CodecVersionError",this.codec=t.codec,this.currentVersion=t.currentVersion,this.gotVersion=t.gotVersion;}},Ks=class extends Error{constructor(t){super(`Codec mismatch: expected "${t.expected}", got "${t.got}"`),this.name="CodecMismatchError";}};function Ib({name:e,schema:t,steps:r=[]}){let i=r.length+1;return {currentVersion:i,minimumVersion:r.reduce((n,o,a)=>o.kind==="semantic"?a+2:n,1),name:e,decode:n=>DO({name:e,raw:n,schema:t,steps:r}),encode:n=>({__codec:e,data:n,version:i}),versionOf:n=>{let o=kb.parse(n);if(o.__codec!==e)throw new Ks({expected:e,got:o.__codec});return o.version}}}function DO({name:e,raw:t,schema:r,steps:i}){let n=i.length+1,o=kb.parse(t);if(o.__codec!==e)throw new Ks({expected:e,got:o.__codec});if(o.version>n)throw new Js({codec:e,currentVersion:n,gotVersion:o.version});let a=i.slice(o.version-1);if(a.some(c=>c.kind==="semantic"))throw new Js({codec:e,currentVersion:n,gotVersion:o.version});let u=a.reduce((c,l)=>l.kind==="reshape"?l.migrate(c):c,o.data);return r.parse(u)}var Im={boundAlias:void 0,braced:false};function Ys(e,t=Im){return e.kind==="not"?`not ${Ys(e.relation,t)}`:e.kind==="and"||e.kind==="or"?e.relations.map(r=>Ys(r,t)).join(` ${e.kind} `):e.kind==="exists"?`${Ob(e.selection,t)} exists`:e.kind==="text"?`${Je(e.left,t)} ${e.op} ${Je(e.right,t)}`:e.kind==="compare"?`${Je(e.left,t)} is ${e.op} ${Je(e.right,t)}`:`${Je(e.left,t)} is ${Je(e.right,t)}`}function Ob(e,t=Im){let r=e.selector.path.join("."),i=r.length===0?e.selector.source:r;return e.relation==null?`records in ${i}`:`records in ${i} where ${Ys(e.relation,{...t,boundAlias:e.alias})}`}function Je(e,t=Im){switch(e.kind){case "value":return JSON.stringify(e.value);case "reference":{if(e.record===t.boundAlias)return e.path.join(".");let r=`${e.record}.${e.path.join(".")}`;return t.braced?`{{${r}}}`:r}case "path":return _O(e);case "count":return `count of ${Ob(e.selection,t)}`;case "add":return `${Je(e.left,t)} + ${Je(e.right,t)}`;case "divide":return `${Je(e.dividend,t)} / ${Je(e.divisor,t)}`;case "concat":return e.values.map(r=>Je(r,t)).join(" + ");case "invert":return `opposite of ${Je(e.value,t)}`;case "after":case "before":return e.kind}}function _O(e){let t=e.selector.path.join(".");return t.length===0?e.selector.source:t}function So(e){return e===null?"null":typeof e=="string"||typeof e=="number"||typeof e=="boolean"?String(e):"ref"in e?`{{${e.ref}}}`:e.template.map(t=>typeof t=="string"?t:"ref"in t?`{{${t.ref}}}`:`{{${Je(t)}}}`).join("")}function yn(e){return typeof e=="string"?e:"ref"in e?`{{${e.ref}}}`:e.template.map(t=>EO(t)).join("")}function EO(e){return typeof e=="string"?e:"ref"in e?`{{${e.ref}}}`:`{{${Je(e)}}}`}function Si(e){if(e.by==="element"){let t=Object.entries(e.values).map(([r,i])=>`${r}: ${So(i)}`).join(", ");return `${e.name}(${t})`}if(e.by==="role"){let t=e.name==null?"":` "${yn(e.name)}"`;return `${e.role}${t}`}return e.by==="testId"?`[${yn(e.value)}]`:e.by==="surface"?Si(e.container):e.by==="frame"?`frame ${Si(e.element)}`:`${Si(e.target)} in ${Si(e.scope)}`}function Vt(e){if(e.by==="element")return Si(e);if(e.by==="testId")return `testId=${yn(e.value)}`;if(e.by==="inside")return `${Vt(e.scope)} \u25B8 ${Vt(e.target)}`;if(e.by==="surface")return Vt(e.container);if(e.by==="frame")return `frame ${Vt(e.element)}`;let t=e.name==null?"":yn(e.name);return `${e.role} ${t}`.trim()}var wO=["visible","unobstructed","disabled","enabled","focused","checked","expanded","pressed"],$O=["value","text"],Cm=s.enum(wO),Rm=s.enum($O),kO=s.discriminatedUnion("kind",[s.object({checkId:s.string(),kind:s.literal("step")}),s.object({factId:s.string(),kind:s.literal("fact")}),s.object({kind:s.literal("dataRule"),ruleId:s.string()})]),Cb=s.discriminatedUnion("kind",[s.object({kind:s.literal("wrongScalar"),observed:s.string().nullable()})]),IO=s.enum(["increased","decreased"]),xo={entity:s.string(),key:s.string()},OO=s.object({declared:s.string(),field:s.string(),read:s.string()}),Tb=s.discriminatedUnion("kind",[s.object({...xo,expected:s.string(),field:s.string(),kind:s.literal("wrongValue"),observed:s.string()}),s.object({...xo,kind:s.literal("missingRow"),nearest:s.array(OO)}),s.object({...xo,kind:s.literal("unexpectedRow")}),s.object({...xo,kind:s.literal("unexpectedlyDeleted")}),s.object({...xo,direction:IO.nullable(),field:s.string(),from:s.string(),kind:s.literal("neverChanged"),observed:s.string()}),s.object({entity:s.string(),expected:s.number().int(),kind:s.literal("wrongCount"),observed:s.number().int()})]),Om=s.object({stepIndex:s.number().int(),testRef:s.string()}).nullable(),CO=s.discriminatedUnion("kind",[...Tb.options,s.object({declaredAt:Om,expected:s.string().nullable(),kind:s.literal("wrongScalar"),observed:s.string().nullable(),subject:s.string(),subjectKey:s.string()}),s.object({checkKind:Cm,declaredAt:Om,kind:s.literal("wrongElementState"),observed:s.boolean(),subject:s.string(),subjectKey:s.string()}),s.object({checkKind:Rm,declaredAt:Om,expected:s.string().nullable(),kind:s.literal("wrongElementContent"),observed:s.string().nullable(),subject:s.string(),subjectKey:s.string()})]);function Fn(e){return s.discriminatedUnion("kind",[s.object({kind:s.literal("passed")}),s.object({kind:s.literal("failed"),reason:e})])}function Am(e,t){return s.discriminatedUnion("kind",[s.object({kind:s.literal("passed"),observed:t.optional()}),s.object({kind:s.literal("failed"),observed:t.optional(),reason:e})])}var RO=s.array(s.record(s.string().min(1),gn)),Zt={ephemeral:s.boolean(),kind:s.literal("check"),ordinal:s.number().int().optional(),origin:kO,rrwebIds:s.array(s.number()),source:s.literal("verifier"),stepIndex:s.number().int(),timeNanos:s.string(),waitedMs:s.number()},Rb=s.enum(["variable","path","query","hash","title","viewport","element"]),Ab=s.enum(["exact","contains","startsWith"]),AO=s.discriminatedUnion("shape",[s.object({...Zt,checkKind:Cm,family:s.literal("element"),negated:s.boolean(),outcome:Fn(en),shape:s.literal("legacy"),subject:s.string()}),s.object({...Zt,checkKind:Cm,family:s.literal("element"),locator:_e,negated:s.boolean(),outcome:Fn(en),shape:s.literal("concrete")})]),TO=s.discriminatedUnion("shape",[s.object({...Zt,checkKind:Rm,expected:s.string(),family:s.literal("content"),match:Ab,negated:s.boolean(),outcome:Fn(en),shape:s.literal("legacy"),subject:s.string()}),s.object({...Zt,checkKind:Rm,expected:s.string(),family:s.literal("content"),locator:_e,match:Ab,negated:s.boolean(),outcome:Fn(en),shape:s.literal("concrete")})]),PO=s.discriminatedUnion("shape",[s.object({...Zt,expected:s.string().nullable(),family:s.literal("scalar"),negated:s.boolean(),outcome:Am(Cb,gn),shape:s.literal("legacy"),subject:s.string(),subjectKey:s.string(),subjectKind:Rb}),s.object({...Zt,expected:s.string().nullable(),family:s.literal("scalar"),locator:_e.nullable(),negated:s.boolean(),outcome:Am(Cb,gn),shape:s.literal("concrete"),subject:s.string().nullable(),subjectKey:s.string(),subjectKind:Rb})]),FO=s.discriminatedUnion("shape",[s.object({...Zt,actionKind:s.string(),family:s.literal("action"),outcome:Fn(en),shape:s.literal("legacy"),subject:s.string(),value:s.string().nullable()}),s.object({...Zt,action:Us,family:s.literal("action"),outcome:Fn(en),shape:s.literal("concrete")})]),Pb=s.discriminatedUnion("family",[AO,TO,PO,s.object({...Zt,assertion:s.enum(["created","updated","deleted","exists","absent","count"]),entity:s.string(),family:s.literal("state"),outcome:Am(Tb,RO),subject:s.string()}),s.object({...Zt,family:s.literal("frame"),outcome:Fn(CO)}),FO,s.object({...Zt,family:s.literal("dataRule"),outcome:Fn(s.discriminatedUnion("kind",[s.object({kind:s.literal("violated")})])),rule:s.string()})]),Fb=s.object({error:Sb,kind:s.literal("stepError"),source:s.literal("verifier"),stepIndex:s.number().int(),timeNanos:s.string()});var Tm=s.intersection(s.union([Ns,go]),s.object({deferred:s.literal(true)})),jb=s.union([s.string(),Tm]),jO=s.union([gi,Tm]),Do=s.lazy(()=>s.discriminatedUnion("by",[s.object({by:s.literal("role"),name:s.union([jb,s.undefined()]).optional().transform(e=>e),role:s.string()}),s.object({by:s.literal("testId"),value:jb}),s.object({by:s.literal("element"),name:s.string(),values:s.record(s.string(),s.union([ur,Tm]))}),s.object({by:s.literal("inside"),scope:Do,target:Do}),s.object({by:s.literal("surface"),container:Do,overlay:s.boolean()}),s.object({by:s.literal("frame"),element:Do})])),zO=s.discriminatedUnion("kind",[...km.options,s.object({kind:s.literal("element"),locator:Do,state:$m})]),NO=Gs(jO),UO=s.object({declared:s.boolean(),expect:NO,subject:zO}),zb=s.object({actor:$b,scalars:s.array(UO).readonly()});var Nb={logical:s.array(bo).readonly(),result:s.string().regex(/^[a-f0-9]{64}$/u),snapshot:zb},LO=s.discriminatedUnion("kind",[s.object({...Nb,kind:s.literal("admission")}),s.object({...Nb,assertedScalars:s.array(s.string()).readonly(),kind:s.literal("checks")})]),MO=s.object({identity:s.string().regex(/^[a-f0-9]{64}$/u),queries:s.array(LO).min(1).readonly()}),Ub=s.object({coverage:MO,kind:s.literal("coverage"),source:s.literal("verifier"),timeNanos:s.string()});var Lb=s.record(s.string(),s.unknown()),BO="recorded-description";function lr({path:e,transform:t,value:r}){let[i,...n]=e;if(i==null)return t(r);if(i==="*")return s.array(s.unknown()).parse(r).map(a=>lr({path:n,transform:t,value:a}));let o=Lb.parse(r);return o[i]==null?o:{...o,[i]:lr({path:n,transform:t,value:o[i]})}}function Mb({transform:e,value:t}){if(t==null)return t;let r=Lb.parse(t),i=r.by==="inside"?["scope","target"]:[],n=r.by==="surface"?["container"]:[],o=r.by==="frame"?["element"]:[],a=[...i,...n,...o];return a.length===0?e(r):Object.fromEntries(Object.entries(r).map(([u,c])=>[u,a.includes(u)?Mb({transform:e,value:c}):c]))}function xi(e){return Mb({transform:VO,value:e})}function VO(e){return e.by==="describe"?{by:"element",name:BO,values:{description:Mt.parse(e.description)}}:e}function Xs({paths:e,transform:t,value:r}){return e.reduce((i,n)=>lr({path:n,transform:t,value:i}),r)}function Bb({locator:e,value:t}){return Xs({paths:[["locator"],["source"],["target"]],transform:e,value:t})}function Vb(e){return s.array(s.record(s.string(),s.unknown())).parse(e).map(t=>ZO(t))}function ZO(e){switch(e.kind){case "check":{let t=lr({path:["action"],value:e,transform:r=>Bb({locator:xi,value:r})});return Xs({paths:[["locator"],["outcome","reason","miss","locator"]],transform:xi,value:t})}case "stepError":return Xs({paths:[["error","binding","locator"],["error","failure","miss","locator"]],transform:xi,value:e});case "coverage":return lr({path:["coverage","queries","*","snapshot","scalars","*","subject","locator"],transform:xi,value:e});default:return e}}function Zb(e){return Array.isArray(e)?e.map(t=>Pm(t)):e}var WO=s.object({container:s.string().nullable(),name:s.string().nullable(),role:s.string().nullable(),tag:s.string(),visible:s.boolean()}),GO=/^(\S+) ("(?:[^"\\]|\\.)*")$/u;function Pm(e){if(Array.isArray(e))return e.map(r=>Pm(r));if(typeof e!="object"||e==null)return e;let t=WO.safeParse(e);if(t.success){let{container:r,...i}=t.data;return {...i,ancestors:qO(r)}}return Object.fromEntries(Object.entries(e).map(([r,i])=>[r,Pm(i)]))}function qO(e){let t=e==null?null:GO.exec(e);return t?.[1]==null||t[2]==null?[]:[{label:s.string().parse(JSON.parse(t[2])),role:t[1]}]}var HO=["unspecified","internal","server","client","producer","consumer"],JO=["unset","ok","error"],KO=s.looseObject({node:s.looseObject({id:s.number()}).optional(),parentId:s.number().nullable().optional()}),YO=s.looseObject({data:s.looseObject({adds:s.array(KO).optional(),attributes:s.array(s.looseObject({id:s.number()})).optional(),removes:s.array(s.looseObject({id:s.number()})).optional(),source:s.number().optional(),texts:s.array(s.looseObject({id:s.number()})).optional()}).optional(),timestamp:s.number(),type:s.number()}),nn=s.string(),XO=s.object({action:s.string(),kind:s.literal("action"),source:s.literal("test"),target:s.string().optional(),timeNanos:nn,value:s.string().optional()}),QO=s.object({event:YO,kind:s.literal("rrweb"),rrwebType:s.string(),source:s.literal("browser"),timeNanos:nn}),eC=s.object({durationMs:s.number().optional(),kind:s.literal("network"),method:s.string(),requestBody:s.string().optional(),resourceType:s.string(),responseBody:s.string().optional(),source:s.literal("browser"),spanId:s.string().optional(),status:s.number(),timeNanos:nn,traceId:s.string().optional(),url:s.string()}),tC=s.object({kind:s.literal("console"),level:s.string(),source:s.literal("browser"),text:s.string(),timeNanos:nn}),nC=s.discriminatedUnion("problem",[s.object({message:s.string(),problem:s.literal("page-error"),stack:s.string().optional()}),s.object({method:s.string(),path:s.string(),problem:s.literal("server-error"),status:s.number()}),s.object({method:s.string(),path:s.string(),problem:s.literal("request-failed"),reason:s.string()})]),rC=s.object({count:s.number().int().min(1),detail:nC,kind:s.literal("health"),source:s.literal("browser"),stepIndex:s.number().int().min(0).optional(),timeNanos:nn}),iC=s.object({clientVersion:s.string(),kind:s.literal("meta"),source:s.literal("capture"),timeNanos:nn}),oC=s.object({kind:s.literal("notice"),message:s.string(),source:s.literal("capture"),timeNanos:nn}),aC=s.discriminatedUnion("kind",[s.object({kind:s.literal("unrunnable"),reason:s.enum(["requiredStateUnsatisfied","noEffect","unresolvable","contradictoryExpectations","actionRelationshipUnmet","invalidStateEffect"]),unmet:s.string().nullable()}),s.object({action:s.string(),kind:s.literal("impossibleAction"),subject:s.string()}),s.object({declaredIndex:s.number(),kind:s.literal("liftVisibility"),subject:s.string(),visibleIndex:s.number()})]),sC=s.object({kind:s.literal("finding"),payload:aC,source:s.literal("verifier"),step:s.string(),stepIndex:s.number(),timeNanos:nn}),uC=s.object({changed:s.boolean(),field:s.string(),generated:s.boolean(),value:s.string().nullable()}),cC=s.object({entity:s.string(),fields:s.array(uC),key:s.string(),label:s.string(),status:s.enum(["present","created","deleted"])}),lC=s.object({changed:s.boolean(),generated:s.boolean(),name:s.string(),value:s.string().nullable()}),Wb={duration:s.number(),executedBranches:s.array(s.string()).default([]),kind:s.literal("step"),nodeType:s.string(),pageUrl:s.string().nullable(),recordingEndMs:s.number(),recordingStartMs:s.number(),source:s.literal("verifier"),sourceTest:s.string().nullable(),stateBindings:s.record(s.string(),s.json()).default({}),stateRows:s.array(cC),stateSingletons:s.array(lC),status:s.enum(["failed","passed","pending"]).optional(),stepIndex:s.number(),timeNanos:nn},dC=s.discriminatedUnion("shape",[s.object({...Wb,shape:s.literal("legacy"),title:s.string()}),s.object({...Wb,action:Us.nullable(),shape:s.literal("concrete")})]),Hb=s.object({attributes:s.record(s.string(),s.string()),durationMs:s.number(),kind:s.literal("span"),name:s.string(),parentSpanId:s.string().optional(),source:s.literal("server"),spanId:s.string(),spanKind:s.enum(HO),status:s.object({code:s.enum(JO),message:s.string().optional()}),timeNanos:nn,traceId:s.string()}),pC=s.discriminatedUnion("kind",[XO,QO,eC,tC,rC,iC,oC,sC,Pb,Fb,Hb,dC,Ub]),Jb=Ib({name:"ripplo-behavior",schema:s.array(s.unknown()),steps:[{kind:"semantic"},{kind:"semantic"},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:xC},{kind:"semantic"},{kind:"reshape",migrate:wC},{kind:"reshape",migrate:IC},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:vC},{kind:"reshape",migrate:hC},{kind:"reshape",migrate:Vb},{kind:"reshape",migrate:fC},{kind:"reshape",migrate:Zb},{kind:"reshape",migrate:e=>e}]});function fC(e){return Array.isArray(e)?e.map(t=>mC(t)):e}function mC(e){let t=Ke.safeParse(e);if(!t.success||t.data.kind!=="check")return e;let r=Ke.safeParse(t.data.outcome);if(!r.success)return e;let i=Ke.safeParse(r.data.reason);return !i.success||i.data.kind!=="missingRow"||"nearest"in i.data?e:{...t.data,outcome:{...r.data,reason:{...i.data,nearest:[]}}}}function hC(e){return Array.isArray(e)?e.map(t=>gC(t)):e}function gC(e){let t=Ke.safeParse(e);if(!t.success||t.data.kind!=="execution-witness")return e;let{witness:r,...i}=t.data,n=Ke.safeParse(r);if(!n.success)return e;let{localIdentity:o,...a}=n.data;return {...i,coverage:{...a,identity:o},kind:"coverage"}}var yC=s.object({description:s.string(),expectedRole:s.string().nullable(),kind:s.literal("binding-unresolved"),locator:Te.optional(),reason:s.enum(["unbound","missed","missing-values"])});function vC(e){return Array.isArray(e)?e.map(t=>bC(t)):e}function bC(e){let t=Ke.safeParse(e);if(!t.success)return e;if(t.data.kind==="stepError"){let n=Ke.safeParse(t.data.error);return n.success&&"binding"in n.data?{...t.data,error:{...n.data,binding:Gb(n.data.binding)}}:e}let r=Ke.safeParse(t.data.outcome),i=r.success?Ke.safeParse(r.data.reason):void 0;return !r.success||i?.success!==true||!("miss"in i.data)?e:{...t.data,outcome:{...r.data,reason:{...i.data,miss:Gb(i.data.miss)}}}}function Gb(e){let t=yC.safeParse(e);if(!t.success)return e;let{description:r,expectedRole:i,locator:n,reason:o}=t.data,a={description:r,expectedRole:i};return o==="missing-values"?{...a,issues:[],kind:"binding-values-invalid"}:n===void 0?{...a,kind:"binding-unattributed",reason:o}:{...a,kind:o==="missed"?"binding-missed":"binding-unbound",locator:n}}var SC=s.object({by:s.string().optional(),count:s.number().optional(),kind:s.string(),message:s.string().optional(),observed:s.unknown().optional()});function xC(e){return Array.isArray(e)?e.map(t=>DC(t)):e}var Ke=s.record(s.string(),Te);function DC(e){let t=Ke.safeParse(e);if(!t.success)return e;let r=Ke.safeParse(t.data.outcome);if(!r.success)return e;let i=SC.safeParse(r.data.reason);return i.success?{...t.data,outcome:{...r.data,reason:_C(i.data)}}:e}function _C(e){return {ariaSnapshot:null,matcher:null,message:CC(e),miss:null}}var EC=s.object({ariaSnapshot:s.unknown(),matcher:s.unknown(),message:s.string()});function wC(e){return Array.isArray(e)?e.map(t=>$C(t)):e}function $C(e){let t=Ke.safeParse(e);if(!t.success)return e;let r=Ke.safeParse(t.data.outcome);if(!r.success)return e;let i=r.data.reason,n=EC.safeParse(i);return !n.success||typeof i=="object"&&i!=null&&"miss"in i?e:{...t.data,outcome:{...r.data,reason:{...n.data,miss:null}}}}var kC=s.object({kind:s.enum(["wrongScalar","wrongElementState","wrongElementContent"]),subjectKey:s.string()});function IC(e){return Array.isArray(e)?e.map(t=>OC(t)):e}function OC(e){let t=Ke.safeParse(e);if(!t.success||t.data.family!=="frame")return e;let r=Ke.safeParse(t.data.outcome);if(!r.success)return e;let i=Ke.safeParse(r.data.reason);return !i.success||!kC.safeParse(i.data).success||"declaredAt"in i.data?e:{...t.data,outcome:{...r.data,reason:{...i.data,declaredAt:null}}}}function CC(e){return e.kind==="notFound"?"expected visible, matched 0 elements":e.kind==="multipleMatches"?`matched ${String(e.count??0)} elements`:e.kind==="covered"?`covered by ${e.by??"another element"}`:e.kind==="notPossible"?"the action is not possible on this element":e.kind==="unclassified"?e.message??"":JSON.stringify(e)}var RC=s.object({__codec:s.string().min(1),version:s.number().int().positive()});function _o(e){let t=e.split(`
45
- `).filter(u=>u.length>0),r=t[0],i=r==null?null:qb(r),n=RC.parse(i),o=t.slice(1).flatMap(u=>{let c=qb(u);return c==null?[]:[c]});return Jb.decode({...n,data:o}).flatMap(u=>{let c=pC.safeParse(u);return c.success?[c.data]:[]})}function dr(e){return Number(BigInt(e)/1000000n)}function qb(e){try{return JSON.parse(e)}catch{return null}}function Kb({differences:e,labels:t}){let r=e.slice(0,5).map(({declared:a,field:u,read:c})=>`${u} (${t.declared} ${a}, ${t.read} ${c})`).join(", "),i=e.length-5,n=i>0?`, and ${String(i)} more`:"",o=e.length===1?"field":"fields";return `The closest row differs in ${String(e.length)} ${o}: ${r}${n}.`}function pr(e){return e.shape==="legacy"?e.subject:e.family==="action"?Yb(e.action):e.family==="scalar"?AC(e):Vt(e.locator)}function AC(e){if(e.locator!=null)return Vt(e.locator);if(e.subject==null)throw new Error(`Concrete scalar check "${e.subjectKey}" has neither locator nor subject`);return e.subject}function Yb(e){return e.kind==="goto"?e.url:e.kind==="drag"?`${Vt(e.source)} to ${Vt(e.target)}`:e.kind==="press"?e.locator==null?e.key:Vt(e.locator):Vt(e.locator)}function Xb(e){return e.shape==="legacy"?e.actionKind:e.action.kind}function Fm(e){if(e.outcome.kind!=="passed")switch(e.family){case "element":return TC(e,e.outcome.reason);case "content":return PC(e,e.outcome.reason);case "scalar":return FC(e,e.outcome.reason.observed);case "state":return jm(e.outcome.reason);case "frame":return Qb(e.outcome.reason);case "action":return `Could not ${Xb(e)} ${pr(e)} \u2014 ${Nm(e.outcome.reason)}`;case "dataRule":return `Data rule ${e.rule} broke \u2014 a referenced row went missing`}}function TC(e,t){let r=pr(e),i=qC(e.negated,e.checkKind),n=rS(t);return n==null?`${r} was expected ${i} \u2014 ${Nm(t)}`:`${r} was expected ${i} but was ${n}`}function PC(e,t){let r=pr(e),i=e.negated?"not ":"",n=`${r} was expected ${i}to show ${ht(e.expected)}`,o=rS(t);return o==null?`${n} \u2014 ${Nm(t)}`:`${n} but showed ${ht(o)}`}function FC(e,t){let r=pr(e),i=jn(e.expected);return e.negated?`${r} was expected not to be ${i} but still was`:`${r} was expected to be ${i} but was ${jn(t)}`}function Qb(e){return `Undeclared change: ${eS(e)}. ${UC(e)}`}function jm(e){switch(e.kind){case "wrongValue":return `${e.entity}.${e.field} for row ${e.key} was declared ${e.expected} but is ${e.observed}. If the app is right, fix the declared value on this step. If ${e.expected} is right, this is an app bug`;case "missingRow":return `no ${e.entity} row matching ${e.key} exists, but this step declares creates(...) for it. ${jC(e.nearest)}If the app is right, remove the creates(...) effect. If the row should exist, this is an app bug`;case "unexpectedRow":return `the ${e.entity} row ${e.key} still exists, but this step declares its deletion. If the app is right, correct the deletes(...) effect. If the row should have been deleted, this is an app bug`;case "unexpectedlyDeleted":return `the ${e.entity} row ${e.key} was deleted, but no effect on this step deletes it. If the app is right, add deletes(...) for it to this step. If the row should have stayed, this is a cascade bug`;case "neverChanged":return `${e.entity}.${e.field} for row ${e.key} was declared to ${zC(e.direction)} from ${e.from} but stayed at ${e.observed}. If the app is right, remove that effect from this step. If it should have changed, this is an app bug`;case "wrongCount":return `${e.entity} was declared to have ${String(e.expected)} rows but has ${String(e.observed)}. If the app is right, fix the declared effects on this step. If the count is wrong, this is an app bug`}}function jC(e){return e.length===0?"":`${Kb({differences:e,labels:{declared:"declared",read:"read"}})} `}function zC(e){return e==="increased"?"increase":e==="decreased"?"decrease":"change"}function eS(e){switch(e.kind){case "wrongElementState":return `${e.subject} is ${NC(e)}`;case "wrongElementContent":return `${e.subject} ${e.checkKind==="text"?"shows":"holds"} ${jn(e.observed)}, not ${jn(e.expected)}`;case "wrongScalar":return `${e.subject} became ${jn(e.observed)}, not ${jn(e.expected)}`;case "wrongValue":case "missingRow":case "unexpectedRow":case "unexpectedlyDeleted":case "neverChanged":case "wrongCount":return jm(e)}}function NC(e){return e.checkKind==="visible"&&!e.observed?"no longer visible":`now ${HC(e.observed,e.checkKind)}`}function UC(e){switch(e.kind){case "wrongElementState":case "wrongElementContent":case "wrongScalar":return `${LC(e)}If the app is right, add .expect(${BC(e)}) to this step. If it should have stayed, this is an app bug.`;case "wrongValue":case "missingRow":case "unexpectedRow":case "unexpectedlyDeleted":case "neverChanged":case "wrongCount":return ""}}function LC(e){let{declaredAt:t}=e;return t==null?"":`Step ${String(t.stepIndex+1)} of ${t.testRef} declared ${MC(e)} and no later step declared it changed. `}function MC(e){switch(e.kind){case "wrongElementState":return tS({checkKind:e.checkKind,on:!e.observed,subject:e.subject});case "wrongElementContent":return `${e.checkKind}(${e.subject}, ${iS(e.expected)})`;case "wrongScalar":return `${e.subject} = ${jn(e.expected)}`}}function BC(e){switch(e.kind){case "wrongElementState":return tS({checkKind:e.checkKind,on:e.observed,subject:e.subject});case "wrongElementContent":return `${e.checkKind}(${e.subject}, ${iS(e.observed)})`;case "wrongScalar":return `${e.subject} = ${jn(e.observed)}`}}function tS({checkKind:e,on:t,subject:r}){let i=`${e}(${r})`;return t?i:`not(${i})`}function VC(e){let t=e.expectedRole??"element";switch(e.kind){case "binding-unbound":return `the description ${ht(e.description)} has no element binding yet.`;case "binding-missed":return `the element binding for ${ht(e.description)} did not resolve to one element on this page.`;case "binding-values-invalid":return `the inputs for ${ht(e.description)} do not match its declaration: ${e.issues.join(", ")}.`;case "binding-alias":return `the element ${ht(e.description)} resolved to the same control as ${ht(e.aliasOf)} at this step. One control is one element: declare it once and import that handle.`;case "binding-unattributed":return `the description ${ht(e.description)} needs a verified element binding (${e.reason}).`;case "absent":return "the locator matched no element in its recorded scope. Check the frame and the starting state before changing the locator.";case "hidden":return ZC(e.matches);case "ambiguous":return `it matched multiple visible elements. Recorded matches: ${zm(e.matches)}. Scope it with inside(<container>) or use a name only one of them has.`;case "text-elsewhere":return GC(e);case "name-differs":return WC({miss:e,role:t})}}function ZC(e){let t=e[0];return e.length===1&&t!=null?`it exists (${t.tag}, ${t.role??"role not recorded"}) but is hidden. If an earlier step should reveal it, declare that reveal there \u2014 otherwise this is an app bug.`:`all matching elements are hidden. Recorded matches: ${zm(e)}. If an earlier step should reveal it, declare that reveal there \u2014 otherwise this is an app bug.`}function WC({miss:e,role:t}){let r=nS(e.match.ancestors);return `no ${t} has the declared name. The page has ${t} ${ht(e.actualName)}${r}. Change the declared name to ${ht(e.actualName)} when the app copy is intended, or fix the app copy when the declaration is right.`}function GC(e){let t=e.expectedRole??"element";return e.partial?`no ${t} has the declared name, and only part of it appears on the page, as ${Qs(e.match)}. Compare the two texts before changing the declaration.`:`no ${t} has the declared name, but the text appears as ${Qs(e.match)}. Declare that element by its own role, or give the app element the role ${t}.`}function zm(e){let t=e.slice(0,5).map(i=>Qs(i)).join(", "),r=e.length-5;return r>0?`${t}, and ${String(r)} more`:t}function Qs(e){return `${`<${e.tag}> ${e.role??"role not recorded"} ${ht(e.name??"")}`}${nS(e.ancestors)}`}function nS(e){return e.length===0?"":` inside ${e.toReversed().map(r=>`${r.role} ${ht(r.label)}`).join(" > ")}`}function rS(e){return e.miss!=null||e.matcher==null||e.matcher.actual.length===0?null:e.matcher.actual}function Nm(e){if(e.miss!=null)return VC(e.miss);let t=e.message.split(`
46
- `).find(r=>r.trim().length>0);if(t==null)throw new Error("Failure carries no message");return t.trim()}function qC(e,t){return `${e?"not ":""}${t}`}function HC(e,t){return `${e?"":"not "}${t}`}function iS(e){return e==null?"absent":ht(e)}function jn(e){return e??"absent"}function ht(e){return JSON.stringify(e)}function Um(e){let t=Nn(e.kind);if(e.kind==="goto")return [t,tR(yn(e.url))];if(e.kind==="fill"||e.kind==="select")return [t,...zn(e.locator),Nn("with"),tu(`"${So(e.value)}"`)];if(e.kind==="press"){let r=e.locator==null?[]:zn(e.locator);return [t,...r,tu(`"${e.key}"`)]}return e.kind==="drag"?[t,...zn(e.source),Nn("to"),...zn(e.target)]:[t,...zn(e.locator)]}var Nn=e=>({kind:"g",text:e}),eu=e=>({kind:"label",text:e}),tu=e=>({kind:"screen",text:e}),gt={display:void 0,name:"label"},fe={display:void 0,name:"screen"},JC={alert:fe,alertdialog:fe,banner:fe,button:gt,cell:fe,checkbox:gt,columnheader:fe,combobox:gt,complementary:fe,contentinfo:fe,dialog:fe,form:fe,grid:fe,group:fe,heading:fe,img:fe,link:gt,list:fe,listbox:fe,listitem:fe,main:fe,menu:fe,menuitem:{display:"menu item",name:"label"},menuitemcheckbox:{display:"menu item checkbox",name:"label"},menuitemradio:{display:"menu item radio",name:"label"},navigation:fe,option:gt,progressbar:fe,radio:gt,radiogroup:fe,region:fe,row:fe,searchbox:gt,slider:gt,spinbutton:gt,status:fe,switch:gt,tab:gt,table:fe,tablist:fe,tabpanel:fe,textbox:gt,toolbar:fe,treeitem:gt};var KC=new Map(Object.entries(JC));function YC(e){return KC.get(e)??fe}function XC(e){let t=YC(e.role),r=Nn(t.display??e.role);if(e.name==null)return [r];let i=yn(e.name),n=t.name==="label"?eu(i):tu(`"${i}"`);return [r,n]}function zn(e){return aS(Eo(e).map(t=>QC(t)),Nn(oS))}var oS="\u25B8";function Eo(e){return e.by==="inside"?[...Eo(e.scope),...Eo(e.target)]:e.by==="surface"?Eo(e.container):[e]}function QC(e){return e.by==="element"?eR(e):e.by==="role"?XC(e):e.by==="testId"?[eu(yn(e.value))]:e.by==="frame"?[Nn("frame"),...zn(e.element)]:zn(e)}function eR(e){let t=Object.entries(e.values).map(([r,i])=>[Nn(r),eu(So(i))]);return [eu(e.name),...aS(t,Nn("\xB7"))]}function tR(e){return e.startsWith("/")?{kind:"path",text:e}:tu(`"${e}"`)}function aS(e,t){return e.flatMap((r,i)=>i===0?r:[t,...r])}var Lm=["* { scroll-behavior: auto !important; }","*, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }","noscript { display: none !important; }"];function Mm({base:e,taken:t}){let r=new Set(t.map(o=>o.toLowerCase())),n=[e,...Array.from({length:t.length+1},(o,a)=>`${e}-${String(a+2)}`)].find(o=>!r.has(o.toLowerCase()));if(n==null)throw new Error("connection-name-candidates-exhausted");return n}var nu=Symbol.for("better-auth:broadcast-channel"),nR=()=>Math.floor(Date.now()/1e3),rR=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e;}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:nR()}));}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=t=>{if(t.key!==this.name)return;let r=JSON.parse(t.newValue??"{}");r?.event!=="session"||!r?.data||this.listeners.forEach(i=>i(r));};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e);}}};function wo(e="better-auth.message"){return globalThis[nu]||(globalThis[nu]=new rR(e)),globalThis[nu]}var ru=Symbol.for("better-auth:focus-manager"),iR=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setFocused(e){this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>{document.visibilityState==="visible"&&this.setFocused(true);};return document.addEventListener("visibilitychange",e,false),()=>{document.removeEventListener("visibilitychange",e,false);}}};function Bm(){return globalThis[ru]||(globalThis[ru]=new iR),globalThis[ru]}var iu=Symbol.for("better-auth:online-manager"),oR=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:true;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>this.setOnline(true),t=()=>this.setOnline(false);return window.addEventListener("online",e,false),window.addEventListener("offline",t,false),()=>{window.removeEventListener("online",e,false),window.removeEventListener("offline",t,false);}}};function ou(){return globalThis[iu]||(globalThis[iu]=new oR),globalThis[iu]}var aR={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},sR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,uS={true:true,false:false,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},uR=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function cR(e){return e instanceof Date&&!isNaN(e.getTime())}function lR(e){let t=uR.exec(e);if(!t)return null;let[,r,i,n,o,a,u,c,l,d,p]=t,m=new Date(Date.UTC(parseInt(r,10),parseInt(i,10)-1,parseInt(n,10),parseInt(o,10),parseInt(a,10),parseInt(u,10),c?parseInt(c.padEnd(3,"0"),10):0));if(l){let h=(parseInt(d,10)*60+parseInt(p,10))*(l==="+"?-1:1);m.setUTCMinutes(m.getUTCMinutes()+h);}return cR(m)?m:null}function dR(e,t={}){let{strict:r=false,warnings:i=false,reviver:n,parseDates:o=true}=t;if(typeof e!="string")return e;let a=e.trim();if(a.length>0&&a[0]==='"'&&a.endsWith('"')&&!a.slice(1,-1).includes('"'))return a.slice(1,-1);let u=a.toLowerCase();if(u.length<=9&&u in uS)return uS[u];if(!sR.test(a)){if(r)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(aR).some(([c,l])=>{let d=l.test(a);return d&&i&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),d})&&r)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(a,(l,d)=>{if(l==="__proto__"||l==="constructor"&&d&&typeof d=="object"&&"prototype"in d){i&&console.warn(`[better-json] Dropping "${l}" key to prevent prototype pollution`);return}if(o&&typeof d=="string"){let p=lR(d);if(p)return p}return n?n(l,d):d})}catch(c){if(r)throw c;return e}}function Vm(e,t={strict:true}){return dR(e,t)}var $o=Symbol("clean");var Wt=[],Un=0,au=4,ko=e=>{let t=[],r={get(){return r.lc||r.listen(()=>{})(),r.value},lc:0,listen(i){return r.lc=t.push(i),()=>{for(let o=Un+au;o<Wt.length;)Wt[o]===i?Wt.splice(o,au):o+=au;let n=t.indexOf(i);~n&&(t.splice(n,1),--r.lc||r.off());}},notify(i,n){let o=!Wt.length;for(let a of t)Wt.push(a,r.value,i,n);if(o){for(Un=0;Un<Wt.length;Un+=au)Wt[Un](Wt[Un+1],Wt[Un+2],Wt[Un+3]);Wt.length=0;}},off(){},set(i){let n=r.value;n!==i&&(r.value=i,r.notify(n));},subscribe(i){let n=r.listen(i);return i(r.value),n},value:e};return process.env.NODE_ENV!=="production"&&(r[$o]=()=>{t=[],r.lc=0,r.off();}),r};var fR=5,Di=6,su=10,mR=(e,t,r,i)=>(e.events=e.events||{},e.events[r+su]||(e.events[r+su]=i(n=>{e.events[r].reduceRight((o,a)=>(a(o),o),{shared:{},...n});})),e.events[r]=e.events[r]||[],e.events[r].push(t),()=>{let n=e.events[r],o=n.indexOf(t);n.splice(o,1),n.length||(delete e.events[r],e.events[r+su](),delete e.events[r+su]);});var cS=1e3,Io=(e,t)=>mR(e,i=>{let n=t(i);n&&e.events[Di].push(n);},fR,i=>{let n=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=true,i()),n(...a));let o=e.off;if(e.events[Di]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=false;for(let a of e.events[Di])a();e.events[Di]=[];}},cS);},process.env.NODE_ENV!=="production"){let a=e[$o];e[$o]=()=>{for(let u of e.events[Di])u();e.events[Di]=[],e.active=false,a();};}return ()=>{e.listen=n,e.off=o;}});var hR=()=>typeof window>"u",uu=(e,t,r,i)=>{let n=ko({data:null,error:null,isPending:true,isRefetching:false,refetch:u=>o(u)}),o=async u=>new Promise(c=>{let l=typeof i=="function"?i({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):i;r(t,{...l,query:{...l?.query,...u?.query},async onSuccess(d){n.set({data:d.data,error:null,isPending:false,isRefetching:false,refetch:n.value.refetch}),await l?.onSuccess?.(d);},async onError(d){let{request:p}=d,m=typeof p.retry=="number"?p.retry:p.retry?.attempts,h=p.retryAttempt||0;if(m&&h<m)return;let v=d.error.status===401;n.set({error:d.error,data:v?null:n.get().data,isPending:false,isRefetching:false,refetch:n.value.refetch}),await l?.onError?.(d);},async onRequest(d){let p=n.get();n.set({isPending:p.data===null,data:p.data,error:null,isRefetching:true,refetch:n.value.refetch}),await l?.onRequest?.(d);}}).catch(d=>{n.set({error:d,data:n.get().data,isPending:false,isRefetching:false,refetch:n.value.refetch});}).finally(()=>{c(void 0);});});e=Array.isArray(e)?e:[e];let a=false;for(let u of e)u.subscribe(async()=>{hR()||(a?await o():Io(n,()=>{let c=setTimeout(async()=>{a||(await o(),a=true);},0);return ()=>{n.off(),u.off(),clearTimeout(c);}}));});return n};var _i=()=>Math.floor(Date.now()/1e3);function lS(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}var gR=5;function Zm(e){let{sessionAtom:t,sessionSignal:r,$fetch:i,options:n={}}=e,o=n.sessionOptions?.refetchInterval??0,a=n.sessionOptions?.refetchOnWindowFocus??true,u=n.sessionOptions?.refetchWhenOffline??false,c={lastSync:0,lastSessionRequest:0,cachedSession:void 0},l=()=>u||ou().isOnline,d=H=>{if(!l())return;if(H?.event==="storage"){c.lastSync=_i(),r.set(!r.get());return}let B=t.get(),A=()=>{c.lastSessionRequest=_i(),i("/get-session").then(async O=>{let{data:z,error:ne}=lS(O);if(z?.needsRefresh)try{let be=await i("/get-session",{method:"POST"});({data:z,error:ne}=lS(be));}catch{}let ce=z?.session&&z?.user?z:null;t.set({...B,data:ce,error:ne}),c.lastSync=_i(),r.set(!r.get());}).catch(()=>{});};if(H?.event==="poll"){A();return}if(H?.event==="visibilitychange"){if(_i()-c.lastSessionRequest<gR)return;c.lastSessionRequest=_i();}if(H?.event==="visibilitychange"){A();return}(B?.data===null||B?.data===void 0)&&(c.lastSync=_i(),r.set(!r.get()));},p=H=>{wo().post({event:"session",data:{trigger:H},clientId:Math.random().toString(36).substring(7)});},m=()=>{o&&o>0&&(c.pollInterval=setInterval(()=>{t.get()?.data&&d({event:"poll"});},o*1e3));},h=()=>{c.unsubscribeBroadcast=wo().subscribe(()=>{d({event:"storage"});});},v=()=>{a&&(c.unsubscribeFocus=Bm().subscribe(()=>{d({event:"visibilitychange"});}));},D=()=>{c.unsubscribeOnline=ou().subscribe(H=>{H&&d({event:"visibilitychange"});});};return {init:()=>{m(),h(),v(),D(),wo().setup(),Bm().setup(),ou().setup();},cleanup:()=>{c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.lastSync=0,c.lastSessionRequest=0,c.cachedSession=void 0;},triggerRefetch:d,broadcastSessionUpdate:p}}var cu=Object.create(null),Oo=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?cu:globalThis),it=new Proxy(cu,{get(e,t){return Oo()[t]??cu[t]},has(e,t){return t in Oo()||t in cu},set(e,t,r){let i=Oo(true);return i[t]=r,true},deleteProperty(e,t){if(!t)return false;let r=Oo(true);return delete r[t],true},ownKeys(){let e=Oo(true);return Object.keys(e)}});typeof process<"u"&&process.env&&process.env.NODE_ENV||"";function me(e,t){return typeof process<"u"&&process.env?process.env[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}var Co=1,Ze=4,rn=8,yt=24,dS={eterm:Ze,cons25:Ze,console:Ze,cygwin:Ze,dtterm:Ze,gnome:Ze,hurd:Ze,jfbterm:Ze,konsole:Ze,kterm:Ze,mlterm:Ze,mosh:yt,putty:Ze,st:Ze,"rxvt-unicode-24bit":yt,terminator:yt,"xterm-kitty":yt},bR=new Map(Object.entries({APPVEYOR:rn,BUILDKITE:rn,CIRCLECI:yt,DRONE:rn,GITEA_ACTIONS:yt,GITHUB_ACTIONS:yt,GITLAB_CI:rn,TRAVIS:rn})),SR=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function Wm(){if(me("FORCE_COLOR")!==void 0)switch(me("FORCE_COLOR")){case "":case "1":case "true":return Ze;case "2":return rn;case "3":return yt;default:return Co}if(me("NODE_DISABLE_COLORS")!==void 0&&me("NODE_DISABLE_COLORS")!==""||me("NO_COLOR")!==void 0&&me("NO_COLOR")!==""||me("TERM")==="dumb")return Co;if(me("TMUX"))return yt;if("TF_BUILD"in it&&"AGENT_NAME"in it)return Ze;if("CI"in it){for(let{0:e,1:t}of bR)if(e in it)return t;return me("CI_NAME")==="codeship"?rn:Co}if("TEAMCITY_VERSION"in it)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(me("TEAMCITY_VERSION"))!==null?Ze:Co;switch(me("TERM_PROGRAM")){case "iTerm.app":return !me("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(me("TERM_PROGRAM_VERSION"))!==null?rn:yt;case "HyperTerm":case "MacTerm":return yt;case "Apple_Terminal":return rn}if(me("COLORTERM")==="truecolor"||me("COLORTERM")==="24bit")return yt;if(me("TERM")){if(/truecolor/.exec(me("TERM"))!==null)return yt;if(/^xterm-256/.exec(me("TERM"))!==null)return rn;let e=me("TERM").toLowerCase();if(dS[e])return dS[e];if(SR.some(t=>t.exec(e)!==null))return Ze}return me("COLORTERM")?Ze:Co}var Gt={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},lu=["debug","info","success","warn","error"];function pS(e,t){return lu.indexOf(t)>=lu.indexOf(e)}var xR={info:Gt.fg.blue,success:Gt.fg.green,warn:Gt.fg.yellow,error:Gt.fg.red,debug:Gt.fg.magenta},DR=(e,t,r)=>{let i=new Date().toISOString();return r?`${Gt.dim}${i}${Gt.reset} ${xR[e]}${e.toUpperCase()}${Gt.reset} ${Gt.bright}[Better Auth]:${Gt.reset} ${t}`:`${i} ${e.toUpperCase()} [Better Auth]: ${t}`},fS=e=>{let r="warn",i=Wm()!==1,n=(o,a,u=[])=>{if(!pS(r,o))return;let c=DR(o,a,i);{o==="error"?console.error(c,...u):o==="warn"?console.warn(c,...u):console.log(c,...u);return}};return {...Object.fromEntries(lu.map(o=>[o,(...[a,...u])=>n(o,a,u)])),get level(){return r}}};fS();function Pe(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,{code:t,message:r,toString:()=>t}]))}Pe({USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",INVALID_USER:"Invalid user",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",TOKEN_EXPIRED:"Token expired",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account.",CROSS_SITE_NAVIGATION_LOGIN_BLOCKED:"Cross-site navigation login blocked. This request appears to be a CSRF attack.",VERIFICATION_EMAIL_NOT_ENABLED:"Verification email isn't enabled",EMAIL_ALREADY_VERIFIED:"Email is already verified",EMAIL_MISMATCH:"Email mismatch",SESSION_NOT_FRESH:"Session is not fresh",LINKED_ACCOUNT_ALREADY_EXISTS:"Linked account already exists",INVALID_ORIGIN:"Invalid origin",INVALID_CALLBACK_URL:"Invalid callbackURL",INVALID_REDIRECT_URL:"Invalid redirectURL",INVALID_ERROR_CALLBACK_URL:"Invalid errorCallbackURL",INVALID_NEW_USER_CALLBACK_URL:"Invalid newUserCallbackURL",MISSING_OR_NULL_ORIGIN:"Missing or null Origin",CALLBACK_URL_REQUIRED:"callbackURL is required",FAILED_TO_CREATE_VERIFICATION:"Unable to create verification",FIELD_NOT_ALLOWED:"Field not allowed to be set",ASYNC_VALIDATION_NOT_SUPPORTED:"Async validation is not supported",VALIDATION_ERROR:"Validation Error",MISSING_FIELD:"Field is required",METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED:"POST method requires deferSessionRefresh to be enabled in session config",BODY_MUST_BE_AN_OBJECT:"Body must be an object",PASSWORD_ALREADY_SET:"User already has a password set"});var Ln=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack="";}};function RR(e){try{return (new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Ln(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function AR(e){try{let t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Ln(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Ln?t:new Ln(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function Ro(e,t="/api/auth"){if(AR(e),RR(e))return e;let r=e.replace(/\/+$/,"");return !t||t==="/"?r:(t=t.startsWith("/")?t:`/${t}`,`${r}${t}`)}function hS(e,t,r,i,n){if(e)return Ro(e,t);{let u=it.BETTER_AUTH_URL||it.NEXT_PUBLIC_BETTER_AUTH_URL||it.PUBLIC_BETTER_AUTH_URL||it.NUXT_PUBLIC_BETTER_AUTH_URL||it.NUXT_PUBLIC_AUTH_URL||(it.BASE_URL!=="/"?it.BASE_URL:void 0);if(u)return Ro(u,t)}if(typeof window<"u"&&window.location)return Ro(window.location.origin,t)}var gS={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url;}catch{}}}};function yS(e,t){let r=ko(false),i=uu(r,"/get-session",e,{method:"GET"}),n=()=>{};return Io(i,()=>{let o=Zm({sessionAtom:i,sessionSignal:r,$fetch:e,options:t});return o.init(),n=o.broadcastSessionUpdate,()=>{o.cleanup();}}),{session:i,$sessionSignal:r,broadcastSessionUpdate:o=>n(o)}}function Gm(e){if(e===null||typeof e!="object")return false;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?false:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":true}function qm(e,t,r=".",i){if(!Gm(t))return qm(e,{},r,i);let n=Object.assign({},t);for(let o in e){if(o==="__proto__"||o==="constructor")continue;let a=e[o];a!=null&&(i&&i(n,o,a,r)||(Array.isArray(a)&&Array.isArray(n[o])?n[o]=[...a,...n[o]]:Gm(a)&&Gm(n[o])?n[o]=qm(a,n[o],(r?`${r}.`:"")+o.toString(),i):n[o]=a));}return n}function Hm(e){return (...t)=>t.reduce((r,i)=>qm(r,i,"",e),{})}var vS=Hm();var PR=Object.defineProperty,FR=Object.defineProperties,jR=Object.getOwnPropertyDescriptors,bS=Object.getOwnPropertySymbols,zR=Object.prototype.hasOwnProperty,NR=Object.prototype.propertyIsEnumerable,SS=(e,t,r)=>t in e?PR(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,qt=(e,t)=>{for(var r in t||(t={}))zR.call(t,r)&&SS(e,r,t[r]);if(bS)for(var r of bS(t))NR.call(t,r)&&SS(e,r,t[r]);return e},on=(e,t)=>FR(e,jR(t)),UR=class extends Error{constructor(e,t,r){super(t||e.toString(),{cause:r}),this.status=e,this.statusText=t,this.error=r,Error.captureStackTrace(this,this.constructor);}},LR=async(e,t)=>{var r,i,n,o,a,u;let c=t||{},l={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return {url:e,options:c,hooks:l};for(let d of t?.plugins||[]){if(d.init){let p=await((r=d.init)==null?void 0:r.call(d,e.toString(),t));c=p.options||c,e=p.url;}l.onRequest.push((i=d.hooks)==null?void 0:i.onRequest),l.onResponse.push((n=d.hooks)==null?void 0:n.onResponse),l.onSuccess.push((o=d.hooks)==null?void 0:o.onSuccess),l.onError.push((a=d.hooks)==null?void 0:a.onError),l.onRetry.push((u=d.hooks)==null?void 0:u.onRetry);}return {url:e,options:c,hooks:l}},xS=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},MR=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function BR(e){if(typeof e=="number")return new xS({type:"linear",attempts:e,delay:1e3});switch(e.type){case "linear":return new xS(e);case "exponential":return new MR(e);default:throw new Error("Invalid retry strategy")}}var VR=async e=>{let t={},r=async i=>typeof i=="function"?await i():i;if(e?.auth){if(e.auth.type==="Bearer"){let i=await r(e.auth.token);if(!i)return t;t.authorization=`Bearer ${i}`;}else if(e.auth.type==="Basic"){let[i,n]=await Promise.all([r(e.auth.username),r(e.auth.password)]);if(!i||!n)return t;t.authorization=`Basic ${btoa(`${i}:${n}`)}`;}else if(e.auth.type==="Custom"){let[i,n]=await Promise.all([r(e.auth.prefix),r(e.auth.value)]);if(!n)return t;t.authorization=`${i??""} ${n}`;}}return t},ZR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function WR(e){let t=e.headers.get("content-type"),r=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return "json";let i=t.split(";").shift()||"";return ZR.test(i)?"json":r.has(i)||i.startsWith("text/")?"text":"blob"}function GR(e){try{return JSON.parse(e),!0}catch{return false}}function Jm(e){if(e===void 0)return false;let t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?true:t!=="object"?false:Array.isArray(e)?true:e.buffer?false:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function DS(e){try{return JSON.parse(e)}catch{return e}}function _S(e){return typeof e=="function"}function qR(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&_S(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&_S(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function HR(e){let t=new Headers(e?.headers),r=await VR(e);for(let[i,n]of Object.entries(r||{}))t.set(i,n);if(!t.has("content-type")){let i=JR(e?.body);i&&t.set("content-type",i);}return t}function JR(e){return Jm(e)?"application/json":null}function KR(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(Jm(e.body)&&!t.has("content-type")){for(let[r,i]of Object.entries(e?.body))i instanceof Date&&(e.body[r]=i.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&Jm(e.body)?new URLSearchParams(e.body).toString():e.body}function YR(e,t){var r;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){let i=(r=e.split("@")[1])==null?void 0:r.split("/")[0];return wS.includes(i)?i.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function XR(e,t){let r;return !e?.signal&&e?.timeout&&(r=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:r,clearTimeout:()=>{r&&clearTimeout(r);}}}var QR=class ES extends Error{constructor(t,r){super(r||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,ES.prototype);}};async function du(e,t){let r=await e["~standard"].validate(t);if(r.issues)throw new QR(r.issues);return r.value}var wS=["get","post","put","patch","delete"];var eA=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,r){var i,n,o,a;let u=((n=(i=e.plugins)==null?void 0:i.find(c=>{var l;return (l=c.schema)!=null&&l.config?t.startsWith(c.schema.config.baseURL||"")||t.startsWith(c.schema.config.prefix||""):false}))==null?void 0:n.schema)||e.schema;if(u){let c=t;(o=u.config)!=null&&o.prefix&&c.startsWith(u.config.prefix)&&(c=c.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(a=u.config)!=null&&a.baseURL&&c.startsWith(u.config.baseURL)&&(c=c.replace(u.config.baseURL,""));let l=u.schema[c];if(l){let d=on(qt({},r),{method:l.method,output:l.output});return r?.disableValidation||(d=on(qt({},d),{body:l.input?await du(l.input,r?.body):r?.body,params:l.params?await du(l.params,r?.params):r?.params,query:l.query?await du(l.query,r?.query):r?.query})),{url:t,options:d}}}return {url:t,options:r}}}),$S=e=>{async function t(r,i){let n=on(qt(qt({},e),i),{plugins:[...e?.plugins||[],eA(e||{}),...i?.plugins||[]]});if(e?.catchAllError)try{return await Km(r,n)}catch(o){return {data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:o}}}return await Km(r,n)}return t};function tA(e,t){let{baseURL:r,params:i,query:n}=t||{query:{},params:{},baseURL:""},o=e.startsWith("http")?e.split("/").slice(0,3).join("/"):r||"";if(e.startsWith("@")){let p=e.toString().split("@")[1].split("/")[0];wS.includes(p)&&(e=e.replace(`@${p}/`,"/"));}o.endsWith("/")||(o+="/");let[a,u]=e.replace(o,"").split("?"),c=new URLSearchParams(u);for(let[p,m]of Object.entries(n||{})){if(m==null)continue;let h;if(typeof m=="string")h=m;else if(Array.isArray(m)){for(let v of m)c.append(p,v);continue}else h=JSON.stringify(m);c.set(p,h);}if(i)if(Array.isArray(i)){let p=a.split("/").filter(m=>m.startsWith(":"));for(let[m,h]of p.entries()){let v=i[m];a=a.replace(h,v);}}else for(let[p,m]of Object.entries(i))a=a.replace(`:${p}`,String(m));a=a.split("/").map(encodeURIComponent).join("/"),a.startsWith("/")&&(a=a.slice(1));let l=c.toString();return l=l.length>0?`?${l}`.replace(/\+/g,"%20"):"",o.startsWith("http")?new URL(`${a}${l}`,o):`${o}${a}${l}`}var Km=async(e,t)=>{var r,i,n,o,a,u,c,l;let{hooks:d,url:p,options:m}=await LR(e,t),h=qR(m),v=new AbortController,D=(r=m.signal)!=null?r:v.signal,b=tA(p,m),U=KR(m),H=await HR(m),B=YR(p,m),A=on(qt({},m),{url:b,headers:H,body:U,method:B,signal:D});for(let T of d.onRequest)if(T){let V=await T(A);typeof V=="object"&&V!==null&&(A=V);}("pipeTo"in A&&typeof A.pipeTo=="function"||typeof((i=t?.body)==null?void 0:i.pipe)=="function")&&("duplex"in A||(A.duplex="half"));let{clearTimeout:O}=XR(m,v),z=await h(A.url,A);O();let ne={response:z,request:A};for(let T of d.onResponse)if(T){let V=await T(on(qt({},ne),{response:(n=t?.hookOptions)!=null&&n.cloneResponse?z.clone():z}));V instanceof Response?z=V:typeof V=="object"&&V!==null&&(z=V.response);}if(z.ok){if(!(A.method!=="HEAD"))return {data:"",error:null};let V=WR(z),te={data:null,response:z,request:A};if(V==="json"||V==="text"){let pe=await z.text(),se=(o=A.jsonParser)!=null?o:DS;te.data=await se(pe);}else te.data=await z[V]();A?.output&&A.output&&!A.disableValidation&&(te.data=await du(A.output,te.data));for(let pe of d.onSuccess)pe&&await pe(on(qt({},te),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?z.clone():z}));return t?.throw?te.data:{data:te.data,error:null}}let ce=(u=t?.jsonParser)!=null?u:DS,be=await z.text(),ie=GR(be),F=ie?await ce(be):null,j={response:z,responseText:be,request:A,error:on(qt({},F),{status:z.status,statusText:z.statusText})};for(let T of d.onError)T&&await T(on(qt({},j),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?z.clone():z}));if(t?.retry){let T=BR(t.retry),V=(l=t.retryAttempt)!=null?l:0;if(await T.shouldAttemptRetry(V,z)){for(let pe of d.onRetry)pe&&await pe(ne);let te=T.getDelay(V);return await new Promise(pe=>setTimeout(pe,te)),await Km(e,on(qt({},t),{retryAttempt:V+1}))}}if(t?.throw)throw new UR(z.status,z.statusText,ie?F:be);return {data:null,error:on(qt({},F),{status:z.status,statusText:z.statusText})}};var nA=e=>{if(typeof process>"u")return;let t=e??"/api/auth";if(process.env.NEXT_PUBLIC_AUTH_URL)return process.env.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(process.env.NEXTAUTH_URL)try{return process.env.NEXTAUTH_URL}catch{}if(process.env.VERCEL_URL)try{let r=process.env.VERCEL_URL.startsWith("http")?"":"https://";return `${new URL(`${r}${process.env.VERCEL_URL}`).origin}${t}`}catch{}}},kS=(e,t)=>{let r="credentials"in Request.prototype,i=hS(e?.baseURL,e?.basePath)??nA(e?.basePath)??"/api/auth",n=e?.plugins?.flatMap(O=>O.fetchPlugins).filter(O=>O!==void 0)||[],o={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:a,onError:u,onRequest:c,onResponse:l,...d}=e?.fetchOptions||{},p=$S({baseURL:i,...r?{credentials:"include"}:{},method:"GET",jsonParser(O){return O?Vm(O,{strict:false}):null},customFetchImpl:fetch,...d,plugins:[o,...d.plugins||[],...e?.disableDefaultFetchPlugins?[]:[gS],...n]}),{$sessionSignal:m,session:h,broadcastSessionUpdate:v}=yS(p,e),D=e?.plugins||[],b={},U={$sessionSignal:m,session:h},H={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},B=[{signal:"$sessionSignal",matcher(O){return O==="/sign-out"||O==="/update-user"||O==="/update-session"||O==="/sign-up/email"||O==="/sign-in/email"||O==="/delete-user"||O==="/verify-email"||O==="/revoke-sessions"||O==="/revoke-session"||O==="/change-email"},callback(O){O==="/sign-out"?v("signout"):(O==="/update-user"||O==="/update-session")&&v("updateUser");}}];for(let O of D)O.getAtoms&&Object.assign(U,O.getAtoms?.(p)),O.pathMethods&&Object.assign(H,O.pathMethods),O.atomListeners&&B.push(...O.atomListeners);let A={notify:O=>{U[O].set(!U[O].get());},listen:(O,z)=>{U[O].subscribe(z);},atoms:U};for(let O of D)O.getActions&&(b=vS(O.getActions?.(p,A,e)??{},b));return {get baseURL(){return i},pluginsActions:b,pluginsAtoms:U,pluginPathMethods:H,atomListeners:B,$fetch:p,$store:A}};function IS(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function rA(e,t,r){let i=t[e],{fetchOptions:n,query:o,...a}=r||{};return i||(n?.method?n.method:a&&Object.keys(a).length>0?"POST":"GET")}function OS(e,t,r,i,n){function o(a=[]){return new Proxy(function(){},{get(u,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;let l=[...a,c],d=e;for(let p of l)if(d&&typeof d=="object"&&p in d)d=d[p];else {d=void 0;break}return typeof d=="function"||IS(d)?d:o(l)},apply:async(u,c,l)=>{let d="/"+a.map(H=>H.replace(/[A-Z]/g,B=>`-${B.toLowerCase()}`)).join("/"),p=l[0]||{},m=l[1]||{},{query:h,fetchOptions:v,...D}=p,b={...m,...v},U=rA(d,r,p);return await t(d,{...b,body:U==="GET"?void 0:{...D,...b?.body||{}},query:h||b?.query,method:U,async onSuccess(H){if(await b?.onSuccess?.(H),!n||b.disableSignal)return;let B=n.filter(O=>O.matcher(d));if(!B.length)return;let A=new Set;for(let O of B){let z=i[O.signal];if(!z)return;if(A.has(O.signal))continue;A.add(O.signal);let ne=z.get();setTimeout(()=>{z.set(!ne);},10),O.callback?.(d);}}})}})}return o()}function CS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ym(e){let{pluginPathMethods:t,pluginsActions:r,pluginsAtoms:i,$fetch:n,atomListeners:o,$store:a}=kS(e),u={};for(let[c,l]of Object.entries(i))u[`use${CS(c)}`]=l;return OS({...r,...u,$fetch:n,$store:a},n,t,i,o)}Pe({FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application",YOU_ARE_NOT_ALLOWED_TO_GET_USER:"You are not allowed to get user",NO_DATA_TO_UPDATE:"No data to update",YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS:"You are not allowed to update users",YOU_CANNOT_REMOVE_YOURSELF:"You cannot remove yourself",YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE:"You are not allowed to set a non-existent role value",YOU_CANNOT_IMPERSONATE_ADMINS:"You cannot impersonate admins",INVALID_ROLE_TYPE:"Invalid role type"});Pe({INVALID_EMAIL_FORMAT:"Email was not generated in a valid format",FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously",FAILED_TO_DELETE_ANONYMOUS_USER:"Failed to delete anonymous user",USER_IS_NOT_ANONYMOUS:"User is not anonymous",DELETE_ANONYMOUS_USER_DISABLED:"Deleting anonymous users is disabled"});var Qm=()=>({id:"device-authorization",$InferServerPlugin:{},pathMethods:{"/device/code":"POST","/device/token":"POST","/device":"GET","/device/approve":"POST","/device/deny":"POST"}});Pe({OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",TOO_MANY_ATTEMPTS:"Too many attempts"});Pe({INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration",TOKEN_URL_NOT_FOUND:"Invalid OAuth configuration. Token URL not found.",PROVIDER_CONFIG_NOT_FOUND:"No config found for provider",PROVIDER_ID_REQUIRED:"Provider ID is required",INVALID_OAUTH_CONFIG:"Invalid OAuth configuration.",SESSION_REQUIRED:"Session is required",ISSUER_MISMATCH:"OAuth issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).",ISSUER_MISSING:"OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."});Pe({INVALID_SESSION_TOKEN:"Invalid session token"});Pe({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_SLUG_ALREADY_TAKEN:"Organization slug already taken",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:"You cannot leave the organization without an owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:"Email verification required before accepting or rejecting invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"You are not allowed to invite a user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:"User is not a member of the team",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:"You are not allowed to list the members of this team",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:"You do not have an active team",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:"You are not allowed to create a new member",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:"You are not allowed to remove a team member",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:"You are not allowed to access this organization as an owner",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:"You are not a member of this organization",MISSING_AC_INSTANCE:"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:"You must be in an organization to create a role",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:"You are not allowed to create a role",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:"You are not allowed to update a role",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:"You are not allowed to delete a role",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:"You are not allowed to read a role",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:"You are not allowed to list a role",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:"You are not allowed to get a role",TOO_MANY_ROLES:"This organization has too many roles",INVALID_RESOURCE:"The provided permission includes an invalid resource",ROLE_NAME_IS_ALREADY_TAKEN:"That role name is already taken",CANNOT_DELETE_A_PRE_DEFINED_ROLE:"Cannot delete a pre-defined role",ROLE_IS_ASSIGNED_TO_MEMBERS:"Cannot delete a role that is assigned to members. Please reassign the members to a different role first"});Pe({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});Pe({OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"});Pe({INVALID_USERNAME_OR_PASSWORD:"Invalid username or password",EMAIL_NOT_VERIFIED:"Email not verified",UNEXPECTED_ERROR:"Unexpected error",USERNAME_IS_ALREADY_TAKEN:"Username is already taken. Please try another.",USERNAME_TOO_SHORT:"Username is too short",USERNAME_TOO_LONG:"Username is too long",INVALID_USERNAME:"Username is invalid",INVALID_DISPLAY_USERNAME:"Display username is invalid"});var sA={withStackTrace:false},KS=(e,t,r=sA)=>{let i=t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},n=r.withStackTrace?new Error().stack:void 0;return {data:i,message:e,stack:n}};function fr(e,t,r,i){function n(o){return o instanceof r?o:new r(function(a){a(o);})}return new(r||(r=Promise))(function(o,a){function u(d){try{l(i.next(d));}catch(p){a(p);}}function c(d){try{l(i.throw(d));}catch(p){a(p);}}function l(d){d.done?o(d.value):n(d.value).then(u,c);}l((i=i.apply(e,[])).next());})}function HS(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function an(e){return this instanceof an?(this.v=e,this):new an(e)}function JS(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(h){return function(v){return Promise.resolve(v).then(h,p)}}function u(h,v){i[h]&&(n[h]=function(D){return new Promise(function(b,U){o.push([h,D,b,U])>1||c(h,D);})},v&&(n[h]=v(n[h])));}function c(h,v){try{l(i[h](v));}catch(D){m(o[0][3],D);}}function l(h){h.value instanceof an?Promise.resolve(h.value.v).then(d,p):m(o[0][2],h);}function d(h){c("next",h);}function p(h){c("throw",h);}function m(h,v){h(v),o.shift(),o.length&&c(o[0][0],o[0][1]);}}function uA(e){var t,r;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,o){t[n]=e[n]?function(a){return (r=!r)?{value:an(e[n](a)),done:false}:o?o(a):a}:o;}}function cA(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 HS=="function"?HS(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=e[o]&&function(a){return new Promise(function(u,c){a=e[o](a),n(u,c,a.done,a.value);})};}function n(o,a,u,c){Promise.resolve(c).then(function(l){o({value:l,done:u});},a);}}var vn=class e{constructor(t){this._promise=t;}static fromSafePromise(t){let r=t.then(i=>new kt(i));return new e(r)}static fromPromise(t,r){let i=t.then(n=>new kt(n)).catch(n=>new vt(r(n)));return new e(i)}static fromThrowable(t,r){return (...i)=>new e(fr(this,void 0,void 0,function*(){try{return new kt(yield t(...i))}catch(n){return new vt(r?r(n):n)}}))}static combine(t){return lA(t)}static combineWithAllErrors(t){return dA(t)}map(t){return new e(this._promise.then(r=>fr(this,void 0,void 0,function*(){return r.isErr()?new vt(r.error):new kt(yield t(r.value))})))}andThrough(t){return new e(this._promise.then(r=>fr(this,void 0,void 0,function*(){if(r.isErr())return new vt(r.error);let i=yield t(r.value);return i.isErr()?new vt(i.error):new kt(r.value)})))}andTee(t){return new e(this._promise.then(r=>fr(this,void 0,void 0,function*(){if(r.isErr())return new vt(r.error);try{yield t(r.value);}catch{}return new kt(r.value)})))}orTee(t){return new e(this._promise.then(r=>fr(this,void 0,void 0,function*(){if(r.isOk())return new kt(r.value);try{yield t(r.error);}catch{}return new vt(r.error)})))}mapErr(t){return new e(this._promise.then(r=>fr(this,void 0,void 0,function*(){return r.isOk()?new kt(r.value):new vt(yield t(r.error))})))}andThen(t){return new e(this._promise.then(r=>{if(r.isErr())return new vt(r.error);let i=t(r.value);return i instanceof e?i._promise:i}))}orElse(t){return new e(this._promise.then(r=>fr(this,void 0,void 0,function*(){return r.isErr()?t(r.error):new kt(r.value)})))}match(t,r){return this._promise.then(i=>i.match(t,r))}unwrapOr(t){return this._promise.then(r=>r.unwrapOr(t))}safeUnwrap(){return JS(this,arguments,function*(){return yield an(yield an(yield*uA(cA(yield an(this._promise.then(r=>r.safeUnwrap()))))))})}then(t,r){return this._promise.then(t,r)}[Symbol.asyncIterator](){return JS(this,arguments,function*(){let r=yield an(this._promise);return r.isErr()&&(yield yield an(fu(r.error))),yield an(r.value)})}};function fu(e){return new vn(Promise.resolve(new vt(e)))}var YS=e=>{let t=Fe([]);for(let r of e)if(r.isErr()){t=de(r.error);break}else t.map(i=>i.push(r.value));return t},lA=e=>vn.fromSafePromise(Promise.all(e)).andThen(YS),XS=e=>{let t=Fe([]);for(let r of e)r.isErr()&&t.isErr()?t.error.push(r.error):r.isErr()&&t.isOk()?t=de([r.error]):r.isOk()&&t.isOk()&&t.value.push(r.value);return t},dA=e=>vn.fromSafePromise(Promise.all(e)).andThen(XS),eh;(function(e){function t(n,o){return (...a)=>{try{let u=n(...a);return Fe(u)}catch(u){return de(o?o(u):u)}}}e.fromThrowable=t;function r(n){return YS(n)}e.combine=r;function i(n){return XS(n)}e.combineWithAllErrors=i;})(eh||(eh={}));function Fe(e){return new kt(e)}function de(e){return new vt(e)}var kt=class{constructor(t){this.value=t;}isOk(){return true}isErr(){return !this.isOk()}map(t){return Fe(t(this.value))}mapErr(t){return Fe(this.value)}andThen(t){return t(this.value)}andThrough(t){return t(this.value).map(r=>this.value)}andTee(t){try{t(this.value);}catch{}return Fe(this.value)}orTee(t){return Fe(this.value)}orElse(t){return Fe(this.value)}asyncAndThen(t){return t(this.value)}asyncAndThrough(t){return t(this.value).map(()=>this.value)}asyncMap(t){return vn.fromSafePromise(t(this.value))}unwrapOr(t){return this.value}match(t,r){return t(this.value)}safeUnwrap(){let t=this.value;return (function*(){return t})()}_unsafeUnwrap(t){return this.value}_unsafeUnwrapErr(t){throw KS("Called `_unsafeUnwrapErr` on an Ok",this,t)}*[Symbol.iterator](){return this.value}},vt=class{constructor(t){this.error=t;}isOk(){return false}isErr(){return !this.isOk()}map(t){return de(this.error)}mapErr(t){return de(t(this.error))}andThrough(t){return de(this.error)}andTee(t){return de(this.error)}orTee(t){try{t(this.error);}catch{}return de(this.error)}andThen(t){return de(this.error)}orElse(t){return t(this.error)}asyncAndThen(t){return fu(this.error)}asyncAndThrough(t){return fu(this.error)}asyncMap(t){return fu(this.error)}unwrapOr(t){return t}match(t,r){return r(this.error)}safeUnwrap(){let t=this.error;return (function*(){throw yield de(t),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(t){throw KS("Called `_unsafeUnwrap` on an Err",this,t)}_unsafeUnwrapErr(t){return this.error}*[Symbol.iterator](){let t=this;return yield t,t}};eh.fromThrowable;var fA=".ripplo";function ex(){return zh.join(pA.homedir(),fA)}function tx(){let e=ex();return Ei.existsSync(e)?Ei.chmodSync(e,448):Ei.mkdirSync(e,{mode:448,recursive:true}),e}function nx(e){return zh.join(ex(),e)}function To(e){let t=process.env.RIPPLO_TOKEN;if(t!=null&&t.trim().length>0)return t.trim();let r=mr(e);if(!Ei.existsSync(r))return null;let i=Ei.readFileSync(r,"utf8").trim();return i.length===0?null:i}function nh({serverUrl:e,token:t}){tx();let r=mr(e);Ei.mkdirSync(zh.dirname(r),{mode:448,recursive:true}),Ei.writeFileSync(r,t+`
47
- `,{mode:384});}function rh(e){let t=mr(e);return Ei.existsSync(t)?(Ei.unlinkSync(t),true):false}function mr(e){return nx(zh.join("tokens",mA(e)))}function mA(e){return new URL(e).host.replaceAll(/[^a-zA-Z0-9.]/g,"_")}var gA=5e3,ix="ripplo-cli",yA=new Set(["authorization_pending","slow_down"]);async function ox({onDeviceCode:e,serverUrl:t}){let r=vA(t),i=await r.device.code({client_id:ix});if(i.error!=null)return de({description:i.error.error_description,kind:"device-code-failed"});let{device_code:n,user_code:o,verification_uri_complete:a}=i.data;return e({userCode:o,verificationUrl:a}),hr(a),(await bA({authClient:r,deviceCode:n})).map(c=>(nh({serverUrl:t,token:c}),c))}function vA(e){return Ym({baseURL:e,fetchOptions:{headers:{"User-Agent":"Ripplo CLI"}},plugins:[Qm()]})}async function bA({authClient:e,deviceCode:t}){for(;;){await SA(gA);let r=await e.device.token({client_id:ix,device_code:t,grant_type:"urn:ietf:params:oauth:grant-type:device_code"});if(r.data?.access_token!=null)return Fe(r.data.access_token);if(r.error!=null&&!yA.has(r.error.error))return de({code:r.error.error,description:r.error.error_description,kind:"authorization-failed"})}}function SA(e){return new Promise(t=>{setTimeout(t,e);})}function hr(e){let t=xA();exec(`${t} "${e}"`,()=>{});}function xA(){return process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open"}async function Po({lookupViewer:e,serverUrl:t}){let r=To(t);if(r!=null&&await _A({lookupViewer:e,serverUrl:t,token:r}))return;let n=(await ox({onDeviceCode:DA,serverUrl:t})).match(u=>u,u=>{process.stderr.write(`${EA(u)}
48
- `),process.exit(1);}),o=await e({serverUrl:t,token:n}),a="Welcome to Ripplo";process.stdout.write(`
49
- `),process.stdout.write(o.kind==="ok"?`${a}, ${wA(o.viewer)}.
44
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function gr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,l={...c},d=s.ref;if(s.ref=null,d){i(d);let m=e.seen.get(d),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(h)):Object.assign(c,h),Object.assign(c,l),a._zod.parent===d)for(let x in c)x==="$ref"||x==="allOf"||x in l||delete c[x];if(h.$ref&&m.def)for(let x in c)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(c[x])===JSON.stringify(m.def[x])&&delete c[x];}let p=a._zod.parent;if(p&&p!==d){i(p);let m=e.seen.get(p);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let h in c)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(c[h])===JSON.stringify(m.def[h])&&delete c[h];}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]});};for(let a of [...e.seen.entries()].reverse())i(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 o=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(o[s.defId]=s.def);}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Fn(t,"input",e.processors),output:Fn(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Xe(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return true;if(i.type==="array")return Xe(i.element,n);if(i.type==="set")return Xe(i.valueType,n);if(i.type==="lazy")return Xe(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Xe(i.innerType,n);if(i.type==="intersection")return Xe(i.left,n)||Xe(i.right,n);if(i.type==="record"||i.type==="map")return Xe(i.keyType,n)||Xe(i.valueType,n);if(i.type==="pipe")return Xe(i.in,n)||Xe(i.out,n);if(i.type==="object"){for(let r in i.shape)if(Xe(i.shape[r],n))return true;return false}if(i.type==="union"){for(let r of i.options)if(Xe(r,n))return true;return false}if(i.type==="tuple"){for(let r of i.items)if(Xe(r,n))return true;return !!(i.rest&&Xe(i.rest,n))}return false}var Cd=(e,t={})=>n=>{let i=mr({...n,processors:t});return le(e,i),hr(i,e),gr(i,e)},Fn=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=mr({...r??{},target:o,io:t,processors:n});return le(e,a),hr(a,e),gr(a,e)};var h0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ad=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=h0[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let d=[...c];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Rd=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=true):r.exclusiveMinimum=d),typeof o=="number"&&(r.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=l,r.exclusiveMaximum=true):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);},Td=(e,t,n,i)=>{n.type="boolean";},Fd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Pd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Nd=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=true,n.enum=[null]):n.type="null";},zd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Ud=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},jd=(e,t,n,i)=>{n.not={};},Ld=(e,t,n,i)=>{},Md=(e,t,n,i)=>{},Bd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Vd=(e,t,n,i)=>{let r=e._zod.def,o=di(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o;},Zd=(e,t,n,i)=>{let r=e._zod.def,o=[];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");o.push(Number(a));}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a;}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o;},Wd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Gd=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source;},qd=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,o);},Hd=(e,t,n,i)=>{n.type="boolean";},Yd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Jd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Kd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Xd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Qd=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ep=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=le(o.element,t,{...i,path:[...i.path,"items"]});},tp=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let l in a)r.properties[l]=le(a[l],t,{...i,path:[...i.path,"properties",l]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(l=>{let d=o.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(r.required=Array.from(c)),o.catchall?._zod.def.type==="never"?r.additionalProperties=false:o.catchall?o.catchall&&(r.additionalProperties=le(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=false);},xa=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===false,a=r.options.map((s,c)=>le(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a;},rp=(e,t,n,i)=>{let r=e._zod.def,o=le(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=le(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c;},np=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,h)=>le(m,t,{...i,path:[...i.path,a,h]})),l=o.rest?le(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.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:d,maximum:p}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof p=="number"&&(r.maxItems=p);},ip=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=le(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let p of c)r.patternProperties[p.source]=d;}else (t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=le(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=le(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d);}},op=(e,t,n,i)=>{let r=e._zod.def,o=le(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=true):n.anyOf=[o,{type:"null"}];},ap=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},sp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue));},up=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)));},cp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.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;},lp=(e,t,n,i)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;le(o,t,i);let a=t.seen.get(e);a.ref=o;},dp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=true;},pp=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},Sa=(e,t,n,i)=>{let r=e._zod.def;le(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;},fp=(e,t,n,i)=>{let r=e._zod.innerType;le(r,t,i);let o=t.seen.get(e);o.ref=r;},Da={string:Ad,number:Rd,boolean:Td,bigint:Fd,symbol:Pd,null:Nd,undefined:zd,void:Ud,never:jd,any:Ld,unknown:Md,date:Bd,enum:Vd,literal:Zd,nan:Wd,template_literal:Gd,file:qd,success:Hd,custom:Yd,function:Jd,transform:Kd,map:Xd,set:Qd,array:ep,object:tp,union:xa,intersection:rp,tuple:np,record:ip,nullable:op,nonoptional:ap,default:sp,prefault:up,catch:cp,pipe:lp,readonly:dp,promise:pp,optional:Sa,lazy:fp};function Ea(e,t){if("_idmap"in e){let i=e,r=mr({...t,processors:Da}),o={};for(let c of i._idmap.entries()){let[l,d]=c;le(d,r);}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let c of i._idmap.entries()){let[l,d]=c;hr(r,d),a[l]=gr(r,d);}if(Object.keys(o).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o};}return {schemas:a}}let n=mr({...t,processors:Da});return le(e,n),hr(n,e),gr(n,e)}var wa=class{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=mr({processors:Da,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 le(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)),hr(this.ctx,t);let i=gr(this.ctx,t),{"~standard":r,...o}=i;return o}};var Lg={};var ki={};b(ki,{ZodAny:()=>zp,ZodArray:()=>Mp,ZodBase64:()=>Wa,ZodBase64URL:()=>Ga,ZodBigInt:()=>Bn,ZodBigIntFormat:()=>Ya,ZodBoolean:()=>Mn,ZodCIDRv4:()=>Va,ZodCIDRv6:()=>Za,ZodCUID:()=>Na,ZodCUID2:()=>za,ZodCatch:()=>lf,ZodCodec:()=>is,ZodCustom:()=>Li,ZodCustomStringFormat:()=>jn,ZodDate:()=>Pi,ZodDefault:()=>nf,ZodDiscriminatedUnion:()=>Vp,ZodE164:()=>qa,ZodEmail:()=>Ta,ZodEmoji:()=>Fa,ZodEnum:()=>zn,ZodExactOptional:()=>ef,ZodFile:()=>Xp,ZodFunction:()=>bf,ZodGUID:()=>Ci,ZodIPv4:()=>Ma,ZodIPv6:()=>Ba,ZodIntersection:()=>Zp,ZodJWT:()=>Ha,ZodKSUID:()=>La,ZodLazy:()=>gf,ZodLiteral:()=>Kp,ZodMAC:()=>Cp,ZodMap:()=>Yp,ZodNaN:()=>pf,ZodNanoID:()=>Pa,ZodNever:()=>jp,ZodNonOptional:()=>rs,ZodNull:()=>Pp,ZodNullable:()=>rf,ZodNumber:()=>Ln,ZodNumberFormat:()=>zr,ZodObject:()=>zi,ZodOptional:()=>ts,ZodPipe:()=>ns,ZodPrefault:()=>af,ZodPromise:()=>yf,ZodReadonly:()=>ff,ZodRecord:()=>ji,ZodSet:()=>Jp,ZodString:()=>Un,ZodStringFormat:()=>me,ZodSuccess:()=>cf,ZodSymbol:()=>Tp,ZodTemplateLiteral:()=>hf,ZodTransform:()=>Qp,ZodTuple:()=>Gp,ZodType:()=>ee,ZodULID:()=>Ua,ZodURL:()=>Fi,ZodUUID:()=>Zt,ZodUndefined:()=>Fp,ZodUnion:()=>Ui,ZodUnknown:()=>Up,ZodVoid:()=>Lp,ZodXID:()=>ja,ZodXor:()=>Bp,_ZodString:()=>Ra,_default:()=>of,_function:()=>Gv,any:()=>wv,array:()=>Ni,base64:()=>uv,base64url:()=>cv,bigint:()=>_v,boolean:()=>Rp,catch:()=>df,check:()=>qv,cidrv4:()=>av,cidrv6:()=>sv,codec:()=>Vv,cuid:()=>Xg,cuid2:()=>Qg,custom:()=>Hv,date:()=>Iv,describe:()=>Yv,discriminatedUnion:()=>Rv,e164:()=>lv,email:()=>Bg,emoji:()=>Jg,enum:()=>Qa,exactOptional:()=>tf,file:()=>jv,float32:()=>gv,float64:()=>vv,function:()=>Gv,guid:()=>Vg,hash:()=>hv,hex:()=>mv,hostname:()=>fv,httpUrl:()=>Yg,instanceof:()=>Kv,int:()=>Aa,int32:()=>yv,int64:()=>Dv,intersection:()=>Wp,ipv4:()=>nv,ipv6:()=>ov,json:()=>Qv,jwt:()=>dv,keyof:()=>Ov,ksuid:()=>rv,lazy:()=>vf,literal:()=>Uv,looseObject:()=>Cv,looseRecord:()=>Fv,mac:()=>iv,map:()=>Pv,meta:()=>Jv,nan:()=>Bv,nanoid:()=>Kg,nativeEnum:()=>zv,never:()=>Ja,nonoptional:()=>uf,null:()=>Np,nullable:()=>Ri,nullish:()=>Lv,number:()=>Ap,object:()=>Ka,optional:()=>Ai,partialRecord:()=>Tv,pipe:()=>Ti,prefault:()=>sf,preprocess:()=>ey,promise:()=>Wv,readonly:()=>mf,record:()=>Hp,refine:()=>_f,set:()=>Nv,strictObject:()=>kv,string:()=>Nn,stringFormat:()=>pv,stringbool:()=>Xv,success:()=>Mv,superRefine:()=>Df,symbol:()=>Sv,templateLiteral:()=>Zv,transform:()=>es,tuple:()=>qp,uint32:()=>bv,uint64:()=>xv,ulid:()=>ev,undefined:()=>Ev,union:()=>Xa,unknown:()=>Nr,url:()=>Hg,uuid:()=>Zg,uuidv4:()=>Wg,uuidv6:()=>Gg,uuidv7:()=>qg,void:()=>$v,xid:()=>tv,xor:()=>Av});var $a={};b($a,{endsWith:()=>$n,gt:()=>Bt,gte:()=>Ke,includes:()=>En,length:()=>Pr,lowercase:()=>xn,lt:()=>Mt,lte:()=>ct,maxLength:()=>Fr,maxSize:()=>fr,mime:()=>In,minLength:()=>rr,minSize:()=>Vt,multipleOf:()=>pr,negative:()=>va,nonnegative:()=>ba,nonpositive:()=>ya,normalize:()=>On,overwrite:()=>Tt,positive:()=>ga,property:()=>_a,regex:()=>Dn,size:()=>Tr,slugify:()=>Rn,startsWith:()=>wn,toLowerCase:()=>Cn,toUpperCase:()=>An,trim:()=>kn,uppercase:()=>Sn});var Pn={};b(Pn,{ZodISODate:()=>Oa,ZodISODateTime:()=>Ia,ZodISODuration:()=>Ca,ZodISOTime:()=>ka,date:()=>hp,datetime:()=>mp,duration:()=>vp,time:()=>gp});var Ia=v("ZodISODateTime",(e,t)=>{Wc.init(e,t),me.init(e,t);});function mp(e){return Yl(Ia,e)}var Oa=v("ZodISODate",(e,t)=>{Gc.init(e,t),me.init(e,t);});function hp(e){return Jl(Oa,e)}var ka=v("ZodISOTime",(e,t)=>{qc.init(e,t),me.init(e,t);});function gp(e){return Kl(ka,e)}var Ca=v("ZodISODuration",(e,t)=>{Hc.init(e,t),me.init(e,t);});function vp(e){return Xl(Ca,e)}var Mg=(e,t)=>{gi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>yi(e,n)},flatten:{value:n=>vi(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,pn,2);}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,pn,2);}},isEmpty:{get(){return e.issues.length===0}}});},v0=v("ZodError",Mg),ot=v("ZodError",Mg,{Parent:Error});var yp=hn(ot),bp=gn(ot),_p=vn(ot),Dp=yn(ot),xp=Eo(ot),Sp=wo(ot),Ep=$o(ot),wp=Io(ot),$p=Oo(ot),Ip=ko(ot),Op=Co(ot),kp=Ao(ot);var ee=v("ZodType",(e,t)=>(X.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Fn(e,"input"),output:Fn(e,"output")}}),e.toJSONSchema=Cd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(I.mergeDefs(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:true}),e.with=e.check,e.clone=(n,i)=>Je(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>yp(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>_p(e,n,i),e.parseAsync=async(n,i)=>bp(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Dp(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>xp(e,n,i),e.decode=(n,i)=>Sp(e,n,i),e.encodeAsync=async(n,i)=>Ep(e,n,i),e.decodeAsync=async(n,i)=>wp(e,n,i),e.safeEncode=(n,i)=>$p(e,n,i),e.safeDecode=(n,i)=>Ip(e,n,i),e.safeEncodeAsync=async(n,i)=>Op(e,n,i),e.safeDecodeAsync=async(n,i)=>kp(e,n,i),e.refine=(n,i)=>e.check(_f(n,i)),e.superRefine=n=>e.check(Df(n)),e.overwrite=n=>e.check(Tt(n)),e.optional=()=>Ai(e),e.exactOptional=()=>tf(e),e.nullable=()=>Ri(e),e.nullish=()=>Ai(Ri(e)),e.nonoptional=n=>uf(e,n),e.array=()=>Ni(e),e.or=n=>Xa([e,n]),e.and=n=>Wp(e,n),e.transform=n=>Ti(e,es(n)),e.default=n=>of(e,n),e.prefault=n=>sf(e,n),e.catch=n=>df(e,n),e.pipe=n=>Ti(e,n),e.readonly=()=>mf(e),e.describe=n=>{let i=e.clone();return Ze.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Ze.get(e)?.description},configurable:true}),e.meta=(...n)=>{if(n.length===0)return Ze.get(e);let i=e.clone();return Ze.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ra=v("_ZodString",(e,t)=>{Rr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ad(e,i,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(Dn(...i)),e.includes=(...i)=>e.check(En(...i)),e.startsWith=(...i)=>e.check(wn(...i)),e.endsWith=(...i)=>e.check($n(...i)),e.min=(...i)=>e.check(rr(...i)),e.max=(...i)=>e.check(Fr(...i)),e.length=(...i)=>e.check(Pr(...i)),e.nonempty=(...i)=>e.check(rr(1,...i)),e.lowercase=i=>e.check(xn(i)),e.uppercase=i=>e.check(Sn(i)),e.trim=()=>e.check(kn()),e.normalize=(...i)=>e.check(On(...i)),e.toLowerCase=()=>e.check(Cn()),e.toUpperCase=()=>e.check(An()),e.slugify=()=>e.check(Rn());}),Un=v("ZodString",(e,t)=>{Rr.init(e,t),Ra.init(e,t),e.email=n=>e.check(Jo(Ta,n)),e.url=n=>e.check(Oi(Fi,n)),e.jwt=n=>e.check(ha(Ha,n)),e.emoji=n=>e.check(ta(Fa,n)),e.guid=n=>e.check(Ii(Ci,n)),e.uuid=n=>e.check(Ko(Zt,n)),e.uuidv4=n=>e.check(Xo(Zt,n)),e.uuidv6=n=>e.check(Qo(Zt,n)),e.uuidv7=n=>e.check(ea(Zt,n)),e.nanoid=n=>e.check(ra(Pa,n)),e.guid=n=>e.check(Ii(Ci,n)),e.cuid=n=>e.check(na(Na,n)),e.cuid2=n=>e.check(ia(za,n)),e.ulid=n=>e.check(oa(Ua,n)),e.base64=n=>e.check(pa(Wa,n)),e.base64url=n=>e.check(fa(Ga,n)),e.xid=n=>e.check(aa(ja,n)),e.ksuid=n=>e.check(sa(La,n)),e.ipv4=n=>e.check(ua(Ma,n)),e.ipv6=n=>e.check(ca(Ba,n)),e.cidrv4=n=>e.check(la(Va,n)),e.cidrv6=n=>e.check(da(Za,n)),e.e164=n=>e.check(ma(qa,n)),e.datetime=n=>e.check(mp(n)),e.date=n=>e.check(hp(n)),e.time=n=>e.check(gp(n)),e.duration=n=>e.check(vp(n));});function Nn(e){return Wl(Un,e)}var me=v("ZodStringFormat",(e,t)=>{fe.init(e,t),Ra.init(e,t);}),Ta=v("ZodEmail",(e,t)=>{Nc.init(e,t),me.init(e,t);});function Bg(e){return Jo(Ta,e)}var Ci=v("ZodGUID",(e,t)=>{Fc.init(e,t),me.init(e,t);});function Vg(e){return Ii(Ci,e)}var Zt=v("ZodUUID",(e,t)=>{Pc.init(e,t),me.init(e,t);});function Zg(e){return Ko(Zt,e)}function Wg(e){return Xo(Zt,e)}function Gg(e){return Qo(Zt,e)}function qg(e){return ea(Zt,e)}var Fi=v("ZodURL",(e,t)=>{zc.init(e,t),me.init(e,t);});function Hg(e){return Oi(Fi,e)}function Yg(e){return Oi(Fi,{protocol:/^https?$/,hostname:bt.domain,...I.normalizeParams(e)})}var Fa=v("ZodEmoji",(e,t)=>{Uc.init(e,t),me.init(e,t);});function Jg(e){return ta(Fa,e)}var Pa=v("ZodNanoID",(e,t)=>{jc.init(e,t),me.init(e,t);});function Kg(e){return ra(Pa,e)}var Na=v("ZodCUID",(e,t)=>{Lc.init(e,t),me.init(e,t);});function Xg(e){return na(Na,e)}var za=v("ZodCUID2",(e,t)=>{Mc.init(e,t),me.init(e,t);});function Qg(e){return ia(za,e)}var Ua=v("ZodULID",(e,t)=>{Bc.init(e,t),me.init(e,t);});function ev(e){return oa(Ua,e)}var ja=v("ZodXID",(e,t)=>{Vc.init(e,t),me.init(e,t);});function tv(e){return aa(ja,e)}var La=v("ZodKSUID",(e,t)=>{Zc.init(e,t),me.init(e,t);});function rv(e){return sa(La,e)}var Ma=v("ZodIPv4",(e,t)=>{Yc.init(e,t),me.init(e,t);});function nv(e){return ua(Ma,e)}var Cp=v("ZodMAC",(e,t)=>{Kc.init(e,t),me.init(e,t);});function iv(e){return ql(Cp,e)}var Ba=v("ZodIPv6",(e,t)=>{Jc.init(e,t),me.init(e,t);});function ov(e){return ca(Ba,e)}var Va=v("ZodCIDRv4",(e,t)=>{Xc.init(e,t),me.init(e,t);});function av(e){return la(Va,e)}var Za=v("ZodCIDRv6",(e,t)=>{Qc.init(e,t),me.init(e,t);});function sv(e){return da(Za,e)}var Wa=v("ZodBase64",(e,t)=>{tl.init(e,t),me.init(e,t);});function uv(e){return pa(Wa,e)}var Ga=v("ZodBase64URL",(e,t)=>{rl.init(e,t),me.init(e,t);});function cv(e){return fa(Ga,e)}var qa=v("ZodE164",(e,t)=>{nl.init(e,t),me.init(e,t);});function lv(e){return ma(qa,e)}var Ha=v("ZodJWT",(e,t)=>{il.init(e,t),me.init(e,t);});function dv(e){return ha(Ha,e)}var jn=v("ZodCustomStringFormat",(e,t)=>{ol.init(e,t),me.init(e,t);});function pv(e,t,n={}){return Tn(jn,e,t,n)}function fv(e){return Tn(jn,"hostname",bt.hostname,e)}function mv(e){return Tn(jn,"hex",bt.hex,e)}function hv(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=bt[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Tn(jn,i,r,t)}var Ln=v("ZodNumber",(e,t)=>{Mo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Rd(e,i,r),e.gt=(i,r)=>e.check(Bt(i,r)),e.gte=(i,r)=>e.check(Ke(i,r)),e.min=(i,r)=>e.check(Ke(i,r)),e.lt=(i,r)=>e.check(Mt(i,r)),e.lte=(i,r)=>e.check(ct(i,r)),e.max=(i,r)=>e.check(ct(i,r)),e.int=i=>e.check(Aa(i)),e.safe=i=>e.check(Aa(i)),e.positive=i=>e.check(Bt(0,i)),e.nonnegative=i=>e.check(Ke(0,i)),e.negative=i=>e.check(Mt(0,i)),e.nonpositive=i=>e.check(ct(0,i)),e.multipleOf=(i,r)=>e.check(pr(i,r)),e.step=(i,r)=>e.check(pr(i,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=true,e.format=n.format??null;});function Ap(e){return Ql(Ln,e)}var zr=v("ZodNumberFormat",(e,t)=>{al.init(e,t),Ln.init(e,t);});function Aa(e){return td(zr,e)}function gv(e){return rd(zr,e)}function vv(e){return nd(zr,e)}function yv(e){return id(zr,e)}function bv(e){return od(zr,e)}var Mn=v("ZodBoolean",(e,t)=>{xi.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Td(e,n,i);});function Rp(e){return ad(Mn,e)}var Bn=v("ZodBigInt",(e,t)=>{Bo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Fd(e,i),e.gte=(i,r)=>e.check(Ke(i,r)),e.min=(i,r)=>e.check(Ke(i,r)),e.gt=(i,r)=>e.check(Bt(i,r)),e.gte=(i,r)=>e.check(Ke(i,r)),e.min=(i,r)=>e.check(Ke(i,r)),e.lt=(i,r)=>e.check(Mt(i,r)),e.lte=(i,r)=>e.check(ct(i,r)),e.max=(i,r)=>e.check(ct(i,r)),e.positive=i=>e.check(Bt(BigInt(0),i)),e.negative=i=>e.check(Mt(BigInt(0),i)),e.nonpositive=i=>e.check(ct(BigInt(0),i)),e.nonnegative=i=>e.check(Ke(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(pr(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null;});function _v(e){return ud(Bn,e)}var Ya=v("ZodBigIntFormat",(e,t)=>{sl.init(e,t),Bn.init(e,t);});function Dv(e){return ld(Ya,e)}function xv(e){return dd(Ya,e)}var Tp=v("ZodSymbol",(e,t)=>{ul.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Pd(e,n);});function Sv(e){return pd(Tp,e)}var Fp=v("ZodUndefined",(e,t)=>{cl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zd(e,n);});function Ev(e){return fd(Fp,e)}var Pp=v("ZodNull",(e,t)=>{ll.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Nd(e,n,i);});function Np(e){return md(Pp,e)}var zp=v("ZodAny",(e,t)=>{dl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ld();});function wv(){return hd(zp)}var Up=v("ZodUnknown",(e,t)=>{pl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Md();});function Nr(){return gd(Up)}var jp=v("ZodNever",(e,t)=>{fl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jd(e,n,i);});function Ja(e){return vd(jp,e)}var Lp=v("ZodVoid",(e,t)=>{ml.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ud(e,n);});function $v(e){return yd(Lp,e)}var Pi=v("ZodDate",(e,t)=>{hl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Bd(e,i),e.min=(i,r)=>e.check(Ke(i,r)),e.max=(i,r)=>e.check(ct(i,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 Iv(e){return bd(Pi,e)}var Mp=v("ZodArray",(e,t)=>{gl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ep(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(rr(n,i)),e.nonempty=n=>e.check(rr(1,n)),e.max=(n,i)=>e.check(Fr(n,i)),e.length=(n,i)=>e.check(Pr(n,i)),e.unwrap=()=>e.element;});function Ni(e,t){return xd(Mp,e,t)}function Ov(e){let t=e._zod.def.shape;return Qa(Object.keys(t))}var zi=v("ZodObject",(e,t)=>{vl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tp(e,n,i,r),I.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Qa(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Nr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Nr()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ja()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>I.extend(e,n),e.safeExtend=n=>I.safeExtend(e,n),e.merge=n=>I.merge(e,n),e.pick=n=>I.pick(e,n),e.omit=n=>I.omit(e,n),e.partial=(...n)=>I.partial(ts,e,n[0]),e.required=(...n)=>I.required(rs,e,n[0]);});function Ka(e,t){let n={type:"object",shape:e??{},...I.normalizeParams(t)};return new zi(n)}function kv(e,t){return new zi({type:"object",shape:e,catchall:Ja(),...I.normalizeParams(t)})}function Cv(e,t){return new zi({type:"object",shape:e,catchall:Nr(),...I.normalizeParams(t)})}var Ui=v("ZodUnion",(e,t)=>{Si.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xa(e,n,i,r),e.options=t.options;});function Xa(e,t){return new Ui({type:"union",options:e,...I.normalizeParams(t)})}var Bp=v("ZodXor",(e,t)=>{Ui.init(e,t),yl.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xa(e,n,i,r),e.options=t.options;});function Av(e,t){return new Bp({type:"union",options:e,inclusive:false,...I.normalizeParams(t)})}var Vp=v("ZodDiscriminatedUnion",(e,t)=>{Ui.init(e,t),bl.init(e,t);});function Rv(e,t,n){return new Vp({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var Zp=v("ZodIntersection",(e,t)=>{_l.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rp(e,n,i,r);});function Wp(e,t){return new Zp({type:"intersection",left:e,right:t})}var Gp=v("ZodTuple",(e,t)=>{Vo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>np(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n});});function qp(e,t,n){let i=t instanceof X,r=i?n:t,o=i?t:null;return new Gp({type:"tuple",items:e,rest:o,...I.normalizeParams(r)})}var ji=v("ZodRecord",(e,t)=>{Dl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ip(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType;});function Hp(e,t,n){return new ji({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function Tv(e,t,n){let i=Je(e);return i._zod.values=void 0,new ji({type:"record",keyType:i,valueType:t,...I.normalizeParams(n)})}function Fv(e,t,n){return new ji({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(n)})}var Yp=v("ZodMap",(e,t)=>{xl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xd(e,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(fr(...n)),e.size=(...n)=>e.check(Tr(...n));});function Pv(e,t,n){return new Yp({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var Jp=v("ZodSet",(e,t)=>{Sl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qd(e,n),e.min=(...n)=>e.check(Vt(...n)),e.nonempty=n=>e.check(Vt(1,n)),e.max=(...n)=>e.check(fr(...n)),e.size=(...n)=>e.check(Tr(...n));});function Nv(e,t){return new Jp({type:"set",valueType:e,...I.normalizeParams(t)})}var zn=v("ZodEnum",(e,t)=>{El.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Vd(e,i,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new zn({...t,checks:[],...I.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new zn({...t,checks:[],...I.normalizeParams(r),entries:o})};});function Qa(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zn({type:"enum",entries:n,...I.normalizeParams(t)})}function zv(e,t){return new zn({type:"enum",entries:e,...I.normalizeParams(t)})}var Kp=v("ZodLiteral",(e,t)=>{wl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zd(e,n,i),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 Uv(e,t){return new Kp({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var Xp=v("ZodFile",(e,t)=>{$l.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qd(e,n,i),e.min=(n,i)=>e.check(Vt(n,i)),e.max=(n,i)=>e.check(fr(n,i)),e.mime=(n,i)=>e.check(In(Array.isArray(n)?n:[n],i));});function jv(e){return Sd(Xp,e)}var Qp=v("ZodTransform",(e,t)=>{Il.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kd(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new sr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(I.issue(o,n.value,t));else {let a=o;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(I.issue(a));}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)};});function es(e){return new Qp({type:"transform",transform:e})}var ts=v("ZodOptional",(e,t)=>{Zo.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sa(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Ai(e){return new ts({type:"optional",innerType:e})}var ef=v("ZodExactOptional",(e,t)=>{Ol.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sa(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function tf(e){return new ef({type:"optional",innerType:e})}var rf=v("ZodNullable",(e,t)=>{kl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>op(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Ri(e){return new rf({type:"nullable",innerType:e})}function Lv(e){return Ai(Ri(e))}var nf=v("ZodDefault",(e,t)=>{Cl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function of(e,t){return new nf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var af=v("ZodPrefault",(e,t)=>{Al.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>up(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function sf(e,t){return new af({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var rs=v("ZodNonOptional",(e,t)=>{Rl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ap(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function uf(e,t){return new rs({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var cf=v("ZodSuccess",(e,t)=>{Tl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hd(e,n,i),e.unwrap=()=>e._zod.def.innerType;});function Mv(e){return new cf({type:"success",innerType:e})}var lf=v("ZodCatch",(e,t)=>{Fl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function df(e,t){return new lf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var pf=v("ZodNaN",(e,t)=>{Pl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Wd(e,n);});function Bv(e){return Dd(pf,e)}var ns=v("ZodPipe",(e,t)=>{Nl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lp(e,n,i,r),e.in=t.in,e.out=t.out;});function Ti(e,t){return new ns({type:"pipe",in:e,out:t})}var is=v("ZodCodec",(e,t)=>{ns.init(e,t),Ei.init(e,t);});function Vv(e,t,n){return new is({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var ff=v("ZodReadonly",(e,t)=>{zl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function mf(e){return new ff({type:"readonly",innerType:e})}var hf=v("ZodTemplateLiteral",(e,t)=>{Ul.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gd(e,n,i);});function Zv(e,t){return new hf({type:"template_literal",parts:e,...I.normalizeParams(t)})}var gf=v("ZodLazy",(e,t)=>{Ml.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fp(e,n,i,r),e.unwrap=()=>e._zod.def.getter();});function vf(e){return new gf({type:"lazy",getter:e})}var yf=v("ZodPromise",(e,t)=>{Ll.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType;});function Wv(e){return new yf({type:"promise",innerType:e})}var bf=v("ZodFunction",(e,t)=>{jl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jd(e,n);});function Gv(e){return new bf({type:"function",input:Array.isArray(e?.input)?qp(e?.input):e?.input??Ni(Nr()),output:e?.output??Nr()})}var Li=v("ZodCustom",(e,t)=>{Bl.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yd(e,n);});function qv(e){let t=new he({check:"custom"});return t._zod.check=e,t}function Hv(e,t){return Ed(Li,e??(()=>true),t)}function _f(e,t={}){return wd(Li,e,t)}function Df(e){return $d(e)}var Yv=Id,Jv=Od;function Kv(e,t={}){let n=new Li({type:"custom",check:"custom",fn:i=>i instanceof e,abort:true,...I.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]});},n}var Xv=(...e)=>kd({Codec:is,Boolean:Mn,String:Un},...e);function Qv(e){let t=vf(()=>Xa([Nn(e),Ap(),Rp(),Np(),Ni(t),Hp(Nn(),t)]));return t}function ey(e,t){return Ti(es(e),t)}var b0={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 _0(e){Se({customError:e});}function D0(){return Se().customError}var xf;xf||(xf={});var F={...ki,...$a,iso:Pn},x0=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 S0(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"}function E0(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 i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){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}`)}function ty(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return F.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 F.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=E0(r,t),a=We(o,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===true&&r.length===1&&r[0]===null)return F.null();if(r.length===0)return F.never();if(r.length===1)return F.literal(r[0]);if(r.every(a=>typeof a=="string"))return F.enum(r);let o=r.map(a=>F.literal(a));return o.length<2?o[0]:F.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return F.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return ty(a,t)});return r.length===0?F.never():r.length===1?r[0]:F.union(r)}if(!n)return F.any();let i;switch(n){case "string":{let r=F.string();if(e.format){let o=e.format;o==="email"?r=r.check(F.email()):o==="uri"||o==="uri-reference"?r=r.check(F.url()):o==="uuid"||o==="guid"?r=r.check(F.uuid()):o==="date-time"?r=r.check(F.iso.datetime()):o==="date"?r=r.check(F.iso.date()):o==="time"?r=r.check(F.iso.time()):o==="duration"?r=r.check(F.iso.duration()):o==="ipv4"?r=r.check(F.ipv4()):o==="ipv6"?r=r.check(F.ipv6()):o==="mac"?r=r.check(F.mac()):o==="cidr"?r=r.check(F.cidrv4()):o==="cidr-v6"?r=r.check(F.cidrv6()):o==="base64"?r=r.check(F.base64()):o==="base64url"?r=r.check(F.base64url()):o==="e164"?r=r.check(F.e164()):o==="jwt"?r=r.check(F.jwt()):o==="emoji"?r=r.check(F.emoji()):o==="nanoid"?r=r.check(F.nanoid()):o==="cuid"?r=r.check(F.cuid()):o==="cuid2"?r=r.check(F.cuid2()):o==="ulid"?r=r.check(F.ulid()):o==="xid"?r=r.check(F.xid()):o==="ksuid"&&(r=r.check(F.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))),i=r;break}case "number":case "integer":{let r=n==="integer"?F.number().int():F.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===true&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===true&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case "boolean":{i=F.boolean();break}case "null":{i=F.null();break}case "object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,l]of Object.entries(o)){let d=We(l,t);r[c]=a.has(c)?d:d.optional();}if(e.propertyNames){let c=We(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?We(e.additionalProperties,t):F.any();if(Object.keys(r).length===0){i=F.record(c,l);break}let d=F.object(r).passthrough(),p=F.looseRecord(c,l);i=F.intersection(d,p);break}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let m of l){let h=We(c[m],t),y=F.string().regex(new RegExp(m));d.push(F.looseRecord(y,h));}let p=[];if(Object.keys(r).length>0&&p.push(F.object(r).passthrough()),p.push(...d),p.length===0)i=F.object({}).passthrough();else if(p.length===1)i=p[0];else {let m=F.intersection(p[0],p[1]);for(let h=2;h<p.length;h++)m=F.intersection(m,p[h]);i=m;}break}let s=F.object(r);e.additionalProperties===false?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(We(e.additionalProperties,t)):i=s.passthrough();break}case "array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(c=>We(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?We(o,t):void 0;s?i=F.tuple(a).rest(s):i=F.tuple(a),typeof e.minItems=="number"&&(i=i.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(F.maxLength(e.maxItems)));}else if(Array.isArray(o)){let a=o.map(c=>We(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?We(e.additionalItems,t):void 0;s?i=F.tuple(a).rest(s):i=F.tuple(a),typeof e.minItems=="number"&&(i=i.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(F.maxLength(e.maxItems)));}else if(o!==void 0){let a=We(o,t),s=F.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s;}else i=F.array(F.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function We(e,t){if(typeof e=="boolean")return e?F.any():F.never();let n=ty(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(l=>We(l,t)),c=F.union(s);n=i?F.intersection(n,c):c;}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>We(l,t)),c=F.xor(s);n=i?F.intersection(n,c):c;}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:F.any();else {let s=i?n:We(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)s=F.intersection(s,We(e.allOf[l],t));n=s;}e.nullable===true&&t.version==="openapi-3.0"&&(n=F.nullable(n)),e.readOnly===true&&(n=F.readonly(n));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);for(let s of Object.keys(e))x0.has(s)||(r[s]=e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function ry(e,t){if(typeof e=="boolean")return e?F.any():F.never();let n=S0(e,t?.defaultTarget),i=e.$defs||e.definitions||{},r={version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Ze};return We(e,r)}var Sf={};b(Sf,{bigint:()=>O0,boolean:()=>I0,date:()=>k0,number:()=>$0,string:()=>w0});function w0(e){return Gl(Un,e)}function $0(e){return ed(Ln,e)}function I0(e){return sd(Mn,e)}function O0(e){return cd(Bn,e)}function k0(e){return _d(Pi,e)}Se(Wo());function ny({signal:e,timeoutMs:t}){let n=new AbortController,i=new DOMException("The operation timed out.","TimeoutError"),r=setTimeout(()=>{n.abort(i);},t);r.unref();let o=()=>{n.abort(e?.reason);};return n.signal.addEventListener("abort",()=>{clearTimeout(r),e?.removeEventListener("abort",o);},{once:true}),e?.aborted===true?o():e?.addEventListener("abort",o,{once:true}),{signal:n.signal,clear:()=>{clearTimeout(r);},expired:()=>n.signal.reason===i}}async function iy({ms:e,signal:t}){t?.throwIfAborted(),await new Promise(n=>{let r=setTimeout(()=>{t?.removeEventListener("abort",o),n();},e),o=()=>{clearTimeout(r),n();};t?.addEventListener("abort",o,{once:true});}),t?.throwIfAborted();}var A0=300;function oy(e){return ay({...e,attempt:1})}async function ay(e){let t=await R0(e);return !t.retryable||e.attempt>=e.policy.attempts?t.outcome:(await iy({ms:T0(e.attempt),signal:e.init.signal??void 0}),ay({...e,attempt:e.attempt+1}))}async function R0({fetch:e,init:t,policy:n,url:i}){try{t.signal?.throwIfAborted();let{signal:r}=ny({signal:t.signal??void 0,timeoutMs:n.timeoutMs}),o=await e(i,{...t,signal:r});return {outcome:{kind:"response",response:o},retryable:o.status>=500}}catch(r){return t.signal?.throwIfAborted(),{outcome:{detail:F0(r),kind:"unreachable"},retryable:true}}}function T0(e){return A0*3**(e-1)*(.5+Math.random())}function F0(e){if(!(e instanceof Error))return String(e);let{cause:t}=e;if(t instanceof Error){let n="code"in t&&typeof t.code=="string"?` (${t.code})`:"";return `${e.message}: ${t.message}${n}`}return e.message}var P0=15e3,N0=3,os=class extends Error{detail;serverUrl;constructor({detail:t,serverUrl:n}){super(`Failed to connect to Ripplo server at ${n}. Check the server is running and reachable. Details: ${t}`),this.name="GqlConnectionError",this.detail=t,this.serverUrl=n;}},Ur=class extends Error{errors;constructor(t){super(t.map(n=>n.message).join(", ")),this.name="GqlRequestError",this.errors=t;}};function Ef(e){if(e instanceof Ur)return e.errors[0]?.extensions?.code}var z0={attempts:N0,timeoutMs:P0};async function Te(e){return U0({headers:{},params:e,policy:z0,signal:void 0})}async function U0(e){let{headers:t,params:n,policy:i}=e,{print:r}=await import('./graphql-Z4UDRCDF.js'),o=r(n.document),a=JSON.stringify({query:o,variables:n.variables}),s=`${n.config.ripploServerUrl}/graphql`,c=await j0({init:{body:a,headers:{...t,Authorization:`Bearer ${n.config.token}`,"Content-Type":"application/json"},method:"POST",signal:e.signal},policy:i,serverUrl:n.config.ripploServerUrl,url:s}),l=await L0({res:c,url:s});if(!M0(l))throw new Error("Invalid GraphQL response");if(B0(l))throw new Ur(l.errors);if(l.data==null)throw new Error("No data returned from server");return l.data}async function j0({init:e,policy:t,serverUrl:n,url:i}){let r=await oy({fetch:globalThis.fetch,init:e,policy:t,url:i});if(r.kind==="response"&&r.response.status<500)return r.response;throw new os({detail:r.kind==="response"?`server returned status ${String(r.response.status)}`:r.detail,serverUrl:n})}async function L0({res:e,url:t}){let n=await e.text();if(n.length===0)throw new Error(`Empty response from Ripplo server at ${t} (status ${String(e.status)}). The server may have restarted or the request was rejected before a body was sent.`);try{return JSON.parse(n)}catch{throw new Error(`Non-JSON response from Ripplo server at ${t} (status ${String(e.status)}): ${n.slice(0,200)}`)}}function M0(e){return typeof e=="object"&&e!=null&&("data"in e||"errors"in e)}function B0(e){return Array.isArray(e.errors)&&e.errors.length>0}u.union([u.string(),u.number(),u.boolean(),u.null()]);var at=u.json();u.record(u.string(),at);u.enum(["observed","setup"]);var Vn=u.string().regex(/^[A-Za-z_]\w*\.[A-Za-z_]\w*$/u).brand("SchemaOperationId");u.enum(["read","setup","locate"]);var sy=u.discriminatedUnion("kind",[u.strictObject({arguments:u.record(u.string(),at),kind:u.literal("missing"),operation:Vn}),u.strictObject({issues:u.array(u.string()),kind:u.literal("invalid-output"),operation:Vn}),u.strictObject({kind:u.literal("execution-failed"),message:u.string(),operation:Vn})]),uy=u.tuple([sy]).rest(sy).readonly();u.enum(["unwritten","written"]);var cy=u.union([u.string(),u.number(),u.boolean()]),wf=u.union([cy,u.null()]),V0=u.object({by:u.literal("role"),name:u.union([u.string(),u.undefined()]).optional().transform(e=>e),role:u.string().min(1)}),Z0=u.object({by:u.literal("testId"),value:u.string()}),W0=u.object({by:u.literal("inside"),scope:u.lazy(()=>Ie),target:u.lazy(()=>Ie)}),G0=u.object({by:u.literal("surface"),container:u.lazy(()=>Ie),overlay:u.boolean()}),q0=u.object({by:u.literal("frame"),element:u.lazy(()=>Ie)}),Ie=u.discriminatedUnion("by",[V0,Z0,u.object({by:u.literal("element"),name:u.string().min(1),values:u.record(u.string().min(1),cy)}),W0,G0,q0]);u.enum(["string","number","boolean"]);var ly=u.enum(["mobile","desktop"]);var H0=u.object({actual:u.string(),expected:u.string(),log:u.array(u.string()),name:u.string(),timeoutMs:u.number().int().nullable()}),Y0=u.object({label:u.string().min(1),role:u.string().min(1)}),J0=3,as=u.object({ancestors:u.array(Y0).max(J0),name:u.string().nullable(),role:u.string().nullable(),tag:u.string(),visible:u.boolean()}),Zn={expectedRole:u.string().nullable()},K0=u.object({description:u.string(),name:u.string()}),$f={...Zn,description:u.string(),element:K0.optional()},ss=u.discriminatedUnion("kind",[u.object({...$f,issues:u.array(u.string()),kind:u.literal("binding-values-invalid")}),u.object({...$f,kind:u.literal("binding-missed"),locator:Ie,matched:u.enum(["none","several"]).optional()}),u.object({...$f,aliasOf:u.string().min(1),kind:u.literal("binding-alias")})]);new Set(ss.options.map(e=>e.shape.kind.value));var X0=u.discriminatedUnion("kind",[...ss.options,u.object({...Zn,kind:u.literal("absent")}),u.object({...Zn,kind:u.literal("hidden"),matches:u.array(as).min(1)}),u.object({...Zn,kind:u.literal("ambiguous"),matches:u.array(as).min(2)}),u.object({...Zn,kind:u.literal("text-elsewhere"),match:as,partial:u.boolean()}),u.object({...Zn,actualName:u.string(),kind:u.literal("name-differs"),match:as})]),Mi=u.object({ariaSnapshot:u.string().nullable(),matcher:H0.nullable(),message:u.string(),miss:X0.nullable()});var If=u.enum(["create-session","teardown"]),Q0=u.enum(["unconfigured","navigate","not-signed-in","ticket-rejected"]),us=u.enum(["create","read","setup"]),eI=u.discriminatedUnion("kind",[u.object({kind:u.literal("field"),name:u.string()}),u.object({kind:u.literal("record-entry")}),u.object({kind:u.literal("array-entry")})]),tI=u.object({issues:u.array(u.object({branches:u.array(u.number().int().nonnegative()),code:u.enum(["invalid_type","too_big","too_small","invalid_format","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","invalid_value","custom"]),path:u.array(u.union([u.string(),u.number()])),schemaPath:u.array(eI)})).min(1),schemaHash:u.string()}),rI=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("network")}),u.strictObject({kind:u.literal("http"),status:u.number().int()}),u.strictObject({kind:u.literal("not-json")})]);var dy=[u.object({kind:u.literal("definition-failed"),message:u.string()}),u.object({detail:u.string(),kind:u.literal("authentication-http"),operation:If,status:u.number().int()}),u.object({code:u.string().nullable(),kind:u.literal("authentication-network"),message:u.string(),operation:If}),u.object({kind:u.literal("app-not-ready"),timeoutMs:u.number().int()}),u.object({kind:u.literal("authentication-response"),message:u.string(),operation:If}),u.object({detail:u.string(),kind:u.literal("sign-in-failed"),stage:Q0}),u.object({diagnostic:u.string().optional(),kind:u.literal("binding-failed"),message:u.string(),operation:us,validation:tI.optional()}),u.object({failure:rI,kind:u.literal("binding-read-failed"),operation:us}),u.object({kind:u.literal("binding-timed-out"),operation:us,timeoutMs:u.number().int().nonnegative()}),u.object({kind:u.literal("binding-not-mounted"),operation:us,source:u.string()}),u.object({failures:uy,kind:u.literal("implementation-failed")}),u.object({kind:u.literal("driver-launch"),message:u.string()}),u.object({kind:u.literal("run-failed"),message:u.string()}),u.object({kind:u.literal("aborted")})],py=u.discriminatedUnion("kind",[...dy]),cs=u.discriminatedUnion("kind",[...dy,u.object({action:u.string(),failure:Mi,kind:u.literal("action-failed")}),u.object({failure:Mi,kind:u.literal("check-failed")})]);var nI=u.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/u),Bi=u.discriminatedUnion("kind",[u.strictObject({cause:u.string().nullable(),code:u.string().nullable(),kind:u.literal("error"),message:u.string(),name:u.string(),stack:u.string().nullable()}),u.strictObject({kind:u.literal("non-error"),type:u.enum(["bigint","boolean","function","null","number","object","string","symbol","undefined"]),value:u.string()})]);var my=u.discriminatedUnion("source",[u.strictObject({error:cs,source:u.literal("runtime")}),u.strictObject({error:Bi,source:u.literal("system")})]),Wn={endedAtMs:u.number().int().nonnegative(),startedAtMs:u.number().int().nonnegative()},Of=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("not-started"),reason:u.enum(["aborted","prior-phase-failed"])}),u.strictObject({kind:u.literal("succeeded"),...Wn}),u.strictObject({error:my,kind:u.literal("failed"),...Wn}),u.strictObject({kind:u.literal("aborted"),...Wn})]),iI=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("not-started"),reason:u.enum(["aborted","prior-phase-failed"])}),u.strictObject({...Wn,facts:u.enum(["clean","contradicted"]),kind:u.literal("completed"),transitionIds:u.array(u.string().min(1))}),u.strictObject({error:my,kind:u.literal("failed"),...Wn,transitionIds:u.array(u.string().min(1))}),u.strictObject({kind:u.literal("aborted"),...Wn,transitionIds:u.array(u.string().min(1))})]),fy=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("io"),operation:u.enum(["open","append","finalize"]),thrown:Bi}),u.strictObject({kind:u.literal("execution-ended"),phase:u.enum(["setup","browser","drive","teardown"])}),u.strictObject({kind:u.literal("capture-missing"),subject:u.literal("rrweb")})]),oI=u.discriminatedUnion("kind",[u.strictObject({eventCount:u.number().int().nonnegative(),kind:u.literal("complete"),path:u.string().min(1)}),u.strictObject({errors:u.array(fy).min(1),eventCount:u.number().int().nonnegative(),kind:u.literal("partial"),path:u.string().min(1)}),u.strictObject({errors:u.array(fy).min(1),kind:u.literal("failed"),path:u.string().min(1)})]);u.strictObject({browser:Of,drive:iI,evidence:oI,runId:nI,setup:Of,teardown:Of});var hy=u.discriminatedUnion("kind",[u.object({kind:u.literal("user")}),u.object({kind:u.literal("anonymous")})]);var Oe=u.string().trim().min(1).brand();var gy=u.strictObject({actor:hy,description:Oe,name:Oe,state:at,viewport:ly});var aI=gy.pick({actor:true,name:true,viewport:true}),Vi=u.strictObject({stepIndex:u.number().int().nonnegative(),transitionId:Oe,workflow:Oe}),sI=Vi.extend({input:at,kind:u.literal("provided")}),uI=u.discriminatedUnion("kind",[sI,Vi.extend({kind:u.literal("case"),workflowInput:at})]),cI=u.strictObject({candidates:u.array(Vi).min(1).refine(e=>new Set(e.map(t=>JSON.stringify(t))).size===e.length),choiceSeed:u.number().int().min(0).max(4294967295),inputSeed:u.number().int().min(0).max(4294967295),kind:u.literal("choose")}),lI=u.union([uI,cI]);u.strictObject({seed:u.string().min(1),setup:aI,steps:u.array(lI)});var dI=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("accept"),text:u.string().nullable()}),u.strictObject({kind:u.literal("dismiss")})]),vy=u.enum(["alert","beforeunload","confirm","prompt"]),yy=u.discriminatedUnion("kind",[u.object({kind:u.literal("goto"),url:u.string()}),u.object({kind:u.literal("reload")}),u.object({kind:u.literal("back")}),u.object({kind:u.literal("forward")}),u.object({kind:u.literal("fill"),locator:Ie,value:wf}),u.object({kind:u.literal("type"),locator:Ie,value:u.string().min(1)}),u.object({kind:u.literal("scroll"),locator:Ie}),u.object({kind:u.literal("clear"),locator:Ie}),u.object({kind:u.literal("click"),locator:Ie}),u.object({kind:u.literal("dblclick"),locator:Ie}),u.object({kind:u.literal("select"),locator:Ie,value:wf}),u.object({kind:u.literal("check"),locator:Ie}),u.object({kind:u.literal("uncheck"),locator:Ie}),u.object({kind:u.literal("hover"),locator:Ie}),u.object({files:u.array(u.string().min(1)).min(1),kind:u.literal("upload"),locator:Ie}),u.object({key:u.string().min(1),kind:u.literal("press"),locator:Ie.optional()}),u.object({kind:u.literal("drag"),source:Ie,target:Ie})]),ls=u.enum(yy.options.map(e=>e.shape.kind.value)),by=yy.and(u.object({dialog:dI.optional()})),pI=["goto","reload","back","forward"];new Set(pI);var _y=u.enum(["setup","before-action","action","after-action"]),kf=u.union([u.strictObject({error:Bi.nullable(),kind:u.literal("definition-error"),phase:u.literal("definition"),reason:Oe}),u.strictObject({error:Bi.nullable(),kind:u.literal("execution-failed"),phase:_y.nullable(),reason:Oe}),u.strictObject({error:cs,kind:u.literal("runtime-failed"),reason:Oe}),u.strictObject({action:ls,kind:u.literal("binding-miss"),miss:ss,reason:Oe}),u.strictObject({expected:at,kind:u.literal("state-mismatch"),observed:at,phase:_y,reason:Oe}),u.strictObject({kind:u.enum(["capture-pending","convergence-timeout","aborted","unavailable","duplicate-outcome-name","no-outcome","ambiguous-outcome","invalid-state","invalid-input"]),reason:Oe})]),Cf=u.strictObject({error:kf,status:u.literal("failed")}),Dy=u.strictObject({kind:u.literal("model-setup"),name:Oe,now:u.iso.datetime().nullable(),result:u.discriminatedUnion("status",[u.strictObject({state:at,status:u.literal("passed")}),Cf]),source:u.literal("verifier"),timeNanos:u.string()}),Af=u.strictObject({endedAtMs:u.number().nonnegative(),input:at,kind:u.literal("model-step"),name:Oe,pageUrl:u.string().nullable(),reference:Vi,result:u.discriminatedUnion("status",[u.strictObject({outcome:Oe,state:at,status:u.literal("passed")}),Cf]),source:u.literal("verifier"),startedAtMs:u.number().nonnegative(),stepIndex:u.number().int().nonnegative(),timeNanos:u.string()}),xy=Af.omit({input:true}).extend({kind:u.literal("model-input-failed"),result:Cf});var Sy=u.strictObject({kind:u.literal("exploration-stop"),result:u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("limit")}),u.strictObject({kind:u.literal("no-candidates"),refusals:u.array(u.strictObject({reason:Oe,step:Oe}))}),u.strictObject({error:kf,kind:u.literal("failed")})]),source:u.literal("verifier"),stepIndex:u.number().int().nonnegative(),timeNanos:u.string()});var fI=[...ls.options,"resize"],Ey=u.enum(fI),wy=u.object({action:Ey,name:Oe,phase:u.literal("start")}),$y=u.object({outcome:u.enum(["passed","failed"]),phase:u.literal("end")});u.discriminatedUnion("phase",[wy,$y]);var Iy=u.discriminatedUnion("phase",[wy.extend({action:Ey.nullable()}),$y]).and(u.object({kind:u.literal("exploration-step"),source:u.literal("capture"),timeNanos:u.string()}));var Oy=u.object({action:by,kind:u.literal("check"),outcome:u.discriminatedUnion("kind",[u.object({kind:u.literal("passed")}),u.object({kind:u.literal("failed"),reason:Mi})]),rrwebIds:u.array(u.number()),source:u.literal("verifier"),stepIndex:u.number().int(),timeNanos:u.string(),waitedMs:u.number()}),ky=u.object({error:py,kind:u.literal("stepError"),source:u.literal("verifier"),stepIndex:u.number().int(),timeNanos:u.string()});var Cy=u.object({__codec:u.string().min(1),data:u.unknown(),version:u.number().int().positive()}),Rf=class extends Error{codec;currentVersion;gotVersion;kind;minimumVersion;constructor(t){super(`Unsupported ${t.codec} version ${String(t.gotVersion)}. This release reads ${mI(t)}.`),this.name="CodecVersionError",this.codec=t.codec,this.currentVersion=t.currentVersion,this.gotVersion=t.gotVersion,this.kind=t.kind,this.minimumVersion=t.minimumVersion;}};function mI({currentVersion:e,minimumVersion:t}){return t===e?`version ${String(e)}`:`versions ${String(t)} through ${String(e)}`}var ds=class extends Error{constructor(t){super(`Codec mismatch: expected "${t.expected}", got "${t.got}"`),this.name="CodecMismatchError";}};function Ay({firstVersion:e,name:t,schema:n,steps:i=[]}){let r=hI({firstVersion:e,steps:i});return {...r,name:t,decode:o=>gI({name:t,raw:o,schema:n,steps:i,versions:r}),encode:o=>({__codec:t,data:o,version:r.currentVersion}),support:o=>Ry({version:o,versions:r}),versionOf:o=>{let a=Cy.parse(o);if(a.__codec!==t)throw new ds({expected:t,got:a.__codec});return a.version}}}function hI({firstVersion:e,steps:t}){if(!Number.isInteger(e)||e<1)throw new Error(`A codec's first version must be a positive integer, got ${String(e)}`);return {currentVersion:e+t.length,firstVersion:e,minimumVersion:t.reduce((n,i,r)=>i.kind==="semantic"?e+r+1:n,e)}}function Ry({version:e,versions:t}){return e>t.currentVersion||e<t.firstVersion?"predates-executable-model":e<t.minimumVersion?"below-floor":"supported"}function gI({name:e,raw:t,schema:n,steps:i,versions:r}){let o=Cy.parse(t);if(o.__codec!==e)throw new ds({expected:e,got:o.__codec});let a=Ry({version:o.version,versions:r});if(a!=="supported")throw new Rf({...r,codec:e,gotVersion:o.version,kind:a});let c=i.slice(o.version-r.firstVersion).reduce((l,d)=>d.kind==="reshape"?d.migrate(l):l,o.data);return n.parse(c)}var Tf=u.strictObject({id:u.string().min(1),token:u.string().min(1)});var Ty=u.discriminatedUnion("kind",[u.strictObject({kind:u.literal("started"),operation:Vn,token:Tf.shape.token}),u.strictObject({durationMs:u.number().nonnegative().optional(),kind:u.literal("returned"),operation:Vn,token:Tf.shape.token})]);var vI=["unspecified","internal","server","client","producer","consumer"],yI=["unset","ok","error"],bI=u.looseObject({node:u.looseObject({id:u.number()}).optional(),parentId:u.number().nullable().optional()}),_I=u.looseObject({data:u.looseObject({adds:u.array(bI).optional(),attributes:u.array(u.looseObject({id:u.number()})).optional(),href:u.string().optional(),removes:u.array(u.looseObject({id:u.number()})).optional(),source:u.number().optional(),texts:u.array(u.looseObject({id:u.number()})).optional(),userTriggered:u.boolean().optional()}).optional(),timestamp:u.number(),type:u.number()}),_t=u.string(),DI=u.object({action:u.string(),kind:u.literal("action"),source:u.literal("test"),target:u.string().optional(),timeNanos:_t,value:u.string().optional()}),xI=u.object({event:_I,kind:u.literal("rrweb"),rrwebType:u.string(),source:u.literal("browser"),timeNanos:_t}),SI=u.object({durationMs:u.number().optional(),kind:u.literal("network"),method:u.string(),requestBody:u.string().optional(),resourceType:u.string(),responseBody:u.string().optional(),source:u.literal("browser"),spanId:u.string().optional(),status:u.number(),timeNanos:_t,traceId:u.string().optional(),url:u.string()}),EI=u.object({kind:u.literal("console"),level:u.string(),source:u.literal("browser"),text:u.string(),timeNanos:_t}),wI=u.discriminatedUnion("problem",[u.object({message:u.string(),problem:u.literal("page-error"),stack:u.string().optional()}),u.object({method:u.string(),path:u.string(),problem:u.literal("server-error"),status:u.number()}),u.object({method:u.string(),path:u.string(),problem:u.literal("request-failed"),reason:u.string()})]),$I=u.object({count:u.number().int().min(1),detail:wI,kind:u.literal("health"),source:u.literal("browser"),stepIndex:u.number().int().min(0).optional(),timeNanos:_t}),II=u.object({clientVersion:u.string(),kind:u.literal("meta"),source:u.literal("capture"),timeNanos:_t}),OI=u.object({dialogType:vy,kind:u.literal("dialog"),message:u.string(),source:u.literal("browser"),stepIndex:u.number().int().nullable(),timeNanos:_t}),kI=u.object({event:Ty,kind:u.literal("schema-trace"),source:u.literal("browser"),timeNanos:_t}),CI=u.object({kind:u.literal("handover"),source:u.literal("capture"),timeNanos:_t}),AI=u.object({kind:u.literal("handback"),source:u.literal("capture"),timeNanos:_t}),RI=u.object({kind:u.literal("notice"),message:u.string(),source:u.literal("capture"),timeNanos:_t}),TI=u.object({attributes:u.record(u.string(),u.string()),durationMs:u.number(),kind:u.literal("span"),name:u.string(),parentSpanId:u.string().optional(),source:u.literal("server"),spanId:u.string(),spanKind:u.enum(vI),status:u.object({code:u.enum(yI),message:u.string().optional()}),timeNanos:_t,traceId:u.string()}),FI=u.union([Iy,u.discriminatedUnion("kind",[Sy,Dy,Af,xy,DI,xI,SI,EI,$I,II,CI,AI,kI,RI,OI,Oy,ky,TI])]),PI=u.looseObject({kind:u.enum(["model-step","model-input-failed"]),pageUrl:u.undefined()});function NI(e){return u.array(u.unknown()).parse(e).map(n=>{let i=PI.safeParse(n);return i.success?{...i.data,pageUrl:null}:n})}var zI=u.looseObject({action:u.undefined(),kind:u.literal("exploration-step"),phase:u.literal("start")});function UI(e){return u.array(u.unknown()).parse(e).map(t=>{let n=zI.safeParse(t);return n.success?{...n.data,action:null}:t})}var jI=u.looseObject({kind:u.literal("model-setup"),now:u.undefined()});function LI(e){return u.array(u.unknown()).parse(e).map(t=>{let n=jI.safeParse(t);return n.success?{...n.data,now:null}:t})}var MI=u.looseObject({kind:u.literal("stale")});function Ff(e){if(Array.isArray(e))return e.map(i=>Ff(i));if(typeof e!="object"||e===null)return e;let t=MI.safeParse(e),n=t.success?{...t.data,kind:"missing"}:e;return Object.fromEntries(Object.entries(n).map(([i,r])=>[i,Ff(r)]))}var BI=Ay({firstVersion:22,name:"ripplo-behavior",schema:u.array(u.unknown()),steps:[{kind:"reshape",migrate:NI},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:UI},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:LI},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:e=>e},{kind:"reshape",migrate:Ff}]}),VI=u.object({__codec:u.string().min(1),version:u.number().int().positive()});function Zi(e){let t=ZI(e),n=VI.parse(WI(t)),i=t.slice(1).flatMap(o=>{let a=Fy(o);return a==null?[]:[a]});return BI.decode({...n,data:i}).flatMap(o=>{let a=FI.safeParse(o);return a.success?[a.data]:[]})}function ZI(e){return e.split(`
45
+ `).filter(t=>t.length>0)}function WI(e){let t=e[0];return t==null?null:Fy(t)}function Gn(e){return Number(BigInt(e)/1000000n)}function Fy(e){try{return JSON.parse(e)}catch{return null}}function qn(e){if(e.by==="element"){let t=Object.entries(e.values).map(([n,i])=>`${n}: ${String(i)}`).join(", ");return `${e.name}(${t})`}return e.by==="testId"?`testId=${e.value}`:e.by==="inside"?`${qn(e.scope)} \u25B8 ${qn(e.target)}`:e.by==="surface"?qn(e.container):e.by==="frame"?`frame ${qn(e.element)}`:`${e.role} ${e.name??""}`.trim()}function Py(e){return e.kind==="drag"?[e.source,e.target]:"locator"in e&&e.locator!=null?[e.locator]:[]}function Pf(e){if(e.kind==="goto")return e.url;let[t]=Py(e);return t==null?void 0:qn(t)}var GI=new Set(["localhost","127.0.0.1","[::1]"]),Ny="*";var Nf="zz-ripplo-wildcard-zz",qI=2;function Hn(e){let t=URL.parse(HI(e));if(t==null||!zf(t)||e.includes("#"))return null;let n=e.split(Ny).length-1;if(n===0)return {kind:"exact",url:e};if(n>1||!t.hostname.includes(Nf))return null;let i=t.hostname.split("."),r=i.findIndex(o=>o.includes(Nf));return i.length-r-1<qI?null:{kind:"host-pattern",url:e}}function HI(e){return e.replace(Ny,Nf)}function zf(e){return e.protocol==="https:"?true:e.protocol==="http:"&&GI.has(e.hostname)}var Uf=500,YI=/^(?:\d{1,3}(?:\.\d{1,3}){3}|\[.*\])$/u,ps=u.string().trim().max(Uf).refine(e=>Ly(e),{message:"Must be an https URL with a hostname such as example.com, not an IP address. Plain http is allowed only on localhost."}),fs=u.string().trim().min(1,"Required.").max(Uf).refine(e=>e.startsWith("/")||Ly(e),{message:"Must be a path starting with / or a full https URL. Plain http is allowed only on localhost."}),zy=u.string().trim().min(1,"Required.").max(60).regex(/^\S+$/u,"No spaces. The name is typed as auth=<name> in a GitHub comment."),jr=u.string().trim().min(1,"Required.").max(Uf).refine(e=>Hn(e)!=null,{message:"Must be an https address with no fragment. Plain http is allowed only on localhost. One * is allowed in the hostname, not in its last two labels."}),JI={name:zy,redirectUris:u.array(u.object({value:jr})).min(1,"Add at least one redirect URI."),signInEntry:fs},Uy="********",KI=u.object({enabled:u.literal(false)}),XI=u.object({baseUrl:ps,enabled:u.literal(true),token:u.string().min(1,"Required.")}),jy={...JI,scim:u.discriminatedUnion("enabled",[KI,XI])};u.object(jy).transform(({redirectUris:e,scim:t,...n})=>({...n,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token}:null}));u.object(jy).transform(({redirectUris:e,scim:t,...n})=>({...n,redirectUris:e.map(i=>i.value),scim:t.enabled?{baseUrl:t.baseUrl,token:t.token===Uy?null:t.token}:null}));function Ly(e){let t=URL.parse(e);return t!=null&&zf(t)&&t.hostname.length>0&&!YI.test(t.hostname)}var jf=jr;function Lf(e){return e.dialog==null?"":` (${tO(e.dialog)})`}function tO(e){switch(e.kind){case "accept":return e.text==null?"accept dialog":`accept dialog with ${JSON.stringify(e.text)}`;case "dismiss":return "dismiss dialog"}}var Mf=["* { scroll-behavior: auto !important; }","*, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }","noscript { display: none !important; }"];var rO={withStackTrace:false},Vy=(e,t,n=rO)=>{let i=t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},r=n.withStackTrace?new Error().stack:void 0;return {data:i,message:e,stack:r}};function Lr(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o);})}return new(n||(n=Promise))(function(o,a){function s(d){try{l(i.next(d));}catch(p){a(p);}}function c(d){try{l(i.throw(d));}catch(p){a(p);}}function l(d){d.done?o(d.value):r(d.value).then(s,c);}l((i=i.apply(e,[])).next());})}function My(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wt(e){return this instanceof Wt?(this.v=e,this):new Wt(e)}function By(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(h){return function(y){return Promise.resolve(y).then(h,p)}}function s(h,y){i[h]&&(r[h]=function(x){return new Promise(function(b,j){o.push([h,x,b,j])>1||c(h,x);})},y&&(r[h]=y(r[h])));}function c(h,y){try{l(i[h](y));}catch(x){m(o[0][3],x);}}function l(h){h.value instanceof Wt?Promise.resolve(h.value.v).then(d,p):m(o[0][2],h);}function d(h){c("next",h);}function p(h){c("throw",h);}function m(h,y){h(y),o.shift(),o.length&&c(o[0][0],o[0][1]);}}function nO(e){var t,n;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,o){t[r]=e[r]?function(a){return (n=!n)?{value:Wt(e[r](a)),done:false}:o?o(a):a}:o;}}function iO(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 My=="function"?My(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(o){n[o]=e[o]&&function(a){return new Promise(function(s,c){a=e[o](a),r(s,c,a.done,a.value);})};}function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s});},a);}}var Gt=class e{constructor(t){this._promise=t;}static fromSafePromise(t){let n=t.then(i=>new Dt(i));return new e(n)}static fromPromise(t,n){let i=t.then(r=>new Dt(r)).catch(r=>new lt(n(r)));return new e(i)}static fromThrowable(t,n){return (...i)=>new e(Lr(this,void 0,void 0,function*(){try{return new Dt(yield t(...i))}catch(r){return new lt(n?n(r):r)}}))}static combine(t){return oO(t)}static combineWithAllErrors(t){return aO(t)}map(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){return n.isErr()?new lt(n.error):new Dt(yield t(n.value))})))}andThrough(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){if(n.isErr())return new lt(n.error);let i=yield t(n.value);return i.isErr()?new lt(i.error):new Dt(n.value)})))}andTee(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){if(n.isErr())return new lt(n.error);try{yield t(n.value);}catch{}return new Dt(n.value)})))}orTee(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){if(n.isOk())return new Dt(n.value);try{yield t(n.error);}catch{}return new lt(n.error)})))}mapErr(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){return n.isOk()?new Dt(n.value):new lt(yield t(n.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new lt(n.error);let i=t(n.value);return i instanceof e?i._promise:i}))}orElse(t){return new e(this._promise.then(n=>Lr(this,void 0,void 0,function*(){return n.isErr()?t(n.error):new Dt(n.value)})))}match(t,n){return this._promise.then(i=>i.match(t,n))}unwrapOr(t){return this._promise.then(n=>n.unwrapOr(t))}safeUnwrap(){return By(this,arguments,function*(){return yield Wt(yield Wt(yield*nO(iO(yield Wt(this._promise.then(n=>n.safeUnwrap()))))))})}then(t,n){return this._promise.then(t,n)}[Symbol.asyncIterator](){return By(this,arguments,function*(){let n=yield Wt(this._promise);return n.isErr()&&(yield yield Wt(Wi(n.error))),yield Wt(n.value)})}};function Wi(e){return new Gt(Promise.resolve(new lt(e)))}var Zy=e=>{let t=ke([]);for(let n of e)if(n.isErr()){t=ue(n.error);break}else t.map(i=>i.push(n.value));return t},oO=e=>Gt.fromSafePromise(Promise.all(e)).andThen(Zy),Wy=e=>{let t=ke([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=ue([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},aO=e=>Gt.fromSafePromise(Promise.all(e)).andThen(Wy),Bf;(function(e){function t(r,o){return (...a)=>{try{let s=r(...a);return ke(s)}catch(s){return ue(o?o(s):s)}}}e.fromThrowable=t;function n(r){return Zy(r)}e.combine=n;function i(r){return Wy(r)}e.combineWithAllErrors=i;})(Bf||(Bf={}));function ke(e){return new Dt(e)}function ue(e){return new lt(e)}var Dt=class{constructor(t){this.value=t;}isOk(){return true}isErr(){return !this.isOk()}map(t){return ke(t(this.value))}mapErr(t){return ke(this.value)}andThen(t){return t(this.value)}andThrough(t){return t(this.value).map(n=>this.value)}andTee(t){try{t(this.value);}catch{}return ke(this.value)}orTee(t){return ke(this.value)}orElse(t){return ke(this.value)}asyncAndThen(t){return t(this.value)}asyncAndThrough(t){return t(this.value).map(()=>this.value)}asyncMap(t){return Gt.fromSafePromise(t(this.value))}unwrapOr(t){return this.value}match(t,n){return t(this.value)}safeUnwrap(){let t=this.value;return (function*(){return t})()}_unsafeUnwrap(t){return this.value}_unsafeUnwrapErr(t){throw Vy("Called `_unsafeUnwrapErr` on an Ok",this,t)}*[Symbol.iterator](){return this.value}},lt=class{constructor(t){this.error=t;}isOk(){return false}isErr(){return !this.isOk()}map(t){return ue(this.error)}mapErr(t){return ue(t(this.error))}andThrough(t){return ue(this.error)}andTee(t){return ue(this.error)}orTee(t){try{t(this.error);}catch{}return ue(this.error)}andThen(t){return ue(this.error)}orElse(t){return t(this.error)}asyncAndThen(t){return Wi(this.error)}asyncAndThrough(t){return Wi(this.error)}asyncMap(t){return Wi(this.error)}unwrapOr(t){return t}match(t,n){return n(this.error)}safeUnwrap(){let t=this.error;return (function*(){throw yield ue(t),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(t){throw Vy("Called `_unsafeUnwrap` on an Err",this,t)}_unsafeUnwrapErr(t){return this.error}*[Symbol.iterator](){let t=this;return yield t,t}};Bf.fromThrowable;function Vf({base:e,taken:t}){let n=new Set(t.map(o=>o.toLowerCase())),r=[e,...Array.from({length:t.length+1},(o,a)=>`${e}-${String(a+2)}`)].find(o=>!n.has(o.toLowerCase()));if(r==null)throw new Error("connection-name-candidates-exhausted");return r}var ms=Symbol.for("better-auth:broadcast-channel"),sO=()=>Math.floor(Date.now()/1e3),uO=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e;}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:sO()}));}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=t=>{if(t.key!==this.name)return;let n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(i=>i(n));};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e);}}};function Gi(e="better-auth.message"){return globalThis[ms]||(globalThis[ms]=new uO(e)),globalThis[ms]}var hs=Symbol.for("better-auth:focus-manager"),cO=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setFocused(e){this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>{document.visibilityState==="visible"&&this.setFocused(true);};return document.addEventListener("visibilitychange",e,false),()=>{document.removeEventListener("visibilitychange",e,false);}}};function Zf(){return globalThis[hs]||(globalThis[hs]=new cO),globalThis[hs]}var gs=Symbol.for("better-auth:online-manager"),lO=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:true;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e);}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e));}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return ()=>{};let e=()=>this.setOnline(true),t=()=>this.setOnline(false);return window.addEventListener("online",e,false),window.addEventListener("offline",t,false),()=>{window.removeEventListener("online",e,false),window.removeEventListener("offline",t,false);}}};function vs(){return globalThis[gs]||(globalThis[gs]=new lO),globalThis[gs]}var dO={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},pO=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,qy={true:true,false:false,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},fO=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function mO(e){return e instanceof Date&&!isNaN(e.getTime())}function hO(e){let t=fO.exec(e);if(!t)return null;let[,n,i,r,o,a,s,c,l,d,p]=t,m=new Date(Date.UTC(parseInt(n,10),parseInt(i,10)-1,parseInt(r,10),parseInt(o,10),parseInt(a,10),parseInt(s,10),c?parseInt(c.padEnd(3,"0"),10):0));if(l){let h=(parseInt(d,10)*60+parseInt(p,10))*(l==="+"?-1:1);m.setUTCMinutes(m.getUTCMinutes()+h);}return mO(m)?m:null}function gO(e,t={}){let{strict:n=false,warnings:i=false,reviver:r,parseDates:o=true}=t;if(typeof e!="string")return e;let a=e.trim();if(a.length>0&&a[0]==='"'&&a.endsWith('"')&&!a.slice(1,-1).includes('"'))return a.slice(1,-1);let s=a.toLowerCase();if(s.length<=9&&s in qy)return qy[s];if(!pO.test(a)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(dO).some(([c,l])=>{let d=l.test(a);return d&&i&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),d})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(a,(l,d)=>{if(l==="__proto__"||l==="constructor"&&d&&typeof d=="object"&&"prototype"in d){i&&console.warn(`[better-json] Dropping "${l}" key to prevent prototype pollution`);return}if(o&&typeof d=="string"){let p=hO(d);if(p)return p}return r?r(l,d):d})}catch(c){if(n)throw c;return e}}function Wf(e,t={strict:true}){return gO(e,t)}var qi=Symbol("clean");var Ft=[],vr=0,ys=4,Hi=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(i){return n.lc=t.push(i),()=>{for(let o=vr+ys;o<Ft.length;)Ft[o]===i?Ft.splice(o,ys):o+=ys;let r=t.indexOf(i);~r&&(t.splice(r,1),--n.lc||n.off());}},notify(i,r){let o=!Ft.length;for(let a of t)Ft.push(a,n.value,i,r);if(o){for(vr=0;vr<Ft.length;vr+=ys)Ft[vr](Ft[vr+1],Ft[vr+2],Ft[vr+3]);Ft.length=0;}},off(){},set(i){let r=n.value;r!==i&&(n.value=i,n.notify(r));},subscribe(i){let r=n.listen(i);return i(n.value),r},value:e};return process.env.NODE_ENV!=="production"&&(n[qi]=()=>{t=[],n.lc=0,n.off();}),n};var yO=5,Yn=6,bs=10,bO=(e,t,n,i)=>(e.events=e.events||{},e.events[n+bs]||(e.events[n+bs]=i(r=>{e.events[n].reduceRight((o,a)=>(a(o),o),{shared:{},...r});})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],o=r.indexOf(t);r.splice(o,1),r.length||(delete e.events[n],e.events[n+bs](),delete e.events[n+bs]);});var Hy=1e3,Yi=(e,t)=>bO(e,i=>{let r=t(i);r&&e.events[Yn].push(r);},yO,i=>{let r=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=true,i()),r(...a));let o=e.off;if(e.events[Yn]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=false;for(let a of e.events[Yn])a();e.events[Yn]=[];}},Hy);},process.env.NODE_ENV!=="production"){let a=e[qi];e[qi]=()=>{for(let s of e.events[Yn])s();e.events[Yn]=[],e.active=false,a();};}return ()=>{e.listen=r,e.off=o;}});var _O=()=>typeof window>"u",_s=(e,t,n,i)=>{let r=Hi({data:null,error:null,isPending:true,isRefetching:false,refetch:s=>o(s)}),o=async s=>new Promise(c=>{let l=typeof i=="function"?i({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):i;n(t,{...l,query:{...l?.query,...s?.query},async onSuccess(d){r.set({data:d.data,error:null,isPending:false,isRefetching:false,refetch:r.value.refetch}),await l?.onSuccess?.(d);},async onError(d){let{request:p}=d,m=typeof p.retry=="number"?p.retry:p.retry?.attempts,h=p.retryAttempt||0;if(m&&h<m)return;let y=d.error.status===401;r.set({error:d.error,data:y?null:r.get().data,isPending:false,isRefetching:false,refetch:r.value.refetch}),await l?.onError?.(d);},async onRequest(d){let p=r.get();r.set({isPending:p.data===null,data:p.data,error:null,isRefetching:true,refetch:r.value.refetch}),await l?.onRequest?.(d);}}).catch(d=>{r.set({error:d,data:r.get().data,isPending:false,isRefetching:false,refetch:r.value.refetch});}).finally(()=>{c(void 0);});});e=Array.isArray(e)?e:[e];let a=false;for(let s of e)s.subscribe(async()=>{_O()||(a?await o():Yi(r,()=>{let c=setTimeout(async()=>{a||(await o(),a=true);},0);return ()=>{r.off(),s.off(),clearTimeout(c);}}));});return r};var Jn=()=>Math.floor(Date.now()/1e3);function Yy(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}var DO=5;function Gf(e){let{sessionAtom:t,sessionSignal:n,$fetch:i,options:r={}}=e,o=r.sessionOptions?.refetchInterval??0,a=r.sessionOptions?.refetchOnWindowFocus??true,s=r.sessionOptions?.refetchWhenOffline??false,c={lastSync:0,lastSessionRequest:0,cachedSession:void 0},l=()=>s||vs().isOnline,d=H=>{if(!l())return;if(H?.event==="storage"){c.lastSync=Jn(),n.set(!n.get());return}let B=t.get(),R=()=>{c.lastSessionRequest=Jn(),i("/get-session").then(async k=>{let{data:z,error:re}=Yy(k);if(z?.needsRefresh)try{let ve=await i("/get-session",{method:"POST"});({data:z,error:re}=Yy(ve));}catch{}let ce=z?.session&&z?.user?z:null;t.set({...B,data:ce,error:re}),c.lastSync=Jn(),n.set(!n.get());}).catch(()=>{});};if(H?.event==="poll"){R();return}if(H?.event==="visibilitychange"){if(Jn()-c.lastSessionRequest<DO)return;c.lastSessionRequest=Jn();}if(H?.event==="visibilitychange"){R();return}(B?.data===null||B?.data===void 0)&&(c.lastSync=Jn(),n.set(!n.get()));},p=H=>{Gi().post({event:"session",data:{trigger:H},clientId:Math.random().toString(36).substring(7)});},m=()=>{o&&o>0&&(c.pollInterval=setInterval(()=>{t.get()?.data&&d({event:"poll"});},o*1e3));},h=()=>{c.unsubscribeBroadcast=Gi().subscribe(()=>{d({event:"storage"});});},y=()=>{a&&(c.unsubscribeFocus=Zf().subscribe(()=>{d({event:"visibilitychange"});}));},x=()=>{c.unsubscribeOnline=vs().subscribe(H=>{H&&d({event:"visibilitychange"});});};return {init:()=>{m(),h(),y(),x(),Gi().setup(),Zf().setup(),vs().setup();},cleanup:()=>{c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.lastSync=0,c.lastSessionRequest=0,c.cachedSession=void 0;},triggerRefetch:d,broadcastSessionUpdate:p}}var Ds=Object.create(null),Ji=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Ds:globalThis),Qe=new Proxy(Ds,{get(e,t){return Ji()[t]??Ds[t]},has(e,t){return t in Ji()||t in Ds},set(e,t,n){let i=Ji(true);return i[t]=n,true},deleteProperty(e,t){if(!t)return false;let n=Ji(true);return delete n[t],true},ownKeys(){let e=Ji(true);return Object.keys(e)}});typeof process<"u"&&process.env&&process.env.NODE_ENV||"";function pe(e,t){return typeof process<"u"&&process.env?process.env[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}var Ki=1,Me=4,qt=8,dt=24,Jy={eterm:Me,cons25:Me,console:Me,cygwin:Me,dtterm:Me,gnome:Me,hurd:Me,jfbterm:Me,konsole:Me,kterm:Me,mlterm:Me,mosh:dt,putty:Me,st:Me,"rxvt-unicode-24bit":dt,terminator:dt,"xterm-kitty":dt},EO=new Map(Object.entries({APPVEYOR:qt,BUILDKITE:qt,CIRCLECI:dt,DRONE:qt,GITEA_ACTIONS:dt,GITHUB_ACTIONS:dt,GITLAB_CI:qt,TRAVIS:qt})),wO=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function qf(){if(pe("FORCE_COLOR")!==void 0)switch(pe("FORCE_COLOR")){case "":case "1":case "true":return Me;case "2":return qt;case "3":return dt;default:return Ki}if(pe("NODE_DISABLE_COLORS")!==void 0&&pe("NODE_DISABLE_COLORS")!==""||pe("NO_COLOR")!==void 0&&pe("NO_COLOR")!==""||pe("TERM")==="dumb")return Ki;if(pe("TMUX"))return dt;if("TF_BUILD"in Qe&&"AGENT_NAME"in Qe)return Me;if("CI"in Qe){for(let{0:e,1:t}of EO)if(e in Qe)return t;return pe("CI_NAME")==="codeship"?qt:Ki}if("TEAMCITY_VERSION"in Qe)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(pe("TEAMCITY_VERSION"))!==null?Me:Ki;switch(pe("TERM_PROGRAM")){case "iTerm.app":return !pe("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(pe("TERM_PROGRAM_VERSION"))!==null?qt:dt;case "HyperTerm":case "MacTerm":return dt;case "Apple_Terminal":return qt}if(pe("COLORTERM")==="truecolor"||pe("COLORTERM")==="24bit")return dt;if(pe("TERM")){if(/truecolor/.exec(pe("TERM"))!==null)return dt;if(/^xterm-256/.exec(pe("TERM"))!==null)return qt;let e=pe("TERM").toLowerCase();if(Jy[e])return Jy[e];if(wO.some(t=>t.exec(e)!==null))return Me}return pe("COLORTERM")?Me:Ki}var Pt={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},xs=["debug","info","success","warn","error"];function Ky(e,t){return xs.indexOf(t)>=xs.indexOf(e)}var $O={info:Pt.fg.blue,success:Pt.fg.green,warn:Pt.fg.yellow,error:Pt.fg.red,debug:Pt.fg.magenta},IO=(e,t,n)=>{let i=new Date().toISOString();return n?`${Pt.dim}${i}${Pt.reset} ${$O[e]}${e.toUpperCase()}${Pt.reset} ${Pt.bright}[Better Auth]:${Pt.reset} ${t}`:`${i} ${e.toUpperCase()} [Better Auth]: ${t}`},Xy=e=>{let n="warn",i=qf()!==1,r=(o,a,s=[])=>{if(!Ky(n,o))return;let c=IO(o,a,i);{o==="error"?console.error(c,...s):o==="warn"?console.warn(c,...s):console.log(c,...s);return}};return {...Object.fromEntries(xs.map(o=>[o,(...[a,...s])=>r(o,a,s)])),get level(){return n}}};Xy();function Fe(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,{code:t,message:n,toString:()=>t}]))}Fe({USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",INVALID_USER:"Invalid user",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",TOKEN_EXPIRED:"Token expired",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account.",CROSS_SITE_NAVIGATION_LOGIN_BLOCKED:"Cross-site navigation login blocked. This request appears to be a CSRF attack.",VERIFICATION_EMAIL_NOT_ENABLED:"Verification email isn't enabled",EMAIL_ALREADY_VERIFIED:"Email is already verified",EMAIL_MISMATCH:"Email mismatch",SESSION_NOT_FRESH:"Session is not fresh",LINKED_ACCOUNT_ALREADY_EXISTS:"Linked account already exists",INVALID_ORIGIN:"Invalid origin",INVALID_CALLBACK_URL:"Invalid callbackURL",INVALID_REDIRECT_URL:"Invalid redirectURL",INVALID_ERROR_CALLBACK_URL:"Invalid errorCallbackURL",INVALID_NEW_USER_CALLBACK_URL:"Invalid newUserCallbackURL",MISSING_OR_NULL_ORIGIN:"Missing or null Origin",CALLBACK_URL_REQUIRED:"callbackURL is required",FAILED_TO_CREATE_VERIFICATION:"Unable to create verification",FIELD_NOT_ALLOWED:"Field not allowed to be set",ASYNC_VALIDATION_NOT_SUPPORTED:"Async validation is not supported",VALIDATION_ERROR:"Validation Error",MISSING_FIELD:"Field is required",METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED:"POST method requires deferSessionRefresh to be enabled in session config",BODY_MUST_BE_AN_OBJECT:"Body must be an object",PASSWORD_ALREADY_SET:"User already has a password set"});var yr=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack="";}};function NO(e){try{return (new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new yr(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function zO(e){try{let t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new yr(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof yr?t:new yr(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function Xi(e,t="/api/auth"){if(zO(e),NO(e))return e;let n=e.replace(/\/+$/,"");return !t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function eb(e,t,n,i,r){if(e)return Xi(e,t);{let s=Qe.BETTER_AUTH_URL||Qe.NEXT_PUBLIC_BETTER_AUTH_URL||Qe.PUBLIC_BETTER_AUTH_URL||Qe.NUXT_PUBLIC_BETTER_AUTH_URL||Qe.NUXT_PUBLIC_AUTH_URL||(Qe.BASE_URL!=="/"?Qe.BASE_URL:void 0);if(s)return Xi(s,t)}if(typeof window<"u"&&window.location)return Xi(window.location.origin,t)}var tb={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url;}catch{}}}};function rb(e,t){let n=Hi(false),i=_s(n,"/get-session",e,{method:"GET"}),r=()=>{};return Yi(i,()=>{let o=Gf({sessionAtom:i,sessionSignal:n,$fetch:e,options:t});return o.init(),r=o.broadcastSessionUpdate,()=>{o.cleanup();}}),{session:i,$sessionSignal:n,broadcastSessionUpdate:o=>r(o)}}function Hf(e){if(e===null||typeof e!="object")return false;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?false:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":true}function Yf(e,t,n=".",i){if(!Hf(t))return Yf(e,{},n,i);let r=Object.assign({},t);for(let o in e){if(o==="__proto__"||o==="constructor")continue;let a=e[o];a!=null&&(i&&i(r,o,a,n)||(Array.isArray(a)&&Array.isArray(r[o])?r[o]=[...a,...r[o]]:Hf(a)&&Hf(r[o])?r[o]=Yf(a,r[o],(n?`${n}.`:"")+o.toString(),i):r[o]=a));}return r}function Jf(e){return (...t)=>t.reduce((n,i)=>Yf(n,i,"",e),{})}var nb=Jf();var jO=Object.defineProperty,LO=Object.defineProperties,MO=Object.getOwnPropertyDescriptors,ib=Object.getOwnPropertySymbols,BO=Object.prototype.hasOwnProperty,VO=Object.prototype.propertyIsEnumerable,ob=(e,t,n)=>t in e?jO(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,Nt=(e,t)=>{for(var n in t||(t={}))BO.call(t,n)&&ob(e,n,t[n]);if(ib)for(var n of ib(t))VO.call(t,n)&&ob(e,n,t[n]);return e},Ht=(e,t)=>LO(e,MO(t)),ZO=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor);}},WO=async(e,t)=>{var n,i,r,o,a,s;let c=t||{},l={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return {url:e,options:c,hooks:l};for(let d of t?.plugins||[]){if(d.init){let p=await((n=d.init)==null?void 0:n.call(d,e.toString(),t));c=p.options||c,e=p.url;}l.onRequest.push((i=d.hooks)==null?void 0:i.onRequest),l.onResponse.push((r=d.hooks)==null?void 0:r.onResponse),l.onSuccess.push((o=d.hooks)==null?void 0:o.onSuccess),l.onError.push((a=d.hooks)==null?void 0:a.onError),l.onRetry.push((s=d.hooks)==null?void 0:s.onRetry);}return {url:e,options:c,hooks:l}},ab=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},GO=class{constructor(e){this.options=e;}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function qO(e){if(typeof e=="number")return new ab({type:"linear",attempts:e,delay:1e3});switch(e.type){case "linear":return new ab(e);case "exponential":return new GO(e);default:throw new Error("Invalid retry strategy")}}var HO=async e=>{let t={},n=async i=>typeof i=="function"?await i():i;if(e?.auth){if(e.auth.type==="Bearer"){let i=await n(e.auth.token);if(!i)return t;t.authorization=`Bearer ${i}`;}else if(e.auth.type==="Basic"){let[i,r]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!i||!r)return t;t.authorization=`Basic ${btoa(`${i}:${r}`)}`;}else if(e.auth.type==="Custom"){let[i,r]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!r)return t;t.authorization=`${i??""} ${r}`;}}return t},YO=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function JO(e){let t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return "json";let i=t.split(";").shift()||"";return YO.test(i)?"json":n.has(i)||i.startsWith("text/")?"text":"blob"}function KO(e){try{return JSON.parse(e),!0}catch{return false}}function Kf(e){if(e===void 0)return false;let t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?true:t!=="object"?false:Array.isArray(e)?true:e.buffer?false:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function sb(e){try{return JSON.parse(e)}catch{return e}}function ub(e){return typeof e=="function"}function XO(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&ub(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&ub(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function QO(e){let t=new Headers(e?.headers),n=await HO(e);for(let[i,r]of Object.entries(n||{}))t.set(i,r);if(!t.has("content-type")){let i=ek(e?.body);i&&t.set("content-type",i);}return t}function ek(e){return Kf(e)?"application/json":null}function tk(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(Kf(e.body)&&!t.has("content-type")){for(let[n,i]of Object.entries(e?.body))i instanceof Date&&(e.body[n]=i.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&Kf(e.body)?new URLSearchParams(e.body).toString():e.body}function rk(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){let i=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return lb.includes(i)?i.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function nk(e,t){let n;return !e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n);}}}var ik=class cb extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,cb.prototype);}};async function Ss(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new ik(n.issues);return n.value}var lb=["get","post","put","patch","delete"];var ok=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var i,r,o,a;let s=((r=(i=e.plugins)==null?void 0:i.find(c=>{var l;return (l=c.schema)!=null&&l.config?t.startsWith(c.schema.config.baseURL||"")||t.startsWith(c.schema.config.prefix||""):false}))==null?void 0:r.schema)||e.schema;if(s){let c=t;(o=s.config)!=null&&o.prefix&&c.startsWith(s.config.prefix)&&(c=c.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),(a=s.config)!=null&&a.baseURL&&c.startsWith(s.config.baseURL)&&(c=c.replace(s.config.baseURL,""));let l=s.schema[c];if(l){let d=Ht(Nt({},n),{method:l.method,output:l.output});return n?.disableValidation||(d=Ht(Nt({},d),{body:l.input?await Ss(l.input,n?.body):n?.body,params:l.params?await Ss(l.params,n?.params):n?.params,query:l.query?await Ss(l.query,n?.query):n?.query})),{url:t,options:d}}}return {url:t,options:n}}}),db=e=>{async function t(n,i){let r=Ht(Nt(Nt({},e),i),{plugins:[...e?.plugins||[],ok(e||{}),...i?.plugins||[]]});if(e?.catchAllError)try{return await Xf(n,r)}catch(o){return {data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:o}}}return await Xf(n,r)}return t};function ak(e,t){let{baseURL:n,params:i,query:r}=t||{query:{},params:{},baseURL:""},o=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){let p=e.toString().split("@")[1].split("/")[0];lb.includes(p)&&(e=e.replace(`@${p}/`,"/"));}o.endsWith("/")||(o+="/");let[a,s]=e.replace(o,"").split("?"),c=new URLSearchParams(s);for(let[p,m]of Object.entries(r||{})){if(m==null)continue;let h;if(typeof m=="string")h=m;else if(Array.isArray(m)){for(let y of m)c.append(p,y);continue}else h=JSON.stringify(m);c.set(p,h);}if(i)if(Array.isArray(i)){let p=a.split("/").filter(m=>m.startsWith(":"));for(let[m,h]of p.entries()){let y=i[m];a=a.replace(h,y);}}else for(let[p,m]of Object.entries(i))a=a.replace(`:${p}`,String(m));a=a.split("/").map(encodeURIComponent).join("/"),a.startsWith("/")&&(a=a.slice(1));let l=c.toString();return l=l.length>0?`?${l}`.replace(/\+/g,"%20"):"",o.startsWith("http")?new URL(`${a}${l}`,o):`${o}${a}${l}`}var Xf=async(e,t)=>{var n,i,r,o,a,s,c,l;let{hooks:d,url:p,options:m}=await WO(e,t),h=XO(m),y=new AbortController,x=(n=m.signal)!=null?n:y.signal,b=ak(p,m),j=tk(m),H=await QO(m),B=rk(p,m),R=Ht(Nt({},m),{url:b,headers:H,body:j,method:B,signal:x});for(let T of d.onRequest)if(T){let V=await T(R);typeof V=="object"&&V!==null&&(R=V);}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((i=t?.body)==null?void 0:i.pipe)=="function")&&("duplex"in R||(R.duplex="half"));let{clearTimeout:k}=nk(m,y),z=await h(R.url,R);k();let re={response:z,request:R};for(let T of d.onResponse)if(T){let V=await T(Ht(Nt({},re),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?z.clone():z}));V instanceof Response?z=V:typeof V=="object"&&V!==null&&(z=V.response);}if(z.ok){if(!(R.method!=="HEAD"))return {data:"",error:null};let V=JO(z),te={data:null,response:z,request:R};if(V==="json"||V==="text"){let de=await z.text(),se=(o=R.jsonParser)!=null?o:sb;te.data=await se(de);}else te.data=await z[V]();R?.output&&R.output&&!R.disableValidation&&(te.data=await Ss(R.output,te.data));for(let de of d.onSuccess)de&&await de(Ht(Nt({},te),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?z.clone():z}));return t?.throw?te.data:{data:te.data,error:null}}let ce=(s=t?.jsonParser)!=null?s:sb,ve=await z.text(),ie=KO(ve),P=ie?await ce(ve):null,N={response:z,responseText:ve,request:R,error:Ht(Nt({},P),{status:z.status,statusText:z.statusText})};for(let T of d.onError)T&&await T(Ht(Nt({},N),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?z.clone():z}));if(t?.retry){let T=qO(t.retry),V=(l=t.retryAttempt)!=null?l:0;if(await T.shouldAttemptRetry(V,z)){for(let de of d.onRetry)de&&await de(re);let te=T.getDelay(V);return await new Promise(de=>setTimeout(de,te)),await Xf(e,Ht(Nt({},t),{retryAttempt:V+1}))}}if(t?.throw)throw new ZO(z.status,z.statusText,ie?P:ve);return {data:null,error:Ht(Nt({},P),{status:z.status,statusText:z.statusText})}};var sk=e=>{if(typeof process>"u")return;let t=e??"/api/auth";if(process.env.NEXT_PUBLIC_AUTH_URL)return process.env.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(process.env.NEXTAUTH_URL)try{return process.env.NEXTAUTH_URL}catch{}if(process.env.VERCEL_URL)try{let n=process.env.VERCEL_URL.startsWith("http")?"":"https://";return `${new URL(`${n}${process.env.VERCEL_URL}`).origin}${t}`}catch{}}},pb=(e,t)=>{let n="credentials"in Request.prototype,i=eb(e?.baseURL,e?.basePath)??sk(e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(k=>k.fetchPlugins).filter(k=>k!==void 0)||[],o={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:a,onError:s,onRequest:c,onResponse:l,...d}=e?.fetchOptions||{},p=db({baseURL:i,...n?{credentials:"include"}:{},method:"GET",jsonParser(k){return k?Wf(k,{strict:false}):null},customFetchImpl:fetch,...d,plugins:[o,...d.plugins||[],...e?.disableDefaultFetchPlugins?[]:[tb],...r]}),{$sessionSignal:m,session:h,broadcastSessionUpdate:y}=rb(p,e),x=e?.plugins||[],b={},j={$sessionSignal:m,session:h},H={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},B=[{signal:"$sessionSignal",matcher(k){return k==="/sign-out"||k==="/update-user"||k==="/update-session"||k==="/sign-up/email"||k==="/sign-in/email"||k==="/delete-user"||k==="/verify-email"||k==="/revoke-sessions"||k==="/revoke-session"||k==="/change-email"},callback(k){k==="/sign-out"?y("signout"):(k==="/update-user"||k==="/update-session")&&y("updateUser");}}];for(let k of x)k.getAtoms&&Object.assign(j,k.getAtoms?.(p)),k.pathMethods&&Object.assign(H,k.pathMethods),k.atomListeners&&B.push(...k.atomListeners);let R={notify:k=>{j[k].set(!j[k].get());},listen:(k,z)=>{j[k].subscribe(z);},atoms:j};for(let k of x)k.getActions&&(b=nb(k.getActions?.(p,R,e)??{},b));return {get baseURL(){return i},pluginsActions:b,pluginsAtoms:j,pluginPathMethods:H,atomListeners:B,$fetch:p,$store:R}};function fb(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function uk(e,t,n){let i=t[e],{fetchOptions:r,query:o,...a}=n||{};return i||(r?.method?r.method:a&&Object.keys(a).length>0?"POST":"GET")}function mb(e,t,n,i,r){function o(a=[]){return new Proxy(function(){},{get(s,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;let l=[...a,c],d=e;for(let p of l)if(d&&typeof d=="object"&&p in d)d=d[p];else {d=void 0;break}return typeof d=="function"||fb(d)?d:o(l)},apply:async(s,c,l)=>{let d="/"+a.map(H=>H.replace(/[A-Z]/g,B=>`-${B.toLowerCase()}`)).join("/"),p=l[0]||{},m=l[1]||{},{query:h,fetchOptions:y,...x}=p,b={...m,...y},j=uk(d,n,p);return await t(d,{...b,body:j==="GET"?void 0:{...x,...b?.body||{}},query:h||b?.query,method:j,async onSuccess(H){if(await b?.onSuccess?.(H),!r||b.disableSignal)return;let B=r.filter(k=>k.matcher(d));if(!B.length)return;let R=new Set;for(let k of B){let z=i[k.signal];if(!z)return;if(R.has(k.signal))continue;R.add(k.signal);let re=z.get();setTimeout(()=>{z.set(!re);},10),k.callback?.(d);}}})}})}return o()}function hb(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Qf(e){let{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:i,$fetch:r,atomListeners:o,$store:a}=pb(e),s={};for(let[c,l]of Object.entries(i))s[`use${hb(c)}`]=l;return mb({...n,...s,$fetch:r,$store:a},r,t,i,o)}Fe({FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application",YOU_ARE_NOT_ALLOWED_TO_GET_USER:"You are not allowed to get user",NO_DATA_TO_UPDATE:"No data to update",YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS:"You are not allowed to update users",YOU_CANNOT_REMOVE_YOURSELF:"You cannot remove yourself",YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE:"You are not allowed to set a non-existent role value",YOU_CANNOT_IMPERSONATE_ADMINS:"You cannot impersonate admins",INVALID_ROLE_TYPE:"Invalid role type"});Fe({INVALID_EMAIL_FORMAT:"Email was not generated in a valid format",FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously",FAILED_TO_DELETE_ANONYMOUS_USER:"Failed to delete anonymous user",USER_IS_NOT_ANONYMOUS:"User is not anonymous",DELETE_ANONYMOUS_USER_DISABLED:"Deleting anonymous users is disabled"});var tm=()=>({id:"device-authorization",$InferServerPlugin:{},pathMethods:{"/device/code":"POST","/device/token":"POST","/device":"GET","/device/approve":"POST","/device/deny":"POST"}});Fe({OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",TOO_MANY_ATTEMPTS:"Too many attempts"});Fe({INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration",TOKEN_URL_NOT_FOUND:"Invalid OAuth configuration. Token URL not found.",PROVIDER_CONFIG_NOT_FOUND:"No config found for provider",PROVIDER_ID_REQUIRED:"Provider ID is required",INVALID_OAUTH_CONFIG:"Invalid OAuth configuration.",SESSION_REQUIRED:"Session is required",ISSUER_MISMATCH:"OAuth issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).",ISSUER_MISSING:"OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."});Fe({INVALID_SESSION_TOKEN:"Invalid session token"});Fe({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_SLUG_ALREADY_TAKEN:"Organization slug already taken",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:"You cannot leave the organization without an owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:"Email verification required before accepting or rejecting invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"You are not allowed to invite a user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:"User is not a member of the team",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:"You are not allowed to list the members of this team",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:"You do not have an active team",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:"You are not allowed to create a new member",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:"You are not allowed to remove a team member",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:"You are not allowed to access this organization as an owner",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:"You are not a member of this organization",MISSING_AC_INSTANCE:"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:"You must be in an organization to create a role",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:"You are not allowed to create a role",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:"You are not allowed to update a role",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:"You are not allowed to delete a role",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:"You are not allowed to read a role",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:"You are not allowed to list a role",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:"You are not allowed to get a role",TOO_MANY_ROLES:"This organization has too many roles",INVALID_RESOURCE:"The provided permission includes an invalid resource",ROLE_NAME_IS_ALREADY_TAKEN:"That role name is already taken",CANNOT_DELETE_A_PRE_DEFINED_ROLE:"Cannot delete a pre-defined role",ROLE_IS_ASSIGNED_TO_MEMBERS:"Cannot delete a role that is assigned to members. Please reassign the members to a different role first"});Fe({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"});Fe({OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"});Fe({INVALID_USERNAME_OR_PASSWORD:"Invalid username or password",EMAIL_NOT_VERIFIED:"Email not verified",UNEXPECTED_ERROR:"Unexpected error",USERNAME_IS_ALREADY_TAKEN:"Username is already taken. Please try another.",USERNAME_TOO_SHORT:"Username is too short",USERNAME_TOO_LONG:"Username is too long",INVALID_USERNAME:"Username is invalid",INVALID_DISPLAY_USERNAME:"Display username is invalid"});var fk=".ripplo";function Fb(){return Um.join(pk.homedir(),fk)}function Pb(){let e=Fb();return Kn.existsSync(e)?Kn.chmodSync(e,448):Kn.mkdirSync(e,{mode:448,recursive:true}),e}function Nb(e){return Um.join(Fb(),e)}function eo(e){let t=process.env.RIPPLO_TOKEN;if(t!=null&&t.trim().length>0)return t.trim();let n=Mr(e);if(!Kn.existsSync(n))return null;let i=Kn.readFileSync(n,"utf8").trim();return i.length===0?null:i}function nm({serverUrl:e,token:t}){Pb();let n=Mr(e);Kn.mkdirSync(Um.dirname(n),{mode:448,recursive:true}),Kn.writeFileSync(n,t+`
46
+ `,{mode:384});}function im(e){let t=Mr(e);return Kn.existsSync(t)?(Kn.unlinkSync(t),true):false}function Mr(e){return Nb(Um.join("tokens",mk(e)))}function mk(e){return new URL(e).host.replaceAll(/[^a-zA-Z0-9.]/g,"_")}var gk=5e3,Ub="ripplo-cli",vk=new Set(["authorization_pending","slow_down"]);async function jb({onDeviceCode:e,serverUrl:t}){let n=yk(t),i=await n.device.code({client_id:Ub});if(i.error!=null)return ue({description:i.error.error_description,kind:"device-code-failed"});let{device_code:r,user_code:o,verification_uri_complete:a}=i.data;return e({userCode:o,verificationUrl:a}),Br(a),(await bk({authClient:n,deviceCode:r})).map(c=>(nm({serverUrl:t,token:c}),c))}function yk(e){return Qf({baseURL:e,fetchOptions:{headers:{"User-Agent":"Ripplo CLI"}},plugins:[tm()]})}async function bk({authClient:e,deviceCode:t}){for(;;){await _k(gk);let n=await e.device.token({client_id:Ub,device_code:t,grant_type:"urn:ietf:params:oauth:grant-type:device_code"});if(n.data?.access_token!=null)return ke(n.data.access_token);if(n.error!=null&&!vk.has(n.error.error))return ue({code:n.error.error,description:n.error.error_description,kind:"authorization-failed"})}}function _k(e){return new Promise(t=>{setTimeout(t,e);})}function Br(e){let t=Dk();exec(`${t} "${e}"`,()=>{});}function Dk(){return process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open"}async function to({lookupViewer:e,serverUrl:t}){let n=eo(t);if(n!=null&&await Sk({lookupViewer:e,serverUrl:t,token:n}))return;let r=(await jb({onDeviceCode:xk,serverUrl:t})).match(s=>s,s=>{process.stderr.write(`${Ek(s)}
47
+ `),process.exit(1);}),o=await e({serverUrl:t,token:r}),a="Welcome to Ripplo";process.stdout.write(`
48
+ `),process.stdout.write(o.kind==="ok"?`${a}, ${wk(o.viewer)}.
50
49
  `:`${a}.
51
- `),process.stdout.write(`Session saved to ${mr(t)}.
52
- `);}function Fo(e){if(!rh(e)){process.stdout.write(`Already signed out.
53
- `);return}process.stdout.write(`Signed out. Removed ${mr(e)}.
54
- `);}function DA(e){process.stdout.write(`Opening your browser to finish sign-in.
50
+ `),process.stdout.write(`Session saved to ${Mr(t)}.
51
+ `);}function ro(e){if(!im(e)){process.stdout.write(`Already signed out.
52
+ `);return}process.stdout.write(`Signed out. Removed ${Mr(e)}.
53
+ `);}function xk(e){process.stdout.write(`Opening your browser to finish sign-in.
55
54
  `),process.stdout.write(`If it didn't open, visit: ${e.verificationUrl}
56
55
  `),process.stdout.write(`Verification code: ${e.userCode}
57
56
 
58
57
  `),process.stdout.write(`Waiting for approval...
59
- `);}async function _A({lookupViewer:e,serverUrl:t,token:r}){let i=await e({serverUrl:t,token:r});return i.kind==="ok"?(process.stdout.write(`Already signed in as ${i.viewer.email}. Run \`npx ripplo logout\` to switch accounts.
58
+ `);}async function Sk({lookupViewer:e,serverUrl:t,token:n}){let i=await e({serverUrl:t,token:n});return i.kind==="ok"?(process.stdout.write(`Already signed in as ${i.viewer.email}. Run \`npx ripplo logout\` to switch accounts.
60
59
  `),true):(i.kind==="unreachable"&&(process.stdout.write(`Could not reach the Ripplo server at ${t} (${i.message}). Your saved session may still be valid \u2014 fix connectivity and retry.
61
60
  `),process.exit(1)),process.stdout.write(`Your session expired \u2014 signing you back in.
62
61
 
63
- `),false)}function EA(e){return e.kind==="device-code-failed"?[`Could not start sign-in (device-code request failed): ${e.description}`,"Is the Ripplo server reachable? Check RIPPLO_SERVER_URL and retry."].join(`
62
+ `),false)}function Ek(e){return e.kind==="device-code-failed"?[`Could not start sign-in (device-code request failed): ${e.description}`,"Is the Ripplo server reachable? Check RIPPLO_SERVER_URL and retry."].join(`
64
63
  `):[`Sign-in failed (${e.code}): ${e.description}`,e.code==="expired_token"?"The approval window expired \u2014 run `npx ripplo login` again.":"Run `npx ripplo login` to retry."].join(`
65
- `)}function wA(e){let t=e.name.trim().split(/\s+/)[0];return t!=null&&t.length>0?t:e.email}var OA=1500,CA=4e3,RA=3,AA=50,TA=100,ax=false;function ih(){if(ax)return;ax=true;let e=new Agent({connections:TA,keepAliveMaxTimeout:CA,keepAliveTimeout:OA}),t=new RetryAgent(e,{errorCodes:["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","UND_ERR_SOCKET"],maxRetries:RA,methods:["GET","POST","HEAD","OPTIONS","DELETE"],minTimeout:AA,statusCodes:[]});setGlobalDispatcher(t);}function mu(e,t,r){let i=e===1?t:`${t}s`;return `${String(e)} ${i}`}var PA={right:UA,center:LA},FA=0,hu=1,jA=2,gu=3,oh=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:true,this.rows=[];}span(...t){let r=this.div(...t);r.span=true;}resetOutput(){this.rows=[];}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(i=>typeof i=="string"?this.colFromString(i):i);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
66
- `).map(n=>n.split(" ")),i=0;return r.forEach(n=>{n.length>1&&bt.stringWidth(n[0])>i&&(i=Math.min(Math.floor(this.width*.5),bt.stringWidth(n[0])));}),r.forEach(n=>{this.div(...n.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),width:a===0&&n.length>1?i:void 0})));}),this.rows[this.rows.length-1]}colFromString(t){return {text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=bt.stripAnsi(t);return [0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t);}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
67
- `)}rowToString(t,r){return this.rasterize(t).forEach((i,n)=>{let o="";i.forEach((a,u)=>{let{width:c}=t[u],l=this.negatePadding(t[u]),d=a;if(l>bt.stringWidth(a)&&(d+=" ".repeat(l-bt.stringWidth(a))),t[u].align&&t[u].align!=="left"&&this.wrap){let m=PA[t[u].align];d=m(d,l),bt.stringWidth(d)<l&&(d+=" ".repeat((c||0)-bt.stringWidth(d)-1));}let p=t[u].padding||[0,0,0,0];p[gu]&&(o+=" ".repeat(p[gu])),o+=sx(t[u],d,"| "),o+=d,o+=sx(t[u],d," |"),p[hu]&&(o+=" ".repeat(p[hu])),n===0&&r.length>0&&(o=this.renderInline(o,r[r.length-1]));}),r.push({text:o.replace(/ +$/,""),span:t.span});}),r}renderInline(t,r){let i=t.match(/^ */),n=i?i[0].length:0,o=r.text,a=bt.stringWidth(o.trimRight());return r.span?this.wrap?n<a?t:(r.hidden=true,o.trimRight()+" ".repeat(n-a)+t.trimLeft()):(r.hidden=true,o+t):t}rasterize(t){let r=[],i=this.columnWidths(t),n;return t.forEach((o,a)=>{o.width=i[a],this.wrap?n=bt.wrap(o.text,this.negatePadding(o),{hard:true}).split(`
68
- `):n=o.text.split(`
69
- `),o.border&&(n.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),n.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(n.unshift(...new Array(o.padding[FA]||0).fill("")),n.push(...new Array(o.padding[jA]||0).fill(""))),n.forEach((u,c)=>{r[c]||r.push([]);let l=r[c];for(let d=0;d<a;d++)l[d]===void 0&&l.push("");l.push(u);});}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[gu]||0)+(t.padding[hu]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||bt.stringWidth(a.text));let r=t.length,i=this.width,n=t.map(a=>{if(a.width)return r--,i-=a.width,a.width}),o=r?Math.floor(i/r):0;return n.map((a,u)=>a===void 0?Math.max(o,zA(t[u])):a)}};function sx(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function zA(e){let t=e.padding||[],r=1+(t[gu]||0)+(t[hu]||0);return e.border?r+4:r}function NA(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function UA(e,t){e=e.trim();let r=bt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function LA(e,t){e=e.trim();let r=bt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var bt;function ux(e,t){return bt=t,new oh({width:e?.width||NA(),wrap:e?.wrap})}function ah({onlyFirst:e=false}={}){let n="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(n,e?void 0:"g")}var MA=ah();function gr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return !e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(MA,"")}var cx=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],lx=12288,dx=65510,px=[12288,12288,65281,65376,65504,65510];var fx=4352,mx=262141,sh=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var yu=(e,t)=>{let r=0,i=Math.floor(e.length/2)-1;for(;r<=i;){let n=Math.floor((r+i)/2),o=n*2;if(t<e[o])i=n-1;else if(t>e[o+1])r=n+1;else return true}return false};var hx=19968,[ZA,WA]=GA(sh);function GA(e){let t=e[0],r=e[1];for(let i=0;i<e.length;i+=2){let n=e[i],o=e[i+1];if(hx>=n&&hx<=o)return [n,o];o-n>r-t&&(t=n,r=o);}return [t,r]}var gx=e=>e<161||e>1114109?false:yu(cx,e),yx=e=>e<lx||e>dx?false:yu(px,e);var vx=e=>e>=ZA&&e<=WA?true:e<fx||e>mx?false:yu(sh,e);function qA(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function bx(e,{ambiguousAsWide:t=false}={}){return qA(e),yx(e)||vx(e)||t&&gx(e)?2:1}var Sx=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var HA=new Intl.Segmenter,JA=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function Ht(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=true,countAnsiEscapeCodes:i=false}=t;if(i||(e=gr(e)),e.length===0)return 0;let n=0,o={ambiguousAsWide:!r};for(let{segment:a}of HA.segment(e)){let u=a.codePointAt(0);if(!(u<=31||u>=127&&u<=159)&&!(u>=8203&&u<=8207||u===65279)&&!(u>=768&&u<=879||u>=6832&&u<=6911||u>=7616&&u<=7679||u>=8400&&u<=8447||u>=65056&&u<=65071)&&!(u>=55296&&u<=57343)&&!(u>=65024&&u<=65039)&&!JA.test(a)){if(Sx().test(a)){n+=2;continue}n+=bx(u,o);}}return n}var xx=(e=0)=>t=>`\x1B[${t+e}m`,Dx=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,_x=(e=0)=>(t,r,i)=>`\x1B[${38+e};2;${t};${r};${i}m`,xe={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(xe.modifier);var KA=Object.keys(xe.color),YA=Object.keys(xe.bgColor);[...KA,...YA];function XA(){let e=new Map;for(let[t,r]of Object.entries(xe)){for(let[i,n]of Object.entries(r))xe[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=xe[i],e.set(n[0],n[1]);Object.defineProperty(xe,t,{value:r,enumerable:false});}return Object.defineProperty(xe,"codes",{value:e,enumerable:false}),xe.color.close="\x1B[39m",xe.bgColor.close="\x1B[49m",xe.color.ansi=xx(),xe.color.ansi256=Dx(),xe.color.ansi16m=_x(),xe.bgColor.ansi=xx(10),xe.bgColor.ansi256=Dx(10),xe.bgColor.ansi16m=_x(10),Object.defineProperties(xe,{rgbToAnsi256:{value(t,r,i){return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return [0,0,0];let[i]=r;i.length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16);return [n>>16&255,n>>8&255,n&255]},enumerable:false},hexToAnsi256:{value:t=>xe.rgbToAnsi256(...xe.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,i,n;if(t>=232)r=((t-232)*10+8)/255,i=r,n=r;else {t-=16;let u=t%36;r=Math.floor(t/36)/5,i=Math.floor(u/6)/5,n=u%6/5;}let o=Math.max(r,i,n)*2;if(o===0)return 30;let a=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:false},rgbToAnsi:{value:(t,r,i)=>xe.ansi256ToAnsi(xe.rgbToAnsi256(t,r,i)),enumerable:false},hexToAnsi:{value:t=>xe.ansi256ToAnsi(xe.hexToAnsi256(t)),enumerable:false}}),xe}var QA=XA(),Ex=QA;var bu=new Set(["\x1B","\x9B"]),eT=39,ch="\x07",kx="[",tT="]",Ix="m",vu=`${tT}8;;`,wx=e=>`${bu.values().next().value}${kx}${e}${Ix}`,$x=e=>`${bu.values().next().value}${vu}${e}${ch}`,nT=e=>e.split(" ").map(t=>Ht(t)),uh=(e,t,r)=>{let i=[...t],n=false,o=false,a=Ht(gr(e.at(-1)));for(let[u,c]of i.entries()){let l=Ht(c);if(a+l<=r?e[e.length-1]+=c:(e.push(c),a=0),bu.has(c)&&(n=true,o=i.slice(u+1,u+1+vu.length).join("")===vu),n){o?c===ch&&(n=false,o=false):c===Ix&&(n=false);continue}a+=l,a===r&&u<i.length-1&&(e.push(""),a=0);}!a&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop());},rT=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(Ht(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},iT=(e,t,r={})=>{if(r.trim!==false&&e.trim()==="")return "";let i="",n,o,a=nT(e),u=[""];for(let[p,m]of e.split(" ").entries()){r.trim!==false&&(u[u.length-1]=u.at(-1).trimStart());let h=Ht(u.at(-1));if(p!==0&&(h>=t&&(r.wordWrap===false||r.trim===false)&&(u.push(""),h=0),(h>0||r.trim===false)&&(u[u.length-1]+=" ",h++)),r.hard&&a[p]>t){let v=t-h,D=1+Math.floor((a[p]-v-1)/t);Math.floor((a[p]-1)/t)<D&&u.push(""),uh(u,m,t);continue}if(h+a[p]>t&&h>0&&a[p]>0){if(r.wordWrap===false&&h<t){uh(u,m,t);continue}u.push("");}if(h+a[p]>t&&r.wordWrap===false){uh(u,m,t);continue}u[u.length-1]+=m;}r.trim!==false&&(u=u.map(p=>rT(p)));let c=u.join(`
70
- `),l=[...c],d=0;for(let[p,m]of l.entries()){if(i+=m,bu.has(m)){let{groups:v}=new RegExp(`(?:\\${kx}(?<code>\\d+)m|\\${vu}(?<uri>.*)${ch})`).exec(c.slice(d))||{groups:{}};if(v.code!==void 0){let D=Number.parseFloat(v.code);n=D===eT?void 0:D;}else v.uri!==void 0&&(o=v.uri.length===0?void 0:v.uri);}let h=Ex.codes.get(Number(n));l[p+1]===`
71
- `?(o&&(i+=$x("")),n&&h&&(i+=wx(h))):m===`
72
- `&&(n&&h&&(i+=wx(n)),o&&(i+=$x(o))),d+=m.length;}return i};function lh(e,t,r){return String(e).normalize().replaceAll(`\r
64
+ `)}function wk(e){let t=e.name.trim().split(/\s+/)[0];return t!=null&&t.length>0?t:e.email}var kk=1500,Ck=4e3,Ak=3,Rk=50,Tk=100,Lb=false;function om(){if(Lb)return;Lb=true;let e=new Agent({connections:Tk,keepAliveMaxTimeout:Ck,keepAliveTimeout:kk}),t=new RetryAgent(e,{errorCodes:["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","UND_ERR_SOCKET"],maxRetries:Ak,methods:["GET","POST","HEAD","OPTIONS","DELETE"],minTimeout:Rk,statusCodes:[]});setGlobalDispatcher(t);}function ws(e,t,n){let i=e===1?t:`${t}s`;return `${String(e)} ${i}`}var Fk={right:jk,center:Lk},Pk=0,$s=1,Nk=2,Is=3,am=class{constructor(t){var n;this.width=t.width,this.wrap=(n=t.wrap)!==null&&n!==void 0?n:true,this.rows=[];}span(...t){let n=this.div(...t);n.span=true;}resetOutput(){this.rows=[];}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let n=t.map(i=>typeof i=="string"?this.colFromString(i):i);return this.rows.push(n),n}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let n=t.split(`
65
+ `).map(r=>r.split(" ")),i=0;return n.forEach(r=>{r.length>1&&pt.stringWidth(r[0])>i&&(i=Math.min(Math.floor(this.width*.5),pt.stringWidth(r[0])));}),n.forEach(r=>{this.div(...r.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),width:a===0&&r.length>1?i:void 0})));}),this.rows[this.rows.length-1]}colFromString(t){return {text:t,padding:this.measurePadding(t)}}measurePadding(t){let n=pt.stripAnsi(t);return [0,n.match(/\s*$/)[0].length,0,n.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(n=>{this.rowToString(n,t);}),t.filter(n=>!n.hidden).map(n=>n.text).join(`
66
+ `)}rowToString(t,n){return this.rasterize(t).forEach((i,r)=>{let o="";i.forEach((a,s)=>{let{width:c}=t[s],l=this.negatePadding(t[s]),d=a;if(l>pt.stringWidth(a)&&(d+=" ".repeat(l-pt.stringWidth(a))),t[s].align&&t[s].align!=="left"&&this.wrap){let m=Fk[t[s].align];d=m(d,l),pt.stringWidth(d)<l&&(d+=" ".repeat((c||0)-pt.stringWidth(d)-1));}let p=t[s].padding||[0,0,0,0];p[Is]&&(o+=" ".repeat(p[Is])),o+=Mb(t[s],d,"| "),o+=d,o+=Mb(t[s],d," |"),p[$s]&&(o+=" ".repeat(p[$s])),r===0&&n.length>0&&(o=this.renderInline(o,n[n.length-1]));}),n.push({text:o.replace(/ +$/,""),span:t.span});}),n}renderInline(t,n){let i=t.match(/^ */),r=i?i[0].length:0,o=n.text,a=pt.stringWidth(o.trimRight());return n.span?this.wrap?r<a?t:(n.hidden=true,o.trimRight()+" ".repeat(r-a)+t.trimLeft()):(n.hidden=true,o+t):t}rasterize(t){let n=[],i=this.columnWidths(t),r;return t.forEach((o,a)=>{o.width=i[a],this.wrap?r=pt.wrap(o.text,this.negatePadding(o),{hard:true}).split(`
67
+ `):r=o.text.split(`
68
+ `),o.border&&(r.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(r.unshift(...new Array(o.padding[Pk]||0).fill("")),r.push(...new Array(o.padding[Nk]||0).fill(""))),r.forEach((s,c)=>{n[c]||n.push([]);let l=n[c];for(let d=0;d<a;d++)l[d]===void 0&&l.push("");l.push(s);});}),n}negatePadding(t){let n=t.width||0;return t.padding&&(n-=(t.padding[Is]||0)+(t.padding[$s]||0)),t.border&&(n-=4),n}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||pt.stringWidth(a.text));let n=t.length,i=this.width,r=t.map(a=>{if(a.width)return n--,i-=a.width,a.width}),o=n?Math.floor(i/n):0;return r.map((a,s)=>a===void 0?Math.max(o,zk(t[s])):a)}};function Mb(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?n:" ":""}function zk(e){let t=e.padding||[],n=1+(t[Is]||0)+(t[$s]||0);return e.border?n+4:n}function Uk(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function jk(e,t){e=e.trim();let n=pt.stringWidth(e);return n<t?" ".repeat(t-n)+e:e}function Lk(e,t){e=e.trim();let n=pt.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}var pt;function Bb(e,t){return pt=t,new am({width:e?.width||Uk(),wrap:e?.wrap})}function sm({onlyFirst:e=false}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}var Mk=sm();function Vr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return !e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Mk,"")}var Vb=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Zb=12288,Wb=65510,Gb=[12288,12288,65281,65376,65504,65510];var qb=4352,Hb=262141,um=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Os=(e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){let r=Math.floor((n+i)/2),o=r*2;if(t<e[o])i=r-1;else if(t>e[o+1])n=r+1;else return true}return false};var Yb=19968,[Zk,Wk]=Gk(um);function Gk(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){let r=e[i],o=e[i+1];if(Yb>=r&&Yb<=o)return [r,o];o-r>n-t&&(t=r,n=o);}return [t,n]}var Jb=e=>e<161||e>1114109?false:Os(Vb,e),Kb=e=>e<Zb||e>Wb?false:Os(Gb,e);var Xb=e=>e>=Zk&&e<=Wk?true:e<qb||e>Hb?false:Os(um,e);function qk(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Qb(e,{ambiguousAsWide:t=false}={}){return qk(e),Kb(e)||Xb(e)||t&&Jb(e)?2:1}var e_=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Hk=new Intl.Segmenter,Yk=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function zt(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=true,countAnsiEscapeCodes:i=false}=t;if(i||(e=Vr(e)),e.length===0)return 0;let r=0,o={ambiguousAsWide:!n};for(let{segment:a}of Hk.segment(e)){let s=a.codePointAt(0);if(!(s<=31||s>=127&&s<=159)&&!(s>=8203&&s<=8207||s===65279)&&!(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)&&!(s>=55296&&s<=57343)&&!(s>=65024&&s<=65039)&&!Yk.test(a)){if(e_().test(a)){r+=2;continue}r+=Qb(s,o);}}return r}var t_=(e=0)=>t=>`\x1B[${t+e}m`,r_=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,n_=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,be={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(be.modifier);var Jk=Object.keys(be.color),Kk=Object.keys(be.bgColor);[...Jk,...Kk];function Xk(){let e=new Map;for(let[t,n]of Object.entries(be)){for(let[i,r]of Object.entries(n))be[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=be[i],e.set(r[0],r[1]);Object.defineProperty(be,t,{value:n,enumerable:false});}return Object.defineProperty(be,"codes",{value:e,enumerable:false}),be.color.close="\x1B[39m",be.bgColor.close="\x1B[49m",be.color.ansi=t_(),be.color.ansi256=r_(),be.color.ansi16m=n_(),be.bgColor.ansi=t_(10),be.bgColor.ansi256=r_(10),be.bgColor.ansi16m=n_(10),Object.defineProperties(be,{rgbToAnsi256:{value(t,n,i){return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return [0,0,0];let[i]=n;i.length===3&&(i=[...i].map(o=>o+o).join(""));let r=Number.parseInt(i,16);return [r>>16&255,r>>8&255,r&255]},enumerable:false},hexToAnsi256:{value:t=>be.rgbToAnsi256(...be.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,i,r;if(t>=232)n=((t-232)*10+8)/255,i=n,r=n;else {t-=16;let s=t%36;n=Math.floor(t/36)/5,i=Math.floor(s/6)/5,r=s%6/5;}let o=Math.max(n,i,r)*2;if(o===0)return 30;let a=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:false},rgbToAnsi:{value:(t,n,i)=>be.ansi256ToAnsi(be.rgbToAnsi256(t,n,i)),enumerable:false},hexToAnsi:{value:t=>be.ansi256ToAnsi(be.hexToAnsi256(t)),enumerable:false}}),be}var Qk=Xk(),i_=Qk;var Cs=new Set(["\x1B","\x9B"]),eC=39,lm="\x07",s_="[",tC="]",u_="m",ks=`${tC}8;;`,o_=e=>`${Cs.values().next().value}${s_}${e}${u_}`,a_=e=>`${Cs.values().next().value}${ks}${e}${lm}`,rC=e=>e.split(" ").map(t=>zt(t)),cm=(e,t,n)=>{let i=[...t],r=false,o=false,a=zt(Vr(e.at(-1)));for(let[s,c]of i.entries()){let l=zt(c);if(a+l<=n?e[e.length-1]+=c:(e.push(c),a=0),Cs.has(c)&&(r=true,o=i.slice(s+1,s+1+ks.length).join("")===ks),r){o?c===lm&&(r=false,o=false):c===u_&&(r=false);continue}a+=l,a===n&&s<i.length-1&&(e.push(""),a=0);}!a&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop());},nC=e=>{let t=e.split(" "),n=t.length;for(;n>0&&!(zt(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},iC=(e,t,n={})=>{if(n.trim!==false&&e.trim()==="")return "";let i="",r,o,a=rC(e),s=[""];for(let[p,m]of e.split(" ").entries()){n.trim!==false&&(s[s.length-1]=s.at(-1).trimStart());let h=zt(s.at(-1));if(p!==0&&(h>=t&&(n.wordWrap===false||n.trim===false)&&(s.push(""),h=0),(h>0||n.trim===false)&&(s[s.length-1]+=" ",h++)),n.hard&&a[p]>t){let y=t-h,x=1+Math.floor((a[p]-y-1)/t);Math.floor((a[p]-1)/t)<x&&s.push(""),cm(s,m,t);continue}if(h+a[p]>t&&h>0&&a[p]>0){if(n.wordWrap===false&&h<t){cm(s,m,t);continue}s.push("");}if(h+a[p]>t&&n.wordWrap===false){cm(s,m,t);continue}s[s.length-1]+=m;}n.trim!==false&&(s=s.map(p=>nC(p)));let c=s.join(`
69
+ `),l=[...c],d=0;for(let[p,m]of l.entries()){if(i+=m,Cs.has(m)){let{groups:y}=new RegExp(`(?:\\${s_}(?<code>\\d+)m|\\${ks}(?<uri>.*)${lm})`).exec(c.slice(d))||{groups:{}};if(y.code!==void 0){let x=Number.parseFloat(y.code);r=x===eC?void 0:x;}else y.uri!==void 0&&(o=y.uri.length===0?void 0:y.uri);}let h=i_.codes.get(Number(r));l[p+1]===`
70
+ `?(o&&(i+=a_("")),r&&h&&(i+=o_(h))):m===`
71
+ `&&(r&&h&&(i+=o_(r)),o&&(i+=a_(o))),d+=m.length;}return i};function dm(e,t,n){return String(e).normalize().replaceAll(`\r
73
72
  `,`
74
73
  `).split(`
75
- `).map(i=>iT(i,t,r)).join(`
76
- `)}function dh(e){return ux(e,{stringWidth:Ht,stripAnsi:gr,wrap:lh})}function Rx(e,t){let r=resolve(".",e),i;for(statSync(r).isDirectory()||(r=dirname(r));;){if(i=t(r,readdirSync(r)),i)return resolve(r,i);if(r=dirname(i=r),i===r)break}}function yr(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",i=false,n=e.match(/^-+/);for(let o=n?n[0].length:0;o<e.length;o++){let a=e.charAt(o);i&&(i=false,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?i=true:a!=="-"&&a!=="_"&&(r+=a);}return r}}function Su(e,t){let r=e.toLowerCase();t=t||"-";let i="";for(let n=0;n<e.length;n++){let o=r.charAt(n),a=e.charAt(n);o!==a&&n>0?i+=`${t}${r.charAt(n)}`:i+=a;}return i}function xu(e){return e==null?false:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?true:/^0[^.]/.test(e)?false:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function Ax(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,i=null,n=null,o=[];for(let a=0;a<e.length;a++){if(r=i,i=e.charAt(a),i===" "&&!n){r!==" "&&t++;continue}i===n?n=null:(i==="'"||i==='"')&&!n&&(n=i),o[t]||(o[t]=""),o[t]+=i;}return o}var It;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array";})(It||(It={}));var bn,Du=class{constructor(t){bn=t;}parse(t,r){let i=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),n=Ax(t),o=typeof t=="string",a=sT(Object.assign(Object.create(null),i.alias)),u=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},i.configuration),c=Object.assign(Object.create(null),i.default),l=i.configObjects||[],d=i.envPrefix,p=u["populate--"],m=p?"--":"_",h=Object.create(null),v=Object.create(null),D=i.__||bn.format,b={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},U=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,H=new RegExp("^--"+u["negation-prefix"]+"(.+)");[].concat(i.array||[]).filter(Boolean).forEach(function(g){let x=typeof g=="object"?g.key:g,R=Object.keys(g).map(function(E){return {boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();R&&(b[R][x]=true),b.arrays[x]=true,b.keys.push(x);}),[].concat(i.boolean||[]).filter(Boolean).forEach(function(g){b.bools[g]=true,b.keys.push(g);}),[].concat(i.string||[]).filter(Boolean).forEach(function(g){b.strings[g]=true,b.keys.push(g);}),[].concat(i.number||[]).filter(Boolean).forEach(function(g){b.numbers[g]=true,b.keys.push(g);}),[].concat(i.count||[]).filter(Boolean).forEach(function(g){b.counts[g]=true,b.keys.push(g);}),[].concat(i.normalize||[]).filter(Boolean).forEach(function(g){b.normalize[g]=true,b.keys.push(g);}),typeof i.narg=="object"&&Object.entries(i.narg).forEach(([g,x])=>{typeof x=="number"&&(b.nargs[g]=x,b.keys.push(g));}),typeof i.coerce=="object"&&Object.entries(i.coerce).forEach(([g,x])=>{typeof x=="function"&&(b.coercions[g]=x,b.keys.push(g));}),typeof i.config<"u"&&(Array.isArray(i.config)||typeof i.config=="string"?[].concat(i.config).filter(Boolean).forEach(function(g){b.configs[g]=true;}):typeof i.config=="object"&&Object.entries(i.config).forEach(([g,x])=>{(typeof x=="boolean"||typeof x=="function")&&(b.configs[g]=x);})),Yn(i.key,a,i.default,b.arrays),Object.keys(c).forEach(function(g){(b.aliases[g]||[]).forEach(function(x){c[x]=c[g];});});let B=null;qo();let A=[],O=Object.assign(Object.create(null),{_:[]}),z={};for(let g=0;g<n.length;g++){let x=n[g],R=x.replace(/^-{3,}/,"---"),E,S,W,N,q,Be;if(x!=="--"&&/^-/.test(x)&&Ee(x))ne(x);else if(R.match(/^---+(=|$)/)){ne(x);continue}else if(x.match(/^--.+=/)||!u["short-option-groups"]&&x.match(/^-.+=/))N=x.match(/^--?([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&(Y(N[1],b.arrays)?g=be(g,N[1],n,N[2]):Y(N[1],b.nargs)!==false?g=ce(g,N[1],n,N[2]):ie(N[1],N[2],true));else if(x.match(H)&&u["boolean-negation"])N=x.match(H),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],ie(S,Y(S,b.arrays)?[false]:false));else if(x.match(/^--.+/)||!u["short-option-groups"]&&x.match(/^-[^-]+/))N=x.match(/^--?(.+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],Y(S,b.arrays)?g=be(g,S,n):Y(S,b.nargs)!==false?g=ce(g,S,n):(q=n[g+1],q!==void 0&&(!q.match(/^-/)||q.match(U))&&!Y(S,b.bools)&&!Y(S,b.counts)||/^(true|false)$/.test(q)?(ie(S,q),g++):ie(S,we(S))));else if(x.match(/^-.\..+=/))N=x.match(/^-([^=]+)=([\s\S]*)$/),N!==null&&Array.isArray(N)&&N.length>=3&&ie(N[1],N[2]);else if(x.match(/^-.\..+/)&&!x.match(U))q=n[g+1],N=x.match(/^-(.\..+)/),N!==null&&Array.isArray(N)&&N.length>=2&&(S=N[1],q!==void 0&&!q.match(/^-/)&&!Y(S,b.bools)&&!Y(S,b.counts)?(ie(S,q),g++):ie(S,we(S)));else if(x.match(/^-[^-]+/)&&!x.match(U)){W=x.slice(1,-1).split(""),E=false;for(let Qe=0;Qe<W.length;Qe++){if(q=x.slice(Qe+2),W[Qe+1]&&W[Qe+1]==="="){Be=x.slice(Qe+3),S=W[Qe],Y(S,b.arrays)?g=be(g,S,n,Be):Y(S,b.nargs)!==false?g=ce(g,S,n,Be):ie(S,Be),E=true;break}if(q==="-"){ie(W[Qe],q);continue}if(/[A-Za-z]/.test(W[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(q)&&Y(q,b.bools)===false){ie(W[Qe],q),E=true;break}if(W[Qe+1]&&W[Qe+1].match(/\W/)){ie(W[Qe],q),E=true;break}else ie(W[Qe],we(W[Qe]));}S=x.slice(-1)[0],!E&&S!=="-"&&(Y(S,b.arrays)?g=be(g,S,n):Y(S,b.nargs)!==false?g=ce(g,S,n):(q=n[g+1],q!==void 0&&(!/^(-|--)[^-]/.test(q)||q.match(U))&&!Y(S,b.bools)&&!Y(S,b.counts)||/^(true|false)$/.test(q)?(ie(S,q),g++):ie(S,we(S))));}else if(x.match(/^-[0-9]$/)&&x.match(U)&&Y(x.slice(1),b.bools))S=x.slice(1),ie(S,we(S));else if(x==="--"){A=n.slice(g+1);break}else if(u["halt-at-non-option"]){A=n.slice(g);break}else ne(x);}se(O,true),se(O,false),V(O),pe(),De(O,b.aliases,c,true),Ne(O),u["set-placeholder-key"]&&Kn(O),Object.keys(b.counts).forEach(function(g){ln(O,g.split("."))||ie(g,0);}),p&&A.length&&(O[m]=[]),A.forEach(function(g){O[m].push(g);}),u["camel-case-expansion"]&&u["strip-dashed"]&&Object.keys(O).filter(g=>g!=="--"&&g.includes("-")).forEach(g=>{delete O[g];}),u["strip-aliased"]&&[].concat(...Object.keys(a).map(g=>a[g])).forEach(g=>{u["camel-case-expansion"]&&g.includes("-")&&delete O[g.split(".").map(x=>yr(x)).join(".")],delete O[g];});function ne(g){let x=T("_",g);(typeof x=="string"||typeof x=="number")&&O._.push(x);}function ce(g,x,R,E){let S,W=Y(x,b.nargs);if(W=typeof W!="number"||isNaN(W)?1:W,W===0)return zt(E)||(B=Error(D("Argument unexpected for: %s",x))),ie(x,we(x)),g;let N=zt(E)?0:1;if(u["nargs-eats-options"])R.length-(g+1)+N<W&&(B=Error(D("Not enough arguments following: %s",x))),N=W;else {for(S=g+1;S<R.length&&(!R[S].match(/^-[^0-9]/)||R[S].match(U)||Ee(R[S]));S++)N++;N<W&&(B=Error(D("Not enough arguments following: %s",x)));}let q=Math.min(N,W);for(!zt(E)&&q>0&&(ie(x,E),q--),S=g+1;S<q+g+1;S++)ie(x,R[S]);return g+q}function be(g,x,R,E){let S=[],W=E||R[g+1],N=Y(x,b.nargs);if(Y(x,b.bools)&&!/^(true|false)$/.test(W))S.push(true);else if(zt(W)||zt(E)&&/^-/.test(W)&&!U.test(W)&&!Ee(W)){if(c[x]!==void 0){let q=c[x];S=Array.isArray(q)?q:[q];}}else {zt(E)||S.push(j(x,E,true));for(let q=g+1;q<R.length&&!(!u["greedy-arrays"]&&S.length>0||N&&typeof N=="number"&&S.length>=N||(W=R[q],/^-/.test(W)&&!U.test(W)&&!Ee(W)));q++)g=q,S.push(j(x,W,o));}return typeof N=="number"&&(N&&S.length<N||isNaN(N)&&S.length===0)&&(B=Error(D("Not enough arguments following: %s",x))),ie(x,S),g}function ie(g,x,R=o){if(/-/.test(g)&&u["camel-case-expansion"]){let W=g.split(".").map(function(N){return yr(N)}).join(".");F(g,W);}let E=j(g,x,R),S=g.split(".");dn(O,S,E),b.aliases[g]&&b.aliases[g].forEach(function(W){let N=W.split(".");dn(O,N,E);}),S.length>1&&u["dot-notation"]&&(b.aliases[S[0]]||[]).forEach(function(W){let N=W.split("."),q=[].concat(S);q.shift(),N=N.concat(q),(b.aliases[g]||[]).includes(N.join("."))||dn(O,N,E);}),Y(g,b.normalize)&&!Y(g,b.arrays)&&[g].concat(b.aliases[g]||[]).forEach(function(N){Object.defineProperty(z,N,{enumerable:true,get(){return x},set(q){x=typeof q=="string"?bn.normalize(q):q;}});});}function F(g,x){b.aliases[g]&&b.aliases[g].length||(b.aliases[g]=[x],h[x]=true),b.aliases[x]&&b.aliases[x].length||F(x,g);}function j(g,x,R){R&&(x=uT(x)),(Y(g,b.bools)||Y(g,b.counts))&&typeof x=="string"&&(x=x==="true");let E=Array.isArray(x)?x.map(function(S){return T(g,S)}):T(g,x);return Y(g,b.counts)&&(zt(E)||typeof E=="boolean")&&(E=ph()),Y(g,b.normalize)&&Y(g,b.arrays)&&(Array.isArray(x)?E=x.map(S=>bn.normalize(S)):E=bn.normalize(x)),E}function T(g,x){return !u["parse-positional-numbers"]&&g==="_"||!Y(g,b.strings)&&!Y(g,b.bools)&&!Array.isArray(x)&&(xu(x)&&u["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${x}`)))||!zt(x)&&Y(g,b.numbers))&&(x=Number(x)),x}function V(g){let x=Object.create(null);De(x,b.aliases,c),Object.keys(b.configs).forEach(function(R){let E=g[R]||x[R];if(E)try{let S=null,W=bn.resolve(bn.cwd(),E),N=b.configs[R];if(typeof N=="function"){try{S=N(W);}catch(q){S=q;}if(S instanceof Error){B=S;return}}else S=bn.require(W);te(S);}catch(S){S.name==="PermissionDenied"?B=S:g[R]&&(B=Error(D("Invalid JSON config file: %s",E)));}});}function te(g,x){Object.keys(g).forEach(function(R){let E=g[R],S=x?x+"."+R:R;typeof E=="object"&&E!==null&&!Array.isArray(E)&&u["dot-notation"]?te(E,S):(!ln(O,S.split("."))||Y(S,b.arrays)&&u["combine-arrays"])&&ie(S,E);});}function pe(){typeof l<"u"&&l.forEach(function(g){te(g);});}function se(g,x){if(typeof d>"u")return;let R=typeof d=="string"?d:"",E=bn.env();Object.keys(E).forEach(function(S){if(R===""||S.lastIndexOf(R,0)===0){let W=S.split("__").map(function(N,q){return q===0&&(N=N.substring(R.length)),yr(N)});(x&&b.configs[W.join(".")]||!x)&&!ln(g,W)&&ie(W.join("."),E[S]);}});}function Ne(g){let x,R=new Set;Object.keys(g).forEach(function(E){if(!R.has(E)&&(x=Y(E,b.coercions),typeof x=="function"))try{let S=T(E,x(g[E]));[].concat(b.aliases[E]||[],E).forEach(W=>{R.add(W),g[W]=S;});}catch(S){B=S;}});}function Kn(g){return b.keys.forEach(x=>{~x.indexOf(".")||typeof g[x]>"u"&&(g[x]=void 0);}),g}function De(g,x,R,E=false){Object.keys(R).forEach(function(S){ln(g,S.split("."))||(dn(g,S.split("."),R[S]),E&&(v[S]=true),(x[S]||[]).forEach(function(W){ln(g,W.split("."))||dn(g,W.split("."),R[S]);}));});}function ln(g,x){let R=g;u["dot-notation"]||(x=[x.join(".")]),x.slice(0,-1).forEach(function(S){R=R[S]||{};});let E=x[x.length-1];return typeof R!="object"?false:E in R}function dn(g,x,R){let E=g;u["dot-notation"]||(x=[x.join(".")]),x.slice(0,-1).forEach(function(Be){Be=Tx(Be),typeof E=="object"&&E[Be]===void 0&&(E[Be]={}),typeof E[Be]!="object"||Array.isArray(E[Be])?(Array.isArray(E[Be])?E[Be].push({}):E[Be]=[E[Be],{}],E=E[Be][E[Be].length-1]):E=E[Be];});let S=Tx(x[x.length-1]),W=Y(x.join("."),b.arrays),N=Array.isArray(R),q=u["duplicate-arguments-array"];!q&&Y(S,b.nargs)&&(q=true,(!zt(E[S])&&b.nargs[S]===1||Array.isArray(E[S])&&E[S].length===b.nargs[S])&&(E[S]=void 0)),R===ph()?E[S]=ph(E[S]):Array.isArray(E[S])?q&&W&&N?E[S]=u["flatten-duplicate-arrays"]?E[S].concat(R):(Array.isArray(E[S][0])?E[S]:[E[S]]).concat([R]):!q&&!!W==!!N?E[S]=R:E[S]=E[S].concat([R]):E[S]===void 0&&W?E[S]=N?R:[R]:q&&!(E[S]===void 0||Y(S,b.counts)||Y(S,b.bools))?E[S]=[E[S],R]:E[S]=R;}function Yn(...g){g.forEach(function(x){Object.keys(x||{}).forEach(function(R){b.aliases[R]||(b.aliases[R]=[].concat(a[R]||[]),b.aliases[R].concat(R).forEach(function(E){if(/-/.test(E)&&u["camel-case-expansion"]){let S=yr(E);S!==R&&b.aliases[R].indexOf(S)===-1&&(b.aliases[R].push(S),h[S]=true);}}),b.aliases[R].concat(R).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&u["camel-case-expansion"]){let S=Su(E,"-");S!==R&&b.aliases[R].indexOf(S)===-1&&(b.aliases[R].push(S),h[S]=true);}}),b.aliases[R].forEach(function(E){b.aliases[E]=[R].concat(b.aliases[R].filter(function(S){return E!==S}));}));});});}function Y(g,x){let R=[].concat(b.aliases[g]||[],g),E=Object.keys(x),S=R.find(W=>E.includes(W));return S?x[S]:false}function uc(g){let x=Object.keys(b);return [].concat(x.map(E=>b[E])).some(function(E){return Array.isArray(E)?E.includes(g):E[g]})}function J(g,...x){return [].concat(...x).some(function(E){let S=g.match(E);return S&&uc(S[1])})}function Se(g){if(g.match(U)||!g.match(/^-[^-]+/))return false;let x=true,R,E=g.slice(1).split("");for(let S=0;S<E.length;S++){if(R=g.slice(S+2),!uc(E[S])){x=false;break}if(E[S+1]&&E[S+1]==="="||R==="-"||/[A-Za-z]/.test(E[S])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(R)||E[S+1]&&E[S+1].match(/\W/))break}return x}function Ee(g){return u["unknown-options-as-args"]&&oe(g)}function oe(g){return g=g.replace(/^-{3,}/,"--"),g.match(U)||Se(g)?false:!J(g,/^-+([^=]+?)=[\s\S]*$/,H,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function we(g){return !Y(g,b.bools)&&!Y(g,b.counts)&&`${g}`in c?c[g]:Oe(jt(g))}function Oe(g){return {[It.BOOLEAN]:true,[It.STRING]:"",[It.NUMBER]:void 0,[It.ARRAY]:[]}[g]}function jt(g){let x=It.BOOLEAN;return Y(g,b.strings)?x=It.STRING:Y(g,b.numbers)?x=It.NUMBER:Y(g,b.bools)?x=It.BOOLEAN:Y(g,b.arrays)&&(x=It.ARRAY),x}function zt(g){return g===void 0}function qo(){Object.keys(b.counts).find(g=>Y(g,b.arrays)?(B=Error(D("Invalid configuration: %s, opts.count excludes opts.array.",g)),true):Y(g,b.nargs)?(B=Error(D("Invalid configuration: %s, opts.count excludes opts.narg.",g)),true):false);}return {aliases:Object.assign({},b.aliases),argv:Object.assign(z,O),configuration:u,defaulted:Object.assign({},v),error:B,newAliases:Object.assign({},h)}}};function sT(e){let t=[],r=Object.create(null),i=true;for(Object.keys(e).forEach(function(n){t.push([].concat(e[n],n));});i;){i=false;for(let n=0;n<t.length;n++)for(let o=n+1;o<t.length;o++)if(t[n].filter(function(u){return t[o].indexOf(u)!==-1}).length){t[n]=t[n].concat(t[o]),t.splice(o,1),i=true;break}}return t.forEach(function(n){n=n.filter(function(a,u,c){return c.indexOf(a)===u});let o=n.pop();o!==void 0&&typeof o=="string"&&(r[o]=n);}),r}function ph(e){return e!==void 0?e+1:1}function Tx(e){return e==="__proto__"?"___proto___":e}function uT(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var fh,mh,hh,Fx=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,jx=(mh=(fh=process==null?void 0:process.versions)===null||fh===void 0?void 0:fh.node)!==null&&mh!==void 0?mh:(hh=process==null?void 0:process.version)===null||hh===void 0?void 0:hh.slice(1);if(jx&&Number(jx.match(/^([^.]+)/)[1])<Fx)throw Error(`yargs parser supports a minimum Node.js version of ${Fx}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var fT=process?process.env:{},zx=createRequire$1?createRequire$1(import.meta.url):void 0,Nx=new Du({cwd:process.cwd,env:()=>fT,format:format,normalize:normalize,resolve:resolve,require:e=>{if(typeof zx<"u")return zx(e);if(e.match(/\.json$/))return JSON.parse(readFileSync(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),jo=function(t,r){return Nx.parse(t.slice(),r).argv};jo.detailed=function(e,t){return Nx.parse(e.slice(),t)};jo.camelCase=yr;jo.decamelize=Su;jo.looksLikeNumber=xu;var gh=jo;function Ux(){return mT()?0:1}function mT(){return hT()&&!process.defaultApp}function hT(){return !!process.versions.electron}function yh(e){return e.slice(Ux()+1)}function Lx(){return process.argv[Ux()]}var Mx={fs:{readFileSync:readFileSync,writeFile:writeFile$1},format:format,resolve:resolve,exists:e=>{try{return statSync(e).isFile()}catch{return false}}};var Jt,vh=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:true,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:true,this.cache=Object.create(null),this.writeQueue=[];}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),i=function(){};return typeof t[t.length-1]=="function"&&(i=t.pop()),i=i||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i(),Jt.format.apply(Jt.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),i=t.shift(),n=t.shift(),o=function(){};typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=n===1?r:i;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][n===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:i},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let u=[a];return ~a.indexOf("%d")&&u.push(n),Jt.format.apply(Jt.format,u.concat(t))}setLocale(t){this.locale=t;}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r]);}_taggedLiteral(t,...r){let i="";return t.forEach(function(n,o){let a=r[o+1];i+=n,typeof a<"u"&&(i+="%s");}),this.__.apply(this,[i].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue();}_processWriteQueue(){let t=this,r=this.writeQueue[0],i=r.directory,n=r.locale,o=r.cb,a=this._resolveLocaleFile(i,n),u=JSON.stringify(this.cache[n],null,2);Jt.fs.writeFile(a,u,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c);});}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Jt.fs.readFileSync&&(t=JSON.parse(Jt.fs.readFileSync(r,"utf-8")));}catch(i){if(i instanceof SyntaxError&&(i.message="syntax error in "+r),i.code==="ENOENT")t={};else throw i}this.cache[this.locale]=t;}_resolveLocaleFile(t,r){let i=Jt.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(i)&&~r.lastIndexOf("_")){let n=Jt.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(n)&&(i=n);}return i}_fileExistsSync(t){return Jt.exists(t)}};function Bx(e,t){Jt=t;let r=new vh(e);return {__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var xT=e=>Bx(e,Mx),Vx=xT;var Hx=c(Wx(),1);var bh=fileURLToPath(import.meta.url),TT=bh.substring(0,bh.lastIndexOf("node_modules")),PT=createRequire$1(import.meta.url),Sh={assert:{notStrictEqual:notStrictEqual,strictEqual:strictEqual},cliui:dh,findUp:Rx,getEnv:e=>process.env[e],inspect:inspect,getProcessArgvBin:Lx,mainFilename:TT||process.cwd(),Parser:gh,path:{basename:basename,dirname:dirname,extname:extname,relative:relative,resolve:resolve,join:join},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e);},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:readFileSync,readdirSync:readdirSync,require:PT,getCallerFile:()=>{let e=(0, Hx.default)(3);return e.match(/^file:\/\//)?fileURLToPath(e):e},stringWidth:Ht,y18n:Vx({directory:resolve(bh,"../../../locales"),updateFiles:false})};function ot(e,t,r,i){r.assert.notStrictEqual(e,t,i);}function xh(e,t){t.assert.strictEqual(typeof e,"string");}function wi(e){return Object.keys(e)}function ve(e){return !!e&&!!e.then&&typeof e.then=="function"}var Ce=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e);}};function Mn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),i=/\.*[\][<>]/g,n=r.shift();if(!n)throw new Error(`No command found in: ${e}`);let o={cmd:n.replace(i,""),demanded:[],optional:[]};return r.forEach((a,u)=>{let c=false;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&u===r.length-1&&(c=true),/^\[/.test(a)?o.optional.push({cmd:a.replace(i,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(i,"").split("|"),variadic:c});}),o}var FT=["first","second","third","fourth","fifth","sixth"];function L(e,t,r){function i(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Mn(`cmd ${e}`),t,r]}try{let n=0,[o,a,u]=i(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=u||c.length;if(l<o.demanded.length)throw new Ce(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let d=o.demanded.length+o.optional.length;if(l>d)throw new Ce(`Too many arguments provided. Expected max ${d} but received ${l}.`);o.demanded.forEach(p=>{let m=c.shift(),h=Jx(m);p.cmd.filter(D=>D===h||D==="*").length===0&&Kx(h,p.cmd,n),n+=1;}),o.optional.forEach(p=>{if(c.length===0)return;let m=c.shift(),h=Jx(m);p.cmd.filter(D=>D===h||D==="*").length===0&&Kx(h,p.cmd,n),n+=1;});}catch(n){console.warn(n.stack);}}function Jx(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function Kx(e,t,r){throw new Ce(`Invalid ${FT[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var _u=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t;}addMiddleware(t,r,i=true,n=false){if(L("<array|function> [boolean] [boolean] [boolean]",[t,r,i],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=i;}Array.prototype.push.apply(this.globalMiddleware,t);}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=i,o.mutates=n,this.globalMiddleware.push(t);}return this.yargs}addCoerceMiddleware(t,r){let i=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(n=>{let o=[...i[r]||[],r];return n.option?!o.includes(n.option):true}),t.option=r,this.addMiddleware(t,true,true,true)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware]);}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t);}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global);}};function Yx(e){return e?e.map(t=>(t.applyBeforeValidation=false,t)):[]}function vr(e,t,r,i){return r.reduce((n,o)=>{if(o.applyBeforeValidation!==i)return n;if(o.mutates){if(o.applied)return n;o.applied=true;}if(ve(n))return n.then(a=>Promise.all([a,o(a,t)])).then(([a,u])=>Object.assign(a,u));{let a=o(n,t);return ve(a)?a.then(u=>Object.assign(n,u)):Object.assign(n,a)}},e)}function br(e,t,r=i=>{throw i}){try{let i=jT(e)?e():e;return ve(i)?i.then(n=>t(n)):t(i)}catch(i){return r(i)}}function jT(e){return typeof e=="function"}var $i=/(^\*)|(^\$0)/,Dh=class{constructor(t,r,i,n){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=n,this.usage=t,this.globalMiddleware=i,this.validation=r;}addDirectory(t,r,i,n){n=n||{},this.requireCache.add(i);let o=this.shim.path.resolve(this.shim.path.dirname(i),t),a=this.shim.readdirSync(o,{recursive:!!n.recurse});Array.isArray(n.extensions)||(n.extensions=["js"]);let u=typeof n.visit=="function"?n.visit:c=>c;for(let c of a){let l=c.toString();if(n.exclude){let p=false;if(typeof n.exclude=="function"?p=n.exclude(l):p=n.exclude.test(l),p)continue}if(n.include){let p=false;if(typeof n.include=="function"?p=n.include(l):p=n.include.test(l),!p)continue}let d=false;for(let p of n.extensions)l.endsWith(p)&&(d=true);if(d){let p=this.shim.path.join(o,l),m=r(p),h=Object.create(null,Object.getOwnPropertyDescriptors({...m}));if(u(h,p,l)){if(this.requireCache.has(p))continue;this.requireCache.add(p),h.command||(h.command=this.shim.path.basename(p,this.shim.path.extname(p))),this.addHandler(h);}}}}addHandler(t,r,i,n,o,a){let u=[],c=Yx(o);if(n=n||(()=>{}),Array.isArray(t))if(zT(t))[t,...u]=t;else for(let l of t)this.addHandler(l);else if(UT(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(l===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(Xx(i)){this.addHandler([t].concat(u),r,i.builder,i.handler,i.middlewares,i.deprecated);return}if(typeof t=="string"){let l=Mn(t);u=u.map(m=>Mn(m).cmd);let d=false,p=[l.cmd].concat(u).filter(m=>$i.test(m)?(d=true,false):true);p.length===0&&d&&p.push("$0"),d&&(l.cmd=p[0],u=p.slice(1),t=t.replace($i,l.cmd)),u.forEach(m=>{this.aliasMap[m]=l.cmd;}),r!==false&&this.usage.command(t,r,d,u,a),this.handlers[l.cmd]={original:t,description:r,handler:n,builder:i||{},middlewares:c,deprecated:a,demanded:l.demanded,optional:l.optional},d&&(this.defaultCommand=this.handlers[l.cmd]);}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return !!this.defaultCommand}runCommand(t,r,i,n,o,a){let u=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),l=c.commands.slice(),d=!t;t&&(c.commands.push(t),c.fullCommands.push(u.original));let p=this.applyBuilderUpdateUsageAndParse(d,u,r,i.aliases,l,n,o,a);return ve(p)?p.then(m=>this.applyMiddlewareAndGetResult(d,u,m.innerArgv,c,o,m.aliases,r)):this.applyMiddlewareAndGetResult(d,u,p.innerArgv,c,o,p.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,i,n,o,a,u,c){let l=r.builder,d=i;if(Eu(l)){i.getInternalMethods().getUsageInstance().freeze();let p=l(i.getInternalMethods().reset(n),c);if(ve(p))return p.then(m=>(d=eD(m)?m:i,this.parseAndUpdateUsage(t,r,d,o,a,u)))}else NT(l)&&(i.getInternalMethods().getUsageInstance().freeze(),d=i.getInternalMethods().reset(n),Object.keys(r.builder).forEach(p=>{d.option(p,l[p]);}));return this.parseAndUpdateUsage(t,r,d,o,a,u)}parseAndUpdateUsage(t,r,i,n,o,a){t&&i.getInternalMethods().getUsageInstance().unfreeze(true),this.shouldUpdateUsage(i)&&i.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(n,r),r.description);let u=i.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,true,o,a);return ve(u)?u.then(c=>({aliases:i.parsed.aliases,innerArgv:c})):{aliases:i.parsed.aliases,innerArgv:u}}shouldUpdateUsage(t){return !t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let i=$i.test(r.original)?r.original.replace($i,"").trim():r.original,n=t.filter(o=>!$i.test(o));return n.push(i),`$0 ${n.join(" ")}`}handleValidationAndGetResult(t,r,i,n,o,a,u,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);i=br(i,d=>(l(d),d));}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(i,l,false,false),i=vr(i,a,u,false),i=br(i,d=>{let p=r.handler(d);return ve(p)?p.then(()=>d):d}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),ve(i)&&!a.getInternalMethods().hasParseCallback()&&i.catch(d=>{try{a.getInternalMethods().getUsageInstance().fail(null,d);}catch{}});}return t||(n.commands.pop(),n.fullCommands.pop()),i}applyMiddlewareAndGetResult(t,r,i,n,o,a,u){let c={};if(o)return i;u.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,i,n,u));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),d=vr(i,u,l,true);return ve(d)?d.then(p=>this.handleValidationAndGetResult(t,r,p,n,a,u,l,c)):this.handleValidationAndGetResult(t,r,d,n,a,u,l,c)}populatePositionals(t,r,i,n){r._=r._.slice(i.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),u={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let c=o.shift();this.populatePositional(c,r,u);}for(;a.length;){let c=a.shift();this.populatePositional(c,r,u);}return r._=i.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,u,this.cmdToParseOptions(t.original),n),u}populatePositional(t,r,i){let n=t.cmd[0];t.variadic?i[n]=r._.splice(0).map(String):r._.length&&(i[n]=[String(r._.shift())]);}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},i=Mn(t);return i.demanded.forEach(n=>{let[o,...a]=n.cmd;n.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=true;}),i.optional.forEach(n=>{let[o,...a]=n.cmd;n.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a;}),r}postProcessPositionals(t,r,i,n){let o=Object.assign({},n.getOptions());o.default=Object.assign(i.default,o.default);for(let l of Object.keys(i.alias))o.alias[l]=(o.alias[l]||[]).concat(i.alias[l]);o.array=o.array.concat(i.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(d=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=true),a.push(`--${l}`),a.push(d);});}),!a.length)return;let u=Object.assign({},o.configuration,{"populate--":false}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:u}));if(c.error)n.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else {let l=Object.keys(r);Object.keys(r).forEach(d=>{l.push(...c.aliases[d]);}),Object.keys(c.argv).forEach(d=>{l.includes(d)&&(r[d]||(r[d]=c.argv[d]),!this.isInConfigs(n,d)&&!this.isDefaulted(n,d)&&Object.prototype.hasOwnProperty.call(t,d)&&Object.prototype.hasOwnProperty.call(c.argv,d)&&(Array.isArray(t[d])||Array.isArray(c.argv[d]))?t[d]=[].concat(t[d],c.argv[d]):t[d]=c.argv[d]);});}}isDefaulted(t,r){let{default:i}=t.getOptions();return Object.prototype.hasOwnProperty.call(i,r)||Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:i}=t.getOptions();return i.some(n=>Object.prototype.hasOwnProperty.call(n,r))||i.some(n=>Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let i=$i.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(i,this.defaultCommand.description);}let r=this.defaultCommand.builder;if(Eu(r))return r(t,true);Xx(r)||Object.keys(r).forEach(i=>{t.option(i,r[i]);});}extractDesc({describe:t,description:r,desc:i}){for(let n of [t,r,i]){if(typeof n=="string"||n===false)return n;ot(n,true,this.shim);}return false}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand});}unfreeze(){let t=this.frozens.pop();ot(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t;}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function Qx(e,t,r,i){return new Dh(e,t,r,i)}function Xx(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function zT(e){return e.every(t=>typeof t=="string")}function Eu(e){return typeof e=="function"}function NT(e){return typeof e=="object"}function UT(e){return typeof e=="object"&&!Array.isArray(e)}function Bn(e={},t=()=>true){let r={};return wi(e).forEach(i=>{t(i,e[i])&&(r[i]=e[i]);}),r}function Vn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e);});}function LT(e){return typeof e=="boolean"}function nD(e,t){let r=t.y18n.__,i={},n=[];i.failFn=function(j){n.push(j);};let o=null,a=null,u=true;i.showHelpOnFail=function(j=true,T){let[V,te]=typeof j=="string"?[true,j]:[j,T];return e.getInternalMethods().isGlobalContext()&&(a=te),o=te,u=V,i};let c=false;i.fail=function(j,T){let V=e.getInternalMethods().getLoggerInstance();if(n.length)for(let te=n.length-1;te>=0;--te){let pe=n[te];if(LT(pe)){if(T)throw T;if(j)throw Error(j)}else pe(j,T,i);}else {if(e.getExitProcess()&&Vn(true),!c){c=true,u&&(e.showHelp("error"),V.error()),(j||T)&&V.error(j||T);let te=o||a;te&&((j||T)&&V.error(""),V.error(te));}if(T=T||new Ce(j),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,T);throw T}};let l=[],d=false;i.usage=(F,j)=>F===null?(d=true,l=[],i):(d=false,l.push([F,j||""]),i),i.getUsage=()=>l,i.getUsageDisabled=()=>d,i.getPositionalGroupName=()=>r("Positionals:");let p=[];i.example=(F,j)=>{p.push([F,j||""]);};let m=[];i.command=function(j,T,V,te,pe=false){V&&(m=m.map(se=>(se[2]=false,se))),m.push([j,T||"",V,te,pe]);},i.getCommands=()=>m;let h={};i.describe=function(j,T){Array.isArray(j)?j.forEach(V=>{i.describe(V,T);}):typeof j=="object"?Object.keys(j).forEach(V=>{i.describe(V,j[V]);}):h[j]=T;},i.getDescriptions=()=>h;let v=[];i.epilog=F=>{v.push(F);};let D=false,b;i.wrap=F=>{D=true,b=F;},i.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(D||(b=ce(),D=true),b);let U="__yargsString__:";i.deferY18nLookup=F=>U+F,i.help=function(){if(A)return A;B();let j=e.customScriptName?e.$0:t.path.basename(e.$0),T=e.getDemandedOptions(),V=e.getDemandedCommands(),te=e.getDeprecatedOptions(),pe=e.getGroups(),se=e.getOptions(),Ne=[];Ne=Ne.concat(Object.keys(h)),Ne=Ne.concat(Object.keys(T)),Ne=Ne.concat(Object.keys(V)),Ne=Ne.concat(Object.keys(se.default)),Ne=Ne.filter(z),Ne=Object.keys(Ne.reduce((J,Se)=>(Se!=="_"&&(J[Se]=true),J),{}));let Kn=i.getWrap(),De=t.cliui({width:Kn,wrap:!!Kn});if(!d){if(l.length)l.forEach(J=>{De.div({text:`${J[0].replace(/\$0/g,j)}`}),J[1]&&De.div({text:`${J[1]}`,padding:[1,0,0,0]});}),De.div();else if(m.length){let J=null;V._?J=`${j} <${r("command")}>
77
- `:J=`${j} [${r("command")}]
78
- `,De.div(`${J}`);}}if(m.length>1||m.length===1&&!m[0][2]){De.div(r("Commands:"));let J=e.getInternalMethods().getContext(),Se=J.commands.length?`${J.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===true&&(m=m.sort((oe,we)=>oe[0].localeCompare(we[0])));let Ee=j?`${j} `:"";m.forEach(oe=>{let we=`${Ee}${Se}${oe[0].replace(/^\$0 ?/,"")}`;De.span({text:we,padding:[0,2,0,2],width:H(m,Kn,`${j}${Se}`)+4},{text:oe[1]});let Oe=[];oe[2]&&Oe.push(`[${r("default")}]`),oe[3]&&oe[3].length&&Oe.push(`[${r("aliases:")} ${oe[3].join(", ")}]`),oe[4]&&(typeof oe[4]=="string"?Oe.push(`[${r("deprecated: %s",oe[4])}]`):Oe.push(`[${r("deprecated")}]`)),Oe.length?De.div({text:Oe.join(" "),padding:[0,0,0,2],align:"right"}):De.div();}),De.div();}let ln=(Object.keys(se.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ne=Ne.filter(J=>!e.parsed.newAliases[J]&&ln.every(Se=>(se.alias[Se]||[]).indexOf(J)===-1));let dn=r("Options:");pe[dn]||(pe[dn]=[]),O(Ne,se.alias,pe,dn);let Yn=J=>/^--/.test(wu(J)),Y=Object.keys(pe).filter(J=>pe[J].length>0).map(J=>{let Se=pe[J].filter(z).map(Ee=>{if(ln.includes(Ee))return Ee;for(let oe=0,we;(we=ln[oe])!==void 0;oe++)if((se.alias[we]||[]).includes(Ee))return we;return Ee});return {groupName:J,normalizedKeys:Se}}).filter(({normalizedKeys:J})=>J.length>0).map(({groupName:J,normalizedKeys:Se})=>{let Ee=Se.reduce((oe,we)=>(oe[we]=[we].concat(se.alias[we]||[]).map(Oe=>J===i.getPositionalGroupName()?Oe:(/^[0-9]$/.test(Oe)?se.boolean.includes(we)?"-":"--":Oe.length>1?"--":"-")+Oe).sort((Oe,jt)=>Yn(Oe)===Yn(jt)?0:Yn(Oe)?1:-1).join(", "),oe),{});return {groupName:J,normalizedKeys:Se,switches:Ee}});if(Y.filter(({groupName:J})=>J!==i.getPositionalGroupName()).some(({normalizedKeys:J,switches:Se})=>!J.every(Ee=>Yn(Se[Ee])))&&Y.filter(({groupName:J})=>J!==i.getPositionalGroupName()).forEach(({normalizedKeys:J,switches:Se})=>{J.forEach(Ee=>{Yn(Se[Ee])&&(Se[Ee]=MT(Se[Ee],4));});}),Y.forEach(({groupName:J,normalizedKeys:Se,switches:Ee})=>{De.div(J),Se.forEach(oe=>{let we=Ee[oe],Oe=h[oe]||"",jt=null;Oe.includes(U)&&(Oe=r(Oe.substring(U.length))),se.boolean.includes(oe)&&(jt=`[${r("boolean")}]`),se.count.includes(oe)&&(jt=`[${r("count")}]`),se.string.includes(oe)&&(jt=`[${r("string")}]`),se.normalize.includes(oe)&&(jt=`[${r("string")}]`),se.array.includes(oe)&&(jt=`[${r("array")}]`),se.number.includes(oe)&&(jt=`[${r("number")}]`);let zt=x=>typeof x=="string"?`[${r("deprecated: %s",x)}]`:`[${r("deprecated")}]`,qo=[oe in te?zt(te[oe]):null,jt,oe in T?`[${r("required")}]`:null,se.choices&&se.choices[oe]?`[${r("choices:")} ${i.stringifiedValues(se.choices[oe])}]`:null,ne(se.default[oe],se.defaultDescription[oe])].filter(Boolean).join(" ");De.span({text:wu(we),padding:[0,2,0,2+tD(we)],width:H(Ee,Kn)+4},Oe);let g=e.getInternalMethods().getUsageConfiguration()["hide-types"]===true;qo&&!g?De.div({text:qo,padding:[0,0,0,2],align:"right"}):De.div();}),De.div();}),p.length&&(De.div(r("Examples:")),p.forEach(J=>{J[0]=J[0].replace(/\$0/g,j);}),p.forEach(J=>{J[1]===""?De.div({text:J[0],padding:[0,2,0,2]}):De.div({text:J[0],padding:[0,2,0,2],width:H(p,Kn)+4},{text:J[1]});}),De.div()),v.length>0){let J=v.map(Se=>Se.replace(/\$0/g,j)).join(`
79
- `);De.div(`${J}
80
- `);}return De.toString().replace(/\s*$/,"")};function H(F,j,T){let V=0;return Array.isArray(F)||(F=Object.values(F).map(te=>[te])),F.forEach(te=>{V=Math.max(t.stringWidth(T?`${T} ${wu(te[0])}`:wu(te[0]))+tD(te[0]),V);}),j&&(V=Math.min(V,parseInt((j*.5).toString(),10))),V}function B(){let F=e.getDemandedOptions(),j=e.getOptions();(Object.keys(j.alias)||[]).forEach(T=>{j.alias[T].forEach(V=>{h[V]&&i.describe(T,h[V]),V in F&&e.demandOption(T,F[V]),j.boolean.includes(V)&&e.boolean(T),j.count.includes(V)&&e.count(T),j.string.includes(V)&&e.string(T),j.normalize.includes(V)&&e.normalize(T),j.array.includes(V)&&e.array(T),j.number.includes(V)&&e.number(T);});});}let A;i.cacheHelpMessage=function(){A=this.help();},i.clearCachedHelpMessage=function(){A=void 0;},i.hasCachedHelpMessage=function(){return !!A};function O(F,j,T,V){let te=[],pe=null;return Object.keys(T).forEach(se=>{te=te.concat(T[se]);}),F.forEach(se=>{pe=[se].concat(j[se]),pe.some(Ne=>te.indexOf(Ne)!==-1)||T[V].push(se);}),te}function z(F){return e.getOptions().hiddenOptions.indexOf(F)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}i.showHelp=F=>{let j=e.getInternalMethods().getLoggerInstance();F||(F="error"),(typeof F=="function"?F:j[F])(i.help());},i.functionDescription=F=>["(",F.name?t.Parser.decamelize(F.name,"-"):r("generated-value"),")"].join(""),i.stringifiedValues=function(j,T){let V="",te=T||", ",pe=[].concat(j);return !j||!pe.length||pe.forEach(se=>{V.length&&(V+=te),V+=JSON.stringify(se);}),V};function ne(F,j){let T=`[${r("default:")} `;if(F===void 0&&!j)return null;if(j)T+=j;else switch(typeof F){case "string":T+=`"${F}"`;break;case "object":T+=JSON.stringify(F);break;default:T+=F;}return `${T}]`}function ce(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let be=null;i.version=F=>{be=F;},i.showVersion=F=>{let j=e.getInternalMethods().getLoggerInstance();F||(F="error"),(typeof F=="function"?F:j[F])(be);},i.reset=function(j){return o=null,c=false,l=[],d=false,v=[],p=[],m=[],h=Bn(h,T=>!j[T]),i};let ie=[];return i.freeze=function(){ie.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:v,examples:p,commands:m,descriptions:h});},i.unfreeze=function(j=false){let T=ie.pop();T&&(j?(h={...T.descriptions,...h},m=[...T.commands,...m],l=[...T.usages,...l],p=[...T.examples,...p],v=[...T.epilogs,...v]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:v,examples:p,commands:m,descriptions:h}=T);},i}function _h(e){return typeof e=="object"}function MT(e,t){return _h(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function tD(e){return _h(e)?e.indentation:0}function wu(e){return _h(e)?e.text:e}var rD=`###-begin-{{app_name}}-completions-###
74
+ `).map(i=>iC(i,t,n)).join(`
75
+ `)}function pm(e){return Bb(e,{stringWidth:zt,stripAnsi:Vr,wrap:dm})}function d_(e,t){let n=resolve(".",e),i;for(statSync(n).isDirectory()||(n=dirname(n));;){if(i=t(n,readdirSync(n)),i)return resolve(n,i);if(n=dirname(i=n),i===n)break}}function Zr(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let n="",i=false,r=e.match(/^-+/);for(let o=r?r[0].length:0;o<e.length;o++){let a=e.charAt(o);i&&(i=false,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?i=true:a!=="-"&&a!=="_"&&(n+=a);}return n}}function As(e,t){let n=e.toLowerCase();t=t||"-";let i="";for(let r=0;r<e.length;r++){let o=n.charAt(r),a=e.charAt(r);o!==a&&r>0?i+=`${t}${n.charAt(r)}`:i+=a;}return i}function Rs(e){return e==null?false:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?true:/^0[^.]/.test(e)?false:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function p_(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,i=null,r=null,o=[];for(let a=0;a<e.length;a++){if(n=i,i=e.charAt(a),i===" "&&!r){n!==" "&&t++;continue}i===r?r=null:(i==="'"||i==='"')&&!r&&(r=i),o[t]||(o[t]=""),o[t]+=i;}return o}var xt;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array";})(xt||(xt={}));var ir,Ts=class{constructor(t){ir=t;}parse(t,n){let i=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},n),r=p_(t),o=typeof t=="string",a=sC(Object.assign(Object.create(null),i.alias)),s=Object.assign({"boolean-negation":true,"camel-case-expansion":true,"combine-arrays":false,"dot-notation":true,"duplicate-arguments-array":true,"flatten-duplicate-arrays":true,"greedy-arrays":true,"halt-at-non-option":false,"nargs-eats-options":false,"negation-prefix":"no-","parse-numbers":true,"parse-positional-numbers":true,"populate--":false,"set-placeholder-key":false,"short-option-groups":true,"strip-aliased":false,"strip-dashed":false,"unknown-options-as-args":false},i.configuration),c=Object.assign(Object.create(null),i.default),l=i.configObjects||[],d=i.envPrefix,p=s["populate--"],m=p?"--":"_",h=Object.create(null),y=Object.create(null),x=i.__||ir.format,b={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},j=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,H=new RegExp("^--"+s["negation-prefix"]+"(.+)");[].concat(i.array||[]).filter(Boolean).forEach(function(g){let D=typeof g=="object"?g.key:g,A=Object.keys(g).map(function(E){return {boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();A&&(b[A][D]=true),b.arrays[D]=true,b.keys.push(D);}),[].concat(i.boolean||[]).filter(Boolean).forEach(function(g){b.bools[g]=true,b.keys.push(g);}),[].concat(i.string||[]).filter(Boolean).forEach(function(g){b.strings[g]=true,b.keys.push(g);}),[].concat(i.number||[]).filter(Boolean).forEach(function(g){b.numbers[g]=true,b.keys.push(g);}),[].concat(i.count||[]).filter(Boolean).forEach(function(g){b.counts[g]=true,b.keys.push(g);}),[].concat(i.normalize||[]).filter(Boolean).forEach(function(g){b.normalize[g]=true,b.keys.push(g);}),typeof i.narg=="object"&&Object.entries(i.narg).forEach(([g,D])=>{typeof D=="number"&&(b.nargs[g]=D,b.keys.push(g));}),typeof i.coerce=="object"&&Object.entries(i.coerce).forEach(([g,D])=>{typeof D=="function"&&(b.coercions[g]=D,b.keys.push(g));}),typeof i.config<"u"&&(Array.isArray(i.config)||typeof i.config=="string"?[].concat(i.config).filter(Boolean).forEach(function(g){b.configs[g]=true;}):typeof i.config=="object"&&Object.entries(i.config).forEach(([g,D])=>{(typeof D=="boolean"||typeof D=="function")&&(b.configs[g]=D);})),kr(i.key,a,i.default,b.arrays),Object.keys(c).forEach(function(g){(b.aliases[g]||[]).forEach(function(D){c[D]=c[g];});});let B=null;ho();let R=[],k=Object.assign(Object.create(null),{_:[]}),z={};for(let g=0;g<r.length;g++){let D=r[g],A=D.replace(/^-{3,}/,"---"),E,_,W,U,q,Le;if(D!=="--"&&/^-/.test(D)&&De(D))re(D);else if(A.match(/^---+(=|$)/)){re(D);continue}else if(D.match(/^--.+=/)||!s["short-option-groups"]&&D.match(/^-.+=/))U=D.match(/^--?([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&(K(U[1],b.arrays)?g=ve(g,U[1],r,U[2]):K(U[1],b.nargs)!==false?g=ce(g,U[1],r,U[2]):ie(U[1],U[2],true));else if(D.match(H)&&s["boolean-negation"])U=D.match(H),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],ie(_,K(_,b.arrays)?[false]:false));else if(D.match(/^--.+/)||!s["short-option-groups"]&&D.match(/^-[^-]+/))U=D.match(/^--?(.+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],K(_,b.arrays)?g=ve(g,_,r):K(_,b.nargs)!==false?g=ce(g,_,r):(q=r[g+1],q!==void 0&&(!q.match(/^-/)||q.match(j))&&!K(_,b.bools)&&!K(_,b.counts)||/^(true|false)$/.test(q)?(ie(_,q),g++):ie(_,xe(_))));else if(D.match(/^-.\..+=/))U=D.match(/^-([^=]+)=([\s\S]*)$/),U!==null&&Array.isArray(U)&&U.length>=3&&ie(U[1],U[2]);else if(D.match(/^-.\..+/)&&!D.match(j))q=r[g+1],U=D.match(/^-(.\..+)/),U!==null&&Array.isArray(U)&&U.length>=2&&(_=U[1],q!==void 0&&!q.match(/^-/)&&!K(_,b.bools)&&!K(_,b.counts)?(ie(_,q),g++):ie(_,xe(_)));else if(D.match(/^-[^-]+/)&&!D.match(j)){W=D.slice(1,-1).split(""),E=false;for(let He=0;He<W.length;He++){if(q=D.slice(He+2),W[He+1]&&W[He+1]==="="){Le=D.slice(He+3),_=W[He],K(_,b.arrays)?g=ve(g,_,r,Le):K(_,b.nargs)!==false?g=ce(g,_,r,Le):ie(_,Le),E=true;break}if(q==="-"){ie(W[He],q);continue}if(/[A-Za-z]/.test(W[He])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(q)&&K(q,b.bools)===false){ie(W[He],q),E=true;break}if(W[He+1]&&W[He+1].match(/\W/)){ie(W[He],q),E=true;break}else ie(W[He],xe(W[He]));}_=D.slice(-1)[0],!E&&_!=="-"&&(K(_,b.arrays)?g=ve(g,_,r):K(_,b.nargs)!==false?g=ce(g,_,r):(q=r[g+1],q!==void 0&&(!/^(-|--)[^-]/.test(q)||q.match(j))&&!K(_,b.bools)&&!K(_,b.counts)||/^(true|false)$/.test(q)?(ie(_,q),g++):ie(_,xe(_))));}else if(D.match(/^-[0-9]$/)&&D.match(j)&&K(D.slice(1),b.bools))_=D.slice(1),ie(_,xe(_));else if(D==="--"){R=r.slice(g+1);break}else if(s["halt-at-non-option"]){R=r.slice(g);break}else re(D);}se(k,true),se(k,false),V(k),de(),_e(k,b.aliases,c,true),Pe(k),s["set-placeholder-key"]&&Or(k),Object.keys(b.counts).forEach(function(g){Xt(k,g.split("."))||ie(g,0);}),p&&R.length&&(k[m]=[]),R.forEach(function(g){k[m].push(g);}),s["camel-case-expansion"]&&s["strip-dashed"]&&Object.keys(k).filter(g=>g!=="--"&&g.includes("-")).forEach(g=>{delete k[g];}),s["strip-aliased"]&&[].concat(...Object.keys(a).map(g=>a[g])).forEach(g=>{s["camel-case-expansion"]&&g.includes("-")&&delete k[g.split(".").map(D=>Zr(D)).join(".")],delete k[g];});function re(g){let D=T("_",g);(typeof D=="string"||typeof D=="number")&&k._.push(D);}function ce(g,D,A,E){let _,W=K(D,b.nargs);if(W=typeof W!="number"||isNaN(W)?1:W,W===0)return At(E)||(B=Error(x("Argument unexpected for: %s",D))),ie(D,xe(D)),g;let U=At(E)?0:1;if(s["nargs-eats-options"])A.length-(g+1)+U<W&&(B=Error(x("Not enough arguments following: %s",D))),U=W;else {for(_=g+1;_<A.length&&(!A[_].match(/^-[^0-9]/)||A[_].match(j)||De(A[_]));_++)U++;U<W&&(B=Error(x("Not enough arguments following: %s",D)));}let q=Math.min(U,W);for(!At(E)&&q>0&&(ie(D,E),q--),_=g+1;_<q+g+1;_++)ie(D,A[_]);return g+q}function ve(g,D,A,E){let _=[],W=E||A[g+1],U=K(D,b.nargs);if(K(D,b.bools)&&!/^(true|false)$/.test(W))_.push(true);else if(At(W)||At(E)&&/^-/.test(W)&&!j.test(W)&&!De(W)){if(c[D]!==void 0){let q=c[D];_=Array.isArray(q)?q:[q];}}else {At(E)||_.push(N(D,E,true));for(let q=g+1;q<A.length&&!(!s["greedy-arrays"]&&_.length>0||U&&typeof U=="number"&&_.length>=U||(W=A[q],/^-/.test(W)&&!j.test(W)&&!De(W)));q++)g=q,_.push(N(D,W,o));}return typeof U=="number"&&(U&&_.length<U||isNaN(U)&&_.length===0)&&(B=Error(x("Not enough arguments following: %s",D))),ie(D,_),g}function ie(g,D,A=o){if(/-/.test(g)&&s["camel-case-expansion"]){let W=g.split(".").map(function(U){return Zr(U)}).join(".");P(g,W);}let E=N(g,D,A),_=g.split(".");Qt(k,_,E),b.aliases[g]&&b.aliases[g].forEach(function(W){let U=W.split(".");Qt(k,U,E);}),_.length>1&&s["dot-notation"]&&(b.aliases[_[0]]||[]).forEach(function(W){let U=W.split("."),q=[].concat(_);q.shift(),U=U.concat(q),(b.aliases[g]||[]).includes(U.join("."))||Qt(k,U,E);}),K(g,b.normalize)&&!K(g,b.arrays)&&[g].concat(b.aliases[g]||[]).forEach(function(U){Object.defineProperty(z,U,{enumerable:true,get(){return D},set(q){D=typeof q=="string"?ir.normalize(q):q;}});});}function P(g,D){b.aliases[g]&&b.aliases[g].length||(b.aliases[g]=[D],h[D]=true),b.aliases[D]&&b.aliases[D].length||P(D,g);}function N(g,D,A){A&&(D=uC(D)),(K(g,b.bools)||K(g,b.counts))&&typeof D=="string"&&(D=D==="true");let E=Array.isArray(D)?D.map(function(_){return T(g,_)}):T(g,D);return K(g,b.counts)&&(At(E)||typeof E=="boolean")&&(E=fm()),K(g,b.normalize)&&K(g,b.arrays)&&(Array.isArray(D)?E=D.map(_=>ir.normalize(_)):E=ir.normalize(D)),E}function T(g,D){return !s["parse-positional-numbers"]&&g==="_"||!K(g,b.strings)&&!K(g,b.bools)&&!Array.isArray(D)&&(Rs(D)&&s["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${D}`)))||!At(D)&&K(g,b.numbers))&&(D=Number(D)),D}function V(g){let D=Object.create(null);_e(D,b.aliases,c),Object.keys(b.configs).forEach(function(A){let E=g[A]||D[A];if(E)try{let _=null,W=ir.resolve(ir.cwd(),E),U=b.configs[A];if(typeof U=="function"){try{_=U(W);}catch(q){_=q;}if(_ instanceof Error){B=_;return}}else _=ir.require(W);te(_);}catch(_){_.name==="PermissionDenied"?B=_:g[A]&&(B=Error(x("Invalid JSON config file: %s",E)));}});}function te(g,D){Object.keys(g).forEach(function(A){let E=g[A],_=D?D+"."+A:A;typeof E=="object"&&E!==null&&!Array.isArray(E)&&s["dot-notation"]?te(E,_):(!Xt(k,_.split("."))||K(_,b.arrays)&&s["combine-arrays"])&&ie(_,E);});}function de(){typeof l<"u"&&l.forEach(function(g){te(g);});}function se(g,D){if(typeof d>"u")return;let A=typeof d=="string"?d:"",E=ir.env();Object.keys(E).forEach(function(_){if(A===""||_.lastIndexOf(A,0)===0){let W=_.split("__").map(function(U,q){return q===0&&(U=U.substring(A.length)),Zr(U)});(D&&b.configs[W.join(".")]||!D)&&!Xt(g,W)&&ie(W.join("."),E[_]);}});}function Pe(g){let D,A=new Set;Object.keys(g).forEach(function(E){if(!A.has(E)&&(D=K(E,b.coercions),typeof D=="function"))try{let _=T(E,D(g[E]));[].concat(b.aliases[E]||[],E).forEach(W=>{A.add(W),g[W]=_;});}catch(_){B=_;}});}function Or(g){return b.keys.forEach(D=>{~D.indexOf(".")||typeof g[D]>"u"&&(g[D]=void 0);}),g}function _e(g,D,A,E=false){Object.keys(A).forEach(function(_){Xt(g,_.split("."))||(Qt(g,_.split("."),A[_]),E&&(y[_]=true),(D[_]||[]).forEach(function(W){Xt(g,W.split("."))||Qt(g,W.split("."),A[_]);}));});}function Xt(g,D){let A=g;s["dot-notation"]||(D=[D.join(".")]),D.slice(0,-1).forEach(function(_){A=A[_]||{};});let E=D[D.length-1];return typeof A!="object"?false:E in A}function Qt(g,D,A){let E=g;s["dot-notation"]||(D=[D.join(".")]),D.slice(0,-1).forEach(function(Le){Le=f_(Le),typeof E=="object"&&E[Le]===void 0&&(E[Le]={}),typeof E[Le]!="object"||Array.isArray(E[Le])?(Array.isArray(E[Le])?E[Le].push({}):E[Le]=[E[Le],{}],E=E[Le][E[Le].length-1]):E=E[Le];});let _=f_(D[D.length-1]),W=K(D.join("."),b.arrays),U=Array.isArray(A),q=s["duplicate-arguments-array"];!q&&K(_,b.nargs)&&(q=true,(!At(E[_])&&b.nargs[_]===1||Array.isArray(E[_])&&E[_].length===b.nargs[_])&&(E[_]=void 0)),A===fm()?E[_]=fm(E[_]):Array.isArray(E[_])?q&&W&&U?E[_]=s["flatten-duplicate-arrays"]?E[_].concat(A):(Array.isArray(E[_][0])?E[_]:[E[_]]).concat([A]):!q&&!!W==!!U?E[_]=A:E[_]=E[_].concat([A]):E[_]===void 0&&W?E[_]=U?A:[A]:q&&!(E[_]===void 0||K(_,b.counts)||K(_,b.bools))?E[_]=[E[_],A]:E[_]=A;}function kr(...g){g.forEach(function(D){Object.keys(D||{}).forEach(function(A){b.aliases[A]||(b.aliases[A]=[].concat(a[A]||[]),b.aliases[A].concat(A).forEach(function(E){if(/-/.test(E)&&s["camel-case-expansion"]){let _=Zr(E);_!==A&&b.aliases[A].indexOf(_)===-1&&(b.aliases[A].push(_),h[_]=true);}}),b.aliases[A].concat(A).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&s["camel-case-expansion"]){let _=As(E,"-");_!==A&&b.aliases[A].indexOf(_)===-1&&(b.aliases[A].push(_),h[_]=true);}}),b.aliases[A].forEach(function(E){b.aliases[E]=[A].concat(b.aliases[A].filter(function(_){return E!==_}));}));});});}function K(g,D){let A=[].concat(b.aliases[g]||[],g),E=Object.keys(D),_=A.find(W=>E.includes(W));return _?D[_]:false}function _u(g){let D=Object.keys(b);return [].concat(D.map(E=>b[E])).some(function(E){return Array.isArray(E)?E.includes(g):E[g]})}function Y(g,...D){return [].concat(...D).some(function(E){let _=g.match(E);return _&&_u(_[1])})}function ye(g){if(g.match(j)||!g.match(/^-[^-]+/))return false;let D=true,A,E=g.slice(1).split("");for(let _=0;_<E.length;_++){if(A=g.slice(_+2),!_u(E[_])){D=false;break}if(E[_+1]&&E[_+1]==="="||A==="-"||/[A-Za-z]/.test(E[_])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(A)||E[_+1]&&E[_+1].match(/\W/))break}return D}function De(g){return s["unknown-options-as-args"]&&oe(g)}function oe(g){return g=g.replace(/^-{3,}/,"--"),g.match(j)||ye(g)?false:!Y(g,/^-+([^=]+?)=[\s\S]*$/,H,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function xe(g){return !K(g,b.bools)&&!K(g,b.counts)&&`${g}`in c?c[g]:we(Ct(g))}function we(g){return {[xt.BOOLEAN]:true,[xt.STRING]:"",[xt.NUMBER]:void 0,[xt.ARRAY]:[]}[g]}function Ct(g){let D=xt.BOOLEAN;return K(g,b.strings)?D=xt.STRING:K(g,b.numbers)?D=xt.NUMBER:K(g,b.bools)?D=xt.BOOLEAN:K(g,b.arrays)&&(D=xt.ARRAY),D}function At(g){return g===void 0}function ho(){Object.keys(b.counts).find(g=>K(g,b.arrays)?(B=Error(x("Invalid configuration: %s, opts.count excludes opts.array.",g)),true):K(g,b.nargs)?(B=Error(x("Invalid configuration: %s, opts.count excludes opts.narg.",g)),true):false);}return {aliases:Object.assign({},b.aliases),argv:Object.assign(z,k),configuration:s,defaulted:Object.assign({},y),error:B,newAliases:Object.assign({},h)}}};function sC(e){let t=[],n=Object.create(null),i=true;for(Object.keys(e).forEach(function(r){t.push([].concat(e[r],r));});i;){i=false;for(let r=0;r<t.length;r++)for(let o=r+1;o<t.length;o++)if(t[r].filter(function(s){return t[o].indexOf(s)!==-1}).length){t[r]=t[r].concat(t[o]),t.splice(o,1),i=true;break}}return t.forEach(function(r){r=r.filter(function(a,s,c){return c.indexOf(a)===s});let o=r.pop();o!==void 0&&typeof o=="string"&&(n[o]=r);}),n}function fm(e){return e!==void 0?e+1:1}function f_(e){return e==="__proto__"?"___proto___":e}function uC(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}var mm,hm,gm,h_=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,g_=(hm=(mm=process==null?void 0:process.versions)===null||mm===void 0?void 0:mm.node)!==null&&hm!==void 0?hm:(gm=process==null?void 0:process.version)===null||gm===void 0?void 0:gm.slice(1);if(g_&&Number(g_.match(/^([^.]+)/)[1])<h_)throw Error(`yargs parser supports a minimum Node.js version of ${h_}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var fC=process?process.env:{},v_=createRequire$1?createRequire$1(import.meta.url):void 0,y_=new Ts({cwd:process.cwd,env:()=>fC,format:format,normalize:normalize,resolve:resolve,require:e=>{if(typeof v_<"u")return v_(e);if(e.match(/\.json$/))return JSON.parse(readFileSync(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),no=function(t,n){return y_.parse(t.slice(),n).argv};no.detailed=function(e,t){return y_.parse(e.slice(),t)};no.camelCase=Zr;no.decamelize=As;no.looksLikeNumber=Rs;var vm=no;function b_(){return mC()?0:1}function mC(){return hC()&&!process.defaultApp}function hC(){return !!process.versions.electron}function ym(e){return e.slice(b_()+1)}function __(){return process.argv[b_()]}var D_={fs:{readFileSync:readFileSync,writeFile:writeFile$1},format:format,resolve:resolve,exists:e=>{try{return statSync(e).isFile()}catch{return false}}};var Ut,bm=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:true,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:true,this.cache=Object.create(null),this.writeQueue=[];}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let n=t.shift(),i=function(){};return typeof t[t.length-1]=="function"&&(i=t.pop()),i=i||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]=n,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i(),Ut.format.apply(Ut.format,[this.cache[this.locale][n]||n].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),n=t.shift(),i=t.shift(),r=t.shift(),o=function(){};typeof t[t.length-1]=="function"&&(o=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=r===1?n:i;this.cache[this.locale][n]&&(a=this.cache[this.locale][n][r===1?"one":"other"]),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]={one:n,other:i},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:o})):o();let s=[a];return ~a.indexOf("%d")&&s.push(r),Ut.format.apply(Ut.format,s.concat(t))}setLocale(t){this.locale=t;}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.cache[this.locale][n]=t[n]);}_taggedLiteral(t,...n){let i="";return t.forEach(function(r,o){let a=n[o+1];i+=r,typeof a<"u"&&(i+="%s");}),this.__.apply(this,[i].concat([].slice.call(n,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue();}_processWriteQueue(){let t=this,n=this.writeQueue[0],i=n.directory,r=n.locale,o=n.cb,a=this._resolveLocaleFile(i,r),s=JSON.stringify(this.cache[r],null,2);Ut.fs.writeFile(a,s,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c);});}_readLocaleFile(){let t={},n=this._resolveLocaleFile(this.directory,this.locale);try{Ut.fs.readFileSync&&(t=JSON.parse(Ut.fs.readFileSync(n,"utf-8")));}catch(i){if(i instanceof SyntaxError&&(i.message="syntax error in "+n),i.code==="ENOENT")t={};else throw i}this.cache[this.locale]=t;}_resolveLocaleFile(t,n){let i=Ut.resolve(t,"./",n+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(i)&&~n.lastIndexOf("_")){let r=Ut.resolve(t,"./",n.split("_")[0]+".json");this._fileExistsSync(r)&&(i=r);}return i}_fileExistsSync(t){return Ut.exists(t)}};function x_(e,t){Ut=t;let n=new bm(e);return {__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}var DC=e=>x_(e,D_),S_=DC;var O_=c(w_(),1);var _m=fileURLToPath(import.meta.url),TC=_m.substring(0,_m.lastIndexOf("node_modules")),FC=createRequire$1(import.meta.url),Dm={assert:{notStrictEqual:notStrictEqual,strictEqual:strictEqual},cliui:pm,findUp:d_,getEnv:e=>process.env[e],inspect:inspect,getProcessArgvBin:__,mainFilename:TC||process.cwd(),Parser:vm,path:{basename:basename,dirname:dirname,extname:extname,relative:relative,resolve:resolve,join:join},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e);},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:readFileSync,readdirSync:readdirSync,require:FC,getCallerFile:()=>{let e=(0, O_.default)(3);return e.match(/^file:\/\//)?fileURLToPath(e):e},stringWidth:zt,y18n:S_({directory:resolve(_m,"../../../locales"),updateFiles:false})};function et(e,t,n,i){n.assert.notStrictEqual(e,t,i);}function xm(e,t){t.assert.strictEqual(typeof e,"string");}function Xn(e){return Object.keys(e)}function ge(e){return !!e&&!!e.then&&typeof e.then=="function"}var Ce=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e);}};function br(e){let n=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),i=/\.*[\][<>]/g,r=n.shift();if(!r)throw new Error(`No command found in: ${e}`);let o={cmd:r.replace(i,""),demanded:[],optional:[]};return n.forEach((a,s)=>{let c=false;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&s===n.length-1&&(c=true),/^\[/.test(a)?o.optional.push({cmd:a.replace(i,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(i,"").split("|"),variadic:c});}),o}var PC=["first","second","third","fourth","fifth","sixth"];function L(e,t,n){function i(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[br(`cmd ${e}`),t,n]}try{let r=0,[o,a,s]=i(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=s||c.length;if(l<o.demanded.length)throw new Ce(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let d=o.demanded.length+o.optional.length;if(l>d)throw new Ce(`Too many arguments provided. Expected max ${d} but received ${l}.`);o.demanded.forEach(p=>{let m=c.shift(),h=k_(m);p.cmd.filter(x=>x===h||x==="*").length===0&&C_(h,p.cmd,r),r+=1;}),o.optional.forEach(p=>{if(c.length===0)return;let m=c.shift(),h=k_(m);p.cmd.filter(x=>x===h||x==="*").length===0&&C_(h,p.cmd,r),r+=1;});}catch(r){console.warn(r.stack);}}function k_(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function C_(e,t,n){throw new Ce(`Invalid ${PC[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var Fs=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t;}addMiddleware(t,n,i=true,r=false){if(L("<array|function> [boolean] [boolean] [boolean]",[t,n,i],arguments.length),Array.isArray(t)){for(let o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=n,a.global=i;}Array.prototype.push.apply(this.globalMiddleware,t);}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=n,o.global=i,o.mutates=r,this.globalMiddleware.push(t);}return this.yargs}addCoerceMiddleware(t,n){let i=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(r=>{let o=[...i[n]||[],n];return r.option?!o.includes(r.option):true}),t.option=n,this.addMiddleware(t,true,true,true)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware]);}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t);}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global);}};function A_(e){return e?e.map(t=>(t.applyBeforeValidation=false,t)):[]}function Wr(e,t,n,i){return n.reduce((r,o)=>{if(o.applyBeforeValidation!==i)return r;if(o.mutates){if(o.applied)return r;o.applied=true;}if(ge(r))return r.then(a=>Promise.all([a,o(a,t)])).then(([a,s])=>Object.assign(a,s));{let a=o(r,t);return ge(a)?a.then(s=>Object.assign(r,s)):Object.assign(r,a)}},e)}function Gr(e,t,n=i=>{throw i}){try{let i=NC(e)?e():e;return ge(i)?i.then(r=>t(r)):t(i)}catch(i){return n(i)}}function NC(e){return typeof e=="function"}var Qn=/(^\*)|(^\$0)/,Sm=class{constructor(t,n,i,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=t,this.globalMiddleware=i,this.validation=n;}addDirectory(t,n,i,r){r=r||{},this.requireCache.add(i);let o=this.shim.path.resolve(this.shim.path.dirname(i),t),a=this.shim.readdirSync(o,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=["js"]);let s=typeof r.visit=="function"?r.visit:c=>c;for(let c of a){let l=c.toString();if(r.exclude){let p=false;if(typeof r.exclude=="function"?p=r.exclude(l):p=r.exclude.test(l),p)continue}if(r.include){let p=false;if(typeof r.include=="function"?p=r.include(l):p=r.include.test(l),!p)continue}let d=false;for(let p of r.extensions)l.endsWith(p)&&(d=true);if(d){let p=this.shim.path.join(o,l),m=n(p),h=Object.create(null,Object.getOwnPropertyDescriptors({...m}));if(s(h,p,l)){if(this.requireCache.has(p))continue;this.requireCache.add(p),h.command||(h.command=this.shim.path.basename(p,this.shim.path.extname(p))),this.addHandler(h);}}}}addHandler(t,n,i,r,o,a){let s=[],c=A_(o);if(r=r||(()=>{}),Array.isArray(t))if(zC(t))[t,...s]=t;else for(let l of t)this.addHandler(l);else if(jC(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(l===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(R_(i)){this.addHandler([t].concat(s),n,i.builder,i.handler,i.middlewares,i.deprecated);return}if(typeof t=="string"){let l=br(t);s=s.map(m=>br(m).cmd);let d=false,p=[l.cmd].concat(s).filter(m=>Qn.test(m)?(d=true,false):true);p.length===0&&d&&p.push("$0"),d&&(l.cmd=p[0],s=p.slice(1),t=t.replace(Qn,l.cmd)),s.forEach(m=>{this.aliasMap[m]=l.cmd;}),n!==false&&this.usage.command(t,n,d,s,a),this.handlers[l.cmd]={original:t,description:n,handler:r,builder:i||{},middlewares:c,deprecated:a,demanded:l.demanded,optional:l.optional},d&&(this.defaultCommand=this.handlers[l.cmd]);}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return !!this.defaultCommand}runCommand(t,n,i,r,o,a){let s=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=n.getInternalMethods().getContext(),l=c.commands.slice(),d=!t;t&&(c.commands.push(t),c.fullCommands.push(s.original));let p=this.applyBuilderUpdateUsageAndParse(d,s,n,i.aliases,l,r,o,a);return ge(p)?p.then(m=>this.applyMiddlewareAndGetResult(d,s,m.innerArgv,c,o,m.aliases,n)):this.applyMiddlewareAndGetResult(d,s,p.innerArgv,c,o,p.aliases,n)}applyBuilderUpdateUsageAndParse(t,n,i,r,o,a,s,c){let l=n.builder,d=i;if(Ps(l)){i.getInternalMethods().getUsageInstance().freeze();let p=l(i.getInternalMethods().reset(r),c);if(ge(p))return p.then(m=>(d=F_(m)?m:i,this.parseAndUpdateUsage(t,n,d,o,a,s)))}else UC(l)&&(i.getInternalMethods().getUsageInstance().freeze(),d=i.getInternalMethods().reset(r),Object.keys(n.builder).forEach(p=>{d.option(p,l[p]);}));return this.parseAndUpdateUsage(t,n,d,o,a,s)}parseAndUpdateUsage(t,n,i,r,o,a){t&&i.getInternalMethods().getUsageInstance().unfreeze(true),this.shouldUpdateUsage(i)&&i.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,n),n.description);let s=i.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,true,o,a);return ge(s)?s.then(c=>({aliases:i.parsed.aliases,innerArgv:c})):{aliases:i.parsed.aliases,innerArgv:s}}shouldUpdateUsage(t){return !t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,n){let i=Qn.test(n.original)?n.original.replace(Qn,"").trim():n.original,r=t.filter(o=>!Qn.test(o));return r.push(i),`$0 ${r.join(" ")}`}handleValidationAndGetResult(t,n,i,r,o,a,s,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);i=Gr(i,d=>(l(d),d));}if(n.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(i,l,false,false),i=Wr(i,a,s,false),i=Gr(i,d=>{let p=n.handler(d);return ge(p)?p.then(()=>d):d}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),ge(i)&&!a.getInternalMethods().hasParseCallback()&&i.catch(d=>{try{a.getInternalMethods().getUsageInstance().fail(null,d);}catch{}});}return t||(r.commands.pop(),r.fullCommands.pop()),i}applyMiddlewareAndGetResult(t,n,i,r,o,a,s){let c={};if(o)return i;s.getInternalMethods().getHasOutput()||(c=this.populatePositionals(n,i,r,s));let l=this.globalMiddleware.getMiddleware().slice(0).concat(n.middlewares),d=Wr(i,s,l,true);return ge(d)?d.then(p=>this.handleValidationAndGetResult(t,n,p,r,a,s,l,c)):this.handleValidationAndGetResult(t,n,d,r,a,s,l,c)}populatePositionals(t,n,i,r){n._=n._.slice(i.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),s={};for(this.validation.positionalCount(o.length,n._.length);o.length;){let c=o.shift();this.populatePositional(c,n,s);}for(;a.length;){let c=a.shift();this.populatePositional(c,n,s);}return n._=i.commands.concat(n._.map(c=>""+c)),this.postProcessPositionals(n,s,this.cmdToParseOptions(t.original),r),s}populatePositional(t,n,i){let r=t.cmd[0];t.variadic?i[r]=n._.splice(0).map(String):n._.length&&(i[r]=[String(n._.shift())]);}cmdToParseOptions(t){let n={array:[],default:{},alias:{},demand:{}},i=br(t);return i.demanded.forEach(r=>{let[o,...a]=r.cmd;r.variadic&&(n.array.push(o),n.default[o]=[]),n.alias[o]=a,n.demand[o]=true;}),i.optional.forEach(r=>{let[o,...a]=r.cmd;r.variadic&&(n.array.push(o),n.default[o]=[]),n.alias[o]=a;}),n}postProcessPositionals(t,n,i,r){let o=Object.assign({},r.getOptions());o.default=Object.assign(i.default,o.default);for(let l of Object.keys(i.alias))o.alias[l]=(o.alias[l]||[]).concat(i.alias[l]);o.array=o.array.concat(i.array),o.config={};let a=[];if(Object.keys(n).forEach(l=>{n[l].map(d=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=true),a.push(`--${l}`),a.push(d);});}),!a.length)return;let s=Object.assign({},o.configuration,{"populate--":false}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:s}));if(c.error)r.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else {let l=Object.keys(n);Object.keys(n).forEach(d=>{l.push(...c.aliases[d]);}),Object.keys(c.argv).forEach(d=>{l.includes(d)&&(n[d]||(n[d]=c.argv[d]),!this.isInConfigs(r,d)&&!this.isDefaulted(r,d)&&Object.prototype.hasOwnProperty.call(t,d)&&Object.prototype.hasOwnProperty.call(c.argv,d)&&(Array.isArray(t[d])||Array.isArray(c.argv[d]))?t[d]=[].concat(t[d],c.argv[d]):t[d]=c.argv[d]);});}}isDefaulted(t,n){let{default:i}=t.getOptions();return Object.prototype.hasOwnProperty.call(i,n)||Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(n))}isInConfigs(t,n){let{configObjects:i}=t.getOptions();return i.some(r=>Object.prototype.hasOwnProperty.call(r,n))||i.some(r=>Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(n)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let i=Qn.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(i,this.defaultCommand.description);}let n=this.defaultCommand.builder;if(Ps(n))return n(t,true);R_(n)||Object.keys(n).forEach(i=>{t.option(i,n[i]);});}extractDesc({describe:t,description:n,desc:i}){for(let r of [t,n,i]){if(typeof r=="string"||r===false)return r;et(r,true,this.shim);}return false}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand});}unfreeze(){let t=this.frozens.pop();et(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t;}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function T_(e,t,n,i){return new Sm(e,t,n,i)}function R_(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function zC(e){return e.every(t=>typeof t=="string")}function Ps(e){return typeof e=="function"}function UC(e){return typeof e=="object"}function jC(e){return typeof e=="object"&&!Array.isArray(e)}function _r(e={},t=()=>true){let n={};return Xn(e).forEach(i=>{t(i,e[i])&&(n[i]=e[i]);}),n}function Dr(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let n=t;n._handle&&n.isTTY&&typeof n._handle.setBlocking=="function"&&n._handle.setBlocking(e);});}function LC(e){return typeof e=="boolean"}function N_(e,t){let n=t.y18n.__,i={},r=[];i.failFn=function(N){r.push(N);};let o=null,a=null,s=true;i.showHelpOnFail=function(N=true,T){let[V,te]=typeof N=="string"?[true,N]:[N,T];return e.getInternalMethods().isGlobalContext()&&(a=te),o=te,s=V,i};let c=false;i.fail=function(N,T){let V=e.getInternalMethods().getLoggerInstance();if(r.length)for(let te=r.length-1;te>=0;--te){let de=r[te];if(LC(de)){if(T)throw T;if(N)throw Error(N)}else de(N,T,i);}else {if(e.getExitProcess()&&Dr(true),!c){c=true,s&&(e.showHelp("error"),V.error()),(N||T)&&V.error(N||T);let te=o||a;te&&((N||T)&&V.error(""),V.error(te));}if(T=T||new Ce(N),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,T);throw T}};let l=[],d=false;i.usage=(P,N)=>P===null?(d=true,l=[],i):(d=false,l.push([P,N||""]),i),i.getUsage=()=>l,i.getUsageDisabled=()=>d,i.getPositionalGroupName=()=>n("Positionals:");let p=[];i.example=(P,N)=>{p.push([P,N||""]);};let m=[];i.command=function(N,T,V,te,de=false){V&&(m=m.map(se=>(se[2]=false,se))),m.push([N,T||"",V,te,de]);},i.getCommands=()=>m;let h={};i.describe=function(N,T){Array.isArray(N)?N.forEach(V=>{i.describe(V,T);}):typeof N=="object"?Object.keys(N).forEach(V=>{i.describe(V,N[V]);}):h[N]=T;},i.getDescriptions=()=>h;let y=[];i.epilog=P=>{y.push(P);};let x=false,b;i.wrap=P=>{x=true,b=P;},i.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(x||(b=ce(),x=true),b);let j="__yargsString__:";i.deferY18nLookup=P=>j+P,i.help=function(){if(R)return R;B();let N=e.customScriptName?e.$0:t.path.basename(e.$0),T=e.getDemandedOptions(),V=e.getDemandedCommands(),te=e.getDeprecatedOptions(),de=e.getGroups(),se=e.getOptions(),Pe=[];Pe=Pe.concat(Object.keys(h)),Pe=Pe.concat(Object.keys(T)),Pe=Pe.concat(Object.keys(V)),Pe=Pe.concat(Object.keys(se.default)),Pe=Pe.filter(z),Pe=Object.keys(Pe.reduce((Y,ye)=>(ye!=="_"&&(Y[ye]=true),Y),{}));let Or=i.getWrap(),_e=t.cliui({width:Or,wrap:!!Or});if(!d){if(l.length)l.forEach(Y=>{_e.div({text:`${Y[0].replace(/\$0/g,N)}`}),Y[1]&&_e.div({text:`${Y[1]}`,padding:[1,0,0,0]});}),_e.div();else if(m.length){let Y=null;V._?Y=`${N} <${n("command")}>
76
+ `:Y=`${N} [${n("command")}]
77
+ `,_e.div(`${Y}`);}}if(m.length>1||m.length===1&&!m[0][2]){_e.div(n("Commands:"));let Y=e.getInternalMethods().getContext(),ye=Y.commands.length?`${Y.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===true&&(m=m.sort((oe,xe)=>oe[0].localeCompare(xe[0])));let De=N?`${N} `:"";m.forEach(oe=>{let xe=`${De}${ye}${oe[0].replace(/^\$0 ?/,"")}`;_e.span({text:xe,padding:[0,2,0,2],width:H(m,Or,`${N}${ye}`)+4},{text:oe[1]});let we=[];oe[2]&&we.push(`[${n("default")}]`),oe[3]&&oe[3].length&&we.push(`[${n("aliases:")} ${oe[3].join(", ")}]`),oe[4]&&(typeof oe[4]=="string"?we.push(`[${n("deprecated: %s",oe[4])}]`):we.push(`[${n("deprecated")}]`)),we.length?_e.div({text:we.join(" "),padding:[0,0,0,2],align:"right"}):_e.div();}),_e.div();}let Xt=(Object.keys(se.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Pe=Pe.filter(Y=>!e.parsed.newAliases[Y]&&Xt.every(ye=>(se.alias[ye]||[]).indexOf(Y)===-1));let Qt=n("Options:");de[Qt]||(de[Qt]=[]),k(Pe,se.alias,de,Qt);let kr=Y=>/^--/.test(Ns(Y)),K=Object.keys(de).filter(Y=>de[Y].length>0).map(Y=>{let ye=de[Y].filter(z).map(De=>{if(Xt.includes(De))return De;for(let oe=0,xe;(xe=Xt[oe])!==void 0;oe++)if((se.alias[xe]||[]).includes(De))return xe;return De});return {groupName:Y,normalizedKeys:ye}}).filter(({normalizedKeys:Y})=>Y.length>0).map(({groupName:Y,normalizedKeys:ye})=>{let De=ye.reduce((oe,xe)=>(oe[xe]=[xe].concat(se.alias[xe]||[]).map(we=>Y===i.getPositionalGroupName()?we:(/^[0-9]$/.test(we)?se.boolean.includes(xe)?"-":"--":we.length>1?"--":"-")+we).sort((we,Ct)=>kr(we)===kr(Ct)?0:kr(we)?1:-1).join(", "),oe),{});return {groupName:Y,normalizedKeys:ye,switches:De}});if(K.filter(({groupName:Y})=>Y!==i.getPositionalGroupName()).some(({normalizedKeys:Y,switches:ye})=>!Y.every(De=>kr(ye[De])))&&K.filter(({groupName:Y})=>Y!==i.getPositionalGroupName()).forEach(({normalizedKeys:Y,switches:ye})=>{Y.forEach(De=>{kr(ye[De])&&(ye[De]=MC(ye[De],4));});}),K.forEach(({groupName:Y,normalizedKeys:ye,switches:De})=>{_e.div(Y),ye.forEach(oe=>{let xe=De[oe],we=h[oe]||"",Ct=null;we.includes(j)&&(we=n(we.substring(j.length))),se.boolean.includes(oe)&&(Ct=`[${n("boolean")}]`),se.count.includes(oe)&&(Ct=`[${n("count")}]`),se.string.includes(oe)&&(Ct=`[${n("string")}]`),se.normalize.includes(oe)&&(Ct=`[${n("string")}]`),se.array.includes(oe)&&(Ct=`[${n("array")}]`),se.number.includes(oe)&&(Ct=`[${n("number")}]`);let At=D=>typeof D=="string"?`[${n("deprecated: %s",D)}]`:`[${n("deprecated")}]`,ho=[oe in te?At(te[oe]):null,Ct,oe in T?`[${n("required")}]`:null,se.choices&&se.choices[oe]?`[${n("choices:")} ${i.stringifiedValues(se.choices[oe])}]`:null,re(se.default[oe],se.defaultDescription[oe])].filter(Boolean).join(" ");_e.span({text:Ns(xe),padding:[0,2,0,2+P_(xe)],width:H(De,Or)+4},we);let g=e.getInternalMethods().getUsageConfiguration()["hide-types"]===true;ho&&!g?_e.div({text:ho,padding:[0,0,0,2],align:"right"}):_e.div();}),_e.div();}),p.length&&(_e.div(n("Examples:")),p.forEach(Y=>{Y[0]=Y[0].replace(/\$0/g,N);}),p.forEach(Y=>{Y[1]===""?_e.div({text:Y[0],padding:[0,2,0,2]}):_e.div({text:Y[0],padding:[0,2,0,2],width:H(p,Or)+4},{text:Y[1]});}),_e.div()),y.length>0){let Y=y.map(ye=>ye.replace(/\$0/g,N)).join(`
78
+ `);_e.div(`${Y}
79
+ `);}return _e.toString().replace(/\s*$/,"")};function H(P,N,T){let V=0;return Array.isArray(P)||(P=Object.values(P).map(te=>[te])),P.forEach(te=>{V=Math.max(t.stringWidth(T?`${T} ${Ns(te[0])}`:Ns(te[0]))+P_(te[0]),V);}),N&&(V=Math.min(V,parseInt((N*.5).toString(),10))),V}function B(){let P=e.getDemandedOptions(),N=e.getOptions();(Object.keys(N.alias)||[]).forEach(T=>{N.alias[T].forEach(V=>{h[V]&&i.describe(T,h[V]),V in P&&e.demandOption(T,P[V]),N.boolean.includes(V)&&e.boolean(T),N.count.includes(V)&&e.count(T),N.string.includes(V)&&e.string(T),N.normalize.includes(V)&&e.normalize(T),N.array.includes(V)&&e.array(T),N.number.includes(V)&&e.number(T);});});}let R;i.cacheHelpMessage=function(){R=this.help();},i.clearCachedHelpMessage=function(){R=void 0;},i.hasCachedHelpMessage=function(){return !!R};function k(P,N,T,V){let te=[],de=null;return Object.keys(T).forEach(se=>{te=te.concat(T[se]);}),P.forEach(se=>{de=[se].concat(N[se]),de.some(Pe=>te.indexOf(Pe)!==-1)||T[V].push(se);}),te}function z(P){return e.getOptions().hiddenOptions.indexOf(P)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}i.showHelp=P=>{let N=e.getInternalMethods().getLoggerInstance();P||(P="error"),(typeof P=="function"?P:N[P])(i.help());},i.functionDescription=P=>["(",P.name?t.Parser.decamelize(P.name,"-"):n("generated-value"),")"].join(""),i.stringifiedValues=function(N,T){let V="",te=T||", ",de=[].concat(N);return !N||!de.length||de.forEach(se=>{V.length&&(V+=te),V+=JSON.stringify(se);}),V};function re(P,N){let T=`[${n("default:")} `;if(P===void 0&&!N)return null;if(N)T+=N;else switch(typeof P){case "string":T+=`"${P}"`;break;case "object":T+=JSON.stringify(P);break;default:T+=P;}return `${T}]`}function ce(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let ve=null;i.version=P=>{ve=P;},i.showVersion=P=>{let N=e.getInternalMethods().getLoggerInstance();P||(P="error"),(typeof P=="function"?P:N[P])(ve);},i.reset=function(N){return o=null,c=false,l=[],d=false,y=[],p=[],m=[],h=_r(h,T=>!N[T]),i};let ie=[];return i.freeze=function(){ie.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:y,examples:p,commands:m,descriptions:h});},i.unfreeze=function(N=false){let T=ie.pop();T&&(N?(h={...T.descriptions,...h},m=[...T.commands,...m],l=[...T.usages,...l],p=[...T.examples,...p],y=[...T.epilogs,...y]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:d,epilogs:y,examples:p,commands:m,descriptions:h}=T);},i}function Em(e){return typeof e=="object"}function MC(e,t){return Em(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function P_(e){return Em(e)?e.indentation:0}function Ns(e){return Em(e)?e.text:e}var z_=`###-begin-{{app_name}}-completions-###
81
80
  #
82
81
  # yargs command completion script
83
82
  #
@@ -106,7 +105,7 @@ _{{app_name}}_yargs_completions()
106
105
  }
107
106
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
108
107
  ###-end-{{app_name}}-completions-###
109
- `,iD=`#compdef {{app_name}}
108
+ `,U_=`#compdef {{app_name}}
110
109
  ###-begin-{{app_name}}-completions-###
111
110
  #
112
111
  # yargs command completion script
@@ -133,30 +132,47 @@ else
133
132
  compdef _{{app_name}}_yargs_completions {{app_name}}
134
133
  fi
135
134
  ###-end-{{app_name}}-completions-###
136
- `;var Eh=class{constructor(t,r,i,n){var o,a,u;this.yargs=t,this.usage=r,this.command=i,this.shim=n,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(u=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&u!==void 0?u:false;}defaultCompletion(t,r,i,n){let o=this.command.getCommandHandlers();for(let u=0,c=t.length;u<c;++u)if(o[t[u]]&&o[t[u]].builder){let l=o[t[u]].builder;if(Eu(l)){this.indexAfterLastReset=u+1;let d=this.yargs.getInternalMethods().reset();return l(d,true),d.argv}}let a=[];this.commandCompletions(a,t,i),this.optionCompletions(a,t,r,i),this.choicesFromOptionsCompletions(a,t,r,i),this.choicesFromPositionalsCompletions(a,t,r,i),n(null,a);}commandCompletions(t,r,i){let n=this.yargs.getInternalMethods().getContext().commands;!i.match(/^-/)&&n[n.length-1]!==i&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(o=>{let a=Mn(o[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else {let u=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+u);}});}optionCompletions(t,r,i,n){if((n.match(/^-/)||n===""&&t.length===0)&&!this.previousArgHasChoices(r)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(u=>{let c=!!o.configuration["boolean-negation"]&&o.boolean.includes(u);!a.includes(u)&&!o.hiddenOptions.includes(u)&&!this.argsContainKey(r,u,c)&&this.completeOptionKey(u,t,n,c&&!!o.default[u]);});}}choicesFromOptionsCompletions(t,r,i,n){if(this.previousArgHasChoices(r)){let o=this.getPreviousArgChoices(r);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")));}}choicesFromPositionalsCompletions(t,r,i,n){if(n===""&&t.length>0&&this.previousArgHasChoices(r))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),u=o[i._.length-a-1];if(!u)return;let c=this.yargs.getOptions().choices[u]||[];for(let l of c)l.startsWith(n)&&t.push(l.replace(/:/g,"\\:"));}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],i="";if(!r.startsWith("-")&&t.length>1&&(i=r,r=t[t.length-2]),!r.startsWith("-"))return;let n=r.replace(/^-+/,""),o=this.yargs.getOptions(),a=[n,...this.yargs.getAliases()[n]||[]],u;for(let c of a)if(Object.prototype.hasOwnProperty.call(o.key,c)&&Array.isArray(o.choices[c])){u=o.choices[c];break}if(u)return u.filter(c=>!i||c.startsWith(i))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,i){let n=o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1;if(n(r)||i&&n(`no-${r}`))return true;if(this.aliases){for(let o of this.aliases[r])if(n(o))return true}return false}completeOptionKey(t,r,i,n){var o,a,u,c;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),v=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(U=>{let H=h[U];return typeof H=="string"&&H.length>0}),D=v?h[v]:void 0,b=(c=(u=h[t])!==null&&u!==void 0?u:D)!==null&&c!==void 0?c:"";l=`${t.replace(/:/g,"\\:")}:${b.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`;}let d=h=>/^--/.test(h),p=h=>/^[^0-9]$/.test(h),m=!d(i)&&p(t)?"-":"--";r.push(m+l),n&&r.push(m+"no-"+l);}customCompletion(t,r,i,n){if(ot(this.customCompletionFunction,null,this.shim),VT(this.customCompletionFunction)){let o=this.customCompletionFunction(i,r);return ve(o)?o.then(a=>{this.shim.process.nextTick(()=>{n(null,a);});}).catch(a=>{this.shim.process.nextTick(()=>{n(a,void 0);});}):n(null,o)}else return ZT(this.customCompletionFunction)?this.customCompletionFunction(i,r,(o=n)=>this.defaultCompletion(t,r,i,o),o=>{n(null,o);}):this.customCompletionFunction(i,r,o=>{n(null,o);})}getCompletion(t,r){let i=t.length?t[t.length-1]:"",n=this.yargs.parse(t,true),o=this.customCompletionFunction?a=>this.customCompletion(t,a,i,r):a=>this.defaultCompletion(t,a,i,r);return ve(n)?n.then(o):o(n)}generateCompletionScript(t,r){let i=this.zshShell?iD:rD,n=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),i=i.replace(/{{app_name}}/g,n),i=i.replace(/{{completion_command}}/g,r),i.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t;}setParsed(t){this.aliases=t.aliases;}};function oD(e,t,r,i){return new Eh(e,t,r,i)}function VT(e){return e.length<3}function ZT(e){return e.length>3}function aD(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],i;for(i=0;i<=t.length;i++)r[i]=[i];let n;for(n=0;n<=e.length;n++)r[0][n]=n;for(i=1;i<=t.length;i++)for(n=1;n<=e.length;n++)t.charAt(i-1)===e.charAt(n-1)?r[i][n]=r[i-1][n-1]:i>1&&n>1&&t.charAt(i-2)===e.charAt(n-1)&&t.charAt(i-1)===e.charAt(n-2)?r[i][n]=r[i-2][n-2]+1:r[i][n]=Math.min(r[i-1][n-1]+1,Math.min(r[i][n-1]+1,r[i-1][n]+1));return r[t.length][e.length]}var sD=["$0","--","_"];function uD(e,t,r){let i=r.y18n.__,n=r.y18n.__n,o={};o.nonOptionCount=function(p){let m=e.getDemandedCommands(),v=p._.length+(p["--"]?p["--"].length:0)-e.getInternalMethods().getContext().commands.length;m._&&(v<m._.min||v>m._.max)&&(v<m._.min?m._.minMsg!==void 0?t.fail(m._.minMsg?m._.minMsg.replace(/\$0/g,v.toString()).replace(/\$1/,m._.min.toString()):null):t.fail(n("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",v,v.toString(),m._.min.toString())):v>m._.max&&(m._.maxMsg!==void 0?t.fail(m._.maxMsg?m._.maxMsg.replace(/\$0/g,v.toString()).replace(/\$1/,m._.max.toString()):null):t.fail(n("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",v,v.toString(),m._.max.toString()))));},o.positionalCount=function(p,m){m<p&&t.fail(n("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",m,m+"",p+""));},o.requiredArguments=function(p,m){let h=null;for(let v of Object.keys(m))(!Object.prototype.hasOwnProperty.call(p,v)||typeof p[v]>"u")&&(h=h||{},h[v]=m[v]);if(h){let v=[];for(let b of Object.keys(h)){let U=h[b];U&&v.indexOf(U)<0&&v.push(U);}let D=v.length?`
137
- ${v.join(`
138
- `)}`:"";t.fail(n("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+D));}},o.unknownArguments=function(p,m,h,v,D=true){var b;let U=e.getInternalMethods().getCommandInstance().getCommands(),H=[],B=e.getInternalMethods().getContext();if(Object.keys(p).forEach(A=>{!sD.includes(A)&&!Object.prototype.hasOwnProperty.call(h,A)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),A)&&!o.isValidAndSomeAliasIsNotNew(A,m)&&H.push(A);}),D&&(B.commands.length>0||U.length>0||v)&&p._.slice(B.commands.length).forEach(A=>{U.includes(""+A)||H.push(""+A);}),D){let O=((b=e.getDemandedCommands()._)===null||b===void 0?void 0:b.max)||0,z=B.commands.length+O;z<p._.length&&p._.slice(z).forEach(ne=>{ne=String(ne),!B.commands.includes(ne)&&!H.includes(ne)&&H.push(ne);});}H.length&&t.fail(n("Unknown argument: %s","Unknown arguments: %s",H.length,H.map(A=>A.trim()?A:`"${A}"`).join(", ")));},o.unknownCommands=function(p){let m=e.getInternalMethods().getCommandInstance().getCommands(),h=[],v=e.getInternalMethods().getContext();return (v.commands.length>0||m.length>0)&&p._.slice(v.commands.length).forEach(D=>{m.includes(""+D)||h.push(""+D);}),h.length>0?(t.fail(n("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),true):false},o.isValidAndSomeAliasIsNotNew=function(p,m){if(!Object.prototype.hasOwnProperty.call(m,p))return false;let h=e.parsed.newAliases;return [p,...m[p]].some(v=>!Object.prototype.hasOwnProperty.call(h,v)||!h[p])},o.limitedChoices=function(p){let m=e.getOptions(),h={};if(!Object.keys(m.choices).length)return;Object.keys(p).forEach(b=>{sD.indexOf(b)===-1&&Object.prototype.hasOwnProperty.call(m.choices,b)&&[].concat(p[b]).forEach(U=>{m.choices[b].indexOf(U)===-1&&U!==void 0&&(h[b]=(h[b]||[]).concat(U));});});let v=Object.keys(h);if(!v.length)return;let D=i("Invalid values:");v.forEach(b=>{D+=`
139
- ${i("Argument: %s, Given: %s, Choices: %s",b,t.stringifiedValues(h[b]),t.stringifiedValues(m.choices[b]))}`;}),t.fail(D);};let a={};o.implies=function(p,m){L("<string|object> [array|number|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.implies(h,p[h]);}):(e.global(p),a[p]||(a[p]=[]),Array.isArray(m)?m.forEach(h=>o.implies(p,h)):(ot(m,void 0,r),a[p].push(m)));},o.getImplied=function(){return a};function u(d,p){let m=Number(p);return p=isNaN(m)?p:m,typeof p=="number"?p=d._.length>=p:p.match(/^--no-.+/)?(p=p.match(/^--no-(.+)/)[1],p=!Object.prototype.hasOwnProperty.call(d,p)):p=Object.prototype.hasOwnProperty.call(d,p),p}o.implications=function(p){let m=[];if(Object.keys(a).forEach(h=>{let v=h;(a[h]||[]).forEach(D=>{let b=v,U=D;b=u(p,b),D=u(p,D),b&&!D&&m.push(` ${v} -> ${U}`);});}),m.length){let h=`${i("Implications failed:")}
140
- `;m.forEach(v=>{h+=v;}),t.fail(h);}};let c={};o.conflicts=function(p,m){L("<string|object> [array|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.conflicts(h,p[h]);}):(e.global(p),c[p]||(c[p]=[]),Array.isArray(m)?m.forEach(h=>o.conflicts(p,h)):c[p].push(m));},o.getConflicting=()=>c,o.conflicting=function(p){Object.keys(p).forEach(m=>{c[m]&&c[m].forEach(h=>{h&&p[m]!==void 0&&p[h]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(m=>{c[m].forEach(h=>{h&&p[r.Parser.camelCase(m)]!==void 0&&p[r.Parser.camelCase(h)]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});});},o.recommendCommands=function(p,m){m=m.sort((b,U)=>U.length-b.length);let v=null,D=1/0;for(let b=0,U;(U=m[b])!==void 0;b++){let H=aD(p,U);H<=3&&H<D&&(D=H,v=U);}v&&t.fail(i("Did you mean %s?",v));},o.reset=function(p){return a=Bn(a,m=>!p[m]),c=Bn(c,m=>!p[m]),o};let l=[];return o.freeze=function(){l.push({implied:a,conflicting:c});},o.unfreeze=function(){let p=l.pop();ot(p,void 0,r),{implied:a,conflicting:c}=p;},o}var wh=[],zo;function No(e,t,r,i){zo=i;let n={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return n;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=GT(t,e.extends);else try{a=import.meta.resolve(e.extends);}catch{return e}WT(a),wh.push(a),n=o?JSON.parse(zo.readFileSync(a,"utf8")):i.require(e.extends),delete e.extends,n=No(n,zo.path.dirname(a),r,zo);}return wh=[],r?cD(n,e):Object.assign({},n,e)}function WT(e){if(wh.indexOf(e)>-1)throw new Ce(`Circular extended configurations: '${e}'.`)}function GT(e,t){return zo.path.resolve(e,t)}function cD(e,t){let r={};function i(n){return n&&typeof n=="object"&&!Array.isArray(n)}Object.assign(r,e);for(let n of Object.keys(t))i(t[n])&&i(r[n])?r[n]=cD(e[n],t[n]):r[n]=t[n];return r}var M=function(e,t,r,i,n){if(typeof t=="function"?e!==t||true:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r},f=function(e,t,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)},Re,Sr,Uo,pt,St,$u,Zn,xr,ku,Ot,Iu,Ct,sn,xt,Rt,Ou,Dr,We,G,Cu,Ru,Dt,_r,ki,Er,Wn,Au,K,wr,$r,kr,Q,Tu,un,ke;function OD(e){return (t=[],r=e.process.cwd(),i)=>{let n=new jh(t,r,i,e);return Object.defineProperty(n,"argv",{get:()=>n.parse(),enumerable:true}),n.help(),n.version(),n}}var lD=Symbol("copyDoubleDash"),dD=Symbol("copyDoubleDash"),$h=Symbol("deleteFromParserHintObject"),pD=Symbol("emitWarning"),fD=Symbol("freeze"),mD=Symbol("getDollarZero"),Ir=Symbol("getParserConfiguration"),hD=Symbol("getUsageConfiguration"),kh=Symbol("guessLocale"),gD=Symbol("guessVersion"),yD=Symbol("parsePositionalNumbers"),Ih=Symbol("pkgUp"),Gn=Symbol("populateParserHintArray"),Ii=Symbol("populateParserHintSingleValueDictionary"),Oh=Symbol("populateParserHintArrayDictionary"),Ch=Symbol("populateParserHintDictionary"),Rh=Symbol("sanitizeKey"),Ah=Symbol("setKey"),Th=Symbol("unfreeze"),vD=Symbol("validateAsync"),bD=Symbol("getCommandInstance"),SD=Symbol("getContext"),xD=Symbol("getHasOutput"),DD=Symbol("getLoggerInstance"),_D=Symbol("getParseContext"),ED=Symbol("getUsageInstance"),wD=Symbol("getValidationInstance"),Pu=Symbol("hasParseCallback"),$D=Symbol("isGlobalContext"),Or=Symbol("postProcess"),kD=Symbol("rebase"),Ph=Symbol("reset"),Lo=Symbol("runYargsParserAndExecuteCommands"),Fh=Symbol("runValidation"),ID=Symbol("setHasOutput"),Cr=Symbol("kTrackManuallySetKeys"),qT="en_US",jh=class{constructor(t=[],r,i,n){this.customScriptName=false,this.parsed=false,Re.set(this,void 0),Sr.set(this,void 0),Uo.set(this,{commands:[],fullCommands:[]}),pt.set(this,null),St.set(this,null),$u.set(this,"show-hidden"),Zn.set(this,null),xr.set(this,true),ku.set(this,{}),Ot.set(this,true),Iu.set(this,[]),Ct.set(this,void 0),sn.set(this,{}),xt.set(this,false),Rt.set(this,null),Ou.set(this,true),Dr.set(this,void 0),We.set(this,""),G.set(this,void 0),Cu.set(this,void 0),Ru.set(this,{}),Dt.set(this,null),_r.set(this,null),ki.set(this,{}),Er.set(this,{}),Wn.set(this,void 0),Au.set(this,false),K.set(this,void 0),wr.set(this,false),$r.set(this,false),kr.set(this,false),Q.set(this,void 0),Tu.set(this,{}),un.set(this,null),ke.set(this,void 0),M(this,K,n),M(this,Wn,t),M(this,Sr,r),M(this,Cu,i),M(this,Ct,new _u(this)),this.$0=this[mD](),this[Ph](),M(this,Re,f(this,Re,"f")),M(this,Q,f(this,Q,"f")),M(this,ke,f(this,ke,"f")),M(this,G,f(this,G,"f")),f(this,G,"f").showHiddenOpt=f(this,$u,"f"),M(this,Dr,this[dD]()),f(this,K,"f").y18n.setLocale(qT);}addHelpOpt(t,r){let i="help";return L("[string|boolean] [string]",[t,r],arguments.length),f(this,Rt,"f")&&(this[$h](f(this,Rt,"f")),M(this,Rt,null)),t===false&&r===void 0?this:(M(this,Rt,typeof t=="string"?t:i),this.boolean(f(this,Rt,"f")),this.describe(f(this,Rt,"f"),r||f(this,Q,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(L("[string|boolean] [string]",[t,r],arguments.length),t===false&&r===void 0)return this;let i=typeof t=="string"?t:f(this,$u,"f");return this.boolean(i),this.describe(i,r||f(this,Q,"f").deferY18nLookup("Show hidden options")),f(this,G,"f").showHiddenOpt=i,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return L("<object|string|array> [string|array]",[t,r],arguments.length),this[Oh](this.alias.bind(this),"alias",t,r),this}array(t){return L("<array|string>",[t],arguments.length),this[Gn]("array",t),this[Cr](t),this}boolean(t){return L("<array|string>",[t],arguments.length),this[Gn]("boolean",t),this[Cr](t),this}check(t,r){return L("<function> [boolean]",[t,r],arguments.length),this.middleware((i,n)=>br(()=>t(i,n.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&f(this,Q,"f").fail(o.toString(),o):f(this,Q,"f").fail(f(this,K,"f").y18n.__("Argument check failed: %s",t.toString())),i),o=>(f(this,Q,"f").fail(o.message?o.message:o.toString(),o),i)),false,r),this}choices(t,r){return L("<object|string|array> [string|array]",[t,r],arguments.length),this[Oh](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(L("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new Ce("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new Ce("coerce callback must be provided");let i=t;return f(this,G,"f").key[i]=true,f(this,Ct,"f").addCoerceMiddleware((n,o)=>{var a;let u=(a=o.getAliases()[i])!==null&&a!==void 0?a:[],c=[i,...u].filter(l=>Object.prototype.hasOwnProperty.call(n,l));return c.length===0?n:br(()=>r(n[c[0]]),l=>(c.forEach(d=>{n[d]=l;}),n),l=>{throw new Ce(l.message)})},i),this}conflicts(t,r){return L("<string|object> [string|array]",[t,r],arguments.length),f(this,ke,"f").conflicts(t,r),this}config(t="config",r,i){return L("[object|string] [string|function] [function]",[t,r,i],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=No(t,f(this,Sr,"f"),this[Ir]()["deep-merge-config"]||false,f(this,K,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(i=r,r=void 0),this.describe(t,r||f(this,Q,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(n=>{f(this,G,"f").config[n]=i||true;}),this)}completion(t,r,i){return L("[string] [string|boolean|function] [function]",[t,r,i],arguments.length),typeof r=="function"&&(i=r,r=void 0),M(this,St,t||f(this,St,"f")||"completion"),!r&&r!==false&&(r="generate completion script"),this.command(f(this,St,"f"),r),i&&f(this,pt,"f").registerFunction(i),this}command(t,r,i,n,o,a){return L("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,i,n,o,a],arguments.length),f(this,Re,"f").addHandler(t,r,i,n,o,a),this}commands(t,r,i,n,o,a){return this.command(t,r,i,n,o,a)}commandDir(t,r){L("<string> [object]",[t,r],arguments.length);let i=f(this,Cu,"f")||f(this,K,"f").require;return f(this,Re,"f").addDirectory(t,i,f(this,K,"f").getCallerFile(),r),this}count(t){return L("<array|string>",[t],arguments.length),this[Gn]("count",t),this[Cr](t),this}default(t,r,i){return L("<object|string|array> [*] [string]",[t,r,i],arguments.length),i&&(xh(t,f(this,K,"f")),f(this,G,"f").defaultDescription[t]=i),typeof r=="function"&&(xh(t,f(this,K,"f")),f(this,G,"f").defaultDescription[t]||(f(this,G,"f").defaultDescription[t]=f(this,Q,"f").functionDescription(r)),r=r.call()),this[Ii](this.default.bind(this),"default",t,r),this}defaults(t,r,i){return this.default(t,r,i)}demandCommand(t=1,r,i,n){return L("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,i,n],arguments.length),typeof r!="number"&&(i=r,r=1/0),this.global("_",false),f(this,G,"f").demandedCommands._={min:t,max:r,minMsg:i,maxMsg:n},this}demand(t,r,i){return Array.isArray(r)?(r.forEach(n=>{ot(i,true,f(this,K,"f")),this.demandOption(n,i);}),r=1/0):typeof r!="number"&&(i=r,r=1/0),typeof t=="number"?(ot(i,true,f(this,K,"f")),this.demandCommand(t,r,i,i)):Array.isArray(t)?t.forEach(n=>{ot(i,true,f(this,K,"f")),this.demandOption(n,i);}):typeof i=="string"?this.demandOption(t,i):(i===true||typeof i>"u")&&this.demandOption(t),this}demandOption(t,r){return L("<object|string|array> [string]",[t,r],arguments.length),this[Ii](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return L("<string> [string|boolean]",[t,r],arguments.length),f(this,G,"f").deprecatedOptions[t]=r,this}describe(t,r){return L("<object|string|array> [string]",[t,r],arguments.length),this[Ah](t,true),f(this,Q,"f").describe(t,r),this}detectLocale(t){return L("<boolean>",[t],arguments.length),M(this,xr,t),this}env(t){return L("[string|boolean]",[t],arguments.length),t===false?delete f(this,G,"f").envPrefix:f(this,G,"f").envPrefix=t||"",this}epilogue(t){return L("<string>",[t],arguments.length),f(this,Q,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return L("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(i=>this.example(...i)):f(this,Q,"f").example(t,r),this}exit(t,r){M(this,xt,true),M(this,Zn,r),f(this,Ot,"f")&&f(this,K,"f").process.exit(t);}exitProcess(t=true){return L("[boolean]",[t],arguments.length),M(this,Ot,t),this}fail(t){if(L("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==false)throw new Ce("Invalid first argument. Expected function or boolean 'false'");return f(this,Q,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return L("<array> [function]",[t,r],arguments.length),r?f(this,pt,"f").getCompletion(t,r):new Promise((i,n)=>{f(this,pt,"f").getCompletion(t,(o,a)=>{o?n(o):i(a);});})}getDemandedOptions(){return L([],0),f(this,G,"f").demandedOptions}getDemandedCommands(){return L([],0),f(this,G,"f").demandedCommands}getDeprecatedOptions(){return L([],0),f(this,G,"f").deprecatedOptions}getDetectLocale(){return f(this,xr,"f")}getExitProcess(){return f(this,Ot,"f")}getGroups(){return Object.assign({},f(this,sn,"f"),f(this,Er,"f"))}getHelp(){if(M(this,xt,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Lo](f(this,Wn,"f"),void 0,void 0,0,true);if(ve(r))return r.then(()=>f(this,Q,"f").help())}let t=f(this,Re,"f").runDefaultBuilderOn(this);if(ve(t))return t.then(()=>f(this,Q,"f").help())}return Promise.resolve(f(this,Q,"f").help())}getOptions(){return f(this,G,"f")}getStrict(){return f(this,wr,"f")}getStrictCommands(){return f(this,$r,"f")}getStrictOptions(){return f(this,kr,"f")}global(t,r){return L("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==false?f(this,G,"f").local=f(this,G,"f").local.filter(i=>t.indexOf(i)===-1):t.forEach(i=>{f(this,G,"f").local.includes(i)||f(this,G,"f").local.push(i);}),this}group(t,r){L("<string|array> <string>",[t,r],arguments.length);let i=f(this,Er,"f")[r]||f(this,sn,"f")[r];f(this,Er,"f")[r]&&delete f(this,Er,"f")[r];let n={};return f(this,sn,"f")[r]=(i||[]).concat(t).filter(o=>n[o]?false:n[o]=true),this}hide(t){return L("<string>",[t],arguments.length),f(this,G,"f").hiddenOptions.push(t),this}implies(t,r){return L("<string|object> [number|string|array]",[t,r],arguments.length),f(this,ke,"f").implies(t,r),this}locale(t){return L("[string]",[t],arguments.length),t===void 0?(this[kh](),f(this,K,"f").y18n.getLocale()):(M(this,xr,false),f(this,K,"f").y18n.setLocale(t),this)}middleware(t,r,i){return f(this,Ct,"f").addMiddleware(t,!!r,i)}nargs(t,r){return L("<string|object|array> [number]",[t,r],arguments.length),this[Ii](this.nargs.bind(this),"narg",t,r),this}normalize(t){return L("<array|string>",[t],arguments.length),this[Gn]("normalize",t),this}number(t){return L("<array|string>",[t],arguments.length),this[Gn]("number",t),this[Cr](t),this}option(t,r){if(L("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(i=>{this.options(i,t[i]);});else {typeof r!="object"&&(r={}),this[Cr](t),f(this,un,"f")&&(t==="version"||r?.alias==="version")&&this[pD](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
141
- `),void 0,"versionWarning"),f(this,G,"f").key[t]=true,r.alias&&this.alias(t,r.alias);let i=r.deprecate||r.deprecated;i&&this.deprecateOption(t,i);let n=r.demand||r.required||r.require;n&&this.demand(t,n),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(f(this,G,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=f(this,Q,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t);}return this}options(t,r){return this.option(t,r)}parse(t,r,i){L("[string|array] [function|boolean|object] [function]",[t,r,i],arguments.length),this[fD](),typeof t>"u"&&(t=f(this,Wn,"f")),typeof r=="object"&&(M(this,_r,r),r=i),typeof r=="function"&&(M(this,Dt,r),r=false),r||M(this,Wn,t),f(this,Dt,"f")&&M(this,Ot,false);let n=this[Lo](t,!!r),o=this.parsed;return f(this,pt,"f").setParsed(this.parsed),ve(n)?n.then(a=>(f(this,Dt,"f")&&f(this,Dt,"f").call(this,f(this,Zn,"f"),a,f(this,We,"f")),a)).catch(a=>{throw f(this,Dt,"f")&&f(this,Dt,"f")(a,this.parsed.argv,f(this,We,"f")),a}).finally(()=>{this[Th](),this.parsed=o;}):(f(this,Dt,"f")&&f(this,Dt,"f").call(this,f(this,Zn,"f"),n,f(this,We,"f")),this[Th](),this.parsed=o,n)}parseAsync(t,r,i){let n=this.parse(t,r,i);return ve(n)?n:Promise.resolve(n)}parseSync(t,r,i){let n=this.parse(t,r,i);if(ve(n))throw new Ce(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(t){return L("<object>",[t],arguments.length),M(this,Ru,t),this}pkgConf(t,r){L("<string> [string]",[t,r],arguments.length);let i=null,n=this[Ih](r||f(this,Sr,"f"));return n[t]&&typeof n[t]=="object"&&(i=No(n[t],r||f(this,Sr,"f"),this[Ir]()["deep-merge-config"]||false,f(this,K,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(i)),this}positional(t,r){L("<string> <object>",[t,r],arguments.length);let i=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=Bn(r,(a,u)=>a==="type"&&!["string","number","boolean"].includes(u)?false:i.includes(a));let n=f(this,Uo,"f").fullCommands[f(this,Uo,"f").fullCommands.length-1],o=n?f(this,Re,"f").cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};return wi(o).forEach(a=>{let u=o[a];Array.isArray(u)?u.indexOf(t)!==-1&&(r[a]=true):u[t]&&!(a in r)&&(r[a]=u[t]);}),this.group(t,f(this,Q,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=true){return L("[boolean]",[t],arguments.length),M(this,Au,t),this}required(t,r,i){return this.demand(t,r,i)}require(t,r,i){return this.demand(t,r,i)}requiresArg(t){return L("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&f(this,G,"f").narg[t]?this:(this[Ii](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return L("[string] [string]",[t,r],arguments.length),t=t||this.$0,f(this,Dr,"f").log(f(this,pt,"f").generateCompletionScript(t,r||f(this,St,"f")||"completion")),this}showHelp(t){if(L("[string|function]",[t],arguments.length),M(this,xt,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let i=this[Lo](f(this,Wn,"f"),void 0,void 0,0,true);if(ve(i))return i.then(()=>{f(this,Q,"f").showHelp(t);}),this}let r=f(this,Re,"f").runDefaultBuilderOn(this);if(ve(r))return r.then(()=>{f(this,Q,"f").showHelp(t);}),this}return f(this,Q,"f").showHelp(t),this}scriptName(t){return this.customScriptName=true,this.$0=t,this}showHelpOnFail(t,r){return L("[boolean|string] [string]",[t,r],arguments.length),f(this,Q,"f").showHelpOnFail(t,r),this}showVersion(t){return L("[string|function]",[t],arguments.length),f(this,Q,"f").showVersion(t),this}skipValidation(t){return L("<array|string>",[t],arguments.length),this[Gn]("skipValidation",t),this}strict(t){return L("[boolean]",[t],arguments.length),M(this,wr,t!==false),this}strictCommands(t){return L("[boolean]",[t],arguments.length),M(this,$r,t!==false),this}strictOptions(t){return L("[boolean]",[t],arguments.length),M(this,kr,t!==false),this}string(t){return L("<array|string>",[t],arguments.length),this[Gn]("string",t),this[Cr](t),this}terminalWidth(){return L([],0),f(this,K,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return L("<object>",[t],arguments.length),M(this,xr,false),f(this,K,"f").y18n.updateLocale(t),this}usage(t,r,i,n){if(L("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,i,n],arguments.length),r!==void 0){if(ot(t,null,f(this,K,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,i,n);throw new Ce(".usage() description must start with $0 if being used as alias for .command()")}else return f(this,Q,"f").usage(t),this}usageConfiguration(t){return L("<object>",[t],arguments.length),M(this,Tu,t),this}version(t,r,i){let n="version";if(L("[boolean|string] [string] [string]",[t,r,i],arguments.length),f(this,un,"f")&&(this[$h](f(this,un,"f")),f(this,Q,"f").version(void 0),M(this,un,null)),arguments.length===0)i=this[gD](),t=n;else if(arguments.length===1){if(t===false)return this;i=t,t=n;}else arguments.length===2&&(i=r,r=void 0);return M(this,un,typeof t=="string"?t:n),r=r||f(this,Q,"f").deferY18nLookup("Show version number"),f(this,Q,"f").version(i||void 0),this.boolean(f(this,un,"f")),this.describe(f(this,un,"f"),r),this}wrap(t){return L("<number|null|undefined>",[t],arguments.length),f(this,Q,"f").wrap(t),this}[(Re=new WeakMap,Sr=new WeakMap,Uo=new WeakMap,pt=new WeakMap,St=new WeakMap,$u=new WeakMap,Zn=new WeakMap,xr=new WeakMap,ku=new WeakMap,Ot=new WeakMap,Iu=new WeakMap,Ct=new WeakMap,sn=new WeakMap,xt=new WeakMap,Rt=new WeakMap,Ou=new WeakMap,Dr=new WeakMap,We=new WeakMap,G=new WeakMap,Cu=new WeakMap,Ru=new WeakMap,Dt=new WeakMap,_r=new WeakMap,ki=new WeakMap,Er=new WeakMap,Wn=new WeakMap,Au=new WeakMap,K=new WeakMap,wr=new WeakMap,$r=new WeakMap,kr=new WeakMap,Q=new WeakMap,Tu=new WeakMap,un=new WeakMap,ke=new WeakMap,lD)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"];}catch{}return t}[dD](){return {log:(...t)=>{this[Pu]()||console.log(...t),M(this,xt,true),f(this,We,"f").length&&M(this,We,f(this,We,"f")+`
142
- `),M(this,We,f(this,We,"f")+t.join(" "));},error:(...t)=>{this[Pu]()||console.error(...t),M(this,xt,true),f(this,We,"f").length&&M(this,We,f(this,We,"f")+`
143
- `),M(this,We,f(this,We,"f")+t.join(" "));}}}[$h](t){wi(f(this,G,"f")).forEach(r=>{if((n=>n==="configObjects")(r))return;let i=f(this,G,"f")[r];Array.isArray(i)?i.includes(t)&&i.splice(i.indexOf(t),1):typeof i=="object"&&delete i[t];}),delete f(this,Q,"f").getDescriptions()[t];}[pD](t,r,i){f(this,ku,"f")[i]||(f(this,K,"f").process.emitWarning(t,r),f(this,ku,"f")[i]=true);}[fD](){f(this,Iu,"f").push({options:f(this,G,"f"),configObjects:f(this,G,"f").configObjects.slice(0),exitProcess:f(this,Ot,"f"),groups:f(this,sn,"f"),strict:f(this,wr,"f"),strictCommands:f(this,$r,"f"),strictOptions:f(this,kr,"f"),completionCommand:f(this,St,"f"),output:f(this,We,"f"),exitError:f(this,Zn,"f"),hasOutput:f(this,xt,"f"),parsed:this.parsed,parseFn:f(this,Dt,"f"),parseContext:f(this,_r,"f")}),f(this,Q,"f").freeze(),f(this,ke,"f").freeze(),f(this,Re,"f").freeze(),f(this,Ct,"f").freeze();}[mD](){let t="",r;return /\b(node|iojs|electron)(\.exe)?$/.test(f(this,K,"f").process.argv()[0])?r=f(this,K,"f").process.argv().slice(1,2):r=f(this,K,"f").process.argv().slice(0,1),t=r.map(i=>{let n=this[kD](f(this,Sr,"f"),i);return i.match(/^(\/|([a-zA-Z]:)?\\)/)&&n.length<i.length?n:i}).join(" ").trim(),f(this,K,"f").getEnv("_")&&f(this,K,"f").getProcessArgvBin()===f(this,K,"f").getEnv("_")&&(t=f(this,K,"f").getEnv("_").replace(`${f(this,K,"f").path.dirname(f(this,K,"f").process.execPath())}/`,"")),t}[Ir](){return f(this,Ru,"f")}[hD](){return f(this,Tu,"f")}[kh](){if(!f(this,xr,"f"))return;let t=f(this,K,"f").getEnv("LC_ALL")||f(this,K,"f").getEnv("LC_MESSAGES")||f(this,K,"f").getEnv("LANG")||f(this,K,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""));}[gD](){return this[Ih]().version||"unknown"}[yD](t){let r=t["--"]?t["--"]:t._;for(let i=0,n;(n=r[i])!==void 0;i++)f(this,K,"f").Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(r[i]=Number(n));return t}[Ih](t){let r=t||"*";if(f(this,ki,"f")[r])return f(this,ki,"f")[r];let i={};try{let n=t||f(this,K,"f").mainFilename;f(this,K,"f").path.extname(n)&&(n=f(this,K,"f").path.dirname(n));let o=f(this,K,"f").findUp(n,(a,u)=>{if(u.includes("package.json"))return "package.json"});ot(o,void 0,f(this,K,"f")),i=JSON.parse(f(this,K,"f").readFileSync(o,"utf8"));}catch{}return f(this,ki,"f")[r]=i||{},f(this,ki,"f")[r]}[Gn](t,r){r=[].concat(r),r.forEach(i=>{i=this[Rh](i),f(this,G,"f")[t].push(i);});}[Ii](t,r,i,n){this[Ch](t,r,i,n,(o,a,u)=>{f(this,G,"f")[o][a]=u;});}[Oh](t,r,i,n){this[Ch](t,r,i,n,(o,a,u)=>{f(this,G,"f")[o][a]=(f(this,G,"f")[o][a]||[]).concat(u);});}[Ch](t,r,i,n,o){if(Array.isArray(i))i.forEach(a=>{t(a,n);});else if((a=>typeof a=="object")(i))for(let a of wi(i))t(a,i[a]);else o(r,this[Rh](i),n);}[Rh](t){return t==="__proto__"?"___proto___":t}[Ah](t,r){return this[Ii](this[Ah].bind(this),"key",t,r),this}[Th](){var t,r,i,n,o,a,u,c,l,d,p,m;let h=f(this,Iu,"f").pop();ot(h,void 0,f(this,K,"f"));let v;t=this,r=this,i=this,n=this,o=this,a=this,u=this,c=this,l=this,d=this,p=this,m=this,{options:{set value(D){M(t,G,D);}}.value,configObjects:v,exitProcess:{set value(D){M(r,Ot,D);}}.value,groups:{set value(D){M(i,sn,D);}}.value,output:{set value(D){M(n,We,D);}}.value,exitError:{set value(D){M(o,Zn,D);}}.value,hasOutput:{set value(D){M(a,xt,D);}}.value,parsed:this.parsed,strict:{set value(D){M(u,wr,D);}}.value,strictCommands:{set value(D){M(c,$r,D);}}.value,strictOptions:{set value(D){M(l,kr,D);}}.value,completionCommand:{set value(D){M(d,St,D);}}.value,parseFn:{set value(D){M(p,Dt,D);}}.value,parseContext:{set value(D){M(m,_r,D);}}.value}=h,f(this,G,"f").configObjects=v,f(this,Q,"f").unfreeze(),f(this,ke,"f").unfreeze(),f(this,Re,"f").unfreeze(),f(this,Ct,"f").unfreeze();}[vD](t,r){return br(r,i=>(t(i),i))}getInternalMethods(){return {getCommandInstance:this[bD].bind(this),getContext:this[SD].bind(this),getHasOutput:this[xD].bind(this),getLoggerInstance:this[DD].bind(this),getParseContext:this[_D].bind(this),getParserConfiguration:this[Ir].bind(this),getUsageConfiguration:this[hD].bind(this),getUsageInstance:this[ED].bind(this),getValidationInstance:this[wD].bind(this),hasParseCallback:this[Pu].bind(this),isGlobalContext:this[$D].bind(this),postProcess:this[Or].bind(this),reset:this[Ph].bind(this),runValidation:this[Fh].bind(this),runYargsParserAndExecuteCommands:this[Lo].bind(this),setHasOutput:this[ID].bind(this)}}[bD](){return f(this,Re,"f")}[SD](){return f(this,Uo,"f")}[xD](){return f(this,xt,"f")}[DD](){return f(this,Dr,"f")}[_D](){return f(this,_r,"f")||{}}[ED](){return f(this,Q,"f")}[wD](){return f(this,ke,"f")}[Pu](){return !!f(this,Dt,"f")}[$D](){return f(this,Ou,"f")}[Or](t,r,i,n){return i||ve(t)||(r||(t=this[lD](t)),(this[Ir]()["parse-positional-numbers"]||this[Ir]()["parse-positional-numbers"]===void 0)&&(t=this[yD](t)),n&&(t=vr(t,this,f(this,Ct,"f").getMiddleware(),false))),t}[Ph](t={}){M(this,G,f(this,G,"f")||{});let r={};r.local=f(this,G,"f").local||[],r.configObjects=f(this,G,"f").configObjects||[];let i={};r.local.forEach(a=>{i[a]=true,(t[a]||[]).forEach(u=>{i[u]=true;});}),Object.assign(f(this,Er,"f"),Object.keys(f(this,sn,"f")).reduce((a,u)=>{let c=f(this,sn,"f")[u].filter(l=>!(l in i));return c.length>0&&(a[u]=c),a},{})),M(this,sn,{});let n=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return n.forEach(a=>{r[a]=(f(this,G,"f")[a]||[]).filter(u=>!i[u]);}),o.forEach(a=>{r[a]=Bn(f(this,G,"f")[a],u=>!i[u]);}),r.envPrefix=f(this,G,"f").envPrefix,M(this,G,r),M(this,Q,f(this,Q,"f")?f(this,Q,"f").reset(i):nD(this,f(this,K,"f"))),M(this,ke,f(this,ke,"f")?f(this,ke,"f").reset(i):uD(this,f(this,Q,"f"),f(this,K,"f"))),M(this,Re,f(this,Re,"f")?f(this,Re,"f").reset():Qx(f(this,Q,"f"),f(this,ke,"f"),f(this,Ct,"f"),f(this,K,"f"))),f(this,pt,"f")||M(this,pt,oD(this,f(this,Q,"f"),f(this,Re,"f"),f(this,K,"f"))),f(this,Ct,"f").reset(),M(this,St,null),M(this,We,""),M(this,Zn,null),M(this,xt,false),this.parsed=false,this}[kD](t,r){return f(this,K,"f").path.relative(t,r)}[Lo](t,r,i,n=0,o=false){var a,u,c,l;let d=!!i||o;t=t||f(this,Wn,"f"),f(this,G,"f").__=f(this,K,"f").y18n.__,f(this,G,"f").configuration=this[Ir]();let p=!!f(this,G,"f").configuration["populate--"],m=Object.assign({},f(this,G,"f").configuration,{"populate--":true}),h=f(this,K,"f").Parser.detailed(t,Object.assign({},f(this,G,"f"),{configuration:{"parse-positional-numbers":false,...m}})),v=Object.assign(h.argv,f(this,_r,"f")),D,b=h.aliases,U=false,H=false;Object.keys(v).forEach(B=>{B===f(this,Rt,"f")&&v[B]?U=true:B===f(this,un,"f")&&v[B]&&(H=true);}),v.$0=this.$0,this.parsed=h,n===0&&f(this,Q,"f").clearCachedHelpMessage();try{if(this[kh](),r)return this[Or](v,p,!!i,!1);f(this,Rt,"f")&&[f(this,Rt,"f")].concat(b[f(this,Rt,"f")]||[]).filter(ne=>ne.length>1).includes(""+v._[v._.length-1])&&(v._.pop(),U=!0),M(this,Ou,!1,"f");let B=f(this,Re,"f").getCommands(),A=!((a=f(this,pt,"f"))===null||a===void 0)&&a.completionKey?[(u=f(this,pt,"f"))===null||u===void 0?void 0:u.completionKey,...(l=this.getAliases()[(c=f(this,pt,"f"))===null||c===void 0?void 0:c.completionKey])!==null&&l!==void 0?l:[]].some(z=>Object.prototype.hasOwnProperty.call(v,z)):!1,O=U||A||o;if(v._.length){if(B.length){let z;for(let ne=n||0,ce;v._[ne]!==void 0;ne++)if(ce=String(v._[ne]),B.includes(ce)&&ce!==f(this,St,"f")){let be=f(this,Re,"f").runCommand(ce,this,h,ne+1,o,U||H||o);return this[Or](be,p,!!i,!1)}else if(!z&&ce!==f(this,St,"f")){z=ce;break}!f(this,Re,"f").hasDefaultCommand()&&f(this,Au,"f")&&z&&!O&&f(this,ke,"f").recommendCommands(z,B);}f(this,St,"f")&&v._.includes(f(this,St,"f"))&&!A&&(f(this,Ot,"f")&&Vn(!0),this.showCompletionScript(),this.exit(0));}if(f(this,Re,"f").hasDefaultCommand()&&!O){let z=f(this,Re,"f").runCommand(null,this,h,0,o,U||H||o);return this[Or](z,p,!!i,!1)}if(A){f(this,Ot,"f")&&Vn(!0),t=[].concat(t);let z=t.slice(t.indexOf(`--${f(this,pt,"f").completionKey}`)+1);return f(this,pt,"f").getCompletion(z,(ne,ce)=>{if(ne)throw new Ce(ne.message);(ce||[]).forEach(be=>{f(this,Dr,"f").log(be);}),this.exit(0);}),this[Or](v,!p,!!i,!1)}if(f(this,xt,"f")||(U?(f(this,Ot,"f")&&Vn(!0),d=!0,this.showHelp(z=>{f(this,Dr,"f").log(z),this.exit(0);})):H&&(f(this,Ot,"f")&&Vn(!0),d=!0,f(this,Q,"f").showVersion("log"),this.exit(0))),!d&&f(this,G,"f").skipValidation.length>0&&(d=Object.keys(v).some(z=>f(this,G,"f").skipValidation.indexOf(z)>=0&&v[z]===!0)),!d){if(h.error)throw new Ce(h.error.message);if(!A){let z=this[Fh](b,{},h.error);i||(D=vr(v,this,f(this,Ct,"f").getMiddleware(),!0)),D=this[vD](z,D??v),ve(D)&&!i&&(D=D.then(()=>vr(v,this,f(this,Ct,"f").getMiddleware(),!1)));}}}catch(B){if(B instanceof Ce)f(this,Q,"f").fail(B.message,B);else throw B}return this[Or](D??v,p,!!i,true)}[Fh](t,r,i,n){let o={...this.getDemandedOptions()};return a=>{if(i)throw new Ce(i.message);f(this,ke,"f").nonOptionCount(a),f(this,ke,"f").requiredArguments(a,o);let u=false;f(this,$r,"f")&&(u=f(this,ke,"f").unknownCommands(a)),f(this,wr,"f")&&!u?f(this,ke,"f").unknownArguments(a,t,r,!!n):f(this,kr,"f")&&f(this,ke,"f").unknownArguments(a,t,{},false,false),f(this,ke,"f").limitedChoices(a),f(this,ke,"f").implications(a),f(this,ke,"f").conflicting(a);}}[ID](){M(this,xt,true);}[Cr](t){if(typeof t=="string")f(this,G,"f").key[t]=true;else for(let r of t)f(this,G,"f").key[r]=true;}};function eD(e){return !!e&&typeof e.getInternalMethods=="function"}var HT=OD(Sh),CD=HT;var KT=Os({version:ui()});function Fu(){let e=readFileSync(new URL("../package.json",import.meta.url),"utf8");return KT.parse(JSON.parse(e)).version}var YT=Ue(`
135
+ `;var wm=class{constructor(t,n,i,r){var o,a,s;this.yargs=t,this.usage=n,this.command=i,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(s=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&s!==void 0?s:false;}defaultCompletion(t,n,i,r){let o=this.command.getCommandHandlers();for(let s=0,c=t.length;s<c;++s)if(o[t[s]]&&o[t[s]].builder){let l=o[t[s]].builder;if(Ps(l)){this.indexAfterLastReset=s+1;let d=this.yargs.getInternalMethods().reset();return l(d,true),d.argv}}let a=[];this.commandCompletions(a,t,i),this.optionCompletions(a,t,n,i),this.choicesFromOptionsCompletions(a,t,n,i),this.choicesFromPositionalsCompletions(a,t,n,i),r(null,a);}commandCompletions(t,n,i){let r=this.yargs.getInternalMethods().getContext().commands;!i.match(/^-/)&&r[r.length-1]!==i&&!this.previousArgHasChoices(n)&&this.usage.getCommands().forEach(o=>{let a=br(o[0]).cmd;if(n.indexOf(a)===-1)if(!this.zshShell)t.push(a);else {let s=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+s);}});}optionCompletions(t,n,i,r){if((r.match(/^-/)||r===""&&t.length===0)&&!this.previousArgHasChoices(n)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(s=>{let c=!!o.configuration["boolean-negation"]&&o.boolean.includes(s);!a.includes(s)&&!o.hiddenOptions.includes(s)&&!this.argsContainKey(n,s,c)&&this.completeOptionKey(s,t,r,c&&!!o.default[s]);});}}choicesFromOptionsCompletions(t,n,i,r){if(this.previousArgHasChoices(n)){let o=this.getPreviousArgChoices(n);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")));}}choicesFromPositionalsCompletions(t,n,i,r){if(r===""&&t.length>0&&this.previousArgHasChoices(n))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),s=o[i._.length-a-1];if(!s)return;let c=this.yargs.getOptions().choices[s]||[];for(let l of c)l.startsWith(r)&&t.push(l.replace(/:/g,"\\:"));}getPreviousArgChoices(t){if(t.length<1)return;let n=t[t.length-1],i="";if(!n.startsWith("-")&&t.length>1&&(i=n,n=t[t.length-2]),!n.startsWith("-"))return;let r=n.replace(/^-+/,""),o=this.yargs.getOptions(),a=[r,...this.yargs.getAliases()[r]||[]],s;for(let c of a)if(Object.prototype.hasOwnProperty.call(o.key,c)&&Array.isArray(o.choices[c])){s=o.choices[c];break}if(s)return s.filter(c=>!i||c.startsWith(i))}previousArgHasChoices(t){let n=this.getPreviousArgChoices(t);return n!==void 0&&n.length>0}argsContainKey(t,n,i){let r=o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1;if(r(n)||i&&r(`no-${n}`))return true;if(this.aliases){for(let o of this.aliases[n])if(r(o))return true}return false}completeOptionKey(t,n,i,r){var o,a,s,c;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(j=>{let H=h[j];return typeof H=="string"&&H.length>0}),x=y?h[y]:void 0,b=(c=(s=h[t])!==null&&s!==void 0?s:x)!==null&&c!==void 0?c:"";l=`${t.replace(/:/g,"\\:")}:${b.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`;}let d=h=>/^--/.test(h),p=h=>/^[^0-9]$/.test(h),m=!d(i)&&p(t)?"-":"--";n.push(m+l),r&&n.push(m+"no-"+l);}customCompletion(t,n,i,r){if(et(this.customCompletionFunction,null,this.shim),VC(this.customCompletionFunction)){let o=this.customCompletionFunction(i,n);return ge(o)?o.then(a=>{this.shim.process.nextTick(()=>{r(null,a);});}).catch(a=>{this.shim.process.nextTick(()=>{r(a,void 0);});}):r(null,o)}else return ZC(this.customCompletionFunction)?this.customCompletionFunction(i,n,(o=r)=>this.defaultCompletion(t,n,i,o),o=>{r(null,o);}):this.customCompletionFunction(i,n,o=>{r(null,o);})}getCompletion(t,n){let i=t.length?t[t.length-1]:"",r=this.yargs.parse(t,true),o=this.customCompletionFunction?a=>this.customCompletion(t,a,i,n):a=>this.defaultCompletion(t,a,i,n);return ge(r)?r.then(o):o(r)}generateCompletionScript(t,n){let i=this.zshShell?U_:z_,r=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),i=i.replace(/{{app_name}}/g,r),i=i.replace(/{{completion_command}}/g,n),i.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t;}setParsed(t){this.aliases=t.aliases;}};function j_(e,t,n,i){return new wm(e,t,n,i)}function VC(e){return e.length<3}function ZC(e){return e.length>3}function L_(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let n=[],i;for(i=0;i<=t.length;i++)n[i]=[i];let r;for(r=0;r<=e.length;r++)n[0][r]=r;for(i=1;i<=t.length;i++)for(r=1;r<=e.length;r++)t.charAt(i-1)===e.charAt(r-1)?n[i][r]=n[i-1][r-1]:i>1&&r>1&&t.charAt(i-2)===e.charAt(r-1)&&t.charAt(i-1)===e.charAt(r-2)?n[i][r]=n[i-2][r-2]+1:n[i][r]=Math.min(n[i-1][r-1]+1,Math.min(n[i][r-1]+1,n[i-1][r]+1));return n[t.length][e.length]}var M_=["$0","--","_"];function B_(e,t,n){let i=n.y18n.__,r=n.y18n.__n,o={};o.nonOptionCount=function(p){let m=e.getDemandedCommands(),y=p._.length+(p["--"]?p["--"].length:0)-e.getInternalMethods().getContext().commands.length;m._&&(y<m._.min||y>m._.max)&&(y<m._.min?m._.minMsg!==void 0?t.fail(m._.minMsg?m._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,m._.min.toString()):null):t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),m._.min.toString())):y>m._.max&&(m._.maxMsg!==void 0?t.fail(m._.maxMsg?m._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,m._.max.toString()):null):t.fail(r("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),m._.max.toString()))));},o.positionalCount=function(p,m){m<p&&t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",m,m+"",p+""));},o.requiredArguments=function(p,m){let h=null;for(let y of Object.keys(m))(!Object.prototype.hasOwnProperty.call(p,y)||typeof p[y]>"u")&&(h=h||{},h[y]=m[y]);if(h){let y=[];for(let b of Object.keys(h)){let j=h[b];j&&y.indexOf(j)<0&&y.push(j);}let x=y.length?`
136
+ ${y.join(`
137
+ `)}`:"";t.fail(r("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+x));}},o.unknownArguments=function(p,m,h,y,x=true){var b;let j=e.getInternalMethods().getCommandInstance().getCommands(),H=[],B=e.getInternalMethods().getContext();if(Object.keys(p).forEach(R=>{!M_.includes(R)&&!Object.prototype.hasOwnProperty.call(h,R)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),R)&&!o.isValidAndSomeAliasIsNotNew(R,m)&&H.push(R);}),x&&(B.commands.length>0||j.length>0||y)&&p._.slice(B.commands.length).forEach(R=>{j.includes(""+R)||H.push(""+R);}),x){let k=((b=e.getDemandedCommands()._)===null||b===void 0?void 0:b.max)||0,z=B.commands.length+k;z<p._.length&&p._.slice(z).forEach(re=>{re=String(re),!B.commands.includes(re)&&!H.includes(re)&&H.push(re);});}H.length&&t.fail(r("Unknown argument: %s","Unknown arguments: %s",H.length,H.map(R=>R.trim()?R:`"${R}"`).join(", ")));},o.unknownCommands=function(p){let m=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return (y.commands.length>0||m.length>0)&&p._.slice(y.commands.length).forEach(x=>{m.includes(""+x)||h.push(""+x);}),h.length>0?(t.fail(r("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),true):false},o.isValidAndSomeAliasIsNotNew=function(p,m){if(!Object.prototype.hasOwnProperty.call(m,p))return false;let h=e.parsed.newAliases;return [p,...m[p]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[p])},o.limitedChoices=function(p){let m=e.getOptions(),h={};if(!Object.keys(m.choices).length)return;Object.keys(p).forEach(b=>{M_.indexOf(b)===-1&&Object.prototype.hasOwnProperty.call(m.choices,b)&&[].concat(p[b]).forEach(j=>{m.choices[b].indexOf(j)===-1&&j!==void 0&&(h[b]=(h[b]||[]).concat(j));});});let y=Object.keys(h);if(!y.length)return;let x=i("Invalid values:");y.forEach(b=>{x+=`
138
+ ${i("Argument: %s, Given: %s, Choices: %s",b,t.stringifiedValues(h[b]),t.stringifiedValues(m.choices[b]))}`;}),t.fail(x);};let a={};o.implies=function(p,m){L("<string|object> [array|number|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.implies(h,p[h]);}):(e.global(p),a[p]||(a[p]=[]),Array.isArray(m)?m.forEach(h=>o.implies(p,h)):(et(m,void 0,n),a[p].push(m)));},o.getImplied=function(){return a};function s(d,p){let m=Number(p);return p=isNaN(m)?p:m,typeof p=="number"?p=d._.length>=p:p.match(/^--no-.+/)?(p=p.match(/^--no-(.+)/)[1],p=!Object.prototype.hasOwnProperty.call(d,p)):p=Object.prototype.hasOwnProperty.call(d,p),p}o.implications=function(p){let m=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(x=>{let b=y,j=x;b=s(p,b),x=s(p,x),b&&!x&&m.push(` ${y} -> ${j}`);});}),m.length){let h=`${i("Implications failed:")}
139
+ `;m.forEach(y=>{h+=y;}),t.fail(h);}};let c={};o.conflicts=function(p,m){L("<string|object> [array|string]",[p,m],arguments.length),typeof p=="object"?Object.keys(p).forEach(h=>{o.conflicts(h,p[h]);}):(e.global(p),c[p]||(c[p]=[]),Array.isArray(m)?m.forEach(h=>o.conflicts(p,h)):c[p].push(m));},o.getConflicting=()=>c,o.conflicting=function(p){Object.keys(p).forEach(m=>{c[m]&&c[m].forEach(h=>{h&&p[m]!==void 0&&p[h]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach(m=>{c[m].forEach(h=>{h&&p[n.Parser.camelCase(m)]!==void 0&&p[n.Parser.camelCase(h)]!==void 0&&t.fail(i("Arguments %s and %s are mutually exclusive",m,h));});});},o.recommendCommands=function(p,m){m=m.sort((b,j)=>j.length-b.length);let y=null,x=1/0;for(let b=0,j;(j=m[b])!==void 0;b++){let H=L_(p,j);H<=3&&H<x&&(x=H,y=j);}y&&t.fail(i("Did you mean %s?",y));},o.reset=function(p){return a=_r(a,m=>!p[m]),c=_r(c,m=>!p[m]),o};let l=[];return o.freeze=function(){l.push({implied:a,conflicting:c});},o.unfreeze=function(){let p=l.pop();et(p,void 0,n),{implied:a,conflicting:c}=p;},o}var $m=[],io;function oo(e,t,n,i){io=i;let r={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return r;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=GC(t,e.extends);else try{a=import.meta.resolve(e.extends);}catch{return e}WC(a),$m.push(a),r=o?JSON.parse(io.readFileSync(a,"utf8")):i.require(e.extends),delete e.extends,r=oo(r,io.path.dirname(a),n,io);}return $m=[],n?V_(r,e):Object.assign({},r,e)}function WC(e){if($m.indexOf(e)>-1)throw new Ce(`Circular extended configurations: '${e}'.`)}function GC(e,t){return io.path.resolve(e,t)}function V_(e,t){let n={};function i(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(n,e);for(let r of Object.keys(t))i(t[r])&&i(n[r])?n[r]=V_(e[r],t[r]):n[r]=t[r];return n}var M=function(e,t,n,i,r){if(typeof t=="function"?e!==t||true:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n},f=function(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},Ae,qr,ao,st,ft,zs,xr,Hr,Us,St,js,Et,Yt,mt,wt,Ls,Yr,Be,G,Ms,Bs,ht,Jr,ei,Kr,Sr,Vs,J,Xr,Qr,en,Q,Zs,Jt,Ee;function cD(e){return (t=[],n=e.process.cwd(),i)=>{let r=new zm(t,n,i,e);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:true}),r.help(),r.version(),r}}var Z_=Symbol("copyDoubleDash"),W_=Symbol("copyDoubleDash"),Im=Symbol("deleteFromParserHintObject"),G_=Symbol("emitWarning"),q_=Symbol("freeze"),H_=Symbol("getDollarZero"),tn=Symbol("getParserConfiguration"),Y_=Symbol("getUsageConfiguration"),Om=Symbol("guessLocale"),J_=Symbol("guessVersion"),K_=Symbol("parsePositionalNumbers"),km=Symbol("pkgUp"),Er=Symbol("populateParserHintArray"),ti=Symbol("populateParserHintSingleValueDictionary"),Cm=Symbol("populateParserHintArrayDictionary"),Am=Symbol("populateParserHintDictionary"),Rm=Symbol("sanitizeKey"),Tm=Symbol("setKey"),Fm=Symbol("unfreeze"),X_=Symbol("validateAsync"),Q_=Symbol("getCommandInstance"),eD=Symbol("getContext"),tD=Symbol("getHasOutput"),rD=Symbol("getLoggerInstance"),nD=Symbol("getParseContext"),iD=Symbol("getUsageInstance"),oD=Symbol("getValidationInstance"),Ws=Symbol("hasParseCallback"),aD=Symbol("isGlobalContext"),rn=Symbol("postProcess"),sD=Symbol("rebase"),Pm=Symbol("reset"),so=Symbol("runYargsParserAndExecuteCommands"),Nm=Symbol("runValidation"),uD=Symbol("setHasOutput"),nn=Symbol("kTrackManuallySetKeys"),qC="en_US",zm=class{constructor(t=[],n,i,r){this.customScriptName=false,this.parsed=false,Ae.set(this,void 0),qr.set(this,void 0),ao.set(this,{commands:[],fullCommands:[]}),st.set(this,null),ft.set(this,null),zs.set(this,"show-hidden"),xr.set(this,null),Hr.set(this,true),Us.set(this,{}),St.set(this,true),js.set(this,[]),Et.set(this,void 0),Yt.set(this,{}),mt.set(this,false),wt.set(this,null),Ls.set(this,true),Yr.set(this,void 0),Be.set(this,""),G.set(this,void 0),Ms.set(this,void 0),Bs.set(this,{}),ht.set(this,null),Jr.set(this,null),ei.set(this,{}),Kr.set(this,{}),Sr.set(this,void 0),Vs.set(this,false),J.set(this,void 0),Xr.set(this,false),Qr.set(this,false),en.set(this,false),Q.set(this,void 0),Zs.set(this,{}),Jt.set(this,null),Ee.set(this,void 0),M(this,J,r),M(this,Sr,t),M(this,qr,n),M(this,Ms,i),M(this,Et,new Fs(this)),this.$0=this[H_](),this[Pm](),M(this,Ae,f(this,Ae,"f")),M(this,Q,f(this,Q,"f")),M(this,Ee,f(this,Ee,"f")),M(this,G,f(this,G,"f")),f(this,G,"f").showHiddenOpt=f(this,zs,"f"),M(this,Yr,this[W_]()),f(this,J,"f").y18n.setLocale(qC);}addHelpOpt(t,n){let i="help";return L("[string|boolean] [string]",[t,n],arguments.length),f(this,wt,"f")&&(this[Im](f(this,wt,"f")),M(this,wt,null)),t===false&&n===void 0?this:(M(this,wt,typeof t=="string"?t:i),this.boolean(f(this,wt,"f")),this.describe(f(this,wt,"f"),n||f(this,Q,"f").deferY18nLookup("Show help")),this)}help(t,n){return this.addHelpOpt(t,n)}addShowHiddenOpt(t,n){if(L("[string|boolean] [string]",[t,n],arguments.length),t===false&&n===void 0)return this;let i=typeof t=="string"?t:f(this,zs,"f");return this.boolean(i),this.describe(i,n||f(this,Q,"f").deferY18nLookup("Show hidden options")),f(this,G,"f").showHiddenOpt=i,this}showHidden(t,n){return this.addShowHiddenOpt(t,n)}alias(t,n){return L("<object|string|array> [string|array]",[t,n],arguments.length),this[Cm](this.alias.bind(this),"alias",t,n),this}array(t){return L("<array|string>",[t],arguments.length),this[Er]("array",t),this[nn](t),this}boolean(t){return L("<array|string>",[t],arguments.length),this[Er]("boolean",t),this[nn](t),this}check(t,n){return L("<function> [boolean]",[t,n],arguments.length),this.middleware((i,r)=>Gr(()=>t(i,r.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&f(this,Q,"f").fail(o.toString(),o):f(this,Q,"f").fail(f(this,J,"f").y18n.__("Argument check failed: %s",t.toString())),i),o=>(f(this,Q,"f").fail(o.message?o.message:o.toString(),o),i)),false,n),this}choices(t,n){return L("<object|string|array> [string|array]",[t,n],arguments.length),this[Cm](this.choices.bind(this),"choices",t,n),this}coerce(t,n){if(L("<object|string|array> [function]",[t,n],arguments.length),Array.isArray(t)){if(!n)throw new Ce("coerce callback must be provided");for(let r of t)this.coerce(r,n);return this}else if(typeof t=="object"){for(let r of Object.keys(t))this.coerce(r,t[r]);return this}if(!n)throw new Ce("coerce callback must be provided");let i=t;return f(this,G,"f").key[i]=true,f(this,Et,"f").addCoerceMiddleware((r,o)=>{var a;let s=(a=o.getAliases()[i])!==null&&a!==void 0?a:[],c=[i,...s].filter(l=>Object.prototype.hasOwnProperty.call(r,l));return c.length===0?r:Gr(()=>n(r[c[0]]),l=>(c.forEach(d=>{r[d]=l;}),r),l=>{throw new Ce(l.message)})},i),this}conflicts(t,n){return L("<string|object> [string|array]",[t,n],arguments.length),f(this,Ee,"f").conflicts(t,n),this}config(t="config",n,i){return L("[object|string] [string|function] [function]",[t,n,i],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=oo(t,f(this,qr,"f"),this[tn]()["deep-merge-config"]||false,f(this,J,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(t),this):(typeof n=="function"&&(i=n,n=void 0),this.describe(t,n||f(this,Q,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(r=>{f(this,G,"f").config[r]=i||true;}),this)}completion(t,n,i){return L("[string] [string|boolean|function] [function]",[t,n,i],arguments.length),typeof n=="function"&&(i=n,n=void 0),M(this,ft,t||f(this,ft,"f")||"completion"),!n&&n!==false&&(n="generate completion script"),this.command(f(this,ft,"f"),n),i&&f(this,st,"f").registerFunction(i),this}command(t,n,i,r,o,a){return L("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,n,i,r,o,a],arguments.length),f(this,Ae,"f").addHandler(t,n,i,r,o,a),this}commands(t,n,i,r,o,a){return this.command(t,n,i,r,o,a)}commandDir(t,n){L("<string> [object]",[t,n],arguments.length);let i=f(this,Ms,"f")||f(this,J,"f").require;return f(this,Ae,"f").addDirectory(t,i,f(this,J,"f").getCallerFile(),n),this}count(t){return L("<array|string>",[t],arguments.length),this[Er]("count",t),this[nn](t),this}default(t,n,i){return L("<object|string|array> [*] [string]",[t,n,i],arguments.length),i&&(xm(t,f(this,J,"f")),f(this,G,"f").defaultDescription[t]=i),typeof n=="function"&&(xm(t,f(this,J,"f")),f(this,G,"f").defaultDescription[t]||(f(this,G,"f").defaultDescription[t]=f(this,Q,"f").functionDescription(n)),n=n.call()),this[ti](this.default.bind(this),"default",t,n),this}defaults(t,n,i){return this.default(t,n,i)}demandCommand(t=1,n,i,r){return L("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,n,i,r],arguments.length),typeof n!="number"&&(i=n,n=1/0),this.global("_",false),f(this,G,"f").demandedCommands._={min:t,max:n,minMsg:i,maxMsg:r},this}demand(t,n,i){return Array.isArray(n)?(n.forEach(r=>{et(i,true,f(this,J,"f")),this.demandOption(r,i);}),n=1/0):typeof n!="number"&&(i=n,n=1/0),typeof t=="number"?(et(i,true,f(this,J,"f")),this.demandCommand(t,n,i,i)):Array.isArray(t)?t.forEach(r=>{et(i,true,f(this,J,"f")),this.demandOption(r,i);}):typeof i=="string"?this.demandOption(t,i):(i===true||typeof i>"u")&&this.demandOption(t),this}demandOption(t,n){return L("<object|string|array> [string]",[t,n],arguments.length),this[ti](this.demandOption.bind(this),"demandedOptions",t,n),this}deprecateOption(t,n){return L("<string> [string|boolean]",[t,n],arguments.length),f(this,G,"f").deprecatedOptions[t]=n,this}describe(t,n){return L("<object|string|array> [string]",[t,n],arguments.length),this[Tm](t,true),f(this,Q,"f").describe(t,n),this}detectLocale(t){return L("<boolean>",[t],arguments.length),M(this,Hr,t),this}env(t){return L("[string|boolean]",[t],arguments.length),t===false?delete f(this,G,"f").envPrefix:f(this,G,"f").envPrefix=t||"",this}epilogue(t){return L("<string>",[t],arguments.length),f(this,Q,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,n){return L("<string|array> [string]",[t,n],arguments.length),Array.isArray(t)?t.forEach(i=>this.example(...i)):f(this,Q,"f").example(t,n),this}exit(t,n){M(this,mt,true),M(this,xr,n),f(this,St,"f")&&f(this,J,"f").process.exit(t);}exitProcess(t=true){return L("[boolean]",[t],arguments.length),M(this,St,t),this}fail(t){if(L("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==false)throw new Ce("Invalid first argument. Expected function or boolean 'false'");return f(this,Q,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,n){return L("<array> [function]",[t,n],arguments.length),n?f(this,st,"f").getCompletion(t,n):new Promise((i,r)=>{f(this,st,"f").getCompletion(t,(o,a)=>{o?r(o):i(a);});})}getDemandedOptions(){return L([],0),f(this,G,"f").demandedOptions}getDemandedCommands(){return L([],0),f(this,G,"f").demandedCommands}getDeprecatedOptions(){return L([],0),f(this,G,"f").deprecatedOptions}getDetectLocale(){return f(this,Hr,"f")}getExitProcess(){return f(this,St,"f")}getGroups(){return Object.assign({},f(this,Yt,"f"),f(this,Kr,"f"))}getHelp(){if(M(this,mt,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[so](f(this,Sr,"f"),void 0,void 0,0,true);if(ge(n))return n.then(()=>f(this,Q,"f").help())}let t=f(this,Ae,"f").runDefaultBuilderOn(this);if(ge(t))return t.then(()=>f(this,Q,"f").help())}return Promise.resolve(f(this,Q,"f").help())}getOptions(){return f(this,G,"f")}getStrict(){return f(this,Xr,"f")}getStrictCommands(){return f(this,Qr,"f")}getStrictOptions(){return f(this,en,"f")}global(t,n){return L("<string|array> [boolean]",[t,n],arguments.length),t=[].concat(t),n!==false?f(this,G,"f").local=f(this,G,"f").local.filter(i=>t.indexOf(i)===-1):t.forEach(i=>{f(this,G,"f").local.includes(i)||f(this,G,"f").local.push(i);}),this}group(t,n){L("<string|array> <string>",[t,n],arguments.length);let i=f(this,Kr,"f")[n]||f(this,Yt,"f")[n];f(this,Kr,"f")[n]&&delete f(this,Kr,"f")[n];let r={};return f(this,Yt,"f")[n]=(i||[]).concat(t).filter(o=>r[o]?false:r[o]=true),this}hide(t){return L("<string>",[t],arguments.length),f(this,G,"f").hiddenOptions.push(t),this}implies(t,n){return L("<string|object> [number|string|array]",[t,n],arguments.length),f(this,Ee,"f").implies(t,n),this}locale(t){return L("[string]",[t],arguments.length),t===void 0?(this[Om](),f(this,J,"f").y18n.getLocale()):(M(this,Hr,false),f(this,J,"f").y18n.setLocale(t),this)}middleware(t,n,i){return f(this,Et,"f").addMiddleware(t,!!n,i)}nargs(t,n){return L("<string|object|array> [number]",[t,n],arguments.length),this[ti](this.nargs.bind(this),"narg",t,n),this}normalize(t){return L("<array|string>",[t],arguments.length),this[Er]("normalize",t),this}number(t){return L("<array|string>",[t],arguments.length),this[Er]("number",t),this[nn](t),this}option(t,n){if(L("<string|object> [object]",[t,n],arguments.length),typeof t=="object")Object.keys(t).forEach(i=>{this.options(i,t[i]);});else {typeof n!="object"&&(n={}),this[nn](t),f(this,Jt,"f")&&(t==="version"||n?.alias==="version")&&this[G_](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
140
+ `),void 0,"versionWarning"),f(this,G,"f").key[t]=true,n.alias&&this.alias(t,n.alias);let i=n.deprecate||n.deprecated;i&&this.deprecateOption(t,i);let r=n.demand||n.required||n.require;r&&this.demand(t,r),n.demandOption&&this.demandOption(t,typeof n.demandOption=="string"?n.demandOption:void 0),n.conflicts&&this.conflicts(t,n.conflicts),"default"in n&&this.default(t,n.default),n.implies!==void 0&&this.implies(t,n.implies),n.nargs!==void 0&&this.nargs(t,n.nargs),n.config&&this.config(t,n.configParser),n.normalize&&this.normalize(t),n.choices&&this.choices(t,n.choices),n.coerce&&this.coerce(t,n.coerce),n.group&&this.group(t,n.group),(n.boolean||n.type==="boolean")&&(this.boolean(t),n.alias&&this.boolean(n.alias)),(n.array||n.type==="array")&&(this.array(t),n.alias&&this.array(n.alias)),(n.number||n.type==="number")&&(this.number(t),n.alias&&this.number(n.alias)),(n.string||n.type==="string")&&(this.string(t),n.alias&&this.string(n.alias)),(n.count||n.type==="count")&&this.count(t),typeof n.global=="boolean"&&this.global(t,n.global),n.defaultDescription&&(f(this,G,"f").defaultDescription[t]=n.defaultDescription),n.skipValidation&&this.skipValidation(t);let o=n.describe||n.description||n.desc,a=f(this,Q,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),n.hidden&&this.hide(t),n.requiresArg&&this.requiresArg(t);}return this}options(t,n){return this.option(t,n)}parse(t,n,i){L("[string|array] [function|boolean|object] [function]",[t,n,i],arguments.length),this[q_](),typeof t>"u"&&(t=f(this,Sr,"f")),typeof n=="object"&&(M(this,Jr,n),n=i),typeof n=="function"&&(M(this,ht,n),n=false),n||M(this,Sr,t),f(this,ht,"f")&&M(this,St,false);let r=this[so](t,!!n),o=this.parsed;return f(this,st,"f").setParsed(this.parsed),ge(r)?r.then(a=>(f(this,ht,"f")&&f(this,ht,"f").call(this,f(this,xr,"f"),a,f(this,Be,"f")),a)).catch(a=>{throw f(this,ht,"f")&&f(this,ht,"f")(a,this.parsed.argv,f(this,Be,"f")),a}).finally(()=>{this[Fm](),this.parsed=o;}):(f(this,ht,"f")&&f(this,ht,"f").call(this,f(this,xr,"f"),r,f(this,Be,"f")),this[Fm](),this.parsed=o,r)}parseAsync(t,n,i){let r=this.parse(t,n,i);return ge(r)?r:Promise.resolve(r)}parseSync(t,n,i){let r=this.parse(t,n,i);if(ge(r))throw new Ce(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(t){return L("<object>",[t],arguments.length),M(this,Bs,t),this}pkgConf(t,n){L("<string> [string]",[t,n],arguments.length);let i=null,r=this[km](n||f(this,qr,"f"));return r[t]&&typeof r[t]=="object"&&(i=oo(r[t],n||f(this,qr,"f"),this[tn]()["deep-merge-config"]||false,f(this,J,"f")),f(this,G,"f").configObjects=(f(this,G,"f").configObjects||[]).concat(i)),this}positional(t,n){L("<string> <object>",[t,n],arguments.length);let i=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];n=_r(n,(a,s)=>a==="type"&&!["string","number","boolean"].includes(s)?false:i.includes(a));let r=f(this,ao,"f").fullCommands[f(this,ao,"f").fullCommands.length-1],o=r?f(this,Ae,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Xn(o).forEach(a=>{let s=o[a];Array.isArray(s)?s.indexOf(t)!==-1&&(n[a]=true):s[t]&&!(a in n)&&(n[a]=s[t]);}),this.group(t,f(this,Q,"f").getPositionalGroupName()),this.option(t,n)}recommendCommands(t=true){return L("[boolean]",[t],arguments.length),M(this,Vs,t),this}required(t,n,i){return this.demand(t,n,i)}require(t,n,i){return this.demand(t,n,i)}requiresArg(t){return L("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&f(this,G,"f").narg[t]?this:(this[ti](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,n){return L("[string] [string]",[t,n],arguments.length),t=t||this.$0,f(this,Yr,"f").log(f(this,st,"f").generateCompletionScript(t,n||f(this,ft,"f")||"completion")),this}showHelp(t){if(L("[string|function]",[t],arguments.length),M(this,mt,true),!f(this,Q,"f").hasCachedHelpMessage()){if(!this.parsed){let i=this[so](f(this,Sr,"f"),void 0,void 0,0,true);if(ge(i))return i.then(()=>{f(this,Q,"f").showHelp(t);}),this}let n=f(this,Ae,"f").runDefaultBuilderOn(this);if(ge(n))return n.then(()=>{f(this,Q,"f").showHelp(t);}),this}return f(this,Q,"f").showHelp(t),this}scriptName(t){return this.customScriptName=true,this.$0=t,this}showHelpOnFail(t,n){return L("[boolean|string] [string]",[t,n],arguments.length),f(this,Q,"f").showHelpOnFail(t,n),this}showVersion(t){return L("[string|function]",[t],arguments.length),f(this,Q,"f").showVersion(t),this}skipValidation(t){return L("<array|string>",[t],arguments.length),this[Er]("skipValidation",t),this}strict(t){return L("[boolean]",[t],arguments.length),M(this,Xr,t!==false),this}strictCommands(t){return L("[boolean]",[t],arguments.length),M(this,Qr,t!==false),this}strictOptions(t){return L("[boolean]",[t],arguments.length),M(this,en,t!==false),this}string(t){return L("<array|string>",[t],arguments.length),this[Er]("string",t),this[nn](t),this}terminalWidth(){return L([],0),f(this,J,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return L("<object>",[t],arguments.length),M(this,Hr,false),f(this,J,"f").y18n.updateLocale(t),this}usage(t,n,i,r){if(L("<string|null|undefined> [string|boolean] [function|object] [function]",[t,n,i,r],arguments.length),n!==void 0){if(et(t,null,f(this,J,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,n,i,r);throw new Ce(".usage() description must start with $0 if being used as alias for .command()")}else return f(this,Q,"f").usage(t),this}usageConfiguration(t){return L("<object>",[t],arguments.length),M(this,Zs,t),this}version(t,n,i){let r="version";if(L("[boolean|string] [string] [string]",[t,n,i],arguments.length),f(this,Jt,"f")&&(this[Im](f(this,Jt,"f")),f(this,Q,"f").version(void 0),M(this,Jt,null)),arguments.length===0)i=this[J_](),t=r;else if(arguments.length===1){if(t===false)return this;i=t,t=r;}else arguments.length===2&&(i=n,n=void 0);return M(this,Jt,typeof t=="string"?t:r),n=n||f(this,Q,"f").deferY18nLookup("Show version number"),f(this,Q,"f").version(i||void 0),this.boolean(f(this,Jt,"f")),this.describe(f(this,Jt,"f"),n),this}wrap(t){return L("<number|null|undefined>",[t],arguments.length),f(this,Q,"f").wrap(t),this}[(Ae=new WeakMap,qr=new WeakMap,ao=new WeakMap,st=new WeakMap,ft=new WeakMap,zs=new WeakMap,xr=new WeakMap,Hr=new WeakMap,Us=new WeakMap,St=new WeakMap,js=new WeakMap,Et=new WeakMap,Yt=new WeakMap,mt=new WeakMap,wt=new WeakMap,Ls=new WeakMap,Yr=new WeakMap,Be=new WeakMap,G=new WeakMap,Ms=new WeakMap,Bs=new WeakMap,ht=new WeakMap,Jr=new WeakMap,ei=new WeakMap,Kr=new WeakMap,Sr=new WeakMap,Vs=new WeakMap,J=new WeakMap,Xr=new WeakMap,Qr=new WeakMap,en=new WeakMap,Q=new WeakMap,Zs=new WeakMap,Jt=new WeakMap,Ee=new WeakMap,Z_)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"];}catch{}return t}[W_](){return {log:(...t)=>{this[Ws]()||console.log(...t),M(this,mt,true),f(this,Be,"f").length&&M(this,Be,f(this,Be,"f")+`
141
+ `),M(this,Be,f(this,Be,"f")+t.join(" "));},error:(...t)=>{this[Ws]()||console.error(...t),M(this,mt,true),f(this,Be,"f").length&&M(this,Be,f(this,Be,"f")+`
142
+ `),M(this,Be,f(this,Be,"f")+t.join(" "));}}}[Im](t){Xn(f(this,G,"f")).forEach(n=>{if((r=>r==="configObjects")(n))return;let i=f(this,G,"f")[n];Array.isArray(i)?i.includes(t)&&i.splice(i.indexOf(t),1):typeof i=="object"&&delete i[t];}),delete f(this,Q,"f").getDescriptions()[t];}[G_](t,n,i){f(this,Us,"f")[i]||(f(this,J,"f").process.emitWarning(t,n),f(this,Us,"f")[i]=true);}[q_](){f(this,js,"f").push({options:f(this,G,"f"),configObjects:f(this,G,"f").configObjects.slice(0),exitProcess:f(this,St,"f"),groups:f(this,Yt,"f"),strict:f(this,Xr,"f"),strictCommands:f(this,Qr,"f"),strictOptions:f(this,en,"f"),completionCommand:f(this,ft,"f"),output:f(this,Be,"f"),exitError:f(this,xr,"f"),hasOutput:f(this,mt,"f"),parsed:this.parsed,parseFn:f(this,ht,"f"),parseContext:f(this,Jr,"f")}),f(this,Q,"f").freeze(),f(this,Ee,"f").freeze(),f(this,Ae,"f").freeze(),f(this,Et,"f").freeze();}[H_](){let t="",n;return /\b(node|iojs|electron)(\.exe)?$/.test(f(this,J,"f").process.argv()[0])?n=f(this,J,"f").process.argv().slice(1,2):n=f(this,J,"f").process.argv().slice(0,1),t=n.map(i=>{let r=this[sD](f(this,qr,"f"),i);return i.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<i.length?r:i}).join(" ").trim(),f(this,J,"f").getEnv("_")&&f(this,J,"f").getProcessArgvBin()===f(this,J,"f").getEnv("_")&&(t=f(this,J,"f").getEnv("_").replace(`${f(this,J,"f").path.dirname(f(this,J,"f").process.execPath())}/`,"")),t}[tn](){return f(this,Bs,"f")}[Y_](){return f(this,Zs,"f")}[Om](){if(!f(this,Hr,"f"))return;let t=f(this,J,"f").getEnv("LC_ALL")||f(this,J,"f").getEnv("LC_MESSAGES")||f(this,J,"f").getEnv("LANG")||f(this,J,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""));}[J_](){return this[km]().version||"unknown"}[K_](t){let n=t["--"]?t["--"]:t._;for(let i=0,r;(r=n[i])!==void 0;i++)f(this,J,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(n[i]=Number(r));return t}[km](t){let n=t||"*";if(f(this,ei,"f")[n])return f(this,ei,"f")[n];let i={};try{let r=t||f(this,J,"f").mainFilename;f(this,J,"f").path.extname(r)&&(r=f(this,J,"f").path.dirname(r));let o=f(this,J,"f").findUp(r,(a,s)=>{if(s.includes("package.json"))return "package.json"});et(o,void 0,f(this,J,"f")),i=JSON.parse(f(this,J,"f").readFileSync(o,"utf8"));}catch{}return f(this,ei,"f")[n]=i||{},f(this,ei,"f")[n]}[Er](t,n){n=[].concat(n),n.forEach(i=>{i=this[Rm](i),f(this,G,"f")[t].push(i);});}[ti](t,n,i,r){this[Am](t,n,i,r,(o,a,s)=>{f(this,G,"f")[o][a]=s;});}[Cm](t,n,i,r){this[Am](t,n,i,r,(o,a,s)=>{f(this,G,"f")[o][a]=(f(this,G,"f")[o][a]||[]).concat(s);});}[Am](t,n,i,r,o){if(Array.isArray(i))i.forEach(a=>{t(a,r);});else if((a=>typeof a=="object")(i))for(let a of Xn(i))t(a,i[a]);else o(n,this[Rm](i),r);}[Rm](t){return t==="__proto__"?"___proto___":t}[Tm](t,n){return this[ti](this[Tm].bind(this),"key",t,n),this}[Fm](){var t,n,i,r,o,a,s,c,l,d,p,m;let h=f(this,js,"f").pop();et(h,void 0,f(this,J,"f"));let y;t=this,n=this,i=this,r=this,o=this,a=this,s=this,c=this,l=this,d=this,p=this,m=this,{options:{set value(x){M(t,G,x);}}.value,configObjects:y,exitProcess:{set value(x){M(n,St,x);}}.value,groups:{set value(x){M(i,Yt,x);}}.value,output:{set value(x){M(r,Be,x);}}.value,exitError:{set value(x){M(o,xr,x);}}.value,hasOutput:{set value(x){M(a,mt,x);}}.value,parsed:this.parsed,strict:{set value(x){M(s,Xr,x);}}.value,strictCommands:{set value(x){M(c,Qr,x);}}.value,strictOptions:{set value(x){M(l,en,x);}}.value,completionCommand:{set value(x){M(d,ft,x);}}.value,parseFn:{set value(x){M(p,ht,x);}}.value,parseContext:{set value(x){M(m,Jr,x);}}.value}=h,f(this,G,"f").configObjects=y,f(this,Q,"f").unfreeze(),f(this,Ee,"f").unfreeze(),f(this,Ae,"f").unfreeze(),f(this,Et,"f").unfreeze();}[X_](t,n){return Gr(n,i=>(t(i),i))}getInternalMethods(){return {getCommandInstance:this[Q_].bind(this),getContext:this[eD].bind(this),getHasOutput:this[tD].bind(this),getLoggerInstance:this[rD].bind(this),getParseContext:this[nD].bind(this),getParserConfiguration:this[tn].bind(this),getUsageConfiguration:this[Y_].bind(this),getUsageInstance:this[iD].bind(this),getValidationInstance:this[oD].bind(this),hasParseCallback:this[Ws].bind(this),isGlobalContext:this[aD].bind(this),postProcess:this[rn].bind(this),reset:this[Pm].bind(this),runValidation:this[Nm].bind(this),runYargsParserAndExecuteCommands:this[so].bind(this),setHasOutput:this[uD].bind(this)}}[Q_](){return f(this,Ae,"f")}[eD](){return f(this,ao,"f")}[tD](){return f(this,mt,"f")}[rD](){return f(this,Yr,"f")}[nD](){return f(this,Jr,"f")||{}}[iD](){return f(this,Q,"f")}[oD](){return f(this,Ee,"f")}[Ws](){return !!f(this,ht,"f")}[aD](){return f(this,Ls,"f")}[rn](t,n,i,r){return i||ge(t)||(n||(t=this[Z_](t)),(this[tn]()["parse-positional-numbers"]||this[tn]()["parse-positional-numbers"]===void 0)&&(t=this[K_](t)),r&&(t=Wr(t,this,f(this,Et,"f").getMiddleware(),false))),t}[Pm](t={}){M(this,G,f(this,G,"f")||{});let n={};n.local=f(this,G,"f").local||[],n.configObjects=f(this,G,"f").configObjects||[];let i={};n.local.forEach(a=>{i[a]=true,(t[a]||[]).forEach(s=>{i[s]=true;});}),Object.assign(f(this,Kr,"f"),Object.keys(f(this,Yt,"f")).reduce((a,s)=>{let c=f(this,Yt,"f")[s].filter(l=>!(l in i));return c.length>0&&(a[s]=c),a},{})),M(this,Yt,{});let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(a=>{n[a]=(f(this,G,"f")[a]||[]).filter(s=>!i[s]);}),o.forEach(a=>{n[a]=_r(f(this,G,"f")[a],s=>!i[s]);}),n.envPrefix=f(this,G,"f").envPrefix,M(this,G,n),M(this,Q,f(this,Q,"f")?f(this,Q,"f").reset(i):N_(this,f(this,J,"f"))),M(this,Ee,f(this,Ee,"f")?f(this,Ee,"f").reset(i):B_(this,f(this,Q,"f"),f(this,J,"f"))),M(this,Ae,f(this,Ae,"f")?f(this,Ae,"f").reset():T_(f(this,Q,"f"),f(this,Ee,"f"),f(this,Et,"f"),f(this,J,"f"))),f(this,st,"f")||M(this,st,j_(this,f(this,Q,"f"),f(this,Ae,"f"),f(this,J,"f"))),f(this,Et,"f").reset(),M(this,ft,null),M(this,Be,""),M(this,xr,null),M(this,mt,false),this.parsed=false,this}[sD](t,n){return f(this,J,"f").path.relative(t,n)}[so](t,n,i,r=0,o=false){var a,s,c,l;let d=!!i||o;t=t||f(this,Sr,"f"),f(this,G,"f").__=f(this,J,"f").y18n.__,f(this,G,"f").configuration=this[tn]();let p=!!f(this,G,"f").configuration["populate--"],m=Object.assign({},f(this,G,"f").configuration,{"populate--":true}),h=f(this,J,"f").Parser.detailed(t,Object.assign({},f(this,G,"f"),{configuration:{"parse-positional-numbers":false,...m}})),y=Object.assign(h.argv,f(this,Jr,"f")),x,b=h.aliases,j=false,H=false;Object.keys(y).forEach(B=>{B===f(this,wt,"f")&&y[B]?j=true:B===f(this,Jt,"f")&&y[B]&&(H=true);}),y.$0=this.$0,this.parsed=h,r===0&&f(this,Q,"f").clearCachedHelpMessage();try{if(this[Om](),n)return this[rn](y,p,!!i,!1);f(this,wt,"f")&&[f(this,wt,"f")].concat(b[f(this,wt,"f")]||[]).filter(re=>re.length>1).includes(""+y._[y._.length-1])&&(y._.pop(),j=!0),M(this,Ls,!1,"f");let B=f(this,Ae,"f").getCommands(),R=!((a=f(this,st,"f"))===null||a===void 0)&&a.completionKey?[(s=f(this,st,"f"))===null||s===void 0?void 0:s.completionKey,...(l=this.getAliases()[(c=f(this,st,"f"))===null||c===void 0?void 0:c.completionKey])!==null&&l!==void 0?l:[]].some(z=>Object.prototype.hasOwnProperty.call(y,z)):!1,k=j||R||o;if(y._.length){if(B.length){let z;for(let re=r||0,ce;y._[re]!==void 0;re++)if(ce=String(y._[re]),B.includes(ce)&&ce!==f(this,ft,"f")){let ve=f(this,Ae,"f").runCommand(ce,this,h,re+1,o,j||H||o);return this[rn](ve,p,!!i,!1)}else if(!z&&ce!==f(this,ft,"f")){z=ce;break}!f(this,Ae,"f").hasDefaultCommand()&&f(this,Vs,"f")&&z&&!k&&f(this,Ee,"f").recommendCommands(z,B);}f(this,ft,"f")&&y._.includes(f(this,ft,"f"))&&!R&&(f(this,St,"f")&&Dr(!0),this.showCompletionScript(),this.exit(0));}if(f(this,Ae,"f").hasDefaultCommand()&&!k){let z=f(this,Ae,"f").runCommand(null,this,h,0,o,j||H||o);return this[rn](z,p,!!i,!1)}if(R){f(this,St,"f")&&Dr(!0),t=[].concat(t);let z=t.slice(t.indexOf(`--${f(this,st,"f").completionKey}`)+1);return f(this,st,"f").getCompletion(z,(re,ce)=>{if(re)throw new Ce(re.message);(ce||[]).forEach(ve=>{f(this,Yr,"f").log(ve);}),this.exit(0);}),this[rn](y,!p,!!i,!1)}if(f(this,mt,"f")||(j?(f(this,St,"f")&&Dr(!0),d=!0,this.showHelp(z=>{f(this,Yr,"f").log(z),this.exit(0);})):H&&(f(this,St,"f")&&Dr(!0),d=!0,f(this,Q,"f").showVersion("log"),this.exit(0))),!d&&f(this,G,"f").skipValidation.length>0&&(d=Object.keys(y).some(z=>f(this,G,"f").skipValidation.indexOf(z)>=0&&y[z]===!0)),!d){if(h.error)throw new Ce(h.error.message);if(!R){let z=this[Nm](b,{},h.error);i||(x=Wr(y,this,f(this,Et,"f").getMiddleware(),!0)),x=this[X_](z,x??y),ge(x)&&!i&&(x=x.then(()=>Wr(y,this,f(this,Et,"f").getMiddleware(),!1)));}}}catch(B){if(B instanceof Ce)f(this,Q,"f").fail(B.message,B);else throw B}return this[rn](x??y,p,!!i,true)}[Nm](t,n,i,r){let o={...this.getDemandedOptions()};return a=>{if(i)throw new Ce(i.message);f(this,Ee,"f").nonOptionCount(a),f(this,Ee,"f").requiredArguments(a,o);let s=false;f(this,Qr,"f")&&(s=f(this,Ee,"f").unknownCommands(a)),f(this,Xr,"f")&&!s?f(this,Ee,"f").unknownArguments(a,t,n,!!r):f(this,en,"f")&&f(this,Ee,"f").unknownArguments(a,t,{},false,false),f(this,Ee,"f").limitedChoices(a),f(this,Ee,"f").implications(a),f(this,Ee,"f").conflicting(a);}}[uD](){M(this,mt,true);}[nn](t){if(typeof t=="string")f(this,G,"f").key[t]=true;else for(let n of t)f(this,G,"f").key[n]=true;}};function F_(e){return !!e&&typeof e.getInternalMethods=="function"}var HC=cD(Dm),lD=HC;var JC=Ka({version:Nn()});function Gs(){let e=readFileSync(new URL("../package.json",import.meta.url),"utf8");return JC.parse(JSON.parse(e)).version}var KC=$e(`
144
143
  query AuthViewer {
145
144
  currentUser {
146
145
  name
147
146
  email
148
147
  }
149
148
  }
150
- `);async function Mo({serverUrl:e,token:t}){try{let i=(await Ae({config:{ripploServerUrl:e,token:t},document:YT,variables:void 0})).currentUser;return i==null?{kind:"rejected"}:{kind:"ok",viewer:{email:i.email,name:i.name}}}catch(r){return pm(r)==="UNAUTHENTICATED"?{kind:"rejected"}:{kind:"unreachable",message:r instanceof Error?r.message:String(r)}}}var XT="https://ripplo.ai";function Sn(){let e=Rr(),t=To(e);return t==null?null:{serverUrl:e,token:t}}function Rr(){return QT.parse(process.env).RIPPLO_SERVER_URL}function xn({serverUrl:e,token:t}){return {ripploServerUrl:e,token:t}}var QT=s.object({RIPPLO_SERVER_URL:s.string().min(1).default(XT)});var tP="behavior.jsonl";function Nh(e){return zh.join(nP(),"ripplo","runs",e)}function ju(e){return zh.join(Nh(e),tP)}function nP(){let e=process.env.XDG_CACHE_HOME;return e!=null&&e.length>0?e:zh.join(homedir(),".cache")}var sP=31,uP=139;async function RD(e){let t=Sn();if(t==null)return de({kind:"not-signed-in"});let r=await Ae({config:xn(t),document:cP,variables:{id:e}});if(r.run==null)return de({kind:"not-found"});if(r.run.behaviorUrl==null)return de({kind:"not-uploaded"});let i=await fetch(r.run.behaviorUrl);if(!i.ok)return de({kind:"download-failed",status:i.status});let n=ju(e);return await mkdir(zh.dirname(n),{recursive:true}),await writeFile(n,lP(Buffer.from(await i.arrayBuffer()))),Fe({path:n,runId:e})}var cP=Ue(`
149
+ `);async function uo({serverUrl:e,token:t}){try{let i=(await Te({config:{ripploServerUrl:e,token:t},document:KC,variables:void 0})).currentUser;return i==null?{kind:"rejected"}:{kind:"ok",viewer:{email:i.email,name:i.name}}}catch(n){return Ef(n)==="UNAUTHENTICATED"?{kind:"rejected"}:{kind:"unreachable",message:n instanceof Error?n.message:String(n)}}}var XC="https://ripplo.ai",QC=u.object({RIPPLO_SERVER_URL:u.string().min(1).default(XC)});u.object({RIPPLO_PROJECT_ID:u.string().min(1).optional()});function wr(){return QC.parse(process.env).RIPPLO_SERVER_URL}u.object({RIPPLO_APP_URL:u.url(),RIPPLO_AUTH_CONNECTION:u.string().check(u.minLength(1)).optional()});$e(`
150
+ query DaemonAuthConnection($projectId: String!, $name: String!) {
151
+ authConnectionByName(projectId: $projectId, name: $name) {
152
+ id
153
+ authUrl
154
+ webhookSecret
155
+ }
156
+ }
157
+ `);function jt(){let e=wr(),t=eo(e);return t==null?null:{serverUrl:e,token:t}}function Lt({serverUrl:e,token:t}){return {ripploServerUrl:e,token:t}}function dD(){return "Set RIPPLO_TOKEN to the environment's deploy token from environment settings."}function pD({name:e,sha:t,url:n}){return `Reported ${t.slice(0,7)} as live on ${e} (${n}).`}var eA=$e(`
158
+ mutation CliReportDeployment($environment: String!, $sha: String!) {
159
+ reportDeployment(environment: $environment, sha: $sha) {
160
+ name
161
+ url
162
+ }
163
+ }
164
+ `);async function fD({environment:e,sha:t}){let n=jt();n==null&&(process.stderr.write(`${dD()}
165
+ `),process.exit(1));let i=await Te({config:Lt(n),document:eA,variables:{environment:e,sha:t}});process.stdout.write(`${pD({...i.reportDeployment,sha:t})}
166
+ `);}var rA="behavior.jsonl";function jm(e){return Um.join(nA(),"ripplo","runs",e)}function qs(e){return Um.join(jm(e),rA)}function nA(){let e=process.env.XDG_CACHE_HOME;return e!=null&&e.length>0?e:Um.join(homedir(),".cache")}var uA=31,cA=139;async function mD(e){let t=jt();if(t==null)return ue({kind:"not-signed-in"});let n=await Te({config:Lt(t),document:lA,variables:{id:e}});if(n.run==null)return ue({kind:"not-found"});if(n.run.behaviorUrl==null)return ue({kind:"not-uploaded"});let i=await fetch(n.run.behaviorUrl);if(!i.ok)return ue({kind:"download-failed",status:i.status});let r=qs(e);return await mkdir(Um.dirname(r),{recursive:true}),await writeFile(r,dA(Buffer.from(await i.arrayBuffer()))),ke({path:r,runId:e})}var lA=$e(`
151
167
  query RunBehaviorUrl($id: String!) {
152
168
  run(id: $id) {
153
169
  id
154
170
  behaviorUrl
155
171
  }
156
172
  }
157
- `);function lP(e){return e[0]===sP&&e[1]===uP?gunzipSync(e):e}async function zu(e){let t=ju(e);return existsSync(t)?Fe(t):(await RD(e)).map(i=>i.path)}function AD(e){return e.shape==="legacy"?e.title:e.action==null?e.nodeType:Um(e.action).map(t=>t.text).join(" ")}var fP=4e3,mP=5;function PD({behaviorFile:e,runId:t}){let r=hP(readFileSync(e,"utf8")),i=[...r.failedChecks.map(n=>vP(n,r)),...r.stepErrors.map(n=>EP(n,r)),...r.findings.map(n=>wP(n,r))].toSorted((n,o)=>n.snapshotOffsetMs-o.snapshotOffsetMs);return {durationMs:Math.max(0,r.lastTs-r.firstTs),failures:i,runId:t,steps:[...r.stepTitles].map(([n,o])=>({index:n,title:o}))}}function hP(e){let t=_o(e),r=t.map(i=>dr(i.timeNanos)).filter(i=>i>0);return {causes:t.flatMap(i=>gP(i)),failedChecks:t.filter(i=>i.kind==="check"&&i.outcome.kind==="failed"),findings:t.filter(i=>i.kind==="finding"),firstTs:r.length===0?0:Math.min(...r),lastTs:r.length===0?0:Math.max(...r),stepErrors:t.filter(i=>i.kind==="stepError"),stepTitles:new Map(t.flatMap(i=>i.kind==="step"?[[i.stepIndex,AD(i)]]:[]))}}function gP(e){let t=yP(e);return t==null?[]:[{detail:t,timestamp:dr(e.timeNanos)}]}function yP(e){return e.kind==="network"?{kind:"network",method:e.method,status:e.status,traceId:e.traceId,url:e.url}:e.kind==="console"?e.level==="error"||e.level==="warning"?{kind:"console",level:e.level,text:e.text}:null:e.kind==="span"?{durationMs:e.durationMs,kind:"span",name:e.name,statusCode:e.status.code,traceId:e.traceId}:null}function vP(e,t){let r=dr(e.timeNanos);return {causes:Uh(t.causes,r),error:void 0,label:xP(e),outcome:"failed",snapshotOffsetMs:Lh(t,r),step:FD(t,e.stepIndex),stepIndex:e.stepIndex,waitMs:e.waitedMs}}function Uh(e,t){let r=e.filter(i=>i.timestamp<=t&&i.timestamp>=t-fP).toSorted((i,n)=>n.timestamp-i.timestamp);return bP(r).toSorted((i,n)=>Number(TD(n.detail))-Number(TD(i.detail))).slice(0,mP).map(i=>({deltaMs:t-i.timestamp,detail:i.detail}))}function bP(e){let t=e.toReversed().map(r=>[SP(r.detail),r]);return [...new Map(t).values()].toReversed()}function SP(e){switch(e.kind){case "network":return `net ${e.method} ${String(e.status)} ${e.url.split("?")[0]??""}`;case "console":return `console ${e.text}`;case "span":return `span ${e.name} ${e.statusCode}`}}function TD(e){switch(e.kind){case "network":return e.status>=400;case "span":return e.statusCode==="error";case "console":return true}}function xP(e){let t=Fm(e);return t??`${e.family} ${DP(e)}: ${e.outcome.kind}`}function DP(e){switch(e.family){case "element":case "content":case "scalar":case "action":return pr(e);case "state":return e.subject;case "frame":return _P(e);case "dataRule":return e.rule}}function _P(e){if(e.outcome.kind==="passed")return e.family;let t=e.outcome.reason;return t.kind==="wrongScalar"||t.kind==="wrongElementState"||t.kind==="wrongElementContent"?t.subject:t.kind==="wrongCount"?t.entity:`${t.entity} [${t.key}]`}function Lh(e,t){return Math.max(0,t-e.firstTs)}function FD(e,t){return e.stepTitles.get(t)??String(t)}function EP(e,t){let r=dr(e.timeNanos);return {causes:Uh(t.causes,r),error:e.error,label:`driver ${e.error.kind}`,outcome:"error",snapshotOffsetMs:Lh(t,r),step:FD(t,e.stepIndex),stepIndex:e.stepIndex,waitMs:void 0}}function wP(e,t){let r=dr(e.timeNanos);return {causes:Uh(t.causes,r),error:void 0,label:$P(e.payload),outcome:"failed",snapshotOffsetMs:Lh(t,r),step:e.step,stepIndex:e.stepIndex,waitMs:void 0}}function $P(e){switch(e.kind){case "unrunnable":return e.unmet==null?`${e.kind} ${e.reason}`:`${e.kind} ${e.reason}: ${e.unmet}`;case "impossibleAction":return `${e.kind} ${e.action}`;case "liftVisibility":return `${e.kind} ${e.subject}`}}function Nu(e){switch(e.kind){case "not-signed-in":return Ar();case "not-found":return "No run with that id.";case "not-uploaded":return "This run has no uploaded artifacts yet. It may still be running.";case "download-failed":return `Download failed (HTTP ${String(e.status)}). The link may have expired, try again.`}}function Ar(){return "Not signed in. Run `npx ripplo login` first."}async function jD({runId:e}){let t=await zu(e);t.isErr()&&(process.stderr.write(`${Nu(t.error)}
158
- `),process.exit(1));let r=PD({behaviorFile:t.value,runId:e});process.stdout.write(`${JSON.stringify(r,null,2)}
159
- `);}function zD(e){return `No code review with id ${e}, or you do not have access to it.`}function ND(e){return `Code review ${e} has no published attempt yet. Wait for the review to finish.`}var kP=Ue(`
173
+ `);function dA(e){return e[0]===uA&&e[1]===cA?gunzipSync(e):e}async function Hs(e){let t=qs(e);return existsSync(t)?ke(t):(await mD(e)).map(i=>i.path)}var mA=4e3,hA=5;function gD({behaviorFile:e,runId:t}){let n=gA(readFileSync(e,"utf8")),i=n.failures.map(r=>_A(r,n)).toSorted((r,o)=>r.snapshotOffsetMs-o.snapshotOffsetMs);return {durationMs:Math.max(0,n.lastTs-n.firstTs),failures:i,runId:t,steps:[...n.stepTitles].map(([r,o])=>({index:r,title:o}))}}function gA(e){let t=Zi(e),n=t.map(i=>Gn(i.timeNanos)).filter(i=>i>0);return {causes:t.flatMap(i=>wA(i)),failures:t.flatMap(i=>vA(i)),firstTs:n.length===0?0:Math.min(...n),lastTs:n.length===0?0:Math.max(...n),stepTitles:new Map(t.flatMap(i=>i.kind==="model-step"||i.kind==="model-input-failed"?[[i.stepIndex,i.name]]:[]))}}function vA(e){let t=Gn(e.timeNanos);switch(e.kind){case "model-setup":return e.result.status==="failed"?[Lm({issue:e.result.error,site:yA(e.name),timestamp:t})]:[];case "model-step":case "model-input-failed":return e.result.status==="failed"?[Lm({issue:e.result.error,site:Ys(e.stepIndex),timestamp:t})]:[];case "exploration-stop":return e.result.kind==="failed"?[Lm({issue:e.result.error,site:Ys(e.stepIndex),timestamp:t})]:[];case "check":return bA(e);case "stepError":return [{detail:{error:e.error,kind:"driver"},site:Ys(e.stepIndex),timestamp:t}];case "network":case "console":case "span":case "action":case "rrweb":case "health":case "meta":case "notice":case "dialog":case "handover":case "handback":case "schema-trace":case "exploration-step":return []}}function Lm({issue:e,site:t,timestamp:n}){return {detail:{issue:e,kind:"model"},site:t,timestamp:n}}function yA(e){return {kind:"starting-state",name:e}}function Ys(e){return {kind:"step",stepIndex:e}}function bA(e){return e.outcome.kind==="passed"?[]:[{detail:{action:`${e.action.kind} ${Pf(e.action)??""}`.trim()+Lf(e.action),kind:"check",message:e.outcome.reason.message,waitedMs:e.waitedMs},site:Ys(e.stepIndex),timestamp:Gn(e.timeNanos)}]}function _A(e,t){return {causes:DA(t.causes,e.timestamp),detail:e.detail,place:EA(e.site,t),snapshotOffsetMs:Math.max(0,e.timestamp-t.firstTs)}}function DA(e,t){let n=e.filter(i=>i.timestamp<=t&&i.timestamp>=t-mA).toSorted((i,r)=>r.timestamp-i.timestamp);return xA(n).toSorted((i,r)=>Number(hD(r.detail))-Number(hD(i.detail))).slice(0,hA).map(i=>({deltaMs:t-i.timestamp,detail:i.detail}))}function xA(e){let t=e.toReversed().map(n=>[SA(n.detail),n]);return [...new Map(t).values()].toReversed()}function SA(e){switch(e.kind){case "network":return `net ${e.method} ${String(e.status)} ${e.url.split("?")[0]??""}`;case "console":return `console ${e.text}`;case "span":return `span ${e.name} ${e.statusCode}`}}function hD(e){switch(e.kind){case "network":return e.status>=400;case "span":return e.statusCode==="error";case "console":return true}}function EA(e,t){switch(e.kind){case "starting-state":return e;case "step":{let n=t.stepTitles.get(e.stepIndex)??null;return {index:e.stepIndex,kind:"step",name:n}}}}function wA(e){let t=$A(e);return t==null?[]:[{detail:t,timestamp:Gn(e.timeNanos)}]}function $A(e){return e.kind==="network"?{kind:"network",method:e.method,status:e.status,traceId:e.traceId,url:e.url}:e.kind==="console"?e.level==="error"||e.level==="warning"?{kind:"console",level:e.level,text:e.text}:null:e.kind==="span"?{durationMs:e.durationMs,kind:"span",name:e.name,statusCode:e.status.code,traceId:e.traceId}:null}function Js(e){switch(e.kind){case "not-signed-in":return on();case "not-found":return "No run with that id.";case "not-uploaded":return "This run has no uploaded artifacts yet. It may still be running.";case "download-failed":return `Download failed (HTTP ${String(e.status)}). The link may have expired, try again.`}}function on(){return "Not signed in. Run `npx ripplo login` first."}async function vD({runId:e}){let t=await Hs(e);t.isErr()&&(process.stderr.write(`${Js(t.error)}
174
+ `),process.exit(1));let n=gD({behaviorFile:t.value,runId:e});process.stdout.write(`${JSON.stringify(n,null,2)}
175
+ `);}function yD(e){return `No code review with id ${e}, or you do not have access to it.`}function bD(e){return `Code review ${e} has no published attempt yet. Wait for the review to finish.`}var IA=$e(`
160
176
  query CliCodeReviewIssues($id: String!) {
161
177
  codeReview(id: $id) {
162
178
  id
@@ -168,19 +184,24 @@ ${v.join(`
168
184
  workflow
169
185
  blockedBy
170
186
  }
187
+ summaryText
171
188
  publishedAttempt {
172
189
  id
173
190
  status
174
- summaryText
175
- issues {
176
- id
177
- kind
191
+ }
192
+ issues {
193
+ state
194
+ appearance
195
+ kind
196
+ number
197
+ observation {
178
198
  title
179
199
  body
180
- workflowSlugs
200
+ workflows {
201
+ slug
202
+ }
181
203
  evidence {
182
204
  runId
183
- testRef
184
205
  frameMs
185
206
  rrwebId
186
207
  }
@@ -188,11 +209,11 @@ ${v.join(`
188
209
  }
189
210
  }
190
211
  }
191
- `);async function UD({codeReviewId:e}){let t=Sn();t==null&&(process.stderr.write(`${Ar()}
192
- `),process.exit(1));let i=(await Ae({config:xn(t),document:kP,variables:{id:e}})).codeReview;i==null&&(process.stderr.write(`${zD(e)}
193
- `),process.exit(1));let n=i.publishedAttempt;n==null&&(process.stderr.write(`${ND(e)}
194
- `),process.exit(1));let o={attemptId:n.id,codeReviewId:i.id,gaps:i.declaredGaps,issues:n.issues,prUrl:i.prUrl,summary:n.summaryText,title:i.title,verdict:i.verdict};process.stdout.write(`${JSON.stringify(o,null,2)}
195
- `);}var IP=Ue(`
212
+ `);async function _D({codeReviewId:e}){let t=jt();t==null&&(process.stderr.write(`${on()}
213
+ `),process.exit(1));let i=(await Te({config:Lt(t),document:IA,variables:{id:e}})).codeReview;i==null&&(process.stderr.write(`${yD(e)}
214
+ `),process.exit(1));let r=i.publishedAttempt;r==null&&(process.stderr.write(`${bD(e)}
215
+ `),process.exit(1));let o={attemptId:r.id,codeReviewId:i.id,gaps:i.declaredGaps,issues:i.issues.filter(a=>a.state==="open").map(a=>OA(a)),prUrl:i.prUrl,summary:i.summaryText,title:i.title,verdict:i.verdict};process.stdout.write(`${JSON.stringify(o,null,2)}
216
+ `);}function OA(e){let{observation:t}=e,[n,...i]=t.workflows.map(({slug:r})=>r);return {appearance:e.appearance,body:t.body,evidence:t.evidence,kind:e.kind,number:e.number,otherWorkflows:i,title:t.title,workflow:n??null}}var kA=$e(`
196
217
  query SetupProjects {
197
218
  projects {
198
219
  id
@@ -218,39 +239,26 @@ ${v.join(`
218
239
  }
219
240
  }
220
241
  }
221
- `),OP=Ue(`
242
+ `),CA=$e(`
222
243
  query SetupOrganizations {
223
244
  organizations {
224
245
  id
225
246
  name
226
- limitStatus {
227
- canCreateProject
228
- memberCount
229
- planName
230
- projectCount
231
- }
247
+ memberCount
248
+ planName
249
+ projectCount
250
+ integrationsUrl
232
251
  }
233
252
  }
234
- `),CP=Ue(`
235
- query SetupInstallUrl {
236
- gitHubAppInstallUrl
237
- }
238
- `),RP=Ue(`
239
- query SetupInstallations {
240
- gitHubInstallations {
241
- installationId
242
- accountLogin
243
- }
244
- }
245
- `),AP=Ue(`
246
- query SetupRepositories {
247
- githubRepositories {
253
+ `),AA=$e(`
254
+ query SetupRepositories($organizationId: String!) {
255
+ githubRepositories(organizationId: $organizationId) {
248
256
  installationId
249
257
  name
250
258
  url
251
259
  }
252
260
  }
253
- `),TP=Ue(`
261
+ `),RA=$e(`
254
262
  mutation SetupCreateProject(
255
263
  $installationId: Int!
256
264
  $name: String!
@@ -289,21 +297,18 @@ ${v.join(`
289
297
  }
290
298
  }
291
299
  }
292
- ... on LimitExceededError {
293
- message
294
- }
295
300
  ... on InvalidRepoLinkError {
296
301
  message
297
302
  }
298
303
  }
299
304
  }
300
- `),PP=Ue(`
305
+ `),TA=$e(`
301
306
  mutation SetupSaveAppUrl($id: String!, $appUrl: String!) {
302
307
  updateProject(id: $id, cloudBaseUrl: $appUrl) {
303
308
  id
304
309
  }
305
310
  }
306
- `),FP=Ue(`
311
+ `),FA=$e(`
307
312
  mutation SetupCreateConnection($input: OidcAuthConnectionInput!) {
308
313
  createOidcAuthConnection(input: $input) {
309
314
  clientSecret
@@ -320,7 +325,7 @@ ${v.join(`
320
325
  }
321
326
  }
322
327
  }
323
- `),jP=Ue(`
328
+ `),PA=$e(`
324
329
  mutation SetupUpdateConnection($input: OidcAuthConnectionUpdate!) {
325
330
  updateOidcAuthConnection(input: $input) {
326
331
  id
@@ -335,58 +340,59 @@ ${v.join(`
335
340
  }
336
341
  }
337
342
  }
338
- `),zP=Ue(`
343
+ `),NA=$e(`
339
344
  mutation SetupRotateSecret($id: String!) {
340
345
  rotateAuthConnectionSecret(id: $id) {
341
346
  secret
342
347
  }
343
348
  }
344
- `),NP=Ue(`
349
+ `),zA=$e(`
345
350
  mutation SetupStartSignInTest($id: String!) {
346
351
  startAuthConnectionSignInTest(id: $id) {
347
352
  runId
348
353
  url
349
354
  }
350
355
  }
351
- `),UP=Ue(`
356
+ `),UA=$e(`
352
357
  mutation SetupCheckSignInTest($runId: String!) {
353
358
  checkAuthConnectionSignInTest(runId: $runId) {
354
359
  detail
355
360
  kind
356
361
  }
357
362
  }
358
- `);async function Oi(e){return (await Ae({config:e,document:IP,variables:void 0})).projects??[]}async function LD(e){return (await Ae({config:e,document:OP,variables:void 0})).organizations??[]}async function MD(e){return (await Ae({config:e,document:CP,variables:void 0})).gitHubAppInstallUrl??null}async function Mh({accountLogin:e,connection:t}){let i=(await Ae({config:t,document:RP,variables:void 0})).gitHubInstallations??[],n=e.toLowerCase();return i.find(o=>o.accountLogin.toLowerCase()===n)??null}async function BD(e){return (await Ae({config:e,document:AP,variables:void 0})).githubRepositories??[]}async function VD({connection:e,...t}){let i=(await Ae({config:e,document:TP,variables:t})).createProject;return i?.__typename==="Project"?Fe(i):de({kind:"rejected",message:i?.message??""})}async function ZD({appUrl:e,connection:t,id:r}){await Ae({config:t,document:PP,variables:{appUrl:e,id:r}});}var LP="oidc";async function WD({connection:e,project:t,values:r}){let i=Mm({base:LP,taken:t.authConnections.map(o=>o.name)});return (await Ae({config:e,document:FP,variables:{input:{makeDefault:true,name:i,projectId:t.id,redirectUris:[...r.redirectUris],signInEntry:r.signInEntry}}})).createOidcAuthConnection}async function GD({connection:e,id:t,name:r,scimBaseUrl:i,values:n}){return (await Ae({config:e,document:jP,variables:{input:{id:t,makeDefault:true,name:r,redirectUris:[...n.redirectUris],scimBaseUrl:i,signInEntry:n.signInEntry}}})).updateOidcAuthConnection}async function qD({connection:e,connectionId:t}){return (await Ae({config:e,document:zP,variables:{id:t}})).rotateAuthConnectionSecret.secret}async function HD({connection:e,connectionId:t}){return (await Ae({config:e,document:NP,variables:{id:t}})).startAuthConnectionSignInTest}async function JD({connection:e,runId:t}){return (await Ae({config:e,document:UP,variables:{runId:t}})).checkAuthConnectionSignInTest}function Bh(e){return `${Vh(e)}/settings?section=environment`}function Vh({connection:e,projectId:t}){return `${e.ripploServerUrl}/projects/${t}`}function KD({connection:e,projectId:t}){let r=encodeURIComponent(`/projects/${t}`);return `${e.ripploServerUrl}/login?redirect=${r}`}var YD=2e3,Bo=2e4;async function Zh({connection:e,remainingMs:t,runId:r}){if(t<=0)return {kind:"timedOut"};await setTimeout$1(YD);let i=await JD({connection:e,runId:r});return BP(i)??Zh({connection:e,remainingMs:t-YD,runId:r})}function BP(e){switch(e.kind){case "pending":return;case "signedIn":return {kind:"signedIn"};case "failed":return {detail:e.detail??"",kind:"failed"}}}var Gh=c(Mu(),1);var e_=c(Mu(),1),t_=String.fromCodePoint(27),GP=`${t_}[38;5;245m`,qP=`${t_}[0m`;function je(e){return e_.default.isColorSupported?`${GP}${e}${qP}`:e}var i_="https://ripplo.ai/docs#sign-in";function Ci(e){return Gh.default.underline(e)}var n_={auth:{title:"Authentication",why:"Ripplo generates test users as an OpenID Connect identity provider, like sign in with Google. That takes two registrations: your app with Ripplo, then Ripplo with your app."},check:{title:"Test authentication",why:"Ripplo signs a test user in through your app the way a review run would."},claude:{title:"Set up Claude Code for Ripplo",why:"The Ripplo plugin lets Claude Code read a review's findings and fix them in your code."},github:{title:"GitHub access",why:"Ripplo reads your code base to write workflows, reads pull requests to review them, and posts results as comments. The Ripplo GitHub App grants that access."},open:{title:"Open Ripplo",why:"Your project page shows workflows as Ripplo writes them, and every review after that."},project:{title:"Project",why:"A project is this repository inside Ripplo, where its workflows and reviews live."},signIn:{title:"Sign in",why:"Setup saves the project under your Ripplo account."},url:{title:"Test app",why:"Ripplo opens a deployed copy of your app in a browser and signs in as a test user."}},o_=["signIn","project","github","url","auth","check","claude","open"];function At(e){return {title:`${String(o_.indexOf(e)+1)}. ${n_[e].title}`,why:n_[e].why}}var r_={app:{title:"Register Ripplo with your app",why:"Add Ripplo as a sign-in provider to your app and give it three values. Ripplo cannot sign in until this is done."},ripplo:{title:"Register your app with Ripplo",why:"Ripplo needs your app's sign-in page and where it sends the browser back after sign-in."}};function Bu(e){return {title:`${String(o_.indexOf("auth")+1)}${e==="ripplo"?"a":"b"}. ${r_[e].title}`,why:r_[e].why}}function Vu(){return "Ripplo setup"}function Zu(e){switch(e.kind){case "no-remote":return "No git remote named origin here. Run setup inside the repository to review.";case "not-github":return `The origin remote is ${e.remote}. Ripplo reviews GitHub repositories only.`}}function a_(e){return `Signed in as ${e}`}function qh(e){return `Ripplo GitHub App installed on ${e}`}function s_(e){return `Ripplo GitHub App is not installed on ${e} yet.`}function u_(e){return `Install the Ripplo GitHub App on ${e}`}function c_(e){return `Add ${e} to the Ripplo GitHub App`}function l_(){return "Install it now?"}function d_(){return "Open GitHub, pick this repository, then come back"}function p_(){return "Stop"}function Ye(){return "Stopped. Run setup again to resume."}function f_(e){return [je("If GitHub did not open, use this link:"),Ci(e)]}function m_(){return "Waiting for GitHub"}function h_({minutes:e,owner:t}){return `Still no access to ${t} after ${String(e)} minutes. Finish the install on GitHub first.`}function g_(e){return [`Ripplo cannot see ${e}.`,"The app has no repositories selected, or is installed on another account."]}function y_(e){return `Add ${e} to the Ripplo app on GitHub?`}function v_(){return "Open GitHub, select it under Repository access, then come back"}function b_(e){return `Waiting for ${e} to appear`}function S_({minutes:e,repo:t}){return `Ripplo still cannot see ${t} after ${String(e)} minutes. Add it on the right account.`}function Hh(e){return `${e} selected`}function x_(){return "Your account is in no Ripplo organization. Create one in the dashboard first."}function D_(){return "Which organization owns this app?"}function Jh(e){return `Organization ${e}`}function Kh(e){let t=mu(e.projectCount,"project"),r=mu(e.memberCount,"member"),i=je(`${t} \xB7 ${r} \xB7 ${e.planName} plan`);return `${e.name} ${i}`}function __(e){return `${Kh(e)} ${je("project limit reached")}`}function E_(e){return `Using the existing project ${e}`}function w_(e){return `A project stays in its organization. To use another, delete ${e} in its settings and run setup again.`}function $_({organization:e,repo:t}){return `${t} will be a project in ${e}, created once GitHub access is confirmed`}function k_(e,t){return `Created ${e} in ${t}`}function I_(e){return `Could not create the project. ${e}`}function O_(){return "Where will Ripplo test your app?"}function Wu(e){switch(e){case "staging":return "One pre-production server with a stable address";case "previews":return "Pull request preview environments, one address per pull request";case "both":return "Both"}}function C_(e){return `${Wu(e)} ${je("from --environments")}`}function R_({appUrl:e,environments:t,previewUrl:r}){return [Wu(t),`Testing against ${e}`,...r==null?[]:[`Previews at ${r}`]]}function A_(){return "Every review creates a test user in this app, so use a staging server, not production."}function T_(){return "Where does your pre-production server run?"}function P_(){return "https://staging.example.com"}function F_(){return ["Each pull request preview has its own address. Ripplo learns it from the comment that starts","the review: @ripplo review <preview-url>. To register every preview at once, use one * in the","hostname for the part that changes."]}function j_(){return "What do your preview addresses look like?"}function z_(){return "https://myapp-pr-*.example.com"}function N_(){return "Ripplo also needs one preview that is up right now, to test sign-in against."}function U_(){return "Which preview is up right now?"}function L_(){return "https://myapp-pr-123.example.com"}function M_({flag:e,value:t}){let r=je(`from --${e}`);return `${t} ${r}`}function B_({flag:e,reason:t}){return `--${e}: ${t}`}function V_(e){return `No terminal to ask in. Run setup in a terminal, or pass --${e}.`}function Z_(){return "Continue"}function W_(){return "Change it"}function G_(e){return `Sign-in connection ${e}`}function q_({redirectUris:e,scimBaseUrl:t,signInEntry:r}){return [`Sign-in page ${r}`,...e.map(i=>`Callback ${i}`),t==null?"SCIM off":`SCIM ${t}`]}function H_(e){return `Updated ${e}, client id and secret unchanged`}function J_(e){return `Created ${e}, set as the default connection`}function K_(){return "Ripplo signs in through your app's sign-in page. A path works for the pre-production server and every preview."}function Y_(){return "Which page starts sign-in with Ripplo?"}function X_(){return "/api/auth/oidc/start"}function Q_(){return "The callback your auth library uses for Ripplo sign-in."}function eE(){return "Where does your pre-production server receive the callback?"}function tE(e){return `${e}/api/auth/oauth2/callback/ripplo`}function nE(){return "The same callback on your previews, with the * where the address changes."}function rE(){return "Where do your previews receive the callback?"}function iE(e){return `${e}/api/auth/oauth2/callback/ripplo`}function Yh({connection:e,secret:t,settingsUrl:r}){return [`Client id ${e.clientId}`,...HP({secret:t,settingsUrl:r}),`Discovery URL ${e.discoveryUrl}`]}function HP({secret:e,settingsUrl:t}){return [`Client secret ${e??je("copy it from the settings page")}`,...e==null?[Ci(t)]:[]]}function oE(e){return [`Client id ${e.clientId}`,`Client secret ${je("\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022")}`,`Discovery URL ${e.discoveryUrl}`]}function aE(){return "Your existing secret will immediately stop working. Ripplo cannot sign in to your app until you update the secret there."}function sE(e){return `Client secret ${e}`}function uE(){return "Have you already registered Ripplo with your app?"}function cE(){return "Yes, continue"}function lE(){return "Give me a new secret"}function dE(){return "Rotate the secret"}function pE(){return "Keep the current secret"}function fE(){return ["Add Ripplo as a sign-in provider to your app","Set the three variables on your dev server and deploy"]}function mE(){return `Guides ${Ci(i_)}`}function hE(){return "Register Ripplo with your app now?"}function gE(){return "Now"}function yE(){return "Come back later (setup remembers your choices)"}function Xh(){return "Not finished. Run setup again to continue from here:"}function vE(){return "Give your app these three values, then deploy"}function Qh(){return ["Auth libraries read them from variables on your dev server, some also need a few lines of code. Keycloak takes them in its settings. An app that was already running needs a restart to read them.",`Guides for better-auth, next-auth and Keycloak: ${Ci(i_)}`]}function eg(){return "Is your app running with these three values? Deploy it, or restart it locally, then continue."}function bE(){return "Done"}function Vo(){return "Stop for now"}function SE(){return "Not finished. When the deploy is live, test authentication:"}function Ri(e){return `${e} --check`}function xE(){return "Updating the Ripplo plugin for Claude Code"}function DE(){return "Could not install the Ripplo plugin for Claude Code. Run claude plugin install ripplo@ripplo."}function _E(){return "Yes"}function EE(){return "No"}function wE(){return "Open Ripplo in your browser?"}function $E(){return "Claude Code is not installed. Install it, then run: claude plugin install ripplo@ripplo"}function kE(){return "Ripplo plugin installed in Claude Code"}function IE(){return "A tab will open and sign in to your app as a test user, the way a review run does. Nothing to type."}function OE(){return "Start test"}function CE(){return "Watch the tab that opened"}function RE(e){return [je("If no tab opened, use this link. It works once:"),Ci(e)]}function AE(){return "Waiting for your app to exchange the code"}function TE(e){return `Ripplo signed in through ${e}`}function PE(e){return {detail:e.length>0?[je(e)]:[],headline:"Ripplo could not sign in"}}function FE(e){return `No code exchange within ${String(e)} seconds. Is the deploy live, the sign-in page up, and the app restarted if needed?`}function jE(){return ""}function zE(){return "Test again"}function Gu(){return "Fix what the test named, deploy, then test again:"}function NE(){return "This project has no sign-in connection yet. Run setup first."}function UE(e){return `No Ripplo project is connected to ${e}. Run setup first.`}function LE(e){return `Ripplo's server rejected the request: ${e}`}function ME(){return "Done. Ripplo can sign in to your test app and review pull requests."}function BE({appUrl:e,projectUrl:t}){let r=Gh.default.bold(`@ripplo review ${e}`);return [`Project ${Ci(t)}`,`Review comment ${r} on any pull request`]}var VE=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let r=0;for(e.lastIndex=0;e.test(t);)r+=1;return t.length-r}})(),ZE=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,WE=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141;var JP=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,KP=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,GE=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,YP=/\t{1,1000}/y,qE=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),XP=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,QP=new RegExp("\\p{M}+","gu"),eF={limit:1/0,ellipsis:""},HE=(e,t={},r={})=>{let i=t.limit??1/0,n=t.ellipsis??"",o=t?.ellipsisWidth??(n?HE(n,eF,r).width:0),a=0,u=r.controlWidth??0,c=r.tabWidth??8,l=r.emojiWidth??2,d=2,p=r.regularWidth??1,m=r.wideWidth??d,h=[[XP,p],[JP,a],[KP,u],[YP,c],[qE,l],[GE,m]],v=0,D=0,b=e.length,U=0,H=false,B=b,A=Math.max(0,i-o),O=0,z=0,ne=0,ce=0;e:for(;;){if(z>O||D>=b&&D>v){let be=e.slice(O,z)||e.slice(v,D);U=0;for(let ie of be.replaceAll(QP,"")){let F=ie.codePointAt(0)||0;if(ZE(F)?ce=d:WE(F)?ce=m:ce=p,ne+ce>A&&(B=Math.min(B,Math.max(O,v)+U)),ne+ce>i){H=true;break e}U+=ie.length,ne+=ce;}O=z=0;}if(D>=b)break e;for(let be=0,ie=h.length;be<ie;be++){let[F,j]=h[be];if(F.lastIndex=D,F.test(e)){if(U=F===GE?VE(e.slice(D,F.lastIndex)):F===qE?1:F.lastIndex-D,ce=U*j,ne+ce>A&&(B=Math.min(B,D+Math.floor((A-ne)/j))),ne+ce>i){H=true;break e}ne+=ce,O=v,z=D,D=v=F.lastIndex;continue e}}D+=1;}return {width:H?A:ne,index:H?B:b,truncated:H,ellipsed:H&&i>=o}},JE=HE;var tF={limit:1/0,ellipsis:"",ellipsisWidth:0},nF=(e,t={})=>JE(e,tF,t).width,Dn=nF;var qu="\x1B",ew="\x9B",rF=39,ng="\x07",tw="[",iF="]",nw="m",rg=`${iF}8;;`,KE=new RegExp(`(?:\\${tw}(?<code>\\d+)m|\\${rg}(?<uri>.*)${ng})`,"y"),YE=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},XE=e=>`${qu}${tw}${e}${nw}`,QE=e=>`${qu}${rg}${e}${ng}`,tg=(e,t,r)=>{let i=t[Symbol.iterator](),n=false,o=false,a=e.at(-1),u=a===void 0?0:Dn(a),c=i.next(),l=i.next(),d=0;for(;!c.done;){let p=c.value,m=Dn(p);u+m<=r?e[e.length-1]+=p:(e.push(p),u=0),(p===qu||p===ew)&&(n=true,o=t.startsWith(rg,d+1)),n?o?p===ng&&(n=false,o=false):p===nw&&(n=false):(u+=m,u===r&&!l.done&&(e.push(""),u=0)),c=l,l=i.next(),d+=p.length;}a=e.at(-1),!u&&a!==void 0&&a.length&&e.length>1&&(e[e.length-2]+=e.pop());},oF=e=>{let t=e.split(" "),r=t.length;for(;r&&!Dn(t[r-1]);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},aF=(e,t,r={})=>{if(r.trim!==false&&e.trim()==="")return "";let i="",n,o,a=e.split(" "),u=[""],c=0;for(let p=0;p<a.length;p++){let m=a[p];if(r.trim!==false){let v=u.at(-1)??"",D=v.trimStart();v.length!==D.length&&(u[u.length-1]=D,c=Dn(D));}p!==0&&(c>=t&&(r.wordWrap===false||r.trim===false)&&(u.push(""),c=0),(c||r.trim===false)&&(u[u.length-1]+=" ",c++));let h=Dn(m);if(r.hard&&h>t){let v=t-c,D=1+Math.floor((h-v-1)/t);Math.floor((h-1)/t)<D&&u.push(""),tg(u,m,t),c=Dn(u.at(-1)??"");continue}if(c+h>t&&c&&h){if(r.wordWrap===false&&c<t){tg(u,m,t),c=Dn(u.at(-1)??"");continue}u.push(""),c=0;}if(c+h>t&&r.wordWrap===false){tg(u,m,t),c=Dn(u.at(-1)??"");continue}u[u.length-1]+=m,c+=h;}r.trim!==false&&(u=u.map(p=>oF(p)));let l=u.join(`
359
- `),d=false;for(let p=0;p<l.length;p++){let m=l[p];if(i+=m,d)d=false;else if(d=m>="\uD800"&&m<="\uDBFF",d)continue;if(m===qu||m===ew){KE.lastIndex=p+1;let v=KE.exec(l)?.groups;if(v?.code!==void 0){let D=Number.parseFloat(v.code);n=D===rF?void 0:D;}else v?.uri!==void 0&&(o=v.uri.length===0?void 0:v.uri);}if(l[p+1]===`
360
- `){o&&(i+=QE(""));let h=n?YE(n):void 0;n&&h&&(i+=XE(h));}else m===`
361
- `&&(n&&YE(n)&&(i+=XE(n)),o&&(i+=QE(o)));}return i},sF=/\r?\n/;function ig(e,t,r){return String(e).normalize().split(sF).map(i=>aF(i,t,r)).join(`
362
- `)}var Tt=c(iw(),1);function Ju(e,t,r){if(!r.some(a=>!a.disabled))return e;let i=e+t,n=Math.max(r.length-1,0),o=i<0?n:i>n?0:i;return r[o]?.disabled?Ju(o,t<0?-1:1,r):o}var mF=["up","down","left","right","space","enter","cancel"],Ai={actions:new Set(mF),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function gF(e){if(e!==void 0)return e;let t=process.env.ACCESSIBLE;return t!==void 0&&t!==""&&t!=="0"&&t!=="false"}function ow(e,t){if(typeof e=="string")return Ai.aliases.get(e)===t;for(let r of e)if(r!==void 0&&ow(r,t))return true;return false}function yF(e,t){if(e===t)return;let r=e.split(`
363
+ `);async function ri(e){return (await Te({config:e,document:kA,variables:void 0})).projects??[]}async function DD(e){return (await Te({config:e,document:CA,variables:void 0})).organizations??[]}async function xD({connection:e,organizationId:t}){return (await Te({config:e,document:AA,variables:{organizationId:t}})).githubRepositories??[]}async function SD({connection:e,...t}){let i=(await Te({config:e,document:RA,variables:t})).createProject;return i?.__typename==="Project"?ke(i):ue({kind:"rejected",message:i?.message??""})}async function ED({appUrl:e,connection:t,id:n}){await Te({config:t,document:TA,variables:{appUrl:e,id:n}});}var jA="oidc";async function wD({connection:e,project:t,values:n}){let i=Vf({base:jA,taken:t.authConnections.map(o=>o.name)});return (await Te({config:e,document:FA,variables:{input:{makeDefault:true,name:i,projectId:t.id,redirectUris:[...n.redirectUris],signInEntry:n.signInEntry}}})).createOidcAuthConnection}async function $D({connection:e,id:t,name:n,scimBaseUrl:i,values:r}){return (await Te({config:e,document:PA,variables:{input:{id:t,makeDefault:true,name:n,redirectUris:[...r.redirectUris],scimBaseUrl:i,signInEntry:r.signInEntry}}})).updateOidcAuthConnection}async function ID({connection:e,connectionId:t}){return (await Te({config:e,document:NA,variables:{id:t}})).rotateAuthConnectionSecret.secret}async function OD({connection:e,connectionId:t}){return (await Te({config:e,document:zA,variables:{id:t}})).startAuthConnectionSignInTest}async function kD({connection:e,runId:t}){return (await Te({config:e,document:UA,variables:{runId:t}})).checkAuthConnectionSignInTest}function Mm(e){return `${Bm(e)}/settings?section=environment`}function Bm({connection:e,projectId:t}){return `${e.ripploServerUrl}/projects/${t}`}function CD({connection:e,projectId:t}){let n=encodeURIComponent(`/projects/${t}`);return `${e.ripploServerUrl}/login?redirect=${n}`}var AD=2e3,co=2e4;async function Vm({connection:e,remainingMs:t,runId:n}){if(t<=0)return {kind:"timedOut"};await setTimeout$1(AD);let i=await kD({connection:e,runId:n});return MA(i)??Vm({connection:e,remainingMs:t-AD,runId:n})}function MA(e){switch(e.kind){case "pending":return;case "signedIn":return {kind:"signedIn"};case "failed":return {detail:e.detail??"",kind:"failed"}}}var Wm=c(Qs(),1);var FD=c(Qs(),1),PD=String.fromCodePoint(27),WA=`${PD}[38;5;245m`,GA=`${PD}[0m`;function Ne(e){return FD.default.isColorSupported?`${WA}${e}${GA}`:e}var UD="https://ripplo.ai/docs#sign-in",ND={auth:{title:"Authentication",why:"Ripplo generates test users as an OpenID Connect identity provider, like sign in with Google. That takes two registrations: your app with Ripplo, then Ripplo with your app."},check:{title:"Test authentication",why:"Ripplo signs a test user in through your app the way a review run would."},claude:{title:"Set up Claude Code for Ripplo",why:"The Ripplo plugin lets Claude Code read a review's findings and fix them in your code."},github:{title:"GitHub access",why:"Ripplo reads your code base to write workflows, reads pull requests to review them, and posts results as comments. Your organization grants that access by connecting the GitHub account that owns this repository."},open:{title:"Open Ripplo",why:"Your project page shows workflows as Ripplo writes them, and every review after that."},project:{title:"Project",why:"A project is this repository inside Ripplo, where its workflows and reviews live."},signIn:{title:"Sign in",why:"Setup saves the project under your Ripplo account."},url:{title:"Test app",why:"Ripplo opens a deployed copy of your app in a browser and signs in as a test user."}},jD=["signIn","project","github","url","auth","check","claude","open"];function $t(e){return {title:`${String(jD.indexOf(e)+1)}. ${ND[e].title}`,why:ND[e].why}}var zD={app:{title:"Register Ripplo with your app",why:"Add Ripplo as a sign-in provider to your app and give it three values. Ripplo cannot sign in until this is done."},ripplo:{title:"Register your app with Ripplo",why:"Ripplo needs your app's sign-in page and where it sends the browser back after sign-in."}};function eu(e){return {title:`${String(jD.indexOf("auth")+1)}${e==="ripplo"?"a":"b"}. ${zD[e].title}`,why:zD[e].why}}function tu(){return "Ripplo setup"}function ru(e){switch(e.kind){case "no-remote":return "No git remote named origin here. Run setup inside the repository to review.";case "not-github":return `The origin remote is ${e.remote}. Ripplo reviews GitHub repositories only.`}}function LD(e){return `Signed in as ${e}`}function Gm(e){return `${e} is connected`}function MD({organization:e,repo:t}){return `${e} cannot read ${t} yet.`}function BD(e){return `Connect the GitHub account ${e} in organization settings, with access to this repository`}function VD(){return "Open organization settings now?"}function ZD(){return "Open settings, connect GitHub, then come back"}function WD(){return "Stop"}function Ge(){return "Stopped. Run setup again to resume."}function GD(e){return [Ne("If the page did not open, use this link:"),ii(e)]}function qD(e){return `Waiting for ${e} to appear`}function HD({minutes:e,repo:t}){return `Ripplo still cannot read ${t} after ${String(e)} minutes. Connect the account that owns it, or refresh its access if it is already connected.`}function YD(){return "Your account is in no Ripplo organization. Create one in the dashboard first."}function JD(){return "Which organization owns this app?"}function qm(e){return `Organization ${e}`}function KD(e){let t=ws(e.projectCount,"project"),n=ws(e.memberCount,"member"),i=Ne(`${t} \xB7 ${n} \xB7 ${e.planName} plan`);return `${e.name} ${i}`}function XD(e){return `Using the existing project ${e}`}function QD(e){return `A project stays in its organization. To use another, delete ${e} in its settings and run setup again.`}function ex({organization:e,repo:t}){return `${t} will be a project in ${e}, created once GitHub access is confirmed`}function tx(e,t){return `Created ${e} in ${t}`}function rx(e){return `Could not create the project. ${e}`}function nx(){return "Where will Ripplo test your app?"}function nu(e){switch(e){case "staging":return "One pre-production server with a stable address";case "previews":return "Pull request preview environments, one address per pull request";case "both":return "Both"}}function ix(e){return `${nu(e)} ${Ne("from --environments")}`}function ox({appUrl:e,environments:t,previewUrl:n}){return [nu(t),`Testing against ${e}`,...n==null?[]:[`Previews at ${n}`]]}function ax(){return "Every review creates a test user in this app, so use a staging server, not production."}function sx(){return "Where does your pre-production server run?"}function ux(){return "https://staging.example.com"}function cx(){return ["Each pull request preview has its own address. Ripplo learns it from the comment that starts","the review: @ripplo review <preview-url>. To register every preview at once, use one * in the","hostname for the part that changes."]}function lx(){return "What do your preview addresses look like?"}function dx(){return "https://myapp-pr-*.example.com"}function px(){return "Ripplo also needs one preview that is up right now, to test sign-in against."}function fx(){return "Which preview is up right now?"}function mx(){return "https://myapp-pr-123.example.com"}function hx({flag:e,value:t}){let n=Ne(`from --${e}`);return `${t} ${n}`}function gx({flag:e,reason:t}){return `--${e}: ${t}`}function vx(e){return `No terminal to ask in. Run setup in a terminal, or pass --${e}.`}function yx(){return "Continue"}function bx(){return "Change it"}function _x(e){return `Sign-in connection ${e}`}function Dx({redirectUris:e,scimBaseUrl:t,signInEntry:n}){return [`Sign-in page ${n}`,...e.map(i=>`Callback ${i}`),t==null?"SCIM off":`SCIM ${t}`]}function xx(e){return `Updated ${e}, client id and secret unchanged`}function Sx(e){return `Created ${e}, set as the default connection`}function Ex(){return "Ripplo signs in through your app's sign-in page. A path works for the pre-production server and every preview."}function wx(){return "Which page starts sign-in with Ripplo?"}function $x(){return "/api/auth/oidc/start"}function Ix(){return "The callback your auth library uses for Ripplo sign-in."}function Ox(){return "Where does your pre-production server receive the callback?"}function kx(e){return `${e}/api/auth/oauth2/callback/ripplo`}function Cx(){return "The same callback on your previews, with the * where the address changes."}function Ax(){return "Where do your previews receive the callback?"}function Rx(e){return `${e}/api/auth/oauth2/callback/ripplo`}function Hm({connection:e,secret:t,settingsUrl:n}){return [`Client id ${e.clientId}`,...qA({secret:t,settingsUrl:n}),`Discovery URL ${e.discoveryUrl}`]}function Tx(e){return [`Client id ${e.clientId}`,`Client secret ${Ne("\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022")}`,`Discovery URL ${e.discoveryUrl}`]}function Fx(){return "Your existing secret will immediately stop working. Ripplo cannot sign in to your app until you update the secret there."}function Px(e){return `Client secret ${e}`}function Nx(){return "Have you already registered Ripplo with your app?"}function zx(){return "Yes, continue"}function Ux(){return "Give me a new secret"}function jx(){return "Rotate the secret"}function Lx(){return "Keep the current secret"}function Mx(){return ["Add Ripplo as a sign-in provider to your app","Set the three variables on your dev server and deploy"]}function Bx(){return `Guides ${ii(UD)}`}function Vx(){return "Register Ripplo with your app now?"}function Zx(){return "Now"}function Wx(){return "Come back later (setup remembers your choices)"}function Ym(){return "Not finished. Run setup again to continue from here:"}function Gx(){return "Give your app these three values, then deploy"}function Jm(){return ["Auth libraries read them from variables on your dev server, some also need a few lines of code. Keycloak takes them in its settings. An app that was already running needs a restart to read them.",`Guides for better-auth, next-auth and Keycloak: ${ii(UD)}`]}function Km(){return "Is your app running with these three values? Deploy it, or restart it locally, then continue."}function qx(){return "Done"}function lo(){return "Stop for now"}function Hx(){return "Not finished. When the deploy is live, test authentication:"}function ni(e){return `${e} --check`}function Yx(){return "Updating the Ripplo plugin for Claude Code"}function Jx(){return "Could not install the Ripplo plugin for Claude Code. Run claude plugin install ripplo@ripplo."}function Kx(){return "Yes"}function Xx(){return "No"}function Qx(){return "Open Ripplo in your browser?"}function eS(){return "Claude Code is not installed. Install it, then run: claude plugin install ripplo@ripplo"}function tS(){return "Ripplo plugin installed in Claude Code"}function rS(){return "A tab will open and sign in to your app as a test user, the way a review run does. Nothing to type."}function nS(){return "Start test"}function iS(){return "Watch the tab that opened"}function oS(e){return [Ne("If no tab opened, use this link. It works once:"),ii(e)]}function aS(){return "Waiting for your app to exchange the code"}function sS(e){return `Ripplo signed in through ${e}`}function uS(e){return {detail:e.length>0?[Ne(e)]:[],headline:"Ripplo could not sign in"}}function cS(e){return `No code exchange within ${String(e)} seconds. Is the deploy live, the sign-in page up, and the app restarted if needed?`}function lS(){return ""}function dS(){return "Test again"}function iu(){return "Fix what the test named, deploy, then test again:"}function pS(){return "This project has no sign-in connection yet. Run setup first."}function fS(e){return `No Ripplo project is connected to ${e}. Run setup first.`}function mS(e){return `Ripplo's server rejected the request: ${e}`}function hS(){return "Done. Ripplo can sign in to your test app and review pull requests."}function gS({appUrl:e,projectUrl:t}){let n=Wm.default.bold(`@ripplo review ${e}`);return [`Project ${ii(t)}`,`Review comment ${n} on any pull request`]}function qA({secret:e,settingsUrl:t}){return [`Client secret ${e??Ne("copy it from the settings page")}`,...e==null?[ii(t)]:[]]}function ii(e){return Wm.default.underline(e)}var vS=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),yS=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,bS=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141;var HA=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,YA=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,_S=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,JA=/\t{1,1000}/y,DS=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),KA=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,XA=new RegExp("\\p{M}+","gu"),QA={limit:1/0,ellipsis:""},xS=(e,t={},n={})=>{let i=t.limit??1/0,r=t.ellipsis??"",o=t?.ellipsisWidth??(r?xS(r,QA,n).width:0),a=0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.emojiWidth??2,d=2,p=n.regularWidth??1,m=n.wideWidth??d,h=[[KA,p],[HA,a],[YA,s],[JA,c],[DS,l],[_S,m]],y=0,x=0,b=e.length,j=0,H=false,B=b,R=Math.max(0,i-o),k=0,z=0,re=0,ce=0;e:for(;;){if(z>k||x>=b&&x>y){let ve=e.slice(k,z)||e.slice(y,x);j=0;for(let ie of ve.replaceAll(XA,"")){let P=ie.codePointAt(0)||0;if(yS(P)?ce=d:bS(P)?ce=m:ce=p,re+ce>R&&(B=Math.min(B,Math.max(k,y)+j)),re+ce>i){H=true;break e}j+=ie.length,re+=ce;}k=z=0;}if(x>=b)break e;for(let ve=0,ie=h.length;ve<ie;ve++){let[P,N]=h[ve];if(P.lastIndex=x,P.test(e)){if(j=P===_S?vS(e.slice(x,P.lastIndex)):P===DS?1:P.lastIndex-x,ce=j*N,re+ce>R&&(B=Math.min(B,x+Math.floor((R-re)/N))),re+ce>i){H=true;break e}re+=ce,k=y,z=x,x=y=P.lastIndex;continue e}}x+=1;}return {width:H?R:re,index:H?B:b,truncated:H,ellipsed:H&&i>=o}},SS=xS;var eR={limit:1/0,ellipsis:"",ellipsisWidth:0},tR=(e,t={})=>SS(e,eR,t).width,or=tR;var ou="\x1B",OS="\x9B",rR=39,Qm="\x07",kS="[",nR="]",CS="m",eh=`${nR}8;;`,ES=new RegExp(`(?:\\${kS}(?<code>\\d+)m|\\${eh}(?<uri>.*)${Qm})`,"y"),wS=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},$S=e=>`${ou}${kS}${e}${CS}`,IS=e=>`${ou}${eh}${e}${Qm}`,Xm=(e,t,n)=>{let i=t[Symbol.iterator](),r=false,o=false,a=e.at(-1),s=a===void 0?0:or(a),c=i.next(),l=i.next(),d=0;for(;!c.done;){let p=c.value,m=or(p);s+m<=n?e[e.length-1]+=p:(e.push(p),s=0),(p===ou||p===OS)&&(r=true,o=t.startsWith(eh,d+1)),r?o?p===Qm&&(r=false,o=false):p===CS&&(r=false):(s+=m,s===n&&!l.done&&(e.push(""),s=0)),c=l,l=i.next(),d+=p.length;}a=e.at(-1),!s&&a!==void 0&&a.length&&e.length>1&&(e[e.length-2]+=e.pop());},iR=e=>{let t=e.split(" "),n=t.length;for(;n&&!or(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},oR=(e,t,n={})=>{if(n.trim!==false&&e.trim()==="")return "";let i="",r,o,a=e.split(" "),s=[""],c=0;for(let p=0;p<a.length;p++){let m=a[p];if(n.trim!==false){let y=s.at(-1)??"",x=y.trimStart();y.length!==x.length&&(s[s.length-1]=x,c=or(x));}p!==0&&(c>=t&&(n.wordWrap===false||n.trim===false)&&(s.push(""),c=0),(c||n.trim===false)&&(s[s.length-1]+=" ",c++));let h=or(m);if(n.hard&&h>t){let y=t-c,x=1+Math.floor((h-y-1)/t);Math.floor((h-1)/t)<x&&s.push(""),Xm(s,m,t),c=or(s.at(-1)??"");continue}if(c+h>t&&c&&h){if(n.wordWrap===false&&c<t){Xm(s,m,t),c=or(s.at(-1)??"");continue}s.push(""),c=0;}if(c+h>t&&n.wordWrap===false){Xm(s,m,t),c=or(s.at(-1)??"");continue}s[s.length-1]+=m,c+=h;}n.trim!==false&&(s=s.map(p=>iR(p)));let l=s.join(`
364
+ `),d=false;for(let p=0;p<l.length;p++){let m=l[p];if(i+=m,d)d=false;else if(d=m>="\uD800"&&m<="\uDBFF",d)continue;if(m===ou||m===OS){ES.lastIndex=p+1;let y=ES.exec(l)?.groups;if(y?.code!==void 0){let x=Number.parseFloat(y.code);r=x===rR?void 0:x;}else y?.uri!==void 0&&(o=y.uri.length===0?void 0:y.uri);}if(l[p+1]===`
365
+ `){o&&(i+=IS(""));let h=r?wS(r):void 0;r&&h&&(i+=$S(h));}else m===`
366
+ `&&(r&&wS(r)&&(i+=$S(r)),o&&(i+=IS(o)));}return i},aR=/\r?\n/;function th(e,t,n){return String(e).normalize().split(aR).map(i=>oR(i,t,n)).join(`
367
+ `)}var It=c(RS(),1);function su(e,t,n){if(!n.some(a=>!a.disabled))return e;let i=e+t,r=Math.max(n.length-1,0),o=i<0?r:i>r?0:i;return n[o]?.disabled?su(o,t<0?-1:1,n):o}var fR=["up","down","left","right","space","enter","cancel"],oi={actions:new Set(fR),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function hR(e){if(e!==void 0)return e;let t=process.env.ACCESSIBLE;return t!==void 0&&t!==""&&t!=="0"&&t!=="false"}function TS(e,t){if(typeof e=="string")return oi.aliases.get(e)===t;for(let n of e)if(n!==void 0&&TS(n,t))return true;return false}function gR(e,t){if(e===t)return;let n=e.split(`
363
368
  `),i=t.split(`
364
- `),n=Math.max(r.length,i.length),o=[];for(let a=0;a<n;a++)r[a]!==i[a]&&o.push(a);return {lines:o,numLinesBefore:r.length,numLinesAfter:i.length,numLines:n}}globalThis.process.platform.startsWith("win");var ag=Symbol("clack:cancel");function sg(e){return e===ag}function Hu(e,t){let r=e;r.isTTY&&r.setRawMode(t);}var vF=e=>"rows"in e&&typeof e.rows=="number"?e.rows:20;function bF(e,t){if("~standard"in e){let r=e["~standard"].validate(t);return r instanceof Promise?r.then(i=>i.issues?.at(0)?.message):r.issues?.at(0)?.message}return e(t)}var Ku=class{input;output;_abortSignal;rl;opts;_render;_track=false;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";get accessible(){return gF(this.opts.accessible)}constructor(t,r=true){let{input:i=stdin,output:n=stdout,render:o,signal:a,...u}=t;this.opts=u,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=r,this._abortSignal=a,this.input=i,this.output=n;}unsubscribe(){this._subscribers.clear();}setSubscriber(t,r){let i=this._subscribers.get(t)??[];i.push(r),this._subscribers.set(t,i);}on(t,r){this.setSubscriber(t,{cb:r});}once(t,r){this.setSubscriber(t,{cb:r,once:true});}emit(t,...r){let i=this._subscribers.get(t)??[],n=[];for(let o of i)o.cb(...r),o.once&&n.push(()=>i.splice(i.indexOf(o),1));for(let o of n)o();}prompt(){return new Promise(t=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(ag);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close();},{once:true});}this.rl=fF.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:true}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,true),this.input.on("keypress",this.onKeypress),Hu(this.input,true),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(Tt.cursor.show),this.output.off("resize",this.render),Hu(this.input,false),t(this.value);}),this.once("cancel",()=>{this.output.write(Tt.cursor.show),this.output.off("resize",this.render),Hu(this.input,false),t(ag);});})}_isActionKey(t,r){return t===" "}_shouldSubmit(t,r){return true}_setValue(t){this.value=t,this.emit("value",this.value);}_setUserInput(t,r){this.userInput=t??"",this.emit("userInput",this.userInput),r&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor);}_clearUserInput(){this.rl?.write(null,{ctrl:true,name:"u"}),this._setUserInput("");}async onKeypress(t,r){if(this.state!=="validating"){if(this._track&&r.name!=="return"&&(r.name&&this._isActionKey(t,r)&&this.rl?.write(null,{ctrl:true,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),r?.name&&(!this._track&&Ai.aliases.has(r.name)&&this.emit("cursor",Ai.aliases.get(r.name)),Ai.actions.has(r.name)&&this.emit("cursor",r.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),this.emit("key",t,r),r?.name==="return"&&this._shouldSubmit(t,r)){if(this.opts.validate){let i=bF(this.opts.validate,this.value),n;i instanceof Promise?(this.state="validating",this.render(),n=await i):n=i,n&&(this.error=n instanceof Error?n.message:n,this.state="error",this.rl?.write(this.userInput));}this.state!=="error"&&(this.state="submit");}ow([t,r?.name,r?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close();}}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
365
- `),Hu(this.input,false),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){let t=ig(this._prevFrame,process.stdout.columns,{hard:true,trim:false}).split(`
366
- `).length-1;this.output.write(Tt.cursor.move(-999,t*-1));}render(){let t=ig(this._render(this)??"",process.stdout.columns,{hard:true,trim:false});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(Tt.cursor.hide);else {let r=yF(this._prevFrame,t),i=vF(this.output);if(this.restoreCursor(),r){let n=Math.max(0,r.numLinesAfter-i),o=Math.max(0,r.numLinesBefore-i),a=r.lines.find(u=>u>=n);if(a===void 0){this._prevFrame=t;return}if(r.lines.length===1){this.output.write(Tt.cursor.move(0,a-o)),this.output.write(Tt.erase.lines(1));let u=t.split(`
367
- `);this.output.write(u[a]),this._prevFrame=t,this.output.write(Tt.cursor.move(0,u.length-a-1));return}else if(r.lines.length>1){if(n<o)a=n;else {let c=a-o;c>0&&this.output.write(Tt.cursor.move(0,c));}this.output.write(Tt.erase.down());let u=t.split(`
368
- `).slice(a);this.output.write(u.join(`
369
- `)),this._prevFrame=t;return}}this.output.write(Tt.erase.down());}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t;}}};var aw=class extends Ku{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let t=this._selectedValue;this.value=t===void 0?void 0:t.value;}constructor(t){super(t,false),this.options=t.options;let r=this.options.findIndex(({value:n})=>n===t.initialValue),i=r===-1?0:r;this.cursor=this.options[i]?.disabled?Ju(i,1,this.options):i,this.changeValue(),this.on("cursor",n=>{switch(n){case "left":case "up":this.cursor=Ju(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=Ju(this.cursor,1,this.options);break}this.changeValue();});}};var Yu=class extends Ku{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let t=this.userInput;if(this.cursor>=t.length)return `${this.userInput}\u2588`;let r=t.slice(0,this.cursor),i=t.slice(this.cursor,this.cursor+1),n=t.slice(this.cursor+1);return `${r}${styleText("inverse",i)}${n}`}get cursor(){return this._cursor}constructor(t){super({...t,initialUserInput:t.initialUserInput??t.initialValue}),this.on("userInput",r=>{this._setValue(r);}),this.on("finalize",()=>{this.value||(this.value=t.defaultValue),this.value===void 0&&(this.value="");});}};var Pt=c(Mu(),1);var Ft=process.stdin.isTTY,cg=Symbol("cancel"),ug=" ",SF=80,uw=String.fromCodePoint(27),sw=`\r${uw}[2K`,cw=new RegExp(`${uw}\\[[\\d;]*m`,"gu"),xF=new Set(["\u2713","\u2717","\u2192","\u25CF","\u25CB","\u2026"]);function Qu(e){_t(`
370
- ${Pt.default.bold(e)}`);}function at({title:e,why:t}){_t(`
371
- ${Pt.default.bold(Pt.default.cyan(e))}`),_t(Le(je(t)));}function Ie(e){_t(Le(`${Pt.default.green("\u2713")} ${e}`));}function ec(e){_t(Le(`${Pt.default.red("\u2717")} ${e}`));}function qn(e){_t(Le(`${Pt.default.yellow("\u2192")} ${e}`));}function ze(e){_t(Le(e));}function Hn(e){_t(Le((typeof e=="string"?[e]:e).map(r=>je(r))));}function lw(){_t("");}function Tr(e,t=[]){_t(`
372
- ${e}`),t.forEach(r=>{_t(`${ug}${r}`);}),_t("");}function Xe(e){_t(`
373
- ${je(e)}
374
- `),process.exit(0);}function Me(e,t=[]){ec(e),Tr(je("Stopped."),t),process.exit(1);}function tc(e){return process.stdout.write(Le(`${je("\u2026")} ${e}`)),{done:t=>{process.stdout.write(sw),Ie(t);},failed:t=>{process.stdout.write(sw),ec(t);}}}function nc(e){return pw({...e,layout:"column"})}function Et(e){return pw({...e,layout:"row"})}async function dw({message:e,placeholder:t,suggested:r,validate:i}){let o=await new Yu({initialValue:r,placeholder:t,render(){let a=t==null?"":je(`ex: ${t}`),u=Pt.default.inverse(" "),c=this.userInput.length===0?`${u} ${a}`:this.userInputWithCursor;switch(this.state){case "submit":return Le(`${Pt.default.green("\u2713")} ${this.value??""}`);case "cancel":return Le(je(e));case "error":{let l=Le(`${Pt.default.red("\u2717")} ${this.error}`);return [Le(e),Le(c),l].join(`
375
- `)}case "initial":case "active":case "validating":return [Le(e),Le(c)].join(`
376
- `)}},validate:a=>i(a??"")}).prompt();return sg(o)||typeof o!="string"?cg:o.trim()}function Ge(e){return e===cg}async function rc(e){try{await e();}catch(t){throw t instanceof ar&&Me(LE(t.message)),t}}function Jn(){return "npx ripplo setup"}async function pw({choices:e,layout:t,message:r}){let i=[...e],n=r==null?[]:[Le(r)],a=await new aw({options:i,render(){let u=i.find(c=>c.value===this.value);switch(this.state){case "submit":return Le(`${Pt.default.green("\u2713")} ${u?.label??""}`);case "cancel":return Le(je(r??"Stopped"));case "initial":case "active":case "error":case "validating":{let c=i.map((d,p)=>`${p===this.cursor?Pt.default.green("\u25CF"):je("\u25CB")} ${d.label}`),l=t==="row"?[Le(c.join(" "))]:c.map(d=>Le(d));return [...n,...l].join(`
377
- `)}}}}).prompt();return sg(a)||typeof a!="string"?cg:a}function Le(e){let t=typeof e=="string"?[e]:e,r=process.stdout.columns,i=(r>0?r:SF)-ug.length;return t.flatMap(n=>n.length===0?[""]:DF(n,i).map(o=>ug+o)).join(`
378
- `)}function DF(e,t){let[r="",...i]=e.split(" "),n=_F(r)?" ":"";return i.reduce((o,a)=>{let c=`${o.at(-1)??""} ${a}`;return EF(c)<=t?[...o.slice(0,-1),c]:[...o,`${n}${a}`]},[r])}function _F(e){let t=e.replaceAll(cw,"");return xF.has(t)}function EF(e){return e.replaceAll(cw,"").length}function _t(e){process.stdout.write(`${e}
379
- `);}var kF=promisify(execFile),IF=s.object({stderr:s.string().optional(),stdout:s.string().optional()});async function ic({args:e,command:t,cwd:r}){try{let{stderr:i,stdout:n}=await kF(t,[...e],{cwd:r});return {ok:!0,stderr:i,stdout:n}}catch(i){return OF(i)}}function OF(e){let t=IF.safeParse(e),r=t.success?t.data.stderr??"":"",i=t.success?t.data.stdout??"":"",n=e instanceof Error?e.message:String(e);return {ok:false,stderr:r.length>0?r:n,stdout:i}}var CF=s.string().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"not json"}),s.NEVER}});async function fw(){return (await Ti(["--version"])).ok}function Ti(e){return ic({args:e,command:"claude",cwd:void 0})}var RF=["user","project","local"],AF=s.array(s.object({id:s.string(),version:s.string()}));async function mw(){if(await TF()===Fu())return "ready";await Ti(["plugin","marketplace","add","ripplo/claude-plugin"]),await Ti(["plugin","marketplace","update","ripplo"]);let e=await Ti(["plugin","install","ripplo@ripplo"]),t=/already installed/i.test(`${e.stdout}${e.stderr}`);return !e.ok&&!t?"install-failed":(t&&await Promise.all(RF.map(r=>Ti(["plugin","update","ripplo","--scope",r]))),"ready")}async function TF(){let e=await Ti(["plugin","list","--json"]);if(!e.ok)return;let t=CF.pipe(AF).safeParse(e.stdout);return t.success?t.data.find(r=>r.id==="ripplo@ripplo")?.version:void 0}async function hw(){if(at(At("claude")),!await fw()){ze($E());return}if(ze(xE()),await mw()==="install-failed"){ec(DE());return}Ie(kE());}var PF=/^(?:https:\/\/github\.com\/|git@github\.com:)([^/]+)\/([^/]+?)(?:\.git)?\/?$/;async function oc(e){let t=await ic({args:["remote","get-url","origin"],command:"git",cwd:e}),r=t.stdout.trim();if(!t.ok||r.length===0)return de({kind:"no-remote"});let i=gw(r);return i==null?de({kind:"not-github",remote:r}):Fe(i)}function Zo(e,t){let r=e==null?void 0:gw(e);return r!=null&&r.owner.toLowerCase()===t.owner.toLowerCase()&&r.repo.toLowerCase()===t.repo.toLowerCase()}function gw(e){let t=PF.exec(e),r=t?.[1],i=t?.[2];if(!(r==null||i==null))return {owner:r,repo:i,url:`https://github.com/${r}/${i}`}}async function yw(e){let t=Sn();t==null&&Me(Ar());let r=xn(t),[i,n]=await Promise.all([oc(e),Oi(r)]),o=i.match(c=>c,c=>Me(Zu(c))),a=`${o.owner}/${o.repo}`,u=n.find(c=>Zo(c.repoUrl,o));return u==null&&Me(UE(a)),{connection:r,project:u}}function vw(){return rc(()=>FF(process.cwd()))}async function FF(e){let{connection:t,project:r}=await yw(e);Qu(Vu()),await Wo({connection:t,project:r});}async function jF(e){if(at(At("open")),!Ft)return;let t=await Et({choices:[{label:_E(),value:"yes"},{label:EE(),value:"no"}],message:wE()});Ge(t)&&Xe(Ye()),t==="yes"&&hr(e);}async function zF(){if(!Ft)return;Hn(IE());let e=await Et({choices:[{label:OE(),value:"start"},{label:Vo(),value:"stop"}],message:void 0});(Ge(e)||e==="stop")&&Me(Gu(),[Ri(Jn())]);}async function bw(e){if(await NF(e))return;Ft||Me(Gu(),[Ri(Jn())]);let r=await Et({choices:[{label:zE(),value:"again"},{label:Vo(),value:"stop"}],message:jE()});return (Ge(r)||r==="stop")&&Me(Gu(),[Ri(Jn())]),bw(e)}async function NF({connection:e,connectionId:t,name:r}){let i=await HD({connection:e,connectionId:t});qn(CE()),hr(i.url),ze(RE(i.url));let n=tc(AE()),o=await Zh({connection:e,remainingMs:Bo,runId:i.runId});if(o.kind==="signedIn")return n.done(TE(r)),true;if(o.kind==="timedOut")return n.failed(FE(Bo/1e3)),false;let a=PE(o.detail);return n.failed(a.headline),ze(a.detail),false}async function Wo({connection:e,project:t}){let r=t.defaultAuthConnection;if(r?.oidc==null&&Me(NE()),at(At("check")),await zF(),await bw({connection:e,connectionId:r.id,name:r.name}),await hw(),await jF(KD({connection:e,projectId:t.id})),t.cloudBaseUrl==null||t.cloudBaseUrl.length===0)throw new Error("checked-project-without-app-url");Tr(ME(),BE({appUrl:t.cloudBaseUrl,projectUrl:Vh({connection:e,projectId:t.id})}));}var Go=["staging","previews","both"];async function Pr({flag:e,given:t,hint:r,message:i,placeholder:n,schema:o,suggested:a}){if(t!=null)return lg({flag:e,given:t,schema:o});Fr(e),Hn(r);let u=await dw({message:i,placeholder:n,suggested:a,validate:c=>UF(o.safeParse(c))});return Ge(u)&&Xe(Ye()),u}function lg({flag:e,given:t,schema:r}){let i=r.safeParse(t);return i.success||Me(B_({flag:e,reason:Sw(i.error)})),Ie(M_({flag:e,value:i.data})),i.data}function Fr(e){Ft||Me(V_(e));}function UF(e){return e.success?void 0:Sw(e.error)}async function jr(){if(!Ft)return "continue";let e=await Et({choices:[{label:Z_(),value:"continue"},{label:W_(),value:"change"}],message:void 0});return Ge(e)&&Xe(Ye()),e==="change"?"change":"continue"}function Sw(e){let[t]=e.issues;if(t==null)throw new Error("zod-failure-without-issue");return t.message}async function xw({answers:e,connection:t,existing:r,repo:i}){if(r!=null)return Ie(E_(r.name)),await jr()==="change"&&(ze(w_(r.name)),Xe(Ye())),{kind:"existing",project:r};let n=await LF({answers:e,connection:t});return Ie($_({organization:n.name,repo:i})),{kind:"new",organization:n,repo:i}}async function Dw({connection:e,installation:t,plan:r,repository:i}){return r.kind==="existing"?r.project:(await VD({connection:e,installationId:t.installationId,name:i.name,organizationId:r.organization.id,repoUrl:i.url})).match(o=>(Ie(k_(o.name,r.organization.name)),o),o=>Me(I_(o.message)))}async function LF({answers:e,connection:t}){let r=await LD(t),[i]=r;if(i==null&&Me(x_()),r.length===1)return Ie(Jh(i.name)),i;let n=r.find(u=>u.name===e.organization);if(n!=null)return Ie(Jh(n.name)),n;Fr("organization");let o=await nc({choices:r.map(u=>({label:u.limitStatus.canCreateProject?Kh({name:u.name,...u.limitStatus}):__({name:u.name,...u.limitStatus}),value:u.id})),message:D_()}),a=r.find(u=>u.id===o);return (Ge(o)||a==null)&&Xe(Ye()),a}function _w(e){let t=Ew(e.cloudBaseUrl);if(t==null)return;let r=e.defaultAuthConnection?.oidc?.redirectUris??[],i=r.find(a=>vi(a)?.kind==="host-pattern"),n=r.filter(a=>vi(a)?.kind==="exact"),o=i;return o==null?{appUrl:t,environments:"staging",previewUrl:void 0}:{appUrl:t,environments:n.length===0?"previews":"both",previewUrl:MF(o)}}function MF(e){let t=e.indexOf("/",e.indexOf("//")+2);return t===-1?e:e.slice(0,t)}async function dg({answers:e,connection:t,project:r}){let i=await BF(e),n=i==="staging"?void 0:await VF(e),o=await ZF({answers:e,environments:i,project:r});return await ZD({appUrl:o,connection:t,id:r.id}),{appUrl:o,environments:i,previewUrl:n}}async function BF(e){if(e.environments!=null)return Ie(C_(e.environments)),e.environments;Fr("environments");let t=await nc({choices:Go.map(i=>({label:Wu(i),value:i})),message:O_()}),r=Go.find(i=>i===t);return (Ge(t)||r==null)&&Xe(Ye()),r}async function VF(e){return Pr({flag:"preview-url",given:e.previewUrl,hint:F_(),message:j_(),placeholder:z_(),schema:bm,suggested:void 0})}async function ZF({answers:e,environments:t,project:r}){let i=t==="previews",n=await Pr({flag:"app-url",given:e.appUrl,hint:i?N_():A_(),message:i?U_():T_(),placeholder:i?L_():P_(),schema:Zs,suggested:Ew(r.cloudBaseUrl)});return new URL(n).origin}function Ew(e){return e==null||e.length===0?void 0:e}async function ww({connection:e,created:t,project:r}){let i=Bh({connection:e,projectId:r.id});if(!Ft){kw({created:t,settingsUrl:i});return}let n=await Et({choices:[{label:gE(),value:"now"},{label:yE(),value:"later"}],message:hE()});if(Ge(n)&&Xe(Ye()),n==="later"){Tr(Xh(),[Jn()]);return}qn(vE()),ze(Yh({connection:t,secret:t.secret,settingsUrl:i})),Hn(Qh()),await Iw(eg());let o=await WF({connection:e,id:r.id});await Wo({connection:e,project:o});}async function $w({connection:e,created:t,project:r}){if(!Ft){kw({created:t,settingsUrl:Bh({connection:e,projectId:r.id})});return}ze(oE(t));let i=await Et({choices:[{label:cE(),value:"continue"},{label:lE(),value:"rotate"}],message:uE()});if(Ge(i)&&Xe(Ye()),i==="rotate"){Hn(aE());let n=await Et({choices:[{label:dE(),value:"rotate"},{label:pE(),value:"keep"}],message:void 0});if(Ge(n)||n==="keep"){await Wo({connection:e,project:r});return}let o=await qD({connection:e,connectionId:t.id});ze(sE(o)),Hn(Qh()),await Iw(eg());}await Wo({connection:e,project:r});}function kw({created:e,settingsUrl:t}){fE().forEach(r=>{qn(r);}),ze(mE()),lw(),ze(Yh({connection:e,secret:null,settingsUrl:t})),Tr(SE(),[Ri(Jn())]);}async function Iw(e){let t=await Et({choices:[{label:bE(),value:"done"},{label:Vo(),value:"stop"}],message:e});(Ge(t)||t==="stop")&&(Tr(Xh(),[Jn()]),process.exit(0));}async function WF({connection:e,id:t}){let i=(await Oi(e)).find(n=>n.id===t);if(i==null)throw new Error("project-vanished-during-setup");return i}async function Ow(e){let{answers:t,connection:r,project:i}=e,n=i.defaultAuthConnection;at(At("url"));let o=await GF({answers:t,connection:r,project:i});if(at(At("auth")),at(Bu("ripplo")),n?.oidc==null){let u=await qF({answers:t,connection:r,project:i,targets:o});at(Bu("app")),await ww({connection:r,created:u,project:i});return}let a=await YF({answers:t,connection:r,existing:n,targets:o});at(Bu("app")),await $w({connection:r,created:a,project:i});}async function GF({answers:e,connection:t,project:r}){let i=_w(r);return i==null?dg({answers:e,connection:t,project:r}):(R_(i).forEach(o=>{Ie(o);}),await jr()==="change"?dg({answers:e,connection:t,project:r}):i)}async function qF({answers:e,connection:t,project:r,targets:i}){let n=await Cw({answers:e,existingUris:[],targets:i}),o=await WD({connection:t,project:r,values:n});return Ie(J_(o.connection.name)),Rw({connection:o.connection,secret:o.clientSecret})}async function Cw({answers:e,existingUris:t,targets:r}){let i=await Pr({flag:"sign-in-page",given:e.signInPage,hint:K_(),message:Y_(),placeholder:X_(),schema:Ws,suggested:void 0});return {redirectUris:await HF({answers:e,existingUris:t,targets:r}),signInEntry:i}}async function HF({answers:e,existingUris:t,targets:r}){if(e.redirectUris.length>0)return e.redirectUris.map(o=>lg({flag:"redirect-uri",given:o,schema:cr}));Fr("redirect-uri");let i=r.environments==="previews"?[]:[await JF({appUrl:r.appUrl,suggested:t[0]})],n=r.previewUrl==null?[]:[await KF(r.previewUrl)];return [...i,...n]}function JF({appUrl:e,suggested:t}){return Pr({flag:"redirect-uri",given:void 0,hint:Q_(),message:eE(),placeholder:tE(e),schema:cr,suggested:t})}function KF(e){return Pr({flag:"redirect-uri",given:void 0,hint:nE(),message:rE(),placeholder:iE(e),schema:cr,suggested:void 0})}function Rw({connection:e,secret:t}){let r=e.oidc;if(r==null)throw new Error("connection-without-oidc");return {...r,id:e.id,name:e.name,secret:t}}async function YF({answers:e,connection:t,existing:r,targets:i}){let n=r.oidc;if(n==null)throw new Error("existing-connection-without-oidc");let o=r.webhookSecret??null;if(Ie(G_(r.name)),ze(q_(n)),await jr()==="continue")return {...n,id:r.id,name:r.name,secret:o};let u=await Cw({answers:e,existingUris:n.redirectUris,targets:i}),c=await GD({connection:t,id:r.id,name:r.name,scimBaseUrl:n.scimBaseUrl,values:u});return Ie(H_(c.name)),Rw({connection:c,secret:o})}var Aw=3e3,Tw=200,Pw=Aw*Tw/6e4;function Fw(e){return rc(()=>QF({answers:e,cwd:process.cwd()}))}async function QF({answers:e,cwd:t}){let r=await e1(t),i=`${r.owner}/${r.repo}`;Qu(Vu()),at(At("signIn"));let n=await t1();at(At("project"));let a=(await Oi(n)).find(h=>Zo(h.repoUrl,r)),u=await xw({answers:e,connection:n,existing:a,repo:i});at(At("github"));let c=await Mh({accountLogin:r.owner,connection:n});c!=null&&Ie(qh(r.owner));let l=c??await i1({connection:n,owner:r.owner}),d=await Nw({connection:n,remote:r});d!=null&&Ie(Hh(i));let p=d??await o1({connection:n,remote:r}),m=await Dw({connection:n,installation:l,plan:u,repository:p});await Ow({answers:e,connection:n,project:m});}async function e1(e){return (await oc(e)).match(r=>r,r=>Me(Zu(r)))}async function t1(){let e=Sn(),t=e==null?void 0:await Mo(e);if(e!=null&&t?.kind==="ok"){if(Ie(a_(t.viewer.email)),await jr()==="continue")return xn(e);Fo(Rr());}await Po({lookupViewer:Mo,serverUrl:Rr()});let r=Sn();return r==null&&Me(Ar()),xn(r)}async function jw({choice:e,connection:t,done:r,probe:i,question:n,timedOut:o,waiting:a}){let u=await MD(t);if(u==null)throw new Error("server-without-github-install-url");await n1({choice:e,question:n});let c=r1(u);hr(c),ze(f_(c));let l=tc(a),d=await zw({probe:i,remaining:Tw});return d==null&&(l.failed(o),Xe(Ye())),l.done(r),d}async function n1({choice:e,question:t}){if(!Ft)return;let r=await Et({choices:[{label:e,value:"open"},{label:p_(),value:"stop"}],message:t});(Ge(r)||r==="stop")&&Xe(Ye());}function r1(e){let t=new URL(e);return t.searchParams.set("state","cli"),t.toString()}async function zw({probe:e,remaining:t}){return t===0?void 0:(await setTimeout$1(Aw),await e()??zw({probe:e,remaining:t-1}))}function i1({connection:e,owner:t}){return ze(s_(t)),qn(u_(t)),jw({choice:d_(),connection:e,done:qh(t),question:l_(),timedOut:h_({minutes:Pw,owner:t}),waiting:m_(),probe:()=>Mh({accountLogin:t,connection:e})})}async function Nw({connection:e,remote:t}){return (await BD(e)).find(i=>Zo(i.url,t))}function o1({connection:e,remote:t}){let r=`${t.owner}/${t.repo}`;return ze(g_(r)),qn(c_(r)),jw({choice:v_(),connection:e,done:Hh(r),question:y_(r),timedOut:S_({minutes:Pw,repo:r}),waiting:b_(r),probe:()=>Nw({connection:e,remote:t})})}var c1=createRequire$1(import.meta.url);function Uw(e,t){try{return c1.resolve(e)}catch{return fileURLToPath(new URL(`assets/${t}`,import.meta.url))}}function Lw(e){let t;return ()=>(t??=readFile(e,"utf8"),t)}var d1={height:800,width:1280};async function Mw(e){let t=await readFile(e,"utf8");return _o(t).flatMap(r=>r.kind==="rrweb"?[r.event]:[])}var p1=s.object({data:s.looseObject({height:s.number(),width:s.number()}),type:s.literal(4)});function ac(e){let t=e.flatMap(r=>{let i=p1.safeParse(r);return i.success?[i.data]:[]})[0];return t==null?d1:{height:t.data.height,width:t.data.width}}function Bw(){return import('playwright').then(({chromium:e})=>e.launch({args:["--no-sandbox"],headless:true})).catch(()=>null)}var Vw=Lw(Uw("@ripplo/rrweb-bundle/replay","rrweb-replay.js"));function Zw({events:e,styleRules:t,useVirtualDom:r}){globalThis.__ripploSnapshotReplayer=new globalThis.__RipploReplayer(e,{insertStyleRules:t,mouseTail:false,root:document.body,showWarning:false,useVirtualDom:r});}function Ww(e){globalThis.__ripploSnapshotReplayer?.pause(e+.5);}function Gw({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;return t==null?false:(t.documentElement.getBoundingClientRect(),[...t.querySelectorAll('link[rel~="stylesheet"]')].every(i=>i.disabled||i.sheet!=null)&&t.fonts.status==="loaded")}async function qw(){await new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>{e();}));});}function Hw({documentPrefix:e,frameSelector:t}){let r=globalThis.__ripploSnapshotReplayer,i=document.querySelector(t)?.contentDocument;if(r==null||i==null)return "";let n=r.getMirror();return [...i.querySelectorAll("*")].forEach(o=>{let a=n.getId(o);a!=null&&a>0&&(o.dataset.rrwebId=String(a));}),`${e}${i.documentElement.outerHTML}`}function Jw({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;if(t==null)return [];let r=n=>[...n.childNodes].filter(o=>o.nodeType===3).map(o=>o.textContent??"").join(" ").replaceAll(/\s+/gu," ").trim(),i=n=>{if(n==null)return null;let o=n.dataset.rrwebId;if(o==null)return null;let a=Number.parseInt(o,10);return Number.isSafeInteger(a)&&a>0?a:null};return [...t.querySelectorAll("*")].map(n=>({attributes:Object.fromEntries([...n.attributes].map(o=>[o.name,o.value])),directText:r(n),parentRrwebId:i(n.parentElement),rrwebId:i(n),tagName:n.tagName.toLowerCase()}))}function Kw({frameSelector:e,rrwebId:t}){let r=document.querySelector(e)?.contentDocument,i=r?.defaultView;if(r==null||i==null)throw new Error("snapshot-document-missing");let n=[...r.querySelectorAll(`[data-rrweb-id="${String(t)}"]`)][0];return n==null?Promise.resolve(null):new Promise((o,a)=>{let u=new i.IntersectionObserver(c=>{u.disconnect();let l=c[0];if(l==null){a(new Error("snapshot-intersection-missing"));return}let d=l.intersectionRect;o(l.intersectionRatio>0?{height:d.height,width:d.width,x:d.x,y:d.y}:null);});u.observe(n);})}var cn=".replayer-wrapper iframe",Yw=`<!doctype html>
380
- `;function Xw(e){return e.screenshot({animations:"disabled",timeout:1e4,type:"png"})}var m1="outline: 2px solid #ff4040 !important; outline-offset: 2px !important;";async function Qw({page:e,pngPath:t,rrwebId:r}){let i=e.locator(cn).first(),n=e.frameLocator(cn).locator(`[data-rrweb-id="${String(r)}"]`),o=await i.boundingBox(),a=await n.count()===1;if(o==null||!a||!await n.isVisible())return {kind:"unavailable",rrwebId:r};let u=h1.nullable().parse(await e.evaluate(Kw,{frameSelector:cn,rrwebId:r}));if(u==null)return {kind:"unavailable",rrwebId:r};let c={...u,x:u.x+o.x,y:u.y+o.y};if(c.width<=0||c.height<=0)return {kind:"unavailable",rrwebId:r};let l=`[data-rrweb-id="${String(r)}"] { ${m1} }`,d=`${t}.element-${String(r)}.png`,p=`${t}.element-${String(r)}.context.png`;await writeFile(d,await i.screenshot({animations:"disabled",style:l,timeout:1e4}));let m=g1({inner:{height:c.height+200,width:c.width+240,x:c.x-120,y:c.y-100},outer:o});return await e.screenshot({animations:"disabled",clip:m,path:p,style:l,timeout:1e4}),{cropPath:p,fullPath:d,kind:"visible",rrwebId:r}}var h1=s.object({height:s.number().nonnegative(),width:s.number().nonnegative(),x:s.number(),y:s.number()});function g1({inner:e,outer:t}){let r=Math.max(t.x,e.x),i=Math.max(t.y,e.y);return {height:Math.min(t.y+t.height,e.y+e.height)-i,width:Math.min(t.x+t.width,e.x+e.width)-r,x:r,y:i}}async function e$(e){await e.addInitScript(y1);}function y1(){Reflect.set(globalThis,"__name",e=>e);}var S1=".replayer-mouse, .replayer-mouse-tail { display: none; }";function t$(e){return `<!doctype html><html><head><style>
369
+ `),r=Math.max(n.length,i.length),o=[];for(let a=0;a<r;a++)n[a]!==i[a]&&o.push(a);return {lines:o,numLinesBefore:n.length,numLinesAfter:i.length,numLines:r}}globalThis.process.platform.startsWith("win");var nh=Symbol("clack:cancel");function ih(e){return e===nh}function au(e,t){let n=e;n.isTTY&&n.setRawMode(t);}var vR=e=>"rows"in e&&typeof e.rows=="number"?e.rows:20;function yR(e,t){if("~standard"in e){let n=e["~standard"].validate(t);return n instanceof Promise?n.then(i=>i.issues?.at(0)?.message):n.issues?.at(0)?.message}return e(t)}var uu=class{input;output;_abortSignal;rl;opts;_render;_track=false;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";get accessible(){return hR(this.opts.accessible)}constructor(t,n=true){let{input:i=stdin,output:r=stdout,render:o,signal:a,...s}=t;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=n,this._abortSignal=a,this.input=i,this.output=r;}unsubscribe(){this._subscribers.clear();}setSubscriber(t,n){let i=this._subscribers.get(t)??[];i.push(n),this._subscribers.set(t,i);}on(t,n){this.setSubscriber(t,{cb:n});}once(t,n){this.setSubscriber(t,{cb:n,once:true});}emit(t,...n){let i=this._subscribers.get(t)??[],r=[];for(let o of i)o.cb(...n),o.once&&r.push(()=>i.splice(i.indexOf(o),1));for(let o of r)o();}prompt(){return new Promise(t=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(nh);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close();},{once:true});}this.rl=pR.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:true}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,true),this.input.on("keypress",this.onKeypress),au(this.input,true),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(It.cursor.show),this.output.off("resize",this.render),au(this.input,false),t(this.value);}),this.once("cancel",()=>{this.output.write(It.cursor.show),this.output.off("resize",this.render),au(this.input,false),t(nh);});})}_isActionKey(t,n){return t===" "}_shouldSubmit(t,n){return true}_setValue(t){this.value=t,this.emit("value",this.value);}_setUserInput(t,n){this.userInput=t??"",this.emit("userInput",this.userInput),n&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor);}_clearUserInput(){this.rl?.write(null,{ctrl:true,name:"u"}),this._setUserInput("");}async onKeypress(t,n){if(this.state!=="validating"){if(this._track&&n.name!=="return"&&(n.name&&this._isActionKey(t,n)&&this.rl?.write(null,{ctrl:true,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),n?.name&&(!this._track&&oi.aliases.has(n.name)&&this.emit("cursor",oi.aliases.get(n.name)),oi.actions.has(n.name)&&this.emit("cursor",n.name)),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),this.emit("key",t,n),n?.name==="return"&&this._shouldSubmit(t,n)){if(this.opts.validate){let i=yR(this.opts.validate,this.value),r;i instanceof Promise?(this.state="validating",this.render(),r=await i):r=i,r&&(this.error=r instanceof Error?r.message:r,this.state="error",this.rl?.write(this.userInput));}this.state!=="error"&&(this.state="submit");}TS([t,n?.name,n?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close();}}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
370
+ `),au(this.input,false),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){let t=th(this._prevFrame,process.stdout.columns,{hard:true,trim:false}).split(`
371
+ `).length-1;this.output.write(It.cursor.move(-999,t*-1));}render(){let t=th(this._render(this)??"",process.stdout.columns,{hard:true,trim:false});if(t!==this._prevFrame){if(this.state==="initial")this.output.write(It.cursor.hide);else {let n=gR(this._prevFrame,t),i=vR(this.output);if(this.restoreCursor(),n){let r=Math.max(0,n.numLinesAfter-i),o=Math.max(0,n.numLinesBefore-i),a=n.lines.find(s=>s>=r);if(a===void 0){this._prevFrame=t;return}if(n.lines.length===1){this.output.write(It.cursor.move(0,a-o)),this.output.write(It.erase.lines(1));let s=t.split(`
372
+ `);this.output.write(s[a]),this._prevFrame=t,this.output.write(It.cursor.move(0,s.length-a-1));return}else if(n.lines.length>1){if(r<o)a=r;else {let c=a-o;c>0&&this.output.write(It.cursor.move(0,c));}this.output.write(It.erase.down());let s=t.split(`
373
+ `).slice(a);this.output.write(s.join(`
374
+ `)),this._prevFrame=t;return}}this.output.write(It.erase.down());}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t;}}};var FS=class extends uu{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let t=this._selectedValue;this.value=t===void 0?void 0:t.value;}constructor(t){super(t,false),this.options=t.options;let n=this.options.findIndex(({value:r})=>r===t.initialValue),i=n===-1?0:n;this.cursor=this.options[i]?.disabled?su(i,1,this.options):i,this.changeValue(),this.on("cursor",r=>{switch(r){case "left":case "up":this.cursor=su(this.cursor,-1,this.options);break;case "down":case "right":this.cursor=su(this.cursor,1,this.options);break}this.changeValue();});}};var cu=class extends uu{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let t=this.userInput;if(this.cursor>=t.length)return `${this.userInput}\u2588`;let n=t.slice(0,this.cursor),i=t.slice(this.cursor,this.cursor+1),r=t.slice(this.cursor+1);return `${n}${styleText("inverse",i)}${r}`}get cursor(){return this._cursor}constructor(t){super({...t,initialUserInput:t.initialUserInput??t.initialValue}),this.on("userInput",n=>{this._setValue(n);}),this.on("finalize",()=>{this.value||(this.value=t.defaultValue),this.value===void 0&&(this.value="");});}};var Ot=c(Qs(),1);var kt=process.stdin.isTTY,ah=Symbol("cancel"),oh=" ",bR=80,NS=String.fromCodePoint(27),PS=`\r${NS}[2K`,zS=new RegExp(`${NS}\\[[\\d;]*m`,"gu"),_R=new Set(["\u2713","\u2717","\u2192","\u25CF","\u25CB","\u2026"]);function du(e){gt(`
375
+ ${Ot.default.bold(e)}`);}function tt({title:e,why:t}){gt(`
376
+ ${Ot.default.bold(Ot.default.cyan(e))}`),gt(ze(Ne(t)));}function Re(e){gt(ze(`${Ot.default.green("\u2713")} ${e}`));}function pu(e){gt(ze(`${Ot.default.red("\u2717")} ${e}`));}function an(e){gt(ze(`${Ot.default.yellow("\u2192")} ${e}`));}function Ue(e){gt(ze(e));}function $r(e){gt(ze((typeof e=="string"?[e]:e).map(n=>Ne(n))));}function US(){gt("");}function sn(e,t=[]){gt(`
377
+ ${e}`),t.forEach(n=>{gt(`${oh}${n}`);}),gt("");}function qe(e){gt(`
378
+ ${Ne(e)}
379
+ `),process.exit(0);}function je(e,t=[]){pu(e),sn(Ne("Stopped."),t),process.exit(1);}function fu(e){return process.stdout.write(ze(`${Ne("\u2026")} ${e}`)),{done:t=>{process.stdout.write(PS),Re(t);},failed:t=>{process.stdout.write(PS),pu(t);}}}function mu(e){return LS({...e,layout:"column"})}function vt(e){return LS({...e,layout:"row"})}async function jS({message:e,placeholder:t,suggested:n,validate:i}){let o=await new cu({initialValue:n,placeholder:t,render(){let a=t==null?"":Ne(`ex: ${t}`),s=Ot.default.inverse(" "),c=this.userInput.length===0?`${s} ${a}`:this.userInputWithCursor;switch(this.state){case "submit":return ze(`${Ot.default.green("\u2713")} ${this.value??""}`);case "cancel":return ze(Ne(e));case "error":{let l=ze(`${Ot.default.red("\u2717")} ${this.error}`);return [ze(e),ze(c),l].join(`
380
+ `)}case "initial":case "active":case "validating":return [ze(e),ze(c)].join(`
381
+ `)}},validate:a=>i(a??"")}).prompt();return ih(o)||typeof o!="string"?ah:o.trim()}function Ve(e){return e===ah}async function hu(e){try{await e();}catch(t){throw t instanceof Ur&&je(mS(t.message)),t}}function Ir(){return "npx ripplo setup"}async function LS({choices:e,layout:t,message:n}){let i=[...e],r=n==null?[]:[ze(n)],a=await new FS({options:i,render(){let s=i.find(c=>c.value===this.value);switch(this.state){case "submit":return ze(`${Ot.default.green("\u2713")} ${s?.label??""}`);case "cancel":return ze(Ne(n??"Stopped"));case "initial":case "active":case "error":case "validating":{let c=i.map((d,p)=>`${p===this.cursor?Ot.default.green("\u25CF"):Ne("\u25CB")} ${d.label}`),l=t==="row"?[ze(c.join(" "))]:c.map(d=>ze(d));return [...r,...l].join(`
382
+ `)}}}}).prompt();return ih(a)||typeof a!="string"?ah:a}function ze(e){let t=typeof e=="string"?[e]:e,n=process.stdout.columns,i=(n>0?n:bR)-oh.length;return t.flatMap(r=>r.length===0?[""]:DR(r,i).map(o=>oh+o)).join(`
383
+ `)}function DR(e,t){let[n="",...i]=e.split(" "),r=xR(n)?" ":"";return i.reduce((o,a)=>{let c=`${o.at(-1)??""} ${a}`;return SR(c)<=t?[...o.slice(0,-1),c]:[...o,`${r}${a}`]},[n])}function xR(e){let t=e.replaceAll(zS,"");return _R.has(t)}function SR(e){return e.replaceAll(zS,"").length}function gt(e){process.stdout.write(`${e}
384
+ `);}var $R=promisify(execFile),IR=u.object({stderr:u.string().optional(),stdout:u.string().optional()});async function gu({args:e,command:t,cwd:n}){try{let{stderr:i,stdout:r}=await $R(t,[...e],{cwd:n});return {ok:!0,stderr:i,stdout:r}}catch(i){return OR(i)}}function OR(e){let t=IR.safeParse(e),n=t.success?t.data.stderr??"":"",i=t.success?t.data.stdout??"":"",r=e instanceof Error?e.message:String(e);return {ok:false,stderr:n.length>0?n:r,stdout:i}}var kR=u.string().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"not json"}),u.NEVER}});async function MS(){return (await ai(["--version"])).ok}function ai(e){return gu({args:e,command:"claude",cwd:void 0})}var CR=["user","project","local"],AR=u.array(u.object({id:u.string(),version:u.string()}));async function BS(){if(await RR()===Gs())return "ready";await ai(["plugin","marketplace","add","ripplo/claude-plugin"]),await ai(["plugin","marketplace","update","ripplo"]);let e=await ai(["plugin","install","ripplo@ripplo"]),t=/already installed/i.test(`${e.stdout}${e.stderr}`);return !e.ok&&!t?"install-failed":(t&&await Promise.all(CR.map(n=>ai(["plugin","update","ripplo","--scope",n]))),"ready")}async function RR(){let e=await ai(["plugin","list","--json"]);if(!e.ok)return;let t=kR.pipe(AR).safeParse(e.stdout);return t.success?t.data.find(n=>n.id==="ripplo@ripplo")?.version:void 0}async function VS(){if(tt($t("claude")),!await MS()){Ue(eS());return}if(Ue(Yx()),await BS()==="install-failed"){pu(Jx());return}Re(tS());}var TR=/^(?:https:\/\/github\.com\/|git@github\.com:)([^/]+)\/([^/]+?)(?:\.git)?\/?$/;async function vu(e){let t=await gu({args:["remote","get-url","origin"],command:"git",cwd:e}),n=t.stdout.trim();if(!t.ok||n.length===0)return ue({kind:"no-remote"});let i=ZS(n);return i==null?ue({kind:"not-github",remote:n}):ke(i)}function po(e,t){let n=e==null?void 0:ZS(e);return n!=null&&n.owner.toLowerCase()===t.owner.toLowerCase()&&n.repo.toLowerCase()===t.repo.toLowerCase()}function ZS(e){let t=TR.exec(e),n=t?.[1],i=t?.[2];if(!(n==null||i==null))return {owner:n,repo:i,url:`https://github.com/${n}/${i}`}}async function WS(e){let t=jt();t==null&&je(on());let n=Lt(t),[i,r]=await Promise.all([vu(e),ri(n)]),o=i.match(c=>c,c=>je(ru(c))),a=`${o.owner}/${o.repo}`,s=r.find(c=>po(c.repoUrl,o));return s==null&&je(fS(a)),{connection:n,project:s}}function GS(){return hu(()=>FR(process.cwd()))}async function FR(e){let{connection:t,project:n}=await WS(e);du(tu()),await fo({connection:t,project:n});}async function PR(e){if(tt($t("open")),!kt)return;let t=await vt({choices:[{label:Kx(),value:"yes"},{label:Xx(),value:"no"}],message:Qx()});Ve(t)&&qe(Ge()),t==="yes"&&Br(e);}async function NR(){if(!kt)return;$r(rS());let e=await vt({choices:[{label:nS(),value:"start"},{label:lo(),value:"stop"}],message:void 0});(Ve(e)||e==="stop")&&je(iu(),[ni(Ir())]);}async function qS(e){if(await zR(e))return;kt||je(iu(),[ni(Ir())]);let n=await vt({choices:[{label:dS(),value:"again"},{label:lo(),value:"stop"}],message:lS()});return (Ve(n)||n==="stop")&&je(iu(),[ni(Ir())]),qS(e)}async function zR({connection:e,connectionId:t,name:n}){let i=await OD({connection:e,connectionId:t});an(iS()),Br(i.url),Ue(oS(i.url));let r=fu(aS()),o=await Vm({connection:e,remainingMs:co,runId:i.runId});if(o.kind==="signedIn")return r.done(sS(n)),true;if(o.kind==="timedOut")return r.failed(cS(co/1e3)),false;let a=uS(o.detail);return r.failed(a.headline),Ue(a.detail),false}async function fo({connection:e,project:t}){let n=t.defaultAuthConnection;if(n?.oidc==null&&je(pS()),tt($t("check")),await NR(),await qS({connection:e,connectionId:n.id,name:n.name}),await VS(),await PR(CD({connection:e,projectId:t.id})),t.cloudBaseUrl==null||t.cloudBaseUrl.length===0)throw new Error("checked-project-without-app-url");sn(hS(),gS({appUrl:t.cloudBaseUrl,projectUrl:Bm({connection:e,projectId:t.id})}));}var mo=["staging","previews","both"];async function un({flag:e,given:t,hint:n,message:i,placeholder:r,schema:o,suggested:a}){if(t!=null)return sh({flag:e,given:t,schema:o});cn(e),$r(n);let s=await jS({message:i,placeholder:r,suggested:a,validate:c=>UR(o.safeParse(c))});return Ve(s)&&qe(Ge()),s}function sh({flag:e,given:t,schema:n}){let i=n.safeParse(t);return i.success||je(gx({flag:e,reason:HS(i.error)})),Re(hx({flag:e,value:i.data})),i.data}function cn(e){kt||je(vx(e));}async function ln(){if(!kt)return "continue";let e=await vt({choices:[{label:yx(),value:"continue"},{label:bx(),value:"change"}],message:void 0});return Ve(e)&&qe(Ge()),e==="change"?"change":"continue"}function HS(e){let[t]=e.issues;if(t==null)throw new Error("zod-failure-without-issue");return t.message}function UR(e){return e.success?void 0:HS(e.error)}async function YS({answers:e,connection:t,existing:n,repo:i}){if(n!=null)return Re(XD(n.name)),await ln()==="change"&&(Ue(QD(n.name)),qe(Ge())),{kind:"existing",project:n};let r=await jR({answers:e,connection:t});return Re(ex({organization:r.name,repo:i})),{kind:"new",organization:r,repo:i}}async function JS({connection:e,plan:t,repository:n}){return (await SD({connection:e,installationId:n.installationId,name:n.name,organizationId:t.organization.id,repoUrl:n.url})).match(r=>(Re(tx(r.name,t.organization.name)),r),r=>je(rx(r.message)))}async function jR({answers:e,connection:t}){let n=await DD(t),[i]=n;if(i==null&&je(YD()),n.length===1)return Re(qm(i.name)),i;let r=n.find(s=>s.name===e.organization);if(r!=null)return Re(qm(r.name)),r;cn("organization");let o=await mu({choices:n.map(s=>({label:KD(s),value:s.id})),message:JD()}),a=n.find(s=>s.id===o);return (Ve(o)||a==null)&&qe(Ge()),a}function KS(e){let t=XS(e.cloudBaseUrl);if(t==null)return;let n=e.defaultAuthConnection?.oidc?.redirectUris??[],i=n.find(a=>Hn(a)?.kind==="host-pattern"),r=n.filter(a=>Hn(a)?.kind==="exact"),o=i;return o==null?{appUrl:t,environments:"staging",previewUrl:void 0}:{appUrl:t,environments:r.length===0?"previews":"both",previewUrl:LR(o)}}function LR(e){let t=e.indexOf("/",e.indexOf("//")+2);return t===-1?e:e.slice(0,t)}async function uh({answers:e,connection:t,project:n}){let i=await MR(e),r=i==="staging"?void 0:await BR(e),o=await VR({answers:e,environments:i,project:n});return await ED({appUrl:o,connection:t,id:n.id}),{appUrl:o,environments:i,previewUrl:r}}async function MR(e){if(e.environments!=null)return Re(ix(e.environments)),e.environments;cn("environments");let t=await mu({choices:mo.map(i=>({label:nu(i),value:i})),message:nx()}),n=mo.find(i=>i===t);return (Ve(t)||n==null)&&qe(Ge()),n}async function BR(e){return un({flag:"preview-url",given:e.previewUrl,hint:cx(),message:lx(),placeholder:dx(),schema:jf,suggested:void 0})}async function VR({answers:e,environments:t,project:n}){let i=t==="previews",r=await un({flag:"app-url",given:e.appUrl,hint:i?px():ax(),message:i?fx():sx(),placeholder:i?mx():ux(),schema:ps,suggested:XS(n.cloudBaseUrl)});return new URL(r).origin}function XS(e){return e==null||e.length===0?void 0:e}async function QS({connection:e,created:t,project:n}){let i=Mm({connection:e,projectId:n.id});if(!kt){tE({created:t,settingsUrl:i});return}let r=await vt({choices:[{label:Zx(),value:"now"},{label:Wx(),value:"later"}],message:Vx()});if(Ve(r)&&qe(Ge()),r==="later"){sn(Ym(),[Ir()]);return}an(Gx()),Ue(Hm({connection:t,secret:t.secret,settingsUrl:i})),$r(Jm()),await rE(Km());let o=await ZR({connection:e,id:n.id});await fo({connection:e,project:o});}async function eE({connection:e,created:t,project:n}){if(!kt){tE({created:t,settingsUrl:Mm({connection:e,projectId:n.id})});return}Ue(Tx(t));let i=await vt({choices:[{label:zx(),value:"continue"},{label:Ux(),value:"rotate"}],message:Nx()});if(Ve(i)&&qe(Ge()),i==="rotate"){$r(Fx());let r=await vt({choices:[{label:jx(),value:"rotate"},{label:Lx(),value:"keep"}],message:void 0});if(Ve(r)||r==="keep"){await fo({connection:e,project:n});return}let o=await ID({connection:e,connectionId:t.id});Ue(Px(o)),$r(Jm()),await rE(Km());}await fo({connection:e,project:n});}function tE({created:e,settingsUrl:t}){Mx().forEach(n=>{an(n);}),Ue(Bx()),US(),Ue(Hm({connection:e,secret:null,settingsUrl:t})),sn(Hx(),[ni(Ir())]);}async function rE(e){let t=await vt({choices:[{label:qx(),value:"done"},{label:lo(),value:"stop"}],message:e});(Ve(t)||t==="stop")&&(sn(Ym(),[Ir()]),process.exit(0));}async function ZR({connection:e,id:t}){let i=(await ri(e)).find(r=>r.id===t);if(i==null)throw new Error("project-vanished-during-setup");return i}async function nE(e){let{answers:t,connection:n,project:i}=e,r=i.defaultAuthConnection;tt($t("url"));let o=await WR({answers:t,connection:n,project:i});if(tt($t("auth")),tt(eu("ripplo")),r?.oidc==null){let s=await GR({answers:t,connection:n,project:i,targets:o});tt(eu("app")),await QS({connection:n,created:s,project:i});return}let a=await JR({answers:t,connection:n,existing:r,targets:o});tt(eu("app")),await eE({connection:n,created:a,project:i});}async function WR({answers:e,connection:t,project:n}){let i=KS(n);return i==null?uh({answers:e,connection:t,project:n}):(ox(i).forEach(o=>{Re(o);}),await ln()==="change"?uh({answers:e,connection:t,project:n}):i)}async function GR({answers:e,connection:t,project:n,targets:i}){let r=await iE({answers:e,existingUris:[],targets:i}),o=await wD({connection:t,project:n,values:r});return Re(Sx(o.connection.name)),oE({connection:o.connection,secret:o.clientSecret})}async function iE({answers:e,existingUris:t,targets:n}){let i=await un({flag:"sign-in-page",given:e.signInPage,hint:Ex(),message:wx(),placeholder:$x(),schema:fs,suggested:void 0});return {redirectUris:await qR({answers:e,existingUris:t,targets:n}),signInEntry:i}}async function qR({answers:e,existingUris:t,targets:n}){if(e.redirectUris.length>0)return e.redirectUris.map(o=>sh({flag:"redirect-uri",given:o,schema:jr}));cn("redirect-uri");let i=n.environments==="previews"?[]:[await HR({appUrl:n.appUrl,suggested:t[0]})],r=n.previewUrl==null?[]:[await YR(n.previewUrl)];return [...i,...r]}function HR({appUrl:e,suggested:t}){return un({flag:"redirect-uri",given:void 0,hint:Ix(),message:Ox(),placeholder:kx(e),schema:jr,suggested:t})}function YR(e){return un({flag:"redirect-uri",given:void 0,hint:Cx(),message:Ax(),placeholder:Rx(e),schema:jr,suggested:void 0})}function oE({connection:e,secret:t}){let n=e.oidc;if(n==null)throw new Error("connection-without-oidc");return {...n,id:e.id,name:e.name,secret:t}}async function JR({answers:e,connection:t,existing:n,targets:i}){let r=n.oidc;if(r==null)throw new Error("existing-connection-without-oidc");let o=n.webhookSecret??null;if(Re(_x(n.name)),Ue(Dx(r)),await ln()==="continue")return {...r,id:n.id,name:n.name,secret:o};let s=await iE({answers:e,existingUris:r.redirectUris,targets:i}),c=await $D({connection:t,id:n.id,name:n.name,scimBaseUrl:r.scimBaseUrl,values:s});return Re(xx(c.name)),oE({connection:c,secret:o})}var aE=3e3,sE=200,XR=aE*sE/6e4;function uE(e){return hu(()=>QR({answers:e,cwd:process.cwd()}))}async function QR({answers:e,cwd:t}){let n=await eT(t),i=`${n.owner}/${n.repo}`;du(tu()),tt($t("signIn"));let r=await tT();tt($t("project"));let a=(await ri(r)).find(l=>po(l.repoUrl,n)),s=await YS({answers:e,connection:r,existing:a,repo:i}),c=s.kind==="existing"?s.project:await rT({connection:r,plan:s,remote:n});await nE({answers:e,connection:r,project:c});}async function eT(e){return (await vu(e)).match(n=>n,n=>je(ru(n)))}async function tT(){let e=jt(),t=e==null?void 0:await uo(e);if(e!=null&&t?.kind==="ok"){if(Re(LD(t.viewer.email)),await ln()==="continue")return Lt(e);ro(wr());}await to({lookupViewer:uo,serverUrl:wr()});let n=jt();return n==null&&je(on()),Lt(n)}async function rT({connection:e,plan:t,remote:n}){tt($t("github"));let i={connection:e,organization:t.organization,remote:n},r=await cE(i);r!=null&&Re(Gm(t.repo));let o=r??await nT(i);return JS({connection:e,plan:t,repository:o})}async function cE({connection:e,organization:t,remote:n}){return (await xD({connection:e,organizationId:t.id})).find(r=>po(r.url,n))}async function nT(e){let t=`${e.remote.owner}/${e.remote.repo}`;Ue(MD({organization:e.organization.name,repo:t})),an(BD(e.remote.owner)),await iT({choice:ZD(),question:VD()}),Br(e.organization.integrationsUrl),Ue(GD(e.organization.integrationsUrl));let n=fu(qD(t)),i=await lE({remaining:sE,target:e});return i==null&&(n.failed(HD({minutes:XR,repo:t})),qe(Ge())),n.done(Gm(t)),i}async function iT({choice:e,question:t}){if(!kt)return;let n=await vt({choices:[{label:e,value:"open"},{label:WD(),value:"stop"}],message:t});(Ve(n)||n==="stop")&&qe(Ge());}async function lE({remaining:e,target:t}){return e===0?void 0:(await setTimeout$1(aE),await cE(t)??lE({remaining:e-1,target:t}))}async function ch({data:e,destination:t}){let n=`${t}.${randomUUID()}.tmp`;try{await writeFile(n,e),await rename(n,t);}finally{await rm(n,{force:true});}}var pT=createRequire$1(import.meta.url);function dE(e,t){try{return pT.resolve(e)}catch{return fileURLToPath(new URL(`assets/${t}`,import.meta.url))}}function pE(e){let t;return ()=>(t??=readFile(e,"utf8"),t)}var mT={height:800,width:1280};async function fE(e){let t=await readFile(e,"utf8");return Zi(t).flatMap(n=>n.kind==="rrweb"?[n.event]:[])}var hT=u.object({data:u.looseObject({height:u.number(),width:u.number()}),type:u.literal(4)});function yu(e){let t=e.flatMap(n=>{let i=hT.safeParse(n);return i.success?[i.data]:[]})[0];return t==null?mT:{height:t.data.height,width:t.data.width}}function mE(){return import('playwright').then(({chromium:e})=>e.launch({args:["--no-sandbox"],headless:true})).catch(()=>null)}var hE=pE(dE("@ripplo/rrweb-bundle/replay","rrweb-replay.js"));function gE({events:e,styleRules:t,useVirtualDom:n}){globalThis.__ripploSnapshotReplayer=new globalThis.__RipploReplayer(e,{insertStyleRules:t,mouseTail:false,root:document.body,showWarning:false,useVirtualDom:n});}function vE(e){globalThis.__ripploSnapshotReplayer?.pause(e+.5);}function yE({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;return t==null?false:(t.documentElement.getBoundingClientRect(),[...t.querySelectorAll('link[rel~="stylesheet"]')].every(i=>i.disabled||i.sheet!=null)&&t.fonts.status==="loaded")}async function bE(){await new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>{e();}));});}function _E({documentPrefix:e,frameSelector:t}){let n=globalThis.__ripploSnapshotReplayer,i=document.querySelector(t)?.contentDocument;if(n==null||i==null)return "";let r=n.getMirror();return [...i.querySelectorAll("*")].forEach(o=>{let a=r.getId(o);a!=null&&a>0&&(o.dataset.rrwebId=String(a));}),`${e}${i.documentElement.outerHTML}`}function DE({frameSelector:e}){let t=document.querySelector(e)?.contentDocument;if(t==null)return [];let n=r=>[...r.childNodes].filter(o=>o.nodeType===3).map(o=>o.textContent??"").join(" ").replaceAll(/\s+/gu," ").trim(),i=r=>{if(r==null)return null;let o=r.dataset.rrwebId;if(o==null)return null;let a=Number.parseInt(o,10);return Number.isSafeInteger(a)&&a>0?a:null};return [...t.querySelectorAll("*")].map(r=>({attributes:Object.fromEntries([...r.attributes].map(o=>[o.name,o.value])),directText:n(r),parentRrwebId:i(r.parentElement),rrwebId:i(r),tagName:r.tagName.toLowerCase()}))}function xE({frameSelector:e,rrwebId:t}){let n=document.querySelector(e)?.contentDocument,i=n?.defaultView;if(n==null||i==null)throw new Error("snapshot-document-missing");let r=[...n.querySelectorAll(`[data-rrweb-id="${String(t)}"]`)][0];return r==null?Promise.resolve(null):new Promise((o,a)=>{let s=new i.IntersectionObserver(c=>{s.disconnect();let l=c[0];if(l==null){a(new Error("snapshot-intersection-missing"));return}let d=l.intersectionRect;o(l.intersectionRatio>0?{height:d.height,width:d.width,x:d.x,y:d.y}:null);});s.observe(r);})}var Kt=".replayer-wrapper iframe",SE=`<!doctype html>
385
+ `;function EE(e){return e.screenshot({animations:"disabled",timeout:1e4,type:"png"})}var vT="outline: 2px solid #ff4040 !important; outline-offset: 2px !important;";async function wE({page:e,pngPath:t,rrwebId:n}){let i=e.locator(Kt).first(),r=e.frameLocator(Kt).locator(`[data-rrweb-id="${String(n)}"]`),o=await i.boundingBox(),a=await r.count()===1;if(o==null||!a||!await r.isVisible())return {kind:"unavailable",rrwebId:n};let s=yT.nullable().parse(await e.evaluate(xE,{frameSelector:Kt,rrwebId:n}));if(s==null)return {kind:"unavailable",rrwebId:n};let c={...s,x:s.x+o.x,y:s.y+o.y};if(c.width<=0||c.height<=0)return {kind:"unavailable",rrwebId:n};let l=`[data-rrweb-id="${String(n)}"] { ${vT} }`,d=`${t}.element-${String(n)}.png`,p=`${t}.element-${String(n)}.context.png`;await writeFile(d,await i.screenshot({animations:"disabled",style:l,timeout:1e4}));let m=bT({inner:{height:c.height+200,width:c.width+240,x:c.x-120,y:c.y-100},outer:o});return await e.screenshot({animations:"disabled",clip:m,path:p,style:l,timeout:1e4}),{cropPath:p,fullPath:d,kind:"visible",rrwebId:n}}var yT=u.object({height:u.number().nonnegative(),width:u.number().nonnegative(),x:u.number(),y:u.number()});function bT({inner:e,outer:t}){let n=Math.max(t.x,e.x),i=Math.max(t.y,e.y);return {height:Math.min(t.y+t.height,e.y+e.height)-i,width:Math.min(t.x+t.width,e.x+e.width)-n,x:n,y:i}}async function $E(e){await e.addInitScript(_T);}function _T(){Reflect.set(globalThis,"__name",e=>e);}var ST=".replayer-mouse, .replayer-mouse-tail { display: none; }";function IE(e){return `<!doctype html><html><head><style>
381
386
  html, body { margin: 0; padding: 0; }
382
387
  .replayer-wrapper { position: relative; }
383
- ${S1}
388
+ ${ST}
384
389
  iframe { border: none; }
385
- </style></head><body></body></html>`}async function n$({browser:e,events:t}){let r=await e.newContext({viewport:ac(t)});await e$(r);let i=await r.newPage();return await i.setContent(t$()),await i.addScriptTag({content:await Vw()}),await i.evaluate(Zw,{events:t,styleRules:[...Lm],useVirtualDom:false}),i}async function r$({offsetMs:e,page:t}){await t.evaluate(Ww,e),await t.waitForFunction(Gw,{frameSelector:cn},{timeout:1e4}),await t.evaluate(qw);}function o$({offsetMs:e,outDir:t}){let r=`snapshot-${String(Math.round(e))}ms-${randomUUID()}`;return {htmlPath:zh.join(t,`${r}.html`),pngPath:zh.join(t,`${r}.png`)}}var k1=s.object({attributes:s.record(s.string(),s.string()),directText:s.string(),parentRrwebId:s.number().int().positive().nullable(),rrwebId:s.number().int().positive().nullable(),tagName:s.string().min(1)}),I1=s.array(k1);function s$(e){return O1({...e,focusRrwebId:void 0})}async function O1({behaviorFile:e,focusRrwebId:t,moment:r,outDir:i,runId:n}){if(!existsSync(e))return de({kind:"run-not-found",runId:n});let o=await Mw(e),a=o[0],u=o.at(-1);if(a==null||u==null)return de({kind:"no-rrweb-events",runId:n});let c=u.timestamp-a.timestamp,l=r.kind==="offset"?r.offsetMs:r.at-a.timestamp;if(l<0||l>c)return de({durationMs:c,firstTimestamp:a.timestamp,kind:"moment-out-of-range",lastTimestamp:u.timestamp,moment:r});let d=l,{htmlPath:p,pngPath:m}=o$({offsetMs:d,outDir:i});return (await C1({events:o,focusRrwebId:t,htmlPath:p,offsetMs:d,pngPath:m})).map(({elementIndex:v,preview:D})=>({durationMs:c,elementIndex:v,htmlPath:p,offsetMs:d,pngPath:m,preview:D,viewport:ac(o)}))}async function C1({events:e,focusRrwebId:t,htmlPath:r,offsetMs:i,pngPath:n}){let o=await Bw();if(o==null)return de({detail:"chromium-launch",kind:"browser-failed"});try{let{elementIndex:a,html:u,png:c,preview:l}=await A1({browser:o,events:e,focusRrwebId:t,offsetMs:i,pngPath:n});return c.length===0?de({detail:R1,kind:"browser-failed"}):(await a$({data:c,destination:n}),await a$({data:u,destination:r}),Fe({elementIndex:a,preview:l}))}catch(a){return de({detail:a instanceof Error?a.message:String(a),kind:"browser-failed"})}finally{await o.close();}}var R1="screenshot-empty";async function a$({data:e,destination:t}){let r=`${t}.${randomUUID()}.tmp`;await writeFile(r,e),await rename(r,t).finally(()=>rm$1(r,{force:true}));}async function A1({browser:e,events:t,focusRrwebId:r,offsetMs:i,pngPath:n}){let o=await n$({browser:e,events:t});await r$({offsetMs:i,page:o});let a=o.locator(cn).first(),u=await a.count()>0?a:o,c=await Xw(u),l=s.string().parse(await o.evaluate(Hw,{documentPrefix:Yw,frameSelector:cn})),d=I1.parse(await o.evaluate(Jw,{frameSelector:cn})),p=r==null?void 0:await Qw({page:o,pngPath:n,rrwebId:r});return {elementIndex:d,html:l,png:c,preview:p}}function u$(){return "Pass exactly one of --at <epoch ms from behavior.jsonl> or --offset <ms from the start of the recording>."}function c$(e){switch(e.kind){case "run-not-found":return `No behavior.jsonl for run ${e.runId}.`;case "no-rrweb-events":return `Run ${e.runId} has no rrweb events, nothing to replay.`;case "moment-out-of-range":return `${e.moment.kind==="offset"?"--offset":"--at"} is outside the recording, which spans ${String(e.firstTimestamp)} to ${String(e.lastTimestamp)} (duration ${String(e.durationMs)}ms).`;case "browser-failed":return `Replay browser failed (${e.detail}). Try \`npx playwright install chromium\`.`}}async function l$({at:e,offset:t,runId:r}){let i=T1({at:e,offset:t});i==null&&(process.stderr.write(`${u$()}
386
- `),process.exit(1));let n=await zu(r);n.isErr()&&(process.stderr.write(`${Nu(n.error)}
387
- `),process.exit(1)),(await s$({behaviorFile:n.value,moment:i,outDir:Nh(r),runId:r})).match(a=>{let u={durationMs:a.durationMs,htmlPath:a.htmlPath,offsetMs:a.offsetMs,pngPath:a.pngPath,viewport:a.viewport};process.stdout.write(`${JSON.stringify(u,null,2)}
388
- `);},a=>{process.stderr.write(`${c$(a)}
389
- `),process.exit(1);});}function T1({at:e,offset:t}){if(e!=null&&t==null)return {at:e,kind:"absolute"};if(t!=null&&e==null)return {kind:"offset",offsetMs:t}}function d$(e){return e instanceof Error?e.message:String(e)}ih();async function P1(){await CD(yh(process.argv)).scriptName("ripplo").version(Fu()).command("login","Sign in through your browser",()=>{},()=>Po({lookupViewer:Mo,serverUrl:Rr()})).command("logout","Remove the saved token",()=>{},()=>{Fo(Rr());}).command("setup","Connect this repository to Ripplo",e=>e.option("check",{default:false,describe:`Test authentication: sign in through the connection in your browser. Waits up to ${String(Bo/1e3)} seconds.`,type:"boolean"}).option("environments",{choices:Go,describe:"Answer for the environments prompt",type:"string"}).option("app-url",{describe:"Answer for the app URL prompt: the pre-production server, or a preview that is up now",type:"string"}).option("preview-url",{describe:"Answer for the preview address prompt, with one * in the hostname",type:"string"}).option("sign-in-page",{describe:"Answer for the sign-in page prompt, a path like /api/auth/oidc/start",type:"string"}).option("redirect-uri",{array:true,default:[],describe:"Answer for the redirect URI prompts, your auth library's callback for Ripplo. Repeat for previews.",type:"string"}).option("organization",{describe:"Answer for the organization prompt, by name, when you belong to several",type:"string"}),e=>e.check?vw():Fw({appUrl:e["app-url"],environments:e.environments,organization:e.organization,previewUrl:e["preview-url"],redirectUris:e["redirect-uri"],signInPage:e["sign-in-page"]})).command("review <codeReviewId>","Print the published issues and uncovered workflows of a code review (JSON)",e=>e.positional("codeReviewId",{demandOption:true,type:"string"}),e=>UD({codeReviewId:e.codeReviewId})).command("explain <runId>","Print what failed in a run, step by step, with nearby evidence (JSON)",e=>e.positional("runId",{demandOption:true,type:"string"}),e=>jD({runId:e.runId})).command("snapshot <runId>","Render the page at a moment of a run to PNG and rrweb-tagged HTML",e=>e.positional("runId",{demandOption:true,type:"string"}).option("at",{describe:"Epoch ms from behavior.jsonl",type:"number"}).option("offset",{describe:"Ms from the start of the recording",type:"number"}),e=>l$({at:e.at,offset:e.offset,runId:e.runId})).strict().help().parse();}P1().catch(e=>{process.stderr.write(`${d$(e)}
390
+ </style></head><body></body></html>`}async function OE({browser:e,events:t}){let n=await e.newContext({viewport:yu(t)});await $E(n);let i=await n.newPage();return await i.setContent(IE()),await i.addScriptTag({content:await hE()}),await i.evaluate(gE,{events:t,styleRules:[...Mf],useVirtualDom:false}),i}async function kE({offsetMs:e,page:t}){await t.evaluate(vE,e),await t.waitForFunction(yE,{frameSelector:Kt},{timeout:1e4}),await t.evaluate(bE);}function AE({offsetMs:e,outDir:t}){let n=`snapshot-${String(Math.round(e))}ms-${randomUUID()}`;return {htmlPath:Um.join(t,`${n}.html`),pngPath:Um.join(t,`${n}.png`)}}var $T=u.object({attributes:u.record(u.string(),u.string()),directText:u.string(),parentRrwebId:u.number().int().positive().nullable(),rrwebId:u.number().int().positive().nullable(),tagName:u.string().min(1)}),IT=u.array($T);function RE(e){return OT({...e,focusRrwebId:void 0})}async function OT({behaviorFile:e,focusRrwebId:t,moment:n,outDir:i,runId:r}){if(!existsSync(e))return ue({kind:"run-not-found",runId:r});let o=await fE(e),a=o[0],s=o.at(-1);if(a==null||s==null)return ue({kind:"no-rrweb-events",runId:r});let c=s.timestamp-a.timestamp,l=n.kind==="offset"?n.offsetMs:n.at-a.timestamp;if(l<0||l>c)return ue({durationMs:c,firstTimestamp:a.timestamp,kind:"moment-out-of-range",lastTimestamp:s.timestamp,moment:n});let d=l,{htmlPath:p,pngPath:m}=AE({offsetMs:d,outDir:i});return (await kT({events:o,focusRrwebId:t,htmlPath:p,offsetMs:d,pngPath:m})).map(({elementIndex:y,preview:x})=>({durationMs:c,elementIndex:y,htmlPath:p,offsetMs:d,pngPath:m,preview:x,viewport:yu(o)}))}async function kT({events:e,focusRrwebId:t,htmlPath:n,offsetMs:i,pngPath:r}){let o=await mE();if(o==null)return ue({detail:"chromium-launch",kind:"browser-failed"});try{let{elementIndex:a,html:s,png:c,preview:l}=await RT({browser:o,events:e,focusRrwebId:t,offsetMs:i,pngPath:r});return c.length===0?ue({detail:CT,kind:"browser-failed"}):(await ch({data:c,destination:r}),await ch({data:AT(s),destination:n}),ke({elementIndex:a,preview:l}))}catch(a){return ue({detail:a instanceof Error?a.message:String(a),kind:"browser-failed"})}finally{await o.close();}}var CT="screenshot-empty";function AT(e){return e.replaceAll("><",`>
391
+ <`)}async function RT({browser:e,events:t,focusRrwebId:n,offsetMs:i,pngPath:r}){let o=await OE({browser:e,events:t});await kE({offsetMs:i,page:o});let a=o.locator(Kt).first(),s=await a.count()>0?a:o,c=await EE(s),l=u.string().parse(await o.evaluate(_E,{documentPrefix:SE,frameSelector:Kt})),d=IT.parse(await o.evaluate(DE,{frameSelector:Kt})),p=n==null?void 0:await wE({page:o,pngPath:r,rrwebId:n});return {elementIndex:d,html:l,png:c,preview:p}}function TE(){return "Pass exactly one of --at <epoch ms from behavior.jsonl> or --offset <ms from the start of the recording>."}function FE(e){switch(e.kind){case "run-not-found":return `No behavior.jsonl for run ${e.runId}.`;case "no-rrweb-events":return `Run ${e.runId} has no rrweb events, nothing to replay.`;case "moment-out-of-range":return `${e.moment.kind==="offset"?"--offset":"--at"} is outside the recording, which spans ${String(e.firstTimestamp)} to ${String(e.lastTimestamp)} (duration ${String(e.durationMs)}ms).`;case "browser-failed":return `Replay browser failed (${e.detail}). Try \`npx playwright install chromium\`.`}}async function PE({at:e,offset:t,runId:n}){let i=TT({at:e,offset:t});i==null&&(process.stderr.write(`${TE()}
392
+ `),process.exit(1));let r=await Hs(n);r.isErr()&&(process.stderr.write(`${Js(r.error)}
393
+ `),process.exit(1)),(await RE({behaviorFile:r.value,moment:i,outDir:jm(n),runId:n})).match(a=>{let s={durationMs:a.durationMs,htmlPath:a.htmlPath,offsetMs:a.offsetMs,pngPath:a.pngPath,viewport:a.viewport};process.stdout.write(`${JSON.stringify(s,null,2)}
394
+ `);},a=>{process.stderr.write(`${FE(a)}
395
+ `),process.exit(1);});}function TT({at:e,offset:t}){if(e!=null&&t==null)return {at:e,kind:"absolute"};if(t!=null&&e==null)return {kind:"offset",offsetMs:t}}function NE(e){return e instanceof Error?e.message:String(e)}om();async function FT(){await lD(ym(process.argv)).scriptName("ripplo").version(Gs()).command("login","Sign in through your browser",()=>{},()=>to({lookupViewer:uo,serverUrl:wr()})).command("logout","Remove the saved token",()=>{},()=>{ro(wr());}).command("setup","Connect this repository to Ripplo",e=>e.option("check",{default:false,describe:`Test authentication: sign in through the connection in your browser. Waits up to ${String(co/1e3)} seconds.`,type:"boolean"}).option("environments",{choices:mo,describe:"Answer for the environments prompt",type:"string"}).option("app-url",{describe:"Answer for the app URL prompt: the pre-production server, or a preview that is up now",type:"string"}).option("preview-url",{describe:"Answer for the preview address prompt, with one * in the hostname",type:"string"}).option("sign-in-page",{describe:"Answer for the sign-in page prompt, a path like /api/auth/oidc/start",type:"string"}).option("redirect-uri",{array:true,default:[],describe:"Answer for the redirect URI prompts, your auth library's callback for Ripplo. Repeat for previews.",type:"string"}).option("organization",{describe:"Answer for the organization prompt, by name, when you belong to several",type:"string"}),e=>e.check?GS():uE({appUrl:e["app-url"],environments:e.environments,organization:e.organization,previewUrl:e["preview-url"],redirectUris:e["redirect-uri"],signInPage:e["sign-in-page"]})).command("review <codeReviewId>","Print the published issues and uncovered workflows of a code review (JSON)",e=>e.positional("codeReviewId",{demandOption:true,type:"string"}),e=>_D({codeReviewId:e.codeReviewId})).command("deploy","Tell Ripplo which commit is live on an environment (run from your deploy pipeline)",e=>e.option("environment",{demandOption:true,describe:"The environment's name in Ripplo",type:"string"}).option("sha",{demandOption:true,describe:"The deployed commit",type:"string"}),e=>fD({environment:e.environment,sha:e.sha})).command("explain <runId>","Print what failed in a run, step by step, with nearby evidence (JSON)",e=>e.positional("runId",{demandOption:true,type:"string"}),e=>vD({runId:e.runId})).command("snapshot <runId>","Render the page at a moment of a run to PNG and rrweb-tagged HTML",e=>e.positional("runId",{demandOption:true,type:"string"}).option("at",{describe:"Epoch ms from behavior.jsonl",type:"number"}).option("offset",{describe:"Ms from the start of the recording",type:"number"}),e=>PE({at:e.at,offset:e.offset,runId:e.runId})).strict().help().parse();}FT().catch(e=>{process.stderr.write(`${NE(e)}
390
396
  `),process.exit(1);});/*! Bundled license information:
391
397
 
392
398
  yargs-parser/build/lib/string-utils.js:
@@ -407,4 +413,4 @@ yargs-parser/build/lib/index.js:
407
413
  * Copyright (c) 2016, Contributors
408
414
  * SPDX-License-Identifier: ISC
409
415
  *)
410
- */export{P1 as main};
416
+ */export{FT as main};