@abyssinia-labs/sokie 0.10.5 → 0.10.6-staging.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/sokie.mjs +21 -5
  2. package/package.json +2 -2
package/dist/sokie.mjs CHANGED
@@ -24033,9 +24033,9 @@ var require___dev__ = __commonJS((exports, module) => {
24033
24033
 
24034
24034
  // package.json
24035
24035
  var name = "@abyssinia-labs/sokie";
24036
- var version = "0.10.5";
24036
+ var version = "0.10.6-staging.294";
24037
24037
  var sokie = {
24038
- site: "https://sokie.sh"
24038
+ site: "https://staging.sokie.sh"
24039
24039
  };
24040
24040
 
24041
24041
  // src/command.ts
@@ -48398,6 +48398,14 @@ function styleOf(parameter, location, schema, swagger2, warnings) {
48398
48398
  }
48399
48399
  return isDefaultStyle(location, style) ? null : style;
48400
48400
  }
48401
+ function formFieldStyle(parameter, schema) {
48402
+ if (!typesOf2(schema).includes("array"))
48403
+ return null;
48404
+ const format = typeof parameter.collectionFormat === "string" ? parameter.collectionFormat : "csv";
48405
+ if (format === "multi")
48406
+ return { style: "form", explode: true };
48407
+ return { style: COLLECTION_FORMATS[format] ?? "form", explode: false };
48408
+ }
48401
48409
  function encodingStyles(media) {
48402
48410
  if (!isRecord11(media.encoding))
48403
48411
  return;
@@ -48544,10 +48552,18 @@ function swagger2Body(parameters, consumes, fieldSchema, warnings) {
48544
48552
  return null;
48545
48553
  const properties = Object.fromEntries(fields.map((p) => [p.name, fieldSchema(p)]));
48546
48554
  const required3 = fields.filter((p) => p.required === true).map((p) => p.name);
48555
+ const styles = {};
48556
+ for (const field of fields) {
48557
+ const name2 = field.name;
48558
+ const style = formFieldStyle(field, properties[name2]);
48559
+ if (style)
48560
+ styles[name2] = style;
48561
+ }
48547
48562
  return {
48548
48563
  schema: { type: "object", properties, required: required3 },
48549
48564
  contentType: multipart ? MULTIPART : FORM,
48550
- required: required3.length > 0
48565
+ required: required3.length > 0,
48566
+ ...Object.keys(styles).length > 0 ? { styles } : {}
48551
48567
  };
48552
48568
  }
48553
48569
 
@@ -48760,7 +48776,7 @@ function buildInput(doc2, operation) {
48760
48776
  properties.body = toInputSchema(found.schema);
48761
48777
  if (found.required)
48762
48778
  required3.push("body");
48763
- body = { contentType: found.contentType };
48779
+ body = { contentType: found.contentType, ...found.styles ? { styles: found.styles } : {} };
48764
48780
  }
48765
48781
  return {
48766
48782
  inputSchema: {
@@ -68251,7 +68267,7 @@ function serveWorker(fetch2, host, port) {
68251
68267
  }
68252
68268
 
68253
68269
  // ../runtime/asset/runtime-asset.ts
68254
- var RUNTIME_MODULE = 'var ax=Object.defineProperty;var un=(e,t)=>{for(var r in t)ax(e,r,{get:t[r],enumerable:!0})};var M_=e=>e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),q_=e=>[e.name,e.title,e.description,e.tags.join(" ")].join(" "),D_=new WeakMap;function sx(e){let t=D_.get(e);if(t)return t;let r=e.map(a=>M_(q_(a))),i=new Map;for(let a of r)for(let s of new Set(a))i.set(s,(i.get(s)??0)+1);let n=r.reduce((a,s)=>a+s.length,0),o={docs:r,frequency:i,averageLength:r.length>0?n/r.length:0};return D_.set(e,o),o}function cx(e,t,r){let i=e.docs[t]??[];if(i.length===0)return 0;let n=new Map;for(let s of i)n.set(s,(n.get(s)??0)+1);let o=e.averageLength||1,a=0;for(let s of r){let c=n.get(s);if(!c)continue;let l=e.frequency.get(s)??0,u=Math.log(1+(e.docs.length-l+.5)/(l+.5));a+=u*(c*(1.5+1)/(c+1.5*(1-.75+.75*i.length/o)))}return a}function lx(e,t){let r=e.name.toLowerCase(),i=e.title.toLowerCase();return r===t||i===t?2:r.startsWith(t)||i.startsWith(t)?1:0}var Gm=(e,t)=>({name:e.name,title:e.title,description:e.description,score:t});function Fo(e,t,r=10){let i=Math.max(1,Math.min(Math.floor(r)||10,100)),n=t.trim();if(!n)return e.slice(0,i).map(l=>Gm(l,0));let o=sx(e),a=M_(n),s=n.toLowerCase(),c=e.map((l,u)=>({entry:l,match:lx(l,s),score:cx(o,u,a)})).filter(l=>l.match>0||l.score>0).sort((l,u)=>u.match-l.match||u.score-l.score).slice(0,i).map(l=>Gm(l.entry,Number(l.score.toFixed(4))));return c.length>0?c:e.filter(l=>q_(l).toLowerCase().includes(s)).slice(0,i).map(l=>Gm(l,1))}var ux=new Set([408,429,500,502,503,504]),Pt=class extends Error{status;retryable;retryAfterSeconds;constructor(t,r,i=null){super(t),this.name="UpstreamHttpError",this.status=r,this.retryable=ux.has(r),this.retryAfterSeconds=i}},Yt=class extends Error{issues;constructor(t,r){super(`Invalid input for ${t}: ${r.join("; ")}`),this.name="ToolInputError",this.issues=r}};function cc(e){return e instanceof Pt?{error:e.message,errorClass:"UPSTREAM",httpStatus:e.status,retryable:e.retryable,...e.retryAfterSeconds!==null?{retryAfterSeconds:e.retryAfterSeconds}:{}}:e instanceof Yt?{error:e.message,errorClass:"BINDING_MISUSE",retryable:!1}:{error:e instanceof Error?e.message:"Tool execution failed.",errorClass:"INTERNAL",retryable:!1}}function lc(e){let t=cc(e);return{content:[{type:"text",text:t.error}],isError:!0,_meta:{...t}}}function uc(e){if(typeof e!="object"||e===null)return!1;let{code:t,data:r}=e;return t===-32042&&Array.isArray(r?.elicitations)}var dx=["read","write","delete","external_effect"];var Xm="x-sokie-policy";function V_(e,t){return e&&Object.hasOwn(e,t)?e[t]??null:null}function dc(e,t){return V_(e.tools,t.name)??V_(e.areas,t.area)??e.kinds[t.effect]}function Qm(e,t,r){if(r.readOnly&&t.effect!=="read")return"off";let i=e?dc(e,t):"allow";return i==="ask"&&r.publicServer?"off":i}var mx=e=>e==="allow"||e==="ask"||e==="off";function Wm(e){if(e===void 0)return{};if(typeof e!="object"||e===null||Array.isArray(e))return null;let t=Object.create(null);for(let[r,i]of Object.entries(e)){if(!mx(i))return null;t[r]=i}return t}function Ko(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null||Array.isArray(t))return null;let r=t,i=Wm(r.kinds);if(!i||!dx.every(a=>Object.hasOwn(i,a)))return null;let n=Wm(r.areas),o=Wm(r.tools);return!n||!o?null:{kinds:{read:i.read,write:i.write,delete:i.delete,external_effect:i.external_effect},...Object.keys(n).length>0?{areas:n}:{},...Object.keys(o).length>0?{tools:o}:{}}}function px(e){let t=r=>r&&Object.keys(r).length>0?Object.fromEntries(Object.keys(r).sort().map(i=>[i,r[i]])):void 0;return JSON.stringify({kinds:{read:e.kinds.read,write:e.kinds.write,delete:e.kinds.delete,external_effect:e.kinds.external_effect},areas:t(e.areas),tools:t(e.tools)})}var Bo="0.4.8";var fx=Object.create,mc=Object.defineProperty,hx=Object.getOwnPropertyDescriptor,gx=Object.getOwnPropertyNames,vx=Object.getPrototypeOf,yx=Object.prototype.hasOwnProperty,Z_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),F_=(e,t)=>{let r={};for(var i in e)mc(r,i,{get:e[i],enumerable:!0});return t&&mc(r,Symbol.toStringTag,{value:"Module"}),r},Sx=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=gx(t),o=0,a=n.length,s;o<a;o++)s=n[o],!yx.call(e,s)&&s!==r&&mc(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(i=hx(t,s))||i.enumerable});return e},K_=(e,t,r)=>(r=e!=null?fx(vx(e)):{},Sx(t||!e||!e.__esModule?mc(r,"default",{value:e,enumerable:!0}):r,e));var _x=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),B_=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),bx=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),$x=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]);function J_(e){return typeof e=="string"&&B_.has(e.replace(/#$/,""))}function H_(e,t){if(!("$schema"in e)||typeof e.$schema!="string")return"2020-12";let r=e.$schema.replace(/#$/,"");if(_x.has(r))return"2020-12";if(B_.has(r))return"2019-09";if(bx.has(r)||$x.has(r))return"draft-7";throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}var xe={};un(xe,{$brand:()=>mp,$input:()=>Dh,$output:()=>Lh,INVALID:()=>et,NEVER:()=>ra,TimePrecision:()=>Wh,ZodAny:()=>Nv,ZodArray:()=>Lv,ZodBase64:()=>cu,ZodBase64URL:()=>lu,ZodBigInt:()=>Ji,ZodBigIntFormat:()=>mu,ZodBoolean:()=>Bi,ZodCIDRv4:()=>au,ZodCIDRv6:()=>su,ZodCUID:()=>Ql,ZodCUID2:()=>eu,ZodCatch:()=>ry,ZodCodec:()=>qa,ZodCompileAsyncError:()=>Ct,ZodCompileUnsupportedError:()=>me,ZodCreditCard:()=>xv,ZodCustom:()=>Va,ZodCustomStringFormat:()=>Pr,ZodDate:()=>ja,ZodDefault:()=>Wv,ZodDiscriminatedUnion:()=>Mv,ZodE164:()=>uu,ZodEmail:()=>Hl,ZodEmoji:()=>Wl,ZodEnum:()=>Vi,ZodError:()=>qO,ZodExactOptional:()=>gu,ZodFile:()=>Jv,ZodFirstPartyTypeKind:()=>gy,ZodFunction:()=>my,ZodGUID:()=>Gl,ZodIBAN:()=>Ev,ZodIPv4:()=>iu,ZodIPv6:()=>ou,ZodISODate:()=>Dn,ZodISODateTime:()=>Ln,ZodISODuration:()=>qn,ZodISOTime:()=>Mn,ZodInstanceOf:()=>hy,ZodIntersection:()=>qv,ZodIssueCode:()=>vy,ZodJWT:()=>du,ZodKSUID:()=>ru,ZodLazy:()=>uy,ZodLiteral:()=>Bv,ZodMAC:()=>Tv,ZodMap:()=>Fv,ZodNaN:()=>oy,ZodNanoID:()=>Xl,ZodNever:()=>jv,ZodNonOptional:()=>vu,ZodNull:()=>Cv,ZodNullable:()=>Gv,ZodNumber:()=>Ki,ZodNumberFormat:()=>Or,ZodObject:()=>Ua,ZodOptional:()=>Da,ZodPipe:()=>Ma,ZodPrefault:()=>Qv,ZodPreprocess:()=>ay,ZodPromise:()=>dy,ZodReadonly:()=>sy,ZodRealError:()=>ut,ZodRecord:()=>qi,ZodSet:()=>Kv,ZodString:()=>Zi,ZodStringFormat:()=>ge,ZodSuccess:()=>ny,ZodSymbol:()=>Pv,ZodTemplateLiteral:()=>ly,ZodTransform:()=>Hv,ZodTuple:()=>Vv,ZodType:()=>ue,ZodULID:()=>tu,ZodURL:()=>Aa,ZodUUID:()=>Qt,ZodUndefined:()=>Ov,ZodUnion:()=>La,ZodUnknown:()=>Av,ZodVoid:()=>Uv,ZodXID:()=>nu,ZodXor:()=>Dv,_ZodString:()=>Jl,_default:()=>Xv,_function:()=>bR,any:()=>pu,array:()=>b,base64:()=>Uk,base64url:()=>Lk,bigint:()=>Xk,boolean:()=>U,catch:()=>iy,check:()=>$R,cidrv4:()=>Ak,cidrv6:()=>jk,clone:()=>pe,codec:()=>vR,coerce:()=>Ka,compile:()=>Zh,config:()=>ke,core:()=>hn,creditCard:()=>Mk,cuid:()=>Ik,cuid2:()=>Tk,currencyCode:()=>Bk,custom:()=>kR,date:()=>iR,decode:()=>bv,decodeAsync:()=>kv,deepPartial:()=>AR,describe:()=>RR,discriminatedUnion:()=>Vn,e164:()=>Dk,email:()=>Yl,emoji:()=>wk,encode:()=>_v,encodeAsync:()=>$v,endsWith:()=>Ei,enum:()=>Q,exactOptional:()=>Yv,file:()=>pR,flattenError:()=>ia,float32:()=>Hk,float64:()=>Yk,formatError:()=>oa,fromJSONSchema:()=>CR,function:()=>bR,getDiscriminatedOption:()=>mh,getErrorMap:()=>KO,globalRegistry:()=>Le,gt:()=>Wt,gte:()=>vt,guid:()=>Sk,hash:()=>Jk,hex:()=>Kk,hostname:()=>Fk,httpUrl:()=>Rk,iban:()=>qk,includes:()=>Ti,input:()=>UR,instanceof:()=>zR,int:()=>Kl,int32:()=>Gk,int64:()=>Qk,intersection:()=>At,invertCodec:()=>yR,ipv4:()=>Ok,ipv6:()=>Nk,iso:()=>wt,json:()=>TR,jwt:()=>Vk,keyof:()=>oR,ksuid:()=>Pk,lazy:()=>Zn,length:()=>Ir,literal:()=>$,locales:()=>wa,looseObject:()=>K,looseRecord:()=>lR,lowercase:()=>zi,lt:()=>Gt,lte:()=>gt,mac:()=>Ck,map:()=>uR,maxLength:()=>zr,maxSize:()=>Nn,memoizer:()=>ka,meta:()=>wR,mime:()=>Oi,minLength:()=>fn,minSize:()=>Xt,multipleOf:()=>Cn,nan:()=>gR,nanoid:()=>zk,nativeEnum:()=>mR,negative:()=>Al,never:()=>fu,nonnegative:()=>Ul,nonoptional:()=>ty,nonpositive:()=>jl,normalize:()=>Ci,null:()=>en,nullable:()=>Na,nullish:()=>fR,number:()=>x,object:()=>g,optional:()=>J,output:()=>LR,overwrite:()=>Nt,parse:()=>vv,parseAsync:()=>yv,partialRecord:()=>cR,pipe:()=>Bl,positive:()=>Nl,prefault:()=>ey,preprocess:()=>gn,prettifyError:()=>vp,promise:()=>_R,properties:()=>Pi,property:()=>Ll,readonly:()=>cy,record:()=>A,refine:()=>py,regex:()=>wi,regexes:()=>Rt,registry:()=>ll,safeDecode:()=>wv,safeDecodeAsync:()=>Iv,safeEncode:()=>Rv,safeEncodeAsync:()=>zv,safeParse:()=>Ca,safeParseAsync:()=>Sv,set:()=>dR,setErrorMap:()=>FO,size:()=>wr,slugify:()=>Ui,startsWith:()=>xi,strictObject:()=>aR,string:()=>d,stringFormat:()=>Zk,stringbool:()=>IR,success:()=>hR,superRefine:()=>fy,symbol:()=>tR,templateLiteral:()=>SR,toJSONSchema:()=>xr,toLowerCase:()=>Ai,toUpperCase:()=>ji,toZod:()=>Jo,transform:()=>hu,treeifyError:()=>gp,trim:()=>Ni,tuple:()=>Zv,uint32:()=>Wk,uint64:()=>eR,ulid:()=>xk,undefined:()=>nR,union:()=>L,unknown:()=>B,uppercase:()=>Ii,url:()=>Fi,util:()=>z,uuid:()=>_k,uuidv4:()=>bk,uuidv6:()=>$k,uuidv7:()=>kk,validate:()=>aa,validateAsync:()=>sa,void:()=>rR,withParser:()=>ul,xid:()=>Ek,xor:()=>sR});var hn={};un(hn,{$ZodAny:()=>rh,$ZodArray:()=>lh,$ZodAsyncError:()=>ct,$ZodBase64:()=>Kf,$ZodBase64URL:()=>Bf,$ZodBigInt:()=>Yc,$ZodBigIntFormat:()=>Qf,$ZodBoolean:()=>va,$ZodCIDRv4:()=>Zf,$ZodCIDRv6:()=>Ff,$ZodCUID:()=>Pf,$ZodCUID2:()=>Of,$ZodCatch:()=>Th,$ZodCheck:()=>ve,$ZodCheckBigIntFormat:()=>rf,$ZodCheckEndsWith:()=>gf,$ZodCheckGreaterThan:()=>Cc,$ZodCheckIncludes:()=>ff,$ZodCheckLengthEquals:()=>uf,$ZodCheckLessThan:()=>Oc,$ZodCheckLowerCase:()=>mf,$ZodCheckMaxLength:()=>cf,$ZodCheckMaxSize:()=>of,$ZodCheckMimeType:()=>Sf,$ZodCheckMinLength:()=>lf,$ZodCheckMinSize:()=>af,$ZodCheckMultipleOf:()=>tf,$ZodCheckNumberFormat:()=>nf,$ZodCheckOverwrite:()=>_f,$ZodCheckProperties:()=>yf,$ZodCheckProperty:()=>vf,$ZodCheckRegex:()=>df,$ZodCheckSizeEquals:()=>sf,$ZodCheckStartsWith:()=>hf,$ZodCheckStringFormat:()=>_i,$ZodCheckUpperCase:()=>pf,$ZodCodec:()=>Sa,$ZodCreditCard:()=>Hf,$ZodCustom:()=>Ah,$ZodCustomStringFormat:()=>Wf,$ZodCyclicError:()=>nl,$ZodDate:()=>sh,$ZodDefault:()=>Rh,$ZodDiscriminatedUnion:()=>ph,$ZodE164:()=>Jf,$ZodEmail:()=>wf,$ZodEmoji:()=>xf,$ZodEncodeError:()=>Pn,$ZodEnum:()=>yh,$ZodError:()=>hp,$ZodExactOptional:()=>$h,$ZodFile:()=>_h,$ZodFunction:()=>Ch,$ZodGUID:()=>kf,$ZodIBAN:()=>Yf,$ZodIPv4:()=>Mf,$ZodIPv6:()=>qf,$ZodISODate:()=>Uf,$ZodISODateTime:()=>jf,$ZodISODuration:()=>Df,$ZodISOTime:()=>Lf,$ZodIntersection:()=>fh,$ZodJWT:()=>Gf,$ZodKSUID:()=>Af,$ZodLazy:()=>_a,$ZodLiteral:()=>Sh,$ZodMAC:()=>Vf,$ZodMap:()=>gh,$ZodNaN:()=>xh,$ZodNanoID:()=>Ef,$ZodNever:()=>oh,$ZodNonOptional:()=>zh,$ZodNull:()=>nh,$ZodNullable:()=>kh,$ZodNumber:()=>Hc,$ZodNumberFormat:()=>Xf,$ZodObject:()=>xb,$ZodObjectJIT:()=>uh,$ZodOptional:()=>Wc,$ZodPipe:()=>Xc,$ZodPrefault:()=>wh,$ZodPreprocess:()=>Eh,$ZodPromise:()=>Nh,$ZodReadonly:()=>Ph,$ZodRealError:()=>lt,$ZodRecord:()=>hh,$ZodRegistry:()=>cl,$ZodSet:()=>vh,$ZodString:()=>br,$ZodStringFormat:()=>fe,$ZodSuccess:()=>Ih,$ZodSymbol:()=>eh,$ZodTemplateLiteral:()=>Oh,$ZodTransform:()=>bh,$ZodTuple:()=>Gc,$ZodType:()=>oe,$ZodULID:()=>Cf,$ZodURL:()=>Tf,$ZodUUID:()=>Rf,$ZodUndefined:()=>th,$ZodUnion:()=>ya,$ZodUnknown:()=>ih,$ZodVoid:()=>ah,$ZodXID:()=>Nf,$ZodXor:()=>dh,$brand:()=>mp,$constructor:()=>S,$input:()=>Dh,$output:()=>Lh,Doc:()=>_r,INVALID:()=>et,JSONSchema:()=>gk,JSONSchemaGenerator:()=>Vl,NEVER:()=>ra,TimePrecision:()=>Wh,URL_BAD_FORMAT:()=>zf,URL_UNPARSEABLE:()=>ma,ZodCompileAsyncError:()=>Ct,ZodCompileUnsupportedError:()=>me,_any:()=>fg,_array:()=>bg,_base64:()=>El,_base64url:()=>Pl,_bigint:()=>sg,_boolean:()=>og,_catch:()=>xO,_check:()=>ek,_cidrv4:()=>Tl,_cidrv6:()=>xl,_coercedBigint:()=>cg,_coercedBoolean:()=>ag,_coercedDate:()=>Sg,_coercedNumber:()=>Qh,_coercedString:()=>Jh,_creditCard:()=>Yh,_cuid:()=>bl,_cuid2:()=>$l,_custom:()=>kg,_date:()=>yg,_decode:()=>bc,_decodeAsync:()=>kc,_default:()=>zO,_discriminatedUnion:()=>fO,_e164:()=>Ol,_email:()=>pl,_emoji:()=>Sl,_encode:()=>_c,_encodeAsync:()=>$c,_endsWith:()=>Ei,_enum:()=>_O,_file:()=>$g,_float32:()=>tg,_float64:()=>ng,_gt:()=>Wt,_gte:()=>vt,_guid:()=>fl,_iban:()=>Gh,_includes:()=>Ti,_int:()=>eg,_int32:()=>rg,_int64:()=>lg,_intersection:()=>hO,_ipv4:()=>zl,_ipv6:()=>Il,_isoDate:()=>Ta,_isoDateTime:()=>Ia,_isoDuration:()=>Ea,_isoTime:()=>xa,_jwt:()=>Cl,_ksuid:()=>wl,_lazy:()=>CO,_length:()=>Ir,_literal:()=>$O,_lowercase:()=>zi,_lt:()=>Gt,_lte:()=>gt,_mac:()=>Hh,_map:()=>yO,_max:()=>gt,_maxLength:()=>zr,_maxSize:()=>Nn,_mime:()=>Oi,_min:()=>vt,_minLength:()=>fn,_minSize:()=>Xt,_multipleOf:()=>Cn,_nan:()=>_g,_nanoid:()=>_l,_nativeEnum:()=>bO,_negative:()=>Al,_never:()=>gg,_nonnegative:()=>Ul,_nonoptional:()=>IO,_nonpositive:()=>jl,_normalize:()=>Ci,_null:()=>pg,_nullable:()=>wO,_number:()=>Xh,_optional:()=>RO,_overwrite:()=>Nt,_parse:()=>gi,_parseAsync:()=>vi,_pipe:()=>EO,_positive:()=>Nl,_promise:()=>NO,_properties:()=>Pi,_property:()=>Ll,_readonly:()=>PO,_record:()=>vO,_refine:()=>Rg,_regex:()=>wi,_safeDecode:()=>wc,_safeDecodeAsync:()=>Ic,_safeEncode:()=>Rc,_safeEncodeAsync:()=>zc,_safeParse:()=>yi,_safeParseAsync:()=>Si,_set:()=>SO,_size:()=>wr,_slugify:()=>Ui,_startsWith:()=>xi,_string:()=>Bh,_stringFormat:()=>Tr,_stringbool:()=>Tg,_success:()=>TO,_superRefine:()=>wg,_symbol:()=>dg,_templateLiteral:()=>OO,_toLowerCase:()=>Ai,_toUpperCase:()=>ji,_transform:()=>kO,_trim:()=>Ni,_tuple:()=>gO,_uint32:()=>ig,_uint64:()=>ug,_ulid:()=>kl,_undefined:()=>mg,_union:()=>mO,_unknown:()=>hg,_uppercase:()=>Ii,_url:()=>za,_uuid:()=>hl,_uuidv4:()=>gl,_uuidv6:()=>vl,_uuidv7:()=>yl,_void:()=>vg,_xid:()=>Rl,_xor:()=>pO,base64Charset:()=>Zc,base64urlCharset:()=>ga,canParseURL:()=>If,clone:()=>pe,compile:()=>Zh,compileFn:()=>dl,config:()=>ke,createStandardJSONSchemaMethod:()=>Li,createToJSONSchemaMethod:()=>Eg,decode:()=>pE,decodeAsync:()=>hE,describe:()=>zg,encode:()=>mE,encodeAsync:()=>fE,extractDefs:()=>jn,finalize:()=>Un,flattenError:()=>ia,formatError:()=>oa,getDiscriminatedOption:()=>mh,globalConfig:()=>Ne,globalRegistry:()=>Le,handleUnrepresentable:()=>Oe,initializeContext:()=>An,isBackEdge:()=>il,isRecursiveSchema:()=>rl,isValidBase64:()=>ha,isValidBase64URL:()=>Fc,isValidCIDRv6:()=>Vc,isValidCreditCard:()=>Kc,isValidIBAN:()=>Bc,isValidIPv6:()=>fa,isValidJWT:()=>Jc,locales:()=>wa,memoizer:()=>ka,mergeValues:()=>bi,meta:()=>Ig,parse:()=>yc,parseAsync:()=>Sc,parseURLObject:()=>zb,prettifyError:()=>vp,process:()=>he,processSchema:()=>he,regexes:()=>Rt,registry:()=>ll,safeDecode:()=>vE,safeDecodeAsync:()=>SE,safeEncode:()=>gE,safeEncodeAsync:()=>yE,safeParse:()=>sE,safeParseAsync:()=>cE,standardProps:()=>Lc,stripTabAndNewline:()=>pa,toDotPath:()=>ob,toJSONSchema:()=>xr,toZod:()=>Jo,treeifyError:()=>gp,urlHostnameOk:()=>Mc,urlProtocolOk:()=>qc,util:()=>z,validate:()=>aa,validateAsync:()=>sa,validateURL:()=>Dc,version:()=>bf,withParser:()=>ul});var z={};un(z,{BIGINT_FORMAT_RANGES:()=>Xo,CONSTANT_CATCH:()=>gc,Class:()=>np,NUMBER_FORMAT_RANGES:()=>Wo,aborted:()=>Qe,allowsEval:()=>op,assert:()=>Ix,assertEqual:()=>kx,assertIs:()=>wx,assertNever:()=>zx,assertNotEqual:()=>Rx,assignProp:()=>Ue,attachSchema:()=>Qo,base64ToUint8Array:()=>Q_,base64urlToUint8Array:()=>Bx,cached:()=>mi,captureStackTrace:()=>fc,cleanEnum:()=>Kx,cleanRegex:()=>mn,clone:()=>pe,cloneDef:()=>Ex,codePointLength:()=>yr,constantCatch:()=>up,createTransparentProxy:()=>jx,defineLazy:()=>rp,defineLazyInternal:()=>de,derived:()=>Gx,esc:()=>Xe,escapeRegex:()=>kt,explicitlyAborted:()=>cp,extend:()=>Dx,finalizeIssue:()=>st,floatSafeRemainder:()=>Ho,getElementAtPath:()=>Px,getEnumValues:()=>ui,getLengthableOrigin:()=>ta,getParsedType:()=>Ax,getSizableOrigin:()=>ea,hexToUint8Array:()=>Hx,hide:()=>na,installLazyProp:()=>eE,isObject:()=>vr,isPlainObject:()=>$t,issue:()=>hi,joinValues:()=>_,jsonStringifyReplacer:()=>di,members:()=>lp,merge:()=>qx,mergeDefs:()=>Ot,normalizeParams:()=>C,nullish:()=>pc,numKeys:()=>Nx,objectClone:()=>Tx,omit:()=>Lx,optionalKeys:()=>sp,own:()=>En,parsedType:()=>T,partial:()=>Vx,pick:()=>Ux,prefixIssues:()=>at,primitiveTypes:()=>ap,promiseAllObject:()=>Ox,propertyKeyTypes:()=>Go,randomString:()=>Cx,rawShape:()=>pi,required:()=>Zx,safeExtend:()=>Mx,shallowClone:()=>Yo,sizeCaps:()=>fi,slugify:()=>ip,stringifyPrimitive:()=>I,toZod:()=>Jo,uint8ArrayToBase64:()=>eb,uint8ArrayToBase64url:()=>Jx,uint8ArrayToHex:()=>Yx,unwrapMessage:()=>li});function kx(e){return e}function Rx(e){return e}function Jo(){return e=>e}function wx(e){}function zx(e){throw new Error("Unexpected value in exhaustive check")}function Ix(e){}function ui(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=>I(r)).join(t)}function di(e,t){return typeof t=="bigint"?t.toString():t}var tp=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function mi(e){return new tp(e)}function pc(e){return e==null}function mn(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Ho(e,t){let r=e/t,i=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var Y_=Symbol("evaluating");function rp(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==Y_)return i===void 0&&(i=Y_,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Tx(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ue(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function pi(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function dn(e){return pi(e._zod.def)??e._zod.def.shape}function G_(e,t,r){Object.defineProperty(e,t,{get(){let i=r();return Ue(this,t,i),i},enumerable:!0,configurable:!0})}function W_(e,t,r){t in e?Ue(e,t,r):e[t]=r}function gr(e,t,r,i){let n=dn(t);for(let o of r){let a=Object.getOwnPropertyDescriptor(n,o);a.enumerable&&(a.get?G_(e,o,()=>{let s=t._zod.def.shape[o];return i?i(s,o):s}):W_(e,o,i?i(a.value,o):a.value))}}function xx(e,t){for(let r of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,r);i.enumerable&&(i.get?G_(e,r,()=>t[r]):W_(e,r,i.value))}}function Ot(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function Ex(e){return Ot(e._zod.def)}function Px(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function Ox(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 Cx(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Xe(e){return JSON.stringify(e)}function ip(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,"").replace(/[\\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var fc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var op=mi(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function $t(e){if(vr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(vr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Yo(e){return $t(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Nx(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Ax=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}`)}},Go=new Set(["string","number","symbol"]),ap=new Set(["string","number","bigint","boolean","symbol","undefined"]);function kt(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function pe(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 jx(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 I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function sp(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Wo={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]},Xo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ux(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={};return gr(o,e,hc(e,t)),pe(e,Ot(r,{shape:o,checks:[]}))}function hc(e,t){let r=dn(e),i=[];for(let n of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw new Error(`Unrecognized key: "${String(n)}"`);t[n]&&i.push(n)}return i}function Lx(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=new Set(hc(e,t)),a={};return gr(a,e,Reflect.ownKeys(dn(e)).filter(s=>!o.has(s))),pe(e,Ot(r,{shape:a,checks:[]}))}function Dx(e,t){if(!$t(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let n=dn(e);for(let o of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return pe(e,Ot(e._zod.def,{shape:X_(e,t)}))}function X_(e,t){let r={};return gr(r,e,Reflect.ownKeys(dn(e))),xx(r,t),r}function Mx(e,t){if(!$t(t))throw new Error("Invalid input to safeExtend: expected a plain object");return pe(e,Ot(e._zod.def,{shape:X_(e,t)}))}function qx(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};gr(r,e,Reflect.ownKeys(dn(e))),gr(r,t,Reflect.ownKeys(dn(t)));let i=Ot(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return pe(e,i)}function Vx(e,t,r,i="partial"){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let s=r?new Set(hc(t,r)):void 0,c={};return gr(c,t,Reflect.ownKeys(dn(t)),e&&((l,u)=>s&&!s.has(u)?l:new e({type:"optional",innerType:l}))),pe(t,Ot(t._zod.def,{shape:c,checks:[]}))}function Zx(e,t,r){let i=r?new Set(hc(t,r)):void 0,n={};return gr(n,t,Reflect.ownKeys(dn(t)),(o,a)=>i&&!i.has(a)?o:new e({type:"nonoptional",innerType:o})),pe(t,Ot(t._zod.def,{shape:n}))}function Qe(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function cp(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function at(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function li(e){return typeof e=="string"?e:e?.message}function fi(e){let t=[];for(let r of e??[]){let i=r._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let n=i.maximum??i.length??i.size;n>=0&&t.push([n,r])}return t}function Qo(e,t,r){var i;for(let n=t;n<e.length;n++)(i=e[n]).schema??(i.schema=r)}function st(e,t,r){var i;let n=e.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:li(e.inst?._zod.def?.error?.(e))??li(o?.(e))??li(t?.error?.(e))??li(r.customError?.(e))??li(r.localeError?.(e))??"Invalid input",s={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(s[c]=e[c]);return s.path??(s.path=[]),s.message=a,t?.reportInput&&(s.input=e.input),s}function ea(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Fx=/[\\uD800-\\uDBFF]/;function yr(e){let t=e.length;if(!Fx.test(e))return t;let r=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(r--,i++);return r}function ta(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function T(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 hi(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function Kx(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Q_(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 eb(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Bx(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Q_(t+r)}function Jx(e){return eb(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function Hx(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 Yx(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var np=class{constructor(...t){}};function lp(e,t){for(let r in t){let i=Object.getOwnPropertyDescriptor(t,r);i.get?Object.defineProperty(e,r,{...i,enumerable:!1}):Wx(e,r,i.value)}}function En(e,t,r,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function na(e,t,r){return En(e,t,r,!1)}function Gx(e,t){for(let r in e){let i=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return En(this,r,i(this))},set(n){En(this,r,n)}})}return t}function Wx(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:En(this,t,r.bind(this))},set(i){En(this,t,i)}})}function Xx(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var ep,xn=!1,Qx={configurable:!0,get(){xn=!0}};function de(e,t,r){let i=Object.getPrototypeOf(e._zod);if(t in i&&ep!==e._zod){ep=void 0;return}ep=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,Qx);let n=xn;xn=!1;try{let o=r(this);return xn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),xn=xn||n,o}catch(o){throw delete this[t],xn=xn||n,o}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function eE(e,t,r,i){let n=Xx(e,t);n&&Object.defineProperty(n,t,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,o),o.value=r(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:o})}})}var gc="~constantCatch";function up(e){let t=()=>e;return t[gc]=!0,t}var tb,ra=Object.freeze({status:"aborted"}),dp={value:void 0,enumerable:!1},nb="captureStackTrace"in Error?Error:null;function tE(e){let t=nb;if(t){let r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return nb=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function S(e,t,r,i){let n={};function o(p){this.def=p,this.constr=m,this.traits=new Set}o.prototype=n;let a=r,s=a&&new WeakSet;function c(p,f){if(p._zod){if(p._zod.traits.has(e))return}else{dp.value=new o(f);try{Object.defineProperty(p,"_zod",dp)}finally{dp.value=void 0}}if(p._zod.traits.add(e),t(p,f),s){let v=Object.getPrototypeOf(p),y=p._zod.constr.prototype,R=v;for(;R&&R!==y;)R=Object.getPrototypeOf(R);let w=R??v;s.has(w)||(s.add(w),lp(w,a))}let h=m.prototype;for(let v in h)Object.prototype.hasOwnProperty.call(h,v)&&(v in p||(p[v]=h[v].bind(p)))}let l=i?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function m(p){let f=i?.Parent?tE(u):this;c(f,p);let h=f._zod.deferred;if(h){for(let y of h)y();f._zod.deferred=void 0}let v=globalThis.__zod_globalConfig?.postProcessor;return v&&v(f),f}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:p=>i?.Parent&&p instanceof i.Parent?!0:p?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var mp=Symbol("zod_brand"),ct=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(tb=globalThis).__zod_globalConfig??(tb.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ke(e){return e&&Object.assign(Ne,e),Ne}function nE(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,di,2)),e.message}function rE(e){this._zod.message=e}var iE={get:nE,set:rE,enumerable:!0,configurable:!0},fp={value:void 0,enumerable:!1},rb=new WeakSet([Object.prototype,Error.prototype]),ib=(e,t)=>{e.name="$ZodError",fp.value=t,Object.defineProperty(e,"issues",fp),fp.value=void 0,Object.defineProperty(e,"message",iE);let r=Object.getPrototypeOf(e);rb.has(r)||(rb.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},hp=S("$ZodError",ib),lt=S("$ZodError",ib,void 0,{Parent:Error});function oE(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[t]=r()),e[t]}function ia(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?oE(r,n.path[0],()=>[]).push(t(n)):i.push(t(n));return{formErrors:i,fieldErrors:r}}function oa(e,t=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let c=r,l=0;for(;l<s.length;){let u=s[l],m=l===s.length-1;if(u==="_errors"){m&&c._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(c,u)||Object.defineProperty(c,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let p=c[u];m&&p._errors.push(t(a)),c=p,l++}}}};return i(e),r}function gp(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>i({issues:c},[...o,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...o,...s.path]);else{let c=[...o,...s.path];if(c.length===0){r.errors.push(t(s));continue}let l=r,u=0;for(;u<c.length;){let m=c[u],p=u===c.length-1;typeof m=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,m)||Object.defineProperty(l.properties,m,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[m]):(l.items??(l.items=[]),(a=l.items)[m]??(a[m]={errors:[]}),l=l.items[m]),p&&l.errors.push(t(s)),u++}}};return i(e),r}function ob(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 vp(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 ${ob(i.path)}`);return t.join(`\n`)}function vc(e,t){return{callee:t?.callee??e,Err:t?.Err}}var gi=e=>{let t=(r,i,n,o)=>{let a=n?{...n,async:!1}:{async:!1},s=r._zod.run({value:i,issues:[]},a);if(s instanceof Promise)throw new ct;if(s.issues.length){let c=new(o?.Err??e)(s.issues.map(l=>st(l,a,ke())));throw fc(c,o?.callee??t),c}return s.value};return t},yc=gi(lt),vi=e=>{let t=async(r,i,n,o)=>{let a=n?{...n,async:!0}:{async:!0},s=r._zod.run({value:i,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let c=new(o?.Err??e)(s.issues.map(l=>st(l,a,ke())));throw fc(c,o?.callee??t),c}return s.value};return t},Sc=vi(lt),yi=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new ct;return o.issues.length?ab(e,o.issues,n):{success:!0,data:o.value}},sE=yi(lt);function ab(e,t,r){let i;return{success:!1,get error(){return i||(i=new e(t.map(n=>st(n,r,ke()))),t=void 0,r=void 0),i},set error(n){i=n,t=void 0,r=void 0}}}var Si=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?ab(e,o.issues,n):{success:!0,data:o.value}},cE=Si(lt),lE=Symbol.for("zod.compile.invalid"),uE=Symbol.for("zod.compile.fallback"),aa=((e,t,r)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==lE)return!0;if(i.definite===!0&&r===void 0)return!1}return dE(e,t,r)});function dE(e,t,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,o;if(n?(i[uE]=!0,o=n({value:t,issues:[]},i)):o=e._zod.run({value:t,issues:[]},i),o instanceof Promise)throw new ct;return o.issues.length===0}var sa=async(e,t,r)=>{let i=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=e._zod.run({value:t,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length===0},_c=e=>{let t=gi(e),r=(i,n,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return t(i,n,s,vc(r,a))};return r},mE=_c(lt),bc=e=>{let t=gi(e),r=(i,n,o,a)=>t(i,n,o,vc(r,a));return r},pE=bc(lt),$c=e=>{let t=vi(e),r=async(i,n,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return await t(i,n,s,vc(r,a))};return r},fE=$c(lt),kc=e=>{let t=vi(e),r=async(i,n,o,a)=>await t(i,n,o,vc(r,a));return r},hE=kc(lt),Rc=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return yi(e)(t,r,n)},gE=Rc(lt),wc=e=>(t,r,i)=>yi(e)(t,r,i),vE=wc(lt),zc=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Si(e)(t,r,n)},yE=zc(lt),Ic=e=>async(t,r,i)=>Si(e)(t,r,i),SE=Ic(lt);var Rt={};un(Rt,{anyString:()=>Fp,base64:()=>Ap,base64url:()=>jp,bigint:()=>Bp,boolean:()=>Jp,browserEmail:()=>IE,cidrv4:()=>Cp,cidrv6:()=>Np,creditCard:()=>Tc,cuid:()=>Sp,cuid2:()=>_p,currencyCode:()=>Mp,date:()=>qp,datetime:()=>Zp,domain:()=>Lp,duration:()=>zp,e164:()=>Dp,email:()=>Tp,emoji:()=>xp,extendedDuration:()=>_E,guid:()=>Ip,hex:()=>Xp,hostname:()=>Up,html5Email:()=>RE,httpProtocol:()=>ca,iban:()=>xc,idnEmail:()=>zE,integer:()=>la,ipv4:()=>Ep,ipv6:()=>Pp,ksuid:()=>kp,lowercase:()=>Gp,mac:()=>Op,md5_base64:()=>PE,md5_base64url:()=>OE,md5_hex:()=>EE,nanoid:()=>Rp,nanoidOfLength:()=>wp,null:()=>Hp,number:()=>pn,rfc5322Email:()=>wE,sha1_base64:()=>NE,sha1_base64url:()=>AE,sha1_hex:()=>CE,sha256_base64:()=>UE,sha256_base64url:()=>LE,sha256_hex:()=>jE,sha384_base64:()=>ME,sha384_base64url:()=>qE,sha384_hex:()=>DE,sha512_base64:()=>ZE,sha512_base64url:()=>FE,sha512_hex:()=>VE,string:()=>Kp,time:()=>Vp,ulid:()=>bp,undefined:()=>Yp,unicodeEmail:()=>sb,uppercase:()=>Wp,uuid:()=>Sr,uuid4:()=>bE,uuid6:()=>$E,uuid7:()=>kE,xid:()=>$p});var Sp=/^[cC][0-9a-z]{6,}$/,_p=/^[0-9a-z]+$/,bp=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,$p=/^[0-9a-vA-V]{20}$/,kp=/^[A-Za-z0-9]{27}$/,Rp=/^[a-zA-Z0-9_-]{21}$/;function wp(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var zp=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,_E=/^[-+]?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)?)??$/,Ip=/^([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})$/,Sr=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)$/,bE=Sr(4),$E=Sr(6),kE=Sr(7),Tp=/^(?:[A-Za-z0-9_\'+\\-]+\\.)*[A-Za-z0-9_\'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,RE=/^[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])?)*$/,wE=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,sb=/^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u,zE=sb,IE=/^[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])?)*$/,TE="^(?=[\\\\s\\\\S]*[\\\\p{Extended_Pictographic}\\\\p{Regional_Indicator}\\\\u20E3])[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$";function xp(){return new RegExp(TE,"u")}var Ep=/^(?:(?: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])$/,Pp=/^(([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}|:))$/,Op=e=>{let t=kt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Cp=/^((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])$/,Np=/^(([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}|:))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ap=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,jp=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Up=/^(?=.{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])?)*\\.?$/,Lp=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$/,ca=/^https?$/,Dp=/^\\+[1-9]\\d{6,14}$/,Tc=/^\\d(?:[ -]?\\d){11,18}$/,Mp=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,xc=/^[A-Z]{2}(?!00|01|99)\\d{2}[A-Z0-9]{11,30}$/,cb="(?:(?:\\\\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])))";function xE(e){return new RegExp(`^${e}$`)}var qp=xE(cb);function yp(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}}`:e.seconds?`${t}:[0-5]\\\\d(?:\\\\.\\\\d+)?`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function Vp(e){return new RegExp(`^${yp(e)}$`)}function Zp(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");let r=`${yp({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${r}|${yp({precision:e.precision})}`:r;return new RegExp(`^${cb}T(?:${i})$`)}var Fp=/^[\\s\\S]{0,}$/,Kp=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${t}$`)},Bp=/^-?\\d+n?$/,la=/^-?\\d+$/,pn=/^-?\\d+(?:\\.\\d+)?$/,Jp=/^(?:true|false)$/i,Hp=/^null$/i;var Yp=/^undefined$/i;var Gp=/^[^A-Z]*$/,Wp=/^[^a-z]*$/,Xp=/^[0-9a-fA-F]*$/;function ua(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function da(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var EE=/^[0-9a-fA-F]{32}$/,PE=ua(22,"=="),OE=da(22),CE=/^[0-9a-fA-F]{40}$/,NE=ua(27,"="),AE=da(27),jE=/^[0-9a-fA-F]{64}$/,UE=ua(43,"="),LE=da(43),DE=/^[0-9a-fA-F]{96}$/,ME=ua(64,""),qE=da(64),VE=/^[0-9a-fA-F]{128}$/,ZE=ua(86,"=="),FE=da(86);var ve=S("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Qp=e=>{let t=e.value;return!pc(t)&&t.size!==void 0},ef=e=>{let t=e.value;return!pc(t)&&t.length!==void 0},Ec={number:"number",bigint:"bigint",object:"date"},Oc=S("$ZodCheckLessThan",(e,t)=>{ve.init(e,t);let r=Ec[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:Ec[typeof i.value]??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})}}),Cc=S("$ZodCheckGreaterThan",(e,t)=>{ve.init(e,t);let r=Ec[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:Ec[typeof i.value]??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})}}),tf=S("$ZodCheckMultipleOf",(e,t)=>{ve.init(e,t),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"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):Ho(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})}}),nf=S("$ZodCheckNumberFormat",(e,t)=>{ve.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Wo[t.format];e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,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:!0,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:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),rf=S("$ZodCheckBigIntFormat",(e,t)=>{ve.init(e,t);let[r,i]=Xo[t.format];e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),of=S("$ZodCheckMaxSize",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=Qp),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:ea(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),af=S("$ZodCheckMinSize",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=Qp),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:ea(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sf=S("$ZodCheckSizeEquals",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=Qp),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:ea(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),cf=S("$ZodCheckMaxLength",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=ef),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>t.maximum?yr(n):o)<=t.maximum)return;let s=ta(n);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lf=S("$ZodCheckMinLength",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=ef),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>=t.minimum&&o<t.minimum*2?yr(n):o)>=t.minimum)return;let s=ta(n);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),uf=S("$ZodCheckLengthEquals",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=ef),e._zod.check=i=>{let n=i.value,o=n.length,a=typeof n=="string"&&o>=t.length&&o<=t.length*2?yr(n):o;if(a===t.length)return;let s=ta(n),c=a>t.length;i.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),_i=S("$ZodCheckStringFormat",(e,t)=>{var r,i;ve.init(e,t),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=()=>{})}),df=S("$ZodCheckRegex",(e,t)=>{_i.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})}}),mf=S("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Gp),_i.init(e,t)}),pf=S("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Wp),_i.init(e,t)}),ff=S("$ZodCheckIncludes",(e,t)=>{ve.init(e,t);let r=kt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position},}${r}`:r);t.pattern=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})}}),hf=S("$ZodCheckStartsWith",(e,t)=>{ve.init(e,t);let r=new RegExp(`^${kt(t.prefix)}.*`);t.pattern??(t.pattern=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})}}),gf=S("$ZodCheckEndsWith",(e,t)=>{ve.init(e,t);let r=new RegExp(`.*${kt(t.suffix)}$`);t.pattern??(t.pattern=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 Pc(e,t,r){e.issues.length&&t.issues.push(...at(r,e.issues))}var vf=S("$ZodCheckProperty",(e,t)=>{ve.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=>Pc(n,r,t.property));Pc(i,r,t.property)}}),yf=S("$ZodCheckProperties",(e,t)=>{ve.init(e,t),na(e,Symbol.iterator,function*(){yield e});let r;e._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:e});return}r??(r=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let n=i.value,o;for(let[a,s]of r){let c=s._zod.run({value:n[a],issues:[]},{});c instanceof Promise?(o??(o=[]),o.push(c.then(l=>Pc(l,i,a)))):Pc(c,i,a)}if(o)return Promise.all(o).then(()=>{})}}),Sf=S("$ZodCheckMimeType",(e,t)=>{ve.init(e,t);let r=new Set(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})}}),_f=S("$ZodCheckOverwrite",(e,t)=>{ve.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var _r=class{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`\n`).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?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {\n${r.join(`\n`)}\n};`)(...Object.values(this.closed))}};var bf={major:4,minor:6,patch:7};var oe=S("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=bf;let i=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(s,c,l)=>{if(s.memo)return s;let u=Qe(s),m;for(let p of c){if(p._zod.def.when){if(cp(s)||!p._zod.def.when(s))continue}else if(u)continue;let f=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new ct;if(m||h instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await h,s.issues.length!==f&&(Qo(s.issues,f,e),u||(u=Qe(s,f)))});else{if(s.issues.length===f)continue;Qo(s.issues,f,e),u||(u=Qe(s,f))}}return m?m.then(()=>s):s},a=(s,c,l)=>{if(Qe(s))return s.aborted=!0,s;let u=o(c,n,l);if(u instanceof Promise){if(l.async===!1)throw new ct;return u.then(m=>e._zod.parse(m,l))}return e._zod.parse(u,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return u instanceof Promise?u.then(m=>a(m,s,c)):a(u,s,c)}let l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new ct;return l.then(u=>o(u,n,c))}return o(l,n,c)}}},{get"~standard"(){return na(this,"~standard",Lc(this))},set"~standard"(e){En(this,"~standard",e)}}),wb=(e,t)=>e.issues.length?{issues:e.issues.map(r=>st(r,t,ke()))}:{value:e.value};async function KE(e,t){let r={async:!0};return wb(await e._zod.run({value:t,issues:[]},r),r)}function Lc(e){return{validate:t=>{let r={async:!1};try{let i=e._zod.run({value:t,issues:[]},r);if(!(i instanceof Promise))return wb(i,r)}catch{}return KE(e,t)},vendor:"zod",version:1}}var br=S("$ZodString",(e,t)=>{oe.init(e,t),e._zod.pattern=t.pattern??Fp,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}}),fe=S("$ZodStringFormat",(e,t)=>{_i.init(e,t),br.init(e,t)}),kf=S("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ip),fe.init(e,t)}),Rf=S("$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=Sr(i))}else t.pattern??(t.pattern=Sr());fe.init(e,t)}),wf=S("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Tp),fe.init(e,t)}),zf=1,ma=2;function If(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Dc(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?If(e)||ma:zb(e,t)}function zb(e,t){if(!t.normalize&&t.protocol?.source===ca.source&&!/^https?:\\/\\//i.test(e))return zf;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(e)??ma}return new URL(e)}catch{return ma}}var BE=/[\\t\\n\\r]/g;function pa(e){return e.replace(BE,"")}function Mc(e,t){return t.lastIndex=0,t.test(e.hostname)}function qc(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Tf=S("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=Dc(i,t);if(n===zf){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===ma){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=pa(i);return}t.hostname&&!Mc(n,t.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&&!qc(n,t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort}),r.value=t.normalize?n.href:pa(i);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),xf=S("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xp()),fe.init(e,t)}),Ef=S("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Rp:wp(t.length)),fe.init(e,t)}),Pf=S("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Sp),fe.init(e,t)}),Of=S("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_p),fe.init(e,t)}),Cf=S("$ZodULID",(e,t)=>{t.pattern??(t.pattern=bp),fe.init(e,t)}),Nf=S("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$p),fe.init(e,t)}),Af=S("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=kp),fe.init(e,t)}),jf=S("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Zp(t)),fe.init(e,t)}),Uf=S("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=qp),fe.init(e,t)}),Lf=S("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Vp(t)),fe.init(e,t)}),Df=S("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=zp),fe.init(e,t)}),Mf=S("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ep),fe.init(e,t)}),JE=/^[0-9a-fA-F:.]+$/;function fa(e){return JE.test(e)?If(`http://[${e}]`):!1}var qf=S("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Pp),fe.init(e,t),e._zod.check=r=>{fa(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),Vf=S("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Op(t.delimiter)),fe.init(e,t)}),Zf=S("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Cp),fe.init(e,t)});function Vc(e){let t=e.split("/");if(t.length!==2)return!1;let[r,i]=t;if(!i)return!1;let n=Number(i);return`${n}`!==i||n<0||n>128?!1:fa(r)}var Ff=S("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Np),fe.init(e,t),e._zod.check=r=>{Vc(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function ha(e){if(e==="")return!0;if(/\\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Zc=/^[0-9a-zA-Z+/]*={0,2}$/,Kf=S("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Zc),fe.init(e,t),e._zod.check=r=>{ha(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),ga=/^[A-Za-z0-9_-]*$/;function Fc(e){if(!ga.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ha(r)}var Bf=S("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ga),fe.init(e,t),e._zod.check=r=>{Fc(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Jf=S("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Dp),fe.init(e,t)}),HE=/[- ]/g;function YE(e){let t=e.length,r=1,i=0;for(;t;){let n=e.charCodeAt(--t)-48;r^=1,i+=r?[0,2,4,6,8,1,3,5,7,9][n]:n}return i%10===0}function Kc(e){return Tc.test(e)?YE(e.replace(HE,"")):!1}var Hf=S("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=Tc),fe.init(e,t),e._zod.check=r=>{Kc(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:e,continue:!t.abort})}});function GE(e){let t=0,r=e.length;for(let i=4;i<r;i++){let n=e.charCodeAt(i);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}for(let i=0;i<4;i++){let n=e.charCodeAt(i);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}return t===1}function Bc(e){return xc.test(e)?GE(e):!1}var Yf=S("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=xc),fe.init(e,t),e._zod.check=r=>{Bc(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:e,continue:!t.abort})}});function Jc(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!1}}var Gf=S("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=r=>{Jc(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Wf=S("$ZodCustomStringFormat",(e,t)=>{fe.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})}}),Hc=S("$ZodNumber",(e,t)=>{oe.init(e,t),e._zod.pattern=pn,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:String(n):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Xf=S("$ZodNumberFormat",(e,t)=>{nf.init(e,t),Hc.init(e,t)}),va=S("$ZodBoolean",(e,t)=>{oe.init(e,t),e._zod.pattern=Jp,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}}),Yc=S("$ZodBigInt",(e,t)=>{oe.init(e,t),e._zod.pattern=Bp,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}}),Qf=S("$ZodBigIntFormat",(e,t)=>{rf.init(e,t),Yc.init(e,t)}),eh=S("$ZodSymbol",(e,t)=>{oe.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}}),th=S("$ZodUndefined",(e,t)=>{oe.init(e,t),e._zod.pattern=Yp,e._zod.values=new Set([void 0]),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}}),nh=S("$ZodNull",(e,t)=>{oe.init(e,t),e._zod.pattern=Hp,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}}),rh=S("$ZodAny",(e,t)=>{oe.init(e,t),e._zod.parse=r=>r}),ih=S("$ZodUnknown",(e,t)=>{oe.init(e,t),e._zod.parse=r=>r}),oh=S("$ZodNever",(e,t)=>{oe.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),ah=S("$ZodVoid",(e,t)=>{oe.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}}),sh=S("$ZodDate",(e,t)=>{oe.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 ch(e,t){let r=fi(e._zod.def.checks);if(!r.length)return;let i=Math.min(...r.map(o=>o[0])),n=e._zod.parse;e._zod.parse=(o,a)=>{let s=t(o.value);if(s>i&&!a?.skipChecks&&a?.direction!=="backward"){for(let[c,l]of fi(e._zod.def.checks))if(s>c&&l._zod.def.when(o)){let u=o.issues.length;return l._zod.check(o),o.issues[u].continue=!1,Qo(o.issues,u,e),o}}return n(o,a)}}var WE=e=>Array.isArray(e)?e.length:-1,XE=e=>e instanceof Map?e.size:-1,QE=e=>e instanceof Set?e.size:-1;function ub(e,t,r){e.issues.length&&t.issues.push(...at(r,e.issues)),t.value[r]=e.value}var lh=S("$ZodArray",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),i;i.value=r?r.alloc(e,i,Array(o.length),n):Array(o.length);let a=[],s=n?.abortEarly;for(let c=0;c<o.length;c++){let l=o[c],u=t.element._zod.run({value:l,issues:[]},n);if(u instanceof Promise)a.push(u.then(m=>ub(m,i,c)));else if(ub(u,i,c),s&&u.issues.length!==0&&Qe(u))break}return a.length?Promise.all(a).then(()=>i):i},ch(e,WE)});function Uc(e,t,r,i,n,o){let a=r in i,s=o==="optional";if(!(!a&&s&&n==="optional")){if(e.issues.length){if(n!==void 0&&s&&!a)return;t.issues.push(...at(r,e.issues))}if(!a&&n===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(a||n==="defaulted"&&!s)&&(t.value[r]=void 0):t.value[r]=e.value}}var eP=[];function Ib(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),i=r.length?r:eP,n=i.length?[...t,...i]:t;for(let a of n)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let o=sp(e.shape);return{...e,allKeys:n,symbolKeys:i,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function Tb(e,t,r,i,n,o,a){let s=[],c=n.keySet,l=n.catchall._zod,u=l.def.type,m=l.optin,p=l.optout,f=0;for(let h in t){if(a&&r.issues.length!==f){if(Qe(r,f))break;f=r.issues.length}if(c.has(h))continue;if(h==="__proto__"){u==="never"&&s.push(h);continue}if(u==="never"){s.push(h);continue}let v=l.run({value:t[h],issues:[]},i);v instanceof Promise?e.push(v.then(y=>Uc(y,r,h,t,m,p))):Uc(v,r,h,t,m,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var xb=S("$ZodObject",(e,t)=>{oe.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),i=r?.get?r.get.raw:t.shape??{};if(i){let l=()=>{let u={...i};return Object.defineProperty(t,"shape",{value:u}),l.raw=u,u};l.raw=i,Object.defineProperty(t,"shape",{get:l})}let n=mi(()=>Ib(t));de(e,"propValues",l=>{let u=l.def.shape,m={};for(let p in u){let f=u[p]._zod;if(f.values){Object.prototype.hasOwnProperty.call(m,p)||Ue(m,p,new Set);for(let h of f.values)m[p].add(h);f.optin!==void 0&&m[p].add(void 0)}}return m});let o=vr,a=t.catchall,s,c=Ne.memoizer;c?.attach(e),e._zod.parse=(l,u)=>{s??(s=n.value);let m=l.value;if(!o(m))return l.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),l;l.value=c?c.alloc(e,l,{},u):{};let p=[],f=s.shape,h=u?.abortEarly,v=l.issues.length;for(let y of s.allKeys){if(h&&l.issues.length!==v){if(Qe(l,v))break;v=l.issues.length}if(y==="__proto__")continue;let R=f[y],w=R._zod.optin,E=R._zod.optout,D=R._zod.run({value:m[y],issues:[]},u);D instanceof Promise?p.push(D.then(F=>Uc(F,l,y,m,w,E))):Uc(D,l,y,m,w,E)}return a?Tb(p,m,l,u,n.value,e,h===!0):p.length?Promise.all(p).then(()=>l):l}}),uh=S("$ZodObjectJIT",(e,t)=>{xb.init(e,t);let r=e._zod.parse,i=mi(()=>Ib(t)),n=Ne.memoizer,o=f=>{let h=i.value,v=h.symbolKeys,y=new _r(["payload","ctx"],{shape:f,inst:e,memo:n,syms:v}),R=F=>`shape[${F}]._zod.run({ value: input[${F}], issues: [] }, ctx)`,w=(F,N)=>`\n let ${F}_ab = false;\n for (let i = 0; i < ${F}.issues.length; i++) {\n const iss = ${F}.issues[i];\n iss.path = iss.path ? [${N}, ...iss.path] : [${N}];\n payload.issues.push(iss);\n if (iss.continue !== true) ${F}_ab = true;\n }\n if (${F}_ab && ctx && ctx.abortEarly) {\n payload.value = newResult;\n return payload;\n }`;y.write("const input = payload.value;");let E=Object.create(null),D=0;for(let F of h.allKeys)E[F]=`key_${D++}`;y.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let F of h.allKeys){if(F==="__proto__")continue;let N=E[F],te=typeof F=="symbol"?`syms[${v.indexOf(F)}]`:Xe(F),ie=`${te} in input`,Y=f[F],ye=Y?._zod?.optin,be=ye!==void 0,ce=Y?._zod?.optout==="optional";if(y.write(`const ${N} = ${R(te)};`),be&&ce){let Ie=ye==="optional"?`${N}_present`:`${N}.value !== undefined || ${N}_present`;y.write(`\n const ${N}_present = ${ie};\n if (!${N}.issues.length || ${N}_present) {\n if (${N}.issues.length) {${w(N,te)}\n }\n\n if (${Ie}) {\n newResult[${te}] = ${N}.value;\n }\n }\n\n `)}else be?(y.write(`\n if (${N}.issues.length) {${w(N,te)}\n }\n `),ye==="defaulted"?y.write(`newResult[${te}] = ${N}.value;`):y.write(`\n if (${N}.value !== undefined || ${ie}) {\n newResult[${te}] = ${N}.value;\n }\n `)):y.write(`\n const ${N}_present = ${ie};\n if (${N}.issues.length) {${w(N,te)}\n }\n if (!${N}_present && !${N}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${te}]\n });\n if (ctx && ctx.abortEarly) {\n payload.value = newResult;\n return payload;\n }\n }\n\n if (${N}_present) {\n newResult[${te}] = ${N}.value;\n }\n\n `)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},a,s=vr,c=!Ne.jitless,u=c&&op.value,m=t.catchall,p;e._zod.parse=(f,h)=>{p??(p=i.value);let v=f.value;return s(v)?c&&u&&h?.async===!1&&h.jitless!==!0?(a||(a=o(t.shape)),f=a(f,h),m?Tb([],v,f,h,p,e,h?.abortEarly===!0):f):r(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function db(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=>!Qe(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=>st(a,i,ke())))}),t)}var ya=S("$ZodUnion",(e,t)=>{oe.init(e,t),de(e,"optin",i=>i.def.options.some(n=>n._zod.optin==="defaulted")?"defaulted":i.def.options.some(n=>n._zod.optin!==void 0)?"optional":void 0),de(e,"optout",i=>i.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),de(e,"values",i=>{if(i.def.options.every(n=>n._zod.values))return new Set(i.def.options.flatMap(n=>Array.from(n._zod.values)))}),de(e,"pattern",i=>{if(i.def.options.every(n=>n._zod.pattern)){let n=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>mn(o.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>db(s,i,e,n)):db(a,i,e,n)}});function mb(e,t,r,i){let n=[];for(let o=0;o<e.length;o++)e[o].issues.length===0&&n.push(o);return n.length===1?(t.value=e[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=>st(a,i,ke())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1,matches:n}),t)}var dh=S("$ZodXor",(e,t)=>{ya.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>mb(s,i,e,n)):mb(a,i,e,n)}});function mh(e,t){let r=e._zod,i=r.bag.optionsMap;i||(i=Eb(r.def),r.bag.optionsMap=i);let n=i.get(t);if(n===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return n}function Eb(e){let t=new Map;for(let r of e.options){let i=r._zod.propValues?.[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let n of i)if(t.has(n)){if(n!==void 0)throw new Error(`Duplicate discriminator value "${String(n)}"`);t.set(n,null)}else t.set(n,r)}return t}var ph=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ya.init(e,t);let r=e._zod.parse;de(e,"propValues",n=>{let o={},a=0;for(let s of n.def.options){let c=s._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(s)}"`);c[n.def.discriminator]?.has(void 0)&&a++;for(let[l,u]of Object.entries(c)){Object.prototype.hasOwnProperty.call(o,l)||Ue(o,l,new Set);for(let m of u)o[l].add(m)}}return!n.def.unionFallback&&a>1&&o[n.def.discriminator]?.delete(void 0),o}),t.options.forEach((n,o)=>{let a=pi(n._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=mi(()=>Eb(t));e._zod.parse=(n,o)=>{let a=n.value;if(!vr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=a?.[t.discriminator],c=i.value.get(s);return c&&(s!==void 0||o.direction!=="backward")?c._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()).filter(l=>i.value.get(l)!==null),input:a,path:[t.discriminator],inst:e}),n)}}),fh=S("$ZodIntersection",(e,t)=>{oe.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])=>pb(r,c,l)):pb(r,o,a)}});function bi(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if($t(e)&&$t(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(let o of i){if(o==="__proto__")continue;let a=bi(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=bi(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function pb(e,t,r){let i=new Map,n,o=new Map,a=(l,u)=>{let m;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),m=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let p=String(l.path[0]);o.has(p)||o.set(p,l),m=[p]}else return!1;for(let p of m)i.has(p)||i.set(p,{}),i.get(p)[u]=!0;return!0};for(let l of t.issues)a(l,"l")||e.issues.push(l);for(let l of r.issues)a(l,"r")||e.issues.push(l);let s=[...i].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(s.length){let l=n?s.filter(u=>n.keys.includes(u)):[];l.length&&e.issues.push({...n,keys:l});for(let u of s)!l.includes(u)&&o.has(u)&&e.issues.push(o.get(u))}let c=bi(t.value,r.value);if(!c.valid){if(Qe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Gc=S("$ZodTuple",(e,t)=>{oe.init(e,t);let r=t.items,i=Ne.memoizer;i?.attach(e),e._zod.parse=(n,o)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=i?i.alloc(e,n,[],o):[];let s=[],c=fb(r,"optin"),l=fb(r,"optout");if(!t.rest){if(a.length<c)return n.issues.push({code:"too_small",minimum:c,inclusive:!0,input:a,inst:e,origin:"array"}),n;a.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(r.length),m=t.rest?o?.abortEarly:void 0,p=!1;for(let f=0;f<r.length;f++){let h=r[f]._zod.run({value:a[f],issues:[]},o);h instanceof Promise?s.push(h.then(v=>{u[f]=v})):(u[f]=h,m&&!p&&h.issues.length&&(p=Qe(h)))}if(t.rest&&!p){let f=r.length-1,h=a.slice(r.length),v=n.issues.length;for(let y of h){if(m&&n.issues.length!==v){if(Qe(n,v))break;v=n.issues.length}f++;let R=t.rest._zod.run({value:y,issues:[]},o);R instanceof Promise?s.push(R.then(w=>hb(w,n,f))):hb(R,n,f)}}return s.length?Promise.all(s).then(()=>gb(u,n,r,a,l)):gb(u,n,r,a,l)}});function fb(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function hb(e,t,r){e.issues.length&&t.issues.push(...at(r,e.issues)),t.value[r]=e.value}function gb(e,t,r,i,n){for(let o=0;o<r.length;o++){let a=e[o],s=o<i.length;if(!s&&o>=n&&r[o]._zod.optin==="optional"){t.value.length=o;break}if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...at(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var hh=S("$ZodRecord",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!$t(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),i;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){i.value=r?r.alloc(e,i,{},n):{};let c=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(c.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let m=t.keyType._zod.run({value:u,issues:[]},n);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(h=>st(h,n,ke())),input:u,path:[u],inst:e});continue}let p=m.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&i.issues.push(...at(u,h.issues)),i.value[p]=h.value})):(f.issues.length&&i.issues.push(...at(u,f.issues)),i.value[p]=f.value)}let l;for(let u in o)if(!c.has(u))if(t.mode==="loose"){if(u==="__proto__")continue;i.value[u]=o[u]}else l=l??[],l.push(u);l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l,continue:!0})}else{i.value=r?r.alloc(e,i,{},n):{};let c;for(let l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let u=t.keyType._zod.run({value:l,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&pn.test(l)&&u.issues.length){let h=t.keyType._zod.run({value:Number(l),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(u=h)}if(u.issues.length){t.mode==="loose"?i.value[l]=o[l]:s?(c=c??[],c.push(l)):i.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>st(h,n,ke())),input:l,path:[l],inst:e});continue}let p=u.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:o[l],issues:[]},n);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&i.issues.push(...at(l,h.issues)),i.value[p]=h.value})):(f.issues.length&&i.issues.push(...at(l,f.issues)),i.value[p]=f.value)}c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c,continue:!0})}return a.length?Promise.all(a).then(()=>i):i}}),gh=S("$ZodMap",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),i;let a=[];i.value=r?r.alloc(e,i,new Map,n):new Map;let s=n?.abortEarly,c=i.issues.length;for(let[l,u]of o){if(s&&i.issues.length!==c){if(Qe(i,c))break;c=i.issues.length}let m=t.keyType._zod.run({value:l,issues:[]},n),p=t.valueType._zod.run({value:u,issues:[]},n);m instanceof Promise||p instanceof Promise?a.push(Promise.all([m,p]).then(([f,h])=>{vb(f,h,i,l,o,e,n)})):vb(m,p,i,l,o,e,n)}return a.length?Promise.all(a).then(()=>i):i},ch(e,XE)});function vb(e,t,r,i,n,o,a){e.issues.length&&(Go.has(typeof i)?r.issues.push(...at(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>st(s,a,ke()))})),t.issues.length&&(Go.has(typeof i)?r.issues.push(...at(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>st(s,a,ke()))})),r.value.set(e.value,t.value)}var vh=S("$ZodSet",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),i;let a=[];i.value=r?r.alloc(e,i,new Set,n):new Set;let s=n?.abortEarly,c=i.issues.length;for(let l of o){if(s&&i.issues.length!==c){if(Qe(i,c))break;c=i.issues.length}let u=t.valueType._zod.run({value:l,issues:[]},n);u instanceof Promise?a.push(u.then(m=>yb(m,i))):yb(u,i)}return a.length?Promise.all(a).then(()=>i):i},ch(e,QE)});function yb(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var yh=S("$ZodEnum",(e,t)=>{oe.init(e,t);let r=ui(t.entries),i=new Set(r);e._zod.values=i,de(e,"pattern",n=>{let o=ui(n.def.entries).filter(a=>Go.has(typeof a));return new RegExp(o.length?`^(${o.map(a=>kt(a.toString())).join("|")})$`:"^[^\\\\s\\\\S]$")}),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}}),Sh=S("$ZodLiteral",(e,t)=>{oe.init(e,t);let r=new Set(t.values);e._zod.values=r,de(e,"pattern",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o=="string"?kt(o):o?kt(o.toString()):String(o)).join("|")})$`:"^[^\\\\s\\\\S]$")}),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}}),_h=S("$ZodFile",(e,t)=>{oe.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}}),bh=S("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Ne.memoizer?.guard(e),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Pn(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 ct;return r.value=n,r}});function Sb(e,t){return e.value=t.issues.length?void 0:t.value,e}var Wc=S("$ZodOptional",(e,t)=>{oe.init(e,t),de(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",de(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),de(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${mn(i.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let n=t.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>Sb(r,o)):Sb(r,n)}return t.innerType._zod.run(r,i)}}),$h=S("$ZodExactOptional",(e,t)=>{Wc.init(e,t),de(e,"values",r=>r.def.innerType._zod.values),de(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),kh=S("$ZodNullable",(e,t)=>{oe.init(e,t),de(e,"optin",r=>r.def.innerType._zod.optin),de(e,"optout",r=>r.def.innerType._zod.optout),de(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${mn(i.source)}|null)$`):void 0}),de(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),Rh=S("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="defaulted",de(e,"values",r=>r.def.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=>_b(o,t)):_b(n,t)}});function _b(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var wh=S("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="defaulted",de(e,"values",r=>r.def.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))}),zh=S("$ZodNonOptional",(e,t)=>{oe.init(e,t),de(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>bb(o,e)):bb(n,e)}});function bb(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 Ih=S("$ZodSuccess",(e,t)=>{oe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Pn("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)}});function $b(e,t,r,i){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(n=>st(n,i,ke()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Th=S("$ZodCatch",(e,t)=>{oe.init(e,t),de(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),de(e,"optout",r=>r.def.innerType._zod.optout),de(e,"values",r=>r.def.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({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>$b(r,o,t,i)):$b(r,n,t,i)}}),xh=S("$ZodNaN",(e,t)=>{oe.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)}),Xc=S("$ZodPipe",(e,t)=>{oe.init(e,t),de(e,"values",r=>r.def.in._zod.values),de(e,"optin",r=>r.def.in._zod.optin),de(e,"optout",r=>r.def.out._zod.optout),de(e,"propValues",r=>r.def.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=>Nc(a,t.in,i)):Nc(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Nc(o,t.out,i)):Nc(n,t.out,i)}});function Nc(e,t,r){return e.issues.some(i=>i.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Sa=S("$ZodCodec",(e,t)=>{oe.init(e,t),de(e,"values",r=>r.def.in._zod.values),de(e,"optin",r=>r.def.in._zod.optin),de(e,"optout",r=>r.def.out._zod.optout),de(e,"propValues",r=>r.def.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=>Ac(a,t,i)):Ac(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ac(a,t,i)):Ac(o,t,i)}}});function Ac(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>jc(e,o,t.out,r)):jc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>jc(e,o,t.in,r)):jc(e,n,t.in,r)}}function jc(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var Eh=S("$ZodPreprocess",(e,t)=>{Xc.init(e,t)}),Ph=S("$ZodReadonly",(e,t)=>{oe.init(e,t),de(e,"propValues",r=>r.def.innerType._zod.propValues),de(e,"values",r=>r.def.innerType._zod.values),de(e,"optin",r=>r.def.innerType?._zod?.optin),de(e,"optout",r=>r.def.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(kb):kb(n)}});function kb(e){return e.memo||(e.value=Object.freeze(e.value)),e}function tP(e){let t=e._zod.def,r=t.pattern,i=!!t.format?.includes("int"),n,o;for(let s of t.checks??[]){let c=s._zod.def;c.pattern&&(r=c.pattern),i||(i=!!c.format?.includes("int"));let l=c.minimum??c.length,u=c.maximum??c.length;l!==void 0&&(n===void 0||l>n)&&(n=l),u!==void 0&&(o===void 0||u<o)&&(o=u)}if(r)return r.source;if(n!==void 0&&o!==void 0&&n>o)return"(?!)";if(n!==void 0||o!==void 0)return Kp({minimum:n,maximum:o}).source;let a=e._zod.pattern;return(i&&a===pn?la:a)?.source}function $f(e){let t=e._zod.def,r=e._zod.pattern?.source,i=t.innerType??e._zod.innerType;if(i){let n=i._zod.pattern?.source,o=$f(i);return r&&n&&o&&o!==n?r.replace(mn(n),()=>mn(o)):r}if(t.options){let n=t.options.map($f);if(n.every(Boolean))return`^(${n.map(o=>mn(o)).join("|")})$`}return tP(e)}var Oh=S("$ZodTemplateLiteral",(e,t)=>{oe.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){let n=$f(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push(mn(n))}else if(i===null||ap.has(typeof i))r.push(kt(`${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)}),Ch=S("$ZodFunction",(e,t)=>(oe.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...i){let n=e._def.input?yc(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?yc(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let n=e._def.input?await Sc(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await Sc(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},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 Gc({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)),Nh=S("$ZodPromise",(e,t)=>{oe.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),_a=S("$ZodLazy",(e,t)=>{oe.init(e,t),rp(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),de(e,"pattern",r=>r.innerType?._zod?.pattern),de(e,"propValues",r=>r.innerType?._zod?.propValues),de(e,"optin",r=>r.innerType?._zod?.optin??void 0),de(e,"optout",r=>r.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Ah=S("$ZodCustom",(e,t)=>{ve.init(e,t),oe.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=>Rb(o,r,i,e));Rb(n,r,i,e)}});function Rb(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(hi(n))}}var nl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Uh="~memo",Ob=[];function Cb(e){return e!==null&&typeof e=="object"}function jh(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var Nb=new WeakMap,$i=0,tl=1,ba=2;function $a(e,t,r){let i=Nb.get(e);if(i!==void 0)return i?ba:$i;if(t.has(e))return ba;t.add(e);let n=$i,o=u=>{if(n!==ba&&u?._zod){let m=$a(u,t,r);m>n&&(n=m)}},a=(u,m)=>{let p=$i;for(let f of Reflect.ownKeys(u)){let h=Object.getOwnPropertyDescriptor(u,f);if(m&&!h.enumerable)continue;let v=h.get?tl:h.value?._zod?$a(h.value,t,r):$i;v>p&&(p=v)}return p},s=u=>{u>n&&(n=u)},c=e._zod.def,l=c.type;switch(l){case"object":{let u=pi(c);s(u?a(u,!0):tl),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(let u of c.items)o(u);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(let u of c.options)o(u);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{let u=c._cachedInner??(r?e._zod.innerType:void 0);s(u?$a(u,t,!1):tl);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let u in c){let m=Object.getOwnPropertyDescriptor(c,u);if(!m||m.get)continue;let p=m.value;if(!(!p||typeof p!="object")){if(p._zod)o(p);else if(Array.isArray(p))for(let f of p)o(f)}}}return t.delete(e),nP(e,n)}function nP(e,t){return t!==tl&&Nb.set(e,t===ba),t}function rl(e){return $a(e,new Set,!0)!==$i}function rP(e,t){let r=e.buckets.get(t);return r||(r=new WeakMap,e.buckets.set(t,r)),r}var Qc,el=[],iP={alloc(e,t,r){let i=Qc;if(!i)return r;Qc=void 0;let n={value:r,issues:null};return i.set(t.value,n),el.push(n),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,i=(n,o)=>{if(o.direction!=="backward"&&il(o,n.value))throw new nl;return r(n,o)};e._zod.parse=i,e._zod.run===r&&(e._zod.run=i)})},attach(e){var t;let r,i=!1,n,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,s=(c,l)=>{if(r===void 0){let R=$a(e,new Set,!1);if(R===$i)return e._zod.parse=a,e._zod.run===s&&(e._zod.run=a),a(c,l);R===ba||i?r=!0:i=!0}let u=c.value;if(!Cb(u))return a(c,l);let m=l[Uh];m||(m={buckets:new WeakMap,backEdges:void 0},l[Uh]=m);let p;n===l?p=o:(p=rP(m,e),n=l,o=p);let f=p.get(u);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...jh(f.issues)):(c.memo=!0,m.backEdges??(m.backEdges=new WeakSet),m.backEdges.add(f.value)),c;Qc=p;let h=el.length,v=a(c,l);Qc=void 0;let y=el.length>h?el.pop():void 0;return v instanceof Promise?v.then(R=>(y&&(y.issues=R.issues.length?jh(R.issues):Ob),R)):(y&&(y.issues=v.issues.length?jh(v.issues):Ob),v)};e._zod.parse=s,e._zod.run===a&&(e._zod.run=s)})}};function ka(){return iP}function il(e,t){let r=e[Uh]?.backEdges;return r!==void 0&&Cb(t)&&r.has(t)}var wa={};un(wa,{ar:()=>Ab,az:()=>jb,be:()=>Lb,bg:()=>Db,bn:()=>Mb,ca:()=>qb,ckb:()=>Vb,cs:()=>Zb,da:()=>Fb,de:()=>Kb,el:()=>Bb,en:()=>ol,eo:()=>Jb,es:()=>Hb,fa:()=>Yb,fi:()=>Gb,fr:()=>Wb,frCA:()=>Xb,gu:()=>Qb,he:()=>e$,hi:()=>t$,hr:()=>n$,hu:()=>r$,hy:()=>o$,id:()=>a$,is:()=>s$,it:()=>c$,ja:()=>l$,ka:()=>u$,kh:()=>d$,km:()=>al,kn:()=>m$,ko:()=>p$,lt:()=>h$,mk:()=>g$,ms:()=>v$,ne:()=>y$,nl:()=>S$,nn:()=>_$,no:()=>b$,ota:()=>$$,pl:()=>R$,ps:()=>k$,pt:()=>w$,ptBR:()=>z$,ro:()=>I$,ru:()=>x$,sk:()=>E$,sl:()=>P$,sv:()=>O$,ta:()=>C$,tg:()=>N$,th:()=>A$,tk:()=>j$,tr:()=>U$,ua:()=>L$,uk:()=>sl,ur:()=>D$,uz:()=>M$,vi:()=>q$,yo:()=>F$,zhCN:()=>V$,zhTW:()=>Z$});var oP=()=>{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"},map:{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",mac:"\\u0639\\u0646\\u0648\\u0627\\u0646 MAC",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",credit_card:"\\u0631\\u0642\\u0645 \\u0628\\u0637\\u0627\\u0642\\u0629 \\u0627\\u0644\\u0627\\u0626\\u062A\\u0645\\u0627\\u0646",currency_code:"\\u0631\\u0645\\u0632 \\u0627\\u0644\\u0639\\u0645\\u0644\\u0629",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 Ab(){return{localeError:oP()}}var aP=()=>{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"},map:{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",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",credit_card:"kredit kart\\u0131 n\\xF6mr\\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${I(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 jb(){return{localeError:aP()}}function Ub(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 sP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u043D\\u0443\\u043C\\u0430\\u0440 \\u043A\\u0440\\u044D\\u0434\\u044B\\u0442\\u043D\\u0430\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",currency_code:"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u044B",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 s=Number(n.maximum),c=Ub(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 ${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 s=Number(n.minimum),c=Ub(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 ${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 Lb(){return{localeError:sP()}}var cP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0430",currency_code:"\\u043A\\u043E\\u0434 \\u043D\\u0430 \\u0432\\u0430\\u043B\\u0443\\u0442\\u0430",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${I(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 Db(){return{localeError:cP()}}var lP=()=>{let e={string:{unit:"\\u0985\\u0995\\u09CD\\u09B7\\u09B0",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},file:{unit:"\\u09AC\\u09BE\\u0987\\u099F",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},array:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},set:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},map:{unit:"\\u098F\\u09A8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"}};function t(n){return e[n]??null}let r={regex:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F",email:"\\u0987\\u09AE\\u09C7\\u0987\\u09B2 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",url:"URL",emoji:"\\u0987\\u09AE\\u09CB\\u099C\\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996 \\u0993 \\u09B8\\u09AE\\u09AF\\u09BC",date:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996",time:"ISO \\u09B8\\u09AE\\u09AF\\u09BC",duration:"ISO \\u09B8\\u09AE\\u09AF\\u09BC\\u0995\\u09BE\\u09B2",ipv4:"IPv4 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",ipv6:"IPv6 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",mac:"MAC \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",cidrv4:"IPv4 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",cidrv6:"IPv6 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",base64:"base64-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",base64url:"base64url-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",json_string:"JSON \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",e164:"E.164 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",credit_card:"\\u0995\\u09CD\\u09B0\\u09C7\\u09A1\\u09BF\\u099F \\u0995\\u09BE\\u09B0\\u09CD\\u09A1 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",currency_code:"\\u09AE\\u09C1\\u09A6\\u09CD\\u09B0\\u09BE \\u0995\\u09CB\\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${o}, \\u09AA\\u09CD\\u09B0\\u09BE\\u09AA\\u09CD\\u09A4 ${s}`}case"invalid_value":return n.values.length===1?`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${I(n.values[0])}`:`\\u0985\\u09AC\\u09C8\\u09A7 \\u0985\\u09AA\\u09B6\\u09A8: ${_(n.values," | ")} \\u098F\\u09B0 \\u09AE\\u09A7\\u09CD\\u09AF\\u09C7 \\u098F\\u0995\\u099F\\u09BF \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${n.origin??"\\u09AE\\u09BE\\u09A8"} ${o}${n.maximum.toString()} ${a.unit??"\\u098F\\u09B2\\u09BF\\u09AE\\u09C7\\u09A8\\u09CD\\u099F"} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${n.origin??"\\u09AE\\u09BE\\u09A8"} ${o}${n.maximum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${n.origin} ${o}${n.minimum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${o.prefix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C1\\u09B0\\u09C1 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format==="ends_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${o.suffix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C7\\u09B7 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format==="includes"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${o.includes}" \\u0985\\u09A8\\u09CD\\u09A4\\u09B0\\u09CD\\u09AD\\u09C1\\u0995\\u09CD\\u09A4 \\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format==="regex"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: ${o.pattern} \\u09AA\\u09CD\\u09AF\\u09BE\\u099F\\u09BE\\u09B0\\u09CD\\u09A8 \\u09AE\\u09BF\\u09B2\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09AC\\u09C8\\u09A7 ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0: ${n.divisor} \\u098F\\u09B0 \\u0997\\u09C1\\u09A3\\u09BF\\u09A4\\u0995 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`;case"unrecognized_keys":return`\\u0985\\u099A\\u09C7\\u09A8\\u09BE \\u0995\\u09C0${n.keys.length>1?"\\u0997\\u09C1\\u09B2\\u09CB":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u0995\\u09C0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A1\\u09BF\\u09B8\\u0995\\u09CD\\u09B0\\u09BF\\u09AE\\u09BF\\u09A8\\u09C7\\u099F\\u09B0 \\u09AE\\u09BE\\u09A8\\u0964 \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F";case"invalid_element":return`${n.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u09AE\\u09BE\\u09A8`;default:return"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F"}}};function Mb(){return{localeError:lP()}}var uP=()=>{let e={string:{unit:"car\\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{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",mac:"adre\\xE7a MAC",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",credit_card:"n\\xFAmero de targeta de cr\\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\\xE0lid: s\'esperava instanceof ${n.expected}, s\'ha rebut ${s}`:`Tipus inv\\xE0lid: s\'esperava ${o}, s\'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\\xE0lid: s\'esperava ${I(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 qb(){return{localeError:uP()}}var dP=()=>{let e={string:{unit:"\\u067E\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},array:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},set:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},map:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"}};function t(n){return e[n]??null}let r={regex:"regex",email:"\\u0626\\u06CC\\u0645\\u06D5\\u06CC\\u06B5",url:"\\u0628\\u06D5\\u0633\\u062A\\u06D5\\u0631 (URL)",emoji:"\\u0626\\u06CC\\u0645\\u06C6\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A \\u0648 \\u06A9\\u0627\\u062A",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",time:"\\u06A9\\u0627\\u062A",duration:"\\u0645\\u0627\\u0648\\u06D5",ipv4:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv4",ipv6:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv6",mac:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC MAC",cidrv4:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv4",cidrv6:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv6",base64:"\\u062F\\u06D5\\u0642\\u06CC base64",base64url:"\\u062F\\u06D5\\u0642\\u06CC base64url",json_string:"\\u062F\\u06D5\\u0642\\u06CC JSON",e164:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC E.164",credit_card:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u06A9\\u0627\\u0631\\u062A\\u06CC \\u06A9\\u0631\\u06CE\\u062F\\u06CC\\u062A",currency_code:"\\u06A9\\u06C6\\u062F\\u06CC \\u062F\\u0631\\u0627\\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5"},i={nan:"NaN",string:"\\u0646\\u0648\\u0648\\u0633\\u06CC\\u0646",number:"\\u0698\\u0645\\u0627\\u0631\\u06D5",boolean:"boolean",array:"array",object:"object",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",integer:"\\u0698\\u0645\\u0627\\u0631\\u06D5",float:"\\u0698\\u0645\\u0627\\u0631\\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a,c=["\\u0627","\\u0648","\\u06C6","\\u0648\\u0648","\\u06D5","\\u06CC","\\u06CE"].some(u=>s.endsWith(u))?"\\u06CC\\u06D5":"\\u06D5",l=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\\u062F\\u0627\\u0648\\u0627\\u06A9\\u0631\\u0627\\u0648\\u06D5":`\\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${o} \\u0628\\u06CE\\u062A\\u060C \\u0628\\u06D5\\u06B5\\u0627\\u0645 ${s}${l?"":c}`}case"invalid_value":return n.values.length===1?`\\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0648\\u0633\\u062A\\u06D5: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${I(n.values[0])} \\u0628\\u06CE\\u062A`:`\\u0647\\u06D5\\u06B5\\u0628\\u0698\\u0627\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 \\u06CC\\u06D5\\u06A9\\u06CE\\u06A9 \\u0628\\u06CE\\u062A \\u0644\\u06D5 ${_(n.values,"|")}`;case"too_big":{let o=t(n.origin);return o?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${n.maximum.toString()} ${o.unit} ${o.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${n.maximum.toString()} \\u0628\\u06CE\\u062A`}case"too_small":{let o=t(n.origin);return o?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${n.minimum.toString()} ${o.unit} ${o.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${n.minimum.toString()} \\u0628\\u06CE\\u062A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u062F\\u06D5\\u0633\\u062A\\u067E\\u06CE\\u0628\\u06A9\\u0627\\u062A \\u0628\\u06D5 "${o.prefix}"`:o.format==="ends_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u06A9\\u06C6\\u062A\\u0627\\u06CC\\u06CC\\u0628\\u06CE\\u062A \\u0628\\u06D5 "${o.suffix}"`:o.format==="includes"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 "${o.includes}" \\u0644\\u06D5\\u062E\\u06C6\\u0628\\u06AF\\u0631\\u06CE\\u062A`:o.format==="regex"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0644\\u06D5\\u06AF\\u06D5\\u06B5 \\u067E\\u0627\\u062A\\u06CE\\u0631\\u0646\\u06CC ${o.pattern} \\u0628\\u06AF\\u0648\\u0646\\u062C\\u06CE\\u062A`:`\\u0628\\u06D5\\u0647\\u0627\\u06CC ${r[o.format]??n.format} \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`}case"not_multiple_of":return`\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u062F\\u06D5\\u0628\\u06CE\\u062A \\u0686\\u06D5\\u0646\\u062F \\u0647\\u06CE\\u0646\\u062F\\u06D5 \\u0628\\u06CE\\u062A \\u0628\\u06C6 ${n.divisor}`;case"unrecognized_keys":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648: ${_(n.keys,", ")}`;case"invalid_key":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A \\u0644\\u06D5 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648 \\u0647\\u06D5\\u06CC\\u06D5. \\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648: ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u06CC\\u06D5\\u06A9\\u06AF\\u0631\\u062A\\u0646\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A";case"invalid_element":return`${n.origin} \\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`;default:return"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A"}}};function Vb(){return{localeError:dP()}}var mP=()=>{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"},map:{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",mac:"MAC 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",credit_card:"\\u010D\\xEDslo kreditn\\xED karty",currency_code:"k\\xF3d m\\u011Bny",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no instanceof ${n.expected}, obdr\\u017Eeno ${s}`:`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${o}, obdr\\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${I(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 Zb(){return{localeError:mP()}}var pP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\\xE6rdi: forventede ${I(n.values[0])}`:`Ugyldigt valg: forventede en af f\\xF8lgende ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} 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 Fb(){return{localeError:pP()}}var fP=()=>{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"},map:{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",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\\xE4hrungscode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\\xFCltige Eingabe: erwartet ${I(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 Kb(){return{localeError:fP()}}var hP=()=>{let e={string:{unit:"\\u03C7\\u03B1\\u03C1\\u03B1\\u03BA\\u03C4\\u03AE\\u03C1\\u03B5\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},file:{unit:"bytes",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},array:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},set:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},map:{unit:"\\u03BA\\u03B1\\u03C4\\u03B1\\u03C7\\u03C9\\u03C1\\u03AE\\u03C3\\u03B5\\u03B9\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"}};function t(n){return e[n]??null}let r={regex:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2",email:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 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:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1 \\u03BA\\u03B1\\u03B9 \\u03CE\\u03C1\\u03B1",date:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1",time:"ISO \\u03CE\\u03C1\\u03B1",duration:"ISO \\u03B4\\u03B9\\u03AC\\u03C1\\u03BA\\u03B5\\u03B9\\u03B1",ipv4:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv4",ipv6:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv6",mac:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 MAC",cidrv4:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv4",cidrv6:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv6",base64:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64",base64url:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64url",json_string:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC JSON",e164:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 E.164",credit_card:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 \\u03C0\\u03B9\\u03C3\\u03C4\\u03C9\\u03C4\\u03B9\\u03BA\\u03AE\\u03C2 \\u03BA\\u03AC\\u03C1\\u03C4\\u03B1\\u03C2",currency_code:"\\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03CC\\u03C2 \\u03BD\\u03BF\\u03BC\\u03AF\\u03C3\\u03BC\\u03B1\\u03C4\\u03BF\\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD instanceof ${n.expected}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${o}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${I(n.values[0])}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03C0\\u03B9\\u03BB\\u03BF\\u03B3\\u03AE: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD \\u03AD\\u03BD\\u03B1 \\u03B1\\u03C0\\u03CC ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1"}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03BE\\u03B5\\u03BA\\u03B9\\u03BD\\u03AC \\u03BC\\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B5\\u03BB\\u03B5\\u03B9\\u03CE\\u03BD\\u03B5\\u03B9 \\u03BC\\u03B5 "${o.suffix}"`:o.format==="includes"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C0\\u03B5\\u03C1\\u03B9\\u03AD\\u03C7\\u03B5\\u03B9 "${o.includes}"`:o.format==="regex"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B1\\u03B9\\u03C1\\u03B9\\u03AC\\u03B6\\u03B5\\u03B9 \\u03BC\\u03B5 \\u03C4\\u03BF \\u03BC\\u03BF\\u03C4\\u03AF\\u03B2\\u03BF ${o.pattern}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF\\u03C2 \\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 \\u03C0\\u03BF\\u03BB\\u03BB\\u03B1\\u03C0\\u03BB\\u03AC\\u03C3\\u03B9\\u03BF \\u03C4\\u03BF\\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\\u0386\\u03B3\\u03BD\\u03C9\\u03C3\\u03C4${n.keys.length>1?"\\u03B1":"\\u03BF"} \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4${n.keys.length>1?"\\u03B9\\u03AC":"\\u03AF"}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4\\u03AF \\u03C3\\u03C4\\u03BF ${n.origin}`;case"invalid_union":return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2";case"invalid_element":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C4\\u03B9\\u03BC\\u03AE \\u03C3\\u03C4\\u03BF ${n.origin}`;default:return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"}}};function Bb(){return{localeError:hP()}}var gP=()=>{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(o){return e[o]??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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function n(o,a){return o==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let a=n(o.expected),s=T(o.input),c=n(s,o.input);return`Invalid input: expected ${a}, received ${c}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${I(o.values[0])}`:`Invalid option: expected one of ${_(o.values,"|")}`;case"too_big":{let a=o.exact?"exactly ":o.inclusive?"<=":"<",s=t(o.origin);return s?`Too big: expected ${o.origin??"value"} to have ${a}${o.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${a}${o.maximum.toString()}`}case"too_small":{let a=o.exact?"exactly ":o.inclusive?">=":">",s=t(o.origin);return s?`Too small: expected ${o.origin} to have ${a}${o.minimum.toString()} ${s.unit}`:`Too small: expected ${o.origin} to be ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${_(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`\'${s}\'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function ol(){return{localeError:gP()}}var vP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{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",mac:"MAC-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",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\\u011Dis instanceof ${n.expected}, ricevi\\u011Dis ${s}`:`Nevalida enigo: atendi\\u011Dis ${o}, ricevi\\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\\u011Dis ${I(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 Jb(){return{localeError:vP()}}var yP=()=>{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",mac:"direcci\\xF3n MAC",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",credit_card:"n\\xFAmero de tarjeta de cr\\xE9dito",currency_code:"c\\xF3digo de moneda",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\\xE1lida: se esperaba ${I(n.values[0])}`:`Opci\\xF3n inv\\xE1lida: se esperaba una de ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\\xF1o: se esperaba que ${s} 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 Hb(){return{localeError:yP()}}var SP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u06A9\\u0627\\u0631\\u062A \\u0627\\u0639\\u062A\\u0628\\u0627\\u0631\\u06CC",currency_code:"\\u06A9\\u062F \\u0627\\u0631\\u0632",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${I(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 Yb(){return{localeError:SP()}}var _P=()=>{let e={string:{unit:"merkki\\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},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",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\\xF6te: t\\xE4ytyy olla ${I(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 Gb(){return{localeError:_P()}}var bP=()=>{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:"expression r\\xE9guli\\xE8re",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",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64",base64url:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64url",json_string:"cha\\xEEne de caract\\xE8res JSON",e164:"num\\xE9ro au format E.164",credit_card:"num\\xE9ro de carte de cr\\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\\xE9e"},i={string:"cha\\xEEne de caract\\xE8res",number:"nombre",int:"entier",boolean:"bool\\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\\xE9e invalide : instance de ${n.expected} attendu, ${s} re\\xE7u`:`Entr\\xE9e invalide : ${o} attendu, ${s} re\\xE7u`}case"invalid_value":return n.values.length===1?`Entr\\xE9e invalide : ${I(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 : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\\xE9l\\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \\xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \\xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\\xEEne de caract\\xE8res invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\\xEEne de caract\\xE8res invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\\xEEne de caract\\xE8res invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\\xEEne de caract\\xE8res 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 Wb(){return{localeError:bP()}}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"},map:{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",mac:"adresse MAC",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",credit_card:"num\\xE9ro de carte de cr\\xE9dit",currency_code:"code de devise",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\\xE9e invalide : attendu instanceof ${n.expected}, re\\xE7u ${s}`:`Entr\\xE9e invalide : attendu ${o}, re\\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\\xE9e invalide : attendu ${I(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 Xb(){return{localeError:$P()}}var kP=()=>{let e={string:{unit:"\\u0A85\\u0A95\\u0ACD\\u0AB7\\u0AB0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},file:{unit:"\\u0AAC\\u0ABE\\u0AAF\\u0A9F",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},array:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},set:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},map:{unit:"\\u0A8F\\u0AA8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0AC0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"}};function t(n){return e[n]??null}let r={regex:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F",email:"\\u0A88\\u0AAE\\u0AC7\\u0A87\\u0AB2 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",url:"URL",emoji:"\\u0A87\\u0AAE\\u0ACB\\u0A9C\\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96 \\u0A85\\u0AA8\\u0AC7 \\u0AB8\\u0AAE\\u0AAF",date:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96",time:"ISO \\u0AB8\\u0AAE\\u0AAF",duration:"ISO \\u0A85\\u0AB5\\u0AA7\\u0ABF",ipv4:"IPv4 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",ipv6:"IPv6 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",mac:"MAC \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",cidrv4:"IPv4 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",cidrv6:"IPv6 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",base64:"base64-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",base64url:"base64url-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",json_string:"JSON \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",e164:"E.164 \\u0AA8\\u0A82\\u0AAC\\u0AB0",credit_card:"\\u0A95\\u0ACD\\u0AB0\\u0AC7\\u0AA1\\u0ABF\\u0A9F \\u0A95\\u0ABE\\u0AB0\\u0ACD\\u0AA1 \\u0AA8\\u0A82\\u0AAC\\u0AB0",currency_code:"\\u0A9A\\u0AB2\\u0AA3 \\u0A95\\u0ACB\\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${o}, \\u0AAA\\u0ACD\\u0AB0\\u0ABE\\u0AAA\\u0ACD\\u0AA4 ${s}`}case"invalid_value":return n.values.length===1?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${I(n.values[0])}`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB5\\u0ABF\\u0A95\\u0AB2\\u0ACD\\u0AAA: ${_(n.values," | ")} \\u0AAE\\u0ABE\\u0AA7\\u0ACD\\u0AAF\\u0AAE\\u0AA5\\u0AC0 \\u0A8F\\u0A95 \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${n.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${o}${n.maximum.toString()} ${a.unit??"\\u0A8F\\u0AB2\\u0ABF\\u0AAE\\u0AC7\\u0AA8\\u0ACD\\u0A9F"} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${n.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${o}${n.maximum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${n.origin} ${o}${n.minimum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${o.prefix}" \\u0AA5\\u0AC0 \\u0AB6\\u0AB0\\u0AC2 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format==="ends_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${o.suffix}" \\u0AAA\\u0AB0 \\u0AB8\\u0AAE\\u0ABE\\u0AAA\\u0ACD\\u0AA4 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format==="includes"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${o.includes}" \\u0AB6\\u0ABE\\u0AAE\\u0AC7\\u0AB2 \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format==="regex"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \\u0AAA\\u0AC7\\u0A9F\\u0AB0\\u0ACD\\u0AA8 ${o.pattern} \\u0AB8\\u0ABE\\u0AA5\\u0AC7 \\u0AAE\\u0AC7\\u0AB3 \\u0A96\\u0ABE\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA8\\u0A82\\u0AAC\\u0AB0: ${n.divisor} \\u0AA8\\u0ACB \\u0A97\\u0AC1\\u0AA3\\u0ABE\\u0A82\\u0A95 \\u0AB9\\u0ACB\\u0AB5\\u0ACB \\u0A9C\\u0ACB\\u0A88\\u0A8F`;case"unrecognized_keys":return`\\u0A93\\u0AB3\\u0A96\\u0AC0 \\u0AB6\\u0A95\\u0ABE\\u0AA4\\u0ABE \\u0AA8\\u0AB9\\u0AC0\\u0A82 \\u0AA4\\u0AC7 \\u0A95\\u0AC0${n.keys.length>1?"\\u0A93":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A95\\u0AC0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA1\\u0ABF\\u0AB8\\u0ACD\\u0A95\\u0ACD\\u0AB0\\u0ABF\\u0AAE\\u0ABF\\u0AA8\\u0AC7\\u0A9F\\u0AB0 \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF. \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F";case"invalid_element":return`${n.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF`;default:return"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"}}};function Qb(){return{localeError:kP()}}var RP=()=>{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 u=r(l);return u?u.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,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"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",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"},mac:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA MAC",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"},credit_card:{label:"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DB\\u05E8\\u05D8\\u05D9\\u05E1 \\u05D0\\u05E9\\u05E8\\u05D0\\u05D9",gender:"m"},currency_code:{label:"\\u05E7\\u05D5\\u05D3 \\u05DE\\u05D8\\u05D1\\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\\u05E7\\u05DC\\u05D8",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 u=l.expected,m=c[u??""]??i(u),p=T(l.input),f=c[p]??e[p]?.label??p;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 ${f}`:`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${m}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${f}`}case"invalid_value":{if(l.values.length===1)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05E2\\u05E8\\u05DA \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${I(l.values[0])}`;let u=l.values.map(f=>I(f));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 ${u[0]} \\u05D0\\u05D5 ${u[1]}`;let m=u[u.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 ${u.slice(0,-1).join(", ")} \\u05D0\\u05D5 ${m}`}case"too_big":{let u=a(l.origin),m=n(l.origin??"value");if(l.origin==="string")return`${u?.longLabel??"\\u05D0\\u05E8\\u05D5\\u05DA"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.maximum.toString()} ${u?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA":"\\u05DC\\u05DB\\u05DC \\u05D4\\u05D9\\u05D5\\u05EA\\u05E8"}`.trim();if(l.origin==="number"){let h=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: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA",v=l.inclusive?`${l.maximum} ${u?.unit??""} \\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA`:`\\u05E4\\u05D7\\u05D5\\u05EA \\u05DE-${l.maximum} ${u?.unit??""}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${v}`.trim()}let p=l.inclusive?"<=":"<",f=o(l.origin??"value");return u?.unit?`${u.longLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\\u05D2\\u05D3\\u05D5\\u05DC"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()}`}case"too_small":{let u=a(l.origin),m=n(l.origin??"value");if(l.origin==="string")return`${u?.shortLabel??"\\u05E7\\u05E6\\u05E8"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.minimum.toString()} ${u?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8":"\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA"}`.trim();if(l.origin==="number"){let h=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: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA";if(l.minimum===1&&l.inclusive){let y=(l.origin==="set","\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA \\u05E4\\u05E8\\u05D9\\u05D8 \\u05D0\\u05D7\\u05D3");return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${y}`}let v=l.inclusive?`${l.minimum} ${u?.unit??""} \\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8`:`\\u05D9\\u05D5\\u05EA\\u05E8 \\u05DE-${l.minimum} ${u?.unit??""}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${v}`.trim()}let p=l.inclusive?">=":">",f=o(l.origin??"value");return u?.unit?`${u.shortLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\\u05E7\\u05D8\\u05DF"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()}`}case"invalid_format":{let u=l;if(u.format==="starts_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 "${u.suffix}"`;if(u.format==="includes")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let m=s[u.format],p=m?.label??u.format,h=(m?.gender??"m")==="f"?"\\u05EA\\u05E7\\u05D9\\u05E0\\u05D4":"\\u05EA\\u05E7\\u05D9\\u05DF";return`${p} \\u05DC\\u05D0 ${h}`}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 e$(){return{localeError:RP()}}var wP=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},file:{unit:"\\u092C\\u093E\\u0907\\u091F\\u094D\\u0938",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F\\u092F\\u093E\\u0901",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"}};function t(n){return e[n]??null}let r={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0908\\u092E\\u0947\\u0932 \\u092A\\u0924\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0924\\u093F\\u0925\\u093F \\u0914\\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u0924\\u093F\\u0925\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u092A\\u0924\\u093E",ipv6:"IPv6 \\u092A\\u0924\\u093E",mac:"MAC \\u092A\\u0924\\u093E",cidrv4:"IPv4 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",cidrv6:"IPv6 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",base64:"Base64-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",base64url:"Base64URL-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",e164:"E.164 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",currency_code:"\\u092E\\u0941\\u0926\\u094D\\u0930\\u093E \\u0915\\u094B\\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${o}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return n.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${I(n.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u094B\\u0902 \\u092E\\u0947\\u0902 \\u0938\\u0947 \\u090F\\u0915 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u0947\\u0902 ${o}${n.maximum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin??"\\u092E\\u093E\\u0928"} ${o}${n.maximum} \\u0939\\u094B`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin} \\u092E\\u0947\\u0902 ${o}${n.minimum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin} ${o}${n.minimum} \\u0939\\u094B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${o.prefix}" \\u0938\\u0947 \\u0936\\u0941\\u0930\\u0942 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${o.suffix}" \\u092A\\u0930 \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u0907\\u0938\\u092E\\u0947\\u0902 "${o.includes}" \\u0936\\u093E\\u092E\\u093F\\u0932 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u092A\\u0948\\u091F\\u0930\\u094D\\u0928 ${o.pattern} \\u0938\\u0947 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: \\u092F\\u0939 ${n.divisor} \\u0915\\u093E \\u0917\\u0941\\u0923\\u091C \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u0902\\u091C\\u0940${n.keys.length>1?"\\u092F\\u093E\\u0901":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u0902\\u091C\\u0940: ${n.origin} \\u092E\\u0947\\u0902`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${n.origin} \\u092E\\u0947\\u0902`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function t$(){return{localeError:wP()}}var zP=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\\u010Dekivano ${I(n.values[0])}`:`Neispravna opcija: o\\u010Dekivano jedno od ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\\u010Dekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\\u010Devi":" klju\\u010D"}: ${_(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function n$(){return{localeError:zP()}}var IP=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{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",mac:"MAC 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",credit_card:"hitelk\\xE1rtyasz\\xE1m",currency_code:"p\\xE9nznemk\\xF3d",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k instanceof ${n.expected}, a kapott \\xE9rt\\xE9k ${s}`:`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${o}, a kapott \\xE9rt\\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${I(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 r$(){return{localeError:IP()}}function i$(e,t,r){return Math.abs(e)===1?t:r}function ki(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 TP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u056F\\u0580\\u0565\\u0564\\u056B\\u057F \\u0584\\u0561\\u0580\\u057F\\u056B \\u0570\\u0561\\u0574\\u0561\\u0580",currency_code:"\\u0561\\u0580\\u056A\\u0578\\u0582\\u0575\\u0569\\u056B \\u056F\\u0578\\u0564",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 s=Number(n.maximum),c=i$(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 ${ki(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 ${ki(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 s=Number(n.minimum),c=i$(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 ${ki(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 ${ki(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 ${ki(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 ${ki(n.origin)}-\\u0578\\u0582\\u0574`;default:return"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574"}}};function o$(){return{localeError:TP()}}var xP=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{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",mac:"alamat MAC",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",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${I(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 a$(){return{localeError:xP()}}var EP=()=>{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"},map:{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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\\xF6lugildi",credit_card:"kreditkortan\\xFAmer",currency_code:"gjaldmi\\xF0ilsk\\xF3\\xF0i",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\\xE1\\xF0 fyrir ${I(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 s$(){return{localeError:EP()}}var PP=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{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",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${I(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}`:`Input non valido: ${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 c$(){return{localeError:PP()}}var OP=()=>{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"},map:{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",mac:"MAC\\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",credit_card:"\\u30AF\\u30EC\\u30B8\\u30C3\\u30C8\\u30AB\\u30FC\\u30C9\\u756A\\u53F7",currency_code:"\\u901A\\u8CA8\\u30B3\\u30FC\\u30C9",iban:"IBAN",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=T(n.input),s=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${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 n.values.length===1?`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${I(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 l$(){return{localeError:OP()}}var CP=()=>{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"},map:{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",mac:"MAC \\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 \\u10D5\\u10D4\\u10DA\\u10D8",base64url:"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8",json_string:"JSON \\u10D5\\u10D4\\u10DA\\u10D8",e164:"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",credit_card:"\\u10E1\\u10D0\\u10D9\\u10E0\\u10D4\\u10D3\\u10D8\\u10E2\\u10DD \\u10D1\\u10D0\\u10E0\\u10D0\\u10D7\\u10D8\\u10E1 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",currency_code:"\\u10D5\\u10D0\\u10DA\\u10E3\\u10E2\\u10D8\\u10E1 \\u10D9\\u10DD\\u10D3\\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"},i={nan:"NaN",number:"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8",string:"\\u10D5\\u10D4\\u10DA\\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=T(n.input),s=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 ${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 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 ${I(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 \\u10D5\\u10D4\\u10DA\\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 \\u10D5\\u10D4\\u10DA\\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 \\u10D5\\u10D4\\u10DA\\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 \\u10D5\\u10D4\\u10DA\\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 u$(){return{localeError:CP()}}var NP=()=>{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"},map:{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",mac:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 MAC",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",credit_card:"\\u179B\\u17C1\\u1781\\u1794\\u17D0\\u178E\\u17D2\\u178E\\u17A5\\u178E\\u1791\\u17B6\\u1793",currency_code:"\\u1780\\u17BC\\u178A\\u179A\\u17BC\\u1794\\u17B7\\u1799\\u1794\\u17D0\\u178E\\u17D2\\u178E",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 al(){return{localeError:NP()}}function d$(){return al()}var AP=()=>{let e={string:{unit:"\\u0C85\\u0C95\\u0CCD\\u0CB7\\u0CB0\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},file:{unit:"\\u0CAC\\u0CC8\\u0C9F\\u0CCD\\u200C\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},array:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},set:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},map:{unit:"entries",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"}};function t(n){return e[n]??null}let r={regex:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD",email:"email \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",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 \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95\\u0CA6 \\u0CB8\\u0CAE\\u0CAF",date:"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95",time:"ISO \\u0CB8\\u0CAE\\u0CAF",duration:"ISO \\u0C85\\u0CB5\\u0CA7\\u0CBF",ipv4:"IPv4 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",ipv6:"IPv6 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",mac:"MAC \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",cidrv4:"IPv4 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",cidrv6:"IPv6 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",base64:"base64-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",base64url:"base64url-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",json_string:"JSON\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",e164:"E.164 \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",credit_card:"\\u0C95\\u0CCD\\u0CB0\\u0CC6\\u0CA1\\u0CBF\\u0C9F\\u0CCD \\u0C95\\u0CBE\\u0CB0\\u0CCD\\u0CA1\\u0CCD \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",currency_code:"\\u0C95\\u0CB0\\u0CC6\\u0CA8\\u0CCD\\u0CB8\\u0CBF \\u0C95\\u0CCB\\u0CA1\\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${o}, \\u0CB8\\u0CCD\\u0CB5\\u0CC0\\u0C95\\u0CB0\\u0CBF\\u0CB8\\u0CBF\\u0CA6\\u0CA8\\u0CC1 ${s}`}case"invalid_value":return n.values.length===1?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${I(n.values[0])}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C86\\u0CAF\\u0CCD\\u0C95\\u0CC6: \\u0C87\\u0CB5\\u0CC1\\u0C97\\u0CB3\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C92\\u0C82\\u0CA6\\u0CA8\\u0CCD\\u0CA8\\u0CC1 \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin??"value"} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${o}${n.maximum.toString()} ${a.unit??"\\u0C85\\u0C82\\u0CB6\\u0C97\\u0CB3\\u0CC1"}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin??"value"} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${o}${n.minimum.toString()} ${a.unit}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0CAA\\u0CCD\\u0CB0\\u0CBE\\u0CB0\\u0C82\\u0CAD\\u0CBF\\u0CB8\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${o.prefix}"`:o.format==="ends_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0C95\\u0CCA\\u0CA8\\u0CC6\\u0C97\\u0CCA\\u0CB3\\u0CCD\\u0CB3\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${o.suffix}"`:o.format==="includes"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C92\\u0CB3\\u0C97\\u0CCA\\u0C82\\u0CA1\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${o.includes}"`:o.format==="regex"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0CAE\\u0CBE\\u0CA6\\u0CB0\\u0CBF\\u0C97\\u0CC6 \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C95\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${o.pattern}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6: \\u0CAC\\u0CB9\\u0CC1\\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${n.divisor}`;case"unrecognized_keys":return`\\u0C97\\u0CC1\\u0CB0\\u0CC1\\u0CA4\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CA6 \\u0C95\\u0CC0 ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0C95\\u0CC0 \\u0C87\\u0CA8\\u0CCD ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CA4\\u0CBE\\u0CB0\\u0CA4\\u0CAE\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF. \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD";case"invalid_element":return`\\u0CB0\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF ${n.origin}`;default:return"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD"}}};function m$(){return{localeError:AP()}}var jP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\uC2E0\\uC6A9\\uCE74\\uB4DC \\uBC88\\uD638",currency_code:"\\uD1B5\\uD654 \\uCF54\\uB4DC",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ${I(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",s=t(n.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${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",s=t(n.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${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 p$(){return{localeError:jP()}}var Ra=e=>e.charAt(0).toUpperCase()+e.slice(1);function f$(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 UP=()=>{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,s){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][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",mac:"MAC 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",credit_card:"kredito kortel\\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\\u016Bti ${I(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,f$(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Ra(o??n.origin??"reik\\u0161m\\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\\u017Eesnis kaip";return`${Ra(o??n.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,f$(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Ra(o??n.origin??"reik\\u0161m\\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\\u0173"}`;let s=n.inclusive?"ne ma\\u017Eesnis kaip":"didesnis kaip";return`${Ra(o??n.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${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`${Ra(o??n.origin??"reik\\u0161m\\u0117")} turi klaiding\\u0105 \\u012Fvest\\u012F`}default:return"Klaidinga \\u012Fvestis"}}};function h$(){return{localeError:UP()}}var LP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u0431\\u0440\\u043E\\u0458 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0438\\u0447\\u043A\\u0430",currency_code:"\\u043A\\u043E\\u0434 \\u043D\\u0430 \\u0432\\u0430\\u043B\\u0443\\u0442\\u0430",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`Invalid input: expected ${I(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 g$(){return{localeError:LP()}}var DP=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{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",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${I(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 v$(){return{localeError:DP()}}var MP=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},file:{unit:"\\u092C\\u093E\\u0907\\u091F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"}};function t(n){return e[n]??null}let r={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0907\\u092E\\u0947\\u0932 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u092E\\u093F\\u0924\\u093F \\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u092E\\u093F\\u0924\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",ipv6:"IPv6 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",mac:"MAC \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",cidrv4:"IPv4 \\u0926\\u093E\\u092F\\u0930\\u093E",cidrv6:"IPv6 \\u0926\\u093E\\u092F\\u0930\\u093E",base64:"base64-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",base64url:"base64url-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",e164:"E.164 \\u0928\\u092E\\u094D\\u092C\\u0930",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0928\\u092E\\u094D\\u092C\\u0930",currency_code:"\\u092E\\u0941\\u0926\\u094D\\u0930\\u093E \\u0915\\u094B\\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${o}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return n.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${I(n.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u0939\\u0930\\u0942 \\u092E\\u0927\\u094D\\u092F\\u0947 \\u090F\\u0915 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${n.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u093E ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${n.origin??"\\u092E\\u093E\\u0928"} ${o}${n.maximum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${n.origin} \\u092E\\u093E ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${n.origin} ${o}${n.minimum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${o.prefix}" \\u092C\\u093E\\u091F \\u0938\\u0941\\u0930\\u0941 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${o.suffix}" \\u092E\\u093E \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${o.includes}" \\u0938\\u092E\\u093E\\u0935\\u0947\\u0936 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \\u0922\\u093E\\u0901\\u091A\\u093E ${o.pattern} \\u0938\\u0901\\u0917 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: ${n.divisor} \\u0915\\u094B \\u0917\\u0941\\u0923\\u091C \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940${n.keys.length>1?"\\u0939\\u0930\\u0942":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940: ${n.origin} \\u092E\\u093E`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${n.origin} \\u092E\\u093E`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function y$(){return{localeError:MP()}}var qP=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{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",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${I(n.values[0])}`:`Ongeldige optie: verwacht \\xE9\\xE9n van ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: 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 S$(){return{localeError:qP()}}var VP=()=>{let e={string:{unit:"teikn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"element",verb:"\\xE5 innehalde"},set:{unit:"element",verb:"\\xE5 innehalde"},map:{unit:"element",verb:"\\xE5 innehalde"}};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-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tal",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${s}`:`Ugyldig input: forventa ${o}, fekk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventa ${I(n.values[0])}`:`Ugyldig val: forventa eitt av ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventa ${n.origin??"value"} til \\xE5 ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${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): forventa ${n.origin} til \\xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${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 slutte med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\\xE5 innehalde "${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 tal: m\\xE5 vere eit multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjende n\\xF8klar":"Ukjend 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 _$(){return{localeError:VP()}}var ZP=()=>{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"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${I(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 b$(){return{localeError:ZP()}}var FP=()=>{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"},map:{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",mac:"MAC 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",credit_card:"i\'tib\\xE2r kart\\u0131 numaras\\u0131",currency_code:"para birimi kodu",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\\xE2sit giren: umulan instanceof ${n.expected}, al\\u0131nan ${s}`:`F\\xE2sit giren: umulan ${o}, al\\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\\xE2sit giren: umulan ${I(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 $$(){return{localeError:FP()}}var KP=()=>{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"},map:{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",mac:"\\u062F MAC \\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",credit_card:"\\u062F \\u06A9\\u0631\\u06CC\\u0689\\u06CC\\u067C \\u06A9\\u0627\\u0631\\u062A \\u0634\\u0645\\u06CC\\u0631\\u0647",currency_code:"\\u062F \\u0627\\u0633\\u0639\\u0627\\u0631\\u0648 \\u06A9\\u0648\\u0689",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${I(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 k$(){return{localeError:KP()}}var BP=()=>{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"},map:{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",mac:"adres MAC",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",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${I(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 R$(){return{localeError:BP()}}var JP=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let r={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"o intervalo de endere\\xE7os IPv4",cidrv6:"o intervalo de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",currency_code:"o c\\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\\xFAmero",articles:i.masculine},int:{name:"n\\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\\xFAmero bigint",articles:i.masculine},symbol:{name:"s\\xEDmbolo",articles:i.masculine},undefined:{name:\'valor "undefined"\',articles:i.masculine},null:{name:\'valor "nulo"\',articles:i.masculine},never:{name:\'valor "never"\',articles:i.masculine},void:{name:\'valor "void"\',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tuplo",articles:i.masculine},record:{name:"registo",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"ficheiro",articles:i.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:i.masculine},nan:{name:\'valor "NaN"\',articles:i.masculine},function:{name:"fun\\xE7\\xE3o",articles:i.feminine}};function o(a,s){let c=n[a]??{name:`valor "${a}"`,articles:i.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),c=T(a.input),l=o(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${I(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Demasiado grande: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Demasiado pequeno: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function w$(){return{localeError:JP()}}var HP=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let r={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"a faixa de endere\\xE7os IPv4",cidrv6:"a faixa de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",currency_code:"o c\\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\\xFAmero",articles:i.masculine},int:{name:"n\\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\\xFAmero bigint",articles:i.masculine},symbol:{name:"s\\xEDmbolo",articles:i.masculine},undefined:{name:\'valor "undefined"\',articles:i.masculine},null:{name:\'valor "nulo"\',articles:i.masculine},never:{name:\'valor "never"\',articles:i.masculine},void:{name:\'valor "void"\',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tupla",articles:i.feminine},record:{name:"registro",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"arquivo",articles:i.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:i.masculine},nan:{name:\'valor "NaN"\',articles:i.masculine},function:{name:"fun\\xE7\\xE3o",articles:i.feminine}};function o(a,s){let c=n[a]??{name:`valor "${a}"`,articles:i.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),c=T(a.input),l=o(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${I(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Grande demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Pequeno demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function z$(){return{localeError:HP()}}var YP=()=>{let e={string:{unit:"caractere",verb:"s\\u0103 aib\\u0103"},file:{unit:"octe\\u021Bi",verb:"s\\u0103 aib\\u0103"},array:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},set:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},map:{unit:"intr\\u0103ri",verb:"s\\u0103 aib\\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\\u0103 de 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:"dat\\u0103 \\u0219i or\\u0103 ISO",date:"dat\\u0103 ISO",time:"or\\u0103 ISO",duration:"durat\\u0103 ISO",ipv4:"adres\\u0103 IPv4",ipv6:"adres\\u0103 IPv6",mac:"adres\\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\\u0219ir codat base64",base64url:"\\u0219ir codat base64url",json_string:"\\u0219ir JSON",e164:"num\\u0103r E.164",credit_card:"num\\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\\u0219ir",number:"num\\u0103r",boolean:"boolean",function:"func\\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\\u0103r mare",void:"void",never:"never",map:"hart\\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`Intrare invalid\\u0103: a\\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\\u0103: a\\u0219teptat ${I(n.values[0])}`:`Op\\u021Biune invalid\\u0103: a\\u0219teptat una dintre ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\\u0219teptat ca ${n.origin??"valoarea"} s\\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\\u0219teptat ca ${n.origin} s\\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0218ir invalid: trebuie s\\u0103 \\xEEnceap\\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\\u0218ir invalid: trebuie s\\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\\u0218ir invalid: trebuie s\\u0103 includ\\u0103 "${o.includes}"`:o.format==="regex"?`\\u0218ir invalid: trebuie s\\u0103 se potriveasc\\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\\u0103r invalid: trebuie s\\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${_(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\\u0103 \\xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\\u0103";case"invalid_element":return`Valoare invalid\\u0103 \\xEEn ${n.origin}`;default:return"Intrare invalid\\u0103"}}};function I$(){return{localeError:YP()}}function T$(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 GP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",currency_code:"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u044B",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 s=Number(n.maximum),c=T$(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 ${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 s=Number(n.minimum),c=T$(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 ${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 x$(){return{localeError:GP()}}var WP=()=>{let e={string:{unit:"znakov",verb:"ma\\u0165"},file:{unit:"bajtov",verb:"ma\\u0165"},array:{unit:"prvkov",verb:"ma\\u0165"},set:{unit:"prvkov",verb:"ma\\u0165"},map:{unit:"polo\\u017Eiek",verb:"ma\\u0165"}};function t(n){return e[n]??null}let r={regex:"regul\\xE1rny 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:"d\\xE1tum a \\u010Das vo form\\xE1te ISO",date:"d\\xE1tum vo form\\xE1te ISO",time:"\\u010Das vo form\\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64",base64url:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64url",json_string:"re\\u0165azec vo form\\xE1te JSON",e164:"\\u010D\\xEDslo E.164",credit_card:"\\u010D\\xEDslo kreditnej karty",currency_code:"k\\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\\u010D\\xEDslo",string:"re\\u0165azec",function:"funkcia",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 instanceof ${n.expected}, obdr\\u017Ean\\xE9 ${s}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${o}, obdr\\u017Ean\\xE9 ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${I(n.values[0])}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE1 jedna z hodn\\xF4t ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${n.origin??"hodnota"} mus\\xED ma\\u0165 ${o}${n.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${n.origin??"hodnota"} mus\\xED by\\u0165 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${n.origin??"hodnota"} mus\\xED ma\\u0165 ${o}${n.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${n.origin??"hodnota"} mus\\xED by\\u0165 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED za\\u010D\\xEDna\\u0165 na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED kon\\u010Di\\u0165 na "${o.suffix}"`:o.format==="includes"?`Neplatn\\xFD re\\u0165azec: mus\\xED obsahova\\u0165 "${o.includes}"`:o.format==="regex"?`Neplatn\\xFD re\\u0165azec: mus\\xED zodpoveda\\u0165 vzoru ${o.pattern}`:`Neplatn\\xFD form\\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED by\\u0165 n\\xE1sobkom ${n.divisor}`;case"unrecognized_keys":return`Nezn\\xE1me kl\\xFA\\u010De: ${_(n.keys,", ")}`;case"invalid_key":return`Neplatn\\xFD kl\\xFA\\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 E$(){return{localeError:WP()}}var XP=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{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",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \\u0161tevilka",credit_card:"\\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\\u010Dakovano ${I(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 P$(){return{localeError:XP()}}var QP=()=>{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"},map:{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-adress",ipv6:"IPv6-adress",mac:"MAC-adress",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",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\\xF6rv\\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${I(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 O$(){return{localeError:QP()}}var e0=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u0B95\\u0B9F\\u0BA9\\u0BCD \\u0B85\\u0B9F\\u0BCD\\u0B9F\\u0BC8 \\u0B8E\\u0BA3\\u0BCD",currency_code:"\\u0BA8\\u0BBE\\u0BA3\\u0BAF\\u0B95\\u0BCD \\u0B95\\u0BC1\\u0BB1\\u0BBF\\u0BAF\\u0BC0\\u0B9F\\u0BC1",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 C$(){return{localeError:e0()}}var t0=()=>{let e={string:{unit:"\\u0430\\u043B\\u043E\\u043C\\u0430\\u0442",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},file:{unit:"\\u0431\\u0430\\u0439\\u0442",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},array:{unit:"\\u0443\\u043D\\u0441\\u0443\\u0440",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},set:{unit:"\\u0443\\u043D\\u0441\\u0443\\u0440",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},map:{unit:"\\u0441\\u0430\\u0431\\u0442",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"}};function t(n){return e[n]??null}let r={regex:"\\u0432\\u0443\\u0440\\u0443\\u0434",email:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 email",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u04B7\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0441\\u0430\\u043D\\u0430\\u0432\\u0443 \\u0432\\u0430\\u049B\\u0442\\u0438 ISO",date:"\\u0441\\u0430\\u043D\\u0430\\u0438 ISO",time:"\\u0432\\u0430\\u049B\\u0442\\u0438 ISO",duration:"\\u0434\\u0430\\u0432\\u043E\\u043C\\u043D\\u043E\\u043A\\u0438\\u0438 ISO",ipv4:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 IPv4",ipv6:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 IPv6",mac:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 MAC",cidrv4:"\\u043C\\u0430\\u04B3\\u0434\\u0443\\u0434\\u0430\\u0438 IPv4",cidrv6:"\\u043C\\u0430\\u04B3\\u0434\\u0443\\u0434\\u0430\\u0438 IPv6",base64:"\\u0441\\u0430\\u0442\\u0440\\u0438 \\u0434\\u0430\\u0440 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0438 base64",base64url:"\\u0441\\u0430\\u0442\\u0440\\u0438 \\u0434\\u0430\\u0440 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0438 base64url",json_string:"\\u0441\\u0430\\u0442\\u0440\\u0438 JSON",e164:"\\u0440\\u0430\\u049B\\u0430\\u043C\\u0438 E.164",credit_card:"\\u0440\\u0430\\u049B\\u0430\\u043C\\u0438 \\u043A\\u043E\\u0440\\u0442\\u0438 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u04E3",currency_code:"\\u0440\\u0430\\u043C\\u0437\\u0438 \\u0430\\u0441\\u044A\\u043E\\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\\u0432\\u0443\\u0440\\u0443\\u0434"},i={nan:"NaN",number:"\\u0440\\u0430\\u049B\\u0430\\u043C",string:"\\u0441\\u0430\\u0442\\u0440",array:"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432",object:"\\u043E\\u0431\\u044A\\u0435\\u043A\\u0442",date:"\\u0441\\u0430\\u043D\\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: ${o} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442, ${s} \\u0433\\u0438\\u0440\\u0438\\u0444\\u0442\\u0430 \\u0448\\u0443\\u0434`}case"invalid_value":return n.values.length===1?`\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: ${I(n.values[0])} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`:`\\u0418\\u043D\\u0442\\u0438\\u0445\\u043E\\u0431\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u044F\\u043A\\u0435 \\u0430\\u0437 ${_(n.values,"|")} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0425\\u0435\\u043B\\u0435 \\u043A\\u0430\\u043B\\u043E\\u043D: ${n.origin??"\\u049B\\u0438\\u043C\\u0430\\u0442"} \\u0431\\u043E\\u044F\\u0434 ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`\\u0425\\u0435\\u043B\\u0435 \\u043A\\u0430\\u043B\\u043E\\u043D: ${n.origin??"\\u049B\\u0438\\u043C\\u0430\\u0442"} \\u0431\\u043E\\u044F\\u0434 ${o}${n.maximum.toString()} \\u0431\\u043E\\u0448\\u0430\\u0434`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0425\\u0435\\u043B\\u0435 \\u0445\\u0443\\u0440\\u0434: ${n.origin} \\u0431\\u043E\\u044F\\u0434 ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`\\u0425\\u0435\\u043B\\u0435 \\u0445\\u0443\\u0440\\u0434: ${n.origin} \\u0431\\u043E\\u044F\\u0434 ${o}${n.minimum.toString()} \\u0431\\u043E\\u0448\\u0430\\u0434`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u043E "${o.prefix}" \\u043E\\u0493\\u043E\\u0437 \\u0448\\u0430\\u0432\\u0430\\u0434`:o.format==="ends_with"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u043E "${o.suffix}" \\u0430\\u043D\\u04B7\\u043E\\u043C \\u0451\\u0431\\u0430\\u0434`:o.format==="includes"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 "${o.includes}"-\\u0440\\u043E \\u0434\\u0430\\u0440 \\u0431\\u0430\\u0440 \\u0433\\u0438\\u0440\\u0430\\u0434`:o.format==="regex"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u0430 \\u043D\\u0430\\u043C\\u0443\\u043D\\u0430\\u0438 ${o.pattern} \\u043C\\u0443\\u0432\\u043E\\u0444\\u0438\\u049B\\u0430\\u0442 \\u043A\\u0443\\u043D\\u0430\\u0434`:`${r[o.format]??n.format}-\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442`}case"not_multiple_of":return`\\u0420\\u0430\\u049B\\u0430\\u043C\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u0430 ${n.divisor} \\u0431\\u0435 \\u0431\\u0430\\u049B\\u0438\\u044F \\u0442\\u0430\\u049B\\u0441\\u0438\\u043C \\u0448\\u0430\\u0432\\u0430\\u0434`;case"unrecognized_keys":return`\\u041A\\u0430\\u043B\\u0438\\u0434${n.keys.length>1?"\\u04B3\\u043E\\u0438":"\\u0438"} \\u043D\\u043E\\u043C\\u0430\\u044A\\u043B\\u0443\\u043C: ${_(n.keys,", ")}`;case"invalid_key":return`\\u041A\\u0430\\u043B\\u0438\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442 \\u0434\\u0430\\u0440 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u049A\\u0438\\u043C\\u0430\\u0442\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442\\u0438 \\u0434\\u0438\\u0441\\u043A\\u0440\\u0438\\u043C\\u0438\\u043D\\u0430\\u0442\\u043E\\u0440: ${n.options.map(a=>`\'${a}\'`).join(" | ")} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`:"\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442";case"invalid_element":return`\\u049A\\u0438\\u043C\\u0430\\u0442\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442 \\u0434\\u0430\\u0440 ${n.origin}`;default:return"\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442"}}};function N$(){return{localeError:t0()}}var n0=()=>{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"},map:{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",mac:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 MAC",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)",credit_card:"\\u0E2B\\u0E21\\u0E32\\u0E22\\u0E40\\u0E25\\u0E02\\u0E1A\\u0E31\\u0E15\\u0E23\\u0E40\\u0E04\\u0E23\\u0E14\\u0E34\\u0E15",currency_code:"\\u0E23\\u0E2B\\u0E31\\u0E2A\\u0E2A\\u0E01\\u0E38\\u0E25\\u0E40\\u0E07\\u0E34\\u0E19",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${I(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 A$(){return{localeError:n0()}}var r0=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(n){return e[n]??null}let r={regex:"giri\\u015F",email:"e-po\\xE7ta salgysy",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 sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \\u015Fifrlenen setir",base64url:"base64url bilen \\u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\\u0148 nomeri",currency_code:"wal\\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\\u015Fablon"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`N\\xE4dogry baha: gara\\u015Fylan ${o} \\xFDerine ${s} alyndy`}case"invalid_value":return n.values.length===1?`N\\xE4dogry baha: ${I(n.values[0])} bolmaly`:`N\\xE4dogry sa\\xFDlaw: a\\u015Fakdakylardan biri bolmaly: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Has uly: gara\\u015Fyl\\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\\u015Fyl\\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`N\\xE4dogry setir: "${o.prefix}" bilen ba\\u015Flamaly`:o.format==="ends_with"?`N\\xE4dogry setir: "${o.suffix}" bilen gutarmaly`:o.format==="includes"?`N\\xE4dogry setir: "${o.includes}" saklamaly`:o.format==="regex"?`N\\xE4dogry setir: ${o.pattern} nusga la\\xFDyk bolmaly`:`N\\xE4dogry ${r[o.format]??n.format}`}case"not_multiple_of":return`N\\xE4dogry san: ${n.divisor} bilen galyndysyz b\\xF6l\\xFCnmeli`;case"unrecognized_keys":return`Tanalma\\xFDan a\\xE7ar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\\xE7inde n\\xE4dogry a\\xE7ar`;case"invalid_union":return"N\\xE4dogry baha";case"invalid_element":return`${n.origin} i\\xE7inde n\\xE4dogry baha`;default:return"N\\xE4dogry baha"}}};function j$(){return{localeError:r0()}}var i0=()=>{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"},map:{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",mac:"MAC 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",credit_card:"kredi kart\\u0131 numaras\\u0131",currency_code:"para birimi kodu",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\\xE7ersiz de\\u011Fer: beklenen instanceof ${n.expected}, al\\u0131nan ${s}`:`Ge\\xE7ersiz de\\u011Fer: beklenen ${o}, al\\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\\xE7ersiz de\\u011Fer: beklenen ${I(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 U$(){return{localeError:i0()}}var o0=()=>{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"},map:{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",mac:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 MAC",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",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0457 \\u043A\\u0430\\u0440\\u0442\\u043A\\u0438",currency_code:"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u0438",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 sl(){return{localeError:o0()}}function L$(){return sl()}var a0=()=>{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"},map:{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",mac:"\\u0627\\u06CC\\u0645 \\u0627\\u06D2 \\u0633\\u06CC \\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",credit_card:"\\u06A9\\u0631\\u06CC\\u0688\\u0679 \\u06A9\\u0627\\u0631\\u0688 \\u0646\\u0645\\u0628\\u0631",currency_code:"\\u06A9\\u0631\\u0646\\u0633\\u06CC \\u06A9\\u0648\\u0688",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${I(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 D$(){return{localeError:a0()}}var s0=()=>{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"},map:{unit:"yozuv",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",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\\u2018g\\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\\u2018g\\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\\u2018g\\u2018ri kirish: kutilgan ${I(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 M$(){return{localeError:s0()}}var c0=()=>{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"},map:{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",mac:"\\u0111\\u1ECBa ch\\u1EC9 MAC",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",credit_card:"s\\u1ED1 th\\u1EBB t\\xEDn d\\u1EE5ng",currency_code:"m\\xE3 ti\\u1EC1n t\\u1EC7",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${I(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 q$(){return{localeError:c0()}}var l0=()=>{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"},map:{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",mac:"MAC\\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",credit_card:"\\u4FE1\\u7528\\u5361\\u53F7",currency_code:"\\u8D27\\u5E01\\u4EE3\\u7801",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B instanceof ${n.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 n.values.length===1?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${I(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 V$(){return{localeError:l0()}}var u0=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u4FE1\\u7528\\u5361\\u865F",currency_code:"\\u8CA8\\u5E63\\u4EE3\\u78BC",iban:"IBAN",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=T(n.input),s=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 ${s}`:`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${o}\\uFF0C\\u4F46\\u6536\\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${I(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 Z$(){return{localeError:u0()}}var d0=()=>{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"},map:{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",mac:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC MAC",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",credit_card:"n\\u1ECDmba kaadi gbese",currency_code:"koodu ow\\xF3",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${I(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 F$(){return{localeError:d0()}}var K$,Lh=Symbol("ZodOutput"),Dh=Symbol("ZodInput"),cl=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 ll(){return new cl}(K$=globalThis).__zod_globalRegistry??(K$.__zod_globalRegistry=ll());var Le=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),B$=Symbol.for("zod.compile.fallback"),Ct=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},me=class extends Error{constructor(t,r=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=r}};function p0(e,t){try{return dl(e,{assertOnly:!0})}catch{return t}}function Zh(e,t){try{let r=dl(e),i=ul(e,r);return i._zod.bag.validator=p0(e,r),i}catch(r){if(t?.strict)throw r;return e}}function ul(e,t){if(rl(e))throw new me("a schema whose subtree contains a reference cycle");let r=pe(e),i=e._zod.run,n=i.__originalRun??i,o=(a,s)=>{if(s?.async||s?.direction==="backward"||s?.skipChecks||s?.[B$]||s&&il(s,a.value))return n(a,s);let c=t(a.value);return c!==et?(a.value=c,a):(s&&(s[B$]=!0),n(a,s))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=t,r._zod.run=o,i.__originalRun||f0(r,e,t),r}function f0(e,t,r){let i=e,n=t;if(typeof n.safeParse=="function"){let o=n.safeParse;i.safeParse=(a,s)=>{let c=r(a);return c!==et?{success:!0,data:c}:o(a,s)}}if(typeof n.parse=="function"){let o=n.parse;i.parse=(a,s)=>{let c=r(a);return c!==et?c:o(a,s)}}}function dl(e,t){let r=!0;try{r=rl(e)}catch{}if(r)throw new me("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new _r(["input"]),o=Se(n,i,e,"input",!t?.assertOnly);n.write(o===null?"return true;":`return ${o};`);let a=["INVALID",...i.constants.keys()],s=[et,...i.constants.values()],c=n.content.join(`\n`),l=t?.debug?a.length>0?`// Constants: ${a.join(", ")}\n${c}`:c:"",u=Function,m=`return (input) => {\n${c}\n}`,p;try{p=new u(...a,m)(...s)}catch(f){throw new me(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(p.code=l),p.definite=i.definite,p}function ne(e,t){for(let[i,n]of e.constants)if(n===t)return i;let r=`c${e.constantCounter++}`;return e.constants.set(r,t),r}function kr(e,t){return e.definite=!1,ne(e,t)}function W(e){return`v${e.varCounter++}`}function h0(e,t){let r=e._zod.run({value:t,issues:[]},{});if(r&&typeof r.then=="function")return et;let i=r;return i.issues.length===0?i.value:et}function Ze(e,t,r,i,n=!0){let o=e.content.length,a=t.constants.size,s=t.constantCounter,c=t.varCounter;try{return Se(e,t,r,i,n)}catch(l){if(!(l instanceof me)||!l.islandable)throw l;if(e.content.length=o,t.constants.size>a){let u=Array.from(t.constants.keys()).slice(a);for(let m of u)t.constants.delete(m)}return t.constantCounter=s,t.varCounter=c,g0(e,t,r,i)}}function g0(e,t,r,i){t.definite=!1;let n=ne(t,r),o=ne(t,h0),a=W(t);return e.write(`const ${a} = ${o}(${n}, ${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var v0=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function y0(e,t,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let a of n){let s=a._zod.def;if(s.when&&!v0.has(s.check))throw new me(\'check with a custom "when" condition\');switch(s.check){case"greater_than":S0(e,t,s,o);break;case"less_than":_0(e,t,s,o);break;case"multiple_of":b0(e,t,s,o);break;case"number_format":X$(e,s,o);break;case"min_length":{let c=On(s.minimum,"min_length"),l=Mh(e,t,o,`${o}.length >= ${c} && ${o}.length < ${s.minimum*2}`);e.write(`if (${l} < ${c}) return INVALID;`);break}case"max_length":{let c=On(s.maximum,"max_length"),l=Mh(e,t,o,`${o}.length > ${c}`);e.write(`if (${l} > ${c}) return INVALID;`);break}case"length_equals":{let c=On(s.length,"length_equals"),l=Mh(e,t,o,`${o}.length >= ${c} && ${o}.length <= ${s.length*2}`);e.write(`if (${l} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${On(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${On(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${On(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=Q$(e,t,s,o);break;case"custom":o=I0(e,t,a,o);break;case"bigint_format":$0(e,s,o);break;case"mime_type":k0(e,t,s,o);break;case"property":w0(e,t,s,o);break;case"properties":R0(e,t,s,o);break;case"overwrite":{let c=W(t);z0(e,t,a,o,c),o=c;break}default:throw new me(`check type ${s.check}`)}}return o}function Mh(e,t,r,i){let n=ne(t,yr),o=W(t);return e.write(`const ${o} = typeof ${r} === "string" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function On(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new me(`${t} bound of type ${typeof e}`);return`${e}`}function W$(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new me("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new me("comparison check with Invalid Date bound");return ne(e,t)}throw new me(`comparison check bound of type ${typeof t}`)}function S0(e,t,r,i){let n=r.inclusive?"<":"<=";e.write(`if (${i} ${n} ${W$(t,r.value)}) return INVALID;`)}function _0(e,t,r,i){let n=r.inclusive?">":">=";e.write(`if (${i} ${n} ${W$(t,r.value)}) return INVALID;`)}function b0(e,t,r,i){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new me("multiple_of check with a zero divisor");e.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=ne(t,Ho);e.write(`if (${n}(${i}, ${On(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function X$(e,t,r){let i=t.format;switch(i){case"safeint":e.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new me(`number format ${i}`)}}function $0(e,t,r){let i=t.format;if(i)switch(i){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new me(`bigint format ${i}`)}}function k0(e,t,r,i){let n=r.mime;if(n&&n.length>0){let o=ne(t,new Set(n));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function R0(e,t,r,i){if(r.when)throw new me(\'check with a custom "when" condition\');e.write(`if (${i} == null) return INVALID;`);let n=r.shape;for(let o of Reflect.ownKeys(n)){let a=typeof o=="symbol"?ne(t,o):Xe(o),s=W(t);e.write(`const ${s} = ${i}[${a}];`),Ze(e,t,n[o],s,!1)}}function w0(e,t,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;Se(e,t,r.schema,n)}function z0(e,t,r,i,n){let o=r._zod.def.tx;if(!o)throw new me("overwrite check without a transform function");if(Rr(o))throw new Ct("z.compile: async overwrite transforms are not supported");let a=ne(t,o);e.write(`const ${n} = ${a}(${i});`)}function qh(){throw new ct}function Fh(e){this.issues.push(e)}function I0(e,t,r,i){let n=r._zod.def;if(n.fn){if(Rr(n.fn))throw new Ct("z.compile: async .refine() predicates are not supported");let o=kr(t,n.fn),a=ne(t,qh),s=W(t);return e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),i}if(r._zod.check){if(Rr(r._zod.check))throw new Ct("z.compile: async .superRefine() / check functions are not supported");let o=r._zod.check,s=kr(t,l=>{let u={value:l,issues:[],addIssue:Fh};return o(u)instanceof Promise&&qh(),u.issues.length===0?u.value:et}),c=W(t);return e.write(`const ${c} = ${s}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new me("custom check without a predicate or check function")}var T0=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function Q$(e,t,r,i,n=!0){let o=r.format;if(o==="base64"){let l=ne(t,ha);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="base64url"){let l=ne(t,Fc);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="jwt"){let l=ne(t,Jc),u=ne(t,r.alg??null);return e.write(`if (!${l}(${i}, ${u})) return INVALID;`),i}if(o==="ipv6"){let l=ne(t,fa);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="cidrv6"){let l=ne(t,Vc);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="credit_card"){let l=ne(t,Kc);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="iban"){let l=ne(t,Bc);return e.write(`if (!${l}(${i})) return INVALID;`),i}let a=r;if(o==="url"||o==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let l=ne(t,Dc),u=ne(t,r),m=W(t),p=W(t);if(e.write(`const ${m} = ${i}.trim();`),e.write(`const ${p} = ${l}(${m}, ${u});`),e.write(`if (typeof ${p} === "number") return INVALID;`),a.hostname!==void 0){let v=ne(t,Mc);e.write(`if (!${v}(${p}, ${u}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let v=ne(t,qc);e.write(`if (!${v}(${p}, ${u}.protocol)) return INVALID;`)}if(!n)return null;let f=W(t),h=a.normalize?`${p}.href`:`${ne(t,pa)}(${m})`;return e.write(`const ${f} = ${h};`),f}let s=r.fn;if(s){if(Rr(s))throw new me(`async string format ${o}`);let l=ne(t,s);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(T0.has(o)&&r.pattern){let l=ne(t,r.pattern);return e.write(`${l}.lastIndex = 0;`),e.write(`if (!${l}.test(${i})) return INVALID;`),i}let c=r.format;switch(c){case"regex":throw new me("regex format without a pattern");case"lowercase":e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${i}.includes(${Xe(r.includes)})) return INVALID;`);break;case"starts_with":{let l=r.prefix;e.write(`if (${i}.slice(0, ${l.length}) !== ${Xe(l)}) return INVALID;`);break}case"ends_with":{let l=r.suffix;e.write(`if (${i}.slice(-${l.length}) !== ${Xe(l)}) return INVALID;`);break}default:throw new me(`string format ${c}`)}return i}function Se(e,t,r,i,n=!0){let o=r._zod.def,a=o.type;if(o.coerce)throw new me(`coercion (z.coerce.${a}())`);let s=n||!!o.checks?.length,c;switch(a){case"string":c=x0(e,t,r,i,s);break;case"number":c=E0(e,r,i);break;case"boolean":c=P0(e,i);break;case"bigint":c=O0(e,r,i);break;case"symbol":c=C0(e,i);break;case"undefined":c=N0(e,i);break;case"null":c=A0(e,i);break;case"any":case"unknown":c=i;break;case"never":e.write("return INVALID;"),c=i;break;case"void":c=j0(e,i);break;case"nan":c=U0(e,i);break;case"date":c=L0(e,i);break;case"object":c=D0(e,t,r,i,s);break;case"optional":c=M0(e,t,r,i,s);break;case"nullable":c=Z0(e,t,r,i,s);break;case"array":c=F0(e,t,r,i,s);break;case"literal":c=K0(e,t,r,i);break;case"enum":c=B0(e,t,r,i);break;case"readonly":{let l=H$(e,t,r,i),u=W(t);e.write(`const ${u} = Object.freeze(${l});`),c=u;break}case"success":H$(e,t,r,i),c="true";break;case"default":case"prefault":c=J0(e,t,r,i);break;case"nonoptional":c=H0(e,t,r,i);break;case"tuple":c=Y0(e,t,r,i);break;case"union":c=G0(e,t,r,i);break;case"intersection":c=Q0(e,t,r,i);break;case"record":c=eO(e,t,r,i);break;case"map":c=nO(e,t,r,i);break;case"set":c=rO(e,t,r,i);break;case"file":c=iO(e,i);break;case"template_literal":c=oO(e,t,r,i);break;case"lazy":c=aO(e,t,r,i);break;case"pipe":c=sO(e,t,r,i);break;case"custom":c=cO(e,t,r,i);break;case"transform":c=dO(e,t,r,i);break;case"catch":c=uO(e,t,r,i);break;default:throw new me(`schema type ${a}`)}return c===null?null:y0(e,t,r,c)}function x0(e,t,r,i,n=!0){e.write(`if (typeof ${i} !== "string") return INVALID;`);let o=r._zod.def;return o.format===void 0?i:Q$(e,t,o,i,n)}function E0(e,t,r){e.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);let i=t._zod.def;return i.check==="number_format"&&i.format&&X$(e,{format:i.format},r),r}function P0(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function O0(e,t,r){e.write(`if (typeof ${r} !== "bigint") return INVALID;`);let i=t._zod.def;if(i.format)switch(i.format){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function C0(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function N0(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function A0(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function j0(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function U0(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function L0(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function D0(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let a=o.shape,s=Object.keys(a),c=Object.getOwnPropertySymbols(a),l=c.length?[...s,...c]:s,u=w=>typeof w=="symbol"?ne(t,w):Xe(w),m=w=>typeof w=="symbol"?`[${u(w)}]`:Xe(w),p=a;if(s.includes("__proto__"))throw new me(\'object shape key "__proto__"\');let f=new Map;for(let w of l){let E=p[w],D=u(w),F=W(t);if(e.write(`const ${F} = ${i}[${D}];`),E._zod.optin!==void 0){let N=W(t);e.write(`let ${N} = (() => {`),e.indented(te=>{let ie=Ze(te,t,E,F);te.write(`return ${ie};`)}),e.write("})();"),E._zod.optout==="optional"?(e.write(`if (${N} === INVALID) {`),e.indented(te=>{te.write(`if (${D} in ${i}) return INVALID;`),te.write(`${N} = undefined;`)}),e.write("}")):e.write(`if (${N} === INVALID) return INVALID;`),f.set(w,N)}else{V0(E)&&e.write(`if (!(${D} in ${i})) return INVALID;`);let N=Ze(e,t,E,F,n);N!==null&&f.set(w,N)}}let h=o.catchall,v="none";if(h){let w=h._zod.def.type;if(w==="never"){let E=s.map(D=>`k !== ${Xe(D)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(D=>{D.write(`if (${E}) return INVALID;`)}),e.write("}")}else(w==="unknown"||w==="any")&&!h._zod.def.checks?.length?v="passthrough":v="schema"}let y=W(t),R=l.some(w=>J$(p[w])||Vh(p[w]));if(!n){if(v==="schema"){let w=s.length>0?ne(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{E.write(\'if (k === "__proto__") continue;\'),w&&E.write(`if (${w}.has(k)) continue;`);let D=W(t);E.write(`const ${D} = ${i}[k];`),Ze(E,t,h,D,!1)}),e.write("}")}return null}if(R){e.write(`const ${y} = {};`);for(let w of l){let E=u(w),D=f.get(w);Vh(p[w])?e.write(`if (${E} in ${i}) ${y}[${E}] = ${D};`):J$(p[w])?e.write(`if (${D} !== undefined || ${E} in ${i}) ${y}[${E}] = ${D};`):e.write(`${y}[${E}] = ${D};`)}}else{let w=l.map(E=>`${m(E)}: ${f.get(E)}`).join(", ");e.write(`const ${y} = { ${w} };`)}if(v!=="none"){let w=s.length>0?ne(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{if(E.write(\'if (k === "__proto__") continue;\'),w&&E.write(`if (${w}.has(k)) continue;`),v==="passthrough")E.write(`${y}[k] = ${i}[k];`);else{let D=W(t);E.write(`const ${D} = ${i}[k];`);let F=Ze(E,t,h,D);E.write(`${y}[k] = ${F};`)}}),e.write("}")}return y}function M0(e,t,r,i,n=!0){let o=r._zod.def;if(q0(r))return Se(e,t,o.innerType,i,n);if(o.innerType._zod.optin==="defaulted"){let s=W(t),c=W(t);return e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(l=>{l.write(`const ${c} = (() => {`),l.indented(u=>{let m=Se(u,t,o.innerType,i);u.write(`return ${m};`)}),l.write("})();"),l.write(`if (${c} !== INVALID) ${s} = ${c};`)}),e.write("} else {"),e.indented(l=>{let u=Se(l,t,o.innerType,i);l.write(`${s} = ${u};`)}),e.write("}"),s}let a=n?W(t):null;return a&&e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(s=>{let c=Se(s,t,o.innerType,i,n);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function q0(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function V0(e){return e._zod.optin===void 0&&$r(e)}function $r(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?$r(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?$r(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some($r):!0;case"intersection":return!t.left||!t.right?!0:$r(t.left)&&$r(t.right);case"pipe":return t.in?$r(t.in):!0;default:return!0}}function Vh(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function J$(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Ri(e)}function Ri(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Ri(t.innerType):!0;case"union":return t.options?t.options.some(Ri):!0;case"intersection":return!t.left||!t.right||Ri(t.left)||Ri(t.right);case"pipe":return t.out?Ri(t.out):!0;default:return!0}}function Z0(e,t,r,i,n=!0){let o=r._zod.def,a=n?W(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${i} !== null) {`),e.indented(s=>{let c=Se(s,t,o.innerType,i,n);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function Kh(e,t,r){for(let[i,n]of fi(t._zod.def.checks))e.write(`if (${r} > ${On(i,n._zod.def.check)}) return INVALID;`)}function F0(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`),Kh(e,r,`${i}.length`);let a=n?W(t):null,s=W(t),c=W(t);return a&&e.write(`const ${a} = new Array(${i}.length);`),e.write(`for (let ${s} = 0; ${s} < ${i}.length; ${s}++) {`),e.indented(l=>{l.write(`const ${c} = ${i}[${s}];`);let u=Ze(l,t,o.element,c,n);a&&u!==null&&l.write(`${a}[${s}] = ${u};`)}),e.write("}"),a}function K0(e,t,r,i){let o=r._zod.def.values;if(o.length!==1){let s=ne(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}let a=o[0];if(typeof a=="number"&&Number.isNaN(a)){let s=ne(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}if(typeof a=="string")e.write(`if (${i} !== ${Xe(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${i} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${i} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${i} !== ${a}n) return INVALID;`);else throw new me(`literal type ${typeof a}`);return i}function B0(e,t,r,i){let n=r._zod.values;if(!n)throw new me("enum schema without enumerated values");let o=ne(t,n);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function H$(e,t,r,i){let n=r._zod.def;return Se(e,t,n.innerType,i)}function J0(e,t,r,i){let n=r._zod.def,a=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!a)return Se(e,t,n.innerType,i);let c=ne(t,a),l=W(t);return e.write(`let ${l} = ${i};`),e.write(`if (${i} === undefined) ${l} = ${c}();`),Se(e,t,n.innerType,l)}let s=W(t);if(a){let c=ne(t,a),l=ne(t,Yo);e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(u=>{u.write(`${s} = ${l}(${c}());`)}),e.write("} else {"),e.indented(u=>{let m=Se(u,t,n.innerType,i);u.write(`${s} = ${m} === undefined ? ${l}(${c}()) : ${m};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(c=>{let l=Se(c,t,n.innerType,i);c.write(`${s} = ${l};`)}),e.write("}");return s}function H0(e,t,r,i){let n=r._zod.def,o=Se(e,t,n.innerType,i),a=W(t);return e.write(`const ${a} = ${o};`),e.write(`if (${a} === undefined) return INVALID;`),a}function Y0(e,t,r,i){let n=r._zod.def,o=n.items,a=n.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let s=Y$(o,"optin"),c=Y$(o,"optout");a?e.write(`if (${i}.length < ${s}) return INVALID;`):e.write(`if (${i}.length < ${s} || ${i}.length > ${o.length}) return INVALID;`);let l=W(t);e.write(`const ${l} = [];`);for(let u=0;u<o.length;u++){let m=o[u];if(u>=c)e.write(`if (${l}.length === ${u}) {`),e.indented(p=>{p.write(`if (${u} < ${i}.length) {`),p.indented(f=>{let h=W(t);f.write(`const ${h} = ${i}[${u}];`);let v=Ze(f,t,m,h);f.write(`${l}[${u}] = ${v};`)}),p.write("} else {"),p.indented(f=>{if(Vh(m)){f.write(`${l}.length = ${u};`);return}let h=W(t),v=W(t);f.write(`const ${h} = undefined;`),f.write(`const ${v} = (() => {`),f.indented(y=>{let R=Ze(y,t,m,h);y.write(`return ${R};`)}),f.write("})();"),f.write(`if (${v} === INVALID || ${v} === undefined) ${l}.length = ${u};`),f.write(`else ${l}[${u}] = ${v};`)}),p.write("}")}),e.write("}");else{let p=W(t);e.write(`const ${p} = ${i}[${u}];`);let f=Ze(e,t,m,p);e.write(`${l}[${u}] = ${f};`)}}if(a){let u=W(t),m=W(t);e.write(`for (let ${u} = ${o.length}; ${u} < ${i}.length; ${u}++) {`),e.indented(p=>{p.write(`const ${m} = ${i}[${u}];`);let f=Ze(p,t,a,m);p.write(`${l}[${u}] = ${f};`)}),e.write("}")}return l}function Y$(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function G0(e,t,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return W0(e,t,n,i);if(n.inclusive===!1)throw new me("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return Se(e,t,o[0],i);if(o.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(o.flatMap(u=>u._zod.def.values)),l=ne(t,c);return e.write(`if (!${l}.has(${i})) return INVALID;`),i}let s=W(t);e.write(`let ${s};`);for(let c=0;c<o.length;c++){let l=o[c];c===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(u=>{let m=Se(u,t,l,i);u.write(`return ${m};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function W0(e,t,r,i){if(r.unionFallback)throw new me("discriminated union with unionFallback");if(r.options.length===0)return e.write("return INVALID;"),i;let n=W(t),o=W(t);e.write(`const ${n} = ${i}?.[${Xe(r.discriminator)}];`),e.write(`let ${o};`);let a=!0,s=new Set;for(let c of r.options){let l=c._zod.propValues?.[r.discriminator];if(!l||l.size===0)throw new me("discriminated union option without static discriminator values");for(let p of l){if(s.has(p))throw new me(`duplicate discriminator value ${String(p)}`);s.add(p)}let u=Array.from(l,p=>X0(t,n,p)),m=a?"if":"else if";e.write(`${m} (${u.join(" || ")}) {`),e.indented(p=>{let f=Se(p,t,c,i);p.write(`${o} = ${f};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),o}function X0(e,t,r){if(typeof r=="string")return`${t} === ${Xe(r)}`;if(typeof r=="number")return Number.isNaN(r)?`Number.isNaN(${t})`:`${t} === ${r}`;if(typeof r=="boolean")return`${t} === ${r}`;if(r===null)return`${t} === null`;if(r===void 0)return`${t} === undefined`;if(typeof r=="bigint")return`${t} === ${r}n`;if(typeof r=="symbol"){let i=ne(e,r);return`${t} === ${i}`}throw new me(`literal discriminator value ${String(r)}`)}function Q0(e,t,r,i){let n=r._zod.def;t.definite=!1;let o=Ze(e,t,n.left,i),a=Ze(e,t,n.right,i),s=ne(t,bi),c=W(t);return e.write(`const ${c} = ${s}(${o}, ${a});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function eO(e,t,r,i){let n=r._zod.def,o=ne(t,$t);e.write(`if (!${o}(${i})) return INVALID;`);let a=W(t),s=W(t),c=W(t);e.write(`const ${a} = {};`);let l=n,u=l.partial?void 0:n.keyType._zod.values;if(u){let f=[];for(let v of u){if(!(typeof v=="string"||typeof v=="number"||typeof v=="symbol"))throw new me(`record key value ${String(v)}`);let y=typeof v=="number"?v.toString():v;if(y==="__proto__")throw new me(\'record key "__proto__"\');f.push(y);let R=ne(t,v),w=Se(e,t,n.keyType,R),E=W(t);e.write(`const ${E} = ${i}[${tO(t,y)}];`);let D=Ze(e,t,n.valueType,E);e.write(`${a}[${w}] = ${D};`)}let h=ne(t,new Set(f));return e.write(`for (const ${s} in ${i}) {`),e.indented(v=>{v.write(`if (${h}.has(${s})) continue;`),l.mode==="loose"?v.write(`if (${s} !== "__proto__") ${a}[${s}] = ${i}[${s}];`):v.write("return INVALID;")}),e.write("}"),a}let m=n.keyType._zod.def;if(!(m.type==="string"&&m.format===void 0&&!m.coerce&&(m.checks?.length??0)===0)){let f=n.mode==="loose",h=dl(n.keyType);h.definite===!1&&(t.definite=!1);let v=ne(t,h),y=ne(t,pn),R=W(t);return G$(e,t,i,s,w=>{w.write(`let ${R} = ${v}(${s});`),w.write(`if (${R} === INVALID && typeof ${s} === "string" && ${y}.test(${s})) ${R} = ${v}(Number(${s}));`),f?w.write(`if (${R} === INVALID) { ${a}[${s}] = ${i}[${s}]; continue; }`):w.write(`if (${R} === INVALID) return INVALID;`),w.write(`if (${R} === "__proto__") continue;`);let E=W(t);w.write(`const ${E} = ${i}[${s}];`);let D=Ze(w,t,n.valueType,E);w.write(`${a}[${R}] = ${D};`)}),a}return G$(e,t,i,s,f=>{f.write(`const ${c} = ${i}[${s}];`);let h=Ze(f,t,n.valueType,c);f.write(`${a}[${s}] = ${h};`)},"return INVALID;"),a}function G$(e,t,r,i,n,o){let a=ne(t,Object.prototype.propertyIsEnumerable),s=W(t),c=W(t),l=W(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${r});`),e.write(`const ${c} = Object.getOwnPropertyNames(${r});`),e.write(`for (let ${l} = 0; ${l} < ${c}.length; ${l}++) {`),e.indented(u=>{u.write(`const ${i} = ${c}[${l}];`),u.write(`if (${i} === "__proto__" || !${a}.call(${r}, ${i})) continue;`),n(u)}),e.write("}"),e.write(`for (let ${l} = 0; ${l} < ${s}.length; ${l}++) {`),e.indented(u=>{u.write(`const ${i} = ${s}[${l}];`),u.write(`if (!${a}.call(${r}, ${i})) continue;`),o?u.write(o):n(u)}),e.write("}")}function tO(e,t){return typeof t=="string"?Xe(t):ne(e,t)}function nO(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`),Kh(e,r,`${i}.size`);let o=W(t),a=W(t),s=W(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${a}, ${s}] of ${i}) {`),e.indented(c=>{let l=Se(c,t,n.keyType,a),u=Se(c,t,n.valueType,s);c.write(`${o}.set(${l}, ${u});`)}),e.write("}"),o}function rO(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`),Kh(e,r,`${i}.size`);let o=W(t),a=W(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${a} of ${i}) {`),e.indented(s=>{let c=Se(s,t,n.valueType,a);s.write(`${o}.add(${c});`)}),e.write("}"),o}function iO(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function oO(e,t,r,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let n=r._zod.pattern;if(n){let o=ne(t,n);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function aO(e,t,r,i){let n=r._zod.def,o=kr(t,n.getter),a=ne(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(c=>{c.write(`const inner = ${o}();`),c.write(`${a}.parser = function(input) {`),c.indented(l=>{l.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),l.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let s=W(t);return e.write(`const ${s} = ${a}.parser(${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function sO(e,t,r,i){let n=r._zod.def,o=Se(e,t,n.in,i);if(n.transform){if(Rr(n.transform))throw new Ct("z.compile: async transforms in pipes are not supported");let a=n.transform,c=kr(t,u=>{let m={value:u,issues:[],addIssue:Fh},p=a(u,m);return p instanceof Promise?et:m.issues.length===0?p:et}),l=W(t);return e.write(`const ${l} = ${c}(${o});`),e.write(`if (${l} === INVALID) return INVALID;`),Se(e,t,n.out,l)}else return Se(e,t,n.out,o)}function Rr(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function cO(e,t,r,i){let n=r._zod.def;if(n.fn){if(Rr(n.fn))throw new Ct("z.compile: async custom predicates are not supported");let o=kr(t,n.fn),a=ne(t,qh),s=W(t);e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new me("custom schema without a predicate function");return i}function lO(e,t,r){let i=e._zod.run({value:r,issues:[]},{});if(i&&typeof i.then=="function")return et;let n=i;return n.issues.length===0?n.value:t()}function uO(e,t,r,i){let n=r._zod.def;if(!n.catchValue[gc])throw new me("catch with a callback (only a constant catch value compiles)",!1);let o=W(t);e.write(`let ${o} = (() => {`),e.indented(l=>{let u=Ze(l,t,n.innerType,i);l.write(`return ${u};`)}),e.write("})();");let a=ne(t,n.innerType),s=kr(t,n.catchValue),c=ne(t,lO);return e.write(`if (${o} === INVALID) {`),e.indented(l=>{l.write(`${o} = ${c}(${a}, ${s}, ${i});`),l.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function dO(e,t,r,i){let n=r._zod.def;if(n.transform){if(Rr(n.transform))throw new Ct("z.compile: async transforms are not supported");let o=n.transform,s=kr(t,l=>{let u={value:l,issues:[],addIssue:Fh},m=o(l,u);return m instanceof Promise?et:u.issues.length===0?m:et}),c=W(t);return e.write(`const ${c} = ${s}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return i}function ml(e){return e.checks&&(e.checks=[...e.checks]),e}function Bh(e,t){return new e(ml({type:"string",...C(t)}))}function Jh(e,t){return new e(ml({type:"string",coerce:!0,...C(t)}))}function pl(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(t)})}function fl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(t)})}function hl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(t)})}function gl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(t)})}function vl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(t)})}function yl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(t)})}function za(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(t)})}function Sl(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(t)})}function _l(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(t)})}function bl(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(t)})}function $l(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(t)})}function kl(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(t)})}function Rl(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(t)})}function wl(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(t)})}function zl(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(t)})}function Il(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(t)})}function Hh(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...C(t)})}function Tl(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(t)})}function xl(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(t)})}function El(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(t)})}function Pl(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(t)})}function Ol(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(t)})}function Yh(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...C(t)})}function Gh(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...C(t)})}function Cl(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(t)})}var Wh={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ia(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(t)})}function Ta(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function xa(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Ea(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function Xh(e,t){return new e(ml({type:"number",checks:[],...C(t)}))}function Qh(e,t){return new e(ml({type:"number",coerce:!0,checks:[],...C(t)}))}function eg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(t)})}function tg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...C(t)})}function ng(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...C(t)})}function rg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...C(t)})}function ig(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...C(t)})}function og(e,t){return new e({type:"boolean",...C(t)})}function ag(e,t){return new e({type:"boolean",coerce:!0,...C(t)})}function sg(e,t){return new e({type:"bigint",...C(t)})}function cg(e,t){return new e({type:"bigint",coerce:!0,...C(t)})}function lg(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...C(t)})}function ug(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...C(t)})}function dg(e,t){return new e({type:"symbol",...C(t)})}function mg(e,t){return new e({type:"undefined",...C(t)})}function pg(e,t){return new e({type:"null",...C(t)})}function fg(e){return new e({type:"any"})}function hg(e){return new e({type:"unknown"})}function gg(e,t){return new e({type:"never",...C(t)})}function vg(e,t){return new e({type:"void",...C(t)})}function yg(e,t){return new e({type:"date",...C(t)})}function Sg(e,t){return new e({type:"date",coerce:!0,...C(t)})}function _g(e,t){return new e({type:"nan",...C(t)})}function Gt(e,t){return new Oc({check:"less_than",...C(t),value:e,inclusive:!1})}function gt(e,t){return new Oc({check:"less_than",...C(t),value:e,inclusive:!0})}function Wt(e,t){return new Cc({check:"greater_than",...C(t),value:e,inclusive:!1})}function vt(e,t){return new Cc({check:"greater_than",...C(t),value:e,inclusive:!0})}function Nl(e){return Wt(0,e)}function Al(e){return Gt(0,e)}function jl(e){return gt(0,e)}function Ul(e){return vt(0,e)}function Cn(e,t){return new tf({check:"multiple_of",...C(t),value:e})}function Nn(e,t){return new of({check:"max_size",...C(t),maximum:e})}function Xt(e,t){return new af({check:"min_size",...C(t),minimum:e})}function wr(e,t){return new sf({check:"size_equals",...C(t),size:e})}function zr(e,t){return new cf({check:"max_length",...C(t),maximum:e})}function fn(e,t){return new lf({check:"min_length",...C(t),minimum:e})}function Ir(e,t){return new uf({check:"length_equals",...C(t),length:e})}function wi(e,t){return new df({check:"string_format",format:"regex",...C(t),pattern:e})}function zi(e){return new mf({check:"string_format",format:"lowercase",...C(e)})}function Ii(e){return new pf({check:"string_format",format:"uppercase",...C(e)})}function Ti(e,t){return new ff({check:"string_format",format:"includes",...C(t),includes:e})}function xi(e,t){return new hf({check:"string_format",format:"starts_with",...C(t),prefix:e})}function Ei(e,t){return new gf({check:"string_format",format:"ends_with",...C(t),suffix:e})}function Ll(e,t,r){return new vf({check:"property",property:e,schema:t,...C(r)})}function Pi(e,t){return new yf({check:"properties",shape:e,...C(t)})}function Oi(e,t){return new Sf({check:"mime_type",mime:e,...C(t)})}function Nt(e){return new _f({check:"overwrite",tx:e})}function Ci(e){return Nt(t=>t.normalize(e))}function Ni(){return Nt(e=>e.trim())}function Ai(){return Nt(e=>e.toLowerCase())}function ji(){return Nt(e=>e.toUpperCase())}function Ui(){return Nt(e=>ip(e))}function bg(e,t,r){return new e({type:"array",element:t,...C(r)})}function mO(e,t,r){return new e({type:"union",options:t,...C(r)})}function pO(e,t,r){return new e({type:"union",options:t,inclusive:!1,...C(r)})}function fO(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...C(i)})}function hO(e,t,r){return new e({type:"intersection",left:t,right:r})}function gO(e,t,r,i){let n=r instanceof oe,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...C(o)})}function vO(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...C(i)})}function yO(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...C(i)})}function SO(e,t,r){return new e({type:"set",valueType:t,...C(r)})}function _O(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 bO(e,t,r){return new e({type:"enum",entries:t,...C(r)})}function $O(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(r)})}function $g(e,t){return new e({type:"file",...C(t)})}function kO(e,t){return new e({type:"transform",transform:t})}function RO(e,t){return new e({type:"optional",innerType:t})}function wO(e,t){return new e({type:"nullable",innerType:t})}function zO(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Yo(r)}})}function IO(e,t,r){return new e({type:"nonoptional",innerType:t,...C(r)})}function TO(e,t){return new e({type:"success",innerType:t})}function xO(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:up(r)})}function EO(e,t,r){return new e({type:"pipe",in:t,out:r})}function PO(e,t){return new e({type:"readonly",innerType:t})}function OO(e,t,r){return new e({type:"template_literal",parts:t,...C(r)})}function CO(e,t){return new e({type:"lazy",getter:t})}function NO(e,t){return new e({type:"promise",innerType:t})}function kg(e,t,r){let i=C(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Rg(e,t,r){return new e({type:"custom",check:"custom",fn:t,...C(r)})}function wg(e,t){let r=ek(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(hi(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(hi(o))}},e(i.value,i)),t);return r}function ek(e,t){let r=new ve({check:"custom",...C(t)});return r._zod.check=e,r}function zg(e){let t=new ve({check:"describe"});return t._zod.onattach=[r=>{let i=Le.get(r)??{};Le.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function Ig(e){let t=new ve({check:"meta"});return t._zod.onattach=[r=>{let i=Le.get(r)??{};Le.add(r,{...i,...e})}],t._zod.check=()=>{},t}function Tg(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(f=>typeof f=="string"?f.toLowerCase():f),n=n.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(n),s=e.Codec??Sa,c=e.Boolean??va,l=e.String??br,u=new l({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),p=new s({type:"pipe",in:u,out:m,transform:((f,h)=>{let v=f;return r.case!=="sensitive"&&(v=v.toLowerCase()),o.has(v)?!0:a.has(v)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?i[0]||"true":n[0]||"false"),error:r.error});return p._zod.bag.truthy=i,p._zod.bag.falsy=n,p._zod.bag.case=r.case??"insensitive",p}function Tr(e,t,r,i={}){let n=C(i),o={check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Pa(e,...t){for(let r of t)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Ue(e,i,r[i]);return e}function An(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??Le,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Oe(e,t,r,i,n){let o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:i.path,message:n}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(n);return Object.assign(r,o),!0}function he(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),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let p=a.schema,f=t.processors[n.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);f(e,t,p,u)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),he(m,t,u),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Pa(a.schema,c),t.io==="input"&&tt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function tk(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}function jn(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;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 n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,p=e.external.uri??(h=>h);if(m)return{ref:p(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${tk(f)}`}}let c="#",l=`${c}/${s}/`;if(a[1]===r&&!a[1].schema.id)return{ref:c};let u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+tk(u)}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=n(a);s.def={...s.schema},l&&(s.defId=l);let u=s.schema;for(let m in u)delete u[m];u.$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>\n\nSet 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}s.count>1&&e.reused==="ref"&&o(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function ik(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let i of t){if(!i||typeof i!="object")return;ik(i);let n=Object.keys(i);if(n.length!==1||n[0]!=="type")return;let o=i.type;for(let a of Array.isArray(o)?o:[o]){if(typeof a!="string")return;r.includes(a)||r.push(a)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var ok=new Set(["type","properties","required","additionalProperties"]),nk=["oneOf","anyOf"];function rk(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function xg(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let a in o)if(!ok.has(a))return null;t.push(o)}let r={},i=new Set;for(let o of t){for(let a in o.properties){if(Object.prototype.hasOwnProperty.call(r,a))continue;let s=[];for(let l of t){let u=l.properties?.[a]??rk(l);u!=null&&(s.some(m=>JSON.stringify(m)===JSON.stringify(u))||s.push(u))}let c=s.length===1?s[0]:xg(s)??{allOf:s};Ue(r,a,c)}for(let a of o.required??[])i.add(a)}let n={type:"object",properties:r};if(i.size&&(n.required=[...i]),t.every(o=>o.additionalProperties===!1))n.additionalProperties=!1;else{let o=[];for(let a of t){let s=rk(a);s&&!o.some(c=>JSON.stringify(c)===JSON.stringify(s))&&o.push(s)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function AO(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of ok)if(n in e)return;let r=t.filter(n=>nk.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=xg(t);else{let n=r[0],o=nk.find(c=>Array.isArray(n[c]));if(Object.keys(n).length!==1)return;let a=t.filter(c=>c!==n),s=n[o].map(c=>xg([...a,c]));if(s.some(c=>!c))return;i={[o]:s}}i&&(delete e.allOf,Pa(e,i))}function Un(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let l=c.def??c.schema,u={...l},m=c.ref;if(c.ref=null,m){i(m);let f=e.seen.get(m),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Pa(l,h),Pa(l,u),s._zod.parent===m)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(h.$ref&&f.def)for(let y in l)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(l[y])===JSON.stringify(f.def[y])&&delete l[y]}let p=s._zod.parent;if(p&&p!==m){i(p);let f=e.seen.get(p);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let h in l)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(l[h])===JSON.stringify(f.def[h])&&delete l[h]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())i(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())ik(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let c of e.seen.values())for(let l of[c.schema,c.def]){let u=l?.allOf;if(!Array.isArray(u))continue;let m=s.get(u);m?m.push(l):s.set(u,[l])}for(let c of e.intersections)for(let l of s.get(c)??[])AO(l)}}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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Pa(n,r.defId?r.schema:r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,Ue(a,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Li(t,"input",e.processors),output:Li(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return tt(i.element,r);if(i.type==="set")return tt(i.valueType,r);if(i.type==="lazy")return tt(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"||i.type==="catch")return tt(i.innerType,r);if(i.type==="intersection")return tt(i.left,r)||tt(i.right,r);if(i.type==="record"||i.type==="map")return tt(i.keyType,r)||tt(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:tt(i.in,r)||tt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(tt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(tt(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(tt(n,r))return!0;return!!(i.rest&&tt(i.rest,r))}return!1}var Eg=(e,t={})=>r=>{let i=An({...r,processors:t});return he(e,i),jn(i,e),Un(i,e)},Li=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=An({...n??{},target:o,io:t,processors:r});return he(e,a),jn(a,e),Un(a,e)};var Di=(e,t,r)=>{(e[t]===void 0||r>e[t])&&(e[t]=r)},Mi=(e,t,r)=>{(e[t]===void 0||r<e[t])&&(e[t]=r)},ak=(e,t)=>{Di(e,"minimum",t),Mi(e,"maximum",t)},uk=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},dk=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},mk=(e,t)=>{e.mime=e.mime?e.mime.filter(r=>t.includes(r)):[...t]},pk=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},sk=(e,t)=>Di(e,"minimum",t.minimum),ck=(e,t)=>Mi(e,"maximum",t.maximum),lk=e=>(t,r)=>{pk(t,r.format);let[i,n]=e[r.format];Di(t,"minimum",i),Mi(t,"maximum",n)},jO={greater_than:(e,t)=>Di(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Mi(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>uk(e,t.value),number_format:lk(Wo),bigint_format:lk(Xo),min_length:sk,max_length:ck,length_equals:(e,t)=>ak(e,t.length),min_size:sk,max_size:ck,size_equals:(e,t)=>ak(e,t.size),string_format:(e,t)=>{pk(e,t.format),t.pattern&&dk(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>mk(e,t.mime)};function Ce(e){let t={},r=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let o of i)jO[o._zod.def.check]?.(t,o._zod.def);let n=e._zod.bag;n.minimum!==void 0&&Di(t,"minimum",n.minimum),n.exclusiveMinimum!==void 0&&Di(t,"exclusiveMinimum",n.exclusiveMinimum),n.maximum!==void 0&&Mi(t,"maximum",n.maximum),n.exclusiveMaximum!==void 0&&Mi(t,"exclusiveMaximum",n.exclusiveMaximum),n.multipleOf!==void 0&&uk(t,n.multipleOf),n.format!==void 0&&(t.format??(t.format=n.format),n.format.includes("int")&&(t.isInt=!0)),n.mime&&mk(t,n.mime);for(let o of n.patterns??[])dk(t,o);return t}var UO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LO=new Map([[Zc,Ap],[ga,jp]]),fk=e=>LO.get(e)??e,Cg=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Ce(e);if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=UO[s]??s,n.format===""&&delete n.format,(s==="time"||u)&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let m=[...c].map(fk);m.length===1?n.pattern=m[0].source:m.length>1&&(n.allOf=[...m.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Ng=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=Ce(e);n.type=u?"integer":"number";let m=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(m?f?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),p?f?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),s){let h=new Set;for(let R of s)Number.isFinite(R)&&R!==0?h.add(Math.abs(R)):Oe(e,t,n,i,`A multipleOf divisor of ${R} cannot be represented in JSON Schema`);let[v,...y]=h;v!==void 0&&(n.multipleOf=v),y.length&&(n.allOf=[...n.allOf??[],...y.map(R=>({multipleOf:R}))])}},Ag=(e,t,r,i)=>{r.type="boolean"},jg=(e,t,r,i)=>{Oe(e,t,r,i,"BigInt cannot be represented in JSON Schema")},Ug=(e,t,r,i)=>{Oe(e,t,r,i,"Symbols cannot be represented in JSON Schema")},Lg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Dg=(e,t,r,i)=>{Oe(e,t,r,i,"Undefined cannot be represented in JSON Schema")},Mg=(e,t,r,i)=>{Oe(e,t,r,i,"Void cannot be represented in JSON Schema")},qg=(e,t,r,i)=>{r.not={}},Vg=(e,t,r,i)=>{},Zg=(e,t,r,i)=>{},Fg=(e,t,r,i)=>{Oe(e,t,r,i,"Date cannot be represented in JSON Schema")},Kg=(e,t,r,i)=>{let n=e._zod.def,o=ui(n.entries);if(o.length===0){r.not={};return}o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},Bg=(e,t,r,i)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let a of n.values)if(a===void 0){if(Oe(e,t,r,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Oe(e,t,r,i,"BigInt literals cannot be represented in JSON Schema"))return;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},Jg=(e,t,r,i)=>{Oe(e,t,r,i,"NaN cannot be represented in JSON Schema")},Hg=(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},Yg=(e,t,r,i)=>{let n=r;n.type="string",n.format="binary",n.contentEncoding="binary";let{minimum:o,maximum:a,mime:s}=Ce(e);o!==void 0&&(n.minLength=o),a!==void 0&&(n.maxLength=a),s&&(s.length===0?n.not={}:s.length===1?n.contentMediaType=s[0]:n.anyOf=s.map(c=>({contentMediaType:c})))},Gg=(e,t,r,i)=>{r.type="boolean"},Wg=(e,t,r,i)=>{Oe(e,t,r,i,"Custom types cannot be represented in JSON Schema")},Xg=(e,t,r,i)=>{Oe(e,t,r,i,"Function types cannot be represented in JSON Schema")},Qg=(e,t,r,i)=>{Oe(e,t,r,i,"Transforms cannot be represented in JSON Schema")},ev=(e,t,r,i)=>{Oe(e,t,r,i,"Map cannot be represented in JSON Schema")},tv=(e,t,r,i)=>{Oe(e,t,r,i,"Set cannot be represented in JSON Schema")},nv=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:s}=Ce(e);typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=he(o.element,t,{...i,path:[...i.path,"items"]})};function Oa(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Oa(t.out):t.type==="catch"?Oa(t.innerType):e._zod.optin}var rv=(e,t,r,i)=>{let n=r,o=e._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&Oe(e,t,n,i,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let l in a)Ue(n.properties,l,he(a[l],t,{...i,path:[...i.path,"properties",l]}));let c=[];for(let l of Object.keys(a)){let u=o.shape[l];(t.io==="input"?Oa(u)===void 0:u._zod.optout===void 0)&&c.push(l)}c.length>0&&(n.required=c),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=he(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Ml=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>he(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},iv=(e,t,r,i)=>{let n=e._zod.def,o=he(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=he(n.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]];r.allOf=c,t.intersections.push(c)},ov=(e,t,r,i)=>{let n=r,o=e._zod.def;n.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((v,y)=>he(v,t,{...i,path:[...i.path,a,y]})),l=o.rest?he(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,u=o.items.length;for(;u>0;){let v=o.items[u-1];if(!(t.io==="input"?Oa(v)!==void 0:v._zod.optout==="optional"))break;u--}let m=o.items.length,p=!o.rest;t.target==="draft-2020-12"?(n.prefixItems=c,p?n.items=!1:l&&(n.items=l),u>0&&(n.minItems=u),p&&(n.maxItems=m)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),u>0&&(n.minItems=u),p&&(n.maxItems=m)):(n.items=c,p?n.additionalItems=!1:l&&(n.additionalItems=l),u>0&&(n.minItems=u),p&&(n.maxItems=m));let{minimum:f,maximum:h}=Ce(e);typeof f=="number"&&(n.minItems=f),typeof h=="number"&&(n.maxItems=h)};function Pg(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let h=e.get(t)?.def;if(!h)return t;let v=Pg(e,h,r);return v===h?t:v}for(let h of["anyOf","oneOf"]){let v=t[h];if(!Array.isArray(v))continue;let y=v.map(R=>Pg(e,R,r));y.some((R,w)=>R!==v[w])&&(t={...t,[h]:y})}let i=Array.isArray(t.type)?t.type:[t.type],n=!i.includes("string")&&i.some(h=>h==="number"||h==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!o?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:m,id:p,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),n&&(f.type="string",o||(f.pattern=(i.includes("number")?pn:la).source)),f}var Og=new WeakMap;function DO(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let r=new Map;for(let i of Og.get(e)??[]){let n=e.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let a=Pg(t,o,new Set);a!==o&&r.set(o,a)}if(r.size)for(let i of e.seen.values())for(let n of[i.schema,i.def]){let o=n&&r.get(n.propertyNames);o&&(n.propertyNames=o)}}var av=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,s=Ce(a).patterns;if(o.mode==="loose"&&s&&s.size>0){let u=he(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let m of s)Ue(n.patternProperties,fk(m).source,u)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=he(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let u=Og.get(t);u||(u=[],Og.set(t,u),t.deferred.push(()=>DO(t))),u.push(e)}n.additionalProperties=he(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let c=a._zod.values,l=t.io==="input"&&Oa(o.valueType)!==void 0;if(c&&!o.partial&&!l){let u=[...c].filter(m=>typeof m=="string"||typeof m=="number");u.length>0&&(n.required=u.map(String))}},sv=(e,t,r,i)=>{let n=e._zod.def,o=he(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},cv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},lv=Symbol();function hk(e,t,r,i,n){let o=!1,a=JSON.stringify(e,(s,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Oe(t,r,i,n,"BigInt defaults cannot be represented in JSON Schema"),lv):JSON.parse(a)}var uv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a=hk(n.defaultValue,e,t,r,i);a!==lv&&(r.default=a)},dv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);if(o.ref=n.innerType,t.io!=="input")return;let a=hk(n.defaultValue,e,t,r,i);a!==lv&&(r._prefault=a)},mv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{Oe(e,t,r,i,"Dynamic catch values are not supported in JSON Schema");return}r.default=a},pv=(e,t,r,i)=>{let n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;he(a,t,i);let s=t.seen.get(e);s.ref=a},fv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},hv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},ql=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},gv=(e,t,r,i)=>{let n=e._zod.innerType;he(n,t,i);let o=t.seen.get(e);o.ref=n},Dl={string:Cg,number:Ng,boolean:Ag,bigint:jg,symbol:Ug,null:Lg,undefined:Dg,void:Mg,never:qg,any:Vg,unknown:Zg,date:Fg,enum:Kg,literal:Bg,nan:Jg,template_literal:Hg,file:Yg,success:Gg,custom:Wg,function:Xg,transform:Qg,map:ev,set:tv,array:nv,object:rv,union:Ml,intersection:iv,tuple:ov,record:av,nullable:sv,nonoptional:cv,default:uv,prefault:dv,catch:mv,pipe:pv,readonly:fv,promise:hv,optional:ql,lazy:gv};function xr(e,t){if("_idmap"in e){let i=e,n=An({...t,processors:Dl}),o={};for(let c of i._idmap.entries()){let[l,u]=c;he(u,n)}let a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(let c of i._idmap.entries()){let[l,u]=c;jn(n,u),Ue(a,l,Un(n,u))}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let r=An({...t,processors:Dl});return he(e,r),jn(r,e),Un(r,e)}var Vl=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=An({processors:Dl,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 he(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)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,jn(this.ctx,t);let i=Un(this.ctx,t),{"~standard":n,...o}=i;return o}};var gk={};var Hi={};un(Hi,{ZodAny:()=>Nv,ZodArray:()=>Lv,ZodBase64:()=>cu,ZodBase64URL:()=>lu,ZodBigInt:()=>Ji,ZodBigIntFormat:()=>mu,ZodBoolean:()=>Bi,ZodCIDRv4:()=>au,ZodCIDRv6:()=>su,ZodCUID:()=>Ql,ZodCUID2:()=>eu,ZodCatch:()=>ry,ZodCodec:()=>qa,ZodCreditCard:()=>xv,ZodCustom:()=>Va,ZodCustomStringFormat:()=>Pr,ZodDate:()=>ja,ZodDefault:()=>Wv,ZodDiscriminatedUnion:()=>Mv,ZodE164:()=>uu,ZodEmail:()=>Hl,ZodEmoji:()=>Wl,ZodEnum:()=>Vi,ZodExactOptional:()=>gu,ZodFile:()=>Jv,ZodFunction:()=>my,ZodGUID:()=>Gl,ZodIBAN:()=>Ev,ZodIPv4:()=>iu,ZodIPv6:()=>ou,ZodISODate:()=>Dn,ZodISODateTime:()=>Ln,ZodISODuration:()=>qn,ZodISOTime:()=>Mn,ZodInstanceOf:()=>hy,ZodIntersection:()=>qv,ZodJWT:()=>du,ZodKSUID:()=>ru,ZodLazy:()=>uy,ZodLiteral:()=>Bv,ZodMAC:()=>Tv,ZodMap:()=>Fv,ZodNaN:()=>oy,ZodNanoID:()=>Xl,ZodNever:()=>jv,ZodNonOptional:()=>vu,ZodNull:()=>Cv,ZodNullable:()=>Gv,ZodNumber:()=>Ki,ZodNumberFormat:()=>Or,ZodObject:()=>Ua,ZodOptional:()=>Da,ZodPipe:()=>Ma,ZodPrefault:()=>Qv,ZodPreprocess:()=>ay,ZodPromise:()=>dy,ZodReadonly:()=>sy,ZodRecord:()=>qi,ZodSet:()=>Kv,ZodString:()=>Zi,ZodStringFormat:()=>ge,ZodSuccess:()=>ny,ZodSymbol:()=>Pv,ZodTemplateLiteral:()=>ly,ZodTransform:()=>Hv,ZodTuple:()=>Vv,ZodType:()=>ue,ZodULID:()=>tu,ZodURL:()=>Aa,ZodUUID:()=>Qt,ZodUndefined:()=>Ov,ZodUnion:()=>La,ZodUnknown:()=>Av,ZodVoid:()=>Uv,ZodXID:()=>nu,ZodXor:()=>Dv,_ZodString:()=>Jl,_default:()=>Xv,_function:()=>bR,any:()=>pu,array:()=>b,base64:()=>Uk,base64url:()=>Lk,bigint:()=>Xk,boolean:()=>U,catch:()=>iy,check:()=>$R,cidrv4:()=>Ak,cidrv6:()=>jk,codec:()=>vR,creditCard:()=>Mk,cuid:()=>Ik,cuid2:()=>Tk,currencyCode:()=>Bk,custom:()=>kR,date:()=>iR,describe:()=>RR,discriminatedUnion:()=>Vn,e164:()=>Dk,email:()=>Yl,emoji:()=>wk,enum:()=>Q,exactOptional:()=>Yv,file:()=>pR,float32:()=>Hk,float64:()=>Yk,function:()=>bR,guid:()=>Sk,hash:()=>Jk,hex:()=>Kk,hostname:()=>Fk,httpUrl:()=>Rk,iban:()=>qk,instanceof:()=>zR,int:()=>Kl,int32:()=>Gk,int64:()=>Qk,intersection:()=>At,invertCodec:()=>yR,ipv4:()=>Ok,ipv6:()=>Nk,json:()=>TR,jwt:()=>Vk,keyof:()=>oR,ksuid:()=>Pk,lazy:()=>Zn,literal:()=>$,looseObject:()=>K,looseRecord:()=>lR,mac:()=>Ck,map:()=>uR,meta:()=>wR,nan:()=>gR,nanoid:()=>zk,nativeEnum:()=>mR,never:()=>fu,nonoptional:()=>ty,null:()=>en,nullable:()=>Na,nullish:()=>fR,number:()=>x,object:()=>g,optional:()=>J,partialRecord:()=>cR,pipe:()=>Bl,prefault:()=>ey,preprocess:()=>gn,promise:()=>_R,readonly:()=>cy,record:()=>A,refine:()=>py,set:()=>dR,strictObject:()=>aR,string:()=>d,stringFormat:()=>Zk,stringbool:()=>IR,success:()=>hR,superRefine:()=>fy,symbol:()=>tR,templateLiteral:()=>SR,transform:()=>hu,tuple:()=>Zv,uint32:()=>Wk,uint64:()=>eR,ulid:()=>xk,undefined:()=>nR,union:()=>L,unknown:()=>B,url:()=>Fi,uuid:()=>_k,uuidv4:()=>bk,uuidv6:()=>$k,uuidv7:()=>kk,void:()=>rR,xid:()=>Ek,xor:()=>sR});var Zl={};un(Zl,{endsWith:()=>Ei,gt:()=>Wt,gte:()=>vt,includes:()=>Ti,length:()=>Ir,lowercase:()=>zi,lt:()=>Gt,lte:()=>gt,maxLength:()=>zr,maxSize:()=>Nn,mime:()=>Oi,minLength:()=>fn,minSize:()=>Xt,multipleOf:()=>Cn,negative:()=>Al,nonnegative:()=>Ul,nonpositive:()=>jl,normalize:()=>Ci,overwrite:()=>Nt,positive:()=>Nl,properties:()=>Pi,property:()=>Ll,regex:()=>wi,size:()=>wr,slugify:()=>Ui,startsWith:()=>xi,toLowerCase:()=>Ai,toUpperCase:()=>ji,trim:()=>Ni,uppercase:()=>Ii});var vk=new WeakSet([Object.prototype,Error.prototype]);function Fl(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=r(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var yk=(e,t)=>{hp.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);vk.has(r)||(vk.add(r),Fl(r,"format",i=>n=>oa(i,n)),Fl(r,"flatten",i=>n=>ia(i,n)),Fl(r,"addIssue",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,di,2)}),Fl(r,"addIssues",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,di,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},qO=S("ZodError",yk),ut=S("ZodError",yk,void 0,{Parent:Error});var vv=gi(ut),yv=vi(ut),Ca=yi(ut),Sv=Si(ut),_v=_c(ut),bv=bc(ut),$v=$c(ut),kv=kc(ut),Rv=Rc(ut),wv=wc(ut),zv=zc(ut),Iv=Ic(ut);function ZO(){Ne.localeError||ke(ol())}function Er(){Ne.memoizer||ke({memoizer:ka()})}var ue=S("ZodType",(e,t)=>(ZO(),oe.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(z.mergeDefs(t,{checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return pe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(py(e,t))},superRefine(e,t){return this.check(fy(e,t))},overwrite(e){return this.check(Nt(e))},optional(){return J(this)},exactOptional(){return Yv(this)},nullable(){return Na(this)},nullish(){return J(Na(this))},nonoptional(e){return ty(this,e)},array(){return b(this)},or(e){return L([this,e])},and(e){return At(this,e)},transform(e){return Bl(this,hu(e))},default(e){return Xv(this,e)},prefault(e){return ey(this,e)},catch(e){return iy(this,e)},pipe(e){return Bl(this,e)},readonly(){return cy(this)},describe(e){let t=this.clone();return Le.add(t,{description:e}),t},meta(...e){if(e.length===0)return Le.get(this);let t=this.clone();return Le.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return z.hide(this,"~standard",{...Lc(this),jsonSchema:{input:Li(this,"input"),output:Li(this,"output")}})},set"~standard"(e){z.own(this,"~standard",e)},parse:function e(t,r){return vv(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await yv(this,t,r,{callee:e})},safeParse(e,t){return Ca(this,e,t)},async safeParseAsync(e,t){return Sv(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){z.own(this,"spa",e)},validate(e,t){return aa(this,e,t)},validateAsync(e,t){return sa(this,e,t)},encode:function e(t,r){return _v(this,t,r,{callee:e})},decode:function e(t,r){return bv(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await $v(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await kv(this,t,r,{callee:e})},safeEncode(e,t){return Rv(this,e,t)},safeDecode(e,t){return wv(this,e,t)},async safeEncodeAsync(e,t){return zv(this,e,t)},async safeDecodeAsync(e,t){return Iv(this,e,t)},toJSONSchema(e){return Eg(this,{})(e)},get description(){return Le.get(this)?.description},get _def(){return this._zod.def}}),Jl=S("_ZodString",(e,t)=>{br.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cg(e,r,i,n)},z.derived({format:e=>Ce(e).format??null,minLength:e=>Ce(e).minimum??null,maxLength:e=>Ce(e).maximum??null},{regex(...e){return this.check(wi(...e))},includes(...e){return this.check(Ti(...e))},startsWith(...e){return this.check(xi(...e))},endsWith(...e){return this.check(Ei(...e))},min(...e){return this.check(fn(...e))},max(...e){return this.check(zr(...e))},length(...e){return this.check(Ir(...e))},nonempty(...e){return this.check(fn(1,...e))},lowercase(e){return this.check(zi(e))},uppercase(e){return this.check(Ii(e))},trim(){return this.check(Ni())},normalize(...e){return this.check(Ci(...e))},toLowerCase(){return this.check(Ai())},toUpperCase(){return this.check(ji())},slugify(){return this.check(Ui())}})),Zi=S("ZodString",(e,t)=>{br.init(e,t),Jl.init(e,t)},{email(e){return this.check(pl(Hl,e))},url(e){return this.check(za(Aa,e))},jwt(e){return this.check(Cl(du,e))},emoji(e){return this.check(Sl(Wl,e))},guid(e){return this.check(fl(Gl,e))},uuid(e){return this.check(hl(Qt,e))},uuidv4(e){return this.check(gl(Qt,e))},uuidv6(e){return this.check(vl(Qt,e))},uuidv7(e){return this.check(yl(Qt,e))},nanoid(e){return this.check(_l(Xl,e))},cuid(e){return this.check(bl(Ql,e))},cuid2(e){return this.check($l(eu,e))},ulid(e){return this.check(kl(tu,e))},base64(e){return this.check(El(cu,e))},base64url(e){return this.check(Pl(lu,e))},xid(e){return this.check(Rl(nu,e))},ksuid(e){return this.check(wl(ru,e))},ipv4(e){return this.check(zl(iu,e))},ipv6(e){return this.check(Il(ou,e))},cidrv4(e){return this.check(Tl(au,e))},cidrv6(e){return this.check(xl(su,e))},e164(e){return this.check(Ol(uu,e))},datetime(e){return this.check(Ia(Ln,e))},date(e){return this.check(Ta(Dn,e))},time(e){return this.check(xa(Mn,e))},duration(e){return this.check(Ea(qn,e))}});function d(e){return Bh(Zi,e)}var ge=S("ZodStringFormat",(e,t)=>{fe.init(e,t),Jl.init(e,t)}),Ln=S("ZodISODateTime",(e,t)=>{jf.init(e,t),ge.init(e,t)}),Dn=S("ZodISODate",(e,t)=>{Uf.init(e,t),ge.init(e,t)}),Mn=S("ZodISOTime",(e,t)=>{Lf.init(e,t),ge.init(e,t)}),qn=S("ZodISODuration",(e,t)=>{Df.init(e,t),ge.init(e,t)}),Hl=S("ZodEmail",(e,t)=>{wf.init(e,t),ge.init(e,t)});function Yl(e){return pl(Hl,e)}var Gl=S("ZodGUID",(e,t)=>{kf.init(e,t),ge.init(e,t)});function Sk(e){return fl(Gl,e)}var Qt=S("ZodUUID",(e,t)=>{Rf.init(e,t),ge.init(e,t)});function _k(e){return hl(Qt,e)}function bk(e){return gl(Qt,e)}function $k(e){return vl(Qt,e)}function kk(e){return yl(Qt,e)}var Aa=S("ZodURL",(e,t)=>{Tf.init(e,t),ge.init(e,t)});function Fi(e){return za(Aa,e)}function Rk(e){return za(Aa,{protocol:ca,hostname:Lp,...z.normalizeParams(e)})}var Wl=S("ZodEmoji",(e,t)=>{xf.init(e,t),ge.init(e,t)});function wk(e){return Sl(Wl,e)}var Xl=S("ZodNanoID",(e,t)=>{Ef.init(e,t),ge.init(e,t)});function zk(e){return _l(Xl,e)}var Ql=S("ZodCUID",(e,t)=>{Pf.init(e,t),ge.init(e,t)});function Ik(e){return bl(Ql,e)}var eu=S("ZodCUID2",(e,t)=>{Of.init(e,t),ge.init(e,t)});function Tk(e){return $l(eu,e)}var tu=S("ZodULID",(e,t)=>{Cf.init(e,t),ge.init(e,t)});function xk(e){return kl(tu,e)}var nu=S("ZodXID",(e,t)=>{Nf.init(e,t),ge.init(e,t)});function Ek(e){return Rl(nu,e)}var ru=S("ZodKSUID",(e,t)=>{Af.init(e,t),ge.init(e,t)});function Pk(e){return wl(ru,e)}var iu=S("ZodIPv4",(e,t)=>{Mf.init(e,t),ge.init(e,t)});function Ok(e){return zl(iu,e)}var Tv=S("ZodMAC",(e,t)=>{Vf.init(e,t),ge.init(e,t)});function Ck(e){return Hh(Tv,e)}var ou=S("ZodIPv6",(e,t)=>{qf.init(e,t),ge.init(e,t)});function Nk(e){return Il(ou,e)}var au=S("ZodCIDRv4",(e,t)=>{Zf.init(e,t),ge.init(e,t)});function Ak(e){return Tl(au,e)}var su=S("ZodCIDRv6",(e,t)=>{Ff.init(e,t),ge.init(e,t)});function jk(e){return xl(su,e)}var cu=S("ZodBase64",(e,t)=>{Kf.init(e,t),ge.init(e,t)});function Uk(e){return El(cu,e)}var lu=S("ZodBase64URL",(e,t)=>{Bf.init(e,t),ge.init(e,t)});function Lk(e){return Pl(lu,e)}var uu=S("ZodE164",(e,t)=>{Jf.init(e,t),ge.init(e,t)});function Dk(e){return Ol(uu,e)}var xv=S("ZodCreditCard",(e,t)=>{Hf.init(e,t),ge.init(e,t)});function Mk(e){return Yh(xv,e)}var Ev=S("ZodIBAN",(e,t)=>{Yf.init(e,t),ge.init(e,t)});function qk(e){return Gh(Ev,e)}var du=S("ZodJWT",(e,t)=>{Gf.init(e,t),ge.init(e,t)});function Vk(e){return Cl(du,e)}var Pr=S("ZodCustomStringFormat",(e,t)=>{Wf.init(e,t),ge.init(e,t)});function Zk(e,t,r={}){return Tr(Pr,e,t,r)}function Fk(e){return Tr(Pr,"hostname",Up,e)}function Kk(e){return Tr(Pr,"hex",Xp,e)}function Bk(e){return Tr(Pr,"currency_code",Mp,e)}function Jk(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=Rt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Tr(Pr,i,n,t)}var Ki=S("ZodNumber",(e,t)=>{Hc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ng(e,r,i,n),e.isFinite=!0},z.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:r}=Ce(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:r}=Ce(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:r}=Ce(e);return!!t||!!r?.some(Number.isSafeInteger)},format:e=>Ce(e).format??null},{gt(e,t){return this.check(Wt(e,t))},gte(e,t){return this.check(vt(e,t))},min(e,t){return this.check(vt(e,t))},lt(e,t){return this.check(Gt(e,t))},lte(e,t){return this.check(gt(e,t))},max(e,t){return this.check(gt(e,t))},int(e){return this.check(Kl(e))},safe(e){return this.check(Kl(e))},positive(e){return this.check(Wt(0,e))},nonnegative(e){return this.check(vt(0,e))},negative(e){return this.check(Gt(0,e))},nonpositive(e){return this.check(gt(0,e))},multipleOf(e,t){return this.check(Cn(e,t))},step(e,t){return this.check(Cn(e,t))},finite(){return this}}));function x(e){return Xh(Ki,e)}var Or=S("ZodNumberFormat",(e,t)=>{Xf.init(e,t),Ki.init(e,t)});function Kl(e){return eg(Or,e)}function Hk(e){return tg(Or,e)}function Yk(e){return ng(Or,e)}function Gk(e){return rg(Or,e)}function Wk(e){return ig(Or,e)}var Bi=S("ZodBoolean",(e,t)=>{va.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n)});function U(e){return og(Bi,e)}var Ji=S("ZodBigInt",(e,t)=>{Yc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n)},z.derived({minValue:e=>Ce(e).minimum??null,maxValue:e=>Ce(e).maximum??null,format:e=>Ce(e).format??null},{gte(e,t){return this.check(vt(e,t))},min(e,t){return this.check(vt(e,t))},gt(e,t){return this.check(Wt(e,t))},lt(e,t){return this.check(Gt(e,t))},lte(e,t){return this.check(gt(e,t))},max(e,t){return this.check(gt(e,t))},positive(e){return this.check(Wt(BigInt(0),e))},negative(e){return this.check(Gt(BigInt(0),e))},nonpositive(e){return this.check(gt(BigInt(0),e))},nonnegative(e){return this.check(vt(BigInt(0),e))},multipleOf(e,t){return this.check(Cn(e,t))}}));function Xk(e){return sg(Ji,e)}var mu=S("ZodBigIntFormat",(e,t)=>{Qf.init(e,t),Ji.init(e,t)});function Qk(e){return lg(mu,e)}function eR(e){return ug(mu,e)}var Pv=S("ZodSymbol",(e,t)=>{eh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ug(e,r,i,n)});function tR(e){return dg(Pv,e)}var Ov=S("ZodUndefined",(e,t)=>{th.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n)});function nR(e){return mg(Ov,e)}var Cv=S("ZodNull",(e,t)=>{nh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n)});function en(e){return pg(Cv,e)}var Nv=S("ZodAny",(e,t)=>{rh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vg(e,r,i,n)});function pu(){return fg(Nv)}var Av=S("ZodUnknown",(e,t)=>{ih.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zg(e,r,i,n)});function B(){return hg(Av)}var jv=S("ZodNever",(e,t)=>{oh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qg(e,r,i,n)});function fu(e){return gg(jv,e)}var Uv=S("ZodVoid",(e,t)=>{ah.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n)});function rR(e){return vg(Uv,e)}var ja=S("ZodDate",(e,t)=>{sh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fg(e,r,i,n),e.min=(r,i)=>e.check(vt(r,i)),e.max=(r,i)=>e.check(gt(r,i))},z.derived({minDate:e=>{let{minimum:t}=Ce(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Ce(e);return t?new Date(t):null}},{}));function iR(e){return yg(ja,e)}var Lv=S("ZodArray",(e,t)=>{Er(),lh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>nv(e,r,i,n),e.element=t.element},{min(e,t){return this.check(fn(e,t))},nonempty(e){return this.check(fn(1,e))},max(e,t){return this.check(zr(e,t))},length(e,t){return this.check(Ir(e,t))},unwrap(){return this.element}});function b(e,t){return bg(Lv,e,t)}function oR(e){let t=e._zod.def.shape;return Q(Object.keys(t))}var Ua=S("ZodObject",(e,t)=>{Er(),uh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>rv(e,r,i,n),z.installLazyProp(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return Q(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(z.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(z.mergeDefs(this._zod.def,{catchall:B()}))},loose(){return this.clone(z.mergeDefs(this._zod.def,{catchall:B()}))},strict(){return this.clone(z.mergeDefs(this._zod.def,{catchall:fu()}))},strip(){return this.clone(z.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return z.extend(this,e)},safeExtend(e){return z.safeExtend(this,e)},merge(e){return z.merge(this,e)},pick(e){return z.pick(this,e)},omit(e){return z.omit(this,e)},partial(...e){return z.partial(Da,this,e[0])},exactPartial(...e){return z.partial(gu,this,e[0],"exactPartial")},required(...e){return z.required(vu,this,e[0])}});function g(e,t){let r={type:"object",shape:e??{},...z.normalizeParams(t)};return new Ua(r)}function aR(e,t){return new Ua({type:"object",shape:e,catchall:fu(),...z.normalizeParams(t)})}function K(e,t){return new Ua({type:"object",shape:e,catchall:B(),...z.normalizeParams(t)})}var La=S("ZodUnion",(e,t)=>{ya.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ml(e,r,i,n),e.options=t.options});function L(e,t){return new La({type:"union",options:e,...z.normalizeParams(t)})}var Dv=S("ZodXor",(e,t)=>{La.init(e,t),dh.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ml(e,r,i,n),e.options=t.options});function sR(e,t){return new Dv({type:"union",options:e,inclusive:!1,...z.normalizeParams(t)})}var Mv=S("ZodDiscriminatedUnion",(e,t)=>{La.init(e,t),ph.init(e,t)});function Vn(e,t,r){return new Mv({type:"union",options:t,discriminator:e,...z.normalizeParams(r)})}var qv=S("ZodIntersection",(e,t)=>{fh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>iv(e,r,i,n)});function At(e,t){return new qv({type:"intersection",left:e,right:t})}var Vv=S("ZodTuple",(e,t)=>{Er(),Gc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ov(e,r,i,n)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Da({type:"optional",innerType:t}))})}});function Zv(e,t,r){let i=t instanceof oe,n=i?r:t,o=i?t:null;return new Vv({type:"tuple",items:e,rest:o,...z.normalizeParams(n)})}var qi=S("ZodRecord",(e,t)=>{Er(),hh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>av(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function A(e,t,r){return!t||!t._zod?new qi({type:"record",keyType:d(),valueType:e,...z.normalizeParams(t)}):new qi({type:"record",keyType:e,valueType:t,...z.normalizeParams(r)})}function cR(e,t,r){return new qi({type:"record",keyType:e,valueType:t,...z.normalizeParams(r),partial:!0})}function lR(e,t,r){return new qi({type:"record",keyType:e,valueType:t,mode:"loose",...z.normalizeParams(r)})}var Fv=S("ZodMap",(e,t)=>{Er(),gh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ev(e,r,i,n),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(Nn(...r)),e.size=(...r)=>e.check(wr(...r))});function uR(e,t,r){return new Fv({type:"map",keyType:e,valueType:t,...z.normalizeParams(r)})}var Kv=S("ZodSet",(e,t)=>{Er(),vh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>tv(e,r,i,n),e.min=(...r)=>e.check(Xt(...r)),e.nonempty=r=>e.check(Xt(1,r)),e.max=(...r)=>e.check(Nn(...r)),e.size=(...r)=>e.check(wr(...r))});function dR(e,t){return new Kv({type:"set",valueType:e,...z.normalizeParams(t)})}var Vi=S("ZodEnum",(e,t)=>{yh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Kg(e,i,n,o),e.enum=t.entries,e.options=[...e._zod.values];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 Vi({...t,checks:[],...z.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 Vi({...t,checks:[],...z.normalizeParams(n),entries:o})}});function Q(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Vi({type:"enum",entries:r,...z.normalizeParams(t)})}function mR(e,t){return new Vi({type:"enum",entries:e,...z.normalizeParams(t)})}var Bv=S("ZodLiteral",(e,t)=>{Sh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bg(e,r,i,n),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 $(e,t){return new Bv({type:"literal",values:Array.isArray(e)?e:[e],...z.normalizeParams(t)})}var Jv=S("ZodFile",(e,t)=>{_h.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yg(e,r,i,n),e.min=(r,i)=>e.check(Xt(r,i)),e.max=(r,i)=>e.check(Nn(r,i)),e.mime=(r,i)=>e.check(Oi(Array.isArray(r)?r:[r],i))});function pR(e){return $g(Jv,e)}var Hv=S("ZodTransform",(e,t)=>{Er(),bh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qg(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Pn(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(z.issue(o,r.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=r.value),a.inst??(a.inst=e),r.issues.push(z.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 hu(e){return new Hv({type:"transform",transform:e})}var Da=S("ZodOptional",(e,t)=>{Wc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ql(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function J(e){return new Da({type:"optional",innerType:e})}var gu=S("ZodExactOptional",(e,t)=>{$h.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ql(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Yv(e){return new gu({type:"optional",innerType:e})}var Gv=S("ZodNullable",(e,t)=>{kh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>sv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Na(e){return new Gv({type:"nullable",innerType:e})}function fR(e){return J(Na(e))}var Wv=S("ZodDefault",(e,t)=>{Rh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>uv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Xv(e,t){return new Wv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}var Qv=S("ZodPrefault",(e,t)=>{wh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>dv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function ey(e,t){return new Qv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}var vu=S("ZodNonOptional",(e,t)=>{zh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>cv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function ty(e,t){return new vu({type:"nonoptional",innerType:e,...z.normalizeParams(t)})}var ny=S("ZodSuccess",(e,t)=>{Ih.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function hR(e){return new ny({type:"success",innerType:e})}var ry=S("ZodCatch",(e,t)=>{Th.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>mv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function iy(e,t){return new ry({type:"catch",innerType:e,catchValue:typeof t=="function"?t:z.constantCatch(t)})}var oy=S("ZodNaN",(e,t)=>{xh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jg(e,r,i,n)});function gR(e){return _g(oy,e)}var Ma=S("ZodPipe",(e,t)=>{Xc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pv(e,r,i,n),e.in=t.in,e.out=t.out});function Bl(e,t){return new Ma({type:"pipe",in:e,out:t})}var qa=S("ZodCodec",(e,t)=>{Ma.init(e,t),Sa.init(e,t)});function vR(e,t,r){return new qa({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function yR(e){let t=e._zod.def;return new qa({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var ay=S("ZodPreprocess",(e,t)=>{Ma.init(e,t),Eh.init(e,t)}),sy=S("ZodReadonly",(e,t)=>{Ph.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function cy(e){return new sy({type:"readonly",innerType:e})}var ly=S("ZodTemplateLiteral",(e,t)=>{Oh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hg(e,r,i,n)});function SR(e,t){return new ly({type:"template_literal",parts:e,...z.normalizeParams(t)})}var uy=S("ZodLazy",(e,t)=>{_a.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>gv(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Zn(e){return new uy({type:"lazy",getter:e})}var dy=S("ZodPromise",(e,t)=>{Nh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function _R(e){return new dy({type:"promise",innerType:e})}var my=S("ZodFunction",(e,t)=>{Ch.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xg(e,r,i,n)});function bR(e){return new my({type:"function",input:Array.isArray(e?.input)?Zv(e?.input):e?.input??b(B()),output:e?.output??B()})}var Va=S("ZodCustom",(e,t)=>{Ah.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wg(e,r,i,n)});function $R(e){let t=new ve({check:"custom"});return t._zod.check=e,t}function kR(e,t){return kg(Va,e??(()=>!0),t)}function py(e,t={}){return Rg(Va,e,t)}function fy(e,t){return wg(e,t)}var RR=zg,wR=Ig,hy=S("ZodInstanceOf",(e,t)=>{Va.init(e,t)},{properties(e,t){return this.check(Pi(e,t))}});function zR(e,t={}){let r=new hy({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...z.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 IR=(...e)=>Tg({Codec:qa,Boolean:Bi,String:Zi},...e);function TR(e){let t=Zn(()=>L([d(e),x(),U(),en(),b(t),A(d(),t)]));return t}function gn(e,t){return new ay({type:"pipe",in:hu(e),out:t})}var vy={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 FO(e){ke({customError:e})}function KO(){return ke().customError}var gy;gy||(gy={});var wt={};un(wt,{ZodISODate:()=>Dn,ZodISODateTime:()=>Ln,ZodISODuration:()=>qn,ZodISOTime:()=>Mn,date:()=>JO,datetime:()=>BO,duration:()=>YO,time:()=>HO});function BO(e){return Ia(Ln,e)}function JO(e){return Ta(Dn,e)}function HO(e){return xa(Mn,e)}function YO(e){return Ea(qn,e)}var q={...Hi,...Zl,iso:wt},GO=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 WO(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 xR(e,t){return e.map((r,i)=>i<t?r:r.optional())}function XO(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function QO(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]===void 0?void 0:XO(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 eC(e,t){return q.transform(i=>i).check(i=>{let n=i.value;if(typeof n!="object"||n===null||Array.isArray(n))return;let o=Object.getOwnPropertyNames(n);if(t.minProperties!==void 0&&o.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:n,inst:e,continue:!0}),t.maxProperties!==void 0&&o.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:n,inst:e,continue:!0}),t.keySchema)for(let a of o){let s=t.keySchema.safeParse(a);s.success||i.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function yy(e,t){if(e===null)return"z";let r=typeof e;if(r!=="object"){if(r==="number"&&Number.isNaN(e))return null;let i=String(e);return`${r[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let o=[];for(let a of e){let s=yy(a,t);if(s===null)return null;o.push(s)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),n=[];for(let o of i){let a=yy(e[o],t);if(a===null)return null;n.push(`${o.length}:${o}=${a}`)}return`o${n.length}:{${n.join(",")}}`}finally{t.delete(e)}}var tC=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),nC=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Za(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Za):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,r])=>tC.has(t)?Za(r):!nC.has(t)||typeof r!="object"||r===null?!1:Object.values(r).some(Za))}function ER(e){return e===1?"element":"elements"}function rC(e,t){return q.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let o=new Map;for(let a=0;a<n.length;a++){let s=yy(n[a],new Set);if(s===null)continue;let c=o.get(s);if(c===void 0){o.set(s,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${c}`,input:n,path:[a],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let c of n)if(t.containsSchema.safeParse(c).success&&++s>=a)break;s<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${ER(o)}; found ${s}`,input:n,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${ER(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function PR(e,t){if(e!==!1)return e===void 0||e===!0?q.any():nt(e,t)}var iC=/^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/;function OR(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return q.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 q.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=QO(n,t),a=nt(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===!0&&n.length===1&&n[0]===null)return q.null();if(n.length===0)return q.never();if(n.length===1)return q.literal(n[0]);if(n.every(a=>typeof a=="string"))return q.enum(n);let o=n.map(a=>q.literal(a));return o.length<2?o[0]:q.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return OR(a,t)});return n.length===0?q.never():n.length===1?n[0]:q.union(n)}if(!r)return q.any();let i;switch(r){case"string":{let n=q.string();if(e.format){let o=e.format;o==="email"?n=n.check(q.email()):o==="uri"||o==="uri-reference"?n=n.check(q.url()):o==="uuid"||o==="guid"?n=n.check(q.uuid()):o==="date-time"?n=n.check(q.iso.datetime({offset:!0})):o==="date"?n=n.check(q.iso.date()):o==="time"?n=n.check(q.regex(iC)):o==="duration"?n=n.check(q.iso.duration()):o==="hostname"?n=n.check(q.hostname()):o==="ipv4"?n=n.check(q.ipv4()):o==="ipv6"?n=n.check(q.ipv6()):o==="mac"?n=n.check(q.mac()):o==="cidr"?n=n.check(q.cidrv4()):o==="cidr-v6"?n=n.check(q.cidrv6()):o==="base64"?n=n.check(q.base64()):o==="base64url"?n=n.check(q.base64url()):o==="e164"?n=n.check(q.e164()):o==="credit_card"?n=n.check(q.creditCard()):o==="iban"?n=n.check(q.iban()):o==="jwt"?n=n.check(q.jwt()):o==="emoji"?n=n.check(q.emoji()):o==="nanoid"?n=n.check(q.nanoid()):o==="cuid"?n=n.check(q.cuid()):o==="cuid2"?n=n.check(q.cuid2()):o==="ulid"?n=n.check(q.ulid()):o==="xid"?n=n.check(q.xid()):o==="ksuid"&&(n=n.check(q.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"?q.number().int():q.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=q.boolean();break}case"null":{i=q.null();break}case"object":{let n={},o=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?nt(e.additionalProperties,t):void 0;for(let[m,p]of Object.entries(o)){let f=nt(p,t);Ue(n,m,a.has(m)?f:f.optional())}if(e.patternProperties){let m=e.patternProperties,p=Object.keys(m),f=[];for(let v of p){let y=nt(m[v],t),R=q.string().regex(new RegExp(v));f.push(q.looseRecord(R,y))}let h=[];if(Object.keys(n).length>0&&h.push(q.object(n).passthrough()),h.push(...f),h.length===0)i=q.object({}).passthrough();else if(h.length===1)i=h[0];else{let v=q.intersection(h[0],h[1]);for(let y=2;y<h.length;y++)v=q.intersection(v,h[y]);i=v}if(e.additionalProperties===!1){let v=Object.keys(n),y=p.map(w=>new RegExp(w)),R=i;i=i.check(w=>{if(!$t(w.value))return;let E=[];for(let D of Object.keys(w.value))v.includes(D)||y.some(F=>F.test(D))||E.push(D);E.length&&w.issues.push({code:"unrecognized_keys",keys:E,input:w.value,inst:R})})}}else{let m=q.object(n);e.additionalProperties===!1?i=m.strict():s?i=m.catchall(s):i=m.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,l=typeof e.minProperties=="number"?e.minProperties:void 0,u=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||l!==void 0||u!==void 0){let m;if(c){let p=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;m=nt(p,t)}i=eC(i,{keySchema:m,minProperties:l,maxProperties:u})}break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=typeof e.minItems=="number"?e.minItems:0,s=n.map(m=>nt(m,t)),c=xR(s,a),l=Array.isArray(o)?void 0:PR(o,t),u=q.tuple(c);i=l?u.rest(l):u,typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(m=>nt(m,t)),c=xR(s,a),l=PR(e.additionalItems,t),u=q.tuple(c);i=l?u.rest(l):u,typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(o!==void 0){let a=nt(o,t),s=q.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=q.array(q.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=rC(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?nt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return i}function nt(e,t){if(typeof e=="boolean")return e?q.any():q.never();let r=OR(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=>nt(l,t)),c=q.union(s);r=i?q.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>nt(l,t)),c=q.xor(s);r=i?q.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:q.any();else{let s=i?r:nt(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)s=q.intersection(s,nt(e.allOf[l],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=q.nullable(r)),e.readOnly===!0&&(r=q.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Za(e.propertyNames)&&(n.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(n[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Za(e.contains)&&(n.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(n[s]=e[s])}for(let s of Object.keys(e))GO.has(s)||Ue(n,s,e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function CR(e,t){if(typeof e=="boolean")return e?q.any():q.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=WO(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Le};return nt(r,o)}var NR=Symbol("z.visit/resolving");function Fa(e,t){let r=typeof t=="function"?t:(a,s)=>{let c=t[a._zod.def.type];return c?c(a,s):a},i=new Map;function n(a){let s=i.get(a);if(s===NR)return new _a({type:"lazy",getter:()=>i.get(a)});if(s!==void 0)return s;i.set(a,NR);let c=o(a),l=r(c,c!==a);return i.set(a,l),l}function o(a){let s=a._zod.def,c=s.type;switch(c){case"object":{let l=s.shape,u=Object.keys(l),m=!1,p={};for(let h of u){let v=n(l[h]);v!==l[h]&&(m=!0),p[h]=v}let f=s.catchall;return s.catchall&&(f=n(s.catchall),f!==s.catchall&&(m=!0)),m?pe(a,{...s,shape:p,catchall:f}):a}case"array":{let l=n(s.element);return l===s.element?a:pe(a,{...s,element:l})}case"tuple":{let l=s.items,u=!1,m=[];for(let f of l){let h=n(f);h!==f&&(u=!0),m.push(h)}let p=s.rest;return s.rest&&(p=n(s.rest),p!==s.rest&&(u=!0)),u?pe(a,{...s,items:m,rest:p}):a}case"record":case"map":{let l=n(s.keyType),u=n(s.valueType);return l===s.keyType&&u===s.valueType?a:pe(a,{...s,keyType:l,valueType:u})}case"set":{let l=n(s.valueType);return l===s.valueType?a:pe(a,{...s,valueType:l})}case"union":{let l=s.options,u=!1,m=[];for(let p of l){let f=n(p);f!==p&&(u=!0),m.push(f)}return u?pe(a,{...s,options:m}):a}case"intersection":{let l=n(s.left),u=n(s.right);return l===s.left&&u===s.right?a:pe(a,{...s,left:l,right:u})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let l=n(s.innerType);return l===s.innerType?a:pe(a,{...s,innerType:l})}case"pipe":{let l=n(s.in),u=n(s.out);return l===s.in&&u===s.out?a:pe(a,{...s,in:l,out:u})}case"function":{let l=n(s.input),u=n(s.output);return l===s.input&&u===s.output?a:pe(a,{...s,input:l,output:u})}case"lazy":{let l=s.getter,{_cachedInner:u,...m}=s;return pe(a,{...m,getter:()=>n(l())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return n(e)}function AR(e){return Fa(e,{object:t=>t.partial(),union:t=>{let r=t._zod.def;return r.discriminator===void 0?t:L(r.options)}})}function oC(e,t){if(!t?.length)return e;let r=e._zod.def;return pe(e,Ot(r,{checks:[...r.checks??[],...t]}),{parent:!0})}function jR(e){return oC(e.out,e.checks)}function aC(e){return e.in._zod.traits.has("$ZodTransform")?jR(e):e.in}function UR(e){return Fa(e,{pipe:t=>aC(t._zod.def),default:(t,r)=>r?J(t._zod.def.innerType):t,catch:(t,r)=>r?t._zod.def.innerType:t})}function LR(e){return Fa(e,{pipe:t=>jR(t._zod.def),prefault:(t,r)=>r?t._zod.def.innerType:t})}var Ka={};un(Ka,{bigint:()=>uC,boolean:()=>lC,date:()=>dC,number:()=>cC,string:()=>sC});function sC(e){return Jh(Zi,e)}function cC(e){return Qh(Ki,e)}function lC(e){return ag(Bi,e)}function uC(e){return cg(Ji,e)}function dC(e){return Sg(ja,e)}var Nr="2025-11-25",yu="2025-03-26",Ba=[Nr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Su="io.modelcontextprotocol/related-task",zt="io.modelcontextprotocol/protocolVersion",Ar="io.modelcontextprotocol/clientInfo",tn="io.modelcontextprotocol/serverInfo",nn="io.modelcontextprotocol/clientCapabilities",jr="io.modelcontextprotocol/subscriptionId",Kn="io.modelcontextprotocol/logLevel";var Ur="2.0";var Fn=Zn(()=>L([d(),x(),U(),en(),A(d(),Fn),b(Fn)])),Re=A(d(),Fn),_y=b(Fn),Ja=L([d(),x().int()]),Ha=d(),_u=g({ttl:x().optional()}),bu=g({taskId:d()}),Ya=K({progressToken:Ja.optional(),[Su]:bu.optional()}),Ee=g({_meta:Ya.optional()}),Lr=Ee.extend({task:_u.optional()}),we=g({method:d(),params:Ee.loose().optional()}),Fe=g({_meta:Ya.optional()}),Ke=g({method:d(),params:Fe.loose().optional()}),Ga=K({get[tn](){return Xi.optional().catch(void 0)}}),_e=K({_meta:Ga.optional()}),Bn=L([d(),x().int()]),Wa=g({jsonrpc:$(Ur),id:Bn,...we.shape}).strict(),Xa=g({jsonrpc:$(Ur),...Ke.shape}).strict(),Yi=g({jsonrpc:$(Ur),id:Bn,result:_e}).strict(),Gi=g({jsonrpc:$(Ur),id:Bn.optional(),error:g({code:x().int(),message:d(),data:B().optional()})}).strict(),Wi=L([Wa,Xa,Yi,Gi]),by=L([Yi,Gi]),Qa=_e.strict(),$u=Fe.extend({requestId:Bn.optional(),reason:d().optional()}),es=Ke.extend({method:$("notifications/cancelled"),params:$u}),ku=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:Q(["light","dark"]).optional()}),Jn=g({icons:b(ku).optional()}),vn=g({name:d(),title:d().optional()}),Xi=vn.extend({...vn.shape,...Jn.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),mC=At(g({applyDefaults:U().optional()}),Re),pC=gn(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,At(g({form:mC.optional(),url:Re.optional()}),Re.optional())),Ru=K({list:Re.optional(),cancel:Re.optional(),requests:K({sampling:K({createMessage:Re.optional()}).optional(),elicitation:K({create:Re.optional()}).optional()}).optional()}),wu=K({list:Re.optional(),cancel:Re.optional(),requests:K({tools:K({call:Re.optional()}).optional()}).optional()}),zu=g({experimental:A(d(),Re).optional(),sampling:g({context:Re.optional(),tools:Re.optional()}).optional(),elicitation:pC.optional(),roots:g({listChanged:U().optional()}).optional(),tasks:Ru.optional(),extensions:A(d(),Re).optional()}),Iu=Ee.extend({protocolVersion:d(),capabilities:zu,clientInfo:Xi}),ts=we.extend({method:$("initialize"),params:Iu}),ns=g({experimental:A(d(),Re).optional(),logging:Re.optional(),completions:Re.optional(),prompts:g({listChanged:U().optional()}).optional(),resources:g({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:g({listChanged:U().optional()}).optional(),tasks:wu.optional(),extensions:A(d(),Re).optional()}),Tu=_e.extend({protocolVersion:d(),capabilities:ns,serverInfo:Xi,instructions:d().optional()}),xu=Ke.extend({method:$("notifications/initialized"),params:Fe.optional()}),Eu=we.extend({method:$("server/discover"),params:Ee.optional()}),Pu=_e.extend({supportedVersions:b(d()),capabilities:ns,instructions:d().optional()}),rs=we.extend({method:$("ping"),params:Ee.optional()}),Ou=g({progress:x(),total:J(x()),message:J(d())}),Cu=g({...Fe.shape,...Ou.shape,progressToken:Ja}),is=Ke.extend({method:$("notifications/progress"),params:Cu}),Hn=Ee.extend({cursor:Ha.optional()}),Yn=we.extend({params:Hn.optional()}),jt=_e.extend({nextCursor:Ha.optional()}),os=g({uri:d(),mimeType:J(d()),_meta:A(d(),B()).optional()}),as=os.extend({text:d()}),$y=d().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ss=os.extend({blob:$y}),Gn=Q(["user","assistant"]),yn=g({audience:b(Gn).optional(),priority:x().min(0).max(1).optional(),lastModified:wt.datetime({offset:!0}).optional()}),Dr=g({...vn.shape,...Jn.shape,uri:d(),description:J(d()),mimeType:J(d()),size:J(x()),annotations:yn.optional(),_meta:J(K({}))}),Nu=g({...vn.shape,...Jn.shape,uriTemplate:d(),description:J(d()),mimeType:J(d()),annotations:yn.optional(),_meta:J(K({}))}),Au=Yn.extend({method:$("resources/list")}),ju=jt.extend({resources:b(Dr)}),Uu=Yn.extend({method:$("resources/templates/list")}),Lu=jt.extend({resourceTemplates:b(Nu)}),Qi=Ee.extend({uri:d()}),Du=Qi,Mu=we.extend({method:$("resources/read"),params:Du}),qu=_e.extend({contents:b(L([as,ss]))}),Vu=Ke.extend({method:$("notifications/resources/list_changed"),params:Fe.optional()}),Zu=Qi,Fu=we.extend({method:$("resources/subscribe"),params:Zu}),Ku=Qi,Bu=we.extend({method:$("resources/unsubscribe"),params:Ku}),cs=g({toolsListChanged:U().optional(),promptsListChanged:U().optional(),resourcesListChanged:U().optional(),resourceSubscriptions:b(d()).optional()}),Ju=Ee.extend({notifications:cs}),Hu=we.extend({method:$("subscriptions/listen"),params:Ju}),Yu=Fe.extend({notifications:cs}),Gu=Ke.extend({method:$("notifications/subscriptions/acknowledged"),params:Yu}),Wu=Ga.extend({[jr]:Bn}),Xu=_e.extend({_meta:Wu}),Qu=Fe.extend({uri:d()}),ed=Ke.extend({method:$("notifications/resources/updated"),params:Qu}),td=g({name:d(),description:J(d()),required:J(U())}),nd=g({...vn.shape,...Jn.shape,description:J(d()),arguments:J(b(td)),_meta:J(K({}))}),rd=Yn.extend({method:$("prompts/list")}),id=jt.extend({prompts:b(nd)}),od=Ee.extend({name:d(),arguments:A(d(),d()).optional()}),ad=we.extend({method:$("prompts/get"),params:od}),eo=g({type:$("text"),text:d(),annotations:yn.optional(),_meta:A(d(),B()).optional()}),to=g({type:$("image"),data:$y,mimeType:d(),annotations:yn.optional(),_meta:A(d(),B()).optional()}),no=g({type:$("audio"),data:$y,mimeType:d(),annotations:yn.optional(),_meta:A(d(),B()).optional()}),sd=g({type:$("tool_use"),name:d(),id:d(),input:A(d(),B()),_meta:A(d(),B()).optional()}),cd=g({type:$("resource"),resource:L([as,ss]),annotations:yn.optional(),_meta:A(d(),B()).optional()}),ld=Dr.extend({type:$("resource_link")}),ro=L([eo,to,no,ld,cd]),ud=g({role:Gn,content:ro}),dd=_e.extend({description:d().optional(),messages:b(ud)}),md=Ke.extend({method:$("notifications/prompts/list_changed"),params:Fe.optional()}),pd=g({title:d().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),fd=g({taskSupport:Q(["required","optional","forbidden"]).optional()}),ls=g({...vn.shape,...Jn.shape,description:d().optional(),inputSchema:g({type:$("object"),properties:A(d(),Fn).optional(),required:b(d()).optional()}).catchall(B()),outputSchema:K({$schema:d().optional()}).optional(),annotations:pd.optional(),execution:fd.optional(),_meta:A(d(),B()).optional()}),hd=Yn.extend({method:$("tools/list")}),gd=jt.extend({tools:b(ls)}),us=_e.extend({content:b(ro).default([]),structuredContent:B().optional(),isError:U().optional()}),ky=us.or(_e.extend({toolResult:B()})),vd=Lr.extend({name:d(),arguments:A(d(),B()).optional()}),yd=we.extend({method:$("tools/call"),params:vd}),Sd=Ke.extend({method:$("notifications/tools/list_changed"),params:Fe.optional()}),Ry=g({autoRefresh:U().default(!0),debounceMs:x().int().nonnegative().default(300)}),Wn=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),_d=Ee.extend({level:Wn}),bd=we.extend({method:$("logging/setLevel"),params:_d}),$d=Fe.extend({level:Wn,logger:d().optional(),data:B()}),kd=Ke.extend({method:$("notifications/message"),params:$d}),Rd=g({name:d().optional()}),wd=g({hints:b(Rd).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),zd=g({mode:Q(["auto","required","none"]).optional()}),Id=g({type:$("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:b(ro),structuredContent:B().optional(),isError:U().optional(),_meta:A(d(),B()).optional()}),Td=Vn("type",[eo,to,no]),Cr=Vn("type",[eo,to,no,sd,Id]),xd=g({role:Gn,content:L([Cr,b(Cr)]),_meta:A(d(),B()).optional()}),Ed=Lr.extend({messages:b(xd),modelPreferences:wd.optional(),systemPrompt:d().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:Re.optional(),tools:b(ls).optional(),toolChoice:zd.optional()}),Pd=we.extend({method:$("sampling/createMessage"),params:Ed}),Od=_e.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens"]).or(d())),role:Gn,content:Td}),Cd=_e.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:Gn,content:L([Cr,b(Cr)])}),ds=g({type:$("boolean"),title:d().optional(),description:d().optional(),default:U().optional()}),io=g({type:$("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:d().optional()}),oo=g({type:Q(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),ms=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),ps=g({type:$("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),fs=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),Nd=L([ms,ps]),hs=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:$("string"),enum:b(d())}),default:b(d()).optional()}),gs=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),Ad=L([hs,gs]),jd=L([fs,Nd,Ad]),vs=L([jd,ds,io,oo]),ao=Lr.extend({mode:$("form").optional(),message:d(),requestedSchema:g({type:$("object"),properties:A(d(),vs),required:b(d()).optional()}).catchall(B())}),Ud=Lr.extend({mode:$("url"),message:d(),elicitationId:d(),url:d().url()}),Ld=L([ao,Ud]),Dd=we.extend({method:$("elicitation/create"),params:Ld}),Md=Fe.extend({elicitationId:d()}),qd=Ke.extend({method:$("notifications/elicitation/complete"),params:Md}),Vd=_e.extend({action:Q(["accept","decline","cancel"]),content:gn(e=>e===null?void 0:e,A(d(),L([d(),x(),U(),b(d())])).optional())}),Zd=g({type:$("ref/resource"),uri:d()}),Fd=g({type:$("ref/prompt"),name:d()}),Kd=Ee.extend({ref:L([Fd,Zd]),argument:g({name:d(),value:d()}),context:g({arguments:A(d(),d()).optional()}).optional()}),Bd=we.extend({method:$("completion/complete"),params:Kd}),Jd=_e.extend({completion:K({values:b(d()).max(100),total:J(x().int()),hasMore:J(U())})}),Hd=g({uri:d().startsWith("file://"),name:d().optional(),_meta:A(d(),B()).optional()}),Yd=we.extend({method:$("roots/list"),params:Ee.optional()}),Gd=_e.extend({roots:b(Hd)}),Wd=Ke.extend({method:$("notifications/roots/list_changed"),params:Fe.optional()}),wy=K({ttl:x().optional(),pollInterval:x().optional()}),Xd=Q(["working","input_required","completed","failed","cancelled"]),Xn=g({taskId:d(),status:Xd,ttl:L([x(),en()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:J(x()),statusMessage:J(d())}),zy=_e.extend({task:Xn}),Qd=Fe.merge(Xn),Iy=Ke.extend({method:$("notifications/tasks/status"),params:Qd}),Ty=we.extend({method:$("tasks/get"),params:Ee.extend({taskId:d()})}),xy=_e.merge(Xn),Ey=we.extend({method:$("tasks/result"),params:Ee.extend({taskId:d()})}),Py=_e.loose(),Oy=Yn.extend({method:$("tasks/list")}),Cy=jt.extend({tasks:b(Xn)}),Ny=we.extend({method:$("tasks/cancel"),params:Ee.extend({taskId:d()})}),Ay=_e.merge(Xn),jy=L([rs,ts,Eu,Bd,bd,ad,rd,Au,Uu,Mu,Fu,Bu,Hu,yd,hd]),Uy=L([es,is,xu,Wd]),Ly=L([Qa,Od,Cd,Vd,Gd]),Dy=L([rs,Pd,Dd,Yd]),My=L([es,is,kd,ed,Vu,Sd,md,Gu,qd]),qy=L([Qa,Tu,Pu,Jd,dd,id,ju,Lu,qu,us,gd,Xu]);var Ae=Fi().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:vy.custom,message:"URL must be parseable",fatal:!0}),ra}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Zy=K({resource:d().url(),authorization_servers:b(Ae).optional(),jwks_uri:d().url().optional(),scopes_supported:b(d()).optional(),bearer_methods_supported:b(d()).optional(),resource_signing_alg_values_supported:b(d()).optional(),resource_name:d().optional(),resource_documentation:d().optional(),resource_policy_uri:d().url().optional(),resource_tos_uri:d().url().optional(),tls_client_certificate_bound_access_tokens:U().optional(),authorization_details_types_supported:b(d()).optional(),dpop_signing_alg_values_supported:b(d()).optional(),dpop_bound_access_tokens_required:U().optional()}),em=K({issuer:d(),authorization_endpoint:Ae,token_endpoint:Ae,registration_endpoint:Ae.optional(),scopes_supported:b(d()).optional(),response_types_supported:b(d()),response_modes_supported:b(d()).optional(),grant_types_supported:b(d()).optional(),token_endpoint_auth_methods_supported:b(d()).optional(),token_endpoint_auth_signing_alg_values_supported:b(d()).optional(),service_documentation:Ae.optional(),revocation_endpoint:Ae.optional(),revocation_endpoint_auth_methods_supported:b(d()).optional(),revocation_endpoint_auth_signing_alg_values_supported:b(d()).optional(),introspection_endpoint:d().optional(),introspection_endpoint_auth_methods_supported:b(d()).optional(),introspection_endpoint_auth_signing_alg_values_supported:b(d()).optional(),code_challenge_methods_supported:b(d()).optional(),client_id_metadata_document_supported:U().optional(),authorization_response_iss_parameter_supported:U().optional().catch(void 0),dpop_signing_alg_values_supported:b(d()).optional()}),tm=K({issuer:d(),authorization_endpoint:Ae,token_endpoint:Ae,userinfo_endpoint:Ae.optional(),jwks_uri:Ae,registration_endpoint:Ae.optional(),scopes_supported:b(d()).optional(),response_types_supported:b(d()),response_modes_supported:b(d()).optional(),grant_types_supported:b(d()).optional(),acr_values_supported:b(d()).optional(),subject_types_supported:b(d()),id_token_signing_alg_values_supported:b(d()),id_token_encryption_alg_values_supported:b(d()).optional(),id_token_encryption_enc_values_supported:b(d()).optional(),userinfo_signing_alg_values_supported:b(d()).optional(),userinfo_encryption_alg_values_supported:b(d()).optional(),userinfo_encryption_enc_values_supported:b(d()).optional(),request_object_signing_alg_values_supported:b(d()).optional(),request_object_encryption_alg_values_supported:b(d()).optional(),request_object_encryption_enc_values_supported:b(d()).optional(),token_endpoint_auth_methods_supported:b(d()).optional(),token_endpoint_auth_signing_alg_values_supported:b(d()).optional(),display_values_supported:b(d()).optional(),claim_types_supported:b(d()).optional(),claims_supported:b(d()).optional(),service_documentation:d().optional(),claims_locales_supported:b(d()).optional(),ui_locales_supported:b(d()).optional(),claims_parameter_supported:U().optional(),request_parameter_supported:U().optional(),request_uri_parameter_supported:U().optional(),require_request_uri_registration:U().optional(),op_policy_uri:Ae.optional(),op_tos_uri:Ae.optional(),client_id_metadata_document_supported:U().optional(),authorization_response_iss_parameter_supported:U().optional().catch(void 0)}),Fy=g({...tm.shape,...em.pick({code_challenge_methods_supported:!0}).shape}),Ky=g({access_token:d(),id_token:d().optional(),token_type:d(),expires_in:Ka.number().optional(),scope:d().optional(),refresh_token:d().optional(),issuer:d().optional().catch(void 0)}).strip(),By=g({issued_token_type:$("urn:ietf:params:oauth:token-type:id-jag"),access_token:d(),token_type:d().optional(),expires_in:x().optional(),scope:d().optional()}).strip(),Jy=g({error:d(),error_description:d().optional(),error_uri:d().optional()}),Vy=Ae.optional().or($("").transform(()=>{})),nm=g({redirect_uris:b(Ae),token_endpoint_auth_method:d().optional(),grant_types:b(d()).optional(),response_types:b(d()).optional(),application_type:d().optional(),client_name:d().optional(),client_uri:Ae.optional(),logo_uri:Vy,scope:d().optional(),contacts:b(d()).optional(),tos_uri:Vy,policy_uri:d().optional(),jwks_uri:Ae.optional(),jwks:pu().optional(),software_id:d().optional(),software_version:d().optional(),software_statement:d().optional()}).strip(),rm=g({client_id:d(),client_secret:d().optional(),client_id_issued_at:x().optional(),client_secret_expires_at:x().optional(),issuer:d().optional().catch(void 0)}).strip(),Hy=nm.merge(rm),Yy=g({error:d(),error_description:d().optional()}).strip(),Gy=g({token:d(),token_type_hint:d().optional()}).strip();var nS=Symbol.for("mcp.sdk.errorBrands");function Rs(e,t){let r=new Set,i=t;for(;typeof i=="function";){let n=i.mcpBrand;Object.prototype.hasOwnProperty.call(i,"mcpBrand")&&typeof n=="string"&&r.add(n),i=Object.getPrototypeOf(i)}r.size!==0&&Object.defineProperty(e,nS,{value:r,enumerable:!1,configurable:!0})}function _n(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,nS)){let r=t[nS];if(r&&typeof r.has=="function"&&r.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var Vr=(function(e){return e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedGrantType="unsupported_grant_type",e.InvalidScope="invalid_scope",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedTokenType="unsupported_token_type",e.InvalidToken="invalid_token",e.MethodNotAllowed="method_not_allowed",e.TooManyRequests="too_many_requests",e.InvalidClientMetadata="invalid_client_metadata",e.InvalidRedirectUri="invalid_redirect_uri",e.InsufficientScope="insufficient_scope",e.InvalidTarget="invalid_target",e.InvalidDpopProof="invalid_dpop_proof",e.UseDpopNonce="use_dpop_nonce",e})({}),ws=class uw extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return _n(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return _n(this,t)}constructor(t,r,i){super(r),this.code=t,this.errorUri=i,this.name="OAuthError",Rs(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new uw(t.error,t.error_description??t.error,t.error_uri)}},se=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),re=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return _n(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return _n(this,e)}constructor(e,t,r,i){super(t,i),this.code=e,this.data=r,this.name="SdkError",Rs(this,new.target)}},fC=class extends re{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,r,i){super(e,t,r,i),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};var JR={};function dw(e){return Object.hasOwn(JR,e)?JR[e]:void 0}function HR(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function hC(e,t,r){return e==="elicitation"&&t==="form"&&r.form===void 0&&r.url===void 0}function mw(e){switch(e.method){case"elicitation/create":return e.params?.mode==="url"?{elicitation:{url:{}}}:{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;return t!==void 0&&(t.tools!==void 0||t.toolChoice!==void 0)?{sampling:{tools:{}}}:{sampling:{}}}case"roots/list":return{roots:{}};default:return}}function zs(e,t){let r={};for(let[i,n]of Object.entries(e)){if(n===void 0)continue;let o=t===void 0?void 0:t[i];if(o===void 0){r[i]=n;continue}if(HR(n)&&HR(o)){let a={};for(let[s,c]of Object.entries(n))c!==void 0&&o[s]===void 0&&!hC(i,s,o)&&(a[s]=c);Object.keys(a).length>0&&(r[i]=a)}}return Object.keys(r).length>0?r:void 0}var pw="2026-07-28",Zr=[pw];function Lt(e){return e>=pw}function fw(e){return e.filter(t=>!Lt(t))}function um(e){return e.filter(t=>Lt(t))}function hw(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(r=>r.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var gw=["task","inputRequests","requestState"];function aS(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||gw.some(t=>t in e)?e:{...e,content:[]}}function gC(){let e=Zn(()=>L([d(),x(),U(),en(),A(d(),e),b(e)])),t=A(d(),e),r=L([d(),x().int()]),i=d(),n=g({ttl:x().optional()}),o=g({taskId:d()}),a=K({progressToken:r.optional(),"io.modelcontextprotocol/related-task":o.optional()}),s=g({_meta:a.optional()}),c=s.extend({task:n.optional()}),l=g({method:d(),params:s.loose().optional()}),u=g({_meta:a.optional()}),m=g({method:d(),params:u.loose().optional()}),p=K({_meta:a.optional()}),f=L([d(),x().int()]),h=p.strict(),v=u.extend({requestId:f.optional(),reason:d().optional()}),y=m.extend({method:$("notifications/cancelled"),params:v}),R=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:Q(["light","dark"]).optional()}),w=g({icons:b(R).optional()}),E=g({name:d(),title:d().optional()}),D=E.extend({...E.shape,...w.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),F=At(g({applyDefaults:U().optional()}),t),N=gn(Ve=>Ve&&typeof Ve=="object"&&!Array.isArray(Ve)&&Object.keys(Ve).length===0?{form:{}}:Ve,At(g({form:F.optional(),url:t.optional()}),t.optional())),te=K({list:t.optional(),cancel:t.optional(),requests:K({sampling:K({createMessage:t.optional()}).optional(),elicitation:K({create:t.optional()}).optional()}).optional()}),ie=K({list:t.optional(),cancel:t.optional(),requests:K({tools:K({call:t.optional()}).optional()}).optional()}),Y=g({experimental:A(d(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:N.optional(),roots:g({listChanged:U().optional()}).optional(),tasks:te.optional(),extensions:A(d(),t).optional()}),ye=s.extend({protocolVersion:d(),capabilities:Y,clientInfo:D}),be=l.extend({method:$("initialize"),params:ye}),ce=g({experimental:A(d(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:U().optional()}).optional(),resources:g({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:g({listChanged:U().optional()}).optional(),tasks:ie.optional(),extensions:A(d(),t).optional()}),Ie=p.extend({protocolVersion:d(),capabilities:ce,serverInfo:D,instructions:d().optional()}),Pe=m.extend({method:$("notifications/initialized"),params:u.optional()}),De=l.extend({method:$("ping"),params:s.optional()}),Je=g({progress:x(),total:J(x()),message:J(d())}),rt=g({...u.shape,...Je.shape,progressToken:r}),yt=m.extend({method:$("notifications/progress"),params:rt}),Vt=s.extend({cursor:i.optional()}),dt=l.extend({params:Vt.optional()}),He=p.extend({nextCursor:i.optional()}),cn=g({uri:d(),mimeType:J(d()),_meta:A(d(),B()).optional()}),ln=cn.extend({text:d()}),Zt=d().refine(Ve=>{try{return atob(Ve),!0}catch{return!1}},{message:"Invalid Base64 string"}),Me=cn.extend({blob:Zt}),Ye=Q(["user","assistant"]),Ge=g({audience:b(Ye).optional(),priority:x().min(0).max(1).optional(),lastModified:wt.datetime({offset:!0}).optional()}),xt=g({...E.shape,...w.shape,uri:d(),description:J(d()),mimeType:J(d()),size:J(x()),annotations:Ge.optional(),_meta:J(K({}))}),or=g({...E.shape,...w.shape,uriTemplate:d(),description:J(d()),mimeType:J(d()),annotations:Ge.optional(),_meta:J(K({}))}),mt=dt.extend({method:$("resources/list")}),pt=He.extend({resources:b(xt)}),it=dt.extend({method:$("resources/templates/list")}),St=He.extend({resourceTemplates:b(or)}),_t=s.extend({uri:d()}),Ft=_t,Kt=l.extend({method:$("resources/read"),params:Ft}),wn=p.extend({contents:b(L([ln,Me]))}),Bt=m.extend({method:$("notifications/resources/list_changed"),params:u.optional()}),ar=_t,V=l.extend({method:$("resources/subscribe"),params:ar}),Jt=_t,G=l.extend({method:$("resources/unsubscribe"),params:Jt}),H=u.extend({uri:d()}),ae=m.extend({method:$("notifications/resources/updated"),params:H}),Z=g({name:d(),description:J(d()),required:J(U())}),M=g({...E.shape,...w.shape,description:J(d()),arguments:J(b(Z)),_meta:J(K({}))}),ee=dt.extend({method:$("prompts/list")}),X=He.extend({prompts:b(M)}),Te=s.extend({name:d(),arguments:A(d(),d()).optional()}),sr=l.extend({method:$("prompts/get"),params:Te}),Ht=g({type:$("text"),text:d(),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),cr=g({type:$("image"),data:Zt,mimeType:d(),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),lr=g({type:$("audio"),data:Zt,mimeType:d(),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),go=g({type:$("tool_use"),name:d(),id:d(),input:A(d(),B()),_meta:A(d(),B()).optional()}),zn=g({type:$("resource"),resource:L([ln,Me]),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),vo=xt.extend({type:$("resource_link")}),bt=L([Ht,cr,lr,vo,zn]),Xr=g({role:Ye,content:bt}),Qr=p.extend({description:d().optional(),messages:b(Xr)}),ur=m.extend({method:$("notifications/prompts/list_changed"),params:u.optional()}),yo=g({title:d().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),ei=g({taskSupport:Q(["required","optional","forbidden"]).optional()}),dr=g({...E.shape,...w.shape,description:d().optional(),inputSchema:g({type:$("object"),properties:A(d(),e).optional(),required:b(d()).optional()}).catchall(B()),outputSchema:g({type:$("object"),properties:A(d(),e).optional(),required:b(d()).optional()}).catchall(B()).optional(),annotations:yo.optional(),execution:ei.optional(),_meta:A(d(),B()).optional()}),ti=dt.extend({method:$("tools/list")}),ni=He.extend({tools:b(dr)}),ri=p.extend({content:b(bt),structuredContent:A(d(),B()).optional(),isError:U().optional()}),qe=c.extend({name:d(),arguments:A(d(),B()).optional()}),So=l.extend({method:$("tools/call"),params:qe}),Bs=m.extend({method:$("notifications/tools/list_changed"),params:u.optional()}),ii=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),_o=s.extend({level:ii}),bo=l.extend({method:$("logging/setLevel"),params:_o}),$o=u.extend({level:ii,logger:d().optional(),data:B()}),ko=m.extend({method:$("notifications/message"),params:$o}),Ro=g({name:d().optional()}),wo=g({hints:b(Ro).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),zo=g({mode:Q(["auto","required","none"]).optional()}),Js=g({type:$("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:b(bt),structuredContent:g({}).loose().optional(),isError:U().optional(),_meta:A(d(),B()).optional()}),Io=Vn("type",[Ht,cr,lr]),In=Vn("type",[Ht,cr,lr,go,Js]),To=g({role:Ye,content:L([In,b(In)]),_meta:A(d(),B()).optional()}),xo=c.extend({messages:b(To),modelPreferences:wo.optional(),systemPrompt:d().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:t.optional(),tools:b(dr).optional(),toolChoice:zo.optional()}),Eo=l.extend({method:$("sampling/createMessage"),params:xo}),Po=p.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens"]).or(d())),role:Ye,content:Io}),Oo=p.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:Ye,content:L([In,b(In)])}),Co=g({type:$("boolean"),title:d().optional(),description:d().optional(),default:U().optional()}),No=g({type:$("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:d().optional()}),Ao=g({type:Q(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),jo=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),Uo=g({type:$("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),Lo=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),Do=L([jo,Uo]),mr=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:$("string"),enum:b(d())}),default:b(d()).optional()}),pr=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),Hs=L([mr,pr]),Ys=L([Lo,Do,Hs]),ft=L([Ys,Co,No,Ao]),ht=c.extend({mode:$("form").optional(),message:d(),requestedSchema:g({type:$("object"),properties:A(d(),ft),required:b(d()).optional()}).catchall(B())}),Mo=c.extend({mode:$("url"),message:d(),elicitationId:d(),url:d().url()}),Et=L([ht,Mo]),Gs=l.extend({method:$("elicitation/create"),params:Et}),Ws=u.extend({elicitationId:d()}),Xs=m.extend({method:$("notifications/elicitation/complete"),params:Ws}),Qs=p.extend({action:Q(["accept","decline","cancel"]),content:gn(Ve=>Ve===null?void 0:Ve,A(d(),L([d(),x(),U(),b(d())])).optional())}),ec=g({type:$("ref/resource"),uri:d()}),tc=g({type:$("ref/prompt"),name:d()}),nc=s.extend({ref:L([tc,ec]),argument:g({name:d(),value:d()}),context:g({arguments:A(d(),d()).optional()}).optional()}),qo=l.extend({method:$("completion/complete"),params:nc}),rc=p.extend({completion:K({values:b(d()).max(100),total:J(x().int()),hasMore:J(U())})}),ic=g({uri:d().startsWith("file://"),name:d().optional(),_meta:A(d(),B()).optional()}),oi=l.extend({method:$("roots/list"),params:s.optional()}),Vo=p.extend({roots:b(ic)}),oc=m.extend({method:$("notifications/roots/list_changed"),params:u.optional()}),ac=K({ttl:x().optional(),pollInterval:x().optional()}),Zo=Q(["working","input_required","completed","failed","cancelled"]),Tn=g({taskId:d(),status:Zo,ttl:L([x(),en()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:J(x()),statusMessage:J(d())}),ot=p.extend({task:Tn}),sc=u.merge(Tn),fr=m.extend({method:$("notifications/tasks/status"),params:sc}),ai=l.extend({method:$("tasks/get"),params:s.extend({taskId:d()})}),si=p.merge(Tn),ci=l.extend({method:$("tasks/result"),params:s.extend({taskId:d()})}),Ym=p.loose(),We=dt.extend({method:$("tasks/list")}),ze=He.extend({tasks:b(Tn)}),hr=l.extend({method:$("tasks/cancel"),params:s.extend({taskId:d()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:r,CursorSchema:i,TaskMetadataSchema:n,RelatedTaskMetadataSchema:o,RequestMetaSchema:a,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:m,ResultSchema:p,RequestIdSchema:f,EmptyResultSchema:h,CancelledNotificationParamsSchema:v,CancelledNotificationSchema:y,IconSchema:R,IconsSchema:w,BaseMetadataSchema:E,ImplementationSchema:D,ClientTasksCapabilitySchema:te,ServerTasksCapabilitySchema:ie,ClientCapabilitiesSchema:Y,InitializeRequestParamsSchema:ye,InitializeRequestSchema:be,ServerCapabilitiesSchema:ce,InitializeResultSchema:Ie,InitializedNotificationSchema:Pe,PingRequestSchema:De,ProgressSchema:Je,ProgressNotificationParamsSchema:rt,ProgressNotificationSchema:yt,PaginatedRequestParamsSchema:Vt,PaginatedRequestSchema:dt,PaginatedResultSchema:He,ResourceContentsSchema:cn,TextResourceContentsSchema:ln,BlobResourceContentsSchema:Me,RoleSchema:Ye,AnnotationsSchema:Ge,ResourceSchema:xt,ResourceTemplateSchema:or,ListResourcesRequestSchema:mt,ListResourcesResultSchema:pt,ListResourceTemplatesRequestSchema:it,ListResourceTemplatesResultSchema:St,ResourceRequestParamsSchema:_t,ReadResourceRequestParamsSchema:Ft,ReadResourceRequestSchema:Kt,ReadResourceResultSchema:wn,ResourceListChangedNotificationSchema:Bt,SubscribeRequestParamsSchema:ar,SubscribeRequestSchema:V,UnsubscribeRequestParamsSchema:Jt,UnsubscribeRequestSchema:G,ResourceUpdatedNotificationParamsSchema:H,ResourceUpdatedNotificationSchema:ae,PromptArgumentSchema:Z,PromptSchema:M,ListPromptsRequestSchema:ee,ListPromptsResultSchema:X,GetPromptRequestParamsSchema:Te,GetPromptRequestSchema:sr,TextContentSchema:Ht,ImageContentSchema:cr,AudioContentSchema:lr,ToolUseContentSchema:go,EmbeddedResourceSchema:zn,ResourceLinkSchema:vo,ContentBlockSchema:bt,PromptMessageSchema:Xr,GetPromptResultSchema:Qr,PromptListChangedNotificationSchema:ur,ToolAnnotationsSchema:yo,ToolExecutionSchema:ei,ToolSchema:dr,ListToolsRequestSchema:ti,ListToolsResultSchema:ni,CallToolResultSchema:ri,CallToolRequestParamsSchema:qe,CallToolRequestSchema:So,ToolListChangedNotificationSchema:Bs,LoggingLevelSchema:ii,SetLevelRequestParamsSchema:_o,SetLevelRequestSchema:bo,LoggingMessageNotificationParamsSchema:$o,LoggingMessageNotificationSchema:ko,ModelHintSchema:Ro,ModelPreferencesSchema:wo,ToolChoiceSchema:zo,ToolResultContentSchema:Js,SamplingContentSchema:Io,SamplingMessageContentBlockSchema:In,SamplingMessageSchema:To,CreateMessageRequestParamsSchema:xo,CreateMessageRequestSchema:Eo,CreateMessageResultSchema:Po,CreateMessageResultWithToolsSchema:Oo,BooleanSchemaSchema:Co,StringSchemaSchema:No,NumberSchemaSchema:Ao,UntitledSingleSelectEnumSchemaSchema:jo,TitledSingleSelectEnumSchemaSchema:Uo,LegacyTitledEnumSchemaSchema:Lo,SingleSelectEnumSchemaSchema:Do,UntitledMultiSelectEnumSchemaSchema:mr,TitledMultiSelectEnumSchemaSchema:pr,MultiSelectEnumSchemaSchema:Hs,EnumSchemaSchema:Ys,PrimitiveSchemaDefinitionSchema:ft,ElicitRequestFormParamsSchema:ht,ElicitRequestURLParamsSchema:Mo,ElicitRequestParamsSchema:Et,ElicitRequestSchema:Gs,ElicitationCompleteNotificationParamsSchema:Ws,ElicitationCompleteNotificationSchema:Xs,ElicitResultSchema:Qs,ResourceTemplateReferenceSchema:ec,PromptReferenceSchema:tc,CompleteRequestParamsSchema:nc,CompleteRequestSchema:qo,CompleteResultSchema:rc,RootSchema:ic,ListRootsRequestSchema:oi,ListRootsResultSchema:Vo,RootsListChangedNotificationSchema:oc,TaskCreationParamsSchema:ac,TaskStatusSchema:Zo,TaskSchema:Tn,CreateTaskResultSchema:ot,TaskStatusNotificationParamsSchema:sc,TaskStatusNotificationSchema:fr,GetTaskRequestSchema:ai,GetTaskResultSchema:si,GetTaskPayloadRequestSchema:ci,GetTaskPayloadResultSchema:Ym,ListTasksRequestSchema:We,ListTasksResultSchema:ze,CancelTaskRequestSchema:hr,CancelTaskResultSchema:p.merge(Tn),ClientRequestSchema:L([De,be,qo,bo,sr,ee,mt,it,Kt,V,G,So,ti,ai,ci,We,hr]),ClientNotificationSchema:L([y,yt,Pe,oc,fr]),ClientResultSchema:L([h,Po,Oo,Qs,Vo,si,ze,ot]),ServerRequestSchema:L([De,Eo,Gs,oi,ai,ci,We,hr]),ServerNotificationSchema:L([y,yt,ko,ae,Bt,Bs,ur,fr,Xs]),ServerResultSchema:L([h,Ie,rc,Qr,X,pt,St,wn,ri,ni,si,ze,ot]),CallToolResultWireSchema:B().superRefine((Ve,ox)=>{if(!(typeof Ve!="object"||Ve===null||Array.isArray(Ve)||Ve.content!==void 0)){for(let L_ of gw)if(L_ in Ve){ox.addIssue({code:"custom",message:`content is required when the body carries \'${L_}\' \\u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(aS).pipe(ri)}}var vC;function sS(){return vC??=gC()}function vw(e){return e.type!=="object"}var yC=new Set(["const","enum","default","examples"]),SC=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function YR(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function _C(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if(YR(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let r=J_(e.$schema)&&e.$recursiveAnchor!==!0,i=(n,o)=>{if(Array.isArray(n))return n.map(c=>i(c,!1));if(n===null||typeof n!="object"||!o&&YR(n.$id))return n;let a={},s=!1;for(let[c,l]of Object.entries(n))o?a[c]=i(l,!1):(c==="$ref"||c==="$dynamicRef")&&typeof l=="string"?a[c]=l==="#"?"#/properties/result":l.startsWith("#/")?`#/properties/result${l.slice(1)}`:l:c==="$recursiveRef"&&l==="#"&&r?s=!0:yC.has(c)?a[c]=l:SC.has(c)?a[c]=i(l,!0):a[c]=i(l,!1);return s&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:i(e,!1)},required:["result"]}}var yw={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},Sw={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},bC={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},im;function dm(){if(im)return im;let e=sS();return im={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},im}function $C(){dm()}function _w(e){return Object.prototype.hasOwnProperty.call(yw,e)}function bw(e){return Object.prototype.hasOwnProperty.call(Sw,e)}function kC(e){return Object.prototype.hasOwnProperty.call(bC,e)}function RC(e){return kC(e)?dm().resultSchemas[e]:void 0}function wC(e){return _w(e)?dm().requestSchemas[e]:void 0}function zC(e){return bw(e)?dm().notificationSchemas[e]:void 0}var D4=Object.keys(yw),M4=Object.keys(Sw);function rS(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function om(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let r=e.safeParse(t);return r.success?{ok:!0,value:r.data}:{ok:!1,reason:"invalid",message:String(r.error)}}var GR={ok:!1,reason:"not-in-era"};function WR(e){return rS(e)&&rS(e.outputSchema)&&vw(e.outputSchema)}var cS={era:"2025-11-25",hasRequestMethod:_w,hasNotificationMethod:bw,validateRequest:(e,t)=>om(wC(e),t),validateResult:(e,t)=>om(RC(e),t),validateNotification:(e,t)=>om(zC(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>GR,validateInputResponse:()=>GR,samplingResultVariant:((e,t)=>{let r=sS();return om(e?r.CreateMessageResultWithToolsSchema:r.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let r=hw(e),i=r.structuredContent;if(i===void 0)return r;let n=typeof i!="object"||i===null||Array.isArray(i),o=t!==void 0&&vw(t);return!n&&!o?r:{...r,structuredContent:{result:i}}},decodeResult(e,t){if(rS(t)&&"resultType"in t){let r={...t};return delete r.resultType,{kind:"complete",result:r}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let r=t.tools;return!Array.isArray(r)||!r.some(i=>WR(i))?t:{...t,tools:r.map(i=>WR(i)?{...i,outputSchema:_C(i.outputSchema)}:i)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function IC(){let e=Zn(()=>L([d(),x(),U(),en(),A(d(),e),b(e)])),t=A(d(),e),r=L([d(),x().int()]),i=d(),n=L([d(),x().int()]),o=Q(["user","assistant"]),a=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),s=d().refine(ze=>{try{return atob(ze),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=g({ttl:x().optional()}),l=g({taskId:d()}),u=K({progressToken:r.optional(),"io.modelcontextprotocol/related-task":l.optional()}),m=g({_meta:u.optional()}),p=m.extend({task:c.optional()}),f=g({_meta:u.optional()}),h=g({method:d(),params:f.loose().optional()}),v=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:Q(["light","dark"]).optional()}),y=g({icons:b(v).optional()}),R=g({name:d(),title:d().optional()}),w=R.extend({...R.shape,...y.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),E=At(g({applyDefaults:U().optional()}),t),D=gn(ze=>ze&&typeof ze=="object"&&!Array.isArray(ze)&&Object.keys(ze).length===0?{form:{}}:ze,At(g({form:E.optional(),url:t.optional()}),t.optional())),F=K({list:t.optional(),cancel:t.optional(),requests:K({sampling:K({createMessage:t.optional()}).optional(),elicitation:K({create:t.optional()}).optional()}).optional()}),N=K({list:t.optional(),cancel:t.optional(),requests:K({tools:K({call:t.optional()}).optional()}).optional()}),te=g({experimental:A(d(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:D.optional(),roots:g({listChanged:U().optional()}).optional(),tasks:F.optional(),extensions:A(d(),t).optional()}),ie=g({experimental:A(d(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:U().optional()}).optional(),resources:g({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:g({listChanged:U().optional()}).optional(),tasks:N.optional(),extensions:A(d(),t).optional()}),Y=g({progress:x(),total:J(x()),message:J(d())}),ye=g({...f.shape,...Y.shape,progressToken:r}),be=h.extend({method:$("notifications/progress"),params:ye}),ce=f.extend({level:a,logger:d().optional(),data:B()}),Ie=h.extend({method:$("notifications/message"),params:ce}),Pe=g({uri:d(),mimeType:J(d()),_meta:A(d(),B()).optional()}),De=Pe.extend({text:d()}),Je=Pe.extend({blob:s}),rt=g({audience:b(o).optional(),priority:x().min(0).max(1).optional(),lastModified:wt.datetime({offset:!0}).optional()}),yt=g({...R.shape,...y.shape,uri:d(),description:J(d()),mimeType:J(d()),size:J(x()),annotations:rt.optional(),_meta:J(K({}))}),Vt=g({...R.shape,...y.shape,uriTemplate:d(),description:J(d()),mimeType:J(d()),annotations:rt.optional(),_meta:J(K({}))}),dt=h.extend({method:$("notifications/resources/list_changed"),params:f.optional()}),He=f.extend({uri:d()}),cn=h.extend({method:$("notifications/resources/updated"),params:He}),ln=g({name:d(),description:J(d()),required:J(U())}),Zt=g({...R.shape,...y.shape,description:J(d()),arguments:J(b(ln)),_meta:J(K({}))}),Me=h.extend({method:$("notifications/prompts/list_changed"),params:f.optional()}),Ye=g({type:$("text"),text:d(),annotations:rt.optional(),_meta:A(d(),B()).optional()}),Ge=g({type:$("image"),data:s,mimeType:d(),annotations:rt.optional(),_meta:A(d(),B()).optional()}),xt=g({type:$("audio"),data:s,mimeType:d(),annotations:rt.optional(),_meta:A(d(),B()).optional()}),or=g({type:$("tool_use"),name:d(),id:d(),input:A(d(),B()),_meta:A(d(),B()).optional()}),mt=g({type:$("resource"),resource:L([De,Je]),annotations:rt.optional(),_meta:A(d(),B()).optional()}),pt=yt.extend({type:$("resource_link")}),it=L([Ye,Ge,xt,pt,mt]),St=g({role:o,content:it}),_t=g({title:d().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),Ft=h.extend({method:$("notifications/tools/list_changed"),params:f.optional()}),Kt=g({name:d().optional()}),wn=g({hints:b(Kt).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Bt=g({mode:Q(["auto","required","none"]).optional()}),ar=g({type:$("boolean"),title:d().optional(),description:d().optional(),default:U().optional()}),V=g({type:$("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:d().optional()}),Jt=g({type:Q(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),G=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),H=g({type:$("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),ae=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),Z=L([G,H]),M=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:$("string"),enum:b(d())}),default:b(d()).optional()}),ee=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),X=L([M,ee]),Te=L([ae,Z,X]),sr=L([Te,ar,V,Jt]),Ht=p.extend({mode:$("form").optional(),message:d(),requestedSchema:g({type:$("object"),properties:A(d(),sr),required:b(d()).optional()}).catchall(B())}),cr=g({type:$("ref/resource"),uri:d()}),lr=g({type:$("ref/prompt"),name:d()}),go=g({uri:d().startsWith("file://"),name:d().optional(),_meta:A(d(),B()).optional()}),zn=te.shape,vo=g({experimental:zn.experimental,sampling:zn.sampling,elicitation:zn.elicitation,roots:zn.roots,extensions:zn.extensions}),bt=ie.shape,Xr=g({experimental:bt.experimental,logging:bt.logging,completions:bt.completions,prompts:bt.prompts,resources:bt.resources,tools:bt.tools,extensions:bt.extensions}),Qr=K({progressToken:r.optional(),[zt]:d(),[Ar]:w.optional(),[nn]:vo,[Kn]:a.optional()}),ur=g({...R.shape,...y.shape,description:d().optional(),inputSchema:K({$schema:d().optional(),type:$("object")}),outputSchema:K({$schema:d().optional()}).optional(),annotations:_t.optional(),_meta:A(d(),B()).optional()}),yo=g({type:$("tool_result"),toolUseId:d(),content:b(it),structuredContent:B().optional(),isError:U().optional(),_meta:A(d(),B()).optional()}),ei=L([Ye,Ge,xt,or,yo]),dr=g({role:o,content:L([ei,b(ei)]),_meta:A(d(),B()).optional()}),ti=d(),ni=K({[tn]:w.optional().catch(void 0)}),ri=ni.optional();function qe(ze){return K({_meta:ri,resultType:ti.default("complete"),...ze})}let So=qe({}),Bs=qe({nextCursor:i.optional()}),ii=qe({content:b(it),structuredContent:B().optional(),isError:U().optional()}),_o=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),tools:b(ur),nextCursor:i.optional()}),bo=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),prompts:b(Zt),nextCursor:i.optional()}),$o=qe({description:d().optional(),messages:b(St)}),ko=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resources:b(yt),nextCursor:i.optional()}),Ro=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resourceTemplates:b(Vt),nextCursor:i.optional()}),wo=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),contents:b(L([De,Je]))}),zo=qe({completion:g({values:b(d()).max(100),total:x().int().optional(),hasMore:U().optional()}).loose()}),Js=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"])}),Io=qe({ttlMs:x().int().min(0).catch(0),cacheScope:Q(["public","private"]).catch("private"),supportedVersions:b(d()),capabilities:Xr,instructions:d().optional()}),In=g({messages:b(dr),modelPreferences:wn.optional(),systemPrompt:d().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:t.optional(),tools:b(ur).optional(),toolChoice:Bt.optional()}),To=g({method:$("sampling/createMessage"),params:In}),xo=g({method:$("roots/list"),params:g({_meta:A(d(),B()).optional()}).optional()}),Eo=g({...dr.shape,model:d(),stopReason:d().optional()}),Po=g({roots:b(go)}),Oo=g({action:Q(["accept","decline","cancel"]),content:A(d(),L([d(),x(),U(),b(d())])).optional()}),Co=g({mode:$("url"),message:d(),url:d().url()}),No=L([Ht,Co]),Ao=g({method:$("elicitation/create"),params:No}),jo=L([To,xo,Ao]),Uo=L([Eo,Po,Oo]),Lo=A(d(),jo),Do=A(d(),Uo),mr=qe({inputRequests:Lo.optional(),requestState:d().optional()}),pr={inputResponses:Do.optional(),requestState:d().optional()},Hs=g({_meta:Qr,...pr}),Ys=K({progressToken:r.optional()});function ft(ze,hr){return g({method:$(ze),params:g({_meta:Qr,...hr})})}function ht(ze,hr){return g({method:$(ze),params:g({_meta:Ys.optional(),...hr}).optional()})}let Mo={name:d(),arguments:A(d(),B()).optional(),...pr},Et={cursor:i.optional()},Gs=ft("tools/call",Mo),Ws=ft("tools/list",Et),Xs=ft("prompts/list",Et),Qs=ft("prompts/get",{name:d(),arguments:A(d(),d()).optional(),...pr}),ec=ft("resources/list",Et),tc=ft("resources/templates/list",Et),nc=ft("resources/read",{uri:d(),...pr}),qo={ref:L([lr,cr]),argument:g({name:d(),value:d()}),context:g({arguments:A(d(),d()).optional()}).optional()},rc=ft("completion/complete",qo),ic=ft("server/discover",{}),oi=g({toolsListChanged:U().optional(),promptsListChanged:U().optional(),resourcesListChanged:U().optional(),resourceSubscriptions:b(d()).optional()}),Vo={notifications:oi},oc=ft("subscriptions/listen",Vo),ac=ni.extend({"io.modelcontextprotocol/subscriptionId":n}),Zo=K({_meta:ac,resultType:ti.default("complete")}),Tn={"tools/call":ht("tools/call",Mo),"tools/list":ht("tools/list",Et),"prompts/get":ht("prompts/get",{name:d(),arguments:A(d(),d()).optional()}),"prompts/list":ht("prompts/list",Et),"resources/list":ht("resources/list",Et),"resources/templates/list":ht("resources/templates/list",Et),"resources/read":ht("resources/read",{uri:d()}),"completion/complete":ht("completion/complete",qo),"server/discover":ht("server/discover",{}),"subscriptions/listen":ht("subscriptions/listen",Vo)};function ot(ze){return K({_meta:ri,...ze})}let sc={"tools/call":ot({content:b(it),structuredContent:B().optional(),isError:U().optional()}),"tools/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),tools:b(ur),nextCursor:i.optional()}),"prompts/get":ot({description:d().optional(),messages:b(St)}),"prompts/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),prompts:b(Zt),nextCursor:i.optional()}),"resources/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resources:b(yt),nextCursor:i.optional()}),"resources/templates/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resourceTemplates:b(Vt),nextCursor:i.optional()}),"resources/read":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),contents:b(L([De,Je]))}),"completion/complete":ot({completion:g({values:b(d()).max(100),total:x().int().optional(),hasMore:U().optional()}).loose()}),"server/discover":ot({ttlMs:x().int().min(0).catch(0),cacheScope:Q(["public","private"]).catch("private"),supportedVersions:b(d()),capabilities:Xr,instructions:d().optional()}),"subscriptions/listen":ot({})},fr=K({"io.modelcontextprotocol/subscriptionId":n.optional()}),ai=g({method:$("notifications/subscriptions/acknowledged"),params:g({_meta:fr.optional(),notifications:oi})}),si=g({_meta:fr.optional(),requestId:n,reason:d().optional()}),ci=g({method:$("notifications/cancelled"),params:si}),Ym={"notifications/cancelled":ci,"notifications/progress":be,"notifications/message":Ie,"notifications/resources/updated":cn,"notifications/resources/list_changed":dt,"notifications/tools/list_changed":Ft,"notifications/prompts/list_changed":Me,"notifications/subscriptions/acknowledged":ai},We=ze=>g({jsonrpc:$("2.0"),id:L([d(),x().int()]),result:ze}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:r,CursorSchema:i,RequestIdSchema:n,RoleSchema:o,LoggingLevelSchema:a,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:m,TaskAugmentedRequestParamsSchema:p,NotificationsParamsSchema:f,NotificationSchema:h,IconSchema:v,IconsSchema:y,BaseMetadataSchema:R,ImplementationSchema:w,ClientTasksCapabilitySchema:F,ServerTasksCapabilitySchema:N,ClientCapabilitiesSchema:te,ServerCapabilitiesSchema:ie,ProgressSchema:Y,ProgressNotificationParamsSchema:ye,ProgressNotificationSchema:be,LoggingMessageNotificationParamsSchema:ce,LoggingMessageNotificationSchema:Ie,ResourceContentsSchema:Pe,TextResourceContentsSchema:De,BlobResourceContentsSchema:Je,AnnotationsSchema:rt,ResourceSchema:yt,ResourceTemplateSchema:Vt,ResourceListChangedNotificationSchema:dt,ResourceUpdatedNotificationParamsSchema:He,ResourceUpdatedNotificationSchema:cn,PromptArgumentSchema:ln,PromptSchema:Zt,PromptListChangedNotificationSchema:Me,TextContentSchema:Ye,ImageContentSchema:Ge,AudioContentSchema:xt,ToolUseContentSchema:or,EmbeddedResourceSchema:mt,ResourceLinkSchema:pt,ContentBlockSchema:it,PromptMessageSchema:St,ToolAnnotationsSchema:_t,ToolListChangedNotificationSchema:Ft,ModelHintSchema:Kt,ModelPreferencesSchema:wn,ToolChoiceSchema:Bt,BooleanSchemaSchema:ar,StringSchemaSchema:V,NumberSchemaSchema:Jt,UntitledSingleSelectEnumSchemaSchema:G,TitledSingleSelectEnumSchemaSchema:H,LegacyTitledEnumSchemaSchema:ae,SingleSelectEnumSchemaSchema:Z,UntitledMultiSelectEnumSchemaSchema:M,TitledMultiSelectEnumSchemaSchema:ee,MultiSelectEnumSchemaSchema:X,EnumSchemaSchema:Te,PrimitiveSchemaDefinitionSchema:sr,ElicitRequestFormParamsSchema:Ht,ResourceTemplateReferenceSchema:cr,PromptReferenceSchema:lr,RootSchema:go,ClientCapabilities2026Schema:vo,ServerCapabilities2026Schema:Xr,RequestMetaEnvelopeSchema:Qr,ToolSchema:ur,ToolResultContentSchema:yo,SamplingMessageContentBlockSchema:ei,SamplingMessageSchema:dr,ResultTypeSchema:ti,ResultMetaSchema:ni,ResultSchema:So,PaginatedResultSchema:Bs,CallToolResultSchema:ii,ListToolsResultSchema:_o,ListPromptsResultSchema:bo,GetPromptResultSchema:$o,ListResourcesResultSchema:ko,ListResourceTemplatesResultSchema:Ro,ReadResourceResultSchema:wo,CompleteResultSchema:zo,CacheableResultSchema:Js,DiscoverResultSchema:Io,CreateMessageRequestParamsSchema:In,CreateMessageRequestSchema:To,ListRootsRequestSchema:xo,CreateMessageResultSchema:Eo,ListRootsResultSchema:Po,ElicitResultSchema:Oo,ElicitRequestURLParamsSchema:Co,ElicitRequestParamsSchema:No,ElicitRequestSchema:Ao,InputRequestSchema:jo,InputResponseSchema:Uo,InputRequestsSchema:Lo,InputResponsesSchema:Do,InputRequiredResultSchema:mr,InputResponseRequestParamsSchema:Hs,CallToolRequestSchema:Gs,ListToolsRequestSchema:Ws,ListPromptsRequestSchema:Xs,GetPromptRequestSchema:Qs,ListResourcesRequestSchema:ec,ListResourceTemplatesRequestSchema:tc,ReadResourceRequestSchema:nc,CompleteRequestSchema:rc,DiscoverRequestSchema:ic,SubscriptionFilterSchema:oi,SubscriptionsListenRequestSchema:oc,SubscriptionsListenResultMetaSchema:ac,SubscriptionsListenResultSchema:Zo,dispatchRequestSchemas:Tn,dispatchResultSchemas:sc,NotificationMetaSchema:fr,SubscriptionsAcknowledgedNotificationSchema:ai,CancelledNotificationParamsSchema:si,CancelledNotificationSchema:ci,notificationSchemas2026:Ym,JSONRPCResultResponseSchema:We(So),CallToolResultResponseSchema:We(L([ii,mr])),ListToolsResultResponseSchema:We(_o),ListPromptsResultResponseSchema:We(bo),GetPromptResultResponseSchema:We(L([$o,mr])),ListResourcesResultResponseSchema:We(ko),ListResourceTemplatesResultResponseSchema:We(Ro),ReadResourceResultResponseSchema:We(L([wo,mr])),CompleteResultResponseSchema:We(zo),DiscoverResultResponseSchema:We(Io),SubscriptionsListenResultResponseSchema:We(Zo)}}var TC;function Sn(){return TC??=IC()}var xC=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function EC(e){return xC.includes(e)}var co=Symbol("modelcontextprotocol.resultCacheHintFallback");function mm(e,t){if(t===void 0)return e;let r=e[co];if(r===void 0)return{...e,[co]:t};let i={},n=r.ttlMs??t.ttlMs;n!==void 0&&(i.ttlMs=n);let o=r.cacheScope??t.cacheScope;return o!==void 0&&(i.cacheScope=o),{...e,[co]:i}}function PC(e){return e[co]}function lS(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function uS(e){return e==="public"||e==="private"}function Is(e,t){if(e.ttlMs!==void 0&&!lS(e.ttlMs))throw new RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(e.cacheScope!==void 0&&!uS(e.cacheScope))throw new RangeError(`Invalid cache hint for ${t}: cacheScope must be \'public\' or \'private\' (got ${String(e.cacheScope)})`)}var O=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),j=class $w extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return _n(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return _n(this,t)}constructor(t,r,i){super(r),this.code=t,this.data=i,this.name="ProtocolError",Rs(this,new.target)}static fromError(t,r,i){if(t===O.UrlElicitationRequired&&i){let n=i;if(n.elicitations)return new kw(n.elicitations,r)}if(t===O.UnsupportedProtocolVersion&&i){let n=i;if(Array.isArray(n.supported)&&typeof n.requested=="string")return new pm({supported:n.supported,requested:n.requested},r)}if(t===O.InvalidParams||t===O.ResourceNotFound){let n=i;if(typeof n?.uri=="string"&&(t===O.ResourceNotFound||Object.keys(n).length===1))return new Fr(n.uri,r)}if(t===O.MissingRequiredClientCapability&&i){let n=i;if(n.requiredCapabilities!==null&&typeof n.requiredCapabilities=="object"&&!Array.isArray(n.requiredCapabilities))return new Ts({requiredCapabilities:n.requiredCapabilities},r)}return new $w(t,r,i)}},Fr=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(O.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},kw=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(O.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},pm=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(O.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Ts=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(O.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},OC=0,CC="private",NC=["tools/call","prompts/get","resources/read"];function AC(e,t){let r=t.resultType;if(r===void 0)return{...t,resultType:"complete"};if(r==="complete"||NC.includes(e))return t;throw new j(O.InternalError,`Handler for ${e} returned resultType \'${String(r)}\', but results of ${e} only support \'complete\' on protocol revision 2026-07-28`)}function jC(e,t){let r=PC(t);if(t.resultType!=="complete"||!EC(e))return r===void 0?t:qC(t);let i=t,n=lS(i.ttlMs)?i.ttlMs:DC(r),o=uS(i.cacheScope)?i.cacheScope:MC(r),a={...i,ttlMs:n,cacheScope:o};return delete a[co],a}function UC(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function LC(e,t){if(t===void 0)return e;let r=e._meta;return r===void 0?{...e,_meta:{[tn]:t}}:!UC(r)||r[tn]!==void 0?e:{...e,_meta:{...r,[tn]:t}}}function DC(e){return e!==void 0&&lS(e.ttlMs)?e.ttlMs:OC}function MC(e){return e!==void 0&&uS(e.cacheScope)?e.cacheScope:CC}function qC(e){let t={...e};return delete t[co],t}var VC=["elicitation/create","sampling/createMessage","roots/list"],am;function dS(){if(am)return am;let e=Sn();return am={request:{"elicitation/create":g({method:$("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":g({method:$("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":g({method:$("roots/list"),params:K({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},am}function ZC(){dS()}function Rw(e){return VC.includes(e)}function Wy(e){return Rw(e)?dS().request[e]:void 0}function FC(e){return Rw(e)?dS().response[e]:void 0}var mS={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},ww={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function zw(e){return Object.prototype.hasOwnProperty.call(mS,e)}function Iw(e){return Object.prototype.hasOwnProperty.call(ww,e)}function KC(e){return Object.prototype.hasOwnProperty.call(mS,e)}function BC(e){return zw(e)?Sn().dispatchRequestSchemas[e]:void 0}function JC(e){return KC(e)?Sn().dispatchResultSchemas[e]:void 0}function HC(e){return Iw(e)?Sn().notificationSchemas2026[e]:void 0}var q4=Object.keys(mS),V4=Object.keys(ww);function _s(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ys(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let r=e.safeParse(t);return r.success?{ok:!0,value:r.data}:{ok:!1,reason:"invalid",message:String(r.error)}}var YC={ok:!1,reason:"not-in-era"},GC=[zt,nn];function WC(e,t){let r=t,i=!1,n=()=>(i||(r={...r},i=!0),r),o=t.tools;e==="tools/list"&&Array.isArray(o)&&o.some(s=>_s(s)&&"execution"in s)&&(n().tools=o.map(s=>{if(!_s(s)||!("execution"in s))return s;let c={...s};return delete c.execution,c}));let a=t.capabilities;if(_s(a)&&"tasks"in a){let s={...a};delete s.tasks,n().capabilities=s}return r}var pS={era:"2026-07-28",hasRequestMethod:zw,hasNotificationMethod:Iw,hasInputRequestMethod:e=>Wy(e)!==void 0,validateRequest:(e,t)=>ys(BC(e),t),validateResult:(e,t)=>ys(JC(e),t),validateNotification:(e,t)=>ys(HC(e),t),validateInputRequest:(e,t)=>ys(Wy(e),t),validateInputResponse:(e,t)=>ys(FC(e),t),samplingResultVariant:()=>YC,outboundEnvelope(e){return{[zt]:e.protocolVersion,[Ar]:e.clientInfo,[nn]:e.clientCapabilities,...e.logLevel!==void 0&&{[Kn]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let i of GC)i in e||t.push({key:i,problem:"missing"});let r=Sn().RequestMetaEnvelopeSchema.safeParse(e);if(!r.success)for(let i of r.error.issues){let n=i.path.map(String),o=n.length>0?n.join("."):"_meta";n.length===1&&t.some(a=>a.key===o&&a.problem==="missing")||t.push({key:o,problem:i.message})}return t},projectCallToolResult:e=>hw(e),inputRequestSchema:Wy,decodeResult(e,t){if(!_s(t))return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let r=t.resultType;if(r===void 0)return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: missing required resultType \\u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof r!="string")return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:r})};if(r==="input_required"){let a=t.inputRequests,s=_s(a)?a:{},c=t.requestState,l=t._meta===void 0?void 0:Sn().ResultMetaSchema.safeParse(t._meta),u=l?.success?l.data:void 0;return Object.keys(s).length===0&&typeof c!="string"?{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:s,...typeof c=="string"&&{requestState:c},...u!==void 0&&{_meta:u}}}if(r!=="complete")return{kind:"invalid",error:new re(se.UnsupportedResultType,`Unsupported result type \'${r}\' for ${e}`,{resultType:r,method:e})};let i=Tw(),n=Object.hasOwn(i,e)?i[e]:void 0;if(n!==void 0){let a=n.safeParse(t);if(!a.success)return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let o={...t};return delete o.resultType,{kind:"complete",result:o}},encodeResult(e,t,r){return LC(jC(e,AC(e,WC(e,t))),r)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=Sn().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(r=>r.message).join("; ")}`}},sm;function Tw(){if(sm)return sm;let e=Sn();return sm={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},sm}function XC(){Tw()}var xs="2026-07-28";function bn(e){return e!==void 0&&Lt(e)?pS:cS}function XR(e){return e.revision!==void 0?bn(e.revision).era:e.era==="modern"?pS.era:cS.era}function Xy(e){return xw.some(t=>t.hasRequestMethod(e))}function Qy(e){return xw.some(t=>t.hasNotificationMethod(e))}function QR(e){return e==="tasks/get"||e==="tasks/cancel"}var xw=[cS,pS];function ew(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Qn(e){if(!ew(e))return;let t=e._meta;return ew(t)?t:void 0}function fm(e){let t=Qn(e);return t!==void 0&&zt in t}function fS(e){let t=Qn(e)?.[zt];return typeof t=="string"?t:void 0}function lm(e){return bn(xs).validateEnvelopeMeta(e)}var QC=F_({AnnotationsSchema:()=>yn,AudioContentSchema:()=>no,BaseMetadataSchema:()=>vn,BaseRequestParamsSchema:()=>Ee,BlobResourceContentsSchema:()=>ss,BooleanSchemaSchema:()=>ds,CallToolRequestParamsSchema:()=>vd,CallToolRequestSchema:()=>yd,CallToolResultSchema:()=>us,CancelTaskRequestSchema:()=>Ny,CancelTaskResultSchema:()=>Ay,CancelledNotificationParamsSchema:()=>$u,CancelledNotificationSchema:()=>es,ClientCapabilitiesSchema:()=>zu,ClientNotificationSchema:()=>Uy,ClientRequestSchema:()=>jy,ClientResultSchema:()=>Ly,ClientTasksCapabilitySchema:()=>Ru,CompatibilityCallToolResultSchema:()=>ky,CompleteRequestParamsSchema:()=>Kd,CompleteRequestSchema:()=>Bd,CompleteResultSchema:()=>Jd,ContentBlockSchema:()=>ro,CreateMessageRequestParamsSchema:()=>Ed,CreateMessageRequestSchema:()=>Pd,CreateMessageResultSchema:()=>Od,CreateMessageResultWithToolsSchema:()=>Cd,CreateTaskResultSchema:()=>zy,CursorSchema:()=>Ha,DiscoverRequestSchema:()=>Eu,DiscoverResultSchema:()=>Pu,ElicitRequestFormParamsSchema:()=>ao,ElicitRequestParamsSchema:()=>Ld,ElicitRequestSchema:()=>Dd,ElicitRequestURLParamsSchema:()=>Ud,ElicitResultSchema:()=>Vd,ElicitationCompleteNotificationParamsSchema:()=>Md,ElicitationCompleteNotificationSchema:()=>qd,EmbeddedResourceSchema:()=>cd,EmptyResultSchema:()=>Qa,EnumSchemaSchema:()=>jd,GetPromptRequestParamsSchema:()=>od,GetPromptRequestSchema:()=>ad,GetPromptResultSchema:()=>dd,GetTaskPayloadRequestSchema:()=>Ey,GetTaskPayloadResultSchema:()=>Py,GetTaskRequestSchema:()=>Ty,GetTaskResultSchema:()=>xy,IconSchema:()=>ku,IconsSchema:()=>Jn,ImageContentSchema:()=>to,ImplementationSchema:()=>Xi,InitializeRequestParamsSchema:()=>Iu,InitializeRequestSchema:()=>ts,InitializeResultSchema:()=>Tu,InitializedNotificationSchema:()=>xu,JSONArraySchema:()=>_y,JSONObjectSchema:()=>Re,JSONRPCErrorResponseSchema:()=>Gi,JSONRPCMessageSchema:()=>Wi,JSONRPCNotificationSchema:()=>Xa,JSONRPCRequestSchema:()=>Wa,JSONRPCResponseSchema:()=>by,JSONRPCResultResponseSchema:()=>Yi,JSONValueSchema:()=>Fn,LegacyTitledEnumSchemaSchema:()=>fs,ListChangedOptionsBaseSchema:()=>Ry,ListPromptsRequestSchema:()=>rd,ListPromptsResultSchema:()=>id,ListResourceTemplatesRequestSchema:()=>Uu,ListResourceTemplatesResultSchema:()=>Lu,ListResourcesRequestSchema:()=>Au,ListResourcesResultSchema:()=>ju,ListRootsRequestSchema:()=>Yd,ListRootsResultSchema:()=>Gd,ListTasksRequestSchema:()=>Oy,ListTasksResultSchema:()=>Cy,ListToolsRequestSchema:()=>hd,ListToolsResultSchema:()=>gd,LoggingLevelSchema:()=>Wn,LoggingMessageNotificationParamsSchema:()=>$d,LoggingMessageNotificationSchema:()=>kd,ModelHintSchema:()=>Rd,ModelPreferencesSchema:()=>wd,MultiSelectEnumSchemaSchema:()=>Ad,NotificationSchema:()=>Ke,NotificationsParamsSchema:()=>Fe,NumberSchemaSchema:()=>oo,PaginatedRequestParamsSchema:()=>Hn,PaginatedRequestSchema:()=>Yn,PaginatedResultSchema:()=>jt,PingRequestSchema:()=>rs,PrimitiveSchemaDefinitionSchema:()=>vs,ProgressNotificationParamsSchema:()=>Cu,ProgressNotificationSchema:()=>is,ProgressSchema:()=>Ou,ProgressTokenSchema:()=>Ja,PromptArgumentSchema:()=>td,PromptListChangedNotificationSchema:()=>md,PromptMessageSchema:()=>ud,PromptReferenceSchema:()=>Fd,PromptSchema:()=>nd,ReadResourceRequestParamsSchema:()=>Du,ReadResourceRequestSchema:()=>Mu,ReadResourceResultSchema:()=>qu,RelatedTaskMetadataSchema:()=>bu,RequestIdSchema:()=>Bn,RequestMetaSchema:()=>Ya,RequestSchema:()=>we,ResourceContentsSchema:()=>os,ResourceLinkSchema:()=>ld,ResourceListChangedNotificationSchema:()=>Vu,ResourceRequestParamsSchema:()=>Qi,ResourceSchema:()=>Dr,ResourceTemplateReferenceSchema:()=>Zd,ResourceTemplateSchema:()=>Nu,ResourceUpdatedNotificationParamsSchema:()=>Qu,ResourceUpdatedNotificationSchema:()=>ed,ResultMetaObjectSchema:()=>Ga,ResultSchema:()=>_e,RoleSchema:()=>Gn,RootSchema:()=>Hd,RootsListChangedNotificationSchema:()=>Wd,SamplingContentSchema:()=>Td,SamplingMessageContentBlockSchema:()=>Cr,SamplingMessageSchema:()=>xd,ServerCapabilitiesSchema:()=>ns,ServerNotificationSchema:()=>My,ServerRequestSchema:()=>Dy,ServerResultSchema:()=>qy,ServerTasksCapabilitySchema:()=>wu,SetLevelRequestParamsSchema:()=>_d,SetLevelRequestSchema:()=>bd,SingleSelectEnumSchemaSchema:()=>Nd,StringSchemaSchema:()=>io,SubscribeRequestParamsSchema:()=>Zu,SubscribeRequestSchema:()=>Fu,SubscriptionFilterSchema:()=>cs,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Yu,SubscriptionsAcknowledgedNotificationSchema:()=>Gu,SubscriptionsListenRequestParamsSchema:()=>Ju,SubscriptionsListenRequestSchema:()=>Hu,SubscriptionsListenResultMetaSchema:()=>Wu,SubscriptionsListenResultSchema:()=>Xu,TaskAugmentedRequestParamsSchema:()=>Lr,TaskCreationParamsSchema:()=>wy,TaskMetadataSchema:()=>_u,TaskSchema:()=>Xn,TaskStatusNotificationParamsSchema:()=>Qd,TaskStatusNotificationSchema:()=>Iy,TaskStatusSchema:()=>Xd,TextContentSchema:()=>eo,TextResourceContentsSchema:()=>as,TitledMultiSelectEnumSchemaSchema:()=>gs,TitledSingleSelectEnumSchemaSchema:()=>ps,ToolAnnotationsSchema:()=>pd,ToolChoiceSchema:()=>zd,ToolExecutionSchema:()=>fd,ToolListChangedNotificationSchema:()=>Sd,ToolResultContentSchema:()=>Id,ToolSchema:()=>ls,ToolUseContentSchema:()=>sd,UnsubscribeRequestParamsSchema:()=>Ku,UnsubscribeRequestSchema:()=>Bu,UntitledMultiSelectEnumSchemaSchema:()=>hs,UntitledSingleSelectEnumSchemaSchema:()=>ms});var Dt=e=>Wa.safeParse(e).success,hm=e=>Xa.safeParse(e).success,rn=e=>Yi.safeParse(e).success,on=e=>Gi.safeParse(e).success;var $n=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.resultType==="input_required";var hS=e=>ts.safeParse(e).success;function gS(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function vS(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var eN="Mcp-Param-",tw="x-mcp-header",tN=/^[!#$%&\'*+\\-.^_`|~0-9A-Za-z]+$/,nN=new Set(["string","integer","boolean"]);function gm(e){let t=[],r=new Map,i,n=(a,s,c)=>{if(a===null||typeof a!="object")return;let l=a;if(tw in l){if(!c||s.length===0)return`${so(s)}: x-mcp-header is only permitted on properties statically reachable via a chain of \'properties\' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let m=l[tw];if(typeof m!="string"||m.length===0)return`${so(s)}: x-mcp-header MUST be a non-empty string`;if(!tN.test(m))return`${so(s)}: x-mcp-header \'${m}\' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let p=typeof l.type=="string"?l.type:void 0;if(p===void 0||!nN.has(p)){let v=`${so(s)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${p??"<none>"}`;if(p!=="number")return v;i??=v}let f=m.toLowerCase(),h=r.get(f);if(h!==void 0)return`x-mcp-header \'${m}\' is not case-insensitively unique (also declared as \'${h}\')`;r.set(f,m),t.push({path:s,headerName:m,type:p})}let u=l.properties;if(u!==null&&typeof u=="object")for(let[m,p]of Object.entries(u)){let f=n(p,[...s,m],c);if(f!==void 0)return f}for(let m of rN){let p=l[m];if(p===void 0)continue;let f=Array.isArray(p)?p:p!==null&&typeof p=="object"&&iN.has(m)?Object.values(p):[p];for(let h of f){let v=n(h,[...s,`<${m}>`],!1);if(v!==void 0)return v}}},o=n(e,[],!0);return o!==void 0?{valid:!1,reason:i??o}:i===void 0?{valid:!0,declarations:t}:{valid:!1,reason:i,declarations:t}}var rN=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],iN=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function so(e){return e.length===0?"<root>":e.join(".")}var oN="=?base64?",aN="?=",sN=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,cN=/^-?\\d+(\\.\\d+)?$/;function lN(e){if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number")return!Number.isFinite(e)||Number.isInteger(e)&&!Number.isSafeInteger(e)?void 0:String(e)}function uN(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.codePointAt(i);return new TextDecoder("utf-8",{fatal:!0}).decode(r)}function Ew(e){if(!(e.startsWith(oN)&&e.endsWith(aN)))return e;let t=e.slice(9,e.length-2);if(sN.test(t))try{return uN(t)}catch{return}}function dN(e,t){let r=e;for(let i of t){if(r===null||typeof r!="object")return;r=r[i]}return r}function Pw(e,t,r){for(let i of e){let n=`${eN}${i.headerName}`,o=r.get(n),a=dN(t,i.path);if(a==null)continue;let s=lN(a);if(s===void 0)continue;if(o===null)return eS("param-header-missing",n,`the body carries ${so(i.path)}=${JSON.stringify(a)} but the ${n} header is absent`);let c=Ew(o);if(c===void 0)return eS("param-header-invalid-encoding",n,`the ${n} header carries an invalid Base64 sentinel value`);if(!((i.type==="integer"||i.type==="number")&&cN.test(c)&&typeof a=="number"?Number(c)===a:c===s))return eS("param-header-mismatch",n,`the ${n} header decodes to ${JSON.stringify(c)} but the body carries ${so(i.path)}=${JSON.stringify(a)}`)}}function eS(e,t,r){return{kind:"reject",rung:"param-header-validation",cell:e,httpStatus:400,code:lo,message:`Bad Request: the request headers and body disagree: ${r}`,data:{mismatch:{header:t,body:r}},settled:!0}}var lo=-32020,Z4=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[O.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[lo,O.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[O.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \\u2014 and a missing envelope on a request whose protocol-version header names a modern revision \\u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[O.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[O.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[lo],conformance:["http-header-validation"],rationale:"SEP-2243 standard `MCP-Protocol-Version` / `Mcp-Method` / `Mcp-Name` headers \\u2014 presence, sentinel decoding, and `Mcp-Name` \\u2194 body cross-check \\u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The spec requires `MCP-Protocol-Version` and `Mcp-Method` on every modern *request* POST (`Mcp-Name` only for the methods that mirror `params.name` / `params.uri` / `params.taskId`, see `MCP_NAME_HEADER_SOURCE`) and names them in that order, so a request missing several is answered by the earliest. Notification POSTs are exempt: the presence half runs on requests only, so a modern-enveloped notification is dispatched even with no standard headers at all. The classifier\\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half \\u2014 including the missing `MCP-Protocol-Version` cell, which cannot live on the edge rung without breaking body-primary classification. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[O.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \\u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[lo],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],yS={[O.ParseError]:400,[O.InvalidRequest]:400,[O.MethodNotFound]:404,[O.UnsupportedProtocolVersion]:400,[O.MissingRequiredClientCapability]:400,[lo]:400};function Ow(e,t){return t==="in-band"?e===O.MissingRequiredClientCapability?400:200:yS[e]??400}function It(e,t,r,i,n){return{kind:"reject",rung:e,cell:t,httpStatus:r,code:i.code,message:i.message,...i.data!==void 0&&{data:i.data},settled:n}}function Ut(e,t,r,i="era-classification"){return It(i,e,400,new j(lo,`Bad Request: the request headers and body disagree: ${r}`,{mismatch:{header:t,body:r}}),!0)}var nw={"tools/call":"name","prompts/get":"name","resources/read":"uri","tasks/get":"taskId","tasks/update":"taskId","tasks/cancel":"taskId"};function mN(e,t){let r=Object.hasOwn(nw,e)?nw[e]:void 0;if(r===void 0)return;let i=$s(t)?t[r]:void 0;return{field:r,value:typeof i=="string"?i:void 0}}function cm(e){let t=0;for(;t<e.length;){let i=e.codePointAt(t);if(i!==9&&i!==32)break;t+=1}let r=e.length;for(;r>t;){let i=e.codePointAt(r-1);if(i!==9&&i!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function Cw(e,t){if(t.messageKind!=="request")return;let r=t.message.method;if(e.protocolVersionHeader===void 0){let c=t.classification.revision;return Ut("version-header-missing","(missing)",c===void 0?"the body carries a modern per-request envelope but the required MCP-Protocol-Version header is absent":`the body envelope names protocol version ${c} but the required MCP-Protocol-Version header is absent`,"standard-header-validation")}if(e.mcpMethodHeader===void 0)return Ut("method-header-missing","(missing)",`the body names method ${r} but the required Mcp-Method header is absent`,"standard-header-validation");let i=mN(r,t.message.params);if(i===void 0)return;let{field:n,value:o}=i;if(e.mcpNameHeader===void 0)return o===void 0?void 0:Ut("name-header-missing","(missing)",`the body carries params.${n}="${o}" but the required Mcp-Name header is absent`,"standard-header-validation");let a=cm(e.mcpNameHeader),s=Ew(a);if(s===void 0)return Ut("name-header-invalid-encoding",a,"the Mcp-Name header carries an invalid Base64 sentinel value","standard-header-validation");if(o!==void 0&&s!==o)return Ut("name-header-mismatch",a,`the body carries params.${n}="${o}" but the Mcp-Name header names "${s}"`,"standard-header-validation")}function $s(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Nw(e){return e===void 0?{era:"modern"}:{era:Lt(e)?"modern":"legacy",revision:e}}function pN(e){if(!fm(e))return!1;let t=fS(e);if(t===void 0||!Lt(t))return!1;let r=Qn(e);return r!==void 0&&lm(r).length===0}function fN(e){if(e.length===0)return It("jsonrpc-shape","empty-batch",400,new j(O.InvalidRequest,"Bad Request: empty JSON-RPC batch"),!0);for(let t of e){if(fm($s(t)?t.params:void 0))return It("jsonrpc-shape","batch-with-modern-element",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC batches may not contain requests for protocol revision 2026-07-28 or later"),!0);if(!(Dt(t)||hm(t)||rn(t)||on(t)))return It("jsonrpc-shape","batch-with-invalid-element",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC batch contains an invalid message"),!0)}return{kind:"legacy",reason:"batch"}}function hN(e,t){let r=t.params,i=t.method,n=e.protocolVersionHeader,o=n!==void 0&&Lt(n);if(i==="initialize"&&!pN(r)){if(o)return Ut("initialize-with-modern-header",n,"an initialize request (legacy handshake) was sent with a modern MCP-Protocol-Version header");let a=$s(r)&&typeof r.protocolVersion=="string"?r.protocolVersion:void 0;return{kind:"legacy",reason:"initialize",...a!==void 0&&{requestedVersion:a}}}if(fm(r)){let a=Qn(r),s=(a===void 0?[]:lm(a))[0];if(s!==void 0)return It("envelope","envelope-invalid",400,new j(O.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${s.key}: ${s.problem}`,{envelope:s}),!0);let c=fS(r);return n!==void 0&&c!==void 0&&n!==c?Ut("header-body-version-mismatch",n,`the body envelope names protocol version ${c} but the MCP-Protocol-Version header names ${n}`):e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==i?Ut("method-header-mismatch",e.mcpMethodHeader,`the body names method ${i} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"request",message:t,classification:Nw(c)}}if(o){let a=Qn(r),s=lm(a??{}).filter(l=>l.problem==="missing").map(l=>l.key),c=a===void 0?["_meta"]:s.length>0?s:[zt];return It("envelope","modern-header-without-claim",400,new j(O.InvalidParams,`Invalid params: the MCP-Protocol-Version header names protocol revision ${n}, but the request is missing the required per-request envelope key(s): ${c.join(", ")}`,{envelope:{missing:c}}),!0)}return{kind:"legacy",reason:"no-claim",...n!==void 0&&{requestedVersion:n}}}function gN(e,t){let r=t.params,i=t.method,n=e.protocolVersionHeader,o=n!==void 0&&Lt(n);if(fm(r)){let a=fS(r);if(a===void 0){let c=Qn(r),l=(c===void 0?[]:lm(c)).find(u=>u.key===zt)??{key:zt,problem:"expected a protocol version string"};return It("envelope","notification-envelope-invalid",400,new j(O.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${l.key}: ${l.problem}`,{envelope:l}),!0)}if(n!==void 0&&n!==a)return Ut("notification-header-body-version-mismatch",n,`the notification envelope names protocol version ${a} but the MCP-Protocol-Version header names ${n}`);let s=Nw(a);return s.era==="modern"&&e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==i?Ut("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${i} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:s}}return o?e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==i?Ut("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${i} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:{era:"modern",revision:n}}:{kind:"legacy",reason:"notification",...n!==void 0&&{requestedVersion:n}}}function Aw(e){if(e={...e,...e.protocolVersionHeader!==void 0&&{protocolVersionHeader:cm(e.protocolVersionHeader)},...e.mcpMethodHeader!==void 0&&{mcpMethodHeader:cm(e.mcpMethodHeader)},...e.mcpNameHeader!==void 0&&{mcpNameHeader:cm(e.mcpNameHeader)}},e.httpMethod.toUpperCase()!=="POST")return{kind:"legacy",reason:"http-method"};let t=e.body;return Array.isArray(t)?fN(t):rn(t)||on(t)?{kind:"legacy",reason:"response"}:$s(t)&&Dt(t)?hN(e,t):$s(t)&&hm(t)?gN(e,t):It("jsonrpc-shape","invalid-json-rpc-body",400,new j(O.InvalidRequest,"Bad Request: the request body is not a valid JSON-RPC message"),!0)}function jw(e,t){switch(e.reason){case"http-method":return It("http-method","modern-only-method-not-allowed",405,new j(-32e3,"Method not allowed."),!0);case"batch":return It("jsonrpc-shape","modern-only-batch-not-supported",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC batches are not supported by this endpoint"),!0);case"response":return It("jsonrpc-shape","modern-only-response-post",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC responses cannot be posted to this endpoint"),!0);case"notification":return;case"initialize":case"no-claim":{let r=e.requestedVersion;return It("era-classification","modern-only-missing-envelope",400,r===void 0?new j(O.UnsupportedProtocolVersion,"Unsupported protocol version: the request did not name a protocol version",{supported:[...t]}):new pm({supported:[...t],requested:r}),!0)}}}function vm(e,t){return Ca(e,t)}function Ss(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function uo(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var rw=!1,iS="draft-2020-12";function Kr(e,t="input"){let r=e["~standard"],i;if(r.jsonSchema)i=r.jsonSchema[t]({target:iS});else if(r.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");rw||(rw=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),i=xr(e,{target:iS,io:t})}else throw new Error(`Schema library "${r.vendor}" does not implement StandardJSONSchemaV1 (\\`~standard.jsonSchema\\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return i.type!==void 0?i:Uw(i)?{type:"object",...i}:i;if(i.type!==void 0&&i.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(i.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...i}}var vN=/^#\\/(\\$defs|definitions)\\/([^/~%]+)$/;function Uw(e,t=e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;let r=typeof e.$ref=="string"&&vN.exec(e.$ref);if(r&&t[r[1]]?.[r[2]]?.type==="object")return!0;for(let i of["oneOf","anyOf","allOf"]){let n=e[i];if(Array.isArray(n)&&n.length>0)return n.every(o=>o!==null&&typeof o=="object"&&(o.type==="object"||Uw(o,"$id"in o?{}:t)))}return!1}function yN(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function qr(e,t){let r=await e["~standard"].validate(t);return r.issues&&r.issues.length>0?{success:!1,error:r.issues.map(i=>yN(i)).join(", ")}:{success:!0,data:r.value}}function SN(e){let t=xr(e,{target:iS,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var _N=/\\\\\\.\\\\d\\{(\\d+)\\}/;function bN(e){let t=_N.exec(e),r=[void 0,-1,0];return t&&r.push(Number(t[1])),[!1,!0].flatMap(i=>[!1,!0].flatMap(n=>r.map(o=>wt.datetime({local:i,offset:n,precision:o}))))}function $N(e,t){let r;switch(e){case"email":r=[Yl()];break;case"uri":r=[Fi()];break;case"date":r=[wt.date()];break;case"date-time":r=bN(t);break}return new Set(r.map(i=>SN(i)).filter(i=>i!==void 0))}function kN(e,t,r){return r!=="zod"?!0:$N(e,t).has(t)}function Lw(e){let t=Kr(e,"input"),r=t.properties||{},i=t.required||[];return Object.entries(r).map(([n,o])=>({name:n,description:o?.description,required:i.includes(n)}))}function ks(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function RN(e){try{return Kr(e,"input")}catch(t){let r=t instanceof Error?t.message:String(t);throw new j(O.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${r}`)}}var wN=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function SS(e){return wN.has(e)||e.startsWith("x-")}var zN=new Set(["$schema",...Object.keys(ao.shape.requestedSchema.shape)]),iw={string:Ss([io,ms,ps,fs]),number:Ss([oo]),integer:Ss([oo]),boolean:Ss([ds]),array:Ss([hs,gs])},IN=new Set(io.shape.format.unwrap().options);function TN(e,t,r,i){if(!ks(e))return e;let n=typeof e.type=="string"&&Object.hasOwn(iw,e.type)?iw[e.type]:void 0;if(n===void 0)return e;let o={};for(let[a,s]of Object.entries(e))n.has(a)||SS(a)?o[a]=s:a==="pattern"&&e.type==="string"&&typeof e.format=="string"?IN.has(e.format)?(typeof s!="string"||!kN(e.format,s,r))&&i.push(`${t}.${a}`):o[a]=s:i.push(`${t}.${a}`);return o}function xN(e,t){let r={},i=[];for(let[n,o]of Object.entries(e))n==="properties"&&ks(o)?r[n]=Object.fromEntries(Object.entries(o).map(([a,s])=>[a,TN(s,`properties.${a}`,t,i)])):zN.has(n)?r[n]=o:SS(n)||i.push(n);if(i.length>0)throw new j(O.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(", ")}`);return r}function EN(e,t){if(!ks(e.properties))return t;let r=Object.entries(e.properties).filter(([,i])=>!vm(vs,i).success).map(([i])=>`properties.${i}`);return r.length>0?r.join(", "):t}function oS(e,t,r=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((i,n)=>oS(i,t[n],`${r}[${n}]`)):!ks(e)||!ks(t)?[]:Object.entries(e).flatMap(([i,n])=>{let o=r?`${r}.${i}`:i;return Object.prototype.hasOwnProperty.call(t,i)?oS(n,t[i],o):SS(i)?[]:[o]})}function PN(e){if(!uo(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,r=xN(RN(e.requestedSchema),t),i=vm(ao.shape.requestedSchema,r);if(!i.success)throw new j(O.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${EN(r,i.error.message)}`);let n=oS(r,i.data);if(n.length>0)throw new j(O.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${n.join(", ")}`);let o=(i.data.required??[]).filter(a=>!Object.prototype.hasOwnProperty.call(i.data.properties,a));if(o.length>0)throw new j(O.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${o.join(", ")}`);return{...e,mode:"form",requestedSchema:i.data}}function ON(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,r=typeof e.requestState=="string";if(!t&&!r)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var er=Object.assign(ON,{elicit(e){try{return{method:"elicitation/create",params:PN(e)}}catch(t){throw t instanceof j?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});function _S(e,t){if(e===void 0||typeof e!="object"||e===null)return{kind:"missing"};let r=e[t];if(r===null||typeof r!="object"||Array.isArray(r))return{kind:"missing"};let i=r;if(i.action==="accept"||i.action==="decline"||i.action==="cancel"){let n=i.content;return{kind:"elicit",action:i.action,...n!==null&&typeof n=="object"&&!Array.isArray(n)&&{content:n}}}return Array.isArray(i.roots)?{kind:"roots",roots:i.roots}:typeof i.role=="string"&&i.content!==void 0?{kind:"sampling",result:i}:{kind:"missing"}}var Dw=250;function Mw(e,t){return`Multi-round-trip request \'${e}\' still required input after ${t} rounds (inputRequired.maxRounds)`}function qw(e,t){return new Promise((r,i)=>{if(t?.aborted){i(t.reason instanceof re?t.reason:new re(se.RequestTimeout,String(t.reason)));return}let n=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e),o=()=>{clearTimeout(n),i(t?.reason instanceof re?t.reason:new re(se.RequestTimeout,String(t?.reason)))};t?.addEventListener("abort",o,{once:!0})})}function Vw(e){let t=new AbortController,r=()=>t.abort(e?.reason);return e?.addEventListener("abort",r,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:i=>t.abort(i),dispose:()=>e?.removeEventListener("abort",r)}}var CN=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],NN={IdJagTokenExchangeResponseSchema:By,OAuthClientInformationFullSchema:Hy,OAuthClientInformationSchema:rm,OAuthClientMetadataSchema:nm,OAuthClientRegistrationErrorSchema:Yy,OAuthErrorResponseSchema:Jy,OAuthMetadataSchema:em,OAuthProtectedResourceMetadataSchema:Zy,OAuthTokenRevocationRequestSchema:Gy,OAuthTokensSchema:Ky,OpenIdProviderDiscoveryMetadataSchema:Fy,OpenIdProviderMetadataSchema:tm},Zw={},Fw={};function Kw(e,t){let r=e.slice(0,-6);Zw[r]=t,Fw[r]=i=>t.safeParse(i).success}for(let e of CN)Kw(e,QC[e]);for(let[e,t]of Object.entries(NN))Kw(e,t);var AN=Object.freeze(Zw),jN=Object.freeze(Fw);function UN(e){switch(e){case"initialize":case"notifications/initialized":return bn(void 0);case"server/discover":return bn(xs);default:return}}var Bw=6e4,LN=[zt,Ar,nn,Kn],DN=["inputResponses","requestState"];function ow(e,t){let r=e.params;if(!bs(r))return{message:e,lifted:{}};let i=r._meta,n=bs(i)?LN.filter(c=>c in i):[],o=t==="request"?DN.filter(c=>c in r):[];if(n.length===0&&o.length===0)return{message:e,lifted:{}};let a={},s={...r};if(n.length>0&&bs(i)){let c={},l={...i};for(let u of n)c[u]=i[u],delete l[u];a.envelope=c,Object.keys(l).length>0?s._meta=l:delete s._meta}for(let c of o)c==="inputResponses"&&(a.inputResponses=s[c]),c==="requestState"&&(a.requestState=s[c]),delete s[c];return{message:{...e,params:s},lifted:a}}function aw(e,t){let r=e.validateResult(t,void 0);if(!(!r.ok&&r.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(i){let n=e.validateResult(t,i);return n.ok?{value:n.value}:{issues:[{message:n.reason==="invalid"?n.message:`not-in-era: ${t}`}]}}}}}function Es(e){return()=>e}var MN=Es(void 0);function bS(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:Es(t)}}}var Jw;function Hw(e,t){Jw(e,t)}var $S=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_customSchemaRequestMethods=new Set;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{Jw=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??Ba,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let r=e.params??{};return{...e,params:{...r,_meta:{...t,...r._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new re(se.UnsupportedResultType,`Unsupported result type \'${e.kind}\' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId!==void 0&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,r,i,n=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,t),startTime:Date.now(),timeout:t,maxTotalTimeout:r,resetTimeoutOnProgress:n,onTimeout:i})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let r=Date.now()-t.startTime;if(t.maxTotalTimeout&&r>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new re(se.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:r});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let r=this.transport?.onerror;this._transport.onerror=n=>{r?.(n),this._onerror(n)};let i=this._transport?.onmessage;this._transport.onmessage=(n,o)=>{i?.(n,o),rn(n)||on(n)?this._onresponse(n):Dt(n)?this._onrequest(n,o):hm(n)?this._onnotification(n,o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let r=new re(se.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let i of e.values())i(r);for(let i of t.values())i.abort(r)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:r}=ow(e,"notification"),i=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let a=XR(t.classification);if(a!==i.era){this._onerror(new Error(`Era mismatch on inbound notification \'${r.method}\': classified as ${a} but this instance serves ${i.era}`));return}}if(Qy(r.method)&&!i.hasNotificationMethod(r.method))return;let n=this._notificationHandlers.get(r.method),o=this.fallbackNotificationHandler;n===void 0&&o===void 0||Promise.resolve().then(()=>n===void 0?o(r):n(r,i)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(e,t){let{message:r,lifted:i}=ow(e,"request"),n=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request \'${e.method}\': not servable on this connection\'s protocol era`));return}let o=this._transport,a=(v,y,R)=>{let w={jsonrpc:"2.0",id:r.id,error:{code:v,message:y,...R!==void 0&&{data:R}}};o?.send(w).catch(E=>this._onerror(new Error(`Failed to send an error response: ${E}`)))};if(t?.classification!==void 0){let v=XR(t.classification);if(v!==n.era){this._onerror(new Error(`Era mismatch on inbound request \'${r.method}\': classified as ${v} but this instance serves ${n.era}`));let y=t.classification.revision??v;a(O.UnsupportedProtocolVersion,`Unsupported protocol version: ${y}`,{supported:this._supportedProtocolVersions,requested:y});return}}if(Xy(r.method)&&!n.hasRequestMethod(r.method)&&!(QR(r.method)&&this._customSchemaRequestMethods.has(r.method))){a(O.MethodNotFound,"Method not found");return}let s=this._requestHandlers.get(r.method)??this.fallbackRequestHandler;if(s===void 0){a(O.MethodNotFound,"Method not found");return}let c=n.checkInboundEnvelope(i);if(c!==void 0){a(O.InvalidParams,c);return}let l=(v,y)=>this._notificationViaCodec(this._resolveOutboundCodec(v.method),v,{...y,relatedRequestId:r.id}),u=(v,y,R)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(v.method),v,y,{...R,relatedRequestId:r.id}),m=new AbortController;this._requestHandlerAbortControllers.set(r.id,m);let p=i.inputResponses===void 0?void 0:qN(i.inputResponses),f={sessionId:o?.sessionId,mcpReq:{id:r.id,method:r.method,_meta:r.params?._meta,...i.envelope!==void 0&&{envelope:i.envelope},...p!==void 0&&{inputResponses:p.accepted},...p!==void 0&&p.droppedKeys.length>0&&{droppedInputResponseKeys:p.droppedKeys},requestState:i.requestState===void 0?MN:Es(i.requestState),signal:m.signal,send:((v,y,R)=>{let w=this._resolveOutboundCodec(v.method);if(this._assertOutboundRequestInEra(w,v.method),uo(y))return u(v,y,R);let E=aw(w,v.method);if(E===void 0)throw new TypeError(`\'${v.method}\' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(v,E,y)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},h=this.buildContext(f,t);Promise.resolve().then(()=>s(r,h)).then(async v=>{if(m.signal.aborted)return;let y;try{y=n.encodeResult(r.method,v,this._outboundServerInfo())}catch(w){this._onerror(new Error(`Failed to encode result for ${r.method}: ${w}`)),a(O.InternalError,"Internal error");return}let R={result:y,jsonrpc:"2.0",id:r.id};await o?.send(R)},async v=>{if(m.signal.aborted)return;let y=Number.isSafeInteger(v.code)?v.code:O.InternalError,R={jsonrpc:"2.0",id:r.id,error:{code:n.encodeErrorCode(y),message:v.message??"Internal error",...v.data!==void 0&&{data:v.data}}};await o?.send(R)}).catch(v=>this._onerror(new Error(`Failed to send response: ${v}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===m&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(e){let{progressToken:t,...r}=e.params,i=Number(t),n=this._progressHandlers.get(i);if(!n){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(s){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(s);return}n(r)}_onresponse(e){let t=Number(e.id),r=this._responseHandlers.get(t);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),rn(e)?r(e):r(j.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,r){let i=this._resolveOutboundCodec(e.method);if(uo(t))return QR(e.method)||this._assertOutboundRequestInEra(i,e.method),this._requestWithSchemaViaCodec(i,e,t,r);this._assertOutboundRequestInEra(i,e.method);let n=aw(i,e.method);if(n===void 0)throw new TypeError(`\'${e.method}\' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(i,e,n,t)}_negotiatedWireCodec(){return bn(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=UN(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(Xy(t)&&!e.hasRequestMethod(t))throw new re(se.MethodNotSupportedByProtocolVersion,`Method \'${t}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,r){let i=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(i,e.method),this._requestWithSchemaViaCodec(i,e,t,r)}_requestWithSchemaViaCodec(e,t,r,i){let{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a,headers:s}=i??{},c=Date.now(),l,u;return new Promise((m,p)=>{let f=N=>{p(N)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(N){f(N);return}if(i?.signal?.aborted){let N=i.signal.reason;throw N instanceof re?N:new re(se.RequestTimeout,String(N))}let h=e.era===xs&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,v=this._requestMessageId++;u=v;let y={...t,jsonrpc:"2.0",id:v};i?.onprogress&&(this._progressHandlers.set(v,i.onprogress),y.params={...t.params,_meta:{...t.params?._meta,progressToken:v}});let R=this._envelopeOutbound(y),w=!1,E=N=>{w||(this._progressHandlers.delete(v),h===void 0?t.method!=="initialize"&&this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:v,reason:String(N)}}),{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a}).catch(te=>this._onerror(new Error(`Failed to send cancellation: ${te}`))):h.abort(),p(N instanceof re?N:new re(se.RequestTimeout,String(N))))};this._responseHandlers.set(v,N=>{if(i?.signal?.aborted)return;if(w=!0,N instanceof Error)return p(N);let te;try{te=e.decodeResult(t.method,N.result)}catch(Y){return p(Y instanceof Error?Y:new Error(String(Y)))}if(te.kind==="invalid")return p(te.error);if(te.kind==="input_required"){if(i?.allowInputRequired===!0)return m(VN(te));let Y={codec:e,request:t,resultSchema:r,options:i,flowStartedAt:c,retry:(ye,be)=>this._requestWithSchemaViaCodec(e,ye===void 0?{method:t.method}:{method:t.method,params:ye},r,be)};return m(this._resolveNonCompleteResult(te,Y))}let ie=te.result;qr(r,ie).then(Y=>{Y.success?m(Y.data):p(new re(se.InvalidResult,`Invalid result for ${t.method}: ${Y.error}`))},p)}),l=()=>E(i?.signal?.reason),i?.signal?.addEventListener("abort",l,{once:!0});let D=i?.timeout??Bw,F=()=>E(new re(se.RequestTimeout,"Request timed out",{timeout:D}));this._setupTimeout(v,D,i?.maxTotalTimeout,F,i?.resetTimeoutOnProgress??!1),this._transport.send(R,{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a,headers:s,requestSignal:h?.signal}).catch(N=>{this._progressHandlers.delete(v),p(N)})}).finally(()=>{l&&i?.signal?.removeEventListener("abort",l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return await this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,r){if(!this._transport)throw new re(se.NotConnected,"Not connected");if(Qy(t.method)&&!e.hasNotificationMethod(t.method))throw new re(se.MethodNotSupportedByProtocolVersion,`Notification \'${t.method}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let i=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&r?.relatedRequestId===void 0){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(i,r).catch(n=>this._onerror(n))});return}await this._transport.send(i,r)}setRequestHandler(e,t,r){this.assertRequestHandlerCapability(e);let i;if(typeof t=="function"){if(!Xy(e))throw new TypeError(`\'${e}\' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);i=(n,o)=>{let a=this._negotiatedWireCodec(),s=a.validateRequest(e,n);if(!s.ok&&s.reason==="not-in-era"&&(s=a.validateInputRequest(e,n)),!s.ok)throw s.reason==="not-in-era"?new j(O.InternalError,`No wire schema for ${e} in the resolved era`):new Error(s.message);return Promise.resolve(t(s.value,o))}}else if(r)i=async(n,o)=>{let a=await qr(t.params,{...n.params});if(!a.success)throw new j(O.InvalidParams,`Invalid params for ${e}: ${a.error}`);return r(a.data,o)};else throw new TypeError("setRequestHandler: handler is required");typeof t=="function"?this._customSchemaRequestMethods.delete(e):this._customSchemaRequestMethods.add(e),this._requestHandlers.set(e,this._wrapHandler(e,i))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e),this._customSchemaRequestMethods.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,r){if(typeof t=="function"){if(!Qy(e))throw new TypeError(`\'${e}\' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(i,n)=>{let o=n.validateNotification(e,i);if(!o.ok)throw o.reason==="not-in-era"?new j(O.InternalError,`No wire schema for ${e} in the resolved era`):new Error(o.message);return Promise.resolve(t(o.value))});return}if(!r)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async i=>{let n=await qr(t.params,{...i.params});if(!n.success)throw new j(O.InvalidParams,`Invalid params for notification ${e}: ${n.error}`);await r(n.data,i)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function bs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function kS(e,t){let r={...e};for(let i in t){let n=i,o=t[n];if(o===void 0)continue;let a=r[n];r[n]=bs(a)&&bs(o)?{...a,...o}:o}return r}function sw(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function qN(e){let t={},r=[];if(!sw(e))return{accepted:t,droppedKeys:r};for(let[i,n]of Object.entries(e)){if(!sw(n)||"method"in n||"result"in n){r.push(i);continue}t[i]=n}return{accepted:t,droppedKeys:r}}function VN(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState},...e._meta!==void 0&&{_meta:e._meta}}}var ZN=Z_((e=>{var t=/; *([!#$%&\'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\\u000b\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e\\u0080-\\u00ff]|\\\\[\\u000b\\u0020-\\u00ff])*"|[!#$%&\'*+.^_`|~0-9A-Za-z-]+) */g,r=/\\\\([\\u000b\\u0020-\\u00ff])/g,i=/^[!#$%&\'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&\'*+.^_`|~0-9A-Za-z-]+$/;e.parse=n;function n(s){if(!s)throw new TypeError("argument string is required");var c=typeof s=="object"?o(s):s;if(typeof c!="string")throw new TypeError("argument string is required to be a string");var l=c.indexOf(";"),u=l!==-1?c.slice(0,l).trim():c.trim();if(!i.test(u))throw new TypeError("invalid media type");var m=new a(u.toLowerCase());if(l!==-1){var p,f,h;for(t.lastIndex=l;f=t.exec(c);){if(f.index!==l)throw new TypeError("invalid parameter format");l+=f[0].length,p=f[1].toLowerCase(),h=f[2],h.charCodeAt(0)===34&&(h=h.slice(1,-1),h.indexOf("\\\\")!==-1&&(h=h.replace(r,"$1"))),m.parameters[p]=h}if(l!==c.length)throw new TypeError("invalid parameter format")}return m}function o(s){var c;if(typeof s.getHeader=="function"?c=s.getHeader("content-type"):typeof s.headers=="object"&&(c=s.headers&&s.headers["content-type"]),typeof c!="string")throw new TypeError("content-type header is missing from object");return c}function a(s){this.parameters=Object.create(null),this.type=s}})),FN=K_(ZN(),1);function RS(e){if(e)try{return FN.parse(e).type}catch{let t=(e.split(";",1)[0]??"").trim().toLowerCase();return t===""||e.slice(t.length).includes(",")?void 0:t}}function wS(e){return e==="application/json"?!0:RS(e)==="application/json"}var KN=10*1024*1024;var BN=/^[A-Za-z0-9._-]{1,128}$/;function JN(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!BN.test(e)){let r=[...e].filter(i=>!/[A-Za-z0-9._-]/.test(i)).filter((i,n,o)=>o.indexOf(i)===n);return t.push(`Tool name contains invalid characters: ${r.map(i=>`"${i}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function HN(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let r of t)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function zS(e){let t=JN(e);return HN(e,t.warnings),t.isValid}var cw=1e6,tS=1e6,lw=1e4,YN=1e6,IS=class Mr{static isTemplate(t){return/\\{[^}\\s]+\\}/.test(t)}static validateLength(t,r,i){if(t.length>r)throw new Error(`${i} exceeds maximum length of ${r} characters (got ${t.length})`)}template;parts;get variableNames(){return this.parts.flatMap(t=>typeof t=="string"?[]:t.names)}constructor(t){Mr.validateLength(t,cw,"Template"),this.template=t,this.parts=this.parse(t)}toString(){return this.template}parse(t){let r=[],i="",n=0,o=0;for(;n<t.length;)if(t[n]==="{"){i&&(r.push(i),i="");let a=t.indexOf("}",n);if(a===-1)throw new Error("Unclosed template expression");if(o++,o>lw)throw new Error(`Template contains too many expressions (max ${lw})`);let s=t.slice(n+1,a),c=this.getOperator(s),l=s.includes("*"),u=this.getNames(s),m=u[0];for(let p of u)Mr.validateLength(p,tS,"Variable name");r.push({name:m,operator:c,names:u,exploded:l}),n=a+1}else i+=t[n],n++;return i&&r.push(i),r}getOperator(t){return["+","#",".","/","?","&"].find(r=>t.startsWith(r))||""}getNames(t){let r=this.getOperator(t);return t.slice(r.length).split(",").map(i=>i.replace("*","").trim()).filter(i=>i.length>0)}encodeValue(t,r){return Mr.validateLength(t,tS,"Variable value"),r==="+"||r==="#"?encodeURI(t):encodeURIComponent(t)}expandPart(t,r){if(t.operator==="?"||t.operator==="&"){let o=t.names.map(a=>{let s=r[a];return s===void 0?"":`${a}=${Array.isArray(s)?s.map(c=>this.encodeValue(c,t.operator)).join(","):this.encodeValue(s.toString(),t.operator)}`}).filter(a=>a.length>0);return o.length===0?"":(t.operator==="?"?"?":"&")+o.join("&")}if(t.names.length>1){let o=t.names.map(a=>r[a]).filter(a=>a!==void 0);return o.length===0?"":o.map(a=>Array.isArray(a)?a[0]:a).join(",")}let i=r[t.name];if(i===void 0)return"";let n=(Array.isArray(i)?i:[i]).map(o=>this.encodeValue(o,t.operator));switch(t.operator){case"":return n.join(",");case"+":return n.join(",");case"#":return"#"+n.join(",");case".":return"."+n.join(".");case"/":return"/"+n.join("/");default:return n.join(",")}}expand(t){let r="",i=!1;for(let n of this.parts){if(typeof n=="string"){r+=n;continue}let o=this.expandPart(n,t);o&&(r+=(n.operator==="?"||n.operator==="&")&&i?o.replace("?","&"):o,(n.operator==="?"||n.operator==="&")&&(i=!0))}return r}escapeRegExp(t){return t.replaceAll(/[.*+?^${}()|[\\]\\\\]/g,String.raw`\\$&`)}partToRegExp(t){let r=[];for(let o of t.names)Mr.validateLength(o,tS,"Variable name");if(t.operator==="?"||t.operator==="&"){for(let o=0;o<t.names.length;o++){let a=t.names[o],s=o===0?"\\\\"+t.operator:"&";r.push({pattern:s+this.escapeRegExp(a)+"=([^&]+)",name:a})}return r}let i,n=t.name;switch(t.operator){case"":i=t.exploded?"([^/,]+(?:,[^/,]+)*)":"([^/,]+)";break;case"+":case"#":i="(.+)";break;case".":i=String.raw`\\.([^/,]+)`;break;case"/":i="/"+(t.exploded?"([^/,]+(?:,[^/,]+)*)":"([^/,]+)");break;default:i="([^/]+)"}return r.push({pattern:i,name:n}),r}match(t){Mr.validateLength(t,cw,"URI");let r="^",i=[];for(let s of this.parts)if(typeof s=="string")r+=this.escapeRegExp(s);else{let c=this.partToRegExp(s);for(let{pattern:l,name:u}of c)r+=l,i.push({name:u,exploded:s.exploded})}r+="$",Mr.validateLength(r,YN,"Generated regex pattern");let n=new RegExp(r),o=t.match(n);if(!o)return null;let a={};for(let[s,c]of i.entries()){let{name:l,exploded:u}=c,m=o[s+1],p=l.replace("*","");a[p]=u&&m.includes(",")?m.split(","):m}return a}};function GN(e){return typeof e=="object"&&e!==null&&"_zod"in e}function WN(e){return typeof e=="object"&&e!==null&&!("_zod"in e)&&"_def"in e&&typeof e._def?.typeName=="string"}function XN(e){if(typeof e!="object"||e===null||uo(e))return!1;let t=Object.getPrototypeOf(e);return t!==Object.prototype&&t!==null?!1:Object.values(e).every(r=>GN(r))}function ym(e){if(e!==void 0){if(XN(e))return g(e);if(typeof e=="object"&&e!==null&&!uo(e)&&Object.values(e).some(t=>WN(t)))throw new TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!uo(e))throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}function TS(){sS(),Sn(),$C(),ZC(),XC()}function Ps(e,t){let r=typeof e;if(r!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!Ps(e[n],t[n]))return!1;return!0}if(r==="object"){if(!e||!t)return e===t;let i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(let o of i)if(!Ps(e[o],t[o]))return!1;return!0}return e===t}function Mt(e){return encodeURI(QN(e))}function QN(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}var eA={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},tA={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},nA={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0},rA=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function Br(e,t=Object.create(null),r=rA,i=""){if(e&&typeof e=="object"&&!Array.isArray(e)){let o=e.$id||e.id;if(o){let a=new URL(o,r.href);a.hash.length>1?t[a.href]=e:(a.hash="",i===""?r=a:Br(e,t,r))}}else if(e!==!0&&e!==!1)return t;let n=r.href+(i?"#"+i:"");if(t[n]!==void 0)throw new Error(`Duplicate schema URI "${n}".`);if(t[n]=e,e===!0||e===!1)return t;if(e.__absolute_uri__===void 0&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:n}),e.$ref&&e.__absolute_ref__===void 0){let o=new URL(e.$ref,r.href);o.hash=o.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:o.href})}if(e.$recursiveRef&&e.__absolute_recursive_ref__===void 0){let o=new URL(e.$recursiveRef,r.href);o.hash=o.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:o.href})}if(e.$anchor){let o=new URL("#"+e.$anchor,r.href);t[o.href]=e}for(let o in e){if(nA[o])continue;let a=`${i}/${Mt(o)}`,s=e[o];if(Array.isArray(s)){if(eA[o]){let c=s.length;for(let l=0;l<c;l++)Br(s[l],t,r,`${a}/${l}`)}}else if(tA[o])for(let c in s)Br(s[c],t,r,`${a}/${Mt(c)}`);else Br(s,t,r,a)}return t}var iA=/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,oA=[0,31,28,31,30,31,30,31,31,30,31,30,31],aA=/^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,sA=/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,cA=/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,lA=/^(?:(?:[^\\x00-\\x20"\'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,uA=/^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,dA=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,mA=/^(?:\\/(?:[^~/]|~0|~1)*)*$/,pA=/^#(?:\\/(?:[a-z0-9_\\-.!$&\'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,fA=/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,hA=e=>{if(e[0]===\'"\')return!1;let[t,r,...i]=e.split("@");return!t||!r||i.length!==0||t.length>64||r.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(r)||!/^[a-z0-9.!#$%&\'*+/=?^_`{|}~-]+$/i.test(t)?!1:r.split(".").every(n=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(n))},gA=/^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,vA=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,yA=e=>e.length>1&&e.length<80&&(/^P\\d+([.,]\\d+)?W$/.test(e)||/^P[\\dYMDTHS]*(\\d[.,]\\d+)?[YMDHS]$/.test(e)&&/^P([.,\\d]+Y)?([.,\\d]+M)?([.,\\d]+D)?(T([.,\\d]+H)?([.,\\d]+M)?([.,\\d]+S)?)?$/.test(e));function an(e){return e.test.bind(e)}var Yw={date:Gw,time:Ww.bind(void 0,!1),"date-time":bA,duration:yA,uri:RA,"uri-reference":an(cA),"uri-template":an(lA),url:an(uA),email:hA,hostname:an(sA),ipv4:an(gA),ipv6:an(vA),regex:zA,uuid:an(dA),"json-pointer":an(mA),"json-pointer-uri-fragment":an(pA),"relative-json-pointer":an(fA)};function SA(e){return e%4===0&&(e%100!==0||e%400===0)}function Gw(e){let t=e.match(iA);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i==2&&SA(r)?29:oA[i])}function Ww(e,t){let r=t.match(aA);if(!r)return!1;let i=+r[1],n=+r[2],o=+r[3],a=!!r[5];return(i<=23&&n<=59&&o<=59||i==23&&n==59&&o==60)&&(!e||a)}var _A=/t|\\s/i;function bA(e){let t=e.split(_A);return t.length==2&&Gw(t[0])&&Ww(!0,t[1])}var $A=/\\/|:/,kA=/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function RA(e){return $A.test(e)&&kA.test(e)}var wA=/[^\\\\]\\\\Z/;function zA(e){if(wA.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}function IA(e){let t=0,r=e.length,i=0,n;for(;i<r;)t++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<r&&(n=e.charCodeAt(i),(n&64512)==56320&&i++);return t}function $e(e,t,r="2019-09",i=Br(t),n=!0,o=null,a="#",s="#",c=Object.create(null)){if(t===!0)return{valid:!0,errors:[]};if(t===!1)return{valid:!1,errors:[{instanceLocation:a,keyword:"false",keywordLocation:a,error:"False boolean schema."}]};let l=typeof e,u;switch(l){case"boolean":case"number":case"string":u=l;break;case"object":e===null?u="null":Array.isArray(e)?u="array":u="object";break;default:throw new Error(`Instances of "${l}" type are not supported.`)}let{$ref:m,$recursiveRef:p,$recursiveAnchor:f,type:h,const:v,enum:y,required:R,not:w,anyOf:E,allOf:D,oneOf:F,if:N,then:te,else:ie,format:Y,properties:ye,patternProperties:be,additionalProperties:ce,unevaluatedProperties:Ie,minProperties:Pe,maxProperties:De,propertyNames:Je,dependentRequired:rt,dependentSchemas:yt,dependencies:Vt,prefixItems:dt,items:He,additionalItems:cn,unevaluatedItems:ln,contains:Zt,minContains:Me,maxContains:Ye,minItems:Ge,maxItems:xt,uniqueItems:or,minimum:mt,maximum:pt,exclusiveMinimum:it,exclusiveMaximum:St,multipleOf:_t,minLength:Ft,maxLength:Kt,pattern:wn,__absolute_ref__:Bt,__absolute_recursive_ref__:ar}=t,V=[];if(f===!0&&o===null&&(o=t),p==="#"){let G=o===null?i[ar]:o,H=`${s}/$recursiveRef`,ae=$e(e,o===null?t:o,r,i,n,G,a,H,c);ae.valid||V.push({instanceLocation:a,keyword:"$recursiveRef",keywordLocation:H,error:"A subschema had errors."},...ae.errors)}if(m!==void 0){let G=i[Bt||m];if(G===void 0){let Z=`Unresolved $ref "${m}".`;throw Bt&&Bt!==m&&(Z+=` Absolute URI "${Bt}".`),Z+=`\nKnown schemas:\n- ${Object.keys(i).join(`\n- `)}`,new Error(Z)}let H=`${s}/$ref`,ae=$e(e,G,r,i,n,o,a,H,c);if(ae.valid||V.push({instanceLocation:a,keyword:"$ref",keywordLocation:H,error:"A subschema had errors."},...ae.errors),r==="4"||r==="7")return{valid:V.length===0,errors:V}}if(Array.isArray(h)){let G=h.length,H=!1;for(let ae=0;ae<G;ae++)if(u===h[ae]||h[ae]==="integer"&&u==="number"&&e%1===0&&e===e){H=!0;break}H||V.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h.join(\'", "\')}".`})}else h==="integer"?(u!=="number"||e%1||e!==e)&&V.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h}".`}):h!==void 0&&u!==h&&V.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h}".`});if(v!==void 0&&(u==="object"||u==="array"?Ps(e,v)||V.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(v)}.`}):e!==v&&V.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(v)}.`})),y!==void 0&&(u==="object"||u==="array"?y.some(G=>Ps(e,G))||V.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`}):y.some(G=>e===G)||V.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`})),w!==void 0){let G=`${s}/not`;$e(e,w,r,i,n,o,a,G).valid&&V.push({instanceLocation:a,keyword:"not",keywordLocation:G,error:\'Instance matched "not" schema.\'})}let Jt=[];if(E!==void 0){let G=`${s}/anyOf`,H=V.length,ae=!1;for(let Z=0;Z<E.length;Z++){let M=E[Z],ee=Object.create(c),X=$e(e,M,r,i,n,f===!0?o:null,a,`${G}/${Z}`,ee);V.push(...X.errors),ae=ae||X.valid,X.valid&&Jt.push(ee)}ae?V.length=H:V.splice(H,0,{instanceLocation:a,keyword:"anyOf",keywordLocation:G,error:"Instance does not match any subschemas."})}if(D!==void 0){let G=`${s}/allOf`,H=V.length,ae=!0;for(let Z=0;Z<D.length;Z++){let M=D[Z],ee=Object.create(c),X=$e(e,M,r,i,n,f===!0?o:null,a,`${G}/${Z}`,ee);V.push(...X.errors),ae=ae&&X.valid,X.valid&&Jt.push(ee)}ae?V.length=H:V.splice(H,0,{instanceLocation:a,keyword:"allOf",keywordLocation:G,error:"Instance does not match every subschema."})}if(F!==void 0){let G=`${s}/oneOf`,H=V.length,ae=F.filter((Z,M)=>{let ee=Object.create(c),X=$e(e,Z,r,i,n,f===!0?o:null,a,`${G}/${M}`,ee);return V.push(...X.errors),X.valid&&Jt.push(ee),X.valid}).length;ae===1?V.length=H:V.splice(H,0,{instanceLocation:a,keyword:"oneOf",keywordLocation:G,error:`Instance does not match exactly one subschema (${ae} matches).`})}if((u==="object"||u==="array")&&Object.assign(c,...Jt),N!==void 0){let G=`${s}/if`;if($e(e,N,r,i,n,o,a,G,c).valid){if(te!==void 0){let H=$e(e,te,r,i,n,o,a,`${s}/then`,c);H.valid||V.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "then" schema.\'},...H.errors)}}else if(ie!==void 0){let H=$e(e,ie,r,i,n,o,a,`${s}/else`,c);H.valid||V.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "else" schema.\'},...H.errors)}}if(u==="object"){if(R!==void 0)for(let Z of R)Z in e||V.push({instanceLocation:a,keyword:"required",keywordLocation:`${s}/required`,error:`Instance does not have required property "${Z}".`});let G=Object.keys(e);if(Pe!==void 0&&G.length<Pe&&V.push({instanceLocation:a,keyword:"minProperties",keywordLocation:`${s}/minProperties`,error:`Instance does not have at least ${Pe} properties.`}),De!==void 0&&G.length>De&&V.push({instanceLocation:a,keyword:"maxProperties",keywordLocation:`${s}/maxProperties`,error:`Instance does not have at least ${De} properties.`}),Je!==void 0){let Z=`${s}/propertyNames`;for(let M in e){let ee=`${a}/${Mt(M)}`,X=$e(M,Je,r,i,n,o,ee,Z);X.valid||V.push({instanceLocation:a,keyword:"propertyNames",keywordLocation:Z,error:`Property name "${M}" does not match schema.`},...X.errors)}}if(rt!==void 0){let Z=`${s}/dependantRequired`;for(let M in rt)if(M in e){let ee=rt[M];for(let X of ee)X in e||V.push({instanceLocation:a,keyword:"dependentRequired",keywordLocation:Z,error:`Instance has "${M}" but does not have "${X}".`})}}if(yt!==void 0)for(let Z in yt){let M=`${s}/dependentSchemas`;if(Z in e){let ee=$e(e,yt[Z],r,i,n,o,a,`${M}/${Mt(Z)}`,c);ee.valid||V.push({instanceLocation:a,keyword:"dependentSchemas",keywordLocation:M,error:`Instance has "${Z}" but does not match dependant schema.`},...ee.errors)}}if(Vt!==void 0){let Z=`${s}/dependencies`;for(let M in Vt)if(M in e){let ee=Vt[M];if(Array.isArray(ee))for(let X of ee)X in e||V.push({instanceLocation:a,keyword:"dependencies",keywordLocation:Z,error:`Instance has "${M}" but does not have "${X}".`});else{let X=$e(e,ee,r,i,n,o,a,`${Z}/${Mt(M)}`);X.valid||V.push({instanceLocation:a,keyword:"dependencies",keywordLocation:Z,error:`Instance has "${M}" but does not match dependant schema.`},...X.errors)}}}let H=Object.create(null),ae=!1;if(ye!==void 0){let Z=`${s}/properties`;for(let M in ye){if(!(M in e))continue;let ee=`${a}/${Mt(M)}`,X=$e(e[M],ye[M],r,i,n,o,ee,`${Z}/${Mt(M)}`);if(X.valid)c[M]=H[M]=!0;else if(ae=n,V.push({instanceLocation:a,keyword:"properties",keywordLocation:Z,error:`Property "${M}" does not match schema.`},...X.errors),ae)break}}if(!ae&&be!==void 0){let Z=`${s}/patternProperties`;for(let M in be){let ee=new RegExp(M,"u"),X=be[M];for(let Te in e){if(!ee.test(Te))continue;let sr=`${a}/${Mt(Te)}`,Ht=$e(e[Te],X,r,i,n,o,sr,`${Z}/${Mt(M)}`);Ht.valid?c[Te]=H[Te]=!0:(ae=n,V.push({instanceLocation:a,keyword:"patternProperties",keywordLocation:Z,error:`Property "${Te}" matches pattern "${M}" but does not match associated schema.`},...Ht.errors))}}}if(!ae&&ce!==void 0){let Z=`${s}/additionalProperties`;for(let M in e){if(H[M])continue;let ee=`${a}/${Mt(M)}`,X=$e(e[M],ce,r,i,n,o,ee,Z);X.valid?c[M]=!0:(ae=n,V.push({instanceLocation:a,keyword:"additionalProperties",keywordLocation:Z,error:`Property "${M}" does not match additional properties schema.`},...X.errors))}}else if(!ae&&Ie!==void 0){let Z=`${s}/unevaluatedProperties`;for(let M in e)if(!c[M]){let ee=`${a}/${Mt(M)}`,X=$e(e[M],Ie,r,i,n,o,ee,Z);X.valid?c[M]=!0:V.push({instanceLocation:a,keyword:"unevaluatedProperties",keywordLocation:Z,error:`Property "${M}" does not match unevaluated properties schema.`},...X.errors)}}}else if(u==="array"){xt!==void 0&&e.length>xt&&V.push({instanceLocation:a,keyword:"maxItems",keywordLocation:`${s}/maxItems`,error:`Array has too many items (${e.length} > ${xt}).`}),Ge!==void 0&&e.length<Ge&&V.push({instanceLocation:a,keyword:"minItems",keywordLocation:`${s}/minItems`,error:`Array has too few items (${e.length} < ${Ge}).`});let G=e.length,H=0,ae=!1;if(dt!==void 0){let Z=`${s}/prefixItems`,M=Math.min(dt.length,G);for(;H<M;H++){let ee=$e(e[H],dt[H],r,i,n,o,`${a}/${H}`,`${Z}/${H}`);if(c[H]=!0,!ee.valid&&(ae=n,V.push({instanceLocation:a,keyword:"prefixItems",keywordLocation:Z,error:"Items did not match schema."},...ee.errors),ae))break}}if(He!==void 0){let Z=`${s}/items`;if(Array.isArray(He)){let M=Math.min(He.length,G);for(;H<M;H++){let ee=$e(e[H],He[H],r,i,n,o,`${a}/${H}`,`${Z}/${H}`);if(c[H]=!0,!ee.valid&&(ae=n,V.push({instanceLocation:a,keyword:"items",keywordLocation:Z,error:"Items did not match schema."},...ee.errors),ae))break}}else for(;H<G;H++){let M=$e(e[H],He,r,i,n,o,`${a}/${H}`,Z);if(c[H]=!0,!M.valid&&(ae=n,V.push({instanceLocation:a,keyword:"items",keywordLocation:Z,error:"Items did not match schema."},...M.errors),ae))break}if(!ae&&cn!==void 0){let M=`${s}/additionalItems`;for(;H<G;H++){let ee=$e(e[H],cn,r,i,n,o,`${a}/${H}`,M);c[H]=!0,ee.valid||(ae=n,V.push({instanceLocation:a,keyword:"additionalItems",keywordLocation:M,error:"Items did not match additional items schema."},...ee.errors))}}}if(Zt!==void 0)if(G===0&&Me===void 0)V.push({instanceLocation:a,keyword:"contains",keywordLocation:`${s}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(Me!==void 0&&G<Me)V.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array has less items (${G}) than minContains (${Me}).`});else{let Z=`${s}/contains`,M=V.length,ee=0;for(let X=0;X<G;X++){let Te=$e(e[X],Zt,r,i,n,o,`${a}/${X}`,Z);Te.valid?(c[X]=!0,ee++):V.push(...Te.errors)}ee>=(Me||0)&&(V.length=M),Me===void 0&&Ye===void 0&&ee===0?V.splice(M,0,{instanceLocation:a,keyword:"contains",keywordLocation:Z,error:"Array does not contain item matching schema."}):Me!==void 0&&ee<Me?V.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array must contain at least ${Me} items matching schema. Only ${ee} items were found.`}):Ye!==void 0&&ee>Ye&&V.push({instanceLocation:a,keyword:"maxContains",keywordLocation:`${s}/maxContains`,error:`Array may contain at most ${Ye} items matching schema. ${ee} items were found.`})}if(!ae&&ln!==void 0){let Z=`${s}/unevaluatedItems`;for(;H<G;H++){if(c[H])continue;let M=$e(e[H],ln,r,i,n,o,`${a}/${H}`,Z);c[H]=!0,M.valid||V.push({instanceLocation:a,keyword:"unevaluatedItems",keywordLocation:Z,error:"Items did not match unevaluated items schema."},...M.errors)}}if(or)for(let Z=0;Z<G;Z++){let M=e[Z],ee=typeof M=="object"&&M!==null;for(let X=0;X<G;X++){if(Z===X)continue;let Te=e[X];(M===Te||ee&&typeof Te=="object"&&Te!==null&&Ps(M,Te))&&(V.push({instanceLocation:a,keyword:"uniqueItems",keywordLocation:`${s}/uniqueItems`,error:`Duplicate items at indexes ${Z} and ${X}.`}),Z=Number.MAX_SAFE_INTEGER,X=Number.MAX_SAFE_INTEGER)}}}else if(u==="number"){if(r==="4"?(mt!==void 0&&(it===!0&&e<=mt||e<mt)&&V.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${it?"or equal to ":""} ${mt}.`}),pt!==void 0&&(St===!0&&e>=pt||e>pt)&&V.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${St?"or equal to ":""} ${pt}.`})):(mt!==void 0&&e<mt&&V.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${mt}.`}),pt!==void 0&&e>pt&&V.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${pt}.`}),it!==void 0&&e<=it&&V.push({instanceLocation:a,keyword:"exclusiveMinimum",keywordLocation:`${s}/exclusiveMinimum`,error:`${e} is less than ${it}.`}),St!==void 0&&e>=St&&V.push({instanceLocation:a,keyword:"exclusiveMaximum",keywordLocation:`${s}/exclusiveMaximum`,error:`${e} is greater than or equal to ${St}.`})),_t!==void 0){let G=e%_t;Math.abs(0-G)>=11920929e-14&&Math.abs(_t-G)>=11920929e-14&&V.push({instanceLocation:a,keyword:"multipleOf",keywordLocation:`${s}/multipleOf`,error:`${e} is not a multiple of ${_t}.`})}}else if(u==="string"){let G=Ft===void 0&&Kt===void 0?0:IA(e);Ft!==void 0&&G<Ft&&V.push({instanceLocation:a,keyword:"minLength",keywordLocation:`${s}/minLength`,error:`String is too short (${G} < ${Ft}).`}),Kt!==void 0&&G>Kt&&V.push({instanceLocation:a,keyword:"maxLength",keywordLocation:`${s}/maxLength`,error:`String is too long (${G} > ${Kt}).`}),wn!==void 0&&!new RegExp(wn,"u").test(e)&&V.push({instanceLocation:a,keyword:"pattern",keywordLocation:`${s}/pattern`,error:"String does not match pattern."}),Y!==void 0&&Yw[Y]&&!Yw[Y](e)&&V.push({instanceLocation:a,keyword:"format",keywordLocation:`${s}/format`,error:`String does not match format "${Y}".`})}return{valid:V.length===0,errors:V}}var TA=class{schema;draft;shortCircuit;lookup;constructor(e,t="2019-09",r=!0){this.schema=e,this.draft=t,this.shortCircuit=r,this.lookup=Br(e)}validate(e){return $e(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),Br(e,this.lookup)}},Sm=class{shortcircuit;draft;constructor(e){this.shortcircuit=e?.shortcircuit??!0,this.draft=e?.draft}_draftFor(e){let t=H_(e,"pass an explicit { draft } to CfWorkerJsonSchemaValidator to validate other dialects.");return t==="draft-7"?"7":t}getValidator(e){let t=new TA(e,this.draft??this._draftFor(e),this.shortcircuit);return r=>{let i=t.validate(r);return i.valid?{valid:!0,data:r,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:i.errors.map(n=>`${n.instanceLocation}: ${n.error}`).join("; ")}}}};TS();var az=Symbol.for("mcp.completable");function ES(e){return!!e&&typeof e=="object"&&az in e}function xA(e){return e[az]?.complete}var mo=15e3,EA=2**31-1;function Cs(e,t){if(!Number.isFinite(e)||e<1)return;let r=setInterval(t,Math.min(e,EA));return r.unref?.(),r}var sz,PS=class{static{sz=e=>e._classification}onclose;onerror;onmessage;_classification;_responseMode;_started=!1;_used=!1;_closed=!1;_terminalDelivered=!1;_dispatchWindowOpen=!1;_requestId;_deferredResponse;_sse;_abortCleanup;_keepAliveMs;constructor(e){this._classification=e.classification,this._responseMode=e.responseMode??"auto",this._keepAliveMs=e.keepAliveMs??mo}async start(){if(this._started)throw new Error("PerRequestHTTPServerTransport is already started");this._started=!0}async handleMessage(e,t){if(this._used)throw new Error("PerRequestHTTPServerTransport serves exactly one exchange; construct a new transport per request");if(!this._started||this.onmessage===void 0)throw new Error("PerRequestHTTPServerTransport is not connected: connect a server to this transport before handling a message");if(this._closed)throw new Error("PerRequestHTTPServerTransport is closed");this._used=!0;let r=t?.request?.signal;if(r?.aborted)throw await this.close(),new re(se.ConnectionClosed,"The request was aborted before it could be handled");let i={classification:this._classification,...t?.request!==void 0&&{request:t.request},...t?.authInfo!==void 0&&{authInfo:t.authInfo}};if(Dt(e)){this._requestId=e.id;let n,o,a=new Promise((s,c)=>{n=s,o=c});if(this._deferredResponse={promise:a,resolve:n,reject:o,settled:!1},r!==void 0){let s=()=>{this.close()};r.addEventListener("abort",s,{once:!0}),this._abortCleanup=()=>r.removeEventListener("abort",s)}this._dispatchWindowOpen=!0;try{this.onmessage(e,i)}finally{this._dispatchWindowOpen=!1}return this._responseMode==="sse"&&!this._closed&&!this._deferredResponse.settled&&this.upgradeToSse(),a}return this.onmessage(e,i),new Response(null,{status:202})}async send(e,t){if(this._closed)return;let r=rn(e)||on(e),i=r?e.id:t?.relatedRequestId;if(this._requestId===void 0||i===void 0||i!==this._requestId){r&&this.onerror?.(new Error(`Received a response for an unknown request id: ${String(e.id)}`));return}if(r){if(this._terminalDelivered)return;this._terminalDelivered=!0;let n=on(e)?e.error.code:void 0,o=n!==void 0&&(this._dispatchWindowOpen||n===O.MissingRequiredClientCapability)?yS[n]:void 0;if(o!==void 0&&this._sse===void 0){this.settleResponse(Response.json(e,{status:o,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}if(this._sse!==void 0||this._responseMode==="sse"){this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e),this.finalizeStream();return}this.settleResponse(Response.json(e,{status:200,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}this._responseMode!=="json"&&(this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e))}writeCommentFrame(e){if(this._closed||this._sse===void 0||this._sse.closed)return;let t=e.split(`\n`).map(r=>`: ${r}`).join(`\n`);this.writeFrame(`${t}\n\n`)}async close(){if(!this._closed){if(this._closed=!0,this._abortCleanup?.(),this._abortCleanup=void 0,this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}this._deferredResponse!==void 0&&!this._deferredResponse.settled&&(this._deferredResponse.settled=!0,this._deferredResponse.reject(new re(se.ConnectionClosed,"Connection closed before a response was produced"))),this.onclose?.()}}settleResponse(e){this._deferredResponse===void 0||this._deferredResponse.settled||(this._deferredResponse.settled=!0,this._deferredResponse.resolve(e))}upgradeToSse(){let e,t=new ReadableStream({start:r=>{e=r},cancel:()=>{this.close()}});this._sse={controller:e,encoder:new TextEncoder,closed:!1},this._sse.keepAliveTimer=Cs(this._keepAliveMs,()=>this.writeCommentFrame("keepalive")),this.settleResponse(new Response(t,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}}))}finalizeStream(){if(this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}queueMicrotask(()=>{this.close()})}writeMessageFrame(e){this.writeFrame(`event: message\ndata: ${JSON.stringify(e)}\n\n`)}writeFrame(e){if(!(this._sse===void 0||this._sse.closed))try{this._sse.controller.enqueue(this._sse.encoder.encode(e))}catch(t){this.onerror?.(new Error(`Failed to write to the response stream: ${t}`))}}};function PA(e){return e instanceof PS?sz(e):void 0}function _m(e){return e.replaceAll(/[\\\\"]/g,String.raw`\\$&`).replaceAll(/[^\\u0020-\\u007E]/g," ")}function Xw(e,t,r,i){let n=`Bearer error="${_m(e)}", error_description="${_m(t)}"`;return r.length>0&&(n+=`, scope="${_m(r.join(" "))}"`),i&&(n+=`, resource_metadata="${_m(i)}"`),n}function cz(e,t){let{requiredScopes:r=[],resourceMetadataUrl:i}=t??{};if(!(e instanceof ws)){let n=new ws(Vr.ServerError,"Internal Server Error");return Response.json(n.toResponseObject(),{status:500})}switch(e.code){case Vr.InvalidToken:{let n=Xw(e.code,e.message,r,i);return Response.json(e.toResponseObject(),{status:401,headers:{"WWW-Authenticate":n}})}case Vr.InsufficientScope:{let n=Xw(e.code,e.message,r,i);return Response.json(e.toResponseObject(),{status:403,headers:{"WWW-Authenticate":n}})}case Vr.ServerError:return Response.json(e.toResponseObject(),{status:500});default:return Response.json(e.toResponseObject(),{status:400})}}function lz(e){let t=new URL(e);return t.pathname=OA(e),t.hash="",t.href}function OA(e){let t=CA(e.pathname);return`/.well-known/oauth-protected-resource${t==="/"?"":t}`}function CA(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function NA(e){return typeof e=="object"&&e!==null&&"setScopeChallengeResolver"in e&&typeof e.setScopeChallengeResolver=="function"}function AA(e,t){if(typeof e!="string"||!/^[\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e))throw new TypeError(`${t} must satisfy the OAuth scope-token grammar`)}function jA(e){if(e===null||typeof e!="object"||!Array.isArray(e.scopes)||e.scopes.length===0)throw new TypeError("scope challenge must contain at least one scope");for(let[t,r]of e.scopes.entries())AA(r,`scope challenge scopes[${t}]`);if(e.errorDescription!==void 0&&typeof e.errorDescription!="string")throw new TypeError("scope challenge errorDescription must be a string");if(e.errorDescription!==void 0&&!/^[\\u0020-\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e.errorDescription))throw new TypeError("scope challenge errorDescription must satisfy the RFC 6750 error-description grammar");return e}async function OS(e,t,r){for(let i of e){let n=await r({request:i,...t!==void 0&&{authInfo:t}});if(n!==void 0)return jA(n)}}function CS(e){if(e?.resourceMetadataUrl!==void 0)return e.resourceMetadataUrl;if(e?.resource?.protocol==="https:"||e?.resource?.protocol==="http:")return lz(e.resource)}function NS(e,t){return cz(new ws(Vr.InsufficientScope,e.errorDescription??"Insufficient scope"),{requiredScopes:[...e.scopes],resourceMetadataUrl:t})}var UA=8,LA=6e5;function DA(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw new RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw new RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??UA,roundTimeoutMs:e?.roundTimeoutMs??LA,legacyShim:e?.legacyShim??!0}}function uz(e,t,r){if(r===null||typeof r!="object"||typeof r.method!="string")throw new j(O.InternalError,`Handler for ${e} returned an invalid input request \'${t}\': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let i=r,n=mw(i);if(n===void 0)throw new j(O.InternalError,`Handler for ${e} returned an input request \'${t}\' of kind \'${i.method}\', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:i,required:n}}function MA(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=[...t].map(i=>i.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function xS(e,t){if(e==="tools/call")return{content:[{type:"text",text:t}],isError:!0};throw new j(O.InternalError,t)}var qA=class{constructor(e){this._host=e}async fulfill(e,t,r,i,n){let{maxRounds:o,roundTimeoutMs:a}=this._host,s=i.mcpReq.signal,c=n,l=0;for(;;){if(l+=1,l>o)return xS(e,Mw(e,o));let u=c.inputRequests,m=u!=null&&Object.keys(u).length>0,p=typeof c.requestState=="string"?c.requestState:void 0;if(!m&&p===void 0)throw new j(O.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);let f;if(m){let y=this._host.resolvedClientCapabilities(i),R=[];for(let[E,D]of Object.entries(u)){let{embedded:F,required:N}=uz(e,E,D);if(F.method!=="roots/list"&&F.params===void 0)throw new j(O.InternalError,`Handler for ${e} returned an input request \'${E}\' of kind \'${F.method}\' without params`);if(zs(N,y)!==void 0)return xS(e,`Cannot request input \'${E}\' (${F.method}): the client on this 2025-era connection did not declare the required capability${y===void 0?" (no client capabilities are available on this connection \\u2014 per-request legacy serving cannot receive server-to-client requests)":""}`);R.push([E,F])}let w=Vw(s);try{let E={relatedRequestId:i.mcpReq.id,timeout:a,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:w.signal},D=await Promise.all(R.map(async([F,N])=>{try{return[F,await this._dispatchLeg(N,E)]}catch(te){throw w.abort(te),te}}));f=Object.fromEntries(D)}catch(E){if(s.aborted)throw E;return xS(e,`Fulfilling input required by \'${e}\' failed: ${E instanceof Error?E.message:String(E)}`)}finally{w.dispose()}}else await qw(Dw,s);let h={...i,mcpReq:{...i.mcpReq,inputResponses:f,droppedInputResponseKeys:void 0,requestState:Es(p)}};if(p!==void 0){let y=await this._host.verifyRequestState(p,h,e);y!==void 0&&(h=bS(h,y))}let v=await t(r,h);if(!$n(v))return v;c=v}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let r=e.params;return r.mode==="url"&&r.elicitationId===void 0&&(r={...r,elicitationId:MA()}),await this._host.sendElicitation(r,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}},VA=new Set(["tools/call","prompts/get","resources/read"]),dz,mz,pz;function fz(e,t){dz(e,t)}function hz(e,t){mz(e,t)}function gz(e){return pz(e)}var vz=class extends $S{_clientCapabilities;_clientVersion;static{dz=(e,t)=>{t.clientCapabilities!==void 0&&(e._clientCapabilities=t.clientCapabilities),t.clientInfo!==void 0&&(e._clientVersion=t.clientInfo)},mz=(e,t)=>{let r=t.filter(i=>!e._supportedProtocolVersions.includes(i));r.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...r]),e.setRequestHandler("server/discover",()=>e._ondiscover())},pz=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_boundFromTransport=!1;_legacyInputRequiredShim(){return this._legacyShim??=new qA({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,r)=>this._verifyRequestState(e,t,r),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new Sm,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=DA(t?.inputRequired),t?.cacheHints!==void 0){for(let[r,i]of Object.entries(t.cacheHints))i!==void 0&&Is(i,`cacheHints[\'${r}\']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",r=>this._oninitialize(r)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),um(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}async connect(e){if(this.transport!==void 0)throw new re(se.AlreadyConnected,"Use a separate Server instance per connection: this instance is already connected to a transport. To connect it to a new transport, call close() first.");this._boundFromTransport&&(this._boundFromTransport=!1,this._negotiatedProtocolVersion=void 0);let t=PA(e)?.revision;t!==void 0&&!this._servedModernEra()&&Zr.includes(t)&&um(this._supportedProtocolVersions).includes(t)&&(this._negotiatedProtocolVersion=t,this._boundFromTransport=!0),await super.connect(e)}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let r=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:i}=e.params,n=vm(Wn,i);return n.success&&this._loggingLevels.set(r,n.data),{}})}buildContext(e,t){let r=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(i,n,o)=>{if(!this._capabilities.logging)return Promise.resolve();let a;if(this._servedModernEra()){if(a=e.mcpReq.envelope?.[Kn],a===void 0)return Promise.resolve()}else a=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return a!==void 0&&this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(a)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:i,data:n,logger:o}})},elicitInput:(i,n)=>this.elicitInput(i,n),requestSampling:(i,n)=>this.createMessage(i,n)},http:r?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(Wn.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let r=this._loggingLevels.get(t);return r?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(r):!1};registerCapabilities(e){if(this.transport)throw new re(se.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=kS(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if(e!=="tools/call"){let r=this._cacheHints?.[e],i=VA.has(e);return r===void 0&&!i?async(n,o)=>{let a=await t(n,o);if($n(a))throw new j(O.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}:async(n,o)=>{let a=i?await this._invokeInputRequiredCapableHandler(e,t,n,o):await t(n,o);if($n(a)){if(!i)throw new j(O.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}return r===void 0?a:mm(a,r)}}return async(r,i)=>{let n=bn(this._negotiatedProtocolVersion),o=n.validateRequest("tools/call",r);if(!o.ok)throw new j(o.reason==="not-in-era"?O.InternalError:O.InvalidParams,o.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${o.message}`);let a=await this._invokeInputRequiredCapableHandler("tools/call",t,r,i);if($n(a))return a;let s=aS(a),c=n.validateResult("tools/call",s);if(!c.ok)throw new j(c.reason==="not-in-era"?O.InternalError:O.InvalidParams,c.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${c.message}`);return c.value}}_servedModernEra(){return this._negotiatedProtocolVersion!==void 0&&Lt(this._negotiatedProtocolVersion)}async _invokeInputRequiredCapableHandler(e,t,r,i){let n=this._servedModernEra(),o=i.mcpReq.requestState();if(o!==void 0&&typeof o!="string")throw new j(O.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let a=i;if(typeof o=="string"){let m=await this._verifyRequestState(o,i,e);m!==void 0&&(a=bS(i,m))}let s;try{s=await t(r,a)}catch(m){throw m instanceof j&&m.code===O.UrlElicitationRequired&&n?new j(O.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { \\u2026: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`):m}if(!$n(s))return s;if(!n){if(!this._inputRequiredServing.legacyShim)throw new j(O.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??Nr}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,r,a,s)}let c=s.inputRequests,l=c!=null&&Object.keys(c).length>0,u=typeof s.requestState=="string";if(!l&&!u)throw new j(O.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let m=this._inputRequestCapabilityView(i);for(let[p,f]of Object.entries(c)){let{embedded:h,required:v}=uz(e,p,f),y=zs(v,m);if(y!==void 0)throw new Ts({requiredCapabilities:y},`Cannot request input \'${p}\' (${h.method}): the request\'s client capabilities do not declare the required capability`)}}return s}async _verifyRequestState(e,t,r){if(this._requestStateVerify!==void 0)try{return await this._requestStateVerify(e,t)}catch(i){throw this.onerror?.(new Error(`requestState verification rejected ${r}: ${i instanceof Error?i.message:String(i)}`)),new j(O.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[nn]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new re(se.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: \'${e}\' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead \\u2014 the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new re(se.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new re(se.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new re(se.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new re(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new re(se.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new re(se.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new re(se.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new re(se.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new re(se.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new re(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new re(se.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new re(se.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new re(se.CapabilityNotSupported,`Server does not support tools (required for ${e})`);break;case"ping":case"initialize":break}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let r=fw(this._supportedProtocolVersions),i=r.includes(t)?t:r[0]??Nr;return this._negotiatedProtocolVersion=i,this.transport?.setProtocolVersion?.(i),{protocolVersion:i,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:um(this._supportedProtocolVersions),capabilities:ZA(this.getCapabilities()),...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new re(se.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let o=e.messages.at(-1),a=Array.isArray(o.content)?o.content:[o.content],s=a.some(m=>m.type==="tool_result"),c=e.messages.length>1?e.messages.at(-2):void 0,l=c?Array.isArray(c.content)?c.content:[c.content]:[],u=l.some(m=>m.type==="tool_use");if(s){if(a.some(m=>m.type!=="tool_result"))throw new j(O.InvalidParams,"The last message must contain only tool_result content if any is present");if(!u)throw new j(O.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(u){let m=new Set(l.filter(f=>f.type==="tool_use").map(f=>f.id)),p=new Set(a.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(m.size!==p.size||![...m].every(f=>p.has(f)))throw new j(O.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let r=!!(e.tools||e.toolChoice),i=await this.request({method:"sampling/createMessage",params:e},t),n=this._wireCodec().samplingResultVariant(r,i);if(!n.ok)throw new re(se.InvalidResult,`Invalid sampling/createMessage result: ${n.reason==="invalid"?n.message:n.reason}`);return n.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new re(se.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new re(se.CapabilityNotSupported,"Client does not support form elicitation.");break}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,r){let i=e.mode??"form",n=r?.validateAcceptedContent??!0;switch(i){case"url":{let o=e;return this.request({method:"elicitation/create",params:o},t)}case"form":{let o=e.mode==="form"?e:{...e,mode:"form"},a=await this.request({method:"elicitation/create",params:o},t);if(n&&a.action==="accept"&&a.content&&o.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(o.requestedSchema)(a.content);if(!s.valid)throw new j(O.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(s){throw s instanceof j?s:new j(O.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return a}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new re(se.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};function ZA(e){return{...e}}function FA(e,t){let r=0,i=[e];for(;i.length>0;){let n=i.pop();if(!(n===null||typeof n!="object"))if(Array.isArray(n))for(let o of n){if(++r>t)return r;o!==null&&typeof o=="object"&&i.push(o)}else for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;if(++r>t)return r;let a=n[o];a!==null&&typeof a=="object"&&i.push(a)}}return r}function KA(e){if(!(e===void 0||e===1/0)){if(typeof e!="number"||Number.isNaN(e)||e<1)throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(e)}`);return e}}var po=class{server;_maxToolInputElements;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(!(t===void 0||!t.enabled)){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(t.inputSchema===void 0)return ez;try{let r=Kr(t.inputSchema,"input");return this._toolInputSchemaJson[e]=r,r}catch{return}}}constructor(e,t){this.server=new vz(e,t),this._maxToolInputElements=KA(t?.maxToolInputElements),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return NA(e)&&e.setScopeChallengeResolver(t=>this.resolveScopeChallenge(t)),await this.server.connect(e)}async close(){await this.server.close()}resolveScopeChallenge=e=>{switch(e.request.method){case"tools/call":{let t=e.request.params?.name;if(typeof t!="string")return;let r=this._registeredTools[t];return r===void 0||!r.enabled?void 0:r.scopeChallenge?.(e)}case"resources/read":{let t=e.request.params?.uri;if(typeof t!="string")return;let r;try{r=new URL(t)}catch{return}let i=this._registeredResources[r.toString()];if(i!==void 0)return i.enabled?i.scopeChallenge?.(e):void 0;for(let n of Object.values(this._registeredResourceTemplates))if(n.resourceTemplate.uriTemplate.match(r.toString()))return n.enabled?n.scopeChallenge?.(e):void 0;return}case"prompts/get":{let t=e.request.params?.name;if(typeof t!="string")return;let r=this._registeredPrompts[t];return r===void 0||!r.enabled?void 0:r.scopeChallenge?.(e)}default:return}};_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let r={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?BA(e,t.inputSchema):ez,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(r.outputSchema=Kr(t.outputSchema,"output")),r})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let r=this._registeredTools[e.params.name];if(!r)throw new j(O.InvalidParams,`Tool ${e.params.name} not found`);if(!r.enabled)throw new j(O.InvalidParams,`Tool ${e.params.name} disabled`);try{let i=await this.validateToolInput(r,e.params.arguments,e.params.name),n=await this.executeToolHandler(r,i,t);return await this.validateToolOutput(r,n,e.params.name),$n(n)?n:this.server.projectCallToolResult(n,r.outputSchemaJson)}catch(i){if(i instanceof j&&i.code===O.UrlElicitationRequired)throw i;return this.createToolError(i instanceof Error?i.message:String(i))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,r){if(this._maxToolInputElements!==void 0&&FA(t,this._maxToolInputElements)>this._maxToolInputElements)throw new j(O.InvalidParams,`Invalid arguments for tool ${r}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);if(!e.inputSchema)return;let i=await qr(e.inputSchema,t??{});if(!i.success)throw new j(O.InvalidParams,`Input validation error: Invalid arguments for tool ${r}: ${i.error}`);return i.data}async validateToolOutput(e,t,r){if(!e.outputSchema||$n(t)||t.isError)return;if(t.structuredContent===void 0)throw new j(O.InvalidParams,`Output validation error: Tool ${r} has an output schema but no structured content was provided`);let i=await qr(e.outputSchema,t.structuredContent);if(!i.success)throw new j(O.InvalidParams,`Output validation error: Invalid structured content for tool ${r}: ${i.error}`)}async executeToolHandler(e,t,r){return e.executor(t,r)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":return gS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return vS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new j(O.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let r=this._registeredPrompts[t.name];if(!r)throw new j(O.InvalidParams,`Prompt ${t.name} not found`);if(!r.enabled)throw new j(O.InvalidParams,`Prompt ${t.name} disabled`);if(!r.argsSchema)return Os;let i=oz(iz(r.argsSchema)?.[e.params.argument.name]);if(!ES(i))return Os;let n=xA(i);return n?rz(await n(e.params.argument.value,e.params.context)):Os}async handleResourceCompletion(e,t){let r=Object.values(this._registeredResourceTemplates).find(n=>n.resourceTemplate.uriTemplate.toString()===t.uri);if(!r){if(this._registeredResources[t.uri])return Os;throw new j(O.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let i=r.resourceTemplate.completeCallback(e.params.argument.name);return i?rz(await i(e.params.argument.value,e.params.context)):Os}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let r=Object.entries(this._registeredResources).filter(([n,o])=>o.enabled).map(([n,o])=>({uri:n,name:o.name,...o.metadata})),i=[];for(let n of Object.values(this._registeredResourceTemplates)){if(!n.resourceTemplate.listCallback)continue;let o=await n.resourceTemplate.listCallback(t);for(let a of o.resources)i.push({...n.metadata,...a})}return{resources:[...r,...i]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let r;try{r=new URL(e.params.uri)}catch{throw new j(O.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let i=this._registeredResources[r.toString()];if(i){if(!i.enabled)throw new j(O.InvalidParams,`Resource ${r} disabled`);return mm(await i.readCallback(r,t),i.cacheHint)}for(let n of Object.values(this._registeredResourceTemplates)){let o=n.resourceTemplate.uriTemplate.match(r.toString());if(o){if(!n.enabled)throw new j(O.InvalidParams,`Resource template ${n.resourceTemplate.uriTemplate} disabled`);return mm(await n.readCallback(r,o,t),n.cacheHint)}}throw new Fr(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?Lw(t.argsSchema):void 0,icons:t.icons,_meta:t._meta}))})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let r=this._registeredPrompts[e.params.name];if(!r)throw new j(O.InvalidParams,`Prompt ${e.params.name} not found`);if(!r.enabled)throw new j(O.InvalidParams,`Prompt ${e.params.name} disabled`);return r.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,r,i){let{cacheHint:n,scopeChallenge:o,...a}=r,s=a;if(n!==void 0&&Is(n,`resource ${e}`),typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);let c=this._createRegisteredResource(e,r.title,t,s,o,i);return n!==void 0&&(c.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let c=this._createRegisteredResourceTemplate(e,r.title,t,s,o,i);return n!==void 0&&(c.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}}_createRegisteredResource(e,t,r,i,n,o){let a={name:e,title:t,metadata:i,readCallback:o,scopeChallenge:n,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:s=>{s.uri!==void 0&&s.uri!==r&&(delete this._registeredResources[r],s.uri&&(this._registeredResources[s.uri]=a)),s.name!==void 0&&(a.name=s.name),s.metadata!==void 0&&(a.metadata=s.metadata),s.title!==void 0&&(a.title=s.title,a.metadata={...a.metadata,title:s.title}),s.callback!==void 0&&(a.readCallback=s.callback),s.scopeChallenge!==void 0&&(a.scopeChallenge=s.scopeChallenge===null?void 0:s.scopeChallenge),s.enabled!==void 0&&(a.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[r]=a,a}_createRegisteredResourceTemplate(e,t,r,i,n,o){let a={resourceTemplate:r,title:t,metadata:i,readCallback:o,scopeChallenge:n,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:c=>{c.name!==void 0&&c.name!==e&&(delete this._registeredResourceTemplates[e],c.name&&(this._registeredResourceTemplates[c.name]=a)),c.template!==void 0&&(a.resourceTemplate=c.template),c.metadata!==void 0&&(a.metadata=c.metadata),c.title!==void 0&&(a.title=c.title,a.metadata={...a.metadata,title:c.title}),c.callback!==void 0&&(a.readCallback=c.callback),c.scopeChallenge!==void 0&&(a.scopeChallenge=c.scopeChallenge===null?void 0:c.scopeChallenge),c.enabled!==void 0&&(a.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=a;let s=r.uriTemplate.variableNames;return Array.isArray(s)&&s.some(c=>!!r.completeCallback(c))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(e,t,r,i,n,o,a,s){let c=i,l=n,u={title:t,description:r,argsSchema:i,icons:o,scopeChallenge:a,_meta:s,handler:nz(e,i,n),enabled:!0,disable:()=>u.update({enabled:!1}),enable:()=>u.update({enabled:!0}),remove:()=>u.update({name:null}),update:m=>{m.name!==void 0&&m.name!==e&&(delete this._registeredPrompts[e],m.name&&(this._registeredPrompts[m.name]=u)),m.title!==void 0&&(u.title=m.title),m.description!==void 0&&(u.description=m.description),m.icons!==void 0&&(u.icons=m.icons),m.scopeChallenge!==void 0&&(u.scopeChallenge=m.scopeChallenge===null?void 0:m.scopeChallenge),m._meta!==void 0&&(u._meta=m._meta);let p=!1;m.argsSchema!==void 0&&(u.argsSchema=m.argsSchema,c=m.argsSchema,p=!0),m.callback!==void 0&&(l=m.callback,p=!0),p&&(u.handler=nz(e,c,l)),m.enabled!==void 0&&(u.enabled=m.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=u,i){let m=iz(i);m&&Object.values(m).some(p=>ES(oz(p)))&&this.setCompletionRequestHandler()}return u}_createRegisteredTool(e,t,r,i,n,o,a,s,c,l,u){zS(e);let m=u,p,f={title:t,description:r,inputSchema:i,outputSchema:n,get outputSchemaJson(){return p??=tz(f.outputSchema)},set outputSchemaJson(h){p=h},annotations:o,icons:a,execution:s,scopeChallenge:c,_meta:l,handler:u,executor:Qw(i,u),enabled:!0,disable:()=>f.update({enabled:!1}),enable:()=>f.update({enabled:!0}),remove:()=>f.update({name:null}),update:h=>{h.name!==void 0&&h.name!==e&&(typeof h.name=="string"&&zS(h.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],h.name&&(delete this._toolInputSchemaJson[h.name],this._registeredTools[h.name]=f,e=h.name)),h.title!==void 0&&(f.title=h.title),h.description!==void 0&&(f.description=h.description);let v=!1;h.paramsSchema!==void 0&&(f.inputSchema=h.paramsSchema,delete this._toolInputSchemaJson[e],v=!0),h.callback!==void 0&&(f.handler=h.callback,m=h.callback,v=!0),v&&(f.executor=Qw(f.inputSchema,m)),h.outputSchema!==void 0&&(f.outputSchema=h.outputSchema,f.outputSchemaJson=tz(h.outputSchema)),h.annotations!==void 0&&(f.annotations=h.annotations),h.icons!==void 0&&(f.icons=h.icons),h.scopeChallenge!==void 0&&(f.scopeChallenge=h.scopeChallenge===null?void 0:h.scopeChallenge),h._meta!==void 0&&(f._meta=h._meta),h.enabled!==void 0&&(f.enabled=h.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=f,this.setToolRequestHandlers(),this.sendToolListChanged(),f}registerTool(e,t,r){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:i,description:n,inputSchema:o,outputSchema:a,annotations:s,icons:c,scopeChallenge:l,_meta:u}=t;return this._createRegisteredTool(e,i,n,ym(o),ym(a),s,c,void 0,l,u,r)}registerPrompt(e,t,r){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:i,description:n,argsSchema:o,icons:a,scopeChallenge:s,_meta:c}=t,l=this._createRegisteredPrompt(e,i,n,ym(o),r,a,s,c);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),l}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}},AS=class{_uriTemplate;constructor(e,t){this._callbacks=t,this._uriTemplate=typeof e=="string"?new IS(e):e}get uriTemplate(){return this._uriTemplate}get listCallback(){return this._callbacks.list}completeCallback(e){return this._callbacks.complete?.[e]}};function Qw(e,t){if(e){let i=t;return async(n,o)=>i(n,o)}let r=t;return async(i,n)=>r(n)}var ez={type:"object",properties:{}};function BA(e,t){let r=Kr(t,"input"),i=gm(r);return i.valid||console.warn(`[mcp-sdk] tool \'${e}\' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${i.reason}`),r}function tz(e){if(e!==void 0)try{return Kr(e,"output")}catch{return}}function nz(e,t,r){if(t){let i=r;return async(n,o)=>{let a=await qr(t,n??{});if(!a.success)throw new j(O.InvalidParams,`Invalid arguments for prompt ${e}: ${a.error}`);return i(a.data,o)}}else{let i=r;return async(n,o)=>i(o)}}function rz(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}var Os={completion:{values:[],hasMore:!1}};function iz(e){let t=e;if(t.shape&&typeof t.shape=="object")return t.shape}function JA(e){return e?.type==="optional"}function oz(e){return JA(e)?e.def?.innerType??e:e}var _z=class{_listeners=new Set;constructor(e){this.onerror=e}publish(e){for(let t of this._listeners)try{t(e)}catch(r){this.onerror?.(r instanceof Error?r:new Error(String(r)))}}subscribe(e){this._listeners.add(e);let t=!0;return()=>{t&&(t=!1,this._listeners.delete(e))}}get listenerCount(){return this._listeners.size}};function bz(e){return{toolsChanged:()=>e.publish({kind:"tools_list_changed"}),promptsChanged:()=>e.publish({kind:"prompts_list_changed"}),resourcesChanged:()=>e.publish({kind:"resources_list_changed"}),resourceUpdated:t=>e.publish({kind:"resource_updated",uri:t})}}function HA(e,t){switch(t.kind){case"tools_list_changed":return e.toolsListChanged===!0;case"prompts_list_changed":return e.promptsListChanged===!0;case"resources_list_changed":return e.resourcesListChanged===!0;case"resource_updated":return e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.includes(t.uri)}}function YA(e,t){let r={},i=n=>t===void 0||n===!0;return e.toolsListChanged===!0&&i(t?.tools?.listChanged)&&(r.toolsListChanged=!0),e.promptsListChanged===!0&&i(t?.prompts?.listChanged)&&(r.promptsListChanged=!0),e.resourcesListChanged===!0&&i(t?.resources?.listChanged)&&(r.resourcesListChanged=!0),e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.length>0&&i(t?.resources?.subscribe)&&(r.resourceSubscriptions=[...e.resourceSubscriptions]),r}function GA(e){switch(e.kind){case"tools_list_changed":return{method:"notifications/tools/list_changed",...e.params!==void 0&&{params:e.params}};case"prompts_list_changed":return{method:"notifications/prompts/list_changed",...e.params!==void 0&&{params:e.params}};case"resources_list_changed":return{method:"notifications/resources/list_changed",...e.params!==void 0&&{params:e.params}};case"resource_updated":return{method:"notifications/resources/updated",params:{...e.params,uri:e.uri}}}}var jS=1024;function yz(e,t,r){return Response.json({jsonrpc:"2.0",error:{code:t,message:r},id:e},{status:200})}function Sz(e,t){return{method:e.method,params:{...e.params,_meta:{...e.params?._meta,[jr]:t}}}}function WA(e){let t=bn(xs).validateRequest("subscriptions/listen",e);return t.ok?t.value.params?.notifications:void 0}function $z(e){let{bus:t,onerror:r}=e,i=e.maxSubscriptions??jS,n=e.keepAliveMs??mo,o=new Set;function a(s,c,l,u){if(o.size>=i)return r?.(new Error(`subscriptions/listen refused: subscription limit reached (${i})`)),yz(s.id,-32603,"Subscription limit reached");let m=WA(s);if(m===void 0)return yz(s.id,-32602,"Invalid params: \'notifications\' is required and must be a valid SubscriptionFilter");let p=YA(m,l),f=s.id,h=new TextEncoder,v,y=!1,R,w,E,D=ie=>{if(!y)try{v.enqueue(h.encode(ie))}catch(Y){r?.(Y instanceof Error?Y:new Error(String(Y)))}},F=(ie,Y)=>{D(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",method:ie,params:Y})}\n\n`)},N=ie=>{if(!y){ie&&D(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",id:f,result:{resultType:"complete",_meta:{[jr]:f,[tn]:u}}})}\n\n`),y=!0;try{R?.()}catch(Y){r?.(Y instanceof Error?Y:new Error(String(Y)))}w!==void 0&&clearInterval(w),E?.(),o.delete(N);try{v.close()}catch{}}},te=new ReadableStream({start(ie){v=ie;let Y=Sz({method:"notifications/subscriptions/acknowledged",params:{notifications:p}},f);if(F(Y.method,Y.params),Object.keys(p).length===0){N(!0);return}R=t.subscribe(ye=>{if(y||!HA(p,ye))return;let be=Sz(GA(ye),f);F(be.method,be.params)}),w=Cs(n,()=>D(`: keepalive\n\n`)),o.add(N)},cancel(){N(!1)}});if(c!==void 0)if(c.aborted)N(!1);else{let ie=()=>N(!1);c.addEventListener("abort",ie,{once:!0}),E=()=>c.removeEventListener("abort",ie)}return new Response(te,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}})}return{serve:a,closeAll(){for(let s of o)s(!0)},get openCount(){return o.size}}}async function XA(e,t,r){let i=new PS({classification:r.classification,...r.responseMode!==void 0&&{responseMode:r.responseMode},...r.keepAliveMs!==void 0&&{keepAliveMs:r.keepAliveMs}});return await e.connect(i),i.handleMessage(t,{...r.request!==void 0&&{request:r.request},...r.authInfo!==void 0&&{authInfo:r.authInfo}})}var LS=4*1024*1024,US=100;function Rz(e){return`Payload Too Large: Request body must not exceed ${e} bytes`}function DS(e){if(e===void 0)return LS;if(typeof e!="number"||!Number.isFinite(e)||e<=0)throw new RangeError(`maxRequestBodySize must be a positive number of bytes, got ${String(e)}`);return e}async function wz(e,t=LS){if(Number(e.headers.get("content-length"))>t)return{tooLarge:!0};if(e.body===null)return{tooLarge:!1,text:""};let r=e.body.getReader(),i=new TextDecoder,n=0,o="";try{for(;;){let{done:a,value:s}=await r.read();if(a)break;if(n+=s.byteLength,n>t)return{tooLarge:!0};o+=i.decode(s,{stream:!0})}}finally{r.releaseLock()}return{tooLarge:!1,text:o+i.decode()}}var MS=class{sessionIdGenerator;_started=!1;_hasHandledRequest=!1;_closed=!1;_streamMapping=new Map;_requestToStreamMapping=new Map;_requestResponseMap=new Map;_initialized=!1;_enableJsonResponse=!1;_standaloneSseStreamId="_GET_stream";_eventStore;_onsessioninitialized;_onsessionclosed;_allowedHosts;_allowedOrigins;_enableDnsRebindingProtection;_retryInterval;_supportedProtocolVersions;_keepAliveMs;_maxRequestBodySize;_scopeChallengeResolver;sessionId;onclose;onerror;onmessage;constructor(e={}){this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=e.enableJsonResponse??!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=e.enableDnsRebindingProtection??!1,this._retryInterval=e.retryInterval,this._supportedProtocolVersions=e.supportedProtocolVersions??Ba,this._keepAliveMs=e.keepAliveMs??mo,this._maxRequestBodySize=DS(e.maxRequestBodySize)}startKeepAlive(e,t){if(this._closed)return;let r=Cs(this._keepAliveMs,()=>{try{e.enqueue(t.encode(`: keepalive\n\n`))}catch{r!==void 0&&clearInterval(r)}});return r}setScopeChallengeResolver(e){this._scopeChallengeResolver=e}async start(){if(this._started)throw new Error("Transport already started");this._started=!0}setSupportedProtocolVersions(e){this._supportedProtocolVersions=e}createJsonErrorResponse(e,t,r,i){let n={code:t,message:r};return i?.data!==void 0&&(n.data=i.data),Response.json({jsonrpc:"2.0",error:n,id:null},{status:e,headers:{"Content-Type":"application/json",...i?.headers}})}async _checkScopeChallenge(e,t){if(!this._scopeChallengeResolver)return;let r=await OS(e.filter(i=>Dt(i)),t,this._scopeChallengeResolver);return r===void 0?void 0:NS(r,CS(t))}validateRequestHeaders(e){if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let t=e.headers.get("host");if(!t||!this._allowedHosts.includes(t)){let r=`Invalid Host header: ${t}`;return this.onerror?.(new Error(r)),this.createJsonErrorResponse(403,-32e3,r)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let t=e.headers.get("origin");if(t&&!this._allowedOrigins.includes(t)){let r=`Invalid Origin header: ${t}`;return this.onerror?.(new Error(r)),this.createJsonErrorResponse(403,-32e3,r)}}}}async handleRequest(e,t){if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");if(!this.sessionIdGenerator&&this._hasHandledRequest)throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");this._hasHandledRequest=!0;let r=this.validateRequestHeaders(e);if(r)return r;switch(e.method){case"POST":return this.handlePostRequest(e,t);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}supportsEmptySSEData(e){return this._supportedProtocolVersions.includes(e)&&e>="2025-11-25"}async writePrimingEvent(e,t,r,i){if(!this._eventStore||!this.supportsEmptySSEData(i))return;let n=await this._eventStore.storeEvent(r,{}),o=`id: ${n}\ndata: \n\n`;this._retryInterval!==void 0&&(o=`id: ${n}\nretry: ${this._retryInterval}\ndata: \n\n`),e.enqueue(t.encode(o))}async handleGetRequest(e){if(!e.headers.get("accept")?.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let t=this.validateSession(e);if(t)return t;let r=this.validateProtocolVersion(e);if(r)return r;if(this._eventStore){let c=e.headers.get("last-event-id");if(c)return this.replayEvents(c)}if(this._streamMapping.get(this._standaloneSseStreamId)!==void 0)return this.onerror?.(new Error("Conflict: Only one SSE stream is allowed per session")),this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let i=new TextEncoder,n,o,a=new ReadableStream({start:c=>{n=c},cancel:()=>{o!==void 0&&clearInterval(o),this._streamMapping.get(this._standaloneSseStreamId)?.controller===n&&this._streamMapping.delete(this._standaloneSseStreamId)}}),s={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};return this.sessionId!==void 0&&(s["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:n,encoder:i,cleanup:()=>{o!==void 0&&clearInterval(o),this._streamMapping.delete(this._standaloneSseStreamId);try{n.close()}catch{}}}),o=this.startKeepAlive(n,i),new Response(a,{headers:s})}async replayEvents(e){if(!this._eventStore)return this.onerror?.(new Error("Event store not configured")),this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let t;if(this._eventStore.getStreamIdForEventId){if(t=await this._eventStore.getStreamIdForEventId(e),!t)return this.onerror?.(new Error("Invalid event ID format")),this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(this._streamMapping.get(t)!==void 0)return this.onerror?.(new Error("Conflict: Stream already has an active connection")),this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let r={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(r["mcp-session-id"]=this.sessionId);let i=new TextEncoder,n,o,a=!1,s,c=new ReadableStream({start:u=>{n=u},cancel:()=>{a=!0,o!==void 0&&clearInterval(o),s!==void 0&&this._streamMapping.get(s)?.controller===n&&this._streamMapping.delete(s)}}),l=new Set;if(s=await this._eventStore.replayEventsAfter(e,{send:async(u,m)=>{if(l.add(u),!this.writeSSEEvent(n,i,m,u))try{n.close()}catch{}}}),this._closed||a){try{n.close()}catch{}return this.createJsonErrorResponse(404,-32001,"Session not found")}if(this._streamMapping.get(s)?.cleanup(),this._streamMapping.set(s,{controller:n,encoder:i,replayedEventIds:l,cleanup:()=>{o!==void 0&&clearInterval(o),this._streamMapping.delete(s);try{n.close()}catch{}}}),s!==this._standaloneSseStreamId&&![...this._requestToStreamMapping.values()].includes(s)){this._streamMapping.delete(s);try{n.close()}catch{}}return this._streamMapping.get(s)?.controller===n&&(o=this.startKeepAlive(n,i)),new Response(c,{headers:r})}catch(t){return this.onerror?.(t),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,t,r,i){try{let n=`event: message\n`;return i&&(n+=`id: ${i}\n`),n+=`data: ${JSON.stringify(r)}\n\n`,e.enqueue(t.encode(n)),!0}catch(n){return this.onerror?.(n),!1}}handleUnsupportedRequest(){return this.onerror?.(new Error("Method not allowed.")),Response.json({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null},{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,t){try{let r=e.headers.get("accept");if(!r?.includes("application/json")||!r.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept both application/json and text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");if(!wS(e.headers.get("content-type")))return this.onerror?.(new Error("Unsupported Media Type: Content-Type must be application/json")),this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let i=e,n;if(t?.parsedBody===void 0)try{let y=await wz(e,this._maxRequestBodySize);if(y.tooLarge){let R=Rz(this._maxRequestBodySize);return this.onerror?.(new Error(R)),this.createJsonErrorResponse(413,-32e3,R)}n=JSON.parse(y.text)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}else n=t.parsedBody;if(Array.isArray(n)&&n.length>US)return this.onerror?.(new Error(`Invalid Request: Batch must not exceed ${US} messages`)),this.createJsonErrorResponse(400,-32600,`Invalid Request: Batch must not exceed ${US} messages`);let o;try{o=Array.isArray(n)?n.map(y=>Wi.parse(y)):[Wi.parse(n)]}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let a=o.some(y=>hS(y));if(a){if(this._initialized&&this.sessionId!==void 0)return this.onerror?.(new Error("Invalid Request: Server already initialized")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(o.length>1)return this.onerror?.(new Error("Invalid Request: Only one initialization request is allowed")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=this.sessionIdGenerator?.(),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!a){let y=this.validateSession(e);if(y)return y;let R=this.validateProtocolVersion(e);if(R)return R}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let s;try{s=await this._checkScopeChallenge(o,t?.authInfo)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(500,-32603,"Internal server error")}if(s)return s;if(!o.some(y=>Dt(y))){for(let y of o)this.onmessage?.(y,{authInfo:t?.authInfo,request:i});return new Response(null,{status:202})}let c=crypto.randomUUID(),l=o.find(y=>hS(y)),u=l?l.params.protocolVersion:e.headers.get("mcp-protocol-version")??yu;if(this._enableJsonResponse)return new Promise(y=>{this._streamMapping.set(c,{resolveJson:y,cleanup:()=>{this._streamMapping.delete(c)}});for(let R of o)Dt(R)&&this._requestToStreamMapping.set(R.id,c);for(let R of o)this.onmessage?.(R,{authInfo:t?.authInfo,request:i})});let m=new TextEncoder,p,f,h=new ReadableStream({start:y=>{p=y},cancel:()=>{f!==void 0&&clearInterval(f),this._streamMapping.get(c)?.controller===p&&this._streamMapping.delete(c)}}),v={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(v["mcp-session-id"]=this.sessionId);for(let y of o)Dt(y)&&(this._streamMapping.set(c,{controller:p,encoder:m,cleanup:()=>{f!==void 0&&clearInterval(f),this._streamMapping.delete(c);try{p.close()}catch{}}}),this._requestToStreamMapping.set(y.id,c));await this.writePrimingEvent(p,m,c,u);for(let y of o){let R,w;Dt(y)&&this._eventStore&&this.supportsEmptySSEData(u)&&(R=()=>{this.closeSSEStream(y.id)},w=()=>{this.closeStandaloneSSEStream()}),this.onmessage?.(y,{authInfo:t?.authInfo,request:i,closeSSEStream:R,closeStandaloneSSEStream:w})}return this._streamMapping.get(c)?.controller===p&&(f=this.startKeepAlive(p,m)),new Response(h,{status:200,headers:v})}catch(r){return this.onerror?.(r),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(r)})}}async handleDeleteRequest(e){let t=this.validateSession(e);if(t)return t;let r=this.validateProtocolVersion(e);if(r)return r;try{return await Promise.resolve(this._onsessionclosed?.(this.sessionId)),new Response(null,{status:200})}finally{await this.close()}}validateSession(e){if(this.sessionIdGenerator===void 0)return;if(!this._initialized)return this.onerror?.(new Error("Bad Request: Server not initialized")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let t=e.headers.get("mcp-session-id");if(!t)return this.onerror?.(new Error("Bad Request: Mcp-Session-Id header is required")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required");if(t!==this.sessionId)return this.onerror?.(new Error("Session not found")),this.createJsonErrorResponse(404,-32001,"Session not found")}validateProtocolVersion(e){let t=e.headers.get("mcp-protocol-version");if(t!==null&&!this._supportedProtocolVersions.includes(t)){let r=`Bad Request: Unsupported protocol version: ${t} (supported versions: ${this._supportedProtocolVersions.join(", ")})`;return this.onerror?.(new Error(r)),this.createJsonErrorResponse(400,-32e3,r)}}async close(){if(!this._closed){this._closed=!0;for(let{cleanup:e}of this._streamMapping.values())e();this._streamMapping.clear(),this._requestResponseMap.clear(),this.onclose?.()}}closeSSEStream(e){let t=this._requestToStreamMapping.get(e);if(!t)return;let r=this._streamMapping.get(t);r&&r.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,t){let r=t?.relatedRequestId;if((rn(e)||on(e))&&(r=e.id),r===void 0){if(rn(e)||on(e))throw new Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");let o;this._eventStore&&(o=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let a=this._streamMapping.get(this._standaloneSseStreamId);if(a===void 0)return;a.controller&&a.encoder&&(o===void 0||!a.replayedEventIds?.has(o))&&this.writeSSEEvent(a.controller,a.encoder,e,o);return}let i=this._requestToStreamMapping.get(r);if(!i)throw new Error(`No connection established for request ID: ${String(r)}`);let n=this._streamMapping.get(i);if(!this._enableJsonResponse){let o;this._eventStore&&(o=await this._eventStore.storeEvent(i,e),n=this._streamMapping.get(i)),n?.controller&&n?.encoder&&(o===void 0||!n.replayedEventIds?.has(o))&&this.writeSSEEvent(n.controller,n.encoder,e,o)}if(rn(e)||on(e)){this._requestResponseMap.set(r,e);let o=[...this._requestToStreamMapping.entries()].filter(([a,s])=>s===i).map(([a])=>a);if(o.every(a=>this._requestResponseMap.has(a))){if(!n){if(this._enableJsonResponse)throw new Error(`No connection established for request ID: ${String(r)}`);if(!this._eventStore){this.onerror?.(new Error(`Response for request ID ${String(r)} is undeliverable: per-request stream is disconnected and no eventStore is configured`));for(let a of o)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}for(let a of o)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}if(this._enableJsonResponse&&n.resolveJson){let a={"Content-Type":"application/json"};this.sessionId!==void 0&&(a["mcp-session-id"]=this.sessionId);let s=o.map(c=>this._requestResponseMap.get(c));s.length===1?n.resolveJson(Response.json(s[0],{status:200,headers:a})):n.resolveJson(Response.json(s,{status:200,headers:a})),n.cleanup()}else n.cleanup();for(let a of o)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a)}}}};function tr(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let{method:t,id:r}=e;return typeof t!="string"?null:typeof r=="string"||typeof r=="number"?r:null}function kn(e,t,r,i,n=null){return Response.json({jsonrpc:"2.0",error:{code:t,message:r,...i!==void 0&&{data:i}},id:n},{status:e,...e===405&&{headers:{Allow:"POST"}}})}function bm(e,t=null){return kn(e.httpStatus,e.code,e.message,e.data,t)}function Ns(e){return e instanceof Error?e:new Error(String(e))}function As(e=null){return kn(500,-32603,"Internal server error",void 0,e)}function kz(e){if(e.transport!==void 0)throw new Error("The factory returned an instance that is still serving another request. Return a new instance for each request.")}function QA(e,t,r,i){return async(n,o)=>{if(n.method.toUpperCase()!=="POST")return kn(405,-32e3,"Method not allowed.");try{let a=await e({era:"legacy",...o?.authInfo!==void 0&&{authInfo:o.authInfo},requestInfo:n}),s=new MS({sessionIdGenerator:void 0,...r!==void 0&&{keepAliveMs:r},...i!==void 0&&{maxRequestBodySize:i}});await a.connect(s);let c=()=>{s.close().catch(()=>{}),a.close().catch(()=>{})};n.signal?.addEventListener("abort",c,{once:!0});let l=await s.handleRequest(n,{...o?.authInfo!==void 0&&{authInfo:o.authInfo},...o?.parsedBody!==void 0&&{parsedBody:o.parsedBody}});if(l.body===null||RS(l.headers.get("content-type"))!=="text/event-stream")return c(),l;let u=l.body.getReader(),m=!1,p=()=>{m||(m=!0,c())},f=new ReadableStream({pull:async h=>{try{let{done:v,value:y}=await u.read();if(v){p(),h.close();return}y!==void 0&&h.enqueue(y)}catch(v){p(),h.error(v)}},cancel:h=>(p(),u.cancel(h).catch(()=>{}))});return new Response(f,{status:l.status,statusText:l.statusText,headers:l.headers})}catch(a){try{t?.(Ns(a))}catch{}return As(tr(o?.parsedBody))}}}function zz(e){return{protocolVersionHeader:e.headers.get("mcp-protocol-version")??void 0,mcpMethodHeader:e.headers.get("mcp-method")??void 0,mcpNameHeader:e.headers.get("mcp-name")??void 0}}async function Iz(e,t,r=!0,i=LS){let n=e.method.toUpperCase(),o,a=t,s=e,c=!1;if(n==="POST"){if(a===void 0){r&&(s=e.clone());let l;try{let u=await wz(e,i);if(u.tooLarge)return{step:"body-too-large"};l=u.text}catch{return{step:"unreadable-body"}}try{o=l.length===0?void 0:JSON.parse(l)}catch{c=!0}!c&&o!==void 0&&(a=o)}else o=a;if(c||o===void 0)return{step:"no-json-body",forwardRequest:s}}return{step:"classified",outcome:Aw({httpMethod:n,...zz(e),...o!==void 0&&{body:o}}),body:o,parsedBody:a,forwardRequest:s}}async function Tz(e,t,r){let i=DS(r?.maxRequestBodySize),n=await Iz(t===void 0&&e.method.toUpperCase()==="POST"?e.clone():e,t,!1,i);return n.step==="no-json-body"||n.step==="classified"&&n.outcome.kind==="legacy"}function xz(e,t={}){let{legacy:r,onerror:i,responseMode:n}=t,o=DS(t.maxRequestBodySize);if(typeof r=="function")throw new TypeError("The \'legacy\' option only accepts \'stateless\' or \'reject\', not a handler function. To serve 2025-era traffic with your own handler, route in user land with the exported isLegacyRequest(request) predicate in front of a strict (legacy: \'reject\') handler.");let a=new Set,s=!1,c=R=>{try{i?.(R)}catch{}},l=t.bus??new _z(c),u=bz(l),m=$z({bus:l,maxSubscriptions:t.maxSubscriptions??jS,keepAliveMs:t.keepAliveMs??mo,onerror:c});n==="json"&&console.warn("responseMode: \'json\' drops mid-call notifications. subscriptions/listen streams are always served over SSE regardless; other notifications emitted before a result are dropped.");let p=r==="reject"?void 0:QA(e,c,t.keepAliveMs,o);async function f(R,w,E){let D=R.classification.revision;if(D===void 0||!Zr.includes(D)){let ce=new pm({supported:[...Zr],requested:D??"unknown"});return c(ce),kn(400,ce.code,ce.message,ce.data,tr(R.message))}let F=Cw({httpMethod:w.method,...zz(w)},R);if(F!==void 0)return c(new Error(`Rejected inbound request (${F.cell}): ${F.message}`)),bm(F,tr(R.message));let N=R.messageKind==="request"?Qn(R.message.params):void 0,te=N?.[nn];if(R.messageKind==="request"){let ce=dw(R.message.method);if(ce!==void 0){let Ie=zs(ce,te);if(Ie!==void 0){let Pe=new Ts({requiredCapabilities:Ie});return c(Pe),kn(Ow(Pe.code,"ladder"),Pe.code,Pe.message,Pe.data,R.message.id)}}}let ie=await e({era:"modern",...E!==void 0&&{authInfo:E},requestInfo:w}),Y=ie instanceof po?ie.server:ie;if(kz(Y),R.messageKind==="request"&&R.message.method==="subscriptions/listen"){let ce=Y.getCapabilities(),Ie=gz(Y);return ie.close().catch(c),m.serve(R.message,w.signal,ce,Ie)}if(R.messageKind==="request"&&R.message.method==="tools/call"&&ie instanceof po){let ce=R.message.params,Ie=typeof ce?.name=="string"?ce.name:void 0,Pe=Ie===void 0?void 0:ie.toolInputSchemaJson(Ie);if(Pe!==void 0){let De=gm(Pe);if(De.declarations!==void 0&&De.declarations.length>0){let Je=Pw(De.declarations,ce?.arguments,w.headers);if(Je!==void 0)return ie.close().catch(c),c(new Error(`Rejected inbound request (${Je.cell}): ${Je.message}`)),bm(Je,R.message.id)}}}if(R.messageKind==="request"&&ie instanceof po)try{let ce=await OS([R.message],E,Ie=>ie.resolveScopeChallenge(Ie));if(ce!==void 0)return ie.close().catch(c),NS(ce,CS(E))}catch(ce){return ie.close().catch(c),c(Ns(ce)),As(R.message.id)}kz(Y),Hw(Y,D),hz(Y,Zr),N!==void 0&&fz(Y,{clientInfo:N[Ar],clientCapabilities:te});let ye=Y.onclose;a.add(Y);let be=()=>{a.delete(Y),Y.onclose===be&&(Y.onclose=ye),ye?.()};Y.onclose=be;try{let ce=await XA(ie,R.message,{classification:R.classification,request:w,...E!==void 0&&{authInfo:E},...n!==void 0&&{responseMode:n},...t.keepAliveMs!==void 0&&{keepAliveMs:t.keepAliveMs}});return R.messageKind==="notification"&&queueMicrotask(()=>{Y.close().catch(()=>{})}),ce}catch(ce){return ce instanceof re&&ce.code===se.ConnectionClosed?new Response(null,{status:499}):(await Y.close().catch(()=>{}),a.delete(Y),c(Ns(ce)),As(tr(R.message)))}}async function h(R,w,E,D){if(p!==void 0)return p(w,{...E!==void 0&&{authInfo:E},...D!==void 0&&{parsedBody:D}});let F=jw(R,Zr);return F===void 0?new Response(null,{status:202}):(c(new Error(`Rejected 2025-era request on a modern-only endpoint (${F.cell}): ${F.message}`)),bm(F,tr(D)))}async function v(R,w){let E=w?.authInfo;if(R.method.toUpperCase()==="POST"&&!wS(R.headers.get("content-type")))return c(new Error("Unsupported Media Type: Content-Type must be application/json")),kn(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let D=await Iz(R,w?.parsedBody,!0,o);if(D.step==="unreadable-body")return kn(400,-32700,"Parse error: the request body could not be read");if(D.step==="body-too-large")return kn(413,-32e3,Rz(o));if(D.step==="no-json-body")return p!==void 0?p(D.forwardRequest,{...E!==void 0&&{authInfo:E}}):kn(400,-32700,"Parse error: the request body is not valid JSON");let{outcome:F,body:N,parsedBody:te,forwardRequest:ie}=D;try{switch(F.kind){case"reject":return c(new Error(`Rejected inbound request (${F.cell}): ${F.message}`)),bm(F,tr(N));case"modern":return await f(F,R,E);case"legacy":return await h(F,ie,E,te)}}catch(Y){return c(Ns(Y)),As(tr(N))}}return{fetch:async(R,w)=>{if(s)throw new Error("This MCP handler has been closed");try{return await v(R,w)}catch(E){return c(Ns(E)),As(tr(w?.parsedBody))}},notify:u,bus:l,close:async()=>{s=!0,m.closeAll();let R=[...a].map(w=>w.close().catch(()=>{}));a.clear(),await Promise.all(R)}}}function qS(e){return/^Bearer\\s+(.+)$/i.exec(e.headers.get("authorization")?.trim()??"")?.[1]?.trim()||null}function Ez(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=atob(t+"=".repeat((4-t.length%4)%4));return Uint8Array.from(r,i=>i.charCodeAt(0))}function ej(e){let t=e.replace(/-----(BEGIN|END)[^-]+-----/g,"").replace(/\\s+/g,"");return Uint8Array.from(atob(t),r=>r.charCodeAt(0))}var Pz=new Map;function Oz(e){let t=Pz.get(e);return t||(t=crypto.subtle.importKey("spki",ej(e),{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"]),Pz.set(e,t)),t}function Cz(e,t,r){if(!e||!t)return null;let i=Number(t);return Number.isFinite(i)&&i>r?e:null}function Nz(e,t){return typeof e=="string"?e===t:Array.isArray(e)&&e.some(r=>r===t)}function tj(e,t){return typeof t=="string"?e===t:t.some(r=>r===e)}async function VS(e,t){let[r,i,n]=e.split(".");if(!r||!i||!n)throw new Error("malformed");let o=Ez(n),a=new TextEncoder().encode(`${r}.${i}`),s=await crypto.subtle.verify("RSASSA-PKCS1-v1_5",await Oz(t.publicKey),o,a),c=s?null:Cz(t.previousKey,t.previousKeyUntil,Date.now());if(c&&(s=await Oz(c).then(p=>crypto.subtle.verify("RSASSA-PKCS1-v1_5",p,o,a)).catch(()=>!1)),!s)throw new Error("signature");let l=JSON.parse(new TextDecoder().decode(Ez(i))),u=Math.floor(Date.now()/1e3);if(!(Nz(l.aud,t.audience)&&l.iss===t.issuer&&l.serverId===t.serverId&&tj(l.accessMode,t.accessMode)&&typeof l.exp=="number"&&l.exp>u&&typeof l.iat=="number"&&typeof l.jti=="string"&&typeof l.sub=="string"))throw new Error("claims");return{sub:l.sub,clientName:typeof l.clientName=="string"?l.clientName:null,connection:typeof l.connection=="string"?l.connection:null,clientUrl:typeof l.clientUrl=="string"&&l.clientUrl.startsWith("https://")?l.clientUrl:null,readOnly:l.readOnly===!0}}var Az={response:null,userId:null,token:null,clientName:null,connection:null,clientUrl:null,readOnly:!1};function ZS(e,t,r){return{...Az,response:Response.json({error:t,message:r},{status:e})}}function jz(e){return e==="public"?{protected:!1,summary:"This MCP endpoint is public."}:e==="users"?{protected:!0,summary:"This MCP endpoint requires signing in to its API."}:{protected:!0,summary:"This MCP endpoint requires a Sokie runtime token."}}async function Uz(e,t){if(t.accessMode==="public")return Az;if(!t.auth)return ZS(500,"runtime_auth_misconfigured","Runtime auth is not configured for this deployment.");let r=qS(e);if(!r)return ZS(401,"runtime_auth_required","This MCP endpoint requires a Sokie runtime token.");try{let{sub:i,...n}=await VS(r,{...t.auth,accessMode:t.accessMode});return{response:null,userId:i,token:r,...n}}catch{return ZS(401,"runtime_auth_invalid","This MCP endpoint requires a valid Sokie runtime token.")}}var Lz=new WeakMap;function Dz(e){return Lz.get(e)??null}function sn(e){let t=e?.trim();return t||null}function $m(e,t){let r=sn(e[t]);if(!r)throw new Error(`This deployment is missing ${t}. Redeploy the server.`);return r}function FS(e){let t=sn(e.SOKIE_ACCESS_MODE);return t==="private"||t==="users"?t:"public"}function Mz(e,t){let r=FS(t),i={bundle:e,baseUrl:sn(t.SOKIE_UPSTREAM_BASE_URL)??e.baseUrl??"",accessMode:r,auth:r!=="public"?{serverId:$m(t,"SOKIE_SERVER_ID"),issuer:$m(t,"SOKIE_AUTH_ISSUER"),audience:$m(t,"SOKIE_AUTH_AUDIENCE"),publicKey:$m(t,"SOKIE_AUTH_PUBLIC_KEY"),previousKey:sn(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS),previousKeyUntil:sn(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS_UNTIL)}:null,platformUrl:sn(t.SOKIE_PLATFORM_URL),connectUrl:sn(t.SOKIE_CONNECT_URL),secret:s=>s.startsWith("SOKIE_")?null:sn(t[s]),policy:null,policyText:null},n=sn(t.SOKIE_POLICY),o=Ko(n);o&&(i.policy=o,i.policyText=n);let a=sn(t.SOKIE_PLATFORM_TOKEN);return a&&Lz.set(i,a),i}function qz(e={}){return{userId:null,runtimeToken:null,clientName:null,connection:null,clientUrl:null,readOnly:!1,policy:null,policyText:null,era:"legacy",projection:{preBytes:0,postBytes:0,applied:!1},call:{tool:null,isError:!1,errorClass:null,upstreamStatus:null},...e}}function js(e){let t=e.effect??(e.annotations?.readOnlyHint?"read":"external_effect");return{name:e.name,effect:t,area:e.area??e.tags?.[0]??""}}function km(e,t,r){return Qm(t.policy,js(r),{publicServer:e.accessMode==="public",readOnly:t.readOnly})}function nj(e,t,r){let i=js(r);return t.readOnly&&i.effect!=="read"?"readOnly":(t.policy?dc(t.policy,i):"allow")==="off"?"off":e.accessMode==="public"?"nobodyToAsk":"ask"}var KS="Its owner sets what agents may do in Sokie.";function rj(e,t,r){switch(e){case"readOnly":return r?`This connection is read only, so ${t} isn\'t available to it. The person who connected it can change that on their agents page for this server.`:`This connection is read only, so ${t} isn\'t available to it. The person who connected it can change that in Sokie, under Settings \\u203A Connected clients.`;case"off":return`Agents can\'t use ${t} on this server. ${KS}`;case"nobodyToAsk":return`${t} needs a person\'s OK first, and this server is public, so there\'s nobody to ask. ${KS}`;case"ask":return`${t} needs the OK of the person you act for before it runs. ${KS}`}}function Rm(e,t,r){let i=nj(e,t,r),n=rj(i,r.name,e.accessMode==="users");return{content:[{type:"text",text:n}],isError:!0,_meta:{error:n,errorClass:"POLICY_DENIED",retryable:!1,policy:i}}}var Vz=new WeakMap,ij=8;function BS(e,t){let r=e.bundle.tools;if(!t.policy&&!t.readOnly)return r;let i=`${t.policyText??""}|${e.accessMode}|${t.readOnly?"r":"a"}`,n=Vz.get(r);n||(n=new Map,Vz.set(r,n));let o=n.get(i);if(o)return o;let a=Object.freeze(r.filter(s=>km(e,t,s)!=="off"));if(n.size>=ij){let s=n.keys().next().value;s!==void 0&&n.delete(s)}return n.set(i,a),a}async function Zz(e,t,r){if(!r.policy&&!r.readOnly)return null;let i;try{i=await e.clone().json()}catch{return null}if(i?.method!=="tools/call"||typeof i.params?.name!="string")return null;let n=i.params.name,o=t.bundle.tools.find(s=>s.name===n);if(!o||km(t,r,o)!=="off")return null;let a=typeof i.id=="string"||typeof i.id=="number"?i.id:null;return{response:Response.json({jsonrpc:"2.0",id:a,result:Rm(t,r,o)}),tool:o.name}}var oj=new Map([["oauth_connection_revoked","The upstream account for this server was disconnected. Reconnect it in Sokie to use this tool."],["oauth_refresh_failed","The upstream account for this server could not be refreshed. Reconnect it in Sokie to use this tool."],["oauth_refresh_token_missing","The upstream account for this server cannot be refreshed. Reconnect it in Sokie to use this tool."],["caller_blocked","This server\'s owner has stopped your access to it. Ask them if you think that\'s a mistake."],["caller_sign_in_required","Your sign-in to this server\'s API has ended. Connect it again from your agent, and sign in when it asks."],["credential_rate_limited","Too many credential requests for this server. Wait a moment and retry."],["caller_key_missing","No key for this API in sokie dev. Set SOKIE_CALLER_KEY in .sokie/dev.env, then call the tool again."],["deployment_credential_invalid","Sokie refused this server\'s credential request. Redeploy the server if this keeps happening."]]);function nr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function HS(e,t){let r=nr(e)&&nr(e.error)?e.error.code:null;return typeof r=="string"&&oj.get(r)||t}function Fz(e){if(!nr(e)||!nr(e.elicitation))return null;let{url:t,message:r,elicitationId:i}=e.elicitation;if(typeof t!="string"||!t)return null;let n=typeof r=="string"&&r?r:"Authorization is required to use this tool.",o=typeof i=="string"?i:"",a=n.includes(t)?n:`${n} Open ${t}`;return new j(-32042,a,{elicitations:[{mode:"url",message:n,url:t,elicitationId:o}]})}async function YS(e,t,r){let i=Dz(e);if(!e.platformUrl||!i)throw new Error("This deployment cannot reach Sokie for credentials. Redeploy the server.");let n=await fetch(`${e.platformUrl.replace(/\\/+$/,"")}/${t}`,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${i}`},body:JSON.stringify(r)});return{ok:n.ok,payload:await n.json().catch(()=>null)}}async function Kz(e,t,r){if(!t.runtimeToken)throw new Error("This server uses each caller\'s own key, so it must be private. Ask its owner to make it private.");let{ok:i,payload:n}=await YS(e,"caller-key",{callerToken:t.runtimeToken,reportInvalid:r});if(!i)throw Fz(n)??new Error(HS(n,"Your upstream key could not be read from Sokie."));let o=nr(n)&&typeof n.apiKey=="string"?n.apiKey.trim():"";if(!o)throw new Error("Sokie returned no upstream key for this call.");return o}async function Bz(e,t,r){let i=e.bundle.auth.type==="oauth"&&e.bundle.auth.tokens==="perCaller",n=i?t.runtimeToken:null;if(i&&!n)throw new Error("This server signs each caller in to the upstream, so it must be private. Ask its owner to make it private.");let{ok:o,payload:a}=await YS(e,"oauth-token",{callerToken:n,forceRefresh:r});if(!o)throw Fz(a)??new Error(HS(a,"The upstream access token could not be read from Sokie."));let s=nr(a)&&typeof a.accessToken=="string"?a.accessToken.trim():"";if(!s)throw new Error("Sokie returned no upstream access token for this call.");let c=nr(a)&&typeof a.tokenType=="string"&&a.tokenType.trim()?a.tokenType.trim():"Bearer";return{accessToken:s,tokenType:c}}async function Jz(e,t,r){if(!t.runtimeToken)throw new Error("This call needs a person\'s OK, and nobody signed in to ask.");let{ok:i,payload:n}=await YS(e,"held-call",{callerToken:t.runtimeToken,...r});if(!i||!nr(n))throw new Error(HS(n,"Sokie couldn\'t hold this call for the OK it needs."));let{decision:o}=n;if(o==="run")return{decision:o};if(o==="declined")return n.byClient===!0?{decision:o,byClient:!0}:{decision:o};if(o==="cancelled")return{decision:o};let a=s=>typeof n[s]=="string"?n[s]:"";if(o==="ask"&&a("url")&&a("id"))return{decision:o,id:a("id"),url:a("url"),...n.onPage===!0?{onPage:!0}:{},question:a("question")||`Allow ${r.tool}?`,message:a("message")||`This call needs your OK first: ${a("url")}`};throw new Error("Sokie answered this call\'s hold with something unexpected.")}var GS="sokie_ok",aj=new Set(["delete","external_effect"]);function sj(e){if(typeof e!="object"||e===null)return!1;let t=e;return t.form!==void 0||t.url===void 0}function cj(e){return typeof e=="object"&&e!==null&&e.url!==void 0}var wm=(e,t)=>({content:[{type:"text",text:e}],isError:!0,_meta:{error:e,errorClass:"POLICY_DENIED",retryable:!1,policy:t}});async function Hz(e,t,r,i,n){let o=n.era==="modern"?_S(n.inputResponses,GS):null,a=await Jz(e,t,{tool:r.name,...r.title?{title:r.title}:{},kind:js(r).effect,args:i,...o?.kind==="elicit"?{answer:o.action}:{}});if(t.call.ask=a.decision==="run"?"allowed":a.decision==="declined"?"declined":"asked",a.decision==="run")return"run";if(a.decision==="declined"&&a.byClient)return wm(`Your client answered no for the person you act for, so ${r.name} didn\'t run. If they didn\'t see a question, or meant yes, call ${r.name} again: they\'ll get a link to answer on Sokie.`,"declined");if(a.decision==="declined")return wm(`The person you act for said no to ${r.name}, so nothing ran. Don\'t try it again unless they ask you to.`,"declined");if(a.decision==="cancelled")return wm(`The person you act for didn\'t answer, so ${r.name} didn\'t run.`,"cancelled");let s=n.clientCapabilities(),c=()=>wm(`${a.message} Reconnecting won\'t help; only the person\'s OK will.`,"ask");if(a.onPage)return c();let l=!aj.has(js(r).effect);if(n.era==="modern"){let u=s?.elicitation;return l&&sj(u)?er({inputRequests:{[GS]:er.elicit({message:a.question,requestedSchema:{type:"object",properties:{}}})}}):u&&(l||cj(u))?er({inputRequests:{[`${GS}_link`]:er.elicitUrl({url:a.url,message:a.message})}}):c()}if(s&&!s.elicitation)return c();throw new j(-32042,a.message,{elicitations:[{mode:"url",message:a.message,url:a.url,elicitationId:a.id}]})}var fo=e=>e!==null&&Object.prototype.toString.call(e)==="[object Object]",Im=(e,t)=>{if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(!Im(e[r],t[r]))return!1;return!0}if(fo(e)&&fo(t)){let r=Object.entries(e),i=new Set(Object.keys(t));if(r.length!==i.size)return!1;for(let[n,o]of r){if(!Im(o,t[n]))return!1;i.delete(n)}return i.size===0}return!1},zm=e=>{if(e===""||e===!1||e===null||e===void 0||Array.isArray(e)&&e.length===0)return!0;if(fo(e)){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},lj=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_",Yz=e=>e>="0"&&e<="9"||e==="-",uj=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_",k;(function(e){e.TOK_EOF="EOF",e.TOK_UNQUOTEDIDENTIFIER="UnquotedIdentifier",e.TOK_QUOTEDIDENTIFIER="QuotedIdentifier",e.TOK_RBRACKET="Rbracket",e.TOK_RPAREN="Rparen",e.TOK_COMMA="Comma",e.TOK_COLON="Colon",e.TOK_RBRACE="Rbrace",e.TOK_NUMBER="Number",e.TOK_CURRENT="Current",e.TOK_ROOT="Root",e.TOK_EXPREF="Expref",e.TOK_PIPE="Pipe",e.TOK_OR="Or",e.TOK_AND="And",e.TOK_EQ="EQ",e.TOK_GT="GT",e.TOK_LT="LT",e.TOK_GTE="GTE",e.TOK_LTE="LTE",e.TOK_NE="NE",e.TOK_FLATTEN="Flatten",e.TOK_STAR="Star",e.TOK_FILTER="Filter",e.TOK_DOT="Dot",e.TOK_NOT="Not",e.TOK_LBRACE="Lbrace",e.TOK_LBRACKET="Lbracket",e.TOK_LPAREN="Lparen",e.TOK_LITERAL="Literal"})(k||(k={}));var Gz={"(":k.TOK_LPAREN,")":k.TOK_RPAREN,"*":k.TOK_STAR,",":k.TOK_COMMA,".":k.TOK_DOT,":":k.TOK_COLON,"@":k.TOK_CURRENT,$:k.TOK_ROOT,"]":k.TOK_RBRACKET,"{":k.TOK_LBRACE,"}":k.TOK_RBRACE},dj={"!":!0,"<":!0,"=":!0,">":!0},mj={"\t":!0,"\\n":!0,"\\r":!0," ":!0},WS=class{constructor(){this._current=0}tokenize(t){let r=[];this._current=0;let i,n,o;for(;this._current<t.length;)if(lj(t[this._current]))i=this._current,n=this.consumeUnquotedIdentifier(t),r.push({start:i,type:k.TOK_UNQUOTEDIDENTIFIER,value:n});else if(Gz[t[this._current]]!==void 0)r.push({start:this._current,type:Gz[t[this._current]],value:t[this._current]}),this._current+=1;else if(Yz(t[this._current]))o=this.consumeNumber(t),r.push(o);else if(t[this._current]==="[")o=this.consumeLBracket(t),r.push(o);else if(t[this._current]===\'"\')i=this._current,n=this.consumeQuotedIdentifier(t),r.push({start:i,type:k.TOK_QUOTEDIDENTIFIER,value:n});else if(t[this._current]==="\'")i=this._current,n=this.consumeRawStringLiteral(t),r.push({start:i,type:k.TOK_LITERAL,value:n});else if(t[this._current]==="`"){i=this._current;let a=this.consumeLiteral(t);r.push({start:i,type:k.TOK_LITERAL,value:a})}else if(dj[t[this._current]]!==void 0)o=this.consumeOperator(t),o&&r.push(o);else if(mj[t[this._current]]!==void 0)this._current+=1;else if(t[this._current]==="&")i=this._current,this._current+=1,t[this._current]==="&"?(this._current+=1,r.push({start:i,type:k.TOK_AND,value:"&&"})):r.push({start:i,type:k.TOK_EXPREF,value:"&"});else if(t[this._current]==="|")i=this._current,this._current+=1,t[this._current]==="|"?(this._current+=1,r.push({start:i,type:k.TOK_OR,value:"||"})):r.push({start:i,type:k.TOK_PIPE,value:"|"});else{let a=new Error(`Unknown character: ${t[this._current]}`);throw a.name="LexerError",a}return r}consumeUnquotedIdentifier(t){let r=this._current;for(this._current+=1;this._current<t.length&&uj(t[this._current]);)this._current+=1;return t.slice(r,this._current)}consumeQuotedIdentifier(t){let r=this._current;this._current+=1;let i=t.length;for(;t[this._current]!==\'"\'&&this._current<i;){let n=this._current;t[n]==="\\\\"&&(t[n+1]==="\\\\"||t[n+1]===\'"\')?n+=2:n+=1,this._current=n}return this._current+=1,JSON.parse(t.slice(r,this._current))}consumeRawStringLiteral(t){let r=this._current;this._current+=1;let i=t.length;for(;t[this._current]!=="\'"&&this._current<i;){let o=this._current;t[o]==="\\\\"&&(t[o+1]==="\\\\"||t[o+1]==="\'")?o+=2:o+=1,this._current=o}return this._current+=1,t.slice(r+1,this._current-1).replace("\\\\\'","\'")}consumeNumber(t){let r=this._current;this._current+=1;let i=t.length;for(;Yz(t[this._current])&&this._current<i;)this._current+=1;let n=parseInt(t.slice(r,this._current),10);return{start:r,value:n,type:k.TOK_NUMBER}}consumeLBracket(t){let r=this._current;return this._current+=1,t[this._current]==="?"?(this._current+=1,{start:r,type:k.TOK_FILTER,value:"[?"}):t[this._current]==="]"?(this._current+=1,{start:r,type:k.TOK_FLATTEN,value:"[]"}):{start:r,type:k.TOK_LBRACKET,value:"["}}consumeOperator(t){let r=this._current,i=t[r];if(this._current+=1,i==="!")return t[this._current]==="="?(this._current+=1,{start:r,type:k.TOK_NE,value:"!="}):{start:r,type:k.TOK_NOT,value:"!"};if(i==="<")return t[this._current]==="="?(this._current+=1,{start:r,type:k.TOK_LTE,value:"<="}):{start:r,type:k.TOK_LT,value:"<"};if(i===">")return t[this._current]==="="?(this._current+=1,{start:r,type:k.TOK_GTE,value:">="}):{start:r,type:k.TOK_GT,value:">"};if(i==="="&&t[this._current]==="=")return this._current+=1,{start:r,type:k.TOK_EQ,value:"=="}}consumeLiteral(t){this._current+=1;let r=this._current,i=t.length;for(;t[this._current]!=="`"&&this._current<i;){let a=this._current;t[a]==="\\\\"&&(t[a+1]==="\\\\"||t[a+1]==="`")?a+=2:a+=1,this._current=a}let n=t.slice(r,this._current).trimLeft();n=n.replace("\\\\`","`");let o=this.looksLikeJSON(n)?JSON.parse(n):JSON.parse(`"${n}"`);return this._current+=1,o}looksLikeJSON(t){let i=["true","false","null"],n="-0123456789";if(t==="")return!1;if(\'[{"\'.includes(t[0])||i.includes(t))return!0;if(n.includes(t[0]))try{return JSON.parse(t),!0}catch{return!1}return!1}},pj=new WS,Be={[k.TOK_EOF]:0,[k.TOK_UNQUOTEDIDENTIFIER]:0,[k.TOK_QUOTEDIDENTIFIER]:0,[k.TOK_RBRACKET]:0,[k.TOK_RPAREN]:0,[k.TOK_COMMA]:0,[k.TOK_RBRACE]:0,[k.TOK_NUMBER]:0,[k.TOK_CURRENT]:0,[k.TOK_EXPREF]:0,[k.TOK_ROOT]:0,[k.TOK_PIPE]:1,[k.TOK_OR]:2,[k.TOK_AND]:3,[k.TOK_EQ]:5,[k.TOK_GT]:5,[k.TOK_LT]:5,[k.TOK_GTE]:5,[k.TOK_LTE]:5,[k.TOK_NE]:5,[k.TOK_FLATTEN]:9,[k.TOK_STAR]:20,[k.TOK_FILTER]:21,[k.TOK_DOT]:40,[k.TOK_NOT]:45,[k.TOK_LBRACE]:50,[k.TOK_LBRACKET]:55,[k.TOK_LPAREN]:60},XS=class{constructor(){this.index=0,this.tokens=[]}parse(t){this.loadTokens(t),this.index=0;let r=this.expression(0);if(this.lookahead(0)!==k.TOK_EOF){let i=this.lookaheadToken(0);this.errorToken(i,`Unexpected token type: ${i.type}, value: ${i.value}`)}return r}loadTokens(t){this.tokens=[...pj.tokenize(t),{type:k.TOK_EOF,value:"",start:t.length}]}expression(t){let r=this.lookaheadToken(0);this.advance();let i=this.nud(r),n=this.lookahead(0);for(;t<Be[n];)this.advance(),i=this.led(n,i),n=this.lookahead(0);return i}lookahead(t){return this.tokens[this.index+t].type}lookaheadToken(t){return this.tokens[this.index+t]}advance(){this.index+=1}nud(t){let r,i,n;switch(t.type){case k.TOK_LITERAL:return{type:"Literal",value:t.value};case k.TOK_UNQUOTEDIDENTIFIER:return{type:"Field",name:t.value};case k.TOK_QUOTEDIDENTIFIER:let o={type:"Field",name:t.value};if(this.lookahead(0)===k.TOK_LPAREN)throw new Error("Quoted identifier not allowed for function names.");return o;case k.TOK_NOT:return i=this.expression(Be.Not),{type:"NotExpression",children:[i]};case k.TOK_STAR:return r={type:"Identity"},i=this.lookahead(0)===k.TOK_RBRACKET&&{type:"Identity"}||this.parseProjectionRHS(Be.Star),{type:"ValueProjection",children:[r,i]};case k.TOK_FILTER:return this.led(t.type,{type:"Identity"});case k.TOK_LBRACE:return this.parseMultiselectHash();case k.TOK_FLATTEN:return r={type:k.TOK_FLATTEN,children:[{type:"Identity"}]},i=this.parseProjectionRHS(Be.Flatten),{type:"Projection",children:[r,i]};case k.TOK_LBRACKET:return this.lookahead(0)===k.TOK_NUMBER||this.lookahead(0)===k.TOK_COLON?(i=this.parseIndexExpression(),this.projectIfSlice({type:"Identity"},i)):this.lookahead(0)===k.TOK_STAR&&this.lookahead(1)===k.TOK_RBRACKET?(this.advance(),this.advance(),i=this.parseProjectionRHS(Be.Star),{children:[{type:"Identity"},i],type:"Projection"}):this.parseMultiselectList();case k.TOK_CURRENT:return{type:k.TOK_CURRENT};case k.TOK_ROOT:return{type:k.TOK_ROOT};case k.TOK_EXPREF:return n=this.expression(Be.Expref),{type:"ExpressionReference",children:[n]};case k.TOK_LPAREN:let a=[];for(;this.lookahead(0)!==k.TOK_RPAREN;)this.lookahead(0)===k.TOK_CURRENT?(n={type:k.TOK_CURRENT},this.advance()):n=this.expression(0),a.push(n);return this.match(k.TOK_RPAREN),a[0];default:this.errorToken(t)}}led(t,r){let i;switch(t){case k.TOK_DOT:let n=Be.Dot;return this.lookahead(0)!==k.TOK_STAR?(i=this.parseDotRHS(n),{type:"Subexpression",children:[r,i]}):(this.advance(),i=this.parseProjectionRHS(n),{type:"ValueProjection",children:[r,i]});case k.TOK_PIPE:return i=this.expression(Be.Pipe),{type:k.TOK_PIPE,children:[r,i]};case k.TOK_OR:return i=this.expression(Be.Or),{type:"OrExpression",children:[r,i]};case k.TOK_AND:return i=this.expression(Be.And),{type:"AndExpression",children:[r,i]};case k.TOK_LPAREN:let o=r.name,a=[],s;for(;this.lookahead(0)!==k.TOK_RPAREN;)this.lookahead(0)===k.TOK_CURRENT?(s={type:k.TOK_CURRENT},this.advance()):s=this.expression(0),this.lookahead(0)===k.TOK_COMMA&&this.match(k.TOK_COMMA),a.push(s);return this.match(k.TOK_RPAREN),{name:o,type:"Function",children:a};case k.TOK_FILTER:let l=this.expression(0);return this.match(k.TOK_RBRACKET),i=this.lookahead(0)===k.TOK_FLATTEN&&{type:"Identity"}||this.parseProjectionRHS(Be.Filter),{type:"FilterProjection",children:[r,i,l]};case k.TOK_FLATTEN:let u={type:k.TOK_FLATTEN,children:[r]},m=this.parseProjectionRHS(Be.Flatten);return{type:"Projection",children:[u,m]};case k.TOK_EQ:case k.TOK_NE:case k.TOK_GT:case k.TOK_GTE:case k.TOK_LT:case k.TOK_LTE:return this.parseComparator(r,t);case k.TOK_LBRACKET:let p=this.lookaheadToken(0);return p.type===k.TOK_NUMBER||p.type===k.TOK_COLON?(i=this.parseIndexExpression(),this.projectIfSlice(r,i)):(this.match(k.TOK_STAR),this.match(k.TOK_RBRACKET),i=this.parseProjectionRHS(Be.Star),{type:"Projection",children:[r,i]});default:return this.errorToken(this.lookaheadToken(0))}}match(t){if(this.lookahead(0)===t){this.advance();return}else{let r=this.lookaheadToken(0);this.errorToken(r,`Expected ${t}, got: ${r.type}`)}}errorToken(t,r=""){let i=new Error(r||`Invalid token (${t.type}): "${t.value}"`);throw i.name="ParserError",i}parseIndexExpression(){if(this.lookahead(0)===k.TOK_COLON||this.lookahead(1)===k.TOK_COLON)return this.parseSliceExpression();let t={type:"Index",value:this.lookaheadToken(0).value};return this.advance(),this.match(k.TOK_RBRACKET),t}projectIfSlice(t,r){let i={type:"IndexExpression",children:[t,r]};return r.type==="Slice"?{children:[i,this.parseProjectionRHS(Be.Star)],type:"Projection"}:i}parseSliceExpression(){let t=[null,null,null],r=0,i=this.lookahead(0);for(;i!==k.TOK_RBRACKET&&r<3;){if(i===k.TOK_COLON)r+=1,this.advance();else if(i===k.TOK_NUMBER)t[r]=this.lookaheadToken(0).value,this.advance();else{let n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}i=this.lookahead(0)}return this.match(k.TOK_RBRACKET),{children:t,type:"Slice"}}parseComparator(t,r){let i=this.expression(Be[r]);return{type:"Comparator",name:r,children:[t,i]}}parseDotRHS(t){let r=this.lookahead(0);if([k.TOK_UNQUOTEDIDENTIFIER,k.TOK_QUOTEDIDENTIFIER,k.TOK_STAR].includes(r))return this.expression(t);if(r===k.TOK_LBRACKET)return this.match(k.TOK_LBRACKET),this.parseMultiselectList();if(r===k.TOK_LBRACE)return this.match(k.TOK_LBRACE),this.parseMultiselectHash();let n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}parseProjectionRHS(t){if(Be[this.lookahead(0)]<10)return{type:"Identity"};if(this.lookahead(0)===k.TOK_LBRACKET)return this.expression(t);if(this.lookahead(0)===k.TOK_FILTER)return this.expression(t);if(this.lookahead(0)===k.TOK_DOT)return this.match(k.TOK_DOT),this.parseDotRHS(t);let r=this.lookaheadToken(0);this.errorToken(r,`Syntax error, unexpected token: ${r.value}(${r.type})`)}parseMultiselectList(){let t=[];for(;this.lookahead(0)!==k.TOK_RBRACKET;){let r=this.expression(0);if(t.push(r),this.lookahead(0)===k.TOK_COMMA&&(this.match(k.TOK_COMMA),this.lookahead(0)===k.TOK_RBRACKET))throw new Error("Unexpected token Rbracket")}return this.match(k.TOK_RBRACKET),{type:"MultiSelectList",children:t}}parseMultiselectHash(){let t=[],r=[k.TOK_UNQUOTEDIDENTIFIER,k.TOK_QUOTEDIDENTIFIER],i,n,o;for(;;){if(i=this.lookaheadToken(0),!r.includes(i.type))throw new Error(`Expecting an identifier token, got: ${i.type}`);if(n=i.value,this.advance(),this.match(k.TOK_COLON),o=this.expression(0),t.push({value:o,type:"KeyValuePair",name:n}),this.lookahead(0)===k.TOK_COMMA)this.match(k.TOK_COMMA);else if(this.lookahead(0)===k.TOK_RBRACE){this.match(k.TOK_RBRACE);break}}return{type:"MultiSelectHash",children:t}}},fj=new XS,P;(function(e){e[e.TYPE_NUMBER=0]="TYPE_NUMBER",e[e.TYPE_ANY=1]="TYPE_ANY",e[e.TYPE_STRING=2]="TYPE_STRING",e[e.TYPE_ARRAY=3]="TYPE_ARRAY",e[e.TYPE_OBJECT=4]="TYPE_OBJECT",e[e.TYPE_BOOLEAN=5]="TYPE_BOOLEAN",e[e.TYPE_EXPREF=6]="TYPE_EXPREF",e[e.TYPE_NULL=7]="TYPE_NULL",e[e.TYPE_ARRAY_NUMBER=8]="TYPE_ARRAY_NUMBER",e[e.TYPE_ARRAY_STRING=9]="TYPE_ARRAY_STRING"})(P||(P={}));var QS=class{constructor(t){this.TYPE_NAME_TABLE={[P.TYPE_NUMBER]:"number",[P.TYPE_ANY]:"any",[P.TYPE_STRING]:"string",[P.TYPE_ARRAY]:"array",[P.TYPE_OBJECT]:"object",[P.TYPE_BOOLEAN]:"boolean",[P.TYPE_EXPREF]:"expression",[P.TYPE_NULL]:"null",[P.TYPE_ARRAY_NUMBER]:"Array<number>",[P.TYPE_ARRAY_STRING]:"Array<string>"},this.functionAbs=([r])=>Math.abs(r),this.functionAvg=([r])=>{let i=0;for(let n=0;n<r.length;n+=1)i+=r[n];return i/r.length},this.functionCeil=([r])=>Math.ceil(r),this.functionContains=r=>{let[i,n]=r;return i.includes(n)},this.functionEndsWith=r=>{let[i,n]=r;return i.includes(n,i.length-n.length)},this.functionFloor=([r])=>Math.floor(r),this.functionJoin=r=>{let[i,n]=r;return n.join(i)},this.functionKeys=([r])=>Object.keys(r),this.functionLength=([r])=>fo(r)?Object.keys(r).length:r.length,this.functionMap=r=>{if(!this._interpreter)return[];let i=[],n=this._interpreter,o=r[0],a=r[1];for(let s=0;s<a.length;s+=1)i.push(n.visit(o,a[s]));return i},this.functionMax=([r])=>{if(!r.length)return null;if(this.getTypeName(r[0])===P.TYPE_NUMBER)return Math.max(...r);let n=r,o=n[0];for(let a=1;a<n.length;a+=1)o.localeCompare(n[a])<0&&(o=n[a]);return o},this.functionMaxBy=r=>{let i=r[1],n=r[0],o=this.createKeyFunction(i,[P.TYPE_NUMBER,P.TYPE_STRING]),a=-1/0,s,c;for(let l=0;l<n.length;l+=1)c=o&&o(n[l]),c!==void 0&&c>a&&(a=c,s=n[l]);return s},this.functionMerge=r=>{let i={};for(let n=0;n<r.length;n+=1){let o=r[n];i=Object.assign(i,o)}return i},this.functionMin=([r])=>{if(!r.length)return null;if(this.getTypeName(r[0])===P.TYPE_NUMBER)return Math.min(...r);let n=r,o=n[0];for(let a=1;a<n.length;a+=1)n[a].localeCompare(o)<0&&(o=n[a]);return o},this.functionMinBy=r=>{let i=r[1],n=r[0],o=this.createKeyFunction(i,[P.TYPE_NUMBER,P.TYPE_STRING]),a=1/0,s,c;for(let l=0;l<n.length;l+=1)c=o&&o(n[l]),c!==void 0&&c<a&&(a=c,s=n[l]);return s},this.functionNotNull=r=>{for(let i=0;i<r.length;i+=1)if(this.getTypeName(r[i])!==P.TYPE_NULL)return r[i];return null},this.functionReverse=([r])=>{if(this.getTypeName(r)===P.TYPE_STRING){let o=r,a="";for(let s=o.length-1;s>=0;s-=1)a+=o[s];return a}let n=r.slice(0);return n.reverse(),n},this.functionSort=([r])=>[...r].sort(),this.functionSortBy=r=>{if(!this._interpreter)return[];let i=r[0].slice(0);if(i.length===0)return i;let n=this._interpreter,o=r[1],a=this.getTypeName(n.visit(o,i[0]));if(a!==void 0&&![P.TYPE_NUMBER,P.TYPE_STRING].includes(a))throw new Error(`TypeError: unexpected type (${this.TYPE_NAME_TABLE[a]})`);let s=[];for(let c=0;c<i.length;c+=1)s.push([c,i[c]]);s.sort((c,l)=>{let u=n.visit(o,c[1]),m=n.visit(o,l[1]);if(this.getTypeName(u)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(u)]}`);if(this.getTypeName(m)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(m)]}`);return u>m?1:u<m?-1:c[0]-l[0]});for(let c=0;c<s.length;c+=1)i[c]=s[c][1];return i},this.functionStartsWith=([r,i])=>r.startsWith(i),this.functionSum=([r])=>r.reduce((i,n)=>i+n,0),this.functionToArray=([r])=>this.getTypeName(r)===P.TYPE_ARRAY?r:[r],this.functionToNumber=([r])=>{let i=this.getTypeName(r),n;return i===P.TYPE_NUMBER?r:i===P.TYPE_STRING&&(n=+r,!isNaN(n))?n:null},this.functionToString=([r])=>this.getTypeName(r)===P.TYPE_STRING?r:JSON.stringify(r),this.functionType=([r])=>{switch(this.getTypeName(r)){case P.TYPE_NUMBER:return"number";case P.TYPE_STRING:return"string";case P.TYPE_ARRAY:return"array";case P.TYPE_OBJECT:return"object";case P.TYPE_BOOLEAN:return"boolean";case P.TYPE_EXPREF:return"expref";case P.TYPE_NULL:return"null";default:return}},this.functionValues=([r])=>Object.values(r),this.functionTable={abs:{_func:this.functionAbs,_signature:[{types:[P.TYPE_NUMBER]}]},avg:{_func:this.functionAvg,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},ceil:{_func:this.functionCeil,_signature:[{types:[P.TYPE_NUMBER]}]},contains:{_func:this.functionContains,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]},{types:[P.TYPE_ANY]}]},ends_with:{_func:this.functionEndsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},floor:{_func:this.functionFloor,_signature:[{types:[P.TYPE_NUMBER]}]},join:{_func:this.functionJoin,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_ARRAY_STRING]}]},keys:{_func:this.functionKeys,_signature:[{types:[P.TYPE_OBJECT]}]},length:{_func:this.functionLength,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY,P.TYPE_OBJECT]}]},map:{_func:this.functionMap,_signature:[{types:[P.TYPE_EXPREF]},{types:[P.TYPE_ARRAY]}]},max:{_func:this.functionMax,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},max_by:{_func:this.functionMaxBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},merge:{_func:this.functionMerge,_signature:[{types:[P.TYPE_OBJECT],variadic:!0}]},min:{_func:this.functionMin,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},min_by:{_func:this.functionMinBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},not_null:{_func:this.functionNotNull,_signature:[{types:[P.TYPE_ANY],variadic:!0}]},reverse:{_func:this.functionReverse,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]}]},sort:{_func:this.functionSort,_signature:[{types:[P.TYPE_ARRAY_STRING,P.TYPE_ARRAY_NUMBER]}]},sort_by:{_func:this.functionSortBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},starts_with:{_func:this.functionStartsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},sum:{_func:this.functionSum,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},to_array:{_func:this.functionToArray,_signature:[{types:[P.TYPE_ANY]}]},to_number:{_func:this.functionToNumber,_signature:[{types:[P.TYPE_ANY]}]},to_string:{_func:this.functionToString,_signature:[{types:[P.TYPE_ANY]}]},type:{_func:this.functionType,_signature:[{types:[P.TYPE_ANY]}]},values:{_func:this.functionValues,_signature:[{types:[P.TYPE_OBJECT]}]}},this._interpreter=t}registerFunction(t,r,i){if(t in this.functionTable)throw new Error(`Function already defined: ${t}()`);this.functionTable[t]={_func:r.bind(this),_signature:i}}callFunction(t,r){let i=this.functionTable[t];if(i===void 0)throw new Error(`Unknown function: ${t}()`);return this.validateArgs(t,r,i._signature),i._func.call(this,r)}validateInputSignatures(t,r){for(let i=0;i<r.length;i+=1)if("variadic"in r[i]&&i!==r.length-1)throw new Error(`ArgumentError: ${t}() \'variadic\' argument ${i+1} must occur last`)}validateArgs(t,r,i){var n,o;let a;this.validateInputSignatures(t,i);let s=i.filter(v=>{var y;return(y=!v.optional)!==null&&y!==void 0?y:!1}).length,c=(o=(n=i[i.length-1])===null||n===void 0?void 0:n.variadic)!==null&&o!==void 0?o:!1,l=r.length<s,u=r.length>i.length,m=l&&(!c&&s>1||c)?"at least ":"";if(c&&l||!c&&(l||u))throw a=i.length>1,new Error(`ArgumentError: ${t}() takes ${m}${s} argument${a&&"s"||""} but received ${r.length}`);let p,f,h;for(let v=0;v<i.length;v+=1){h=!1,p=i[v].types,f=this.getTypeName(r[v]);let y;for(y=0;y<p.length;y+=1)if(f!==void 0&&this.typeMatches(f,p[y],r[v])){h=!0;break}if(!h&&f!==void 0){let R=p.map(w=>this.TYPE_NAME_TABLE[w]).join(" | ");throw new Error(`TypeError: ${t}() expected argument ${v+1} to be type (${R}) but received type ${this.TYPE_NAME_TABLE[f]} instead.`)}}}typeMatches(t,r,i){if(r===P.TYPE_ANY)return!0;if(r===P.TYPE_ARRAY_STRING||r===P.TYPE_ARRAY_NUMBER||r===P.TYPE_ARRAY){if(r===P.TYPE_ARRAY)return t===P.TYPE_ARRAY;if(t===P.TYPE_ARRAY){let n;r===P.TYPE_ARRAY_NUMBER?n=P.TYPE_NUMBER:r===P.TYPE_ARRAY_STRING&&(n=P.TYPE_STRING);for(let o=0;o<i.length;o+=1){let a=this.getTypeName(i[o]);if(a!==void 0&&n!==void 0&&!this.typeMatches(a,n,i[o]))return!1}return!0}}else return t===r;return!1}getTypeName(t){switch(Object.prototype.toString.call(t)){case"[object String]":return P.TYPE_STRING;case"[object Number]":return P.TYPE_NUMBER;case"[object Array]":return P.TYPE_ARRAY;case"[object Boolean]":return P.TYPE_BOOLEAN;case"[object Null]":return P.TYPE_NULL;case"[object Object]":return t.jmespathType===k.TOK_EXPREF?P.TYPE_EXPREF:P.TYPE_OBJECT;default:return}}createKeyFunction(t,r){if(!this._interpreter)return;let i=this._interpreter;return o=>{let a=i.visit(t,o);if(!r.includes(this.getTypeName(a))){let s=`TypeError: expected one of (${r.map(c=>this.TYPE_NAME_TABLE[c]).join(" | ")}), received ${this.TYPE_NAME_TABLE[this.getTypeName(a)]}`;throw new Error(s)}return a}}},e_=class{constructor(){this._rootValue=null,this.runtime=new QS(this)}search(t,r){return this._rootValue=r,this.visit(t,r)}visit(t,r){let i,n,o,a,s,c,l,u,m,p,f;switch(t.type){case"Field":return r===null?null:fo(r)?(c=r[t.name],c===void 0?null:c):null;case"Subexpression":for(o=this.visit(t.children[0],r),p=1;p<t.children.length;p+=1)if(o=this.visit(t.children[1],o),o===null)return null;return o;case"IndexExpression":return l=this.visit(t.children[0],r),u=this.visit(t.children[1],l),u;case"Index":if(!Array.isArray(r))return null;let h=t.value;return h<0&&(h=r.length+h),o=r[h],o===void 0&&(o=null),o;case"Slice":if(!Array.isArray(r))return null;let v=[...t.children],y=this.computeSliceParams(r.length,v),[R,w,E]=y;if(o=[],E>0)for(p=R;p<w;p+=E)o.push(r[p]);else for(p=R;p>w;p+=E)o.push(r[p]);return o;case"Projection":if(f=this.visit(t.children[0],r),!Array.isArray(f))return null;for(m=[],p=0;p<f.length;p+=1)n=this.visit(t.children[1],f[p]),n!==null&&m.push(n);return m;case"ValueProjection":if(f=this.visit(t.children[0],r),!fo(f))return null;m=[];let D=Object.values(f);for(p=0;p<D.length;p+=1)n=this.visit(t.children[1],D[p]),n!==null&&m.push(n);return m;case"FilterProjection":if(f=this.visit(t.children[0],r),!Array.isArray(f))return null;let F=[],N=[];for(p=0;p<f.length;p+=1)i=this.visit(t.children[2],f[p]),zm(i)||F.push(f[p]);for(let ce=0;ce<F.length;ce+=1)n=this.visit(t.children[1],F[ce]),n!==null&&N.push(n);return N;case"Comparator":switch(a=this.visit(t.children[0],r),s=this.visit(t.children[1],r),t.name){case k.TOK_EQ:o=Im(a,s);break;case k.TOK_NE:o=!Im(a,s);break;case k.TOK_GT:o=a>s;break;case k.TOK_GTE:o=a>=s;break;case k.TOK_LT:o=a<s;break;case k.TOK_LTE:o=a<=s;break;default:throw new Error(`Unknown comparator: ${t.name}`)}return o;case k.TOK_FLATTEN:let te=this.visit(t.children[0],r);if(!Array.isArray(te))return null;let ie=[];for(p=0;p<te.length;p+=1)n=te[p],Array.isArray(n)?ie=[...ie,...n]:ie.push(n);return ie;case"Identity":return r;case"MultiSelectList":if(r===null)return null;for(m=[],p=0;p<t.children.length;p+=1)m.push(this.visit(t.children[p],r));return m;case"MultiSelectHash":if(r===null)return null;m={};let Y;for(p=0;p<t.children.length;p+=1)Y=t.children[p],m[Y.name]=this.visit(Y.value,r);return m;case"OrExpression":return i=this.visit(t.children[0],r),zm(i)&&(i=this.visit(t.children[1],r)),i;case"AndExpression":return a=this.visit(t.children[0],r),zm(a)?a:this.visit(t.children[1],r);case"NotExpression":return a=this.visit(t.children[0],r),zm(a);case"Literal":return t.value;case k.TOK_PIPE:return l=this.visit(t.children[0],r),this.visit(t.children[1],l);case k.TOK_CURRENT:return r;case k.TOK_ROOT:return this._rootValue;case"Function":let ye=[];for(let ce=0;ce<t.children.length;ce+=1)ye.push(this.visit(t.children[ce],r));return this.runtime.callFunction(t.name,ye);case"ExpressionReference":let be=t.children[0];return be.jmespathType=k.TOK_EXPREF,be;default:throw new Error(`Unknown node type: ${t.type}`)}}computeSliceParams(t,r){let[i,n,o]=r;if(o===null)o=1;else if(o===0){let s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}let a=o<0;return i=i===null?a?t-1:0:this.capSliceRange(t,i,o),n=n===null?a?-1:t:this.capSliceRange(t,n,o),[i,n,o]}capSliceRange(t,r,i){let n=r;return n<0?(n+=t,n<0&&(n=i<0?-1:0)):n>=t&&(n=i<0?t-1:t),n}},hj=new e_,c6=P.TYPE_ANY,l6=P.TYPE_ARRAY,u6=P.TYPE_ARRAY_NUMBER,d6=P.TYPE_ARRAY_STRING,m6=P.TYPE_BOOLEAN,p6=P.TYPE_EXPREF,f6=P.TYPE_NULL,h6=P.TYPE_NUMBER,g6=P.TYPE_OBJECT,v6=P.TYPE_STRING;function Wz(e,t){let r=fj.parse(t);return hj.search(r,e)}function Qz(e,t,r){if(!e?.trim()||t===null||typeof t!="object")return t;let i;try{i=Wz(t,e)??null}catch{return t}return r.projection.preBytes+=Xz(t),r.projection.postBytes+=Xz(i),r.projection.applied=!0,i}function Xz(e){try{return new TextEncoder().encode(JSON.stringify(e)??"").length}catch{return 0}}var gj=new TextEncoder;function eI(e,t){if(e.trim().toLowerCase()!=="basic"||!t.includes(":"))return t;let r="";for(let i of gj.encode(t))r+=String.fromCharCode(i);return btoa(r)}var Tm={connection:"x-sokie-connection",name:"x-sokie-client",verified:"x-sokie-client-verified",id:"x-sokie-client-id"};function vj(e){let t="";for(let r of e.trim()){let i=r.codePointAt(0)??0;i>=55296&&i<=57343?t+="%EF%BF%BD":i>=32&&i<=126&&r!=="%"?t+=r:t+=encodeURIComponent(r)}return t}function tI(e,t){let r=(n,o)=>{o?e.set(n,vj(o)):e.delete(n)},i=t.userId!==null;r(Tm.connection,i?t.connection:null),r(Tm.name,i?t.clientName:null),r(Tm.verified,i?String(t.clientUrl!==null):null),r(Tm.id,i?t.clientUrl:null)}var nI={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}};var yj=new TextEncoder,Sj=/^[A-Za-z0-9\\-._~]$/,_j=/^[A-Za-z0-9\\-._~:/?[\\]@!$&\'()*+,;=]$/,bj=/^[A-Za-z0-9\\-._~!\'()*]$/,$j=e=>`%${e.toString(16).toUpperCase().padStart(2,"0")}`;function t_(e,t){let r="";for(let i of e)if(t.test(i))r+=i;else for(let n of yj.encode(i))r+=$j(n);return r}var Em=e=>t_(e,Sj);function rI(e){return e.split(/(%[0-9A-Fa-f]{2})/).map((t,r)=>r%2===1?t:t_(t,_j)).join("")}var xm=e=>new URLSearchParams([["",e]]).toString().slice(1),Jr=e=>t_(e,bj);function iI(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Hr(e){return typeof e=="string"?e:e==null?"":typeof e=="object"?JSON.stringify(e):String(e)}var Us=e=>e!=null;function Pm(e,t){if(!Us(e))return null;if(t.json)return{kind:"primitive",text:JSON.stringify(e)};if(Array.isArray(e)){let r=e.filter(Us).map(Hr);return r.length>0?{kind:"array",items:r}:null}if(iI(e)){let r=Object.entries(e).filter(([,i])=>Us(i)).map(([i,n])=>[i,Hr(n)]);return r.length>0?{kind:"object",entries:r}:null}return{kind:"primitive",text:Hr(e)}}var n_={spaceDelimited:" ",pipeDelimited:"|",tabDelimited:"\t"},Ls=e=>e.kind==="array"?e.items:e.entries.flat();function r_(e,t,r,i=r.allowReserved?rI:Em,n=Em){let o=Pm(t,r);if(!o)return[];let a=n(e);if(o.kind==="primitive")return[`${a}=${i(o.text)}`];if(r.style==="deepObject"&&o.kind==="object")return o.entries.map(([s,c])=>`${n(`${e}[${s}]`)}=${i(c)}`);if(!r.explode){let s=n_[r.style];return[`${a}=${Ls(o).map(i).join(s?i(s):",")}`]}return o.kind==="array"?o.items.map(s=>`${a}=${i(s)}`):o.entries.map(([s,c])=>`${n(s)}=${i(c)}`)}function oI(e,t){let r=Pm(e,t);if(!r)return null;if(r.kind==="primitive")return r.text;let i=n_[t.style]??",";return r.kind==="object"&&t.explode?r.entries.map(([n,o])=>`${n}=${o}`).join(i):Ls(r).join(i)}function aI(e,t,r){let i=Pm(t,r),n=r.style==="label"?".":r.style==="matrix"?";":"";if(!i)return r.style==="matrix"?`;${e}`:n;let o=(l,u)=>r.style==="matrix"?`${l}=${u}`:u;if(i.kind==="primitive")return`${n}${o(e,Jr(i.text))}`;let a=n_[r.style];if(a)return Ls(i).map(Jr).join(Jr(a));if(!r.explode)return`${n}${o(e,Ls(i).map(Jr).join(","))}`;let s=n||",",c=i.kind==="array"?i.items.map(l=>o(e,Jr(l))):i.entries.map(([l,u])=>`${Jr(l)}=${Jr(u)}`);return`${n}${c.join(s)}`}function sI(e,t,r){let i=Pm(t,r);if(!i)return[];let n=r.style==="cookie"?o=>o:Em;return i.kind==="primitive"?[`${e}=${n(i.text)}`]:r.explode?i.kind==="array"?i.items.map(o=>`${e}=${n(o)}`):i.entries.map(([o,a])=>`${o}=${n(a)}`):[`${e}=${Ls(i).map(n).join(",")}`]}function i_(e){return(e.split(";")[0]??"").trim().toLowerCase()}var o_=e=>e==="application/json"||e==="application/*+json"||/\\+json$/.test(e),Ds="application/x-www-form-urlencoded";function cI(e,t,r={}){let i=i_(t);if(i!==Ds)return Em(o_(i)?JSON.stringify(e):Hr(e));if(!iI(e))return typeof e=="string"?rI(e):"";let n=[];for(let[o,a]of Object.entries(e)){if(!Us(a))continue;let s=r[o];if(s){n.push(...r_(o,a,s,xm,xm));continue}for(let c of Array.isArray(a)?a.filter(Us):[a])n.push(`${xm(o)}=${xm(Hr(c))}`)}return n.join("&")}function lI(e,t,r,i){if(i==="."||i==="..")throw new Yt(e,[`${t} can\'t be "${r}"`])}function uI(e,t,r){return t.path.replace(/\\{([^}]+)\\}/g,(i,n)=>{let o=String(r[n]??"");return lI(e,n,o,o),encodeURIComponent(o)})}function dI(e,t,r,i){for(let[n,o]of Object.entries(t)){let a=e.params[n];if(!(o==null||a===void 0||a==="path"))if(a==="query")for(let s of Array.isArray(o)?o:[o])r.searchParams.append(n,String(s));else i.set(n,String(o))}}var Om=(e,t,r)=>e.styles?.[t]??nI[r];function mI(e,t,r){return t.path.replace(/\\{([^}]+)\\}/g,(i,n)=>{let o=r[n],a=aI(n,o,Om(t,n,"path"));return lI(e,n,Hr(o),a),a})}function a_(e,t){if(t.length===0)return;let r=e.get("cookie");e.set("cookie",[r,...t].filter(Boolean).join("; "))}function pI(e,t,r,i){let n=[],o=[],a="";for(let[c,l]of Object.entries(t)){let u=e.params[c];if(!(l==null||u===void 0||u==="path"))if(u==="querystring"){let{contentType:m=Ds,styles:p}=e.querystring??{};a=cI(l,m,p)}else if(u==="query")n.push(...r_(c,l,Om(e,c,u)));else if(u==="cookie")o.push(...sI(c,l,Om(e,c,u)));else{let m=oI(l,Om(e,c,u));m!==null&&i.set(c,m)}}let s=[a,r.search.slice(1),...n].filter(Boolean).join("&");r.search=s,a_(i,o),i.has("accept")||i.set("accept",e.accept??"application/json")}function fI(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function kj(e){let t=new URLSearchParams,r=(i,n)=>{if(n!=null)if(Array.isArray(n))n.forEach((o,a)=>{r(i?`${i}[${a}]`:String(a),o)});else if(fI(n))for(let[o,a]of Object.entries(n))r(i?`${i}[${o}]`:o,a);else i!==null&&t.append(i,String(n))};return r(null,e),t.toString()}function Rj(e){let t=new FormData;if(!fI(e))return t;for(let[r,i]of Object.entries(e))for(let n of Array.isArray(i)?i:[i])n!=null&&t.append(r,typeof n=="object"?JSON.stringify(n):String(n));return t}var wj=e=>e.startsWith("text/")||e==="application/xml"||/\\+xml$/.test(e);function hI(e,t,r){if(!(e.body&&t.body!==void 0&&!["GET","HEAD"].includes(e.method.toUpperCase()))||!e.body)return;let{contentType:n}=e.body,o=i_(n);return o==="multipart/form-data"?(r.delete("content-type"),Rj(t.body)):(r.set("content-type",n),o===Ds?kj(t.body):wj(o)&&!o_(o)&&typeof t.body=="string"?t.body:JSON.stringify(t.body))}var zj=`sokie/${Bo} (+https://sokie.sh)`;function vI(e,t){let r=e.replace(/\\/+$/,"");if(!/^https?:\\/\\//i.test(r))throw new Error(`This server has no upstream URL: set upstream.baseUrl in sokie.json (got ${r?`"${r}"`:"nothing"}).`);return new URL(t?`${r}/${t.replace(/^\\/+/,"")}`:r)}function gI(e,t){let r=e.secret(t);if(!r)throw new Error(`The secret ${t} is not set for this environment. Its owner sets it with \\`sokie secrets set ${t}\\`.`);return r}async function yI(e,t,r,i,n){let o=new Headers,a=[];for(let[c,l]of Object.entries(e.bundle.headers))if(typeof l=="string")o.set(c,l);else{let u=gI(e,l.secret);a.push(u),o.set(c,u)}if(o.has("user-agent")||o.set("user-agent",zj),e.accessMode==="users"&&tI(o,r),!t.sendsCredential)return{headers:o,secrets:a};let{auth:s}=e.bundle;if(s.type==="oauth"){let c=await Bz(e,r,n);a.push(c.accessToken),o.set("authorization",`${c.tokenType} ${c.accessToken}`)}else if(s.type==="apiKey"){let c=s.key==="perCaller"?await Kz(e,r,n):gI(e,s.key.secret),l=e.bundle.requestFormat===2,u=l?eI(s.prefix,c):c;a.push(...new Set([c,u]));let m=`${s.prefix}${u}`;s.in==="query"?i.searchParams.set(s.name,m):l&&s.name.toLowerCase()==="cookie"?a_(o,[m]):o.set(s.name,m)}return{headers:o,secrets:a}}async function s_(e,t,r,i,n=!1){let{operation:o}=t;return o.kind==="graphql"?Ij(e,t,o,r,i,n):Tj(e,t,o,r,i,n)}async function Ij(e,t,r,i,n,o){let a=vI(e.baseUrl,""),{headers:s,secrets:c}=await yI(e,t,n,a,o);s.set("accept","application/json"),s.set("content-type","application/json");let l=Object.fromEntries(Object.entries(i).filter(([,m])=>m!==void 0)),u=JSON.stringify({query:r.document,variables:l});return{url:a.toString(),init:{method:"POST",headers:s,body:u},secrets:c}}async function Tj(e,t,r,i,n,o){let a=e.bundle.requestFormat===2,s=a?mI(t.name,r,i):uI(t.name,r,i),c=vI(e.baseUrl,s),{headers:l,secrets:u}=await yI(e,t,n,c,o);a?pI(r,i,c,l):dI(r,i,c,l);let m=hI(r,i,l),p=r.method.toUpperCase();return{url:c.toString(),init:{method:p,headers:l,body:m},secrets:u}}var xj="[redacted]";var Ej=/^(?:text\\/|application\\/(?:json|xml|javascript|x-www-form-urlencoded|ya?ml|x-yaml|x-ndjson|jsonl|graphql|csv)\\b|[a-z]+\\/[^;]*\\+(?:json|xml|yaml)\\b)/;function Pj(e){return(e.headers.get("content-type")??"").split(";")[0]?.trim().toLowerCase()??""}function Oj(e){let t=new Promise((r,i)=>{e.aborted&&i(e.reason),e.addEventListener("abort",()=>i(e.reason),{once:!0})});return t.catch(()=>{}),t}function c_(e,t){let r=new Uint8Array(t),i=0;for(let n of e){if(i>=t)break;let o=n.subarray(0,t-i);r.set(o,i),i+=o.byteLength}return r}async function SI(e,t,r,i=!1){let n=e.getReader(),o=Oj(r),a=[],s=0;try{for(;;){let{done:c,value:l}=await Promise.race([n.read(),o]);if(c)return{bytes:c_(a,s),cut:!1};if(a.push(l),s+=l.byteLength,s>t)return{bytes:c_(a,t),cut:!0}}}catch(c){if(i&&!r.aborted)return{bytes:c_(a,s),cut:!0};throw c}finally{n.cancel().catch(()=>{})}}function Cj(e,t){return e.includes("gzip")&&t[0]===31&&t[1]===139?"gzip":e.includes("deflate")?t[0]===120?"deflate":"deflate-raw":null}async function Nj(e,t,r){let i=(e.headers.get("content-encoding")??"").toLowerCase(),n=Cj(i,t.bytes);if(!n)return t;try{let o=new Blob([t.bytes]).stream().pipeThrough(new DecompressionStream(n)),a=await SI(o,2097152,r,t.cut);return{bytes:a.bytes,cut:a.cut||t.cut}}catch(o){if(r.aborted)throw o;return t}}var Aj=e=>JSON.stringify(e).slice(1,-1);function jj(e,t){let r=t.flatMap(n=>[n,Aj(n)]).filter(n=>n.length>=8).sort((n,o)=>o.length-n.length),i=e;for(let n of r)i=i.split(n).join(xj);return i}function Uj(e){if(!e)return null;try{return JSON.parse(e)}catch{return e}}async function _I(e,t,r=[]){if(!e.body)return{body:null};let i=await SI(e.body,2097152,t),n=Pj(e);if(n&&!Ej.test(n))return{body:null,file:{type:n,bytes:i.cut?null:i.bytes.byteLength}};let{bytes:o,cut:a}=await Nj(e,i,t),s=jj(new TextDecoder().decode(o),r);return a?{body:s,cut:!0}:{body:Uj(s)}}var l_=64*1024,bI=2e3,Lj="Ask for less: use this tool\'s paging or filtering arguments, such as a smaller page size, a narrower search or fewer fields.";function Ms(e){return e<1024*1024?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/(1024*1024)).toFixed(1).replace(/\\.0$/,"")} MB`}function Nm(e,t=!0){let r=new TextEncoder().encode(e);if(t&&r.byteLength<=l_)return e;let i=new TextDecoder().decode(r.subarray(0,l_)).replace(/\\uFFFD$/,""),n=t?`this result is ${Ms(r.byteLength)}`:`the API\'s answer is over ${Ms(2097152)}`;return`${i}\n\n[Cut here: ${n}, and a tool returns at most ${Ms(l_)}. ${Lj}]`}function kI(e){let t=e.bytes===null?`over ${Ms(2097152)}`:Ms(e.bytes);return`The API answered with ${e.type} (${t}), which isn\'t text, so this tool can\'t return it.`}function qt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function u_(e){let t=e?.trim();if(!t)return null;let r=Number(t);if(Number.isFinite(r))return r>=0?Math.ceil(r):null;let i=Date.parse(t);return Number.isNaN(i)?null:Math.max(0,Math.ceil((i-Date.now())/1e3))}function Dj(e){if(!qt(e))return{code:null,message:null};let t=qt(e.error)?e.error:null,r=(...i)=>{for(let n of i)if(typeof n=="string"&&n.trim())return n.trim();return null};return{code:r(t?.code,t?.type,e.code,e.error_code,typeof e.error=="string"?e.error:null),message:r(t?.message,e.message,e.error_description,e.detail)}}var RI=/^(?:invalid|missing|expired|revoked|bad)[_-]?(?:token|api[_-]?key|key|credentials?|auth)$|^(?:token|api[_-]?key|key|credentials?)[_-]?(?:expired|revoked|invalid|missing)$|^unauthenticated$/i;function Mj(e,t,r){let{code:i,message:n}=Dj(t),o=r.bundle.auth.type==="apiKey"&&r.bundle.auth.key==="perCaller",a=e===401||e===403&&i!==null&&RI.test(i)||wI(t);if(o&&a){let s=r.connectUrl?`Reconnect at ${r.connectUrl}`:"Reconnect it on this server\'s Sokie connect page";return`The upstream API refused the key you connected for "${r.bundle.name}"; it was most likely revoked, rotated or expired. ${s}. Signing in to Sokie again will not fix it.`}return e===403&&(i||n)?`The upstream API refused this action (${[i,n].filter(Boolean).join(": ")}). This is a permission decision, not a connection problem; reconnecting will not change it.`:null}function qj(e){return!qt(e)||!Array.isArray(e.errors)?[]:e.errors.map(t=>qt(t)&&qt(t.extensions)&&typeof t.extensions.code=="string"?t.extensions.code:"").filter(Boolean)}function wI(e){return qj(e).some(t=>RI.test(t))}function zI(e,t,r){return t===401?!0:e.operation.kind==="graphql"&&wI(r)}function d_(e){if(!qt(e)||!Array.isArray(e.errors)||e.errors.length===0)return null;let t=e.errors.map(r=>qt(r)&&typeof r.message=="string"?r.message.trim():"").filter(Boolean);return t.length>0?t.join(" "):"GraphQL execution failed."}function Cm(e,t,r,i){let n=d_(t)??(typeof t=="string"?t:t?JSON.stringify(t,null,2):"No response body."),o=n.length>bI?`${n.slice(0,bI)}\\u2026 (cut)`:n,a=Mj(e,t,i),c=[e>=200&&e<300?"The upstream GraphQL API answered with errors.":`The upstream request failed with status ${e}.`,a,o].filter(Boolean).join(" ");return new Pt(c,e,r)}function II(e,t,r,i){if(!t.ok)throw Cm(t.status,r,u_(t.headers.get("retry-after")),i);if(e.operation.kind!=="graphql")return r;let n=d_(r),o=qt(r)&&qt(r.data)?r.data:null,a=e.operation.field;if(o&&o[a]!==void 0&&o[a]!==null)return o[a];if(n)throw Cm(t.status,r,null,i);if(!o)throw new Error("The GraphQL response had no data.");return o[a]??null}function TI(e,t){if(e.operation.kind!=="graphql")return null;let i=(qt(t)&&qt(t.data)?t.data:null)?.[e.operation.field];if(i==null)return null;let n=d_(t);return n?`The API also reported errors for part of this result: ${n}`:null}function xI(e,t,r=t){let i=e.title??e.name;return t==null?r==null?`${i} completed.`:`${i} found nothing. The API answered, but without the fields this tool reads.`:typeof t=="string"?t:JSON.stringify(t,null,2)}var PI=3e4,EI=5,Vj=new Set([301,302,303,307,308]),Zj=["content-type","content-length","content-encoding","content-language"],Fj=["user-agent","accept"];function Kj(e,t){return e.host!==t.host?!1:t.protocol===e.protocol||e.protocol==="http:"&&t.protocol==="https:"}function Bj(e,t){let r=(e.method??"GET").toUpperCase();if(!(t===303&&r!=="HEAD"||(t===301||t===302)&&r==="POST"))return e;let n=new Headers(e.headers);for(let o of Zj)n.delete(o);return{...e,method:"GET",body:void 0,headers:n}}function Jj(e,t){let r=new Headers(e.headers),i=new Headers;for(let n of Fj){let o=r.get(n);o&&!t.includes(o)&&i.set(n,o)}return{method:e.method,headers:i}}async function Hj(e,t){let r=new URL(e.url),i=e.init,n=!0;for(let o=0;;o+=1){let a=await fetch(r.toString(),{...i,redirect:"manual",signal:t}),s=Vj.has(a.status)?a.headers.get("location"):null;if(!s)return a;await a.body?.cancel().catch(()=>{});let c=new URL(s,r);if(c.protocol!=="https:"&&c.protocol!=="http:")throw new Pt(`The upstream API redirected this call to a ${c.protocol} address, which Sokie doesn\'t follow.`,a.status);if(o>=EI)throw new Pt(`The upstream API redirected this call more than ${EI} times, so Sokie stopped following it.`,a.status);if(i=Bj(i,a.status),n&&!Kj(new URL(e.url),c)){if(i.body!==void 0&&i.body!==null)throw new Pt(`The upstream API sent this call on to ${c.host}. Sokie sends a call\'s body only to the API\'s own host.`,a.status);i=Jj(i,e.secrets),n=!1}r=c}}var Yj=()=>new Pt(`The upstream API didn\'t answer within ${PI/1e3} seconds. Try again; if it keeps happening, the API may be down or the request too large.`,504);async function m_(e,t=PI){let r=AbortSignal.timeout(t);try{let i=await Hj(e,r);return{response:i,...await _I(i,r,e.secrets)}}catch(i){throw r.aborted||i instanceof Error&&i.name==="TimeoutError"?Yj():i}}function Gj(e,t,r){if(Math.abs(e.length-t.length)>r)return r+1;let i=Array.from({length:t.length+1},(n,o)=>o);for(let n=1;n<=e.length;n+=1){let o=[n],a=n;for(let s=1;s<=t.length;s+=1){let c=e[n-1]===t[s-1]?0:1,l=Math.min((i[s]??0)+1,(o[s-1]??0)+1,(i[s-1]??0)+c);o[s]=l,a=Math.min(a,l)}if(a>r)return r+1;i=o}return i[t.length]??r+1}function OI(e,t){let r=Math.max(1,Math.floor(e.length/3)),i=e.toLowerCase(),n=null,o=r+1;for(let a of t){if(a.toLowerCase()===i)return a;let s=Gj(i,a.toLowerCase(),r);s<=r&&s<o&&(n=a,o=s)}return n}function Rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var je=e=>e.length>0?`/${e.join("/")}`:"/";function CI(e){return typeof e.type=="string"?[e.type]:Array.isArray(e.type)?e.type.filter(t=>typeof t=="string"):[]}function qs(e,t){let r=[];return Am(e,t,[],r),r}function NI(e,t,r){let i=qs(t,r);if(i.length>0)throw new Yt(e,i);return Rn(r)?r:{}}function Am(e,t,r,i){if(t===null&&(e.nullable===!0||CI(e).includes("null")))return;for(let a of["anyOf","oneOf"]){let s=e[a];if(!Array.isArray(s)||s.length===0)continue;s.some(l=>Rn(l)&&qs(l,t).length===0)||i.push(`${je(r)} must match at least one allowed schema`);return}if(Object.hasOwn(e,"const")&&t!==e.const){i.push(`${je(r)} must equal ${JSON.stringify(e.const)}`);return}if(Array.isArray(e.enum)&&!e.enum.some(a=>a===t)){i.push(`${je(r)} must be one of ${e.enum.map(a=>JSON.stringify(a)).join(", ")}`);return}let n=CI(e).filter(a=>a!=="null"),o=n.length>0?n:Rn(e.properties)?["object"]:Rn(e.items)?["array"]:[];if(o.length!==0){if(o.length>1){o.some(s=>qs({...e,type:s},t).length===0)||i.push(`${je(r)} must be one of the types ${o.join(", ")}`);return}Wj(o[0]??"",e,t,r,i)}}function Wj(e,t,r,i,n){e==="object"?Xj(t,r,i,n):e==="array"?Qj(t,r,i,n):e==="string"?eU(t,r,i,n):e==="integer"||e==="number"?nU(e,t,r,i,n):e==="boolean"&&typeof r!="boolean"&&n.push(`${je(i)} must be a boolean`)}function Xj(e,t,r,i){if(!Rn(t)){i.push(`${je(r)} must be an object`);return}let n=Rn(e.properties)?e.properties:{},o=Array.isArray(e.required)?e.required.filter(a=>typeof a=="string"):[];for(let a of o)t[a]===void 0&&i.push(`${je([...r,a])} is required`);for(let[a,s]of Object.entries(t)){if(s===void 0)continue;let c=n[a];if(Rn(c))Am(c,s,[...r,a],i);else if(e.additionalProperties===!1){let l=OI(a,Object.keys(n));i.push(`${je([...r,a])} is not allowed${l?` (did you mean "${l}"?)`:""}`)}else Rn(e.additionalProperties)&&Am(e.additionalProperties,s,[...r,a],i)}}function Qj(e,t,r,i){if(!Array.isArray(t)){i.push(`${je(r)} must be an array`);return}typeof e.minItems=="number"&&t.length<e.minItems&&i.push(`${je(r)} must contain at least ${e.minItems} items`),typeof e.maxItems=="number"&&t.length>e.maxItems&&i.push(`${je(r)} must contain no more than ${e.maxItems} items`);let n=e.items;Rn(n)&&t.forEach((o,a)=>{Am(n,o,[...r,String(a)],i)})}function eU(e,t,r,i){if(typeof t!="string"){i.push(`${je(r)} must be a string`);return}typeof e.minLength=="number"&&t.length<e.minLength&&i.push(`${je(r)} must have length at least ${e.minLength}`),typeof e.maxLength=="number"&&t.length>e.maxLength&&i.push(`${je(r)} must have length no greater than ${e.maxLength}`),typeof e.pattern=="string"&&!tU(e.pattern,t)&&i.push(`${je(r)} must match pattern ${e.pattern}`)}function tU(e,t){try{return new RegExp(e).test(t)}catch{return!0}}function nU(e,t,r,i,n){if(typeof r!="number"||Number.isNaN(r)||e==="integer"&&!Number.isInteger(r)){n.push(`${je(i)} must be ${e==="integer"?"an integer":"a number"}`);return}typeof t.minimum=="number"&&r<t.minimum&&n.push(`${je(i)} must be at least ${t.minimum}`),typeof t.maximum=="number"&&r>t.maximum&&n.push(`${je(i)} must be no greater than ${t.maximum}`)}var rU=e=>({content:[{type:"text",text:e}]});function iU(e,t){let{response:r}=e,i=e.file?kI(e.file):e.cut?String(e.body):null;if(i===null)return null;if(!r.ok){let n=u_(r.headers.get("retry-after"));throw Cm(r.status,i,n,t)}return rU(e.file?i:Nm(i,!1))}async function AI(e,t,r,i){let n=NI(t.name,t.inputSchema,r),o=await m_(await s_(e,t,n,i));zI(t,o.response.status,o.body)&&oU(e,t)&&(o=await m_(await s_(e,t,n,i,!0)));let a=iU(o,e);if(a)return a;let s=II(t,o.response,o.body,e),c=Qz(t.project,s,i),l=TI(t,o.body);return{content:[{type:"text",text:Nm(xI(t,c,s))},...l?[{type:"text",text:Nm(l)}]:[]]}}function oU(e,t){let{auth:r}=e.bundle;return t.sendsCredential?r.type==="oauth"||r.type==="apiKey"&&r.key==="perCaller":!1}function p_(e){if(typeof e=="object"&&e!==null){for(let t of Object.values(e))p_(t);Object.freeze(e)}return e}function jI(e,t){let r=p_(structuredClone(t));return p_({"~standard":{version:1,vendor:"sokie",validate:i=>{let n=qs(r,i);return n.length===0?{value:i}:{issues:[{message:new Yt(e,n).message}]}},jsonSchema:{input:()=>r,output:()=>r}}})}var UI=new WeakMap;function DI(e){let t=UI.get(e);if(t)return t;let r=jI(e.name,e.inputSchema);return UI.set(e,r),r}var LI=new WeakMap;function MI(e){let t=LI.get(e);if(t)return t;let r={catalog:Object.freeze(e.map(i=>({name:i.name,title:i.title??i.name,description:i.description,tags:i.tags??[]}))),byName:new Map(e.map(i=>[i.name,i]))};return LI.set(e,r),r}async function qI(e,t){try{return await e()}catch(r){if(!uc(r))return lc(r);let i=t.clientCapabilities();if(i&&!i.elicitation)return sU(r);if(t.era==="modern")return aU(r,t.inputRequired);throw r}}function aU(e,t){let r=Object.fromEntries(e.data.elicitations.map((i,n)=>[i.elicitationId||`elicitation_${n}`,t.elicitUrl({url:i.url,message:i.message})]));return t({inputRequests:r})}function sU(e){let t=e.data.elicitations.map(r=>r.message.includes(r.url)?`${r.message} Then run the tool again.`:`${r.message} Open this page, then run the tool again: ${r.url}`);return t.push("Reconnecting or signing in to Sokie again will not fix this; the credential has to be provided at that page."),{content:[{type:"text",text:t.join(" ")}],isError:!0,_meta:{...cc(e),errorClass:"POLICY_DENIED",retryable:!1,elicitationUndeliverable:!0,elicitationUrls:e.data.elicitations.map(r=>r.url)}}}function VI(e,t){return{era:t.era,inputRequired:er,clientCapabilities:()=>e.server.getClientCapabilities()}}function jm(e,t,r,i){let n=e.registerTool.bind(e),{title:o,annotations:a}=r;n(t,o?{...r,annotations:{title:o,...a}}:r,i)}async function ZI(e,t,r){e.call.tool=t;let i=await r();if(i.isError){e.call.isError=!0;let n=i._meta??{};typeof n.errorClass=="string"&&(e.call.errorClass=n.errorClass),typeof n.httpStatus=="number"&&(e.call.upstreamStatus=n.httpStatus)}return i}function FI(e,t,r,i,n,o){return ZI(r,i.name,async()=>{let a=km(t,r,i);if(a==="off")return Rm(t,r,i);if(a==="ask"){let s=VI(e,r);try{let c=await Hz(t,r,i,n,{era:s.era,clientCapabilities:s.clientCapabilities,...o?.mcpReq?.inputResponses?{inputResponses:o.mcpReq.inputResponses}:{}});if(c!=="run")return c}catch(c){if(uc(c))throw c;return lc(c)}}return qI(()=>AI(t,i,n,r),VI(e,r))})}function KI(e,t,r){for(let i of BS(t,r))jm(e,i.name,{title:i.title,description:i.description,inputSchema:DI(i),...i.annotations?{annotations:i.annotations}:{}},(n,o)=>FI(e,t,r,i,n,o))}var f_=(e,t=!1)=>({content:[{type:"text",text:e}],...t?{isError:t}:{}});function BI(e,t,r){let{catalog:i,byName:n}=MI(BS(t,r)),o=a=>f_(`Unknown tool "${a??""}". Use searchTools to find tool names.`,!0);jm(e,"searchTools",{title:"Search tools",description:"Find tools on this server by keyword. Returns names and summaries without input schemas; call getToolDefinition for a tool\'s schema, then useTool to run it.",inputSchema:xe.object({query:xe.string(),limit:xe.number().int().optional()})},async a=>{let{query:s="",limit:c=10}=a;return f_(JSON.stringify(Fo(i,s,c),null,2))}),jm(e,"getToolDefinition",{title:"Get tool definition",description:"The full definition (description and input schema) of one tool, by exact name. Find names with searchTools.",inputSchema:xe.object({name:xe.string()})},async a=>{let s=n.get(a.name??"");if(!s)return o(a.name);let{name:c,title:l,description:u,inputSchema:m}=s;return f_(JSON.stringify({name:c,title:l,description:u,inputSchema:m},null,2))}),jm(e,"useTool",{title:"Use tool",description:"Run a tool by exact name with its arguments. Get the argument shape from getToolDefinition first.",inputSchema:xe.object({name:xe.string(),arguments:xe.record(xe.string(),xe.unknown()).optional()})},async(a,s)=>{let{name:c,arguments:l}=a,u=n.get(c??""),m=u?null:t.bundle.tools.find(p=>p.name===c);return m?ZI(r,m.name,async()=>Rm(t,r,m)):u?FI(e,t,r,u,l??{},s):{...o(c),_meta:{error:`Unknown tool "${c??""}".`,errorClass:"BINDING_MISUSE",retryable:!1}}})}function JI(e,t){let r=e.registerPrompt.bind(e);for(let i of t){let n=Object.fromEntries(i.arguments.map(o=>[o.name,o.required?xe.string():xe.string().optional()]));r(i.name,{title:i.title,description:i.description,argsSchema:n},o=>({messages:[{role:"user",content:{type:"text",text:cU(i.template,o??{})}}]}))}}function cU(e,t){return e.replace(/\\{\\{\\s*([A-Za-z_][A-Za-z0-9_]*)\\s*\\}\\}/g,(r,i)=>{let n=t[i];return n==null?"":String(n)})}function HI(e,t){let r=e.registerResource.bind(e);for(let i of t){let{name:n,uri:o,title:a,description:s,mimeType:c,content:l}=i;r(n,o,{title:a,description:s,mimeType:c},async()=>({contents:[{uri:o,mimeType:c,text:l}]}))}}var lU=/^[A-Za-z][A-Za-z0-9_./-]{0,63}$/;async function YI(e){let t;try{t=await e.clone().json()}catch{return null}if(Array.isArray(t))return t.length>0?"batch":null;if(typeof t!="object"||t===null||!("method"in t))return null;let{method:r}=t;return typeof r=="string"&&lU.test(r)?r:null}var Yr="/.well-known/agent-skills/",Vs="/skills/",GI="x-sokie-read-skill";var WI="readSkill";function XI(e){return e.startsWith(Yr)||e.startsWith(Vs)}var uU=Uint32Array.from({length:256},(e,t)=>{let r=t;for(let i=0;i<8;i+=1)r=r&1?3988292384^r>>>1:r>>>1;return r>>>0});function dU(e){let t=4294967295;for(let r of e)t=(uU[(t^r)&255]??0)^t>>>8;return(t^4294967295)>>>0}function QI(e,t,{name:r,data:i,crc:n}){e.setUint16(t,20,!0),e.setUint16(t+2,2048,!0),e.setUint16(t+4,0,!0),e.setUint16(t+6,0,!0),e.setUint16(t+8,33,!0),e.setUint32(t+10,n,!0),e.setUint32(t+14,i.length,!0),e.setUint32(t+18,i.length,!0),e.setUint16(t+22,r.length,!0)}function h_(e){let t=new TextEncoder,r=0,i=e.map(({path:c,content:l})=>{let u=t.encode(c),m=t.encode(l),p={name:u,data:m,crc:dU(m),offset:r};return r+=30+u.length+m.length,p}),n=i.reduce((c,l)=>c+46+l.name.length,0),o=new Uint8Array(r+n+22),a=new DataView(o.buffer);for(let c of i)a.setUint32(c.offset,67324752,!0),QI(a,c.offset+4,c),o.set(c.name,c.offset+30),o.set(c.data,c.offset+30+c.name.length);let s=r;for(let c of i)a.setUint32(s,33639248,!0),a.setUint16(s+4,20,!0),QI(a,s+6,c),a.setUint32(s+42,c.offset,!0),o.set(c.name,s+46),s+=46+c.name.length;return a.setUint32(s,101010256,!0),a.setUint16(s+8,i.length,!0),a.setUint16(s+10,i.length,!0),a.setUint32(s+12,n,!0),a.setUint32(s+16,r,!0),o}var mU="https://schemas.agentskills.io/discovery/0.2.0/schema.json",pU="index.json",fU="marketplace.json",hU=new Set(["builtin","cargo","constructor","gh","github","inline","npm","pip","skills-dir","synced","uv"]),gU={"cache-control":"public, max-age=60","access-control-allow-origin":"*"},g_=e=>({"x-sokie-skill":e,"x-sokie-method":"skills/download"});async function tT(e){return[...new Uint8Array(await crypto.subtle.digest("SHA-256",e))].map(r=>r.toString(16).padStart(2,"0")).join("")}function Um(e,t,r,i={}){return new Response(e.method==="HEAD"?null:t,{headers:{...gU,"content-type":r,...i}})}function S_(e){let t=e.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t?hU.has(t)?`${t}-skills`:t:"server-skills"}function v_(e){return`${S_(e)}-plugin.zip`}function nT(e){return/^\\d+$/.test(e.version)?`1.0.${e.version}`:"1.0.0"}function rT(e,t){return t.files.map(({path:r,start:i,end:n})=>({path:r,content:e.slice(i,n)}))}function iT(e,t){return h_(rT(e,t))}function y_(e){return`The skills for ${e.name}, and the server they use.`}function oT(e,t,r){let i=S_(e),n={name:i,version:nT(e),description:y_(e)},o={mcpServers:{[i]:{type:"http",url:`${t}/mcp`}}};return h_([{path:".claude-plugin/plugin.json",content:`${JSON.stringify(n,null,2)}\n`},{path:".mcp.json",content:`${JSON.stringify(o,null,2)}\n`},...(e.skills??[]).flatMap(a=>rT(r,a).map(({path:s,content:c})=>({path:`skills/${a.frontmatter.name}/${s}`,content:c})))])}async function vU(e,t){let r=await Promise.all((e.skills??[]).map(async i=>{let{name:n,description:o}=i.frontmatter,[a,s]=i.files;return a&&!s?{name:n,type:"skill-md",description:o,url:`${Yr}${n}/SKILL.md`,digest:a.digest}:{name:n,type:"archive",description:o,url:`${Yr}${n}.zip`,digest:`sha256:${await tT(iT(await t(),i))}`}}));return{$schema:mU,skills:r}}async function yU(e,t,r){let i=S_(e);return{name:i,owner:{name:e.name},description:y_(e),plugins:[{name:i,description:y_(e),version:nT(e),source:{source:"archive",url:`${t}${Vs}${v_(e)}`,sha256:await tT(oT(e,t,await r()))}}]}}function eT(e,t){return e.skills?.find(r=>r.frontmatter.name===t)}async function aT(e,t,r){if(e.method!=="GET"&&e.method!=="HEAD")return new Response("Method not allowed",{status:405,headers:{allow:"GET, HEAD"}});let{pathname:i,origin:n}=new URL(e.url),o=async()=>(await r()).default,a=s=>Um(e,JSON.stringify(s),"application/json");if(i===`${Yr}${pU}`)return a(await vU(t,o));if(i===`${Vs}${fU}`)return a(await yU(t,n,o));if(i===`${Vs}${v_(t)}`)return Um(e,oT(t,n,await o()),"application/zip",{"content-disposition":`attachment; filename="${v_(t)}"`,...g_("*")});if(i.startsWith(Yr)){let s=i.slice(Yr.length),c=s.endsWith(".zip")?eT(t,s.slice(0,-4)):null;if(c)return Um(e,iT(await o(),c),"application/zip",g_(c.frontmatter.name));let l=s.endsWith("/SKILL.md")?eT(t,s.slice(0,-9)):null,u=l?.files[0];if(l&&u)return Um(e,(await o()).slice(u.start,u.end),"text/markdown",g_(l.frontmatter.name))}return new Response("Not found",{status:404})}var Gr="io.modelcontextprotocol/skills",Lm="skills/list",Dm="skills/get",Mm="resources/directory/read",__="inode/directory",qm=Object.freeze({files:512,bytes:16777216}),SU=/^sha256:[\\da-f]{64}$/,_U=d().regex(SU,\'digest must be "sha256:" followed by 64 lowercase hexadecimal characters\'),bU=K({uri:d(),digest:_U,size:x().int().nonnegative()}),$U=K({name:d(),description:d()}).refine(e=>Object.getPrototypeOf(e)===Object.prototype,\'frontmatter must not have a "__proto__" field\'),kU=L([b(bU),$("dynamic")]),Vm=K({uri:d(),frontmatter:$U,resources:kU,_meta:A(d(),B()).optional()}),RU=Q(["public","private"]),b_={ttlMs:x().int().nonnegative(),cacheScope:RU},w2=K({...jt.shape,skills:b(Vm),...b_}),sT=Ee.extend({uri:d()}),z2=K({..._e.shape,skill:Vm,...b_}),wU=K(Dr.shape),cT=Hn.extend({uri:d()}),I2=K({...jt.shape,resources:b(wU),...b_}),T2=K({directoryRead:U().optional()});var Km=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SkillCatalogError"})}static[Symbol.hasInstance](e){return _n(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SkillCatalogError.isInstance(value)`); for callbacks use `v => SkillCatalogError.isInstance(v)`");return _n(this,e)}problems;constructor(e){let t=e.map(r=>` ${r.path}: ${r.message}`).join(`\n`);super(`${e.length} skill problem${e.length===1?"":"s"}:\n${t}`),this.name="SkillCatalogError",this.problems=e,Rs(this,new.target)}};function wT(e){console.warn(`[mcp-sdk] skills: ${e.path}: ${e.message}`)}var zU=new TextEncoder;function zT(e){return zU.encode(e)}function z_(e){try{return new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e)}catch{return}}function IT(e){let t="";for(let i=0;i<e.length;i+=32768)t+=String.fromCodePoint(...e.subarray(i,i+32768));return btoa(t)}function IU(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.codePointAt(i);return r}async function I_(e){let{buffer:t,byteOffset:r,byteLength:i}=e,n=t instanceof ArrayBuffer?new Uint8Array(t,r,i):new Uint8Array(e),o=new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",n)),a="";for(let s of o)a+=s.toString(16).padStart(2,"0");return`sha256:${a}`}var le=class extends Error{line;constructor(e,t){super(t===void 0?e:`line ${t}: ${e}`),this.name="FrontmatterError",this.line=t}},lT=32;function TU(e){let t=e.replaceAll(`\\r\n`,`\n`);if(t.codePointAt(0)===65279&&(t=t.slice(1)),!t.startsWith(`---\n`))throw new le(\'SKILL.md must begin with a "---" line\',1);let r=t.slice(4),i=/^---[\\t ]*$/m.exec(r);if(i===null)throw new le(\'frontmatter has no closing "---" line\');let n=r.slice(i.index+i[0].length);return n.startsWith(`\n`)&&(n=n.slice(1)),{yaml:r.slice(0,i.index),body:n}}function xU(e){let{yaml:t,body:r}=TU(e);return{frontmatter:EU(t,2),body:r}}function EU(e,t=1){return new CU(PU(e,t)).parseDocument()}function PU(e,t){let r=e.split(`\n`);return r.at(-1)===""&&r.pop(),r.map((i,n)=>({no:t+n,indent:/^ */.exec(i)?.[0].length??0,text:Fs(i),raw:i}))}var Zm="tabs cannot be used for indentation",OU=e=>e.text===""||e.text.startsWith("#"),$_=e=>e.raw[e.indent]==="\t",rr=e=>/^-(?:[\\t ]|$)/.test(e),CU=class{index=0;constructor(e){this.lines=e}parseDocument(){let e=this.peek();if(e===void 0)return{};if(e.text.startsWith("\\uFEFF"))throw new le("a byte order mark inside the frontmatter is not supported",e.no);if(rr(e.text)||Fm(e.text,e.no)===void 0)throw new le("frontmatter must be a mapping of keys to values",e.no);let t=this.parseMapping(e.indent,0),r=this.peek();if(r!==void 0)throw new le("unexpected content",r.no);return t}peek(){for(;this.index<this.lines.length&&OU(this.lines[this.index]);)this.index++;let e=this.lines[this.index];if(e!==void 0&&$_(e))throw new le(Zm,e.no);return e}parseMapping(e,t){R_(t,this.lines[this.index]?.no);let r={};for(let i=this.peek();i!==void 0&&i.indent>=e;i=this.peek()){if(i.indent>e)throw new le("unexpected indentation",i.no);if(rr(i.text))break;let n=Fm(i.text,i.no);if(n===void 0)throw new le(\'expected "key: value"\',i.no);if(Object.hasOwn(r,n.key))throw new le(`duplicate key "${n.key}"`,i.no);this.index++,r[n.key]=this.parseValue(n.rest,i,e,t+1,!0)}return r}parseSequence(e,t){R_(t,this.lines[this.index]?.no);let r=[];for(let i=this.peek();i!==void 0&&i.indent>=e;i=this.peek()){if(i.indent>e)throw new le("unexpected indentation",i.no);if(!rr(i.text))break;let n=i.text.slice(1),o=Fs(n),a=i.indent+1+(n.length-o.length);if(o!==""&&!o.startsWith("#")&&(rr(o)||Fm(o,i.no)!==void 0)){if(/^ *\\t/.test(n))throw new le(Zm,i.no);this.lines[this.index]={...i,indent:a,text:o},r.push(rr(o)?this.parseSequence(a,t+1):this.parseMapping(a,t+1));continue}this.index++,r.push(this.parseValue(o,i,e,t+1,!1))}return r}parseValue(e,t,r,i,n){if(e===""||e.startsWith("#")){let a=this.peek();return a!==void 0&&a.indent>r?this.parseIndented(r,i):n&&a!==void 0&&a.indent===r&&rr(a.text)?this.parseSequence(r,i):null}let o=e[0];if(o==="|"||o===">")return this.parseBlockScalar(e,t,r);if(o===\'"\'||o==="\'"){let{value:a,end:s}=Jm(e,0,t.no);return mT(e.slice(s),t.no),a}if(o==="["||o==="{"){let{value:a,end:s}=ET(e,0,t.no,i);return mT(e.slice(s),t.no),a}if("&*!".includes(o))throw new le("anchors, aliases and tags are not supported",t.no);if("%@`,]}".includes(o))throw new le(`"${o}" cannot start a plain value; quote it`,t.no);if(rr(e)||/^\\?(?:[\\t ]|$)/.test(e))throw new le("a nested collection must start on its own line",t.no);return this.parsePlain(e,t,r)}parseIndented(e,t){let r=this.peek();return rr(r.text)?this.parseSequence(r.indent,t):Fm(r.text,r.no)!==void 0?this.parseMapping(r.indent,t):(this.index++,this.parseValue(r.text,r,e,t,!1))}parsePlain(e,t,r){let i=dT(e);uT(i,t.no);let n=w_.test(e),o=0;for(;this.index<this.lines.length;){let a=this.lines[this.index];if(a.text===""){o++,this.index++;continue}if(a.indent<=r||a.text.startsWith("#"))break;if($_(a))throw new le(Zm,a.no);if(n)throw new le("a comment ends a plain value; quote a value that continues past it",a.no);let s=dT(a.text);uT(s,a.no),n=w_.test(a.text),i+=o>0?`\n`.repeat(o):" ",i+=s,o=0,this.index++}return x_(i,t.no)}parseBlockScalar(e,t,r){let i=/^([>|])([+-]?)(?:[\\t ]+#.*)?[\\t ]*$/.exec(e);if(i===null)throw new le(/^[>|][+-]?\\d|^[>|]\\d/.test(e)?"block scalar indentation indicators are not supported":"invalid block scalar header",t.no);let n=[],o=-1,a=0;for(;this.index<this.lines.length;){let s=this.lines[this.index],c=s.indent===s.raw.length;if(o===-1&&!c&&s.indent>r&&(o=s.indent,a>o))throw new le("a leading blank line is indented more than the block scalar content",s.no);if(o!==-1&&s.indent>=o)n.push(s.raw.slice(o));else if(c)o===-1&&(a=Math.max(a,s.indent)),n.push("");else{if($_(s))throw new le(Zm,s.no);break}this.index++}return BU(n,i[1]===">",i[2]??"")}};function R_(e,t){if(e>lT)throw new le(`nesting deeper than ${lT} levels is not supported`,t)}function Fm(e,t){let r=e[0];if(r===\'"\'||r==="\'"){let{value:i,end:n}=Jm(e,0,t),o=e.slice(n);return o===":"||/^:[\\t ]/.test(o)?{key:T_(i,t),rest:Fs(o.slice(1))}:void 0}if(r==="?")throw new le(\'complex keys ("?") are not supported\',t);if(!(r===void 0||"[]{}&*!|>%@`#,".includes(r)))for(let i=0;i<e.length;i++){let n=e[i],o=e[i-1];if(n==="#"&&(o===" "||o==="\t"))return;if(n===":"){let a=e[i+1];if(a===void 0||a===" "||a==="\t"){let s=Bm(e.slice(0,i));return s===""?void 0:{key:TT(s,t),rest:Fs(e.slice(i+1))}}}}}function T_(e,t){if(e==="__proto__")throw new le(\'the key "__proto__" is not supported\',t);return e}function TT(e,t){if(typeof x_(e,t)!="string")throw new le(`key "${e}" must be a string; quote it`,t);return T_(e,t)}function uT(e,t){if(/:(?:[\\t ]|$)/.test(e))throw new le(\'a plain value cannot contain ": "; quote the value\',t)}var w_=/[\\t ]#/;function dT(e){let t=w_.exec(e);return Bm(t===null?e:e.slice(0,t.index))}function mT(e,t){if(!(Fs(e)===""||/^[\\t ]+#/.test(e)))throw new le("unexpected text after the value",t)}function Fs(e){return e.slice(ir(e,0))}function Bm(e){let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]==="\t");)t--;return e.slice(0,t)}var NU=/^(?:~|null|Null|NULL)$/,AU=/^(?:true|True|TRUE)$/,jU=/^(?:false|False|FALSE)$/,UU=/^[+-]?\\d+$/,LU=/^0o[0-7]+$/,DU=/^0x[\\dA-Fa-f]+$/,MU=/^[+-]?(?:\\.\\d+|\\d+(?:\\.\\d*)?)(?:[Ee][+-]?\\d+)?$/,qU=/^(?:[+-]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$/;function x_(e,t){if(e===""||NU.test(e))return null;if(AU.test(e))return!0;if(jU.test(e))return!1;let r;if(UU.test(e)||MU.test(e)?r=Number(e):LU.test(e)?r=Number.parseInt(e.slice(2),8):DU.test(e)?r=Number.parseInt(e.slice(2),16):qU.test(e)&&(r=NaN),r===void 0)return e;if(!Number.isFinite(r))throw new le(`"${e}" cannot be represented in JSON; quote it`,t);return r}var VU={0:"\\0",a:"\\x07",b:"\\b",t:"\t","\t":"\t",n:`\n`,v:"\\v",f:"\\f",r:"\\r",e:"\\x1B"," ":" ",\'"\':\'"\',"/":"/","\\\\":"\\\\",N:"\\x85",_:"\\xA0",L:"\\u2028",P:"\\u2029"},ZU={x:2,u:4,U:8},xT="a quoted value must close on the same line (multi-line quoted values are not supported)";function Jm(e,t,r){let i=e[t],n="",o=t+1;for(;o<e.length;){let a=e[o];if(i==="\'"){if(a==="\'"){if(e[o+1]==="\'"){n+="\'",o+=2;continue}return{value:n,end:o+1}}n+=a,o++;continue}if(a===\'"\')return{value:n,end:o+1};if(a==="\\\\"){let s=FU(e,o,r);n+=s.decoded,o+=s.length;continue}n+=a,o++}throw new le(xT,r)}function FU(e,t,r){let i=e[t+1];if(i===void 0)throw new le(xT,r);let n=VU[i];if(n!==void 0)return{decoded:n,length:2};let o=ZU[i];if(o===void 0)throw new le(`unknown escape "\\\\${i}"`,r);let a=e.slice(t+2,t+2+o);if(a.length!==o||!/^[\\dA-Fa-f]+$/.test(a)||Number.parseInt(a,16)>1114111)throw new le(`invalid escape "\\\\${i}${a}"`,r);return{decoded:String.fromCodePoint(Number.parseInt(a,16)),length:2+o}}function ir(e,t){let r=t;for(;e[r]===" "||e[r]==="\t";)r++;return r}var E_="a flow collection must close on the same line";function ET(e,t,r,i){R_(i,r);let n=e[t],o=n==="["?"]":"}",a=[],s={},c=ir(e,t+1);if(e[c]===o)return{value:n==="["?a:s,end:c+1};for(;;){if(n==="["){let u=pT(e,c,r,i);a.push(u.value),c=ir(e,u.end)}else{let u=KU(e,c,r),m=pT(e,u.end+1,r,i);if(Object.hasOwn(s,u.key))throw new le(`duplicate key "${u.key}"`,r);s[u.key]=m.value,c=ir(e,m.end)}let l=e[c];if(l===","){if(c=ir(e,c+1),e[c]===o)return{value:n==="["?a:s,end:c+1};continue}if(l===o)return{value:n==="["?a:s,end:c+1};throw l===void 0?new le(E_,r):new le(`unexpected "${l}" in a flow collection`,r)}}function KU(e,t,r){let i=ir(e,t),n=e[i];if(n===void 0)throw new le(E_,r);if(n===\'"\'||n==="\'"){let c=Jm(e,i,r),l=ir(e,c.end);if(e[l]!==":")throw new le(\'expected ": " after a key in a flow mapping\',r);return{key:T_(c.value,r),end:l}}if(n==="["||n==="{")throw new le("complex keys (flow collections as keys) are not supported",r);OT(e,i,r);let o=CT(e,i),a=Bm(e.slice(i,o)),s=e[o+1];if(a===""||e[o]!==":"||s!==" "&&s!=="\t")throw new le(\'expected "key: value" in a flow mapping\',r);return{key:TT(a,r),end:o}}var PT=" \t,[]{}";function OT(e,t,r){let i=e[t];if("&*!".includes(i))throw new le("anchors, aliases and tags are not supported",r);if("|>%@`#".includes(i)||"-?:".includes(i)&&PT.includes(e[t+1]??" "))throw new le(`"${i}" cannot start a plain value in a flow collection; quote it`,r)}function CT(e,t){let r=t;for(;r<e.length;){let i=e[r];if(",[]{}".includes(i)||i==="#"&&(e[r-1]===" "||e[r-1]==="\t")||i===":"&&PT.includes(e[r+1]??" "))break;r++}return r}function pT(e,t,r,i){let n=ir(e,t),o=e[n];if(o===void 0)throw new le(E_,r);if(o==="["||o==="{")return ET(e,n,r,i+1);if(o===\'"\'||o==="\'")return Jm(e,n,r);OT(e,n,r);let a=CT(e,n);if(e[a]===":")throw new le("mappings inside flow collections are not supported; quote the value",r);let s=Bm(e.slice(n,a));if(s==="")throw new le("empty value in a flow collection",r);return{value:x_(s,r),end:a}}function BU(e,t,r){let i="",n=0,o=!1,a=!1;for(let s of e){if(s===""){n++;continue}t?s.startsWith(" ")||s.startsWith("\t")?(a=!0,i+=`\n`.repeat(o?1+n:n)):a?(a=!1,i+=`\n`.repeat(n+1)):n===0?o&&(i+=" "):i+=`\n`.repeat(n):i+=`\n`.repeat(o?1+n:n),i+=s,o=!0,n=0}return r==="+"?i+=`\n`.repeat(o?1+n:n):r===""&&o&&(i+=`\n`),i}var JU=/[^\\w!$&\'()*+,.:;=@[\\]|~-]/gu;function P_(e){return e.replaceAll(JU,t=>encodeURIComponent(t))}function fT(e){return e==="."||e===".."?e.replaceAll(".","%2E"):P_(e)}function NT(e){let t=e.length;for(;t>0&&e.codePointAt(t-1)===47;)t--;return e.slice(0,t)}function O_(e,t){if(!e.endsWith("://"))return`${NT(e)}/${t.map(n=>fT(n)).join("/")}`;let[r,...i]=t;return r===void 0?e:[e+encodeURIComponent(r),...i.map(n=>fT(n))].join("/")}function Tt(e){try{return new URL(e).href}catch{return}}function HU(e){return Tt(e)===e}var YU="/SKILL.md";function GU(e){let t=Tt(e);if(t===void 0||!t.endsWith(YU))return;let r=t.slice(0,-9);return r.endsWith("/")?void 0:r}function AT(e){try{return decodeURIComponent(e)}catch{return e}}function hT(e){let t=new URL(e),r=t.pathname;return AT(r===""||r==="/"?t.host:r.slice(r.lastIndexOf("/")+1))}function WU(e,t){let r=Tt(t);return r===void 0||!r.startsWith(`${e}/`)?!1:r.slice(e.length+1).split("/").every(i=>{let n=AT(i);return n!==""&&n!=="."&&n!==".."&&!n.includes("/")&&!n.includes("\\0")})}function XU(e){try{return decodeURIComponent(e)}catch{return}}function QU(e){return e>=240?4:e>=224?3:e>=192?2:1}function eL(e){let t="";for(let r=0;r<e.length;){let i=3*QU(Number.parseInt(e.slice(r+1,r+3),16)),n=XU(e.slice(r,r+i));n===void 0?(t+=`%25${e.slice(r+1,r+3)}`,r+=3):(t+=P_(n),r+=i)}return t}var tL=/((?:%[\\dA-Fa-f]{2})+)/;function nL(e){return e.split(tL).map((t,r)=>r%2===0?P_(t):eL(t)).join("")}function rL(e,t){let r;try{r=new URL(t)}catch{return}r.hash="";let i=r.href;return i.includes("?")||!i.startsWith(`${e}/`)?i:`${e}/${i.slice(e.length+1).split("/").map(n=>nL(n)).join("/")}`}function Wr(e,t){return e<t?-1:e>t?1:0}var iL=/^[\\da-z]+(?:-[\\da-z]+)*$/,oL=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.values(e).every(t=>typeof t=="string");function gT(e){let t=0;for(let r=0;r<e.length;r+=e.codePointAt(r)>65535?2:1)t++;return t}function C_(e){let t=[],r=GU(e.uri);if(r===void 0)return[`uri "${e.uri}" must be a URI ending in /SKILL.md inside a named directory`];let i=e.frontmatter,{name:n,description:o}=e.frontmatter;n.length===0||n.length>64||!iL.test(n)?t.push(`frontmatter name "${n}" must be 1-64 lowercase letters, digits and single hyphens`):hT(r)!==n&&t.push(`frontmatter name "${n}" must match the last path segment "${hT(r)}"`),(o===""||gT(o)>1024)&&t.push("frontmatter description must be 1-1024 characters");let a=i.compatibility;if(a!==void 0&&(typeof a!="string"||a===""||gT(a)>500)&&t.push("frontmatter compatibility must be a string of 1-500 characters"),i.metadata!==void 0&&!oL(i.metadata)&&t.push("frontmatter metadata must map strings to strings"),e.resources!=="dynamic"){let s=Tt(e.uri),c=new Set,l=!1;for(let u of e.resources){let m=Tt(u.uri);if(m===void 0){t.push(`resource "${u.uri}" is not a valid URI`);continue}if(/[#?]/.test(m)){t.push(`resource "${u.uri}" must not have a query or fragment`);continue}let p=rL(r,m)??m;c.has(p)&&t.push(`resource "${u.uri}" is listed more than once`),c.add(p),m===s?l=!0:WU(r,u.uri)||t.push(`resource "${u.uri}" is outside the skill directory ${r}`)}l||t.push(`resources must include ${e.uri}`)}return t}function vT(e){let t=Vm.safeParse(e);return t.success?C_(t.data):t.error.issues.map(r=>`${r.path.join(".")||"(entry)"}: ${r.message}`)}async function jT(e,t){let r=t.find(s=>s.uri===e);if(r===void 0)return{problems:["SKILL.md is missing"]};let i=z_(r.bytes);if(i===void 0)return{problems:["SKILL.md is not valid UTF-8"]};let n;try{n=xU(i).frontmatter}catch(s){if(s instanceof le)return{problems:[`SKILL.md frontmatter: ${s.message}`]};throw s}if(typeof n.name!="string"||typeof n.description!="string")return{problems:[\'SKILL.md frontmatter must contain string "name" and "description"\']};let o=await Promise.all(t.map(async s=>({uri:s.uri,digest:await I_(s.bytes),size:s.bytes.byteLength})));o.sort((s,c)=>Wr(s.uri,c.uri));let a={uri:e,frontmatter:n,resources:o};return{skill:a,problems:C_(a)}}var yT={md:"text/markdown",markdown:"text/markdown",txt:"text/plain",json:"application/json",yaml:"application/yaml",yml:"application/yaml",py:"text/x-python",sh:"application/x-sh",bash:"application/x-sh",js:"text/javascript",mjs:"text/javascript",ts:"text/typescript",html:"text/html",css:"text/css",csv:"text/csv",xml:"application/xml",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",pdf:"application/pdf"};function aL(e){let t=e.lastIndexOf(".");if(t<=0)return"application/octet-stream";let r=e.slice(t+1).toLowerCase();return Object.hasOwn(yT,r)?yT[r]:"application/octet-stream"}var Ks=e=>e.slice(e.lastIndexOf("/")+1),Zs=e=>{let t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)},UT=e=>e instanceof Error?e.message:String(e),LT="symlinks and other special files are not followed; copy the file instead",k_=e=>e.kind!=="directory"&&Ks(e.path)==="SKILL.md";function DT(e,t,r){let i=e.get(t);i===void 0?e.set(t,[r]):i.push(r)}function sL(e,t){let r;try{r=e(t)}catch(i){if(i instanceof URIError)return;throw i}return HU(r)?r:void 0}async function cL(e){let t=[],r=async i=>{let n;try{n=await e.list(i)}catch(o){throw new Km([{path:i===""?".":i,message:`cannot be listed: ${UT(o)}`}])}for(let o of n.toSorted((a,s)=>Wr(a.name,s.name))){if(o.name.startsWith("."))continue;let a=i===""?o.name:`${i}/${o.name}`;t.push({path:a,kind:o.kind}),o.kind==="directory"&&await r(a)}};return await r(""),t}async function lL(e,t){try{return await e.read(t)}catch(r){throw new Km([{path:t,message:`cannot be read: ${UT(r)}`}])}}async function ST(e,t){let r=await cL(e),i=[],n=m=>{t.strict?i.push(m):t.warn(m)},o=m=>O_("skill://",[...t.prefix,...m.split("/")]);for(let m of r){let p=Ks(m.path);m.kind==="file"&&p!=="SKILL.md"&&p.toLowerCase()==="skill.md"&&t.warn({path:m.path,message:"did you mean SKILL.md? File names are case-sensitive"})}let a=new Set(r.filter(m=>k_(m)).map(m=>Zs(m.path))),s=new Map;for(let m of r){let p=!1;for(let f=Zs(m.path);f!=="";f=Zs(f))a.has(f)&&(p=!0,DT(s,f,m));!p&&m.kind==="unsupported"&&!k_(m)&&n({path:m.path,message:`${LT} (skipped)`})}let c=[],l=new Map,u=r.filter(m=>k_(m)).toSorted((m,p)=>p.path.split("/").length-m.path.split("/").length);for(let m of u){let p=Zs(m.path);if(p===""){n({path:m.path,message:"a SKILL.md at the root has no skill path; point loadSkills (or your adapter) at its parent folder (skipped)"});continue}let f=await uL(e,s.get(p)??[],p,o,t,n,l);f!==void 0&&c.push(f)}if(i.length>0)throw new Km(i);return c.length===0&&t.warn({path:".",message:"no skills found (a skill is a folder containing SKILL.md)"}),dL(c,r,o)}async function uL(e,t,r,i,n,o,a){let s=t.find(y=>y.kind==="unsupported");if(s!==void 0){o({path:s.path,message:`${LT} (skill skipped)`});return}let c=`${r}/SKILL.md`,l=[],u=[];for(let y of t){let R=sL(i,y.path);if(R===void 0){o({path:y.path,message:"this name cannot be represented in a URI (skill skipped)"});return}if(y.kind!=="file")continue;let w=y.path===c,E=w?void 0:a.get(y.path);if(E===void 0){let D=await lL(e,y.path);w&&l.push({uri:R,bytes:D}),E={digest:await I_(D),size:D.byteLength},a.set(y.path,E)}u.push({path:y.path,uri:R,...E,mimeType:aL(Ks(y.path))})}let m=await jT(i(c),l),p=u.map(({uri:y,digest:R,size:w})=>({uri:y,digest:R,size:w})).toSorted((y,R)=>Wr(y.uri,R.uri)),f=m.skill===void 0?void 0:{...m.skill,resources:p},h=f===void 0?m.problems:C_(f);if(f===void 0||h.length>0){for(let y of h)o({path:c,message:`${y} (skill skipped)`});return}let v=0;for(let y of u)v+=y.size;if(u.length>n.limits.files||v>n.limits.bytes){let y=n.strict?"Raise limits to allow it":"Set strict: true to fail instead, or raise limits";o({path:r,message:`${u.length} files / ${v} bytes exceeds the limit of ${n.limits.files} files / ${n.limits.bytes} bytes; some hosts may decline it. ${y}`})}return{dir:r,skill:f,files:u,manifestSize:u.find(y=>y.path===c)?.size??0,inside:t}}function MT(e){if(typeof e=="object"&&e!==null&&!Object.isFrozen(e)){Object.freeze(e);for(let t of Object.values(e))MT(t)}return e}function dL(e,t,r){let i=Object.freeze(e.map(l=>MT(l.skill)).toSorted((l,u)=>Wr(l.uri,u.uri))),n=new Map,o=new Set;for(let l of e){for(let u of l.files)n.set(u.uri,u);o.add(l.dir);for(let u of l.inside)u.kind==="directory"&&o.add(u.path)}let a=new Map;for(let l of t)DT(a,Zs(l.path),l);let s=new Map;for(let l of o){let u=[];for(let m of a.get(l)??[]){if(m.kind==="directory"){u.push({uri:r(m.path),name:Ks(m.path),mimeType:__});continue}let p=n.get(r(m.path));m.kind==="file"&&p!==void 0&&u.push({uri:p.uri,name:Ks(m.path),mimeType:p.mimeType,size:p.size})}u.sort((m,p)=>Wr(m.uri,p.uri)),s.set(r(l),u)}let c=e.map(l=>({uri:l.skill.uri,name:l.skill.frontmatter.name,description:l.skill.frontmatter.description,mimeType:"text/markdown",size:l.manifestSize})).toSorted((l,u)=>Wr(l.uri,u.uri));return{ordered:i,skills:new Map(i.map(l=>[l.uri,l])),files:n,dirs:s,listed:c}}var qT=new WeakSet,VT="after:";function mL(e){return IT(zT(VT+e)).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function pL(e){try{let t=e.replaceAll("-","+").replaceAll("_","/"),r=z_(IU(t+"=".repeat((4-t.length%4)%4)));return r?.startsWith(VT)?r.slice(6):void 0}catch{return}}function _T(e,t,r,i){let n=0;if(t!==void 0){let c=pL(t);if(c===void 0)throw new j(O.InvalidParams,"Invalid cursor");n=e.findIndex(l=>Wr(i(l),c)>0),n===-1&&(n=e.length)}let o=Math.min(e.length,n+r),a=e.slice(n,o),s=a.at(-1);return o<e.length&&s!==void 0?{items:a,nextCursor:mL(i(s))}:{items:a}}function fL(e){if(e===void 0)return 100;if(e===Number.POSITIVE_INFINITY||Number.isSafeInteger(e)&&e>0)return e;throw new RangeError(`pageSize must be a positive integer or Infinity (got ${e})`)}var hL=e=>e instanceof Error?e.message:String(e);function gL(e,t,r,i){let n={async list({cursor:o}){let a=_T(e.current.ordered,o,r,s=>s.uri);return a.nextCursor===void 0?{skills:a.items}:{skills:a.items,nextCursor:a.nextCursor}},async get(o){let a=Tt(o);return a===void 0?void 0:e.current.skills.get(a)},read:o=>vL(e.current,t,o,i),async readDirectory(o,{cursor:a}){let s=Tt(o),c=s===void 0?void 0:e.current.dirs.get(s);if(c===void 0)return;let l=_T(c,a,r,u=>u.uri);return l.nextCursor===void 0?{resources:l.items}:{resources:l.items,nextCursor:l.nextCursor}},async listResources(){return[...e.current.listed]}};return qT.add(n),n}async function vL(e,t,r,i){let n=Tt(r),o=n===void 0?void 0:e.files.get(n);if(o===void 0){if(n!==void 0&&e.dirs.has(n))throw new Fr(r,`${r} is a directory; use resources/directory/read`);return}let a;try{a=await t.read(o.path)}catch(c){throw i({path:o.path,message:`could not be read: ${hL(c)}`}),new j(O.InternalError,`${r} could not be read`)}if(a.byteLength!==o.size||await I_(a)!==o.digest)throw i({path:o.path,message:"changed since the catalog was loaded; call reload()"}),new j(O.InternalError,`${r} changed since the skills catalog was loaded`);let s=z_(a);return s===void 0?{bytes:a,mimeType:o.mimeType}:{text:s,mimeType:o.mimeType}}function ZT(e,t){let r=e.split("/").filter(i=>i!==""&&i!==".");if(r.length===0||r.includes(".."))throw new TypeError(`${t} must be a relative path without ".." (got ${JSON.stringify(e)})`);return r}var yL=/^[a-z][\\d+.a-z-]*:\\/\\//i;function bT(e){let t=e?.uri;return typeof t=="string"?t:"(entry without a uri)"}function SL(e,t){let r=t.mimeType===void 0?{}:{mimeType:t.mimeType};return"text"in t?{uri:e,...r,text:t.text}:{uri:e,...r,blob:IT(t.bytes)}}var $T=new WeakSet,FT=new WeakMap,_L="another skills extension is already attached to this server; attach one per server (to serve several folders or sources, combine them behind one SkillFiles adapter or SkillSource)",Hm=class{id=Gr;#e;#r;#n;#t;#o;#a;#i;#c=new WeakSet;static load(e,t){return KT.load(e,t)}constructor(e){e.cacheHint!==void 0&&Is(e.cacheHint,"skills cacheHint");let t=e.baseUri??"skill://",r=yL.test(t)?Tt(t):void 0;if(r===void 0)throw new TypeError(`baseUri must be a "scheme://\\u2026" URI (got ${JSON.stringify(t)})`);this.#n=r.endsWith("://")?r:`${NT(r)}/`,this.#e=e.source,this.#r=qT.has(e.source),this.#t=e.cacheHint,this.#o={ttlMs:e.cacheHint?.ttlMs??0,cacheScope:e.cacheHint?.cacheScope??"private"},this.#a=e.strict??!1,this.#i=e.onWarning??wT}attach(e){if(this.#c.has(e))return;if(e.isConnected())throw new Error("attach skills before connecting the server");if($T.has(e))throw new Error(_L);let t=e.server,r=this.#e.readDirectory!==void 0,i=this.#e.listResources===void 0?void 0:n=>this.#f(n);t.assertCanSetRequestHandler(Lm),t.assertCanSetRequestHandler(Dm),r&&t.assertCanSetRequestHandler(Mm),e.registerResource(Gr,new AS(`${this.#n}{+path}`,{list:i}),this.#t===void 0?{}:{cacheHint:this.#t},(n,o,a)=>this.#m(n,a)),t.setRequestHandler(Lm,{params:Hn},(n,o)=>this.#u(t,n.cursor,o)),t.setRequestHandler(Dm,{params:sT},(n,o)=>this.#d(t,n.uri,o)),r&&t.setRequestHandler(Mm,{params:cT},(n,o)=>this.#p(t,n.uri,n.cursor,o)),t.registerCapabilities({extensions:{[Gr]:r?{directoryRead:!0}:{}}}),this.#c.add(e),$T.add(e),FT.get(this)?.(e)}#s(e){return Lt(e.getNegotiatedProtocolVersion()??"")?{...this.#o}:{}}#l(e){if(this.#r)return[...e];let t=[];for(let r of e){let i=vT(r);if(i.length===0){t.push(r);continue}let n=`invalid skill entry from the source: ${i.join("; ")}`;if(this.#a)throw new j(O.InternalError,`${bT(r)}: ${n}`);this.#i({path:bT(r),message:`${n} (dropped from skills/list)`})}return t}async#u(e,t,r){let i=await this.#e.list(t===void 0?{}:{cursor:t},r);return{skills:this.#l(i.skills),...i.nextCursor===void 0?{}:{nextCursor:i.nextCursor},...this.#s(e)}}async#d(e,t,r){let i=await this.#e.get(t,r);if(i===void 0)throw new j(O.InvalidParams,`No skill is served at ${t}`);if(!this.#r){let n=vT(i);if(n.length>0){let o=`invalid skill entry from the source: ${n.join("; ")}`;throw this.#i({path:t,message:o}),new j(O.InternalError,o)}}if(Tt(i.uri)!==Tt(t))throw new j(O.InternalError,`the skill source returned ${i.uri} for ${t}`);return{skill:i,...this.#s(e)}}async#m(e,t){let r=await this.#e.read(e.href,t);if(r===void 0)throw new Fr(e.href);return{contents:[SL(e.href,r)]}}async#p(e,t,r,i){let n=await this.#e.readDirectory(t,r===void 0?{}:{cursor:r},i);if(n===void 0)throw new j(O.InvalidParams,`${t} is not a directory resource`);return{resources:n.resources,...n.nextCursor===void 0?{}:{nextCursor:n.nextCursor},...this.#s(e)}}async#f(e){let t=await this.#e.listResources(e),r=[];for(let i of t)Tt(i.uri)?.startsWith(this.#n)?r.push(i):this.#i({path:i.uri,message:`listResources returned a URI outside ${this.#n}; dropped from resources/list`});return{resources:r}}},kT=1024;function bL(e){let t={files:e?.files??qm.files,bytes:e?.bytes??qm.bytes};for(let[r,i]of Object.entries(t))if(i!==Number.POSITIVE_INFINITY&&!(Number.isSafeInteger(i)&&i>0))throw new RangeError(`limits.${r} must be a positive integer or Infinity (got ${i})`);return t}function RT(e){return JSON.stringify(e.listed.map(t=>[t.uri,t.name,t.description]))}function $L(e,t){let r=i=>JSON.stringify(e.skills.get(i))===JSON.stringify(t.skills.get(i));return{added:[...t.skills.keys()].filter(i=>!e.skills.has(i)),removed:[...e.skills.keys()].filter(i=>!t.skills.has(i)),changed:[...t.skills.keys()].filter(i=>e.skills.has(i)&&!r(i))}}var KT=class BT extends Hm{#e;#r;#n;#t=new Set;#o=kT;#a=Promise.resolve();constructor(t){super(t.sourceOptions),this.#e=t.state,this.#r=t.files,this.#n=t.build,FT.set(this,r=>this.#i(r))}static async load(t,r={}){let i=fL(r.pageSize),n={prefix:r.prefix===void 0?[]:ZT(r.prefix,"prefix"),limits:bL(r.limits),strict:r.strict??!1,warn:r.onWarning??wT},o={current:await ST(t,n)};return new BT({state:o,files:t,build:n,sourceOptions:{source:gL(o,t,i,n.warn),baseUri:n.prefix.length===0?"skill://":O_("skill://",n.prefix),cacheHint:r.cacheHint,strict:r.strict,onWarning:n.warn}})}get entries(){return this.#e.current.ordered}reload(){let t=this.#a.then(()=>this.#c());return this.#a=t.then(()=>{},()=>{}),t}#i(t){if(typeof WeakRef=="function"){if(this.#t.size>=this.#o){for(let r of this.#t)r.deref()===void 0&&this.#t.delete(r);this.#o=Math.max(kT,2*this.#t.size)}this.#t.add(new WeakRef(t))}}async#c(){let t=this.#e.current,r=await ST(this.#r,this.#n);this.#e.current=r;let i=RT(t)!==RT(r);return i&&this.#s(),{...$L(t,r),listChanged:i}}#s(){for(let t of this.#t){let r=t.deref();if(r===void 0){this.#t.delete(t);continue}if(!r.isConnected())continue;let i=r.server.transport?.sessionId;try{Promise.resolve(r.server.sendResourceListChanged()).catch(n=>this.#l(i,n))}catch(n){this.#l(i,n)}}}#l(t,r){let i=t===void 0?"":` to session ${t}`,n=r instanceof Error?r.message:String(r);try{this.#n.warn({path:"resources/list_changed",message:`could not be sent${i}: ${n}`})}catch{}}};var kL=20,JT=300,RL=100,wL="io.modelcontextprotocol/clientCapabilities",N_=(e,t)=>`skill://${e}/${t}`,HT=new WeakMap;function YT(e){let t=HT.get(e);if(t)return t;let r=e.map(o=>{let{name:a}=o.frontmatter;return{uri:N_(a,"SKILL.md"),frontmatter:o.frontmatter,resources:o.files.map(({path:s,digest:c,size:l})=>({uri:N_(a,s),digest:c,size:l}))}}),i=new Map(e.flatMap(o=>o.files.map(a=>[N_(o.frontmatter.name,a.path),{skill:o.frontmatter.name,file:a}]))),n={entries:r,byUri:new Map(r.map(o=>[o.uri,o])),files:i,byName:new Map(e.map(o=>[o.frontmatter.name,o])),catalog:e.map(({frontmatter:o})=>({name:o.name,title:o.name,description:o.description,tags:[]}))};return HT.set(e,n),n}function zL(e){return e.endsWith(".md")?"text/markdown":e.endsWith(".json")?"application/json":"text/plain"}async function j_(e,t){let{default:r}=await e();return r.slice(t.start,t.end)}function IL(e,t,r){return{async list({cursor:i}){let n=Number(i??0);if(!Number.isInteger(n)||n<0)return{skills:[]};let o=n+RL;return{skills:e.entries.slice(n,o),...o<e.entries.length?{nextCursor:String(o)}:{}}},async get(i){return e.byUri.get(i)},async read(i){let n=e.files.get(i);if(n)return r(n.skill),{text:await j_(t,n.file),mimeType:zL(n.file.path)}}}}function GT(e,t,r,i,n){let o=IL(YT(t.bundle.skills??[]),i,a=>{r.call.skill=a});new Hm({source:o,cacheHint:n}).attach(e)}async function WT(e){try{return(await e.clone().json())?.params?._meta?.[wL]?.extensions?.[Gr]!==void 0}catch{return!1}}function XT(e){let t="This server has skills: instructions for whole jobs. Before a job that one fits, read it with readSkill.";if(e.length>kL)return`${t} Find one with readSkill and search.`;let r=e.map(({frontmatter:{name:i,description:n}})=>{let o=n.length>JT?`${n.slice(0,JT)}...`:n;return`- ${i}: ${o}`});return`${t}\n\n${r.join(`\n`)}`}var ho=e=>({content:[{type:"text",text:e}]});function A_(e){return{...ho(e),isError:!0,_meta:{error:e,errorClass:"BINDING_MISUSE",retryable:!1}}}function TL(e,t){let r=Fo(e.catalog,t);return r.length===0?ho(`No skill matches "${t}".`):ho(r.map(({name:i,description:n})=>`${i}: ${n}`).join(`\n`))}async function xL(e,t){let[r,...i]=e.files;if(!r)return A_(`${e.frontmatter.name} has no files.`);let n=await j_(t,r);if(i.length===0)return ho(n);let o=i.map(({path:a})=>a).join(", ");return ho(`${n}\n\nMore files in this skill, read with readSkill and file: ${o}`)}function QT(e,t,r,i){let n=YT(t.bundle.skills??[]);e.registerTool(WI,{title:"Read skill",description:"Read the instructions for a whole job on this server before you start it. Pass name for one skill, with file for one of its other files, or search to find skills that fit.",inputSchema:xe.object({name:xe.string().optional(),file:xe.string().optional(),search:xe.string().optional()}),annotations:{title:"Read skill",readOnlyHint:!0,idempotentHint:!0,openWorldHint:!1}},async({name:o,file:a,search:s})=>{if(o===void 0)return TL(n,s??"");let c=n.byName.get(o);if(!c)return A_(`No skill named ${o}. Find one with readSkill and search.`);if(r.call.skill=o,a===void 0)return await xL(c,i);let l=c.files.find(u=>u.path===a);return l?ho(await j_(i,l)):A_(`${o} has no file ${a}.`)})}function rx(e){return{ttlMs:6e4,cacheScope:e.accessMode==="public"?"public":"private"}}function PL(e){let t=rx(e);return{"tools/list":t,"prompts/list":t,"resources/list":t,"resources/templates/list":t,"resources/read":t,"server/discover":t}}function ex(e,t,r){let i=r&&!r.noReadSkill?XT(e.bundle.skills??[]):null,n=new po({name:e.bundle.name,version:e.bundle.version},{cacheHints:PL(e),...i?{instructions:i}:{}});return e.bundle.discovery==="search"?BI(n,e,t):KI(n,e,t),e.bundle.prompts.length>0&&JI(n,e.bundle.prompts),e.bundle.resources.length>0&&HI(n,e.bundle.resources),r&&(GT(n,e,t,r.load,rx(e)),r.noReadSkill||QT(n,e,t,r.load)),n}async function OL(e,t,r,i){if(await Tz(e)){let o=ex(t,{...r,era:"legacy"},i),a=new MS({sessionIdGenerator:void 0,enableJsonResponse:!0});return await o.connect(a),await a.handleRequest(e)}return await xz(o=>ex(t,{...r,era:o.era},i),{legacy:"reject",responseMode:"json"}).fetch(e)}var CL="Send one JSON-RPC message per request: batches aren\'t supported.";function NL(){return Response.json({jsonrpc:"2.0",id:null,error:{code:-32600,message:CL}},{status:400})}function AL(e){let t=e==="GET"?"This MCP endpoint is stateless and offers no server-initiated stream. Send JSON-RPC requests with POST.":"This MCP endpoint is stateless and issues no session to end.";return Response.json({jsonrpc:"2.0",id:null,error:{code:-32e3,message:t}},{status:405,headers:{allow:"POST"}})}function ix(e,t){let r=t.SOKIE_COMMIT?.trim(),i=t.SOKIE_DEPLOYMENT_ID?.trim();return{runtime:Bo,version:e.version,...r?{commit:r}:{},...i?{deployment:i}:{}}}function tx(e,t,r){let i=new URL(e.url).origin,n=jz(FS(t));return Response.json({status:"ok",message:`This is an MCP server. Connect an MCP client to ${i}/mcp.`,authentication:{required:n.protected,summary:n.summary},...ix(r,t),endpoints:{health:`${i}/health`,mcp:`${i}/mcp`}})}var U_=/^[\\x21-\\x7e]{1,128}$/;function nx(e,t,r){let i=t.projection.applied&&t.projection.preBytes>0,n=t.call.tool!==null&&U_.test(t.call.tool)?t.call.tool:null,o=t.call.skill&&U_.test(t.call.skill)?t.call.skill:null;if(!i&&n===null&&o===null&&r===null)return e;let a=new Headers(e.headers);if(r!==null&&a.set("x-sokie-method",r),o!==null&&a.set("x-sokie-skill",o),i&&(a.set("x-sokie-projection-pre-bytes",String(t.projection.preBytes)),a.set("x-sokie-projection-post-bytes",String(t.projection.postBytes))),n!==null){a.set("x-sokie-tool",n),t.call.ask&&a.set("x-sokie-ask",t.call.ask),t.call.isError&&a.set("x-sokie-tool-error","1");let{errorClass:s,upstreamStatus:c}=t.call;t.call.isError&&s!==null&&U_.test(s)&&a.set("x-sokie-tool-error-class",s),t.call.isError&&c!==null&&Number.isInteger(c)&&a.set("x-sokie-upstream-status",String(c))}return new Response(e.body,{status:e.status,statusText:e.statusText,headers:a})}function jL(e,t){let r=e.headers.get(Xm)?.trim()??null,i=Ko(r);return i?{policy:i,policyText:r}:{policy:t.policy,policyText:t.policyText}}function UL(e,t){async function r(i,n){let{pathname:o}=new URL(i.url);if(o==="/health")return Response.json({status:"ok",...ix(e,n)});if(o==="/")return tx(i,n,e);if(t&&XI(o))return await aT(i,e,t);if(o!=="/mcp")return new Response("Not found",{status:404});if(i.method==="GET"&&(i.headers.get("accept")??"").includes("text/html"))return tx(i,n,e);let a=Mz(e,n),s=await Uz(i,a);if(s.response)return s.response;if(i.method==="GET"||i.method==="DELETE")return AL(i.method);let c=qz({userId:s.userId,runtimeToken:s.token,clientName:s.clientName,connection:s.connection,clientUrl:s.clientUrl,readOnly:s.readOnly,...jL(i,a)}),l=await YI(i);if(l==="batch")return NL();let u=await Zz(i,a,c);if(u)return c.call={...c.call,tool:u.tool,isError:!0,errorClass:"POLICY_DENIED"},nx(u.response,c,l);let m=t&&(e.skills??[]).length>0?{load:t,noReadSkill:i.headers.get(GI)==="off"||await WT(i)}:null;return nx(await OL(i,a,c,m),c,l)}return{handleRequest:r,bundle:e}}function LL(e){return{fetch:(t,r)=>e.handleRequest(t,r)}}export{Xm as POLICY_HEADER,Bo as RUNTIME_VERSION,Yt as ToolInputError,Pt as UpstreamHttpError,Nz as audienceMatches,qS as bearerToken,cc as classifyToolError,UL as defineServer,Qm as effectiveLevel,dc as levelOf,Ko as parsePolicy,Cz as previousKeyInWindow,Fo as searchCatalog,px as serializePolicy,LL as toWorkerHandler,VS as verifyRuntimeToken};\n';
68270
+ var RUNTIME_MODULE = 'var cx=Object.defineProperty;var un=(e,t)=>{for(var r in t)cx(e,r,{get:t[r],enumerable:!0})};var V_=e=>e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),Z_=e=>[e.name,e.title,e.description,e.tags.join(" ")].join(" "),q_=new WeakMap;function lx(e){let t=q_.get(e);if(t)return t;let r=e.map(a=>V_(Z_(a))),i=new Map;for(let a of r)for(let s of new Set(a))i.set(s,(i.get(s)??0)+1);let n=r.reduce((a,s)=>a+s.length,0),o={docs:r,frequency:i,averageLength:r.length>0?n/r.length:0};return q_.set(e,o),o}function ux(e,t,r){let i=e.docs[t]??[];if(i.length===0)return 0;let n=new Map;for(let s of i)n.set(s,(n.get(s)??0)+1);let o=e.averageLength||1,a=0;for(let s of r){let c=n.get(s);if(!c)continue;let l=e.frequency.get(s)??0,u=Math.log(1+(e.docs.length-l+.5)/(l+.5));a+=u*(c*(1.5+1)/(c+1.5*(1-.75+.75*i.length/o)))}return a}function dx(e,t){let r=e.name.toLowerCase(),i=e.title.toLowerCase();return r===t||i===t?2:r.startsWith(t)||i.startsWith(t)?1:0}var Xm=(e,t)=>({name:e.name,title:e.title,description:e.description,score:t});function Bo(e,t,r=10){let i=Math.max(1,Math.min(Math.floor(r)||10,100)),n=t.trim();if(!n)return e.slice(0,i).map(l=>Xm(l,0));let o=lx(e),a=V_(n),s=n.toLowerCase(),c=e.map((l,u)=>({entry:l,match:dx(l,s),score:ux(o,u,a)})).filter(l=>l.match>0||l.score>0).sort((l,u)=>u.match-l.match||u.score-l.score).slice(0,i).map(l=>Xm(l.entry,Number(l.score.toFixed(4))));return c.length>0?c:e.filter(l=>Z_(l).toLowerCase().includes(s)).slice(0,i).map(l=>Xm(l,1))}var mx=new Set([408,429,500,502,503,504]),Pt=class extends Error{status;retryable;retryAfterSeconds;constructor(t,r,i=null){super(t),this.name="UpstreamHttpError",this.status=r,this.retryable=mx.has(r),this.retryAfterSeconds=i}},Yt=class extends Error{issues;constructor(t,r){super(`Invalid input for ${t}: ${r.join("; ")}`),this.name="ToolInputError",this.issues=r}};function dc(e){return e instanceof Pt?{error:e.message,errorClass:"UPSTREAM",httpStatus:e.status,retryable:e.retryable,...e.retryAfterSeconds!==null?{retryAfterSeconds:e.retryAfterSeconds}:{}}:e instanceof Yt?{error:e.message,errorClass:"BINDING_MISUSE",retryable:!1}:{error:e instanceof Error?e.message:"Tool execution failed.",errorClass:"INTERNAL",retryable:!1}}function mc(e){let t=dc(e);return{content:[{type:"text",text:t.error}],isError:!0,_meta:{...t}}}function pc(e){if(typeof e!="object"||e===null)return!1;let{code:t,data:r}=e;return t===-32042&&Array.isArray(r?.elicitations)}var px=["read","write","delete","external_effect"];var ep="x-sokie-policy";function F_(e,t){return e&&Object.hasOwn(e,t)?e[t]??null:null}function fc(e,t){return F_(e.tools,t.name)??F_(e.areas,t.area)??e.kinds[t.effect]}function tp(e,t,r){if(r.readOnly&&t.effect!=="read")return"off";let i=e?fc(e,t):"allow";return i==="ask"&&r.publicServer?"off":i}var fx=e=>e==="allow"||e==="ask"||e==="off";function Qm(e){if(e===void 0)return{};if(typeof e!="object"||e===null||Array.isArray(e))return null;let t=Object.create(null);for(let[r,i]of Object.entries(e)){if(!fx(i))return null;t[r]=i}return t}function Jo(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null||Array.isArray(t))return null;let r=t,i=Qm(r.kinds);if(!i||!px.every(a=>Object.hasOwn(i,a)))return null;let n=Qm(r.areas),o=Qm(r.tools);return!n||!o?null:{kinds:{read:i.read,write:i.write,delete:i.delete,external_effect:i.external_effect},...Object.keys(n).length>0?{areas:n}:{},...Object.keys(o).length>0?{tools:o}:{}}}function hx(e){let t=r=>r&&Object.keys(r).length>0?Object.fromEntries(Object.keys(r).sort().map(i=>[i,r[i]])):void 0;return JSON.stringify({kinds:{read:e.kinds.read,write:e.kinds.write,delete:e.kinds.delete,external_effect:e.kinds.external_effect},areas:t(e.areas),tools:t(e.tools)})}var Ho="0.4.9";var gx=Object.create,hc=Object.defineProperty,vx=Object.getOwnPropertyDescriptor,yx=Object.getOwnPropertyNames,Sx=Object.getPrototypeOf,_x=Object.prototype.hasOwnProperty,K_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),B_=(e,t)=>{let r={};for(var i in e)hc(r,i,{get:e[i],enumerable:!0});return t&&hc(r,Symbol.toStringTag,{value:"Module"}),r},bx=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=yx(t),o=0,a=n.length,s;o<a;o++)s=n[o],!_x.call(e,s)&&s!==r&&hc(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(i=vx(t,s))||i.enumerable});return e},J_=(e,t,r)=>(r=e!=null?gx(Sx(e)):{},bx(t||!e||!e.__esModule?hc(r,"default",{value:e,enumerable:!0}):r,e));var $x=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),H_=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),kx=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),Rx=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]);function Y_(e){return typeof e=="string"&&H_.has(e.replace(/#$/,""))}function G_(e,t){if(!("$schema"in e)||typeof e.$schema!="string")return"2020-12";let r=e.$schema.replace(/#$/,"");if($x.has(r))return"2020-12";if(H_.has(r))return"2019-09";if(kx.has(r)||Rx.has(r))return"draft-7";throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}var xe={};un(xe,{$brand:()=>fp,$input:()=>qh,$output:()=>Mh,INVALID:()=>et,NEVER:()=>oa,TimePrecision:()=>Qh,ZodAny:()=>jv,ZodArray:()=>Mv,ZodBase64:()=>du,ZodBase64URL:()=>mu,ZodBigInt:()=>Hi,ZodBigIntFormat:()=>hu,ZodBoolean:()=>Ji,ZodCIDRv4:()=>lu,ZodCIDRv6:()=>uu,ZodCUID:()=>nu,ZodCUID2:()=>ru,ZodCatch:()=>oy,ZodCodec:()=>Za,ZodCompileAsyncError:()=>Ct,ZodCompileUnsupportedError:()=>me,ZodCreditCard:()=>Pv,ZodCustom:()=>Fa,ZodCustomStringFormat:()=>Pr,ZodDate:()=>La,ZodDefault:()=>Qv,ZodDiscriminatedUnion:()=>Vv,ZodE164:()=>pu,ZodEmail:()=>Wl,ZodEmoji:()=>eu,ZodEnum:()=>Zi,ZodError:()=>ZO,ZodExactOptional:()=>Su,ZodFile:()=>Yv,ZodFirstPartyTypeKind:()=>yy,ZodFunction:()=>fy,ZodGUID:()=>Ql,ZodIBAN:()=>Ov,ZodIPv4:()=>su,ZodIPv6:()=>cu,ZodISODate:()=>Dn,ZodISODateTime:()=>Ln,ZodISODuration:()=>qn,ZodISOTime:()=>Mn,ZodInstanceOf:()=>vy,ZodIntersection:()=>Zv,ZodIssueCode:()=>Sy,ZodJWT:()=>fu,ZodKSUID:()=>au,ZodLazy:()=>my,ZodLiteral:()=>Hv,ZodMAC:()=>Ev,ZodMap:()=>Bv,ZodNaN:()=>sy,ZodNanoID:()=>tu,ZodNever:()=>Lv,ZodNonOptional:()=>_u,ZodNull:()=>Av,ZodNullable:()=>Xv,ZodNumber:()=>Bi,ZodNumberFormat:()=>Or,ZodObject:()=>Da,ZodOptional:()=>qa,ZodPipe:()=>Va,ZodPrefault:()=>ty,ZodPreprocess:()=>cy,ZodPromise:()=>py,ZodReadonly:()=>ly,ZodRealError:()=>ut,ZodRecord:()=>Vi,ZodSet:()=>Jv,ZodString:()=>Fi,ZodStringFormat:()=>ge,ZodSuccess:()=>iy,ZodSymbol:()=>Cv,ZodTemplateLiteral:()=>dy,ZodTransform:()=>Gv,ZodTuple:()=>Fv,ZodType:()=>ue,ZodULID:()=>iu,ZodURL:()=>Ua,ZodUUID:()=>Qt,ZodUndefined:()=>Nv,ZodUnion:()=>Ma,ZodUnknown:()=>Uv,ZodVoid:()=>Dv,ZodXID:()=>ou,ZodXor:()=>qv,_ZodString:()=>Gl,_default:()=>ey,_function:()=>kR,any:()=>gu,array:()=>b,base64:()=>Dk,base64url:()=>Mk,bigint:()=>eR,boolean:()=>U,catch:()=>ay,check:()=>RR,cidrv4:()=>Uk,cidrv6:()=>Lk,clone:()=>pe,codec:()=>SR,coerce:()=>Ja,compile:()=>Kh,config:()=>ke,core:()=>hn,creditCard:()=>Vk,cuid:()=>xk,cuid2:()=>Ek,currencyCode:()=>Hk,custom:()=>wR,date:()=>aR,decode:()=>kv,decodeAsync:()=>wv,deepPartial:()=>UR,describe:()=>zR,discriminatedUnion:()=>Vn,e164:()=>qk,email:()=>Xl,emoji:()=>Ik,encode:()=>$v,encodeAsync:()=>Rv,endsWith:()=>Pi,enum:()=>Q,exactOptional:()=>Wv,file:()=>hR,flattenError:()=>aa,float32:()=>Gk,float64:()=>Wk,formatError:()=>sa,fromJSONSchema:()=>AR,function:()=>kR,getDiscriminatedOption:()=>fh,getErrorMap:()=>JO,globalRegistry:()=>Le,gt:()=>Wt,gte:()=>vt,guid:()=>bk,hash:()=>Yk,hex:()=>Jk,hostname:()=>Bk,httpUrl:()=>zk,iban:()=>Zk,includes:()=>xi,input:()=>DR,instanceof:()=>TR,int:()=>Hl,int32:()=>Xk,int64:()=>tR,intersection:()=>At,invertCodec:()=>_R,ipv4:()=>Nk,ipv6:()=>jk,iso:()=>wt,json:()=>ER,jwt:()=>Fk,keyof:()=>sR,ksuid:()=>Ck,lazy:()=>Zn,length:()=>Ir,literal:()=>$,locales:()=>Ia,looseObject:()=>K,looseRecord:()=>dR,lowercase:()=>Ii,lt:()=>Gt,lte:()=>gt,mac:()=>Ak,map:()=>mR,maxLength:()=>zr,maxSize:()=>Nn,memoizer:()=>wa,meta:()=>IR,mime:()=>Ci,minLength:()=>fn,minSize:()=>Xt,multipleOf:()=>Cn,nan:()=>yR,nanoid:()=>Tk,nativeEnum:()=>fR,negative:()=>Ll,never:()=>vu,nonnegative:()=>Ml,nonoptional:()=>ry,nonpositive:()=>Dl,normalize:()=>Ni,null:()=>en,nullable:()=>ja,nullish:()=>gR,number:()=>x,object:()=>g,optional:()=>J,output:()=>MR,overwrite:()=>Nt,parse:()=>Sv,parseAsync:()=>_v,partialRecord:()=>uR,pipe:()=>Yl,positive:()=>Ul,prefault:()=>ny,preprocess:()=>gn,prettifyError:()=>Sp,promise:()=>$R,properties:()=>Oi,property:()=>ql,readonly:()=>uy,record:()=>A,refine:()=>hy,regex:()=>zi,regexes:()=>Rt,registry:()=>ml,safeDecode:()=>Iv,safeDecodeAsync:()=>xv,safeEncode:()=>zv,safeEncodeAsync:()=>Tv,safeParse:()=>Aa,safeParseAsync:()=>bv,set:()=>pR,setErrorMap:()=>BO,size:()=>wr,slugify:()=>Li,startsWith:()=>Ei,strictObject:()=>cR,string:()=>d,stringFormat:()=>Kk,stringbool:()=>xR,success:()=>vR,superRefine:()=>gy,symbol:()=>rR,templateLiteral:()=>bR,toJSONSchema:()=>xr,toLowerCase:()=>ji,toUpperCase:()=>Ui,toZod:()=>Yo,transform:()=>yu,treeifyError:()=>yp,trim:()=>Ai,tuple:()=>Kv,uint32:()=>Qk,uint64:()=>nR,ulid:()=>Pk,undefined:()=>iR,union:()=>L,unknown:()=>B,uppercase:()=>Ti,url:()=>Ki,util:()=>z,uuid:()=>$k,uuidv4:()=>kk,uuidv6:()=>Rk,uuidv7:()=>wk,validate:()=>ca,validateAsync:()=>la,void:()=>oR,withParser:()=>pl,xid:()=>Ok,xor:()=>lR});var hn={};un(hn,{$ZodAny:()=>oh,$ZodArray:()=>dh,$ZodAsyncError:()=>ct,$ZodBase64:()=>Jf,$ZodBase64URL:()=>Hf,$ZodBigInt:()=>Xc,$ZodBigIntFormat:()=>th,$ZodBoolean:()=>Sa,$ZodCIDRv4:()=>Kf,$ZodCIDRv6:()=>Bf,$ZodCUID:()=>Cf,$ZodCUID2:()=>Nf,$ZodCatch:()=>Eh,$ZodCheck:()=>ve,$ZodCheckBigIntFormat:()=>af,$ZodCheckEndsWith:()=>yf,$ZodCheckGreaterThan:()=>jc,$ZodCheckIncludes:()=>gf,$ZodCheckLengthEquals:()=>mf,$ZodCheckLessThan:()=>Ac,$ZodCheckLowerCase:()=>ff,$ZodCheckMaxLength:()=>uf,$ZodCheckMaxSize:()=>sf,$ZodCheckMimeType:()=>bf,$ZodCheckMinLength:()=>df,$ZodCheckMinSize:()=>cf,$ZodCheckMultipleOf:()=>rf,$ZodCheckNumberFormat:()=>of,$ZodCheckOverwrite:()=>$f,$ZodCheckProperties:()=>_f,$ZodCheckProperty:()=>Sf,$ZodCheckRegex:()=>pf,$ZodCheckSizeEquals:()=>lf,$ZodCheckStartsWith:()=>vf,$ZodCheckStringFormat:()=>bi,$ZodCheckUpperCase:()=>hf,$ZodCodec:()=>ba,$ZodCreditCard:()=>Gf,$ZodCustom:()=>Uh,$ZodCustomStringFormat:()=>Qf,$ZodCyclicError:()=>ol,$ZodDate:()=>lh,$ZodDefault:()=>zh,$ZodDiscriminatedUnion:()=>hh,$ZodE164:()=>Yf,$ZodEmail:()=>If,$ZodEmoji:()=>Pf,$ZodEncodeError:()=>Pn,$ZodEnum:()=>_h,$ZodError:()=>vp,$ZodExactOptional:()=>Rh,$ZodFile:()=>$h,$ZodFunction:()=>Ah,$ZodGUID:()=>wf,$ZodIBAN:()=>Wf,$ZodIPv4:()=>Vf,$ZodIPv6:()=>Zf,$ZodISODate:()=>Df,$ZodISODateTime:()=>Lf,$ZodISODuration:()=>qf,$ZodISOTime:()=>Mf,$ZodIntersection:()=>gh,$ZodJWT:()=>Xf,$ZodKSUID:()=>Uf,$ZodLazy:()=>$a,$ZodLiteral:()=>bh,$ZodMAC:()=>Ff,$ZodMap:()=>yh,$ZodNaN:()=>Ph,$ZodNanoID:()=>Of,$ZodNever:()=>sh,$ZodNonOptional:()=>Th,$ZodNull:()=>ih,$ZodNullable:()=>wh,$ZodNumber:()=>Wc,$ZodNumberFormat:()=>eh,$ZodObject:()=>Pb,$ZodObjectJIT:()=>mh,$ZodOptional:()=>el,$ZodPipe:()=>tl,$ZodPrefault:()=>Ih,$ZodPreprocess:()=>Oh,$ZodPromise:()=>jh,$ZodReadonly:()=>Ch,$ZodRealError:()=>lt,$ZodRecord:()=>vh,$ZodRegistry:()=>dl,$ZodSet:()=>Sh,$ZodString:()=>br,$ZodStringFormat:()=>fe,$ZodSuccess:()=>xh,$ZodSymbol:()=>nh,$ZodTemplateLiteral:()=>Nh,$ZodTransform:()=>kh,$ZodTuple:()=>Qc,$ZodType:()=>oe,$ZodULID:()=>Af,$ZodURL:()=>Ef,$ZodUUID:()=>zf,$ZodUndefined:()=>rh,$ZodUnion:()=>_a,$ZodUnknown:()=>ah,$ZodVoid:()=>ch,$ZodXID:()=>jf,$ZodXor:()=>ph,$brand:()=>fp,$constructor:()=>S,$input:()=>qh,$output:()=>Mh,Doc:()=>_r,INVALID:()=>et,JSONSchema:()=>yk,JSONSchemaGenerator:()=>Kl,NEVER:()=>oa,TimePrecision:()=>Qh,URL_BAD_FORMAT:()=>Tf,URL_UNPARSEABLE:()=>fa,ZodCompileAsyncError:()=>Ct,ZodCompileUnsupportedError:()=>me,_any:()=>gg,_array:()=>kg,_base64:()=>Cl,_base64url:()=>Nl,_bigint:()=>lg,_boolean:()=>sg,_catch:()=>PO,_check:()=>nk,_cidrv4:()=>Pl,_cidrv6:()=>Ol,_coercedBigint:()=>ug,_coercedBoolean:()=>cg,_coercedDate:()=>bg,_coercedNumber:()=>tg,_coercedString:()=>Yh,_creditCard:()=>Wh,_cuid:()=>Rl,_cuid2:()=>wl,_custom:()=>wg,_date:()=>_g,_decode:()=>Rc,_decodeAsync:()=>zc,_default:()=>TO,_discriminatedUnion:()=>gO,_e164:()=>Al,_email:()=>gl,_emoji:()=>$l,_encode:()=>kc,_encodeAsync:()=>wc,_endsWith:()=>Pi,_enum:()=>$O,_file:()=>Rg,_float32:()=>rg,_float64:()=>ig,_gt:()=>Wt,_gte:()=>vt,_guid:()=>vl,_iban:()=>Xh,_includes:()=>xi,_int:()=>ng,_int32:()=>og,_int64:()=>dg,_intersection:()=>vO,_ipv4:()=>xl,_ipv6:()=>El,_isoDate:()=>Ea,_isoDateTime:()=>xa,_isoDuration:()=>Oa,_isoTime:()=>Pa,_jwt:()=>jl,_ksuid:()=>Tl,_lazy:()=>AO,_length:()=>Ir,_literal:()=>RO,_lowercase:()=>Ii,_lt:()=>Gt,_lte:()=>gt,_mac:()=>Gh,_map:()=>_O,_max:()=>gt,_maxLength:()=>zr,_maxSize:()=>Nn,_mime:()=>Ci,_min:()=>vt,_minLength:()=>fn,_minSize:()=>Xt,_multipleOf:()=>Cn,_nan:()=>$g,_nanoid:()=>kl,_nativeEnum:()=>kO,_negative:()=>Ll,_never:()=>yg,_nonnegative:()=>Ml,_nonoptional:()=>xO,_nonpositive:()=>Dl,_normalize:()=>Ni,_null:()=>hg,_nullable:()=>IO,_number:()=>eg,_optional:()=>zO,_overwrite:()=>Nt,_parse:()=>vi,_parseAsync:()=>yi,_pipe:()=>OO,_positive:()=>Ul,_promise:()=>jO,_properties:()=>Oi,_property:()=>ql,_readonly:()=>CO,_record:()=>SO,_refine:()=>zg,_regex:()=>zi,_safeDecode:()=>Tc,_safeDecodeAsync:()=>Ec,_safeEncode:()=>Ic,_safeEncodeAsync:()=>xc,_safeParse:()=>Si,_safeParseAsync:()=>_i,_set:()=>bO,_size:()=>wr,_slugify:()=>Li,_startsWith:()=>Ei,_string:()=>Hh,_stringFormat:()=>Tr,_stringbool:()=>Eg,_success:()=>EO,_superRefine:()=>Ig,_symbol:()=>pg,_templateLiteral:()=>NO,_toLowerCase:()=>ji,_toUpperCase:()=>Ui,_transform:()=>wO,_trim:()=>Ai,_tuple:()=>yO,_uint32:()=>ag,_uint64:()=>mg,_ulid:()=>zl,_undefined:()=>fg,_union:()=>fO,_unknown:()=>vg,_uppercase:()=>Ti,_url:()=>Ta,_uuid:()=>yl,_uuidv4:()=>Sl,_uuidv6:()=>_l,_uuidv7:()=>bl,_void:()=>Sg,_xid:()=>Il,_xor:()=>hO,base64Charset:()=>Bc,base64urlCharset:()=>ya,canParseURL:()=>xf,clone:()=>pe,compile:()=>Kh,compileFn:()=>fl,config:()=>ke,createStandardJSONSchemaMethod:()=>Di,createToJSONSchemaMethod:()=>Og,decode:()=>hE,decodeAsync:()=>vE,describe:()=>Tg,encode:()=>fE,encodeAsync:()=>gE,extractDefs:()=>jn,finalize:()=>Un,flattenError:()=>aa,formatError:()=>sa,getDiscriminatedOption:()=>fh,globalConfig:()=>Ne,globalRegistry:()=>Le,handleUnrepresentable:()=>Oe,initializeContext:()=>An,isBackEdge:()=>sl,isRecursiveSchema:()=>al,isValidBase64:()=>va,isValidBase64URL:()=>Jc,isValidCIDRv6:()=>Kc,isValidCreditCard:()=>Hc,isValidIBAN:()=>Yc,isValidIPv6:()=>ga,isValidJWT:()=>Gc,locales:()=>Ia,memoizer:()=>wa,mergeValues:()=>$i,meta:()=>xg,parse:()=>bc,parseAsync:()=>$c,parseURLObject:()=>Tb,prettifyError:()=>Sp,process:()=>he,processSchema:()=>he,regexes:()=>Rt,registry:()=>ml,safeDecode:()=>SE,safeDecodeAsync:()=>bE,safeEncode:()=>yE,safeEncodeAsync:()=>_E,safeParse:()=>lE,safeParseAsync:()=>uE,standardProps:()=>qc,stripTabAndNewline:()=>ha,toDotPath:()=>sb,toJSONSchema:()=>xr,toZod:()=>Yo,treeifyError:()=>yp,urlHostnameOk:()=>Zc,urlProtocolOk:()=>Fc,util:()=>z,validate:()=>ca,validateAsync:()=>la,validateURL:()=>Vc,version:()=>kf,withParser:()=>pl});var z={};un(z,{BIGINT_FORMAT_RANGES:()=>ea,CONSTANT_CATCH:()=>Sc,Class:()=>ip,NUMBER_FORMAT_RANGES:()=>Qo,aborted:()=>Qe,allowsEval:()=>sp,assert:()=>xx,assertEqual:()=>wx,assertIs:()=>Ix,assertNever:()=>Tx,assertNotEqual:()=>zx,assignProp:()=>Ue,attachSchema:()=>ta,base64ToUint8Array:()=>tb,base64urlToUint8Array:()=>Hx,cached:()=>pi,captureStackTrace:()=>vc,cleanEnum:()=>Jx,cleanRegex:()=>mn,clone:()=>pe,cloneDef:()=>Ox,codePointLength:()=>yr,constantCatch:()=>mp,createTransparentProxy:()=>Lx,defineLazy:()=>op,defineLazyInternal:()=>de,derived:()=>Xx,esc:()=>Xe,escapeRegex:()=>kt,explicitlyAborted:()=>up,extend:()=>qx,finalizeIssue:()=>st,floatSafeRemainder:()=>Go,getElementAtPath:()=>Cx,getEnumValues:()=>di,getLengthableOrigin:()=>ra,getParsedType:()=>Ux,getSizableOrigin:()=>na,hexToUint8Array:()=>Gx,hide:()=>ia,installLazyProp:()=>nE,isObject:()=>vr,isPlainObject:()=>$t,issue:()=>gi,joinValues:()=>_,jsonStringifyReplacer:()=>mi,members:()=>dp,merge:()=>Zx,mergeDefs:()=>Ot,normalizeParams:()=>C,nullish:()=>gc,numKeys:()=>jx,objectClone:()=>Ex,omit:()=>Mx,optionalKeys:()=>lp,own:()=>En,parsedType:()=>T,partial:()=>Fx,pick:()=>Dx,prefixIssues:()=>at,primitiveTypes:()=>cp,promiseAllObject:()=>Nx,propertyKeyTypes:()=>Xo,randomString:()=>Ax,rawShape:()=>fi,required:()=>Kx,safeExtend:()=>Vx,shallowClone:()=>Wo,sizeCaps:()=>hi,slugify:()=>ap,stringifyPrimitive:()=>I,toZod:()=>Yo,uint8ArrayToBase64:()=>nb,uint8ArrayToBase64url:()=>Yx,uint8ArrayToHex:()=>Wx,unwrapMessage:()=>ui});function wx(e){return e}function zx(e){return e}function Yo(){return e=>e}function Ix(e){}function Tx(e){throw new Error("Unexpected value in exhaustive check")}function xx(e){}function di(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=>I(r)).join(t)}function mi(e,t){return typeof t=="bigint"?t.toString():t}var rp=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function pi(e){return new rp(e)}function gc(e){return e==null}function mn(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Go(e,t){let r=e/t,i=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var W_=Symbol("evaluating");function op(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==W_)return i===void 0&&(i=W_,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Ex(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ue(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function fi(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function dn(e){return fi(e._zod.def)??e._zod.def.shape}function X_(e,t,r){Object.defineProperty(e,t,{get(){let i=r();return Ue(this,t,i),i},enumerable:!0,configurable:!0})}function Q_(e,t,r){t in e?Ue(e,t,r):e[t]=r}function gr(e,t,r,i){let n=dn(t);for(let o of r){let a=Object.getOwnPropertyDescriptor(n,o);a.enumerable&&(a.get?X_(e,o,()=>{let s=t._zod.def.shape[o];return i?i(s,o):s}):Q_(e,o,i?i(a.value,o):a.value))}}function Px(e,t){for(let r of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,r);i.enumerable&&(i.get?X_(e,r,()=>t[r]):Q_(e,r,i.value))}}function Ot(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function Ox(e){return Ot(e._zod.def)}function Cx(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function Nx(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 Ax(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Xe(e){return JSON.stringify(e)}function ap(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,"").replace(/[\\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var vc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var sp=pi(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function $t(e){if(vr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(vr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Wo(e){return $t(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function jx(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Ux=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}`)}},Xo=new Set(["string","number","symbol"]),cp=new Set(["string","number","bigint","boolean","symbol","undefined"]);function kt(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function pe(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 Lx(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 I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function lp(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Qo={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]},ea={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Dx(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={};return gr(o,e,yc(e,t)),pe(e,Ot(r,{shape:o,checks:[]}))}function yc(e,t){let r=dn(e),i=[];for(let n of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw new Error(`Unrecognized key: "${String(n)}"`);t[n]&&i.push(n)}return i}function Mx(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=new Set(yc(e,t)),a={};return gr(a,e,Reflect.ownKeys(dn(e)).filter(s=>!o.has(s))),pe(e,Ot(r,{shape:a,checks:[]}))}function qx(e,t){if(!$t(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let n=dn(e);for(let o of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return pe(e,Ot(e._zod.def,{shape:eb(e,t)}))}function eb(e,t){let r={};return gr(r,e,Reflect.ownKeys(dn(e))),Px(r,t),r}function Vx(e,t){if(!$t(t))throw new Error("Invalid input to safeExtend: expected a plain object");return pe(e,Ot(e._zod.def,{shape:eb(e,t)}))}function Zx(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};gr(r,e,Reflect.ownKeys(dn(e))),gr(r,t,Reflect.ownKeys(dn(t)));let i=Ot(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return pe(e,i)}function Fx(e,t,r,i="partial"){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let s=r?new Set(yc(t,r)):void 0,c={};return gr(c,t,Reflect.ownKeys(dn(t)),e&&((l,u)=>s&&!s.has(u)?l:new e({type:"optional",innerType:l}))),pe(t,Ot(t._zod.def,{shape:c,checks:[]}))}function Kx(e,t,r){let i=r?new Set(yc(t,r)):void 0,n={};return gr(n,t,Reflect.ownKeys(dn(t)),(o,a)=>i&&!i.has(a)?o:new e({type:"nonoptional",innerType:o})),pe(t,Ot(t._zod.def,{shape:n}))}function Qe(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function up(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function at(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function ui(e){return typeof e=="string"?e:e?.message}function hi(e){let t=[];for(let r of e??[]){let i=r._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let n=i.maximum??i.length??i.size;n>=0&&t.push([n,r])}return t}function ta(e,t,r){var i;for(let n=t;n<e.length;n++)(i=e[n]).schema??(i.schema=r)}function st(e,t,r){var i;let n=e.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:ui(e.inst?._zod.def?.error?.(e))??ui(o?.(e))??ui(t?.error?.(e))??ui(r.customError?.(e))??ui(r.localeError?.(e))??"Invalid input",s={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(s[c]=e[c]);return s.path??(s.path=[]),s.message=a,t?.reportInput&&(s.input=e.input),s}function na(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Bx=/[\\uD800-\\uDBFF]/;function yr(e){let t=e.length;if(!Bx.test(e))return t;let r=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(r--,i++);return r}function ra(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function T(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 gi(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function Jx(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function tb(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 nb(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Hx(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return tb(t+r)}function Yx(e){return nb(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function Gx(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 Wx(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ip=class{constructor(...t){}};function dp(e,t){for(let r in t){let i=Object.getOwnPropertyDescriptor(t,r);i.get?Object.defineProperty(e,r,{...i,enumerable:!1}):Qx(e,r,i.value)}}function En(e,t,r,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function ia(e,t,r){return En(e,t,r,!1)}function Xx(e,t){for(let r in e){let i=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return En(this,r,i(this))},set(n){En(this,r,n)}})}return t}function Qx(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:En(this,t,r.bind(this))},set(i){En(this,t,i)}})}function eE(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var np,xn=!1,tE={configurable:!0,get(){xn=!0}};function de(e,t,r){let i=Object.getPrototypeOf(e._zod);if(t in i&&np!==e._zod){np=void 0;return}np=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,tE);let n=xn;xn=!1;try{let o=r(this);return xn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),xn=xn||n,o}catch(o){throw delete this[t],xn=xn||n,o}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function nE(e,t,r,i){let n=eE(e,t);n&&Object.defineProperty(n,t,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,o),o.value=r(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:o})}})}var Sc="~constantCatch";function mp(e){let t=()=>e;return t[Sc]=!0,t}var rb,oa=Object.freeze({status:"aborted"}),pp={value:void 0,enumerable:!1},ib="captureStackTrace"in Error?Error:null;function rE(e){let t=ib;if(t){let r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return ib=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function S(e,t,r,i){let n={};function o(p){this.def=p,this.constr=m,this.traits=new Set}o.prototype=n;let a=r,s=a&&new WeakSet;function c(p,f){if(p._zod){if(p._zod.traits.has(e))return}else{pp.value=new o(f);try{Object.defineProperty(p,"_zod",pp)}finally{pp.value=void 0}}if(p._zod.traits.add(e),t(p,f),s){let v=Object.getPrototypeOf(p),y=p._zod.constr.prototype,R=v;for(;R&&R!==y;)R=Object.getPrototypeOf(R);let w=R??v;s.has(w)||(s.add(w),dp(w,a))}let h=m.prototype;for(let v in h)Object.prototype.hasOwnProperty.call(h,v)&&(v in p||(p[v]=h[v].bind(p)))}let l=i?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function m(p){let f=i?.Parent?rE(u):this;c(f,p);let h=f._zod.deferred;if(h){for(let y of h)y();f._zod.deferred=void 0}let v=globalThis.__zod_globalConfig?.postProcessor;return v&&v(f),f}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:p=>i?.Parent&&p instanceof i.Parent?!0:p?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var fp=Symbol("zod_brand"),ct=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(rb=globalThis).__zod_globalConfig??(rb.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ke(e){return e&&Object.assign(Ne,e),Ne}function iE(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,mi,2)),e.message}function oE(e){this._zod.message=e}var aE={get:iE,set:oE,enumerable:!0,configurable:!0},gp={value:void 0,enumerable:!1},ob=new WeakSet([Object.prototype,Error.prototype]),ab=(e,t)=>{e.name="$ZodError",gp.value=t,Object.defineProperty(e,"issues",gp),gp.value=void 0,Object.defineProperty(e,"message",aE);let r=Object.getPrototypeOf(e);ob.has(r)||(ob.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},vp=S("$ZodError",ab),lt=S("$ZodError",ab,void 0,{Parent:Error});function sE(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[t]=r()),e[t]}function aa(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?sE(r,n.path[0],()=>[]).push(t(n)):i.push(t(n));return{formErrors:i,fieldErrors:r}}function sa(e,t=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let c=r,l=0;for(;l<s.length;){let u=s[l],m=l===s.length-1;if(u==="_errors"){m&&c._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(c,u)||Object.defineProperty(c,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let p=c[u];m&&p._errors.push(t(a)),c=p,l++}}}};return i(e),r}function yp(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>i({issues:c},[...o,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...o,...s.path]);else{let c=[...o,...s.path];if(c.length===0){r.errors.push(t(s));continue}let l=r,u=0;for(;u<c.length;){let m=c[u],p=u===c.length-1;typeof m=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,m)||Object.defineProperty(l.properties,m,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[m]):(l.items??(l.items=[]),(a=l.items)[m]??(a[m]={errors:[]}),l=l.items[m]),p&&l.errors.push(t(s)),u++}}};return i(e),r}function sb(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 Sp(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 ${sb(i.path)}`);return t.join(`\n`)}function _c(e,t){return{callee:t?.callee??e,Err:t?.Err}}var vi=e=>{let t=(r,i,n,o)=>{let a=n?{...n,async:!1}:{async:!1},s=r._zod.run({value:i,issues:[]},a);if(s instanceof Promise)throw new ct;if(s.issues.length){let c=new(o?.Err??e)(s.issues.map(l=>st(l,a,ke())));throw vc(c,o?.callee??t),c}return s.value};return t},bc=vi(lt),yi=e=>{let t=async(r,i,n,o)=>{let a=n?{...n,async:!0}:{async:!0},s=r._zod.run({value:i,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let c=new(o?.Err??e)(s.issues.map(l=>st(l,a,ke())));throw vc(c,o?.callee??t),c}return s.value};return t},$c=yi(lt),Si=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new ct;return o.issues.length?cb(e,o.issues,n):{success:!0,data:o.value}},lE=Si(lt);function cb(e,t,r){let i;return{success:!1,get error(){return i||(i=new e(t.map(n=>st(n,r,ke()))),t=void 0,r=void 0),i},set error(n){i=n,t=void 0,r=void 0}}}var _i=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?cb(e,o.issues,n):{success:!0,data:o.value}},uE=_i(lt),dE=Symbol.for("zod.compile.invalid"),mE=Symbol.for("zod.compile.fallback"),ca=((e,t,r)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==dE)return!0;if(i.definite===!0&&r===void 0)return!1}return pE(e,t,r)});function pE(e,t,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,o;if(n?(i[mE]=!0,o=n({value:t,issues:[]},i)):o=e._zod.run({value:t,issues:[]},i),o instanceof Promise)throw new ct;return o.issues.length===0}var la=async(e,t,r)=>{let i=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=e._zod.run({value:t,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length===0},kc=e=>{let t=vi(e),r=(i,n,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return t(i,n,s,_c(r,a))};return r},fE=kc(lt),Rc=e=>{let t=vi(e),r=(i,n,o,a)=>t(i,n,o,_c(r,a));return r},hE=Rc(lt),wc=e=>{let t=yi(e),r=async(i,n,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return await t(i,n,s,_c(r,a))};return r},gE=wc(lt),zc=e=>{let t=yi(e),r=async(i,n,o,a)=>await t(i,n,o,_c(r,a));return r},vE=zc(lt),Ic=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Si(e)(t,r,n)},yE=Ic(lt),Tc=e=>(t,r,i)=>Si(e)(t,r,i),SE=Tc(lt),xc=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return _i(e)(t,r,n)},_E=xc(lt),Ec=e=>async(t,r,i)=>_i(e)(t,r,i),bE=Ec(lt);var Rt={};un(Rt,{anyString:()=>Bp,base64:()=>Up,base64url:()=>Lp,bigint:()=>Hp,boolean:()=>Yp,browserEmail:()=>xE,cidrv4:()=>Ap,cidrv6:()=>jp,creditCard:()=>Pc,cuid:()=>bp,cuid2:()=>$p,currencyCode:()=>Vp,date:()=>Zp,datetime:()=>Kp,domain:()=>Mp,duration:()=>Tp,e164:()=>qp,email:()=>Ep,emoji:()=>Pp,extendedDuration:()=>$E,guid:()=>xp,hex:()=>ef,hostname:()=>Dp,html5Email:()=>zE,httpProtocol:()=>ua,iban:()=>Oc,idnEmail:()=>TE,integer:()=>da,ipv4:()=>Op,ipv6:()=>Cp,ksuid:()=>wp,lowercase:()=>Xp,mac:()=>Np,md5_base64:()=>CE,md5_base64url:()=>NE,md5_hex:()=>OE,nanoid:()=>zp,nanoidOfLength:()=>Ip,null:()=>Gp,number:()=>pn,rfc5322Email:()=>IE,sha1_base64:()=>jE,sha1_base64url:()=>UE,sha1_hex:()=>AE,sha256_base64:()=>DE,sha256_base64url:()=>ME,sha256_hex:()=>LE,sha384_base64:()=>VE,sha384_base64url:()=>ZE,sha384_hex:()=>qE,sha512_base64:()=>KE,sha512_base64url:()=>BE,sha512_hex:()=>FE,string:()=>Jp,time:()=>Fp,ulid:()=>kp,undefined:()=>Wp,unicodeEmail:()=>lb,uppercase:()=>Qp,uuid:()=>Sr,uuid4:()=>kE,uuid6:()=>RE,uuid7:()=>wE,xid:()=>Rp});var bp=/^[cC][0-9a-z]{6,}$/,$p=/^[0-9a-z]+$/,kp=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Rp=/^[0-9a-vA-V]{20}$/,wp=/^[A-Za-z0-9]{27}$/,zp=/^[a-zA-Z0-9_-]{21}$/;function Ip(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Tp=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,$E=/^[-+]?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)?)??$/,xp=/^([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})$/,Sr=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)$/,kE=Sr(4),RE=Sr(6),wE=Sr(7),Ep=/^(?:[A-Za-z0-9_\'+\\-]+\\.)*[A-Za-z0-9_\'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,zE=/^[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])?)*$/,IE=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,lb=/^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u,TE=lb,xE=/^[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])?)*$/,EE="^(?=[\\\\s\\\\S]*[\\\\p{Extended_Pictographic}\\\\p{Regional_Indicator}\\\\u20E3])[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$";function Pp(){return new RegExp(EE,"u")}var Op=/^(?:(?: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])$/,Cp=/^(([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}|:))$/,Np=e=>{let t=kt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ap=/^((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])$/,jp=/^(([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}|:))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Up=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lp=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Dp=/^(?=.{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])?)*\\.?$/,Mp=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$/,ua=/^https?$/,qp=/^\\+[1-9]\\d{6,14}$/,Pc=/^\\d(?:[ -]?\\d){11,18}$/,Vp=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,Oc=/^[A-Z]{2}(?!00|01|99)\\d{2}[A-Z0-9]{11,30}$/,ub="(?:(?:\\\\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])))";function PE(e){return new RegExp(`^${e}$`)}var Zp=PE(ub);function _p(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}}`:e.seconds?`${t}:[0-5]\\\\d(?:\\\\.\\\\d+)?`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function Fp(e){return new RegExp(`^${_p(e)}$`)}function Kp(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");let r=`${_p({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${r}|${_p({precision:e.precision})}`:r;return new RegExp(`^${ub}T(?:${i})$`)}var Bp=/^[\\s\\S]{0,}$/,Jp=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${t}$`)},Hp=/^-?\\d+n?$/,da=/^-?\\d+$/,pn=/^-?\\d+(?:\\.\\d+)?$/,Yp=/^(?:true|false)$/i,Gp=/^null$/i;var Wp=/^undefined$/i;var Xp=/^[^A-Z]*$/,Qp=/^[^a-z]*$/,ef=/^[0-9a-fA-F]*$/;function ma(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function pa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var OE=/^[0-9a-fA-F]{32}$/,CE=ma(22,"=="),NE=pa(22),AE=/^[0-9a-fA-F]{40}$/,jE=ma(27,"="),UE=pa(27),LE=/^[0-9a-fA-F]{64}$/,DE=ma(43,"="),ME=pa(43),qE=/^[0-9a-fA-F]{96}$/,VE=ma(64,""),ZE=pa(64),FE=/^[0-9a-fA-F]{128}$/,KE=ma(86,"=="),BE=pa(86);var ve=S("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),tf=e=>{let t=e.value;return!gc(t)&&t.size!==void 0},nf=e=>{let t=e.value;return!gc(t)&&t.length!==void 0},Cc={number:"number",bigint:"bigint",object:"date"},Ac=S("$ZodCheckLessThan",(e,t)=>{ve.init(e,t);let r=Cc[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:Cc[typeof i.value]??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})}}),jc=S("$ZodCheckGreaterThan",(e,t)=>{ve.init(e,t);let r=Cc[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:Cc[typeof i.value]??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})}}),rf=S("$ZodCheckMultipleOf",(e,t)=>{ve.init(e,t),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"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):Go(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})}}),of=S("$ZodCheckNumberFormat",(e,t)=>{ve.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Qo[t.format];e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,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:!0,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:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),af=S("$ZodCheckBigIntFormat",(e,t)=>{ve.init(e,t);let[r,i]=ea[t.format];e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),sf=S("$ZodCheckMaxSize",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=tf),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:na(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),cf=S("$ZodCheckMinSize",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=tf),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:na(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lf=S("$ZodCheckSizeEquals",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=tf),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:na(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),uf=S("$ZodCheckMaxLength",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=nf),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>t.maximum?yr(n):o)<=t.maximum)return;let s=ra(n);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),df=S("$ZodCheckMinLength",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=nf),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>=t.minimum&&o<t.minimum*2?yr(n):o)>=t.minimum)return;let s=ra(n);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),mf=S("$ZodCheckLengthEquals",(e,t)=>{var r;ve.init(e,t),(r=e._zod.def).when??(r.when=nf),e._zod.check=i=>{let n=i.value,o=n.length,a=typeof n=="string"&&o>=t.length&&o<=t.length*2?yr(n):o;if(a===t.length)return;let s=ra(n),c=a>t.length;i.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),bi=S("$ZodCheckStringFormat",(e,t)=>{var r,i;ve.init(e,t),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=()=>{})}),pf=S("$ZodCheckRegex",(e,t)=>{bi.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})}}),ff=S("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Xp),bi.init(e,t)}),hf=S("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Qp),bi.init(e,t)}),gf=S("$ZodCheckIncludes",(e,t)=>{ve.init(e,t);let r=kt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position},}${r}`:r);t.pattern=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})}}),vf=S("$ZodCheckStartsWith",(e,t)=>{ve.init(e,t);let r=new RegExp(`^${kt(t.prefix)}.*`);t.pattern??(t.pattern=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})}}),yf=S("$ZodCheckEndsWith",(e,t)=>{ve.init(e,t);let r=new RegExp(`.*${kt(t.suffix)}$`);t.pattern??(t.pattern=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 Nc(e,t,r){e.issues.length&&t.issues.push(...at(r,e.issues))}var Sf=S("$ZodCheckProperty",(e,t)=>{ve.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=>Nc(n,r,t.property));Nc(i,r,t.property)}}),_f=S("$ZodCheckProperties",(e,t)=>{ve.init(e,t),ia(e,Symbol.iterator,function*(){yield e});let r;e._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:e});return}r??(r=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let n=i.value,o;for(let[a,s]of r){let c=s._zod.run({value:n[a],issues:[]},{});c instanceof Promise?(o??(o=[]),o.push(c.then(l=>Nc(l,i,a)))):Nc(c,i,a)}if(o)return Promise.all(o).then(()=>{})}}),bf=S("$ZodCheckMimeType",(e,t)=>{ve.init(e,t);let r=new Set(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})}}),$f=S("$ZodCheckOverwrite",(e,t)=>{ve.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var _r=class{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`\n`).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?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {\n${r.join(`\n`)}\n};`)(...Object.values(this.closed))}};var kf={major:4,minor:6,patch:7};var oe=S("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kf;let i=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(s,c,l)=>{if(s.memo)return s;let u=Qe(s),m;for(let p of c){if(p._zod.def.when){if(up(s)||!p._zod.def.when(s))continue}else if(u)continue;let f=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new ct;if(m||h instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await h,s.issues.length!==f&&(ta(s.issues,f,e),u||(u=Qe(s,f)))});else{if(s.issues.length===f)continue;ta(s.issues,f,e),u||(u=Qe(s,f))}}return m?m.then(()=>s):s},a=(s,c,l)=>{if(Qe(s))return s.aborted=!0,s;let u=o(c,n,l);if(u instanceof Promise){if(l.async===!1)throw new ct;return u.then(m=>e._zod.parse(m,l))}return e._zod.parse(u,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return u instanceof Promise?u.then(m=>a(m,s,c)):a(u,s,c)}let l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new ct;return l.then(u=>o(u,n,c))}return o(l,n,c)}}},{get"~standard"(){return ia(this,"~standard",qc(this))},set"~standard"(e){En(this,"~standard",e)}}),Ib=(e,t)=>e.issues.length?{issues:e.issues.map(r=>st(r,t,ke()))}:{value:e.value};async function JE(e,t){let r={async:!0};return Ib(await e._zod.run({value:t,issues:[]},r),r)}function qc(e){return{validate:t=>{let r={async:!1};try{let i=e._zod.run({value:t,issues:[]},r);if(!(i instanceof Promise))return Ib(i,r)}catch{}return JE(e,t)},vendor:"zod",version:1}}var br=S("$ZodString",(e,t)=>{oe.init(e,t),e._zod.pattern=t.pattern??Bp,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}}),fe=S("$ZodStringFormat",(e,t)=>{bi.init(e,t),br.init(e,t)}),wf=S("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=xp),fe.init(e,t)}),zf=S("$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=Sr(i))}else t.pattern??(t.pattern=Sr());fe.init(e,t)}),If=S("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ep),fe.init(e,t)}),Tf=1,fa=2;function xf(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Vc(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?xf(e)||fa:Tb(e,t)}function Tb(e,t){if(!t.normalize&&t.protocol?.source===ua.source&&!/^https?:\\/\\//i.test(e))return Tf;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(e)??fa}return new URL(e)}catch{return fa}}var HE=/[\\t\\n\\r]/g;function ha(e){return e.replace(HE,"")}function Zc(e,t){return t.lastIndex=0,t.test(e.hostname)}function Fc(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Ef=S("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=Vc(i,t);if(n===Tf){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===fa){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=ha(i);return}t.hostname&&!Zc(n,t.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&&!Fc(n,t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort}),r.value=t.normalize?n.href:ha(i);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Pf=S("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Pp()),fe.init(e,t)}),Of=S("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?zp:Ip(t.length)),fe.init(e,t)}),Cf=S("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=bp),fe.init(e,t)}),Nf=S("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=$p),fe.init(e,t)}),Af=S("$ZodULID",(e,t)=>{t.pattern??(t.pattern=kp),fe.init(e,t)}),jf=S("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Rp),fe.init(e,t)}),Uf=S("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=wp),fe.init(e,t)}),Lf=S("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Kp(t)),fe.init(e,t)}),Df=S("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Zp),fe.init(e,t)}),Mf=S("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Fp(t)),fe.init(e,t)}),qf=S("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Tp),fe.init(e,t)}),Vf=S("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Op),fe.init(e,t)}),YE=/^[0-9a-fA-F:.]+$/;function ga(e){return YE.test(e)?xf(`http://[${e}]`):!1}var Zf=S("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Cp),fe.init(e,t),e._zod.check=r=>{ga(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),Ff=S("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Np(t.delimiter)),fe.init(e,t)}),Kf=S("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ap),fe.init(e,t)});function Kc(e){let t=e.split("/");if(t.length!==2)return!1;let[r,i]=t;if(!i)return!1;let n=Number(i);return`${n}`!==i||n<0||n>128?!1:ga(r)}var Bf=S("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=jp),fe.init(e,t),e._zod.check=r=>{Kc(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function va(e){if(e==="")return!0;if(/\\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Bc=/^[0-9a-zA-Z+/]*={0,2}$/,Jf=S("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Bc),fe.init(e,t),e._zod.check=r=>{va(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),ya=/^[A-Za-z0-9_-]*$/;function Jc(e){if(!ya.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return va(r)}var Hf=S("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ya),fe.init(e,t),e._zod.check=r=>{Jc(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Yf=S("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qp),fe.init(e,t)}),GE=/[- ]/g;function WE(e){let t=e.length,r=1,i=0;for(;t;){let n=e.charCodeAt(--t)-48;r^=1,i+=r?[0,2,4,6,8,1,3,5,7,9][n]:n}return i%10===0}function Hc(e){return Pc.test(e)?WE(e.replace(GE,"")):!1}var Gf=S("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=Pc),fe.init(e,t),e._zod.check=r=>{Hc(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:e,continue:!t.abort})}});function XE(e){let t=0,r=e.length;for(let i=4;i<r;i++){let n=e.charCodeAt(i);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}for(let i=0;i<4;i++){let n=e.charCodeAt(i);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}return t===1}function Yc(e){return Oc.test(e)?XE(e):!1}var Wf=S("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=Oc),fe.init(e,t),e._zod.check=r=>{Yc(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:e,continue:!t.abort})}});function Gc(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!1}}var Xf=S("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=r=>{Gc(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Qf=S("$ZodCustomStringFormat",(e,t)=>{fe.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})}}),Wc=S("$ZodNumber",(e,t)=>{oe.init(e,t),e._zod.pattern=pn,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:String(n):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),eh=S("$ZodNumberFormat",(e,t)=>{of.init(e,t),Wc.init(e,t)}),Sa=S("$ZodBoolean",(e,t)=>{oe.init(e,t),e._zod.pattern=Yp,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}}),Xc=S("$ZodBigInt",(e,t)=>{oe.init(e,t),e._zod.pattern=Hp,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}}),th=S("$ZodBigIntFormat",(e,t)=>{af.init(e,t),Xc.init(e,t)}),nh=S("$ZodSymbol",(e,t)=>{oe.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}}),rh=S("$ZodUndefined",(e,t)=>{oe.init(e,t),e._zod.pattern=Wp,e._zod.values=new Set([void 0]),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}}),ih=S("$ZodNull",(e,t)=>{oe.init(e,t),e._zod.pattern=Gp,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}}),oh=S("$ZodAny",(e,t)=>{oe.init(e,t),e._zod.parse=r=>r}),ah=S("$ZodUnknown",(e,t)=>{oe.init(e,t),e._zod.parse=r=>r}),sh=S("$ZodNever",(e,t)=>{oe.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),ch=S("$ZodVoid",(e,t)=>{oe.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}}),lh=S("$ZodDate",(e,t)=>{oe.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 uh(e,t){let r=hi(e._zod.def.checks);if(!r.length)return;let i=Math.min(...r.map(o=>o[0])),n=e._zod.parse;e._zod.parse=(o,a)=>{let s=t(o.value);if(s>i&&!a?.skipChecks&&a?.direction!=="backward"){for(let[c,l]of hi(e._zod.def.checks))if(s>c&&l._zod.def.when(o)){let u=o.issues.length;return l._zod.check(o),o.issues[u].continue=!1,ta(o.issues,u,e),o}}return n(o,a)}}var QE=e=>Array.isArray(e)?e.length:-1,eP=e=>e instanceof Map?e.size:-1,tP=e=>e instanceof Set?e.size:-1;function mb(e,t,r){e.issues.length&&t.issues.push(...at(r,e.issues)),t.value[r]=e.value}var dh=S("$ZodArray",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),i;i.value=r?r.alloc(e,i,Array(o.length),n):Array(o.length);let a=[],s=n?.abortEarly;for(let c=0;c<o.length;c++){let l=o[c],u=t.element._zod.run({value:l,issues:[]},n);if(u instanceof Promise)a.push(u.then(m=>mb(m,i,c)));else if(mb(u,i,c),s&&u.issues.length!==0&&Qe(u))break}return a.length?Promise.all(a).then(()=>i):i},uh(e,QE)});function Mc(e,t,r,i,n,o){let a=r in i,s=o==="optional";if(!(!a&&s&&n==="optional")){if(e.issues.length){if(n!==void 0&&s&&!a)return;t.issues.push(...at(r,e.issues))}if(!a&&n===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(a||n==="defaulted"&&!s)&&(t.value[r]=void 0):t.value[r]=e.value}}var nP=[];function xb(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),i=r.length?r:nP,n=i.length?[...t,...i]:t;for(let a of n)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let o=lp(e.shape);return{...e,allKeys:n,symbolKeys:i,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function Eb(e,t,r,i,n,o,a){let s=[],c=n.keySet,l=n.catchall._zod,u=l.def.type,m=l.optin,p=l.optout,f=0;for(let h in t){if(a&&r.issues.length!==f){if(Qe(r,f))break;f=r.issues.length}if(c.has(h))continue;if(h==="__proto__"){u==="never"&&s.push(h);continue}if(u==="never"){s.push(h);continue}let v=l.run({value:t[h],issues:[]},i);v instanceof Promise?e.push(v.then(y=>Mc(y,r,h,t,m,p))):Mc(v,r,h,t,m,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var Pb=S("$ZodObject",(e,t)=>{oe.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),i=r?.get?r.get.raw:t.shape??{};if(i){let l=()=>{let u={...i};return Object.defineProperty(t,"shape",{value:u}),l.raw=u,u};l.raw=i,Object.defineProperty(t,"shape",{get:l})}let n=pi(()=>xb(t));de(e,"propValues",l=>{let u=l.def.shape,m={};for(let p in u){let f=u[p]._zod;if(f.values){Object.prototype.hasOwnProperty.call(m,p)||Ue(m,p,new Set);for(let h of f.values)m[p].add(h);f.optin!==void 0&&m[p].add(void 0)}}return m});let o=vr,a=t.catchall,s,c=Ne.memoizer;c?.attach(e),e._zod.parse=(l,u)=>{s??(s=n.value);let m=l.value;if(!o(m))return l.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),l;l.value=c?c.alloc(e,l,{},u):{};let p=[],f=s.shape,h=u?.abortEarly,v=l.issues.length;for(let y of s.allKeys){if(h&&l.issues.length!==v){if(Qe(l,v))break;v=l.issues.length}if(y==="__proto__")continue;let R=f[y],w=R._zod.optin,E=R._zod.optout,D=R._zod.run({value:m[y],issues:[]},u);D instanceof Promise?p.push(D.then(F=>Mc(F,l,y,m,w,E))):Mc(D,l,y,m,w,E)}return a?Eb(p,m,l,u,n.value,e,h===!0):p.length?Promise.all(p).then(()=>l):l}}),mh=S("$ZodObjectJIT",(e,t)=>{Pb.init(e,t);let r=e._zod.parse,i=pi(()=>xb(t)),n=Ne.memoizer,o=f=>{let h=i.value,v=h.symbolKeys,y=new _r(["payload","ctx"],{shape:f,inst:e,memo:n,syms:v}),R=F=>`shape[${F}]._zod.run({ value: input[${F}], issues: [] }, ctx)`,w=(F,N)=>`\n let ${F}_ab = false;\n for (let i = 0; i < ${F}.issues.length; i++) {\n const iss = ${F}.issues[i];\n iss.path = iss.path ? [${N}, ...iss.path] : [${N}];\n payload.issues.push(iss);\n if (iss.continue !== true) ${F}_ab = true;\n }\n if (${F}_ab && ctx && ctx.abortEarly) {\n payload.value = newResult;\n return payload;\n }`;y.write("const input = payload.value;");let E=Object.create(null),D=0;for(let F of h.allKeys)E[F]=`key_${D++}`;y.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let F of h.allKeys){if(F==="__proto__")continue;let N=E[F],te=typeof F=="symbol"?`syms[${v.indexOf(F)}]`:Xe(F),ie=`${te} in input`,Y=f[F],ye=Y?._zod?.optin,be=ye!==void 0,ce=Y?._zod?.optout==="optional";if(y.write(`const ${N} = ${R(te)};`),be&&ce){let Ie=ye==="optional"?`${N}_present`:`${N}.value !== undefined || ${N}_present`;y.write(`\n const ${N}_present = ${ie};\n if (!${N}.issues.length || ${N}_present) {\n if (${N}.issues.length) {${w(N,te)}\n }\n\n if (${Ie}) {\n newResult[${te}] = ${N}.value;\n }\n }\n\n `)}else be?(y.write(`\n if (${N}.issues.length) {${w(N,te)}\n }\n `),ye==="defaulted"?y.write(`newResult[${te}] = ${N}.value;`):y.write(`\n if (${N}.value !== undefined || ${ie}) {\n newResult[${te}] = ${N}.value;\n }\n `)):y.write(`\n const ${N}_present = ${ie};\n if (${N}.issues.length) {${w(N,te)}\n }\n if (!${N}_present && !${N}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${te}]\n });\n if (ctx && ctx.abortEarly) {\n payload.value = newResult;\n return payload;\n }\n }\n\n if (${N}_present) {\n newResult[${te}] = ${N}.value;\n }\n\n `)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},a,s=vr,c=!Ne.jitless,u=c&&sp.value,m=t.catchall,p;e._zod.parse=(f,h)=>{p??(p=i.value);let v=f.value;return s(v)?c&&u&&h?.async===!1&&h.jitless!==!0?(a||(a=o(t.shape)),f=a(f,h),m?Eb([],v,f,h,p,e,h?.abortEarly===!0):f):r(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function pb(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=>!Qe(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=>st(a,i,ke())))}),t)}var _a=S("$ZodUnion",(e,t)=>{oe.init(e,t),de(e,"optin",i=>i.def.options.some(n=>n._zod.optin==="defaulted")?"defaulted":i.def.options.some(n=>n._zod.optin!==void 0)?"optional":void 0),de(e,"optout",i=>i.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),de(e,"values",i=>{if(i.def.options.every(n=>n._zod.values))return new Set(i.def.options.flatMap(n=>Array.from(n._zod.values)))}),de(e,"pattern",i=>{if(i.def.options.every(n=>n._zod.pattern)){let n=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>mn(o.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>pb(s,i,e,n)):pb(a,i,e,n)}});function fb(e,t,r,i){let n=[];for(let o=0;o<e.length;o++)e[o].issues.length===0&&n.push(o);return n.length===1?(t.value=e[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=>st(a,i,ke())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1,matches:n}),t)}var ph=S("$ZodXor",(e,t)=>{_a.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>fb(s,i,e,n)):fb(a,i,e,n)}});function fh(e,t){let r=e._zod,i=r.bag.optionsMap;i||(i=Ob(r.def),r.bag.optionsMap=i);let n=i.get(t);if(n===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return n}function Ob(e){let t=new Map;for(let r of e.options){let i=r._zod.propValues?.[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let n of i)if(t.has(n)){if(n!==void 0)throw new Error(`Duplicate discriminator value "${String(n)}"`);t.set(n,null)}else t.set(n,r)}return t}var hh=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,_a.init(e,t);let r=e._zod.parse;de(e,"propValues",n=>{let o={},a=0;for(let s of n.def.options){let c=s._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(s)}"`);c[n.def.discriminator]?.has(void 0)&&a++;for(let[l,u]of Object.entries(c)){Object.prototype.hasOwnProperty.call(o,l)||Ue(o,l,new Set);for(let m of u)o[l].add(m)}}return!n.def.unionFallback&&a>1&&o[n.def.discriminator]?.delete(void 0),o}),t.options.forEach((n,o)=>{let a=fi(n._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=pi(()=>Ob(t));e._zod.parse=(n,o)=>{let a=n.value;if(!vr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=a?.[t.discriminator],c=i.value.get(s);return c&&(s!==void 0||o.direction!=="backward")?c._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()).filter(l=>i.value.get(l)!==null),input:a,path:[t.discriminator],inst:e}),n)}}),gh=S("$ZodIntersection",(e,t)=>{oe.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])=>hb(r,c,l)):hb(r,o,a)}});function $i(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if($t(e)&&$t(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(let o of i){if(o==="__proto__")continue;let a=$i(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=$i(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function hb(e,t,r){let i=new Map,n,o=new Map,a=(l,u)=>{let m;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),m=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let p=String(l.path[0]);o.has(p)||o.set(p,l),m=[p]}else return!1;for(let p of m)i.has(p)||i.set(p,{}),i.get(p)[u]=!0;return!0};for(let l of t.issues)a(l,"l")||e.issues.push(l);for(let l of r.issues)a(l,"r")||e.issues.push(l);let s=[...i].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(s.length){let l=n?s.filter(u=>n.keys.includes(u)):[];l.length&&e.issues.push({...n,keys:l});for(let u of s)!l.includes(u)&&o.has(u)&&e.issues.push(o.get(u))}let c=$i(t.value,r.value);if(!c.valid){if(Qe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Qc=S("$ZodTuple",(e,t)=>{oe.init(e,t);let r=t.items,i=Ne.memoizer;i?.attach(e),e._zod.parse=(n,o)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=i?i.alloc(e,n,[],o):[];let s=[],c=gb(r,"optin"),l=gb(r,"optout");if(!t.rest){if(a.length<c)return n.issues.push({code:"too_small",minimum:c,inclusive:!0,input:a,inst:e,origin:"array"}),n;a.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(r.length),m=t.rest?o?.abortEarly:void 0,p=!1;for(let f=0;f<r.length;f++){let h=r[f]._zod.run({value:a[f],issues:[]},o);h instanceof Promise?s.push(h.then(v=>{u[f]=v})):(u[f]=h,m&&!p&&h.issues.length&&(p=Qe(h)))}if(t.rest&&!p){let f=r.length-1,h=a.slice(r.length),v=n.issues.length;for(let y of h){if(m&&n.issues.length!==v){if(Qe(n,v))break;v=n.issues.length}f++;let R=t.rest._zod.run({value:y,issues:[]},o);R instanceof Promise?s.push(R.then(w=>vb(w,n,f))):vb(R,n,f)}}return s.length?Promise.all(s).then(()=>yb(u,n,r,a,l)):yb(u,n,r,a,l)}});function gb(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function vb(e,t,r){e.issues.length&&t.issues.push(...at(r,e.issues)),t.value[r]=e.value}function yb(e,t,r,i,n){for(let o=0;o<r.length;o++){let a=e[o],s=o<i.length;if(!s&&o>=n&&r[o]._zod.optin==="optional"){t.value.length=o;break}if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...at(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var vh=S("$ZodRecord",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!$t(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),i;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){i.value=r?r.alloc(e,i,{},n):{};let c=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(c.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let m=t.keyType._zod.run({value:u,issues:[]},n);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(h=>st(h,n,ke())),input:u,path:[u],inst:e});continue}let p=m.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&i.issues.push(...at(u,h.issues)),i.value[p]=h.value})):(f.issues.length&&i.issues.push(...at(u,f.issues)),i.value[p]=f.value)}let l;for(let u in o)if(!c.has(u))if(t.mode==="loose"){if(u==="__proto__")continue;i.value[u]=o[u]}else l=l??[],l.push(u);l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l,continue:!0})}else{i.value=r?r.alloc(e,i,{},n):{};let c;for(let l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let u=t.keyType._zod.run({value:l,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&pn.test(l)&&u.issues.length){let h=t.keyType._zod.run({value:Number(l),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(u=h)}if(u.issues.length){t.mode==="loose"?i.value[l]=o[l]:s?(c=c??[],c.push(l)):i.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>st(h,n,ke())),input:l,path:[l],inst:e});continue}let p=u.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:o[l],issues:[]},n);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&i.issues.push(...at(l,h.issues)),i.value[p]=h.value})):(f.issues.length&&i.issues.push(...at(l,f.issues)),i.value[p]=f.value)}c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c,continue:!0})}return a.length?Promise.all(a).then(()=>i):i}}),yh=S("$ZodMap",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),i;let a=[];i.value=r?r.alloc(e,i,new Map,n):new Map;let s=n?.abortEarly,c=i.issues.length;for(let[l,u]of o){if(s&&i.issues.length!==c){if(Qe(i,c))break;c=i.issues.length}let m=t.keyType._zod.run({value:l,issues:[]},n),p=t.valueType._zod.run({value:u,issues:[]},n);m instanceof Promise||p instanceof Promise?a.push(Promise.all([m,p]).then(([f,h])=>{Sb(f,h,i,l,o,e,n)})):Sb(m,p,i,l,o,e,n)}return a.length?Promise.all(a).then(()=>i):i},uh(e,eP)});function Sb(e,t,r,i,n,o,a){e.issues.length&&(Xo.has(typeof i)?r.issues.push(...at(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>st(s,a,ke()))})),t.issues.length&&(Xo.has(typeof i)?r.issues.push(...at(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>st(s,a,ke()))})),r.value.set(e.value,t.value)}var Sh=S("$ZodSet",(e,t)=>{oe.init(e,t);let r=Ne.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),i;let a=[];i.value=r?r.alloc(e,i,new Set,n):new Set;let s=n?.abortEarly,c=i.issues.length;for(let l of o){if(s&&i.issues.length!==c){if(Qe(i,c))break;c=i.issues.length}let u=t.valueType._zod.run({value:l,issues:[]},n);u instanceof Promise?a.push(u.then(m=>_b(m,i))):_b(u,i)}return a.length?Promise.all(a).then(()=>i):i},uh(e,tP)});function _b(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var _h=S("$ZodEnum",(e,t)=>{oe.init(e,t);let r=di(t.entries),i=new Set(r);e._zod.values=i,de(e,"pattern",n=>{let o=di(n.def.entries).filter(a=>Xo.has(typeof a));return new RegExp(o.length?`^(${o.map(a=>kt(a.toString())).join("|")})$`:"^[^\\\\s\\\\S]$")}),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}}),bh=S("$ZodLiteral",(e,t)=>{oe.init(e,t);let r=new Set(t.values);e._zod.values=r,de(e,"pattern",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o=="string"?kt(o):o?kt(o.toString()):String(o)).join("|")})$`:"^[^\\\\s\\\\S]$")}),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}}),$h=S("$ZodFile",(e,t)=>{oe.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}}),kh=S("$ZodTransform",(e,t)=>{oe.init(e,t),e._zod.optin="optional",Ne.memoizer?.guard(e),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Pn(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 ct;return r.value=n,r}});function bb(e,t){return e.value=t.issues.length?void 0:t.value,e}var el=S("$ZodOptional",(e,t)=>{oe.init(e,t),de(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",de(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),de(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${mn(i.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let n=t.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>bb(r,o)):bb(r,n)}return t.innerType._zod.run(r,i)}}),Rh=S("$ZodExactOptional",(e,t)=>{el.init(e,t),de(e,"values",r=>r.def.innerType._zod.values),de(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),wh=S("$ZodNullable",(e,t)=>{oe.init(e,t),de(e,"optin",r=>r.def.innerType._zod.optin),de(e,"optout",r=>r.def.innerType._zod.optout),de(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${mn(i.source)}|null)$`):void 0}),de(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),zh=S("$ZodDefault",(e,t)=>{oe.init(e,t),e._zod.optin="defaulted",de(e,"values",r=>r.def.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=>$b(o,t)):$b(n,t)}});function $b(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ih=S("$ZodPrefault",(e,t)=>{oe.init(e,t),e._zod.optin="defaulted",de(e,"values",r=>r.def.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))}),Th=S("$ZodNonOptional",(e,t)=>{oe.init(e,t),de(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>kb(o,e)):kb(n,e)}});function kb(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 xh=S("$ZodSuccess",(e,t)=>{oe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Pn("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)}});function Rb(e,t,r,i){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(n=>st(n,i,ke()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Eh=S("$ZodCatch",(e,t)=>{oe.init(e,t),de(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),de(e,"optout",r=>r.def.innerType._zod.optout),de(e,"values",r=>r.def.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({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>Rb(r,o,t,i)):Rb(r,n,t,i)}}),Ph=S("$ZodNaN",(e,t)=>{oe.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)}),tl=S("$ZodPipe",(e,t)=>{oe.init(e,t),de(e,"values",r=>r.def.in._zod.values),de(e,"optin",r=>r.def.in._zod.optin),de(e,"optout",r=>r.def.out._zod.optout),de(e,"propValues",r=>r.def.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=>Uc(a,t.in,i)):Uc(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Uc(o,t.out,i)):Uc(n,t.out,i)}});function Uc(e,t,r){return e.issues.some(i=>i.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var ba=S("$ZodCodec",(e,t)=>{oe.init(e,t),de(e,"values",r=>r.def.in._zod.values),de(e,"optin",r=>r.def.in._zod.optin),de(e,"optout",r=>r.def.out._zod.optout),de(e,"propValues",r=>r.def.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=>Lc(a,t,i)):Lc(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Lc(a,t,i)):Lc(o,t,i)}}});function Lc(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>Dc(e,o,t.out,r)):Dc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>Dc(e,o,t.in,r)):Dc(e,n,t.in,r)}}function Dc(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var Oh=S("$ZodPreprocess",(e,t)=>{tl.init(e,t)}),Ch=S("$ZodReadonly",(e,t)=>{oe.init(e,t),de(e,"propValues",r=>r.def.innerType._zod.propValues),de(e,"values",r=>r.def.innerType._zod.values),de(e,"optin",r=>r.def.innerType?._zod?.optin),de(e,"optout",r=>r.def.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(wb):wb(n)}});function wb(e){return e.memo||(e.value=Object.freeze(e.value)),e}function rP(e){let t=e._zod.def,r=t.pattern,i=!!t.format?.includes("int"),n,o;for(let s of t.checks??[]){let c=s._zod.def;c.pattern&&(r=c.pattern),i||(i=!!c.format?.includes("int"));let l=c.minimum??c.length,u=c.maximum??c.length;l!==void 0&&(n===void 0||l>n)&&(n=l),u!==void 0&&(o===void 0||u<o)&&(o=u)}if(r)return r.source;if(n!==void 0&&o!==void 0&&n>o)return"(?!)";if(n!==void 0||o!==void 0)return Jp({minimum:n,maximum:o}).source;let a=e._zod.pattern;return(i&&a===pn?da:a)?.source}function Rf(e){let t=e._zod.def,r=e._zod.pattern?.source,i=t.innerType??e._zod.innerType;if(i){let n=i._zod.pattern?.source,o=Rf(i);return r&&n&&o&&o!==n?r.replace(mn(n),()=>mn(o)):r}if(t.options){let n=t.options.map(Rf);if(n.every(Boolean))return`^(${n.map(o=>mn(o)).join("|")})$`}return rP(e)}var Nh=S("$ZodTemplateLiteral",(e,t)=>{oe.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){let n=Rf(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push(mn(n))}else if(i===null||cp.has(typeof i))r.push(kt(`${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)}),Ah=S("$ZodFunction",(e,t)=>(oe.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...i){let n=e._def.input?bc(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?bc(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let n=e._def.input?await $c(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await $c(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},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 Qc({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)),jh=S("$ZodPromise",(e,t)=>{oe.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),$a=S("$ZodLazy",(e,t)=>{oe.init(e,t),op(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),de(e,"pattern",r=>r.innerType?._zod?.pattern),de(e,"propValues",r=>r.innerType?._zod?.propValues),de(e,"optin",r=>r.innerType?._zod?.optin??void 0),de(e,"optout",r=>r.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Uh=S("$ZodCustom",(e,t)=>{ve.init(e,t),oe.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=>zb(o,r,i,e));zb(n,r,i,e)}});function zb(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(gi(n))}}var ol=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Dh="~memo",Nb=[];function Ab(e){return e!==null&&typeof e=="object"}function Lh(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var jb=new WeakMap,ki=0,il=1,ka=2;function Ra(e,t,r){let i=jb.get(e);if(i!==void 0)return i?ka:ki;if(t.has(e))return ka;t.add(e);let n=ki,o=u=>{if(n!==ka&&u?._zod){let m=Ra(u,t,r);m>n&&(n=m)}},a=(u,m)=>{let p=ki;for(let f of Reflect.ownKeys(u)){let h=Object.getOwnPropertyDescriptor(u,f);if(m&&!h.enumerable)continue;let v=h.get?il:h.value?._zod?Ra(h.value,t,r):ki;v>p&&(p=v)}return p},s=u=>{u>n&&(n=u)},c=e._zod.def,l=c.type;switch(l){case"object":{let u=fi(c);s(u?a(u,!0):il),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(let u of c.items)o(u);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(let u of c.options)o(u);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{let u=c._cachedInner??(r?e._zod.innerType:void 0);s(u?Ra(u,t,!1):il);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let u in c){let m=Object.getOwnPropertyDescriptor(c,u);if(!m||m.get)continue;let p=m.value;if(!(!p||typeof p!="object")){if(p._zod)o(p);else if(Array.isArray(p))for(let f of p)o(f)}}}return t.delete(e),iP(e,n)}function iP(e,t){return t!==il&&jb.set(e,t===ka),t}function al(e){return Ra(e,new Set,!0)!==ki}function oP(e,t){let r=e.buckets.get(t);return r||(r=new WeakMap,e.buckets.set(t,r)),r}var nl,rl=[],aP={alloc(e,t,r){let i=nl;if(!i)return r;nl=void 0;let n={value:r,issues:null};return i.set(t.value,n),rl.push(n),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,i=(n,o)=>{if(o.direction!=="backward"&&sl(o,n.value))throw new ol;return r(n,o)};e._zod.parse=i,e._zod.run===r&&(e._zod.run=i)})},attach(e){var t;let r,i=!1,n,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,s=(c,l)=>{if(r===void 0){let R=Ra(e,new Set,!1);if(R===ki)return e._zod.parse=a,e._zod.run===s&&(e._zod.run=a),a(c,l);R===ka||i?r=!0:i=!0}let u=c.value;if(!Ab(u))return a(c,l);let m=l[Dh];m||(m={buckets:new WeakMap,backEdges:void 0},l[Dh]=m);let p;n===l?p=o:(p=oP(m,e),n=l,o=p);let f=p.get(u);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...Lh(f.issues)):(c.memo=!0,m.backEdges??(m.backEdges=new WeakSet),m.backEdges.add(f.value)),c;nl=p;let h=rl.length,v=a(c,l);nl=void 0;let y=rl.length>h?rl.pop():void 0;return v instanceof Promise?v.then(R=>(y&&(y.issues=R.issues.length?Lh(R.issues):Nb),R)):(y&&(y.issues=v.issues.length?Lh(v.issues):Nb),v)};e._zod.parse=s,e._zod.run===a&&(e._zod.run=s)})}};function wa(){return aP}function sl(e,t){let r=e[Dh]?.backEdges;return r!==void 0&&Ab(t)&&r.has(t)}var Ia={};un(Ia,{ar:()=>Ub,az:()=>Lb,be:()=>Mb,bg:()=>qb,bn:()=>Vb,ca:()=>Zb,ckb:()=>Fb,cs:()=>Kb,da:()=>Bb,de:()=>Jb,el:()=>Hb,en:()=>cl,eo:()=>Yb,es:()=>Gb,fa:()=>Wb,fi:()=>Xb,fr:()=>Qb,frCA:()=>e$,gu:()=>t$,he:()=>n$,hi:()=>r$,hr:()=>i$,hu:()=>o$,hy:()=>s$,id:()=>c$,is:()=>l$,it:()=>u$,ja:()=>d$,ka:()=>m$,kh:()=>p$,km:()=>ll,kn:()=>f$,ko:()=>h$,lt:()=>v$,mk:()=>y$,ms:()=>S$,ne:()=>_$,nl:()=>b$,nn:()=>$$,no:()=>k$,ota:()=>R$,pl:()=>z$,ps:()=>w$,pt:()=>I$,ptBR:()=>T$,ro:()=>x$,ru:()=>P$,sk:()=>O$,sl:()=>C$,sv:()=>N$,ta:()=>A$,tg:()=>j$,th:()=>U$,tk:()=>L$,tr:()=>D$,ua:()=>M$,uk:()=>ul,ur:()=>q$,uz:()=>V$,vi:()=>Z$,yo:()=>B$,zhCN:()=>F$,zhTW:()=>K$});var sP=()=>{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"},map:{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",mac:"\\u0639\\u0646\\u0648\\u0627\\u0646 MAC",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",credit_card:"\\u0631\\u0642\\u0645 \\u0628\\u0637\\u0627\\u0642\\u0629 \\u0627\\u0644\\u0627\\u0626\\u062A\\u0645\\u0627\\u0646",currency_code:"\\u0631\\u0645\\u0632 \\u0627\\u0644\\u0639\\u0645\\u0644\\u0629",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 Ub(){return{localeError:sP()}}var cP=()=>{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"},map:{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",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",credit_card:"kredit kart\\u0131 n\\xF6mr\\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${I(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 Lb(){return{localeError:cP()}}function Db(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 lP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u043D\\u0443\\u043C\\u0430\\u0440 \\u043A\\u0440\\u044D\\u0434\\u044B\\u0442\\u043D\\u0430\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",currency_code:"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u044B",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 s=Number(n.maximum),c=Db(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 ${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 s=Number(n.minimum),c=Db(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 ${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 Mb(){return{localeError:lP()}}var uP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0430",currency_code:"\\u043A\\u043E\\u0434 \\u043D\\u0430 \\u0432\\u0430\\u043B\\u0443\\u0442\\u0430",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${I(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 qb(){return{localeError:uP()}}var dP=()=>{let e={string:{unit:"\\u0985\\u0995\\u09CD\\u09B7\\u09B0",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},file:{unit:"\\u09AC\\u09BE\\u0987\\u099F",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},array:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},set:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},map:{unit:"\\u098F\\u09A8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"}};function t(n){return e[n]??null}let r={regex:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F",email:"\\u0987\\u09AE\\u09C7\\u0987\\u09B2 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",url:"URL",emoji:"\\u0987\\u09AE\\u09CB\\u099C\\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996 \\u0993 \\u09B8\\u09AE\\u09AF\\u09BC",date:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996",time:"ISO \\u09B8\\u09AE\\u09AF\\u09BC",duration:"ISO \\u09B8\\u09AE\\u09AF\\u09BC\\u0995\\u09BE\\u09B2",ipv4:"IPv4 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",ipv6:"IPv6 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",mac:"MAC \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",cidrv4:"IPv4 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",cidrv6:"IPv6 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",base64:"base64-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",base64url:"base64url-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",json_string:"JSON \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",e164:"E.164 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",credit_card:"\\u0995\\u09CD\\u09B0\\u09C7\\u09A1\\u09BF\\u099F \\u0995\\u09BE\\u09B0\\u09CD\\u09A1 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",currency_code:"\\u09AE\\u09C1\\u09A6\\u09CD\\u09B0\\u09BE \\u0995\\u09CB\\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${o}, \\u09AA\\u09CD\\u09B0\\u09BE\\u09AA\\u09CD\\u09A4 ${s}`}case"invalid_value":return n.values.length===1?`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${I(n.values[0])}`:`\\u0985\\u09AC\\u09C8\\u09A7 \\u0985\\u09AA\\u09B6\\u09A8: ${_(n.values," | ")} \\u098F\\u09B0 \\u09AE\\u09A7\\u09CD\\u09AF\\u09C7 \\u098F\\u0995\\u099F\\u09BF \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${n.origin??"\\u09AE\\u09BE\\u09A8"} ${o}${n.maximum.toString()} ${a.unit??"\\u098F\\u09B2\\u09BF\\u09AE\\u09C7\\u09A8\\u09CD\\u099F"} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${n.origin??"\\u09AE\\u09BE\\u09A8"} ${o}${n.maximum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${n.origin} ${o}${n.minimum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${o.prefix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C1\\u09B0\\u09C1 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format==="ends_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${o.suffix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C7\\u09B7 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format==="includes"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${o.includes}" \\u0985\\u09A8\\u09CD\\u09A4\\u09B0\\u09CD\\u09AD\\u09C1\\u0995\\u09CD\\u09A4 \\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:o.format==="regex"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: ${o.pattern} \\u09AA\\u09CD\\u09AF\\u09BE\\u099F\\u09BE\\u09B0\\u09CD\\u09A8 \\u09AE\\u09BF\\u09B2\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09AC\\u09C8\\u09A7 ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0: ${n.divisor} \\u098F\\u09B0 \\u0997\\u09C1\\u09A3\\u09BF\\u09A4\\u0995 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`;case"unrecognized_keys":return`\\u0985\\u099A\\u09C7\\u09A8\\u09BE \\u0995\\u09C0${n.keys.length>1?"\\u0997\\u09C1\\u09B2\\u09CB":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u0995\\u09C0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A1\\u09BF\\u09B8\\u0995\\u09CD\\u09B0\\u09BF\\u09AE\\u09BF\\u09A8\\u09C7\\u099F\\u09B0 \\u09AE\\u09BE\\u09A8\\u0964 \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F";case"invalid_element":return`${n.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u09AE\\u09BE\\u09A8`;default:return"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F"}}};function Vb(){return{localeError:dP()}}var mP=()=>{let e={string:{unit:"car\\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{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",mac:"adre\\xE7a MAC",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",credit_card:"n\\xFAmero de targeta de cr\\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\\xE0lid: s\'esperava instanceof ${n.expected}, s\'ha rebut ${s}`:`Tipus inv\\xE0lid: s\'esperava ${o}, s\'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\\xE0lid: s\'esperava ${I(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 Zb(){return{localeError:mP()}}var pP=()=>{let e={string:{unit:"\\u067E\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},array:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},set:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},map:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"}};function t(n){return e[n]??null}let r={regex:"regex",email:"\\u0626\\u06CC\\u0645\\u06D5\\u06CC\\u06B5",url:"\\u0628\\u06D5\\u0633\\u062A\\u06D5\\u0631 (URL)",emoji:"\\u0626\\u06CC\\u0645\\u06C6\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A \\u0648 \\u06A9\\u0627\\u062A",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",time:"\\u06A9\\u0627\\u062A",duration:"\\u0645\\u0627\\u0648\\u06D5",ipv4:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv4",ipv6:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv6",mac:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC MAC",cidrv4:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv4",cidrv6:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv6",base64:"\\u062F\\u06D5\\u0642\\u06CC base64",base64url:"\\u062F\\u06D5\\u0642\\u06CC base64url",json_string:"\\u062F\\u06D5\\u0642\\u06CC JSON",e164:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC E.164",credit_card:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u06A9\\u0627\\u0631\\u062A\\u06CC \\u06A9\\u0631\\u06CE\\u062F\\u06CC\\u062A",currency_code:"\\u06A9\\u06C6\\u062F\\u06CC \\u062F\\u0631\\u0627\\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5"},i={nan:"NaN",string:"\\u0646\\u0648\\u0648\\u0633\\u06CC\\u0646",number:"\\u0698\\u0645\\u0627\\u0631\\u06D5",boolean:"boolean",array:"array",object:"object",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",integer:"\\u0698\\u0645\\u0627\\u0631\\u06D5",float:"\\u0698\\u0645\\u0627\\u0631\\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a,c=["\\u0627","\\u0648","\\u06C6","\\u0648\\u0648","\\u06D5","\\u06CC","\\u06CE"].some(u=>s.endsWith(u))?"\\u06CC\\u06D5":"\\u06D5",l=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\\u062F\\u0627\\u0648\\u0627\\u06A9\\u0631\\u0627\\u0648\\u06D5":`\\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${o} \\u0628\\u06CE\\u062A\\u060C \\u0628\\u06D5\\u06B5\\u0627\\u0645 ${s}${l?"":c}`}case"invalid_value":return n.values.length===1?`\\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0648\\u0633\\u062A\\u06D5: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${I(n.values[0])} \\u0628\\u06CE\\u062A`:`\\u0647\\u06D5\\u06B5\\u0628\\u0698\\u0627\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 \\u06CC\\u06D5\\u06A9\\u06CE\\u06A9 \\u0628\\u06CE\\u062A \\u0644\\u06D5 ${_(n.values,"|")}`;case"too_big":{let o=t(n.origin);return o?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${n.maximum.toString()} ${o.unit} ${o.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${n.maximum.toString()} \\u0628\\u06CE\\u062A`}case"too_small":{let o=t(n.origin);return o?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${n.minimum.toString()} ${o.unit} ${o.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${n.minimum.toString()} \\u0628\\u06CE\\u062A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u062F\\u06D5\\u0633\\u062A\\u067E\\u06CE\\u0628\\u06A9\\u0627\\u062A \\u0628\\u06D5 "${o.prefix}"`:o.format==="ends_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u06A9\\u06C6\\u062A\\u0627\\u06CC\\u06CC\\u0628\\u06CE\\u062A \\u0628\\u06D5 "${o.suffix}"`:o.format==="includes"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 "${o.includes}" \\u0644\\u06D5\\u062E\\u06C6\\u0628\\u06AF\\u0631\\u06CE\\u062A`:o.format==="regex"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0644\\u06D5\\u06AF\\u06D5\\u06B5 \\u067E\\u0627\\u062A\\u06CE\\u0631\\u0646\\u06CC ${o.pattern} \\u0628\\u06AF\\u0648\\u0646\\u062C\\u06CE\\u062A`:`\\u0628\\u06D5\\u0647\\u0627\\u06CC ${r[o.format]??n.format} \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`}case"not_multiple_of":return`\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u062F\\u06D5\\u0628\\u06CE\\u062A \\u0686\\u06D5\\u0646\\u062F \\u0647\\u06CE\\u0646\\u062F\\u06D5 \\u0628\\u06CE\\u062A \\u0628\\u06C6 ${n.divisor}`;case"unrecognized_keys":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648: ${_(n.keys,", ")}`;case"invalid_key":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A \\u0644\\u06D5 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648 \\u0647\\u06D5\\u06CC\\u06D5. \\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648: ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u06CC\\u06D5\\u06A9\\u06AF\\u0631\\u062A\\u0646\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A";case"invalid_element":return`${n.origin} \\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`;default:return"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A"}}};function Fb(){return{localeError:pP()}}var fP=()=>{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"},map:{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",mac:"MAC 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",credit_card:"\\u010D\\xEDslo kreditn\\xED karty",currency_code:"k\\xF3d m\\u011Bny",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no instanceof ${n.expected}, obdr\\u017Eeno ${s}`:`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${o}, obdr\\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${I(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 Kb(){return{localeError:fP()}}var hP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\\xE6rdi: forventede ${I(n.values[0])}`:`Ugyldigt valg: forventede en af f\\xF8lgende ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} 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 Bb(){return{localeError:hP()}}var gP=()=>{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"},map:{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",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\\xE4hrungscode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\\xFCltige Eingabe: erwartet ${I(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 Jb(){return{localeError:gP()}}var vP=()=>{let e={string:{unit:"\\u03C7\\u03B1\\u03C1\\u03B1\\u03BA\\u03C4\\u03AE\\u03C1\\u03B5\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},file:{unit:"bytes",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},array:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},set:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},map:{unit:"\\u03BA\\u03B1\\u03C4\\u03B1\\u03C7\\u03C9\\u03C1\\u03AE\\u03C3\\u03B5\\u03B9\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"}};function t(n){return e[n]??null}let r={regex:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2",email:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 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:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1 \\u03BA\\u03B1\\u03B9 \\u03CE\\u03C1\\u03B1",date:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1",time:"ISO \\u03CE\\u03C1\\u03B1",duration:"ISO \\u03B4\\u03B9\\u03AC\\u03C1\\u03BA\\u03B5\\u03B9\\u03B1",ipv4:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv4",ipv6:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv6",mac:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 MAC",cidrv4:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv4",cidrv6:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv6",base64:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64",base64url:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64url",json_string:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC JSON",e164:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 E.164",credit_card:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 \\u03C0\\u03B9\\u03C3\\u03C4\\u03C9\\u03C4\\u03B9\\u03BA\\u03AE\\u03C2 \\u03BA\\u03AC\\u03C1\\u03C4\\u03B1\\u03C2",currency_code:"\\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03CC\\u03C2 \\u03BD\\u03BF\\u03BC\\u03AF\\u03C3\\u03BC\\u03B1\\u03C4\\u03BF\\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD instanceof ${n.expected}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${o}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${I(n.values[0])}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03C0\\u03B9\\u03BB\\u03BF\\u03B3\\u03AE: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD \\u03AD\\u03BD\\u03B1 \\u03B1\\u03C0\\u03CC ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1"}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${n.origin} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03BE\\u03B5\\u03BA\\u03B9\\u03BD\\u03AC \\u03BC\\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B5\\u03BB\\u03B5\\u03B9\\u03CE\\u03BD\\u03B5\\u03B9 \\u03BC\\u03B5 "${o.suffix}"`:o.format==="includes"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C0\\u03B5\\u03C1\\u03B9\\u03AD\\u03C7\\u03B5\\u03B9 "${o.includes}"`:o.format==="regex"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B1\\u03B9\\u03C1\\u03B9\\u03AC\\u03B6\\u03B5\\u03B9 \\u03BC\\u03B5 \\u03C4\\u03BF \\u03BC\\u03BF\\u03C4\\u03AF\\u03B2\\u03BF ${o.pattern}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF\\u03C2 \\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 \\u03C0\\u03BF\\u03BB\\u03BB\\u03B1\\u03C0\\u03BB\\u03AC\\u03C3\\u03B9\\u03BF \\u03C4\\u03BF\\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\\u0386\\u03B3\\u03BD\\u03C9\\u03C3\\u03C4${n.keys.length>1?"\\u03B1":"\\u03BF"} \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4${n.keys.length>1?"\\u03B9\\u03AC":"\\u03AF"}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4\\u03AF \\u03C3\\u03C4\\u03BF ${n.origin}`;case"invalid_union":return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2";case"invalid_element":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C4\\u03B9\\u03BC\\u03AE \\u03C3\\u03C4\\u03BF ${n.origin}`;default:return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"}}};function Hb(){return{localeError:vP()}}var yP=()=>{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(o){return e[o]??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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function n(o,a){return o==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let a=n(o.expected),s=T(o.input),c=n(s,o.input);return`Invalid input: expected ${a}, received ${c}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${I(o.values[0])}`:`Invalid option: expected one of ${_(o.values,"|")}`;case"too_big":{let a=o.exact?"exactly ":o.inclusive?"<=":"<",s=t(o.origin);return s?`Too big: expected ${o.origin??"value"} to have ${a}${o.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${a}${o.maximum.toString()}`}case"too_small":{let a=o.exact?"exactly ":o.inclusive?">=":">",s=t(o.origin);return s?`Too small: expected ${o.origin} to have ${a}${o.minimum.toString()} ${s.unit}`:`Too small: expected ${o.origin} to be ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${_(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`\'${s}\'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function cl(){return{localeError:yP()}}var SP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{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",mac:"MAC-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",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\\u011Dis instanceof ${n.expected}, ricevi\\u011Dis ${s}`:`Nevalida enigo: atendi\\u011Dis ${o}, ricevi\\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\\u011Dis ${I(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 Yb(){return{localeError:SP()}}var _P=()=>{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",mac:"direcci\\xF3n MAC",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",credit_card:"n\\xFAmero de tarjeta de cr\\xE9dito",currency_code:"c\\xF3digo de moneda",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\\xE1lida: se esperaba ${I(n.values[0])}`:`Opci\\xF3n inv\\xE1lida: se esperaba una de ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\\xF1o: se esperaba que ${s} 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 Gb(){return{localeError:_P()}}var bP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u06A9\\u0627\\u0631\\u062A \\u0627\\u0639\\u062A\\u0628\\u0627\\u0631\\u06CC",currency_code:"\\u06A9\\u062F \\u0627\\u0631\\u0632",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${I(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 Wb(){return{localeError:bP()}}var $P=()=>{let e={string:{unit:"merkki\\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},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",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\\xF6te: t\\xE4ytyy olla ${I(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 Xb(){return{localeError:$P()}}var kP=()=>{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:"expression r\\xE9guli\\xE8re",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",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64",base64url:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64url",json_string:"cha\\xEEne de caract\\xE8res JSON",e164:"num\\xE9ro au format E.164",credit_card:"num\\xE9ro de carte de cr\\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\\xE9e"},i={string:"cha\\xEEne de caract\\xE8res",number:"nombre",int:"entier",boolean:"bool\\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\\xE9e invalide : instance de ${n.expected} attendu, ${s} re\\xE7u`:`Entr\\xE9e invalide : ${o} attendu, ${s} re\\xE7u`}case"invalid_value":return n.values.length===1?`Entr\\xE9e invalide : ${I(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 : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\\xE9l\\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \\xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \\xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\\xEEne de caract\\xE8res invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\\xEEne de caract\\xE8res invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\\xEEne de caract\\xE8res invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\\xEEne de caract\\xE8res 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 Qb(){return{localeError:kP()}}var RP=()=>{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"},map:{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",mac:"adresse MAC",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",credit_card:"num\\xE9ro de carte de cr\\xE9dit",currency_code:"code de devise",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\\xE9e invalide : attendu instanceof ${n.expected}, re\\xE7u ${s}`:`Entr\\xE9e invalide : attendu ${o}, re\\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\\xE9e invalide : attendu ${I(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 e$(){return{localeError:RP()}}var wP=()=>{let e={string:{unit:"\\u0A85\\u0A95\\u0ACD\\u0AB7\\u0AB0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},file:{unit:"\\u0AAC\\u0ABE\\u0AAF\\u0A9F",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},array:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},set:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},map:{unit:"\\u0A8F\\u0AA8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0AC0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"}};function t(n){return e[n]??null}let r={regex:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F",email:"\\u0A88\\u0AAE\\u0AC7\\u0A87\\u0AB2 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",url:"URL",emoji:"\\u0A87\\u0AAE\\u0ACB\\u0A9C\\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96 \\u0A85\\u0AA8\\u0AC7 \\u0AB8\\u0AAE\\u0AAF",date:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96",time:"ISO \\u0AB8\\u0AAE\\u0AAF",duration:"ISO \\u0A85\\u0AB5\\u0AA7\\u0ABF",ipv4:"IPv4 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",ipv6:"IPv6 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",mac:"MAC \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",cidrv4:"IPv4 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",cidrv6:"IPv6 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",base64:"base64-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",base64url:"base64url-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",json_string:"JSON \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",e164:"E.164 \\u0AA8\\u0A82\\u0AAC\\u0AB0",credit_card:"\\u0A95\\u0ACD\\u0AB0\\u0AC7\\u0AA1\\u0ABF\\u0A9F \\u0A95\\u0ABE\\u0AB0\\u0ACD\\u0AA1 \\u0AA8\\u0A82\\u0AAC\\u0AB0",currency_code:"\\u0A9A\\u0AB2\\u0AA3 \\u0A95\\u0ACB\\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${o}, \\u0AAA\\u0ACD\\u0AB0\\u0ABE\\u0AAA\\u0ACD\\u0AA4 ${s}`}case"invalid_value":return n.values.length===1?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${I(n.values[0])}`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB5\\u0ABF\\u0A95\\u0AB2\\u0ACD\\u0AAA: ${_(n.values," | ")} \\u0AAE\\u0ABE\\u0AA7\\u0ACD\\u0AAF\\u0AAE\\u0AA5\\u0AC0 \\u0A8F\\u0A95 \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${n.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${o}${n.maximum.toString()} ${a.unit??"\\u0A8F\\u0AB2\\u0ABF\\u0AAE\\u0AC7\\u0AA8\\u0ACD\\u0A9F"} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${n.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${o}${n.maximum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${n.origin} ${o}${n.minimum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${o.prefix}" \\u0AA5\\u0AC0 \\u0AB6\\u0AB0\\u0AC2 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format==="ends_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${o.suffix}" \\u0AAA\\u0AB0 \\u0AB8\\u0AAE\\u0ABE\\u0AAA\\u0ACD\\u0AA4 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format==="includes"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${o.includes}" \\u0AB6\\u0ABE\\u0AAE\\u0AC7\\u0AB2 \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:o.format==="regex"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \\u0AAA\\u0AC7\\u0A9F\\u0AB0\\u0ACD\\u0AA8 ${o.pattern} \\u0AB8\\u0ABE\\u0AA5\\u0AC7 \\u0AAE\\u0AC7\\u0AB3 \\u0A96\\u0ABE\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA8\\u0A82\\u0AAC\\u0AB0: ${n.divisor} \\u0AA8\\u0ACB \\u0A97\\u0AC1\\u0AA3\\u0ABE\\u0A82\\u0A95 \\u0AB9\\u0ACB\\u0AB5\\u0ACB \\u0A9C\\u0ACB\\u0A88\\u0A8F`;case"unrecognized_keys":return`\\u0A93\\u0AB3\\u0A96\\u0AC0 \\u0AB6\\u0A95\\u0ABE\\u0AA4\\u0ABE \\u0AA8\\u0AB9\\u0AC0\\u0A82 \\u0AA4\\u0AC7 \\u0A95\\u0AC0${n.keys.length>1?"\\u0A93":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A95\\u0AC0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA1\\u0ABF\\u0AB8\\u0ACD\\u0A95\\u0ACD\\u0AB0\\u0ABF\\u0AAE\\u0ABF\\u0AA8\\u0AC7\\u0A9F\\u0AB0 \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF. \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F";case"invalid_element":return`${n.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF`;default:return"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"}}};function t$(){return{localeError:wP()}}var zP=()=>{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 u=r(l);return u?u.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,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"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",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"},mac:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA MAC",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"},credit_card:{label:"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DB\\u05E8\\u05D8\\u05D9\\u05E1 \\u05D0\\u05E9\\u05E8\\u05D0\\u05D9",gender:"m"},currency_code:{label:"\\u05E7\\u05D5\\u05D3 \\u05DE\\u05D8\\u05D1\\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\\u05E7\\u05DC\\u05D8",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 u=l.expected,m=c[u??""]??i(u),p=T(l.input),f=c[p]??e[p]?.label??p;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 ${f}`:`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${m}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${f}`}case"invalid_value":{if(l.values.length===1)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05E2\\u05E8\\u05DA \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${I(l.values[0])}`;let u=l.values.map(f=>I(f));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 ${u[0]} \\u05D0\\u05D5 ${u[1]}`;let m=u[u.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 ${u.slice(0,-1).join(", ")} \\u05D0\\u05D5 ${m}`}case"too_big":{let u=a(l.origin),m=n(l.origin??"value");if(l.origin==="string")return`${u?.longLabel??"\\u05D0\\u05E8\\u05D5\\u05DA"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.maximum.toString()} ${u?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA":"\\u05DC\\u05DB\\u05DC \\u05D4\\u05D9\\u05D5\\u05EA\\u05E8"}`.trim();if(l.origin==="number"){let h=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: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA",v=l.inclusive?`${l.maximum} ${u?.unit??""} \\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA`:`\\u05E4\\u05D7\\u05D5\\u05EA \\u05DE-${l.maximum} ${u?.unit??""}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${v}`.trim()}let p=l.inclusive?"<=":"<",f=o(l.origin??"value");return u?.unit?`${u.longLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\\u05D2\\u05D3\\u05D5\\u05DC"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()}`}case"too_small":{let u=a(l.origin),m=n(l.origin??"value");if(l.origin==="string")return`${u?.shortLabel??"\\u05E7\\u05E6\\u05E8"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.minimum.toString()} ${u?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8":"\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA"}`.trim();if(l.origin==="number"){let h=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: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA";if(l.minimum===1&&l.inclusive){let y=(l.origin==="set","\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA \\u05E4\\u05E8\\u05D9\\u05D8 \\u05D0\\u05D7\\u05D3");return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${y}`}let v=l.inclusive?`${l.minimum} ${u?.unit??""} \\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8`:`\\u05D9\\u05D5\\u05EA\\u05E8 \\u05DE-${l.minimum} ${u?.unit??""}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${v}`.trim()}let p=l.inclusive?">=":">",f=o(l.origin??"value");return u?.unit?`${u.shortLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\\u05E7\\u05D8\\u05DF"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()}`}case"invalid_format":{let u=l;if(u.format==="starts_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 "${u.suffix}"`;if(u.format==="includes")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let m=s[u.format],p=m?.label??u.format,h=(m?.gender??"m")==="f"?"\\u05EA\\u05E7\\u05D9\\u05E0\\u05D4":"\\u05EA\\u05E7\\u05D9\\u05DF";return`${p} \\u05DC\\u05D0 ${h}`}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 n$(){return{localeError:zP()}}var IP=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},file:{unit:"\\u092C\\u093E\\u0907\\u091F\\u094D\\u0938",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F\\u092F\\u093E\\u0901",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"}};function t(n){return e[n]??null}let r={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0908\\u092E\\u0947\\u0932 \\u092A\\u0924\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0924\\u093F\\u0925\\u093F \\u0914\\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u0924\\u093F\\u0925\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u092A\\u0924\\u093E",ipv6:"IPv6 \\u092A\\u0924\\u093E",mac:"MAC \\u092A\\u0924\\u093E",cidrv4:"IPv4 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",cidrv6:"IPv6 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",base64:"Base64-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",base64url:"Base64URL-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",e164:"E.164 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",currency_code:"\\u092E\\u0941\\u0926\\u094D\\u0930\\u093E \\u0915\\u094B\\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${o}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return n.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${I(n.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u094B\\u0902 \\u092E\\u0947\\u0902 \\u0938\\u0947 \\u090F\\u0915 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u0947\\u0902 ${o}${n.maximum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin??"\\u092E\\u093E\\u0928"} ${o}${n.maximum} \\u0939\\u094B`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin} \\u092E\\u0947\\u0902 ${o}${n.minimum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${n.origin} ${o}${n.minimum} \\u0939\\u094B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${o.prefix}" \\u0938\\u0947 \\u0936\\u0941\\u0930\\u0942 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${o.suffix}" \\u092A\\u0930 \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u0907\\u0938\\u092E\\u0947\\u0902 "${o.includes}" \\u0936\\u093E\\u092E\\u093F\\u0932 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:o.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u092A\\u0948\\u091F\\u0930\\u094D\\u0928 ${o.pattern} \\u0938\\u0947 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: \\u092F\\u0939 ${n.divisor} \\u0915\\u093E \\u0917\\u0941\\u0923\\u091C \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u0902\\u091C\\u0940${n.keys.length>1?"\\u092F\\u093E\\u0901":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u0902\\u091C\\u0940: ${n.origin} \\u092E\\u0947\\u0902`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${n.origin} \\u092E\\u0947\\u0902`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function r$(){return{localeError:IP()}}var TP=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\\u010Dekivano ${I(n.values[0])}`:`Neispravna opcija: o\\u010Dekivano jedno od ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\\u010Dekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\\u010Devi":" klju\\u010D"}: ${_(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function i$(){return{localeError:TP()}}var xP=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{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",mac:"MAC 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",credit_card:"hitelk\\xE1rtyasz\\xE1m",currency_code:"p\\xE9nznemk\\xF3d",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k instanceof ${n.expected}, a kapott \\xE9rt\\xE9k ${s}`:`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${o}, a kapott \\xE9rt\\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${I(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 o$(){return{localeError:xP()}}function a$(e,t,r){return Math.abs(e)===1?t:r}function Ri(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 EP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u056F\\u0580\\u0565\\u0564\\u056B\\u057F \\u0584\\u0561\\u0580\\u057F\\u056B \\u0570\\u0561\\u0574\\u0561\\u0580",currency_code:"\\u0561\\u0580\\u056A\\u0578\\u0582\\u0575\\u0569\\u056B \\u056F\\u0578\\u0564",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 s=Number(n.maximum),c=a$(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 ${Ri(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 ${Ri(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 s=Number(n.minimum),c=a$(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 ${Ri(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 ${Ri(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 ${Ri(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 ${Ri(n.origin)}-\\u0578\\u0582\\u0574`;default:return"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574"}}};function s$(){return{localeError:EP()}}var PP=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{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",mac:"alamat MAC",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",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${I(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 c$(){return{localeError:PP()}}var OP=()=>{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"},map:{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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\\xF6lugildi",credit_card:"kreditkortan\\xFAmer",currency_code:"gjaldmi\\xF0ilsk\\xF3\\xF0i",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\\xE1\\xF0 fyrir ${I(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 l$(){return{localeError:OP()}}var CP=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{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",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${I(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}`:`Input non valido: ${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 u$(){return{localeError:CP()}}var NP=()=>{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"},map:{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",mac:"MAC\\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",credit_card:"\\u30AF\\u30EC\\u30B8\\u30C3\\u30C8\\u30AB\\u30FC\\u30C9\\u756A\\u53F7",currency_code:"\\u901A\\u8CA8\\u30B3\\u30FC\\u30C9",iban:"IBAN",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=T(n.input),s=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${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 n.values.length===1?`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${I(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 d$(){return{localeError:NP()}}var AP=()=>{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"},map:{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",mac:"MAC \\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 \\u10D5\\u10D4\\u10DA\\u10D8",base64url:"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8",json_string:"JSON \\u10D5\\u10D4\\u10DA\\u10D8",e164:"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",credit_card:"\\u10E1\\u10D0\\u10D9\\u10E0\\u10D4\\u10D3\\u10D8\\u10E2\\u10DD \\u10D1\\u10D0\\u10E0\\u10D0\\u10D7\\u10D8\\u10E1 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",currency_code:"\\u10D5\\u10D0\\u10DA\\u10E3\\u10E2\\u10D8\\u10E1 \\u10D9\\u10DD\\u10D3\\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"},i={nan:"NaN",number:"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8",string:"\\u10D5\\u10D4\\u10DA\\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=T(n.input),s=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 ${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 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 ${I(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 \\u10D5\\u10D4\\u10DA\\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 \\u10D5\\u10D4\\u10DA\\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 \\u10D5\\u10D4\\u10DA\\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 \\u10D5\\u10D4\\u10DA\\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 m$(){return{localeError:AP()}}var jP=()=>{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"},map:{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",mac:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 MAC",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",credit_card:"\\u179B\\u17C1\\u1781\\u1794\\u17D0\\u178E\\u17D2\\u178E\\u17A5\\u178E\\u1791\\u17B6\\u1793",currency_code:"\\u1780\\u17BC\\u178A\\u179A\\u17BC\\u1794\\u17B7\\u1799\\u1794\\u17D0\\u178E\\u17D2\\u178E",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 ll(){return{localeError:jP()}}function p$(){return ll()}var UP=()=>{let e={string:{unit:"\\u0C85\\u0C95\\u0CCD\\u0CB7\\u0CB0\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},file:{unit:"\\u0CAC\\u0CC8\\u0C9F\\u0CCD\\u200C\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},array:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},set:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},map:{unit:"entries",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"}};function t(n){return e[n]??null}let r={regex:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD",email:"email \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",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 \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95\\u0CA6 \\u0CB8\\u0CAE\\u0CAF",date:"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95",time:"ISO \\u0CB8\\u0CAE\\u0CAF",duration:"ISO \\u0C85\\u0CB5\\u0CA7\\u0CBF",ipv4:"IPv4 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",ipv6:"IPv6 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",mac:"MAC \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",cidrv4:"IPv4 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",cidrv6:"IPv6 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",base64:"base64-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",base64url:"base64url-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",json_string:"JSON\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",e164:"E.164 \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",credit_card:"\\u0C95\\u0CCD\\u0CB0\\u0CC6\\u0CA1\\u0CBF\\u0C9F\\u0CCD \\u0C95\\u0CBE\\u0CB0\\u0CCD\\u0CA1\\u0CCD \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",currency_code:"\\u0C95\\u0CB0\\u0CC6\\u0CA8\\u0CCD\\u0CB8\\u0CBF \\u0C95\\u0CCB\\u0CA1\\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${o}, \\u0CB8\\u0CCD\\u0CB5\\u0CC0\\u0C95\\u0CB0\\u0CBF\\u0CB8\\u0CBF\\u0CA6\\u0CA8\\u0CC1 ${s}`}case"invalid_value":return n.values.length===1?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${I(n.values[0])}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C86\\u0CAF\\u0CCD\\u0C95\\u0CC6: \\u0C87\\u0CB5\\u0CC1\\u0C97\\u0CB3\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C92\\u0C82\\u0CA6\\u0CA8\\u0CCD\\u0CA8\\u0CC1 \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin??"value"} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${o}${n.maximum.toString()} ${a.unit??"\\u0C85\\u0C82\\u0CB6\\u0C97\\u0CB3\\u0CC1"}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin??"value"} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${o}${n.minimum.toString()} ${a.unit}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.origin} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0CAA\\u0CCD\\u0CB0\\u0CBE\\u0CB0\\u0C82\\u0CAD\\u0CBF\\u0CB8\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${o.prefix}"`:o.format==="ends_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0C95\\u0CCA\\u0CA8\\u0CC6\\u0C97\\u0CCA\\u0CB3\\u0CCD\\u0CB3\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${o.suffix}"`:o.format==="includes"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C92\\u0CB3\\u0C97\\u0CCA\\u0C82\\u0CA1\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${o.includes}"`:o.format==="regex"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0CAE\\u0CBE\\u0CA6\\u0CB0\\u0CBF\\u0C97\\u0CC6 \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C95\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${o.pattern}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6: \\u0CAC\\u0CB9\\u0CC1\\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${n.divisor}`;case"unrecognized_keys":return`\\u0C97\\u0CC1\\u0CB0\\u0CC1\\u0CA4\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CA6 \\u0C95\\u0CC0 ${n.keys.length>1?"s":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0C95\\u0CC0 \\u0C87\\u0CA8\\u0CCD ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CA4\\u0CBE\\u0CB0\\u0CA4\\u0CAE\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF. \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD";case"invalid_element":return`\\u0CB0\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF ${n.origin}`;default:return"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD"}}};function f$(){return{localeError:UP()}}var LP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\uC2E0\\uC6A9\\uCE74\\uB4DC \\uBC88\\uD638",currency_code:"\\uD1B5\\uD654 \\uCF54\\uB4DC",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ${I(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",s=t(n.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${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",s=t(n.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${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 h$(){return{localeError:LP()}}var za=e=>e.charAt(0).toUpperCase()+e.slice(1);function g$(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 DP=()=>{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,s){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][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",mac:"MAC 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",credit_card:"kredito kortel\\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\\u016Bti ${I(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,g$(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${za(o??n.origin??"reik\\u0161m\\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\\u017Eesnis kaip";return`${za(o??n.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,g$(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${za(o??n.origin??"reik\\u0161m\\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\\u0173"}`;let s=n.inclusive?"ne ma\\u017Eesnis kaip":"didesnis kaip";return`${za(o??n.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${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`${za(o??n.origin??"reik\\u0161m\\u0117")} turi klaiding\\u0105 \\u012Fvest\\u012F`}default:return"Klaidinga \\u012Fvestis"}}};function v$(){return{localeError:DP()}}var MP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u0431\\u0440\\u043E\\u0458 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0438\\u0447\\u043A\\u0430",currency_code:"\\u043A\\u043E\\u0434 \\u043D\\u0430 \\u0432\\u0430\\u043B\\u0443\\u0442\\u0430",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`Invalid input: expected ${I(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 y$(){return{localeError:MP()}}var qP=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{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",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${I(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 S$(){return{localeError:qP()}}var VP=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},file:{unit:"\\u092C\\u093E\\u0907\\u091F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"}};function t(n){return e[n]??null}let r={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0907\\u092E\\u0947\\u0932 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u092E\\u093F\\u0924\\u093F \\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u092E\\u093F\\u0924\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",ipv6:"IPv6 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",mac:"MAC \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",cidrv4:"IPv4 \\u0926\\u093E\\u092F\\u0930\\u093E",cidrv6:"IPv6 \\u0926\\u093E\\u092F\\u0930\\u093E",base64:"base64-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",base64url:"base64url-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",e164:"E.164 \\u0928\\u092E\\u094D\\u092C\\u0930",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0928\\u092E\\u094D\\u092C\\u0930",currency_code:"\\u092E\\u0941\\u0926\\u094D\\u0930\\u093E \\u0915\\u094B\\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${o}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return n.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${I(n.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u0939\\u0930\\u0942 \\u092E\\u0927\\u094D\\u092F\\u0947 \\u090F\\u0915 ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${n.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u093E ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${n.origin??"\\u092E\\u093E\\u0928"} ${o}${n.maximum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${n.origin} \\u092E\\u093E ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${n.origin} ${o}${n.minimum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${o.prefix}" \\u092C\\u093E\\u091F \\u0938\\u0941\\u0930\\u0941 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${o.suffix}" \\u092E\\u093E \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${o.includes}" \\u0938\\u092E\\u093E\\u0935\\u0947\\u0936 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:o.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \\u0922\\u093E\\u0901\\u091A\\u093E ${o.pattern} \\u0938\\u0901\\u0917 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: ${n.divisor} \\u0915\\u094B \\u0917\\u0941\\u0923\\u091C \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940${n.keys.length>1?"\\u0939\\u0930\\u0942":""}: ${_(n.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940: ${n.origin} \\u092E\\u093E`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${n.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${n.origin} \\u092E\\u093E`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function _$(){return{localeError:VP()}}var ZP=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{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",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${I(n.values[0])}`:`Ongeldige optie: verwacht \\xE9\\xE9n van ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: 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 b$(){return{localeError:ZP()}}var FP=()=>{let e={string:{unit:"teikn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"element",verb:"\\xE5 innehalde"},set:{unit:"element",verb:"\\xE5 innehalde"},map:{unit:"element",verb:"\\xE5 innehalde"}};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-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tal",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${s}`:`Ugyldig input: forventa ${o}, fekk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventa ${I(n.values[0])}`:`Ugyldig val: forventa eitt av ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventa ${n.origin??"value"} til \\xE5 ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${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): forventa ${n.origin} til \\xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${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 slutte med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\\xE5 innehalde "${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 tal: m\\xE5 vere eit multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjende n\\xF8klar":"Ukjend 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 $$(){return{localeError:FP()}}var KP=()=>{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"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${I(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 k$(){return{localeError:KP()}}var BP=()=>{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"},map:{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",mac:"MAC 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",credit_card:"i\'tib\\xE2r kart\\u0131 numaras\\u0131",currency_code:"para birimi kodu",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\\xE2sit giren: umulan instanceof ${n.expected}, al\\u0131nan ${s}`:`F\\xE2sit giren: umulan ${o}, al\\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\\xE2sit giren: umulan ${I(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 R$(){return{localeError:BP()}}var JP=()=>{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"},map:{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",mac:"\\u062F MAC \\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",credit_card:"\\u062F \\u06A9\\u0631\\u06CC\\u0689\\u06CC\\u067C \\u06A9\\u0627\\u0631\\u062A \\u0634\\u0645\\u06CC\\u0631\\u0647",currency_code:"\\u062F \\u0627\\u0633\\u0639\\u0627\\u0631\\u0648 \\u06A9\\u0648\\u0689",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${I(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 w$(){return{localeError:JP()}}var HP=()=>{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"},map:{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",mac:"adres MAC",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",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${I(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 z$(){return{localeError:HP()}}var YP=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let r={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"o intervalo de endere\\xE7os IPv4",cidrv6:"o intervalo de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",currency_code:"o c\\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\\xFAmero",articles:i.masculine},int:{name:"n\\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\\xFAmero bigint",articles:i.masculine},symbol:{name:"s\\xEDmbolo",articles:i.masculine},undefined:{name:\'valor "undefined"\',articles:i.masculine},null:{name:\'valor "nulo"\',articles:i.masculine},never:{name:\'valor "never"\',articles:i.masculine},void:{name:\'valor "void"\',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tuplo",articles:i.masculine},record:{name:"registo",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"ficheiro",articles:i.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:i.masculine},nan:{name:\'valor "NaN"\',articles:i.masculine},function:{name:"fun\\xE7\\xE3o",articles:i.feminine}};function o(a,s){let c=n[a]??{name:`valor "${a}"`,articles:i.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),c=T(a.input),l=o(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${I(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Demasiado grande: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Demasiado pequeno: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function I$(){return{localeError:YP()}}var GP=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let r={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"a faixa de endere\\xE7os IPv4",cidrv6:"a faixa de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",currency_code:"o c\\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\\xFAmero",articles:i.masculine},int:{name:"n\\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\\xFAmero bigint",articles:i.masculine},symbol:{name:"s\\xEDmbolo",articles:i.masculine},undefined:{name:\'valor "undefined"\',articles:i.masculine},null:{name:\'valor "nulo"\',articles:i.masculine},never:{name:\'valor "never"\',articles:i.masculine},void:{name:\'valor "void"\',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tupla",articles:i.feminine},record:{name:"registro",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"arquivo",articles:i.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:i.masculine},nan:{name:\'valor "NaN"\',articles:i.masculine},function:{name:"fun\\xE7\\xE3o",articles:i.feminine}};function o(a,s){let c=n[a]??{name:`valor "${a}"`,articles:i.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),c=T(a.input),l=o(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${I(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Grande demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Pequeno demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function T$(){return{localeError:GP()}}var WP=()=>{let e={string:{unit:"caractere",verb:"s\\u0103 aib\\u0103"},file:{unit:"octe\\u021Bi",verb:"s\\u0103 aib\\u0103"},array:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},set:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},map:{unit:"intr\\u0103ri",verb:"s\\u0103 aib\\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\\u0103 de 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:"dat\\u0103 \\u0219i or\\u0103 ISO",date:"dat\\u0103 ISO",time:"or\\u0103 ISO",duration:"durat\\u0103 ISO",ipv4:"adres\\u0103 IPv4",ipv6:"adres\\u0103 IPv6",mac:"adres\\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\\u0219ir codat base64",base64url:"\\u0219ir codat base64url",json_string:"\\u0219ir JSON",e164:"num\\u0103r E.164",credit_card:"num\\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\\u0219ir",number:"num\\u0103r",boolean:"boolean",function:"func\\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\\u0103r mare",void:"void",never:"never",map:"hart\\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`Intrare invalid\\u0103: a\\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\\u0103: a\\u0219teptat ${I(n.values[0])}`:`Op\\u021Biune invalid\\u0103: a\\u0219teptat una dintre ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\\u0219teptat ca ${n.origin??"valoarea"} s\\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\\u0219teptat ca ${n.origin} s\\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0218ir invalid: trebuie s\\u0103 \\xEEnceap\\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\\u0218ir invalid: trebuie s\\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\\u0218ir invalid: trebuie s\\u0103 includ\\u0103 "${o.includes}"`:o.format==="regex"?`\\u0218ir invalid: trebuie s\\u0103 se potriveasc\\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\\u0103r invalid: trebuie s\\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${_(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\\u0103 \\xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\\u0103";case"invalid_element":return`Valoare invalid\\u0103 \\xEEn ${n.origin}`;default:return"Intrare invalid\\u0103"}}};function x$(){return{localeError:WP()}}function E$(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 XP=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",currency_code:"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u044B",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 s=Number(n.maximum),c=E$(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 ${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 s=Number(n.minimum),c=E$(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 ${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 P$(){return{localeError:XP()}}var QP=()=>{let e={string:{unit:"znakov",verb:"ma\\u0165"},file:{unit:"bajtov",verb:"ma\\u0165"},array:{unit:"prvkov",verb:"ma\\u0165"},set:{unit:"prvkov",verb:"ma\\u0165"},map:{unit:"polo\\u017Eiek",verb:"ma\\u0165"}};function t(n){return e[n]??null}let r={regex:"regul\\xE1rny 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:"d\\xE1tum a \\u010Das vo form\\xE1te ISO",date:"d\\xE1tum vo form\\xE1te ISO",time:"\\u010Das vo form\\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64",base64url:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64url",json_string:"re\\u0165azec vo form\\xE1te JSON",e164:"\\u010D\\xEDslo E.164",credit_card:"\\u010D\\xEDslo kreditnej karty",currency_code:"k\\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\\u010D\\xEDslo",string:"re\\u0165azec",function:"funkcia",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 instanceof ${n.expected}, obdr\\u017Ean\\xE9 ${s}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${o}, obdr\\u017Ean\\xE9 ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${I(n.values[0])}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE1 jedna z hodn\\xF4t ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${n.origin??"hodnota"} mus\\xED ma\\u0165 ${o}${n.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${n.origin??"hodnota"} mus\\xED by\\u0165 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${n.origin??"hodnota"} mus\\xED ma\\u0165 ${o}${n.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${n.origin??"hodnota"} mus\\xED by\\u0165 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED za\\u010D\\xEDna\\u0165 na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED kon\\u010Di\\u0165 na "${o.suffix}"`:o.format==="includes"?`Neplatn\\xFD re\\u0165azec: mus\\xED obsahova\\u0165 "${o.includes}"`:o.format==="regex"?`Neplatn\\xFD re\\u0165azec: mus\\xED zodpoveda\\u0165 vzoru ${o.pattern}`:`Neplatn\\xFD form\\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED by\\u0165 n\\xE1sobkom ${n.divisor}`;case"unrecognized_keys":return`Nezn\\xE1me kl\\xFA\\u010De: ${_(n.keys,", ")}`;case"invalid_key":return`Neplatn\\xFD kl\\xFA\\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 O$(){return{localeError:QP()}}var e0=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{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",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \\u0161tevilka",credit_card:"\\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\\u010Dakovano ${I(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 C$(){return{localeError:e0()}}var t0=()=>{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"},map:{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-adress",ipv6:"IPv6-adress",mac:"MAC-adress",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",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\\xF6rv\\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${I(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 N$(){return{localeError:t0()}}var n0=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u0B95\\u0B9F\\u0BA9\\u0BCD \\u0B85\\u0B9F\\u0BCD\\u0B9F\\u0BC8 \\u0B8E\\u0BA3\\u0BCD",currency_code:"\\u0BA8\\u0BBE\\u0BA3\\u0BAF\\u0B95\\u0BCD \\u0B95\\u0BC1\\u0BB1\\u0BBF\\u0BAF\\u0BC0\\u0B9F\\u0BC1",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 A$(){return{localeError:n0()}}var r0=()=>{let e={string:{unit:"\\u0430\\u043B\\u043E\\u043C\\u0430\\u0442",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},file:{unit:"\\u0431\\u0430\\u0439\\u0442",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},array:{unit:"\\u0443\\u043D\\u0441\\u0443\\u0440",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},set:{unit:"\\u0443\\u043D\\u0441\\u0443\\u0440",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"},map:{unit:"\\u0441\\u0430\\u0431\\u0442",verb:"\\u0434\\u043E\\u0448\\u0442\\u0430 \\u0431\\u043E\\u0448\\u0430\\u0434"}};function t(n){return e[n]??null}let r={regex:"\\u0432\\u0443\\u0440\\u0443\\u0434",email:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 email",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u04B7\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0441\\u0430\\u043D\\u0430\\u0432\\u0443 \\u0432\\u0430\\u049B\\u0442\\u0438 ISO",date:"\\u0441\\u0430\\u043D\\u0430\\u0438 ISO",time:"\\u0432\\u0430\\u049B\\u0442\\u0438 ISO",duration:"\\u0434\\u0430\\u0432\\u043E\\u043C\\u043D\\u043E\\u043A\\u0438\\u0438 ISO",ipv4:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 IPv4",ipv6:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 IPv6",mac:"\\u0441\\u0443\\u0440\\u043E\\u0493\\u0430\\u0438 MAC",cidrv4:"\\u043C\\u0430\\u04B3\\u0434\\u0443\\u0434\\u0430\\u0438 IPv4",cidrv6:"\\u043C\\u0430\\u04B3\\u0434\\u0443\\u0434\\u0430\\u0438 IPv6",base64:"\\u0441\\u0430\\u0442\\u0440\\u0438 \\u0434\\u0430\\u0440 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0438 base64",base64url:"\\u0441\\u0430\\u0442\\u0440\\u0438 \\u0434\\u0430\\u0440 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0438 base64url",json_string:"\\u0441\\u0430\\u0442\\u0440\\u0438 JSON",e164:"\\u0440\\u0430\\u049B\\u0430\\u043C\\u0438 E.164",credit_card:"\\u0440\\u0430\\u049B\\u0430\\u043C\\u0438 \\u043A\\u043E\\u0440\\u0442\\u0438 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u04E3",currency_code:"\\u0440\\u0430\\u043C\\u0437\\u0438 \\u0430\\u0441\\u044A\\u043E\\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\\u0432\\u0443\\u0440\\u0443\\u0434"},i={nan:"NaN",number:"\\u0440\\u0430\\u049B\\u0430\\u043C",string:"\\u0441\\u0430\\u0442\\u0440",array:"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432",object:"\\u043E\\u0431\\u044A\\u0435\\u043A\\u0442",date:"\\u0441\\u0430\\u043D\\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: ${o} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442, ${s} \\u0433\\u0438\\u0440\\u0438\\u0444\\u0442\\u0430 \\u0448\\u0443\\u0434`}case"invalid_value":return n.values.length===1?`\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: ${I(n.values[0])} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`:`\\u0418\\u043D\\u0442\\u0438\\u0445\\u043E\\u0431\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u044F\\u043A\\u0435 \\u0430\\u0437 ${_(n.values,"|")} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\\u0425\\u0435\\u043B\\u0435 \\u043A\\u0430\\u043B\\u043E\\u043D: ${n.origin??"\\u049B\\u0438\\u043C\\u0430\\u0442"} \\u0431\\u043E\\u044F\\u0434 ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`\\u0425\\u0435\\u043B\\u0435 \\u043A\\u0430\\u043B\\u043E\\u043D: ${n.origin??"\\u049B\\u0438\\u043C\\u0430\\u0442"} \\u0431\\u043E\\u044F\\u0434 ${o}${n.maximum.toString()} \\u0431\\u043E\\u0448\\u0430\\u0434`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\\u0425\\u0435\\u043B\\u0435 \\u0445\\u0443\\u0440\\u0434: ${n.origin} \\u0431\\u043E\\u044F\\u0434 ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`\\u0425\\u0435\\u043B\\u0435 \\u0445\\u0443\\u0440\\u0434: ${n.origin} \\u0431\\u043E\\u044F\\u0434 ${o}${n.minimum.toString()} \\u0431\\u043E\\u0448\\u0430\\u0434`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u043E "${o.prefix}" \\u043E\\u0493\\u043E\\u0437 \\u0448\\u0430\\u0432\\u0430\\u0434`:o.format==="ends_with"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u043E "${o.suffix}" \\u0430\\u043D\\u04B7\\u043E\\u043C \\u0451\\u0431\\u0430\\u0434`:o.format==="includes"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 "${o.includes}"-\\u0440\\u043E \\u0434\\u0430\\u0440 \\u0431\\u0430\\u0440 \\u0433\\u0438\\u0440\\u0430\\u0434`:o.format==="regex"?`\\u0421\\u0430\\u0442\\u0440\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u0430 \\u043D\\u0430\\u043C\\u0443\\u043D\\u0430\\u0438 ${o.pattern} \\u043C\\u0443\\u0432\\u043E\\u0444\\u0438\\u049B\\u0430\\u0442 \\u043A\\u0443\\u043D\\u0430\\u0434`:`${r[o.format]??n.format}-\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442`}case"not_multiple_of":return`\\u0420\\u0430\\u049B\\u0430\\u043C\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442: \\u0431\\u043E\\u044F\\u0434 \\u0431\\u0430 ${n.divisor} \\u0431\\u0435 \\u0431\\u0430\\u049B\\u0438\\u044F \\u0442\\u0430\\u049B\\u0441\\u0438\\u043C \\u0448\\u0430\\u0432\\u0430\\u0434`;case"unrecognized_keys":return`\\u041A\\u0430\\u043B\\u0438\\u0434${n.keys.length>1?"\\u04B3\\u043E\\u0438":"\\u0438"} \\u043D\\u043E\\u043C\\u0430\\u044A\\u043B\\u0443\\u043C: ${_(n.keys,", ")}`;case"invalid_key":return`\\u041A\\u0430\\u043B\\u0438\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442 \\u0434\\u0430\\u0440 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\\u049A\\u0438\\u043C\\u0430\\u0442\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442\\u0438 \\u0434\\u0438\\u0441\\u043A\\u0440\\u0438\\u043C\\u0438\\u043D\\u0430\\u0442\\u043E\\u0440: ${n.options.map(a=>`\'${a}\'`).join(" | ")} \\u0438\\u043D\\u0442\\u0438\\u0437\\u043E\\u0440 \\u043C\\u0435\\u0440\\u0430\\u0444\\u0442`:"\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442";case"invalid_element":return`\\u049A\\u0438\\u043C\\u0430\\u0442\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442 \\u0434\\u0430\\u0440 ${n.origin}`;default:return"\\u0412\\u0443\\u0440\\u0443\\u0434\\u0438 \\u043D\\u043E\\u0434\\u0443\\u0440\\u0443\\u0441\\u0442"}}};function j$(){return{localeError:r0()}}var i0=()=>{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"},map:{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",mac:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 MAC",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)",credit_card:"\\u0E2B\\u0E21\\u0E32\\u0E22\\u0E40\\u0E25\\u0E02\\u0E1A\\u0E31\\u0E15\\u0E23\\u0E40\\u0E04\\u0E23\\u0E14\\u0E34\\u0E15",currency_code:"\\u0E23\\u0E2B\\u0E31\\u0E2A\\u0E2A\\u0E01\\u0E38\\u0E25\\u0E40\\u0E07\\u0E34\\u0E19",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${I(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 U$(){return{localeError:i0()}}var o0=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(n){return e[n]??null}let r={regex:"giri\\u015F",email:"e-po\\xE7ta salgysy",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 sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \\u015Fifrlenen setir",base64url:"base64url bilen \\u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\\u0148 nomeri",currency_code:"wal\\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\\u015Fablon"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=T(n.input),s=i[a]??a;return`N\\xE4dogry baha: gara\\u015Fylan ${o} \\xFDerine ${s} alyndy`}case"invalid_value":return n.values.length===1?`N\\xE4dogry baha: ${I(n.values[0])} bolmaly`:`N\\xE4dogry sa\\xFDlaw: a\\u015Fakdakylardan biri bolmaly: ${_(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Has uly: gara\\u015Fyl\\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\\u015Fyl\\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`N\\xE4dogry setir: "${o.prefix}" bilen ba\\u015Flamaly`:o.format==="ends_with"?`N\\xE4dogry setir: "${o.suffix}" bilen gutarmaly`:o.format==="includes"?`N\\xE4dogry setir: "${o.includes}" saklamaly`:o.format==="regex"?`N\\xE4dogry setir: ${o.pattern} nusga la\\xFDyk bolmaly`:`N\\xE4dogry ${r[o.format]??n.format}`}case"not_multiple_of":return`N\\xE4dogry san: ${n.divisor} bilen galyndysyz b\\xF6l\\xFCnmeli`;case"unrecognized_keys":return`Tanalma\\xFDan a\\xE7ar${n.keys.length>1?"lar":""}: ${_(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\\xE7inde n\\xE4dogry a\\xE7ar`;case"invalid_union":return"N\\xE4dogry baha";case"invalid_element":return`${n.origin} i\\xE7inde n\\xE4dogry baha`;default:return"N\\xE4dogry baha"}}};function L$(){return{localeError:o0()}}var a0=()=>{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"},map:{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",mac:"MAC 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",credit_card:"kredi kart\\u0131 numaras\\u0131",currency_code:"para birimi kodu",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\\xE7ersiz de\\u011Fer: beklenen instanceof ${n.expected}, al\\u0131nan ${s}`:`Ge\\xE7ersiz de\\u011Fer: beklenen ${o}, al\\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\\xE7ersiz de\\u011Fer: beklenen ${I(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 D$(){return{localeError:a0()}}var s0=()=>{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"},map:{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",mac:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 MAC",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",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0457 \\u043A\\u0430\\u0440\\u0442\\u043A\\u0438",currency_code:"\\u043A\\u043E\\u0434 \\u0432\\u0430\\u043B\\u044E\\u0442\\u0438",iban:"IBAN",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=T(n.input),s=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 ${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 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 ${I(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 ul(){return{localeError:s0()}}function M$(){return ul()}var c0=()=>{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"},map:{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",mac:"\\u0627\\u06CC\\u0645 \\u0627\\u06D2 \\u0633\\u06CC \\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",credit_card:"\\u06A9\\u0631\\u06CC\\u0688\\u0679 \\u06A9\\u0627\\u0631\\u0688 \\u0646\\u0645\\u0628\\u0631",currency_code:"\\u06A9\\u0631\\u0646\\u0633\\u06CC \\u06A9\\u0648\\u0688",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${I(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 q$(){return{localeError:c0()}}var l0=()=>{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"},map:{unit:"yozuv",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",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\\u2018g\\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\\u2018g\\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\\u2018g\\u2018ri kirish: kutilgan ${I(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 V$(){return{localeError:l0()}}var u0=()=>{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"},map:{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",mac:"\\u0111\\u1ECBa ch\\u1EC9 MAC",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",credit_card:"s\\u1ED1 th\\u1EBB t\\xEDn d\\u1EE5ng",currency_code:"m\\xE3 ti\\u1EC1n t\\u1EC7",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${I(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 Z$(){return{localeError:u0()}}var d0=()=>{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"},map:{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",mac:"MAC\\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",credit_card:"\\u4FE1\\u7528\\u5361\\u53F7",currency_code:"\\u8D27\\u5E01\\u4EE3\\u7801",iban:"IBAN",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=T(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B instanceof ${n.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 n.values.length===1?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${I(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 F$(){return{localeError:d0()}}var m0=()=>{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"},map:{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",mac:"MAC \\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",credit_card:"\\u4FE1\\u7528\\u5361\\u865F",currency_code:"\\u8CA8\\u5E63\\u4EE3\\u78BC",iban:"IBAN",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=T(n.input),s=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 ${s}`:`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${o}\\uFF0C\\u4F46\\u6536\\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${I(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 K$(){return{localeError:m0()}}var p0=()=>{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"},map:{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",mac:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC MAC",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",credit_card:"n\\u1ECDmba kaadi gbese",currency_code:"koodu ow\\xF3",iban:"IBAN",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=T(n.input),s=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 ${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 n.values.length===1?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${I(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 B$(){return{localeError:p0()}}var J$,Mh=Symbol("ZodOutput"),qh=Symbol("ZodInput"),dl=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 ml(){return new dl}(J$=globalThis).__zod_globalRegistry??(J$.__zod_globalRegistry=ml());var Le=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),H$=Symbol.for("zod.compile.fallback"),Ct=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},me=class extends Error{constructor(t,r=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=r}};function h0(e,t){try{return fl(e,{assertOnly:!0})}catch{return t}}function Kh(e,t){try{let r=fl(e),i=pl(e,r);return i._zod.bag.validator=h0(e,r),i}catch(r){if(t?.strict)throw r;return e}}function pl(e,t){if(al(e))throw new me("a schema whose subtree contains a reference cycle");let r=pe(e),i=e._zod.run,n=i.__originalRun??i,o=(a,s)=>{if(s?.async||s?.direction==="backward"||s?.skipChecks||s?.[H$]||s&&sl(s,a.value))return n(a,s);let c=t(a.value);return c!==et?(a.value=c,a):(s&&(s[H$]=!0),n(a,s))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=t,r._zod.run=o,i.__originalRun||g0(r,e,t),r}function g0(e,t,r){let i=e,n=t;if(typeof n.safeParse=="function"){let o=n.safeParse;i.safeParse=(a,s)=>{let c=r(a);return c!==et?{success:!0,data:c}:o(a,s)}}if(typeof n.parse=="function"){let o=n.parse;i.parse=(a,s)=>{let c=r(a);return c!==et?c:o(a,s)}}}function fl(e,t){let r=!0;try{r=al(e)}catch{}if(r)throw new me("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new _r(["input"]),o=Se(n,i,e,"input",!t?.assertOnly);n.write(o===null?"return true;":`return ${o};`);let a=["INVALID",...i.constants.keys()],s=[et,...i.constants.values()],c=n.content.join(`\n`),l=t?.debug?a.length>0?`// Constants: ${a.join(", ")}\n${c}`:c:"",u=Function,m=`return (input) => {\n${c}\n}`,p;try{p=new u(...a,m)(...s)}catch(f){throw new me(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(p.code=l),p.definite=i.definite,p}function ne(e,t){for(let[i,n]of e.constants)if(n===t)return i;let r=`c${e.constantCounter++}`;return e.constants.set(r,t),r}function kr(e,t){return e.definite=!1,ne(e,t)}function W(e){return`v${e.varCounter++}`}function v0(e,t){let r=e._zod.run({value:t,issues:[]},{});if(r&&typeof r.then=="function")return et;let i=r;return i.issues.length===0?i.value:et}function Ze(e,t,r,i,n=!0){let o=e.content.length,a=t.constants.size,s=t.constantCounter,c=t.varCounter;try{return Se(e,t,r,i,n)}catch(l){if(!(l instanceof me)||!l.islandable)throw l;if(e.content.length=o,t.constants.size>a){let u=Array.from(t.constants.keys()).slice(a);for(let m of u)t.constants.delete(m)}return t.constantCounter=s,t.varCounter=c,y0(e,t,r,i)}}function y0(e,t,r,i){t.definite=!1;let n=ne(t,r),o=ne(t,v0),a=W(t);return e.write(`const ${a} = ${o}(${n}, ${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var S0=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function _0(e,t,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let a of n){let s=a._zod.def;if(s.when&&!S0.has(s.check))throw new me(\'check with a custom "when" condition\');switch(s.check){case"greater_than":b0(e,t,s,o);break;case"less_than":$0(e,t,s,o);break;case"multiple_of":k0(e,t,s,o);break;case"number_format":ek(e,s,o);break;case"min_length":{let c=On(s.minimum,"min_length"),l=Vh(e,t,o,`${o}.length >= ${c} && ${o}.length < ${s.minimum*2}`);e.write(`if (${l} < ${c}) return INVALID;`);break}case"max_length":{let c=On(s.maximum,"max_length"),l=Vh(e,t,o,`${o}.length > ${c}`);e.write(`if (${l} > ${c}) return INVALID;`);break}case"length_equals":{let c=On(s.length,"length_equals"),l=Vh(e,t,o,`${o}.length >= ${c} && ${o}.length <= ${s.length*2}`);e.write(`if (${l} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${On(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${On(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${On(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=tk(e,t,s,o);break;case"custom":o=x0(e,t,a,o);break;case"bigint_format":R0(e,s,o);break;case"mime_type":w0(e,t,s,o);break;case"property":I0(e,t,s,o);break;case"properties":z0(e,t,s,o);break;case"overwrite":{let c=W(t);T0(e,t,a,o,c),o=c;break}default:throw new me(`check type ${s.check}`)}}return o}function Vh(e,t,r,i){let n=ne(t,yr),o=W(t);return e.write(`const ${o} = typeof ${r} === "string" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function On(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new me(`${t} bound of type ${typeof e}`);return`${e}`}function Q$(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new me("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new me("comparison check with Invalid Date bound");return ne(e,t)}throw new me(`comparison check bound of type ${typeof t}`)}function b0(e,t,r,i){let n=r.inclusive?"<":"<=";e.write(`if (${i} ${n} ${Q$(t,r.value)}) return INVALID;`)}function $0(e,t,r,i){let n=r.inclusive?">":">=";e.write(`if (${i} ${n} ${Q$(t,r.value)}) return INVALID;`)}function k0(e,t,r,i){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new me("multiple_of check with a zero divisor");e.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=ne(t,Go);e.write(`if (${n}(${i}, ${On(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function ek(e,t,r){let i=t.format;switch(i){case"safeint":e.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new me(`number format ${i}`)}}function R0(e,t,r){let i=t.format;if(i)switch(i){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new me(`bigint format ${i}`)}}function w0(e,t,r,i){let n=r.mime;if(n&&n.length>0){let o=ne(t,new Set(n));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function z0(e,t,r,i){if(r.when)throw new me(\'check with a custom "when" condition\');e.write(`if (${i} == null) return INVALID;`);let n=r.shape;for(let o of Reflect.ownKeys(n)){let a=typeof o=="symbol"?ne(t,o):Xe(o),s=W(t);e.write(`const ${s} = ${i}[${a}];`),Ze(e,t,n[o],s,!1)}}function I0(e,t,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;Se(e,t,r.schema,n)}function T0(e,t,r,i,n){let o=r._zod.def.tx;if(!o)throw new me("overwrite check without a transform function");if(Rr(o))throw new Ct("z.compile: async overwrite transforms are not supported");let a=ne(t,o);e.write(`const ${n} = ${a}(${i});`)}function Zh(){throw new ct}function Bh(e){this.issues.push(e)}function x0(e,t,r,i){let n=r._zod.def;if(n.fn){if(Rr(n.fn))throw new Ct("z.compile: async .refine() predicates are not supported");let o=kr(t,n.fn),a=ne(t,Zh),s=W(t);return e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),i}if(r._zod.check){if(Rr(r._zod.check))throw new Ct("z.compile: async .superRefine() / check functions are not supported");let o=r._zod.check,s=kr(t,l=>{let u={value:l,issues:[],addIssue:Bh};return o(u)instanceof Promise&&Zh(),u.issues.length===0?u.value:et}),c=W(t);return e.write(`const ${c} = ${s}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new me("custom check without a predicate or check function")}var E0=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function tk(e,t,r,i,n=!0){let o=r.format;if(o==="base64"){let l=ne(t,va);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="base64url"){let l=ne(t,Jc);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="jwt"){let l=ne(t,Gc),u=ne(t,r.alg??null);return e.write(`if (!${l}(${i}, ${u})) return INVALID;`),i}if(o==="ipv6"){let l=ne(t,ga);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="cidrv6"){let l=ne(t,Kc);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="credit_card"){let l=ne(t,Hc);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(o==="iban"){let l=ne(t,Yc);return e.write(`if (!${l}(${i})) return INVALID;`),i}let a=r;if(o==="url"||o==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let l=ne(t,Vc),u=ne(t,r),m=W(t),p=W(t);if(e.write(`const ${m} = ${i}.trim();`),e.write(`const ${p} = ${l}(${m}, ${u});`),e.write(`if (typeof ${p} === "number") return INVALID;`),a.hostname!==void 0){let v=ne(t,Zc);e.write(`if (!${v}(${p}, ${u}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let v=ne(t,Fc);e.write(`if (!${v}(${p}, ${u}.protocol)) return INVALID;`)}if(!n)return null;let f=W(t),h=a.normalize?`${p}.href`:`${ne(t,ha)}(${m})`;return e.write(`const ${f} = ${h};`),f}let s=r.fn;if(s){if(Rr(s))throw new me(`async string format ${o}`);let l=ne(t,s);return e.write(`if (!${l}(${i})) return INVALID;`),i}if(E0.has(o)&&r.pattern){let l=ne(t,r.pattern);return e.write(`${l}.lastIndex = 0;`),e.write(`if (!${l}.test(${i})) return INVALID;`),i}let c=r.format;switch(c){case"regex":throw new me("regex format without a pattern");case"lowercase":e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${i}.includes(${Xe(r.includes)})) return INVALID;`);break;case"starts_with":{let l=r.prefix;e.write(`if (${i}.slice(0, ${l.length}) !== ${Xe(l)}) return INVALID;`);break}case"ends_with":{let l=r.suffix;e.write(`if (${i}.slice(-${l.length}) !== ${Xe(l)}) return INVALID;`);break}default:throw new me(`string format ${c}`)}return i}function Se(e,t,r,i,n=!0){let o=r._zod.def,a=o.type;if(o.coerce)throw new me(`coercion (z.coerce.${a}())`);let s=n||!!o.checks?.length,c;switch(a){case"string":c=P0(e,t,r,i,s);break;case"number":c=O0(e,r,i);break;case"boolean":c=C0(e,i);break;case"bigint":c=N0(e,r,i);break;case"symbol":c=A0(e,i);break;case"undefined":c=j0(e,i);break;case"null":c=U0(e,i);break;case"any":case"unknown":c=i;break;case"never":e.write("return INVALID;"),c=i;break;case"void":c=L0(e,i);break;case"nan":c=D0(e,i);break;case"date":c=M0(e,i);break;case"object":c=q0(e,t,r,i,s);break;case"optional":c=V0(e,t,r,i,s);break;case"nullable":c=K0(e,t,r,i,s);break;case"array":c=B0(e,t,r,i,s);break;case"literal":c=J0(e,t,r,i);break;case"enum":c=H0(e,t,r,i);break;case"readonly":{let l=G$(e,t,r,i),u=W(t);e.write(`const ${u} = Object.freeze(${l});`),c=u;break}case"success":G$(e,t,r,i),c="true";break;case"default":case"prefault":c=Y0(e,t,r,i);break;case"nonoptional":c=G0(e,t,r,i);break;case"tuple":c=W0(e,t,r,i);break;case"union":c=X0(e,t,r,i);break;case"intersection":c=tO(e,t,r,i);break;case"record":c=nO(e,t,r,i);break;case"map":c=iO(e,t,r,i);break;case"set":c=oO(e,t,r,i);break;case"file":c=aO(e,i);break;case"template_literal":c=sO(e,t,r,i);break;case"lazy":c=cO(e,t,r,i);break;case"pipe":c=lO(e,t,r,i);break;case"custom":c=uO(e,t,r,i);break;case"transform":c=pO(e,t,r,i);break;case"catch":c=mO(e,t,r,i);break;default:throw new me(`schema type ${a}`)}return c===null?null:_0(e,t,r,c)}function P0(e,t,r,i,n=!0){e.write(`if (typeof ${i} !== "string") return INVALID;`);let o=r._zod.def;return o.format===void 0?i:tk(e,t,o,i,n)}function O0(e,t,r){e.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);let i=t._zod.def;return i.check==="number_format"&&i.format&&ek(e,{format:i.format},r),r}function C0(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function N0(e,t,r){e.write(`if (typeof ${r} !== "bigint") return INVALID;`);let i=t._zod.def;if(i.format)switch(i.format){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function A0(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function j0(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function U0(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function L0(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function D0(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function M0(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function q0(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let a=o.shape,s=Object.keys(a),c=Object.getOwnPropertySymbols(a),l=c.length?[...s,...c]:s,u=w=>typeof w=="symbol"?ne(t,w):Xe(w),m=w=>typeof w=="symbol"?`[${u(w)}]`:Xe(w),p=a;if(s.includes("__proto__"))throw new me(\'object shape key "__proto__"\');let f=new Map;for(let w of l){let E=p[w],D=u(w),F=W(t);if(e.write(`const ${F} = ${i}[${D}];`),E._zod.optin!==void 0){let N=W(t);e.write(`let ${N} = (() => {`),e.indented(te=>{let ie=Ze(te,t,E,F);te.write(`return ${ie};`)}),e.write("})();"),E._zod.optout==="optional"?(e.write(`if (${N} === INVALID) {`),e.indented(te=>{te.write(`if (${D} in ${i}) return INVALID;`),te.write(`${N} = undefined;`)}),e.write("}")):e.write(`if (${N} === INVALID) return INVALID;`),f.set(w,N)}else{F0(E)&&e.write(`if (!(${D} in ${i})) return INVALID;`);let N=Ze(e,t,E,F,n);N!==null&&f.set(w,N)}}let h=o.catchall,v="none";if(h){let w=h._zod.def.type;if(w==="never"){let E=s.map(D=>`k !== ${Xe(D)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(D=>{D.write(`if (${E}) return INVALID;`)}),e.write("}")}else(w==="unknown"||w==="any")&&!h._zod.def.checks?.length?v="passthrough":v="schema"}let y=W(t),R=l.some(w=>Y$(p[w])||Fh(p[w]));if(!n){if(v==="schema"){let w=s.length>0?ne(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{E.write(\'if (k === "__proto__") continue;\'),w&&E.write(`if (${w}.has(k)) continue;`);let D=W(t);E.write(`const ${D} = ${i}[k];`),Ze(E,t,h,D,!1)}),e.write("}")}return null}if(R){e.write(`const ${y} = {};`);for(let w of l){let E=u(w),D=f.get(w);Fh(p[w])?e.write(`if (${E} in ${i}) ${y}[${E}] = ${D};`):Y$(p[w])?e.write(`if (${D} !== undefined || ${E} in ${i}) ${y}[${E}] = ${D};`):e.write(`${y}[${E}] = ${D};`)}}else{let w=l.map(E=>`${m(E)}: ${f.get(E)}`).join(", ");e.write(`const ${y} = { ${w} };`)}if(v!=="none"){let w=s.length>0?ne(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{if(E.write(\'if (k === "__proto__") continue;\'),w&&E.write(`if (${w}.has(k)) continue;`),v==="passthrough")E.write(`${y}[k] = ${i}[k];`);else{let D=W(t);E.write(`const ${D} = ${i}[k];`);let F=Ze(E,t,h,D);E.write(`${y}[k] = ${F};`)}}),e.write("}")}return y}function V0(e,t,r,i,n=!0){let o=r._zod.def;if(Z0(r))return Se(e,t,o.innerType,i,n);if(o.innerType._zod.optin==="defaulted"){let s=W(t),c=W(t);return e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(l=>{l.write(`const ${c} = (() => {`),l.indented(u=>{let m=Se(u,t,o.innerType,i);u.write(`return ${m};`)}),l.write("})();"),l.write(`if (${c} !== INVALID) ${s} = ${c};`)}),e.write("} else {"),e.indented(l=>{let u=Se(l,t,o.innerType,i);l.write(`${s} = ${u};`)}),e.write("}"),s}let a=n?W(t):null;return a&&e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(s=>{let c=Se(s,t,o.innerType,i,n);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function Z0(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function F0(e){return e._zod.optin===void 0&&$r(e)}function $r(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?$r(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?$r(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some($r):!0;case"intersection":return!t.left||!t.right?!0:$r(t.left)&&$r(t.right);case"pipe":return t.in?$r(t.in):!0;default:return!0}}function Fh(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function Y$(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&wi(e)}function wi(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?wi(t.innerType):!0;case"union":return t.options?t.options.some(wi):!0;case"intersection":return!t.left||!t.right||wi(t.left)||wi(t.right);case"pipe":return t.out?wi(t.out):!0;default:return!0}}function K0(e,t,r,i,n=!0){let o=r._zod.def,a=n?W(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${i} !== null) {`),e.indented(s=>{let c=Se(s,t,o.innerType,i,n);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function Jh(e,t,r){for(let[i,n]of hi(t._zod.def.checks))e.write(`if (${r} > ${On(i,n._zod.def.check)}) return INVALID;`)}function B0(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`),Jh(e,r,`${i}.length`);let a=n?W(t):null,s=W(t),c=W(t);return a&&e.write(`const ${a} = new Array(${i}.length);`),e.write(`for (let ${s} = 0; ${s} < ${i}.length; ${s}++) {`),e.indented(l=>{l.write(`const ${c} = ${i}[${s}];`);let u=Ze(l,t,o.element,c,n);a&&u!==null&&l.write(`${a}[${s}] = ${u};`)}),e.write("}"),a}function J0(e,t,r,i){let o=r._zod.def.values;if(o.length!==1){let s=ne(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}let a=o[0];if(typeof a=="number"&&Number.isNaN(a)){let s=ne(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}if(typeof a=="string")e.write(`if (${i} !== ${Xe(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${i} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${i} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${i} !== ${a}n) return INVALID;`);else throw new me(`literal type ${typeof a}`);return i}function H0(e,t,r,i){let n=r._zod.values;if(!n)throw new me("enum schema without enumerated values");let o=ne(t,n);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function G$(e,t,r,i){let n=r._zod.def;return Se(e,t,n.innerType,i)}function Y0(e,t,r,i){let n=r._zod.def,a=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!a)return Se(e,t,n.innerType,i);let c=ne(t,a),l=W(t);return e.write(`let ${l} = ${i};`),e.write(`if (${i} === undefined) ${l} = ${c}();`),Se(e,t,n.innerType,l)}let s=W(t);if(a){let c=ne(t,a),l=ne(t,Wo);e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(u=>{u.write(`${s} = ${l}(${c}());`)}),e.write("} else {"),e.indented(u=>{let m=Se(u,t,n.innerType,i);u.write(`${s} = ${m} === undefined ? ${l}(${c}()) : ${m};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(c=>{let l=Se(c,t,n.innerType,i);c.write(`${s} = ${l};`)}),e.write("}");return s}function G0(e,t,r,i){let n=r._zod.def,o=Se(e,t,n.innerType,i),a=W(t);return e.write(`const ${a} = ${o};`),e.write(`if (${a} === undefined) return INVALID;`),a}function W0(e,t,r,i){let n=r._zod.def,o=n.items,a=n.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let s=W$(o,"optin"),c=W$(o,"optout");a?e.write(`if (${i}.length < ${s}) return INVALID;`):e.write(`if (${i}.length < ${s} || ${i}.length > ${o.length}) return INVALID;`);let l=W(t);e.write(`const ${l} = [];`);for(let u=0;u<o.length;u++){let m=o[u];if(u>=c)e.write(`if (${l}.length === ${u}) {`),e.indented(p=>{p.write(`if (${u} < ${i}.length) {`),p.indented(f=>{let h=W(t);f.write(`const ${h} = ${i}[${u}];`);let v=Ze(f,t,m,h);f.write(`${l}[${u}] = ${v};`)}),p.write("} else {"),p.indented(f=>{if(Fh(m)){f.write(`${l}.length = ${u};`);return}let h=W(t),v=W(t);f.write(`const ${h} = undefined;`),f.write(`const ${v} = (() => {`),f.indented(y=>{let R=Ze(y,t,m,h);y.write(`return ${R};`)}),f.write("})();"),f.write(`if (${v} === INVALID || ${v} === undefined) ${l}.length = ${u};`),f.write(`else ${l}[${u}] = ${v};`)}),p.write("}")}),e.write("}");else{let p=W(t);e.write(`const ${p} = ${i}[${u}];`);let f=Ze(e,t,m,p);e.write(`${l}[${u}] = ${f};`)}}if(a){let u=W(t),m=W(t);e.write(`for (let ${u} = ${o.length}; ${u} < ${i}.length; ${u}++) {`),e.indented(p=>{p.write(`const ${m} = ${i}[${u}];`);let f=Ze(p,t,a,m);p.write(`${l}[${u}] = ${f};`)}),e.write("}")}return l}function W$(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function X0(e,t,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return Q0(e,t,n,i);if(n.inclusive===!1)throw new me("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return Se(e,t,o[0],i);if(o.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(o.flatMap(u=>u._zod.def.values)),l=ne(t,c);return e.write(`if (!${l}.has(${i})) return INVALID;`),i}let s=W(t);e.write(`let ${s};`);for(let c=0;c<o.length;c++){let l=o[c];c===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(u=>{let m=Se(u,t,l,i);u.write(`return ${m};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function Q0(e,t,r,i){if(r.unionFallback)throw new me("discriminated union with unionFallback");if(r.options.length===0)return e.write("return INVALID;"),i;let n=W(t),o=W(t);e.write(`const ${n} = ${i}?.[${Xe(r.discriminator)}];`),e.write(`let ${o};`);let a=!0,s=new Set;for(let c of r.options){let l=c._zod.propValues?.[r.discriminator];if(!l||l.size===0)throw new me("discriminated union option without static discriminator values");for(let p of l){if(s.has(p))throw new me(`duplicate discriminator value ${String(p)}`);s.add(p)}let u=Array.from(l,p=>eO(t,n,p)),m=a?"if":"else if";e.write(`${m} (${u.join(" || ")}) {`),e.indented(p=>{let f=Se(p,t,c,i);p.write(`${o} = ${f};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),o}function eO(e,t,r){if(typeof r=="string")return`${t} === ${Xe(r)}`;if(typeof r=="number")return Number.isNaN(r)?`Number.isNaN(${t})`:`${t} === ${r}`;if(typeof r=="boolean")return`${t} === ${r}`;if(r===null)return`${t} === null`;if(r===void 0)return`${t} === undefined`;if(typeof r=="bigint")return`${t} === ${r}n`;if(typeof r=="symbol"){let i=ne(e,r);return`${t} === ${i}`}throw new me(`literal discriminator value ${String(r)}`)}function tO(e,t,r,i){let n=r._zod.def;t.definite=!1;let o=Ze(e,t,n.left,i),a=Ze(e,t,n.right,i),s=ne(t,$i),c=W(t);return e.write(`const ${c} = ${s}(${o}, ${a});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function nO(e,t,r,i){let n=r._zod.def,o=ne(t,$t);e.write(`if (!${o}(${i})) return INVALID;`);let a=W(t),s=W(t),c=W(t);e.write(`const ${a} = {};`);let l=n,u=l.partial?void 0:n.keyType._zod.values;if(u){let f=[];for(let v of u){if(!(typeof v=="string"||typeof v=="number"||typeof v=="symbol"))throw new me(`record key value ${String(v)}`);let y=typeof v=="number"?v.toString():v;if(y==="__proto__")throw new me(\'record key "__proto__"\');f.push(y);let R=ne(t,v),w=Se(e,t,n.keyType,R),E=W(t);e.write(`const ${E} = ${i}[${rO(t,y)}];`);let D=Ze(e,t,n.valueType,E);e.write(`${a}[${w}] = ${D};`)}let h=ne(t,new Set(f));return e.write(`for (const ${s} in ${i}) {`),e.indented(v=>{v.write(`if (${h}.has(${s})) continue;`),l.mode==="loose"?v.write(`if (${s} !== "__proto__") ${a}[${s}] = ${i}[${s}];`):v.write("return INVALID;")}),e.write("}"),a}let m=n.keyType._zod.def;if(!(m.type==="string"&&m.format===void 0&&!m.coerce&&(m.checks?.length??0)===0)){let f=n.mode==="loose",h=fl(n.keyType);h.definite===!1&&(t.definite=!1);let v=ne(t,h),y=ne(t,pn),R=W(t);return X$(e,t,i,s,w=>{w.write(`let ${R} = ${v}(${s});`),w.write(`if (${R} === INVALID && typeof ${s} === "string" && ${y}.test(${s})) ${R} = ${v}(Number(${s}));`),f?w.write(`if (${R} === INVALID) { ${a}[${s}] = ${i}[${s}]; continue; }`):w.write(`if (${R} === INVALID) return INVALID;`),w.write(`if (${R} === "__proto__") continue;`);let E=W(t);w.write(`const ${E} = ${i}[${s}];`);let D=Ze(w,t,n.valueType,E);w.write(`${a}[${R}] = ${D};`)}),a}return X$(e,t,i,s,f=>{f.write(`const ${c} = ${i}[${s}];`);let h=Ze(f,t,n.valueType,c);f.write(`${a}[${s}] = ${h};`)},"return INVALID;"),a}function X$(e,t,r,i,n,o){let a=ne(t,Object.prototype.propertyIsEnumerable),s=W(t),c=W(t),l=W(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${r});`),e.write(`const ${c} = Object.getOwnPropertyNames(${r});`),e.write(`for (let ${l} = 0; ${l} < ${c}.length; ${l}++) {`),e.indented(u=>{u.write(`const ${i} = ${c}[${l}];`),u.write(`if (${i} === "__proto__" || !${a}.call(${r}, ${i})) continue;`),n(u)}),e.write("}"),e.write(`for (let ${l} = 0; ${l} < ${s}.length; ${l}++) {`),e.indented(u=>{u.write(`const ${i} = ${s}[${l}];`),u.write(`if (!${a}.call(${r}, ${i})) continue;`),o?u.write(o):n(u)}),e.write("}")}function rO(e,t){return typeof t=="string"?Xe(t):ne(e,t)}function iO(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`),Jh(e,r,`${i}.size`);let o=W(t),a=W(t),s=W(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${a}, ${s}] of ${i}) {`),e.indented(c=>{let l=Se(c,t,n.keyType,a),u=Se(c,t,n.valueType,s);c.write(`${o}.set(${l}, ${u});`)}),e.write("}"),o}function oO(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`),Jh(e,r,`${i}.size`);let o=W(t),a=W(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${a} of ${i}) {`),e.indented(s=>{let c=Se(s,t,n.valueType,a);s.write(`${o}.add(${c});`)}),e.write("}"),o}function aO(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function sO(e,t,r,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let n=r._zod.pattern;if(n){let o=ne(t,n);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function cO(e,t,r,i){let n=r._zod.def,o=kr(t,n.getter),a=ne(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(c=>{c.write(`const inner = ${o}();`),c.write(`${a}.parser = function(input) {`),c.indented(l=>{l.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),l.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let s=W(t);return e.write(`const ${s} = ${a}.parser(${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function lO(e,t,r,i){let n=r._zod.def,o=Se(e,t,n.in,i);if(n.transform){if(Rr(n.transform))throw new Ct("z.compile: async transforms in pipes are not supported");let a=n.transform,c=kr(t,u=>{let m={value:u,issues:[],addIssue:Bh},p=a(u,m);return p instanceof Promise?et:m.issues.length===0?p:et}),l=W(t);return e.write(`const ${l} = ${c}(${o});`),e.write(`if (${l} === INVALID) return INVALID;`),Se(e,t,n.out,l)}else return Se(e,t,n.out,o)}function Rr(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function uO(e,t,r,i){let n=r._zod.def;if(n.fn){if(Rr(n.fn))throw new Ct("z.compile: async custom predicates are not supported");let o=kr(t,n.fn),a=ne(t,Zh),s=W(t);e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new me("custom schema without a predicate function");return i}function dO(e,t,r){let i=e._zod.run({value:r,issues:[]},{});if(i&&typeof i.then=="function")return et;let n=i;return n.issues.length===0?n.value:t()}function mO(e,t,r,i){let n=r._zod.def;if(!n.catchValue[Sc])throw new me("catch with a callback (only a constant catch value compiles)",!1);let o=W(t);e.write(`let ${o} = (() => {`),e.indented(l=>{let u=Ze(l,t,n.innerType,i);l.write(`return ${u};`)}),e.write("})();");let a=ne(t,n.innerType),s=kr(t,n.catchValue),c=ne(t,dO);return e.write(`if (${o} === INVALID) {`),e.indented(l=>{l.write(`${o} = ${c}(${a}, ${s}, ${i});`),l.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function pO(e,t,r,i){let n=r._zod.def;if(n.transform){if(Rr(n.transform))throw new Ct("z.compile: async transforms are not supported");let o=n.transform,s=kr(t,l=>{let u={value:l,issues:[],addIssue:Bh},m=o(l,u);return m instanceof Promise?et:u.issues.length===0?m:et}),c=W(t);return e.write(`const ${c} = ${s}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return i}function hl(e){return e.checks&&(e.checks=[...e.checks]),e}function Hh(e,t){return new e(hl({type:"string",...C(t)}))}function Yh(e,t){return new e(hl({type:"string",coerce:!0,...C(t)}))}function gl(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(t)})}function vl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(t)})}function yl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(t)})}function Sl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(t)})}function _l(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(t)})}function bl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(t)})}function Ta(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(t)})}function $l(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(t)})}function kl(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(t)})}function Rl(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(t)})}function wl(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(t)})}function zl(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(t)})}function Il(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(t)})}function Tl(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(t)})}function xl(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(t)})}function El(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(t)})}function Gh(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...C(t)})}function Pl(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(t)})}function Ol(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(t)})}function Cl(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(t)})}function Nl(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(t)})}function Al(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(t)})}function Wh(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...C(t)})}function Xh(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...C(t)})}function jl(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(t)})}var Qh={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function xa(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(t)})}function Ea(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function Pa(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Oa(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function eg(e,t){return new e(hl({type:"number",checks:[],...C(t)}))}function tg(e,t){return new e(hl({type:"number",coerce:!0,checks:[],...C(t)}))}function ng(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(t)})}function rg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...C(t)})}function ig(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...C(t)})}function og(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...C(t)})}function ag(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...C(t)})}function sg(e,t){return new e({type:"boolean",...C(t)})}function cg(e,t){return new e({type:"boolean",coerce:!0,...C(t)})}function lg(e,t){return new e({type:"bigint",...C(t)})}function ug(e,t){return new e({type:"bigint",coerce:!0,...C(t)})}function dg(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...C(t)})}function mg(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...C(t)})}function pg(e,t){return new e({type:"symbol",...C(t)})}function fg(e,t){return new e({type:"undefined",...C(t)})}function hg(e,t){return new e({type:"null",...C(t)})}function gg(e){return new e({type:"any"})}function vg(e){return new e({type:"unknown"})}function yg(e,t){return new e({type:"never",...C(t)})}function Sg(e,t){return new e({type:"void",...C(t)})}function _g(e,t){return new e({type:"date",...C(t)})}function bg(e,t){return new e({type:"date",coerce:!0,...C(t)})}function $g(e,t){return new e({type:"nan",...C(t)})}function Gt(e,t){return new Ac({check:"less_than",...C(t),value:e,inclusive:!1})}function gt(e,t){return new Ac({check:"less_than",...C(t),value:e,inclusive:!0})}function Wt(e,t){return new jc({check:"greater_than",...C(t),value:e,inclusive:!1})}function vt(e,t){return new jc({check:"greater_than",...C(t),value:e,inclusive:!0})}function Ul(e){return Wt(0,e)}function Ll(e){return Gt(0,e)}function Dl(e){return gt(0,e)}function Ml(e){return vt(0,e)}function Cn(e,t){return new rf({check:"multiple_of",...C(t),value:e})}function Nn(e,t){return new sf({check:"max_size",...C(t),maximum:e})}function Xt(e,t){return new cf({check:"min_size",...C(t),minimum:e})}function wr(e,t){return new lf({check:"size_equals",...C(t),size:e})}function zr(e,t){return new uf({check:"max_length",...C(t),maximum:e})}function fn(e,t){return new df({check:"min_length",...C(t),minimum:e})}function Ir(e,t){return new mf({check:"length_equals",...C(t),length:e})}function zi(e,t){return new pf({check:"string_format",format:"regex",...C(t),pattern:e})}function Ii(e){return new ff({check:"string_format",format:"lowercase",...C(e)})}function Ti(e){return new hf({check:"string_format",format:"uppercase",...C(e)})}function xi(e,t){return new gf({check:"string_format",format:"includes",...C(t),includes:e})}function Ei(e,t){return new vf({check:"string_format",format:"starts_with",...C(t),prefix:e})}function Pi(e,t){return new yf({check:"string_format",format:"ends_with",...C(t),suffix:e})}function ql(e,t,r){return new Sf({check:"property",property:e,schema:t,...C(r)})}function Oi(e,t){return new _f({check:"properties",shape:e,...C(t)})}function Ci(e,t){return new bf({check:"mime_type",mime:e,...C(t)})}function Nt(e){return new $f({check:"overwrite",tx:e})}function Ni(e){return Nt(t=>t.normalize(e))}function Ai(){return Nt(e=>e.trim())}function ji(){return Nt(e=>e.toLowerCase())}function Ui(){return Nt(e=>e.toUpperCase())}function Li(){return Nt(e=>ap(e))}function kg(e,t,r){return new e({type:"array",element:t,...C(r)})}function fO(e,t,r){return new e({type:"union",options:t,...C(r)})}function hO(e,t,r){return new e({type:"union",options:t,inclusive:!1,...C(r)})}function gO(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...C(i)})}function vO(e,t,r){return new e({type:"intersection",left:t,right:r})}function yO(e,t,r,i){let n=r instanceof oe,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...C(o)})}function SO(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...C(i)})}function _O(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...C(i)})}function bO(e,t,r){return new e({type:"set",valueType:t,...C(r)})}function $O(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 kO(e,t,r){return new e({type:"enum",entries:t,...C(r)})}function RO(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(r)})}function Rg(e,t){return new e({type:"file",...C(t)})}function wO(e,t){return new e({type:"transform",transform:t})}function zO(e,t){return new e({type:"optional",innerType:t})}function IO(e,t){return new e({type:"nullable",innerType:t})}function TO(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Wo(r)}})}function xO(e,t,r){return new e({type:"nonoptional",innerType:t,...C(r)})}function EO(e,t){return new e({type:"success",innerType:t})}function PO(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:mp(r)})}function OO(e,t,r){return new e({type:"pipe",in:t,out:r})}function CO(e,t){return new e({type:"readonly",innerType:t})}function NO(e,t,r){return new e({type:"template_literal",parts:t,...C(r)})}function AO(e,t){return new e({type:"lazy",getter:t})}function jO(e,t){return new e({type:"promise",innerType:t})}function wg(e,t,r){let i=C(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function zg(e,t,r){return new e({type:"custom",check:"custom",fn:t,...C(r)})}function Ig(e,t){let r=nk(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(gi(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(gi(o))}},e(i.value,i)),t);return r}function nk(e,t){let r=new ve({check:"custom",...C(t)});return r._zod.check=e,r}function Tg(e){let t=new ve({check:"describe"});return t._zod.onattach=[r=>{let i=Le.get(r)??{};Le.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function xg(e){let t=new ve({check:"meta"});return t._zod.onattach=[r=>{let i=Le.get(r)??{};Le.add(r,{...i,...e})}],t._zod.check=()=>{},t}function Eg(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(f=>typeof f=="string"?f.toLowerCase():f),n=n.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(n),s=e.Codec??ba,c=e.Boolean??Sa,l=e.String??br,u=new l({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),p=new s({type:"pipe",in:u,out:m,transform:((f,h)=>{let v=f;return r.case!=="sensitive"&&(v=v.toLowerCase()),o.has(v)?!0:a.has(v)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?i[0]||"true":n[0]||"false"),error:r.error});return p._zod.bag.truthy=i,p._zod.bag.falsy=n,p._zod.bag.case=r.case??"insensitive",p}function Tr(e,t,r,i={}){let n=C(i),o={check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ca(e,...t){for(let r of t)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Ue(e,i,r[i]);return e}function An(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??Le,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Oe(e,t,r,i,n){let o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:i.path,message:n}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(n);return Object.assign(r,o),!0}function he(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),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let p=a.schema,f=t.processors[n.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);f(e,t,p,u)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),he(m,t,u),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ca(a.schema,c),t.io==="input"&&tt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function rk(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}function jn(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;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 n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,p=e.external.uri??(h=>h);if(m)return{ref:p(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${rk(f)}`}}let c="#",l=`${c}/${s}/`;if(a[1]===r&&!a[1].schema.id)return{ref:c};let u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+rk(u)}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=n(a);s.def={...s.schema},l&&(s.defId=l);let u=s.schema;for(let m in u)delete u[m];u.$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>\n\nSet 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}s.count>1&&e.reused==="ref"&&o(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function ak(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let i of t){if(!i||typeof i!="object")return;ak(i);let n=Object.keys(i);if(n.length!==1||n[0]!=="type")return;let o=i.type;for(let a of Array.isArray(o)?o:[o]){if(typeof a!="string")return;r.includes(a)||r.push(a)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var sk=new Set(["type","properties","required","additionalProperties"]),ik=["oneOf","anyOf"];function ok(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Pg(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let a in o)if(!sk.has(a))return null;t.push(o)}let r={},i=new Set;for(let o of t){for(let a in o.properties){if(Object.prototype.hasOwnProperty.call(r,a))continue;let s=[];for(let l of t){let u=l.properties?.[a]??ok(l);u!=null&&(s.some(m=>JSON.stringify(m)===JSON.stringify(u))||s.push(u))}let c=s.length===1?s[0]:Pg(s)??{allOf:s};Ue(r,a,c)}for(let a of o.required??[])i.add(a)}let n={type:"object",properties:r};if(i.size&&(n.required=[...i]),t.every(o=>o.additionalProperties===!1))n.additionalProperties=!1;else{let o=[];for(let a of t){let s=ok(a);s&&!o.some(c=>JSON.stringify(c)===JSON.stringify(s))&&o.push(s)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function UO(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of sk)if(n in e)return;let r=t.filter(n=>ik.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=Pg(t);else{let n=r[0],o=ik.find(c=>Array.isArray(n[c]));if(Object.keys(n).length!==1)return;let a=t.filter(c=>c!==n),s=n[o].map(c=>Pg([...a,c]));if(s.some(c=>!c))return;i={[o]:s}}i&&(delete e.allOf,Ca(e,i))}function Un(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let l=c.def??c.schema,u={...l},m=c.ref;if(c.ref=null,m){i(m);let f=e.seen.get(m),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Ca(l,h),Ca(l,u),s._zod.parent===m)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(h.$ref&&f.def)for(let y in l)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(l[y])===JSON.stringify(f.def[y])&&delete l[y]}let p=s._zod.parent;if(p&&p!==m){i(p);let f=e.seen.get(p);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let h in l)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(l[h])===JSON.stringify(f.def[h])&&delete l[h]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())i(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())ak(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let c of e.seen.values())for(let l of[c.schema,c.def]){let u=l?.allOf;if(!Array.isArray(u))continue;let m=s.get(u);m?m.push(l):s.set(u,[l])}for(let c of e.intersections)for(let l of s.get(c)??[])UO(l)}}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 s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Ca(n,r.defId?r.schema:r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,Ue(a,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Di(t,"input",e.processors),output:Di(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return tt(i.element,r);if(i.type==="set")return tt(i.valueType,r);if(i.type==="lazy")return tt(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"||i.type==="catch")return tt(i.innerType,r);if(i.type==="intersection")return tt(i.left,r)||tt(i.right,r);if(i.type==="record"||i.type==="map")return tt(i.keyType,r)||tt(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:tt(i.in,r)||tt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(tt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(tt(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(tt(n,r))return!0;return!!(i.rest&&tt(i.rest,r))}return!1}var Og=(e,t={})=>r=>{let i=An({...r,processors:t});return he(e,i),jn(i,e),Un(i,e)},Di=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=An({...n??{},target:o,io:t,processors:r});return he(e,a),jn(a,e),Un(a,e)};var Mi=(e,t,r)=>{(e[t]===void 0||r>e[t])&&(e[t]=r)},qi=(e,t,r)=>{(e[t]===void 0||r<e[t])&&(e[t]=r)},ck=(e,t)=>{Mi(e,"minimum",t),qi(e,"maximum",t)},mk=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},pk=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},fk=(e,t)=>{e.mime=e.mime?e.mime.filter(r=>t.includes(r)):[...t]},hk=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},lk=(e,t)=>Mi(e,"minimum",t.minimum),uk=(e,t)=>qi(e,"maximum",t.maximum),dk=e=>(t,r)=>{hk(t,r.format);let[i,n]=e[r.format];Mi(t,"minimum",i),qi(t,"maximum",n)},LO={greater_than:(e,t)=>Mi(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>qi(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>mk(e,t.value),number_format:dk(Qo),bigint_format:dk(ea),min_length:lk,max_length:uk,length_equals:(e,t)=>ck(e,t.length),min_size:lk,max_size:uk,size_equals:(e,t)=>ck(e,t.size),string_format:(e,t)=>{hk(e,t.format),t.pattern&&pk(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>fk(e,t.mime)};function Ce(e){let t={},r=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let o of i)LO[o._zod.def.check]?.(t,o._zod.def);let n=e._zod.bag;n.minimum!==void 0&&Mi(t,"minimum",n.minimum),n.exclusiveMinimum!==void 0&&Mi(t,"exclusiveMinimum",n.exclusiveMinimum),n.maximum!==void 0&&qi(t,"maximum",n.maximum),n.exclusiveMaximum!==void 0&&qi(t,"exclusiveMaximum",n.exclusiveMaximum),n.multipleOf!==void 0&&mk(t,n.multipleOf),n.format!==void 0&&(t.format??(t.format=n.format),n.format.includes("int")&&(t.isInt=!0)),n.mime&&fk(t,n.mime);for(let o of n.patterns??[])pk(t,o);return t}var DO={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},MO=new Map([[Bc,Up],[ya,Lp]]),gk=e=>MO.get(e)??e,Ag=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Ce(e);if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=DO[s]??s,n.format===""&&delete n.format,(s==="time"||u)&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let m=[...c].map(gk);m.length===1?n.pattern=m[0].source:m.length>1&&(n.allOf=[...m.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},jg=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=Ce(e);n.type=u?"integer":"number";let m=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(m?f?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),p?f?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),s){let h=new Set;for(let R of s)Number.isFinite(R)&&R!==0?h.add(Math.abs(R)):Oe(e,t,n,i,`A multipleOf divisor of ${R} cannot be represented in JSON Schema`);let[v,...y]=h;v!==void 0&&(n.multipleOf=v),y.length&&(n.allOf=[...n.allOf??[],...y.map(R=>({multipleOf:R}))])}},Ug=(e,t,r,i)=>{r.type="boolean"},Lg=(e,t,r,i)=>{Oe(e,t,r,i,"BigInt cannot be represented in JSON Schema")},Dg=(e,t,r,i)=>{Oe(e,t,r,i,"Symbols cannot be represented in JSON Schema")},Mg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},qg=(e,t,r,i)=>{Oe(e,t,r,i,"Undefined cannot be represented in JSON Schema")},Vg=(e,t,r,i)=>{Oe(e,t,r,i,"Void cannot be represented in JSON Schema")},Zg=(e,t,r,i)=>{r.not={}},Fg=(e,t,r,i)=>{},Kg=(e,t,r,i)=>{},Bg=(e,t,r,i)=>{Oe(e,t,r,i,"Date cannot be represented in JSON Schema")},Jg=(e,t,r,i)=>{let n=e._zod.def,o=di(n.entries);if(o.length===0){r.not={};return}o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},Hg=(e,t,r,i)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let a of n.values)if(a===void 0){if(Oe(e,t,r,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Oe(e,t,r,i,"BigInt literals cannot be represented in JSON Schema"))return;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},Yg=(e,t,r,i)=>{Oe(e,t,r,i,"NaN cannot be represented in JSON Schema")},Gg=(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},Wg=(e,t,r,i)=>{let n=r;n.type="string",n.format="binary",n.contentEncoding="binary";let{minimum:o,maximum:a,mime:s}=Ce(e);o!==void 0&&(n.minLength=o),a!==void 0&&(n.maxLength=a),s&&(s.length===0?n.not={}:s.length===1?n.contentMediaType=s[0]:n.anyOf=s.map(c=>({contentMediaType:c})))},Xg=(e,t,r,i)=>{r.type="boolean"},Qg=(e,t,r,i)=>{Oe(e,t,r,i,"Custom types cannot be represented in JSON Schema")},ev=(e,t,r,i)=>{Oe(e,t,r,i,"Function types cannot be represented in JSON Schema")},tv=(e,t,r,i)=>{Oe(e,t,r,i,"Transforms cannot be represented in JSON Schema")},nv=(e,t,r,i)=>{Oe(e,t,r,i,"Map cannot be represented in JSON Schema")},rv=(e,t,r,i)=>{Oe(e,t,r,i,"Set cannot be represented in JSON Schema")},iv=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:s}=Ce(e);typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=he(o.element,t,{...i,path:[...i.path,"items"]})};function Na(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Na(t.out):t.type==="catch"?Na(t.innerType):e._zod.optin}var ov=(e,t,r,i)=>{let n=r,o=e._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&Oe(e,t,n,i,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let l in a)Ue(n.properties,l,he(a[l],t,{...i,path:[...i.path,"properties",l]}));let c=[];for(let l of Object.keys(a)){let u=o.shape[l];(t.io==="input"?Na(u)===void 0:u._zod.optout===void 0)&&c.push(l)}c.length>0&&(n.required=c),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=he(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Zl=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>he(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},av=(e,t,r,i)=>{let n=e._zod.def,o=he(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=he(n.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]];r.allOf=c,t.intersections.push(c)},sv=(e,t,r,i)=>{let n=r,o=e._zod.def;n.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((v,y)=>he(v,t,{...i,path:[...i.path,a,y]})),l=o.rest?he(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,u=o.items.length;for(;u>0;){let v=o.items[u-1];if(!(t.io==="input"?Na(v)!==void 0:v._zod.optout==="optional"))break;u--}let m=o.items.length,p=!o.rest;t.target==="draft-2020-12"?(n.prefixItems=c,p?n.items=!1:l&&(n.items=l),u>0&&(n.minItems=u),p&&(n.maxItems=m)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),u>0&&(n.minItems=u),p&&(n.maxItems=m)):(n.items=c,p?n.additionalItems=!1:l&&(n.additionalItems=l),u>0&&(n.minItems=u),p&&(n.maxItems=m));let{minimum:f,maximum:h}=Ce(e);typeof f=="number"&&(n.minItems=f),typeof h=="number"&&(n.maxItems=h)};function Cg(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let h=e.get(t)?.def;if(!h)return t;let v=Cg(e,h,r);return v===h?t:v}for(let h of["anyOf","oneOf"]){let v=t[h];if(!Array.isArray(v))continue;let y=v.map(R=>Cg(e,R,r));y.some((R,w)=>R!==v[w])&&(t={...t,[h]:y})}let i=Array.isArray(t.type)?t.type:[t.type],n=!i.includes("string")&&i.some(h=>h==="number"||h==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!o?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:m,id:p,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),n&&(f.type="string",o||(f.pattern=(i.includes("number")?pn:da).source)),f}var Ng=new WeakMap;function qO(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let r=new Map;for(let i of Ng.get(e)??[]){let n=e.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let a=Cg(t,o,new Set);a!==o&&r.set(o,a)}if(r.size)for(let i of e.seen.values())for(let n of[i.schema,i.def]){let o=n&&r.get(n.propertyNames);o&&(n.propertyNames=o)}}var cv=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,s=Ce(a).patterns;if(o.mode==="loose"&&s&&s.size>0){let u=he(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let m of s)Ue(n.patternProperties,gk(m).source,u)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=he(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let u=Ng.get(t);u||(u=[],Ng.set(t,u),t.deferred.push(()=>qO(t))),u.push(e)}n.additionalProperties=he(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let c=a._zod.values,l=t.io==="input"&&Na(o.valueType)!==void 0;if(c&&!o.partial&&!l){let u=[...c].filter(m=>typeof m=="string"||typeof m=="number");u.length>0&&(n.required=u.map(String))}},lv=(e,t,r,i)=>{let n=e._zod.def,o=he(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},uv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},dv=Symbol();function vk(e,t,r,i,n){let o=!1,a=JSON.stringify(e,(s,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Oe(t,r,i,n,"BigInt defaults cannot be represented in JSON Schema"),dv):JSON.parse(a)}var mv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a=vk(n.defaultValue,e,t,r,i);a!==dv&&(r.default=a)},pv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);if(o.ref=n.innerType,t.io!=="input")return;let a=vk(n.defaultValue,e,t,r,i);a!==dv&&(r._prefault=a)},fv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{Oe(e,t,r,i,"Dynamic catch values are not supported in JSON Schema");return}r.default=a},hv=(e,t,r,i)=>{let n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;he(a,t,i);let s=t.seen.get(e);s.ref=a},gv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},vv=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Fl=(e,t,r,i)=>{let n=e._zod.def;he(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},yv=(e,t,r,i)=>{let n=e._zod.innerType;he(n,t,i);let o=t.seen.get(e);o.ref=n},Vl={string:Ag,number:jg,boolean:Ug,bigint:Lg,symbol:Dg,null:Mg,undefined:qg,void:Vg,never:Zg,any:Fg,unknown:Kg,date:Bg,enum:Jg,literal:Hg,nan:Yg,template_literal:Gg,file:Wg,success:Xg,custom:Qg,function:ev,transform:tv,map:nv,set:rv,array:iv,object:ov,union:Zl,intersection:av,tuple:sv,record:cv,nullable:lv,nonoptional:uv,default:mv,prefault:pv,catch:fv,pipe:hv,readonly:gv,promise:vv,optional:Fl,lazy:yv};function xr(e,t){if("_idmap"in e){let i=e,n=An({...t,processors:Vl}),o={};for(let c of i._idmap.entries()){let[l,u]=c;he(u,n)}let a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(let c of i._idmap.entries()){let[l,u]=c;jn(n,u),Ue(a,l,Un(n,u))}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let r=An({...t,processors:Vl});return he(e,r),jn(r,e),Un(r,e)}var Kl=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=An({processors:Vl,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 he(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)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,jn(this.ctx,t);let i=Un(this.ctx,t),{"~standard":n,...o}=i;return o}};var yk={};var Yi={};un(Yi,{ZodAny:()=>jv,ZodArray:()=>Mv,ZodBase64:()=>du,ZodBase64URL:()=>mu,ZodBigInt:()=>Hi,ZodBigIntFormat:()=>hu,ZodBoolean:()=>Ji,ZodCIDRv4:()=>lu,ZodCIDRv6:()=>uu,ZodCUID:()=>nu,ZodCUID2:()=>ru,ZodCatch:()=>oy,ZodCodec:()=>Za,ZodCreditCard:()=>Pv,ZodCustom:()=>Fa,ZodCustomStringFormat:()=>Pr,ZodDate:()=>La,ZodDefault:()=>Qv,ZodDiscriminatedUnion:()=>Vv,ZodE164:()=>pu,ZodEmail:()=>Wl,ZodEmoji:()=>eu,ZodEnum:()=>Zi,ZodExactOptional:()=>Su,ZodFile:()=>Yv,ZodFunction:()=>fy,ZodGUID:()=>Ql,ZodIBAN:()=>Ov,ZodIPv4:()=>su,ZodIPv6:()=>cu,ZodISODate:()=>Dn,ZodISODateTime:()=>Ln,ZodISODuration:()=>qn,ZodISOTime:()=>Mn,ZodInstanceOf:()=>vy,ZodIntersection:()=>Zv,ZodJWT:()=>fu,ZodKSUID:()=>au,ZodLazy:()=>my,ZodLiteral:()=>Hv,ZodMAC:()=>Ev,ZodMap:()=>Bv,ZodNaN:()=>sy,ZodNanoID:()=>tu,ZodNever:()=>Lv,ZodNonOptional:()=>_u,ZodNull:()=>Av,ZodNullable:()=>Xv,ZodNumber:()=>Bi,ZodNumberFormat:()=>Or,ZodObject:()=>Da,ZodOptional:()=>qa,ZodPipe:()=>Va,ZodPrefault:()=>ty,ZodPreprocess:()=>cy,ZodPromise:()=>py,ZodReadonly:()=>ly,ZodRecord:()=>Vi,ZodSet:()=>Jv,ZodString:()=>Fi,ZodStringFormat:()=>ge,ZodSuccess:()=>iy,ZodSymbol:()=>Cv,ZodTemplateLiteral:()=>dy,ZodTransform:()=>Gv,ZodTuple:()=>Fv,ZodType:()=>ue,ZodULID:()=>iu,ZodURL:()=>Ua,ZodUUID:()=>Qt,ZodUndefined:()=>Nv,ZodUnion:()=>Ma,ZodUnknown:()=>Uv,ZodVoid:()=>Dv,ZodXID:()=>ou,ZodXor:()=>qv,_ZodString:()=>Gl,_default:()=>ey,_function:()=>kR,any:()=>gu,array:()=>b,base64:()=>Dk,base64url:()=>Mk,bigint:()=>eR,boolean:()=>U,catch:()=>ay,check:()=>RR,cidrv4:()=>Uk,cidrv6:()=>Lk,codec:()=>SR,creditCard:()=>Vk,cuid:()=>xk,cuid2:()=>Ek,currencyCode:()=>Hk,custom:()=>wR,date:()=>aR,describe:()=>zR,discriminatedUnion:()=>Vn,e164:()=>qk,email:()=>Xl,emoji:()=>Ik,enum:()=>Q,exactOptional:()=>Wv,file:()=>hR,float32:()=>Gk,float64:()=>Wk,function:()=>kR,guid:()=>bk,hash:()=>Yk,hex:()=>Jk,hostname:()=>Bk,httpUrl:()=>zk,iban:()=>Zk,instanceof:()=>TR,int:()=>Hl,int32:()=>Xk,int64:()=>tR,intersection:()=>At,invertCodec:()=>_R,ipv4:()=>Nk,ipv6:()=>jk,json:()=>ER,jwt:()=>Fk,keyof:()=>sR,ksuid:()=>Ck,lazy:()=>Zn,literal:()=>$,looseObject:()=>K,looseRecord:()=>dR,mac:()=>Ak,map:()=>mR,meta:()=>IR,nan:()=>yR,nanoid:()=>Tk,nativeEnum:()=>fR,never:()=>vu,nonoptional:()=>ry,null:()=>en,nullable:()=>ja,nullish:()=>gR,number:()=>x,object:()=>g,optional:()=>J,partialRecord:()=>uR,pipe:()=>Yl,prefault:()=>ny,preprocess:()=>gn,promise:()=>$R,readonly:()=>uy,record:()=>A,refine:()=>hy,set:()=>pR,strictObject:()=>cR,string:()=>d,stringFormat:()=>Kk,stringbool:()=>xR,success:()=>vR,superRefine:()=>gy,symbol:()=>rR,templateLiteral:()=>bR,transform:()=>yu,tuple:()=>Kv,uint32:()=>Qk,uint64:()=>nR,ulid:()=>Pk,undefined:()=>iR,union:()=>L,unknown:()=>B,url:()=>Ki,uuid:()=>$k,uuidv4:()=>kk,uuidv6:()=>Rk,uuidv7:()=>wk,void:()=>oR,xid:()=>Ok,xor:()=>lR});var Bl={};un(Bl,{endsWith:()=>Pi,gt:()=>Wt,gte:()=>vt,includes:()=>xi,length:()=>Ir,lowercase:()=>Ii,lt:()=>Gt,lte:()=>gt,maxLength:()=>zr,maxSize:()=>Nn,mime:()=>Ci,minLength:()=>fn,minSize:()=>Xt,multipleOf:()=>Cn,negative:()=>Ll,nonnegative:()=>Ml,nonpositive:()=>Dl,normalize:()=>Ni,overwrite:()=>Nt,positive:()=>Ul,properties:()=>Oi,property:()=>ql,regex:()=>zi,size:()=>wr,slugify:()=>Li,startsWith:()=>Ei,toLowerCase:()=>ji,toUpperCase:()=>Ui,trim:()=>Ai,uppercase:()=>Ti});var Sk=new WeakSet([Object.prototype,Error.prototype]);function Jl(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=r(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var _k=(e,t)=>{vp.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);Sk.has(r)||(Sk.add(r),Jl(r,"format",i=>n=>sa(i,n)),Jl(r,"flatten",i=>n=>aa(i,n)),Jl(r,"addIssue",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,mi,2)}),Jl(r,"addIssues",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,mi,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ZO=S("ZodError",_k),ut=S("ZodError",_k,void 0,{Parent:Error});var Sv=vi(ut),_v=yi(ut),Aa=Si(ut),bv=_i(ut),$v=kc(ut),kv=Rc(ut),Rv=wc(ut),wv=zc(ut),zv=Ic(ut),Iv=Tc(ut),Tv=xc(ut),xv=Ec(ut);function KO(){Ne.localeError||ke(cl())}function Er(){Ne.memoizer||ke({memoizer:wa()})}var ue=S("ZodType",(e,t)=>(KO(),oe.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(z.mergeDefs(t,{checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return pe(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(hy(e,t))},superRefine(e,t){return this.check(gy(e,t))},overwrite(e){return this.check(Nt(e))},optional(){return J(this)},exactOptional(){return Wv(this)},nullable(){return ja(this)},nullish(){return J(ja(this))},nonoptional(e){return ry(this,e)},array(){return b(this)},or(e){return L([this,e])},and(e){return At(this,e)},transform(e){return Yl(this,yu(e))},default(e){return ey(this,e)},prefault(e){return ny(this,e)},catch(e){return ay(this,e)},pipe(e){return Yl(this,e)},readonly(){return uy(this)},describe(e){let t=this.clone();return Le.add(t,{description:e}),t},meta(...e){if(e.length===0)return Le.get(this);let t=this.clone();return Le.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return z.hide(this,"~standard",{...qc(this),jsonSchema:{input:Di(this,"input"),output:Di(this,"output")}})},set"~standard"(e){z.own(this,"~standard",e)},parse:function e(t,r){return Sv(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await _v(this,t,r,{callee:e})},safeParse(e,t){return Aa(this,e,t)},async safeParseAsync(e,t){return bv(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){z.own(this,"spa",e)},validate(e,t){return ca(this,e,t)},validateAsync(e,t){return la(this,e,t)},encode:function e(t,r){return $v(this,t,r,{callee:e})},decode:function e(t,r){return kv(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await Rv(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await wv(this,t,r,{callee:e})},safeEncode(e,t){return zv(this,e,t)},safeDecode(e,t){return Iv(this,e,t)},async safeEncodeAsync(e,t){return Tv(this,e,t)},async safeDecodeAsync(e,t){return xv(this,e,t)},toJSONSchema(e){return Og(this,{})(e)},get description(){return Le.get(this)?.description},get _def(){return this._zod.def}}),Gl=S("_ZodString",(e,t)=>{br.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n)},z.derived({format:e=>Ce(e).format??null,minLength:e=>Ce(e).minimum??null,maxLength:e=>Ce(e).maximum??null},{regex(...e){return this.check(zi(...e))},includes(...e){return this.check(xi(...e))},startsWith(...e){return this.check(Ei(...e))},endsWith(...e){return this.check(Pi(...e))},min(...e){return this.check(fn(...e))},max(...e){return this.check(zr(...e))},length(...e){return this.check(Ir(...e))},nonempty(...e){return this.check(fn(1,...e))},lowercase(e){return this.check(Ii(e))},uppercase(e){return this.check(Ti(e))},trim(){return this.check(Ai())},normalize(...e){return this.check(Ni(...e))},toLowerCase(){return this.check(ji())},toUpperCase(){return this.check(Ui())},slugify(){return this.check(Li())}})),Fi=S("ZodString",(e,t)=>{br.init(e,t),Gl.init(e,t)},{email(e){return this.check(gl(Wl,e))},url(e){return this.check(Ta(Ua,e))},jwt(e){return this.check(jl(fu,e))},emoji(e){return this.check($l(eu,e))},guid(e){return this.check(vl(Ql,e))},uuid(e){return this.check(yl(Qt,e))},uuidv4(e){return this.check(Sl(Qt,e))},uuidv6(e){return this.check(_l(Qt,e))},uuidv7(e){return this.check(bl(Qt,e))},nanoid(e){return this.check(kl(tu,e))},cuid(e){return this.check(Rl(nu,e))},cuid2(e){return this.check(wl(ru,e))},ulid(e){return this.check(zl(iu,e))},base64(e){return this.check(Cl(du,e))},base64url(e){return this.check(Nl(mu,e))},xid(e){return this.check(Il(ou,e))},ksuid(e){return this.check(Tl(au,e))},ipv4(e){return this.check(xl(su,e))},ipv6(e){return this.check(El(cu,e))},cidrv4(e){return this.check(Pl(lu,e))},cidrv6(e){return this.check(Ol(uu,e))},e164(e){return this.check(Al(pu,e))},datetime(e){return this.check(xa(Ln,e))},date(e){return this.check(Ea(Dn,e))},time(e){return this.check(Pa(Mn,e))},duration(e){return this.check(Oa(qn,e))}});function d(e){return Hh(Fi,e)}var ge=S("ZodStringFormat",(e,t)=>{fe.init(e,t),Gl.init(e,t)}),Ln=S("ZodISODateTime",(e,t)=>{Lf.init(e,t),ge.init(e,t)}),Dn=S("ZodISODate",(e,t)=>{Df.init(e,t),ge.init(e,t)}),Mn=S("ZodISOTime",(e,t)=>{Mf.init(e,t),ge.init(e,t)}),qn=S("ZodISODuration",(e,t)=>{qf.init(e,t),ge.init(e,t)}),Wl=S("ZodEmail",(e,t)=>{If.init(e,t),ge.init(e,t)});function Xl(e){return gl(Wl,e)}var Ql=S("ZodGUID",(e,t)=>{wf.init(e,t),ge.init(e,t)});function bk(e){return vl(Ql,e)}var Qt=S("ZodUUID",(e,t)=>{zf.init(e,t),ge.init(e,t)});function $k(e){return yl(Qt,e)}function kk(e){return Sl(Qt,e)}function Rk(e){return _l(Qt,e)}function wk(e){return bl(Qt,e)}var Ua=S("ZodURL",(e,t)=>{Ef.init(e,t),ge.init(e,t)});function Ki(e){return Ta(Ua,e)}function zk(e){return Ta(Ua,{protocol:ua,hostname:Mp,...z.normalizeParams(e)})}var eu=S("ZodEmoji",(e,t)=>{Pf.init(e,t),ge.init(e,t)});function Ik(e){return $l(eu,e)}var tu=S("ZodNanoID",(e,t)=>{Of.init(e,t),ge.init(e,t)});function Tk(e){return kl(tu,e)}var nu=S("ZodCUID",(e,t)=>{Cf.init(e,t),ge.init(e,t)});function xk(e){return Rl(nu,e)}var ru=S("ZodCUID2",(e,t)=>{Nf.init(e,t),ge.init(e,t)});function Ek(e){return wl(ru,e)}var iu=S("ZodULID",(e,t)=>{Af.init(e,t),ge.init(e,t)});function Pk(e){return zl(iu,e)}var ou=S("ZodXID",(e,t)=>{jf.init(e,t),ge.init(e,t)});function Ok(e){return Il(ou,e)}var au=S("ZodKSUID",(e,t)=>{Uf.init(e,t),ge.init(e,t)});function Ck(e){return Tl(au,e)}var su=S("ZodIPv4",(e,t)=>{Vf.init(e,t),ge.init(e,t)});function Nk(e){return xl(su,e)}var Ev=S("ZodMAC",(e,t)=>{Ff.init(e,t),ge.init(e,t)});function Ak(e){return Gh(Ev,e)}var cu=S("ZodIPv6",(e,t)=>{Zf.init(e,t),ge.init(e,t)});function jk(e){return El(cu,e)}var lu=S("ZodCIDRv4",(e,t)=>{Kf.init(e,t),ge.init(e,t)});function Uk(e){return Pl(lu,e)}var uu=S("ZodCIDRv6",(e,t)=>{Bf.init(e,t),ge.init(e,t)});function Lk(e){return Ol(uu,e)}var du=S("ZodBase64",(e,t)=>{Jf.init(e,t),ge.init(e,t)});function Dk(e){return Cl(du,e)}var mu=S("ZodBase64URL",(e,t)=>{Hf.init(e,t),ge.init(e,t)});function Mk(e){return Nl(mu,e)}var pu=S("ZodE164",(e,t)=>{Yf.init(e,t),ge.init(e,t)});function qk(e){return Al(pu,e)}var Pv=S("ZodCreditCard",(e,t)=>{Gf.init(e,t),ge.init(e,t)});function Vk(e){return Wh(Pv,e)}var Ov=S("ZodIBAN",(e,t)=>{Wf.init(e,t),ge.init(e,t)});function Zk(e){return Xh(Ov,e)}var fu=S("ZodJWT",(e,t)=>{Xf.init(e,t),ge.init(e,t)});function Fk(e){return jl(fu,e)}var Pr=S("ZodCustomStringFormat",(e,t)=>{Qf.init(e,t),ge.init(e,t)});function Kk(e,t,r={}){return Tr(Pr,e,t,r)}function Bk(e){return Tr(Pr,"hostname",Dp,e)}function Jk(e){return Tr(Pr,"hex",ef,e)}function Hk(e){return Tr(Pr,"currency_code",Vp,e)}function Yk(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=Rt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Tr(Pr,i,n,t)}var Bi=S("ZodNumber",(e,t)=>{Wc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n),e.isFinite=!0},z.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:r}=Ce(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:r}=Ce(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:r}=Ce(e);return!!t||!!r?.some(Number.isSafeInteger)},format:e=>Ce(e).format??null},{gt(e,t){return this.check(Wt(e,t))},gte(e,t){return this.check(vt(e,t))},min(e,t){return this.check(vt(e,t))},lt(e,t){return this.check(Gt(e,t))},lte(e,t){return this.check(gt(e,t))},max(e,t){return this.check(gt(e,t))},int(e){return this.check(Hl(e))},safe(e){return this.check(Hl(e))},positive(e){return this.check(Wt(0,e))},nonnegative(e){return this.check(vt(0,e))},negative(e){return this.check(Gt(0,e))},nonpositive(e){return this.check(gt(0,e))},multipleOf(e,t){return this.check(Cn(e,t))},step(e,t){return this.check(Cn(e,t))},finite(){return this}}));function x(e){return eg(Bi,e)}var Or=S("ZodNumberFormat",(e,t)=>{eh.init(e,t),Bi.init(e,t)});function Hl(e){return ng(Or,e)}function Gk(e){return rg(Or,e)}function Wk(e){return ig(Or,e)}function Xk(e){return og(Or,e)}function Qk(e){return ag(Or,e)}var Ji=S("ZodBoolean",(e,t)=>{Sa.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ug(e,r,i,n)});function U(e){return sg(Ji,e)}var Hi=S("ZodBigInt",(e,t)=>{Xc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n)},z.derived({minValue:e=>Ce(e).minimum??null,maxValue:e=>Ce(e).maximum??null,format:e=>Ce(e).format??null},{gte(e,t){return this.check(vt(e,t))},min(e,t){return this.check(vt(e,t))},gt(e,t){return this.check(Wt(e,t))},lt(e,t){return this.check(Gt(e,t))},lte(e,t){return this.check(gt(e,t))},max(e,t){return this.check(gt(e,t))},positive(e){return this.check(Wt(BigInt(0),e))},negative(e){return this.check(Gt(BigInt(0),e))},nonpositive(e){return this.check(gt(BigInt(0),e))},nonnegative(e){return this.check(vt(BigInt(0),e))},multipleOf(e,t){return this.check(Cn(e,t))}}));function eR(e){return lg(Hi,e)}var hu=S("ZodBigIntFormat",(e,t)=>{th.init(e,t),Hi.init(e,t)});function tR(e){return dg(hu,e)}function nR(e){return mg(hu,e)}var Cv=S("ZodSymbol",(e,t)=>{nh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n)});function rR(e){return pg(Cv,e)}var Nv=S("ZodUndefined",(e,t)=>{rh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qg(e,r,i,n)});function iR(e){return fg(Nv,e)}var Av=S("ZodNull",(e,t)=>{ih.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n)});function en(e){return hg(Av,e)}var jv=S("ZodAny",(e,t)=>{oh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fg(e,r,i,n)});function gu(){return gg(jv)}var Uv=S("ZodUnknown",(e,t)=>{ah.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kg(e,r,i,n)});function B(){return vg(Uv)}var Lv=S("ZodNever",(e,t)=>{sh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zg(e,r,i,n)});function vu(e){return yg(Lv,e)}var Dv=S("ZodVoid",(e,t)=>{ch.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vg(e,r,i,n)});function oR(e){return Sg(Dv,e)}var La=S("ZodDate",(e,t)=>{lh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bg(e,r,i,n),e.min=(r,i)=>e.check(vt(r,i)),e.max=(r,i)=>e.check(gt(r,i))},z.derived({minDate:e=>{let{minimum:t}=Ce(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Ce(e);return t?new Date(t):null}},{}));function aR(e){return _g(La,e)}var Mv=S("ZodArray",(e,t)=>{Er(),dh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>iv(e,r,i,n),e.element=t.element},{min(e,t){return this.check(fn(e,t))},nonempty(e){return this.check(fn(1,e))},max(e,t){return this.check(zr(e,t))},length(e,t){return this.check(Ir(e,t))},unwrap(){return this.element}});function b(e,t){return kg(Mv,e,t)}function sR(e){let t=e._zod.def.shape;return Q(Object.keys(t))}var Da=S("ZodObject",(e,t)=>{Er(),mh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ov(e,r,i,n),z.installLazyProp(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return Q(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(z.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(z.mergeDefs(this._zod.def,{catchall:B()}))},loose(){return this.clone(z.mergeDefs(this._zod.def,{catchall:B()}))},strict(){return this.clone(z.mergeDefs(this._zod.def,{catchall:vu()}))},strip(){return this.clone(z.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return z.extend(this,e)},safeExtend(e){return z.safeExtend(this,e)},merge(e){return z.merge(this,e)},pick(e){return z.pick(this,e)},omit(e){return z.omit(this,e)},partial(...e){return z.partial(qa,this,e[0])},exactPartial(...e){return z.partial(Su,this,e[0],"exactPartial")},required(...e){return z.required(_u,this,e[0])}});function g(e,t){let r={type:"object",shape:e??{},...z.normalizeParams(t)};return new Da(r)}function cR(e,t){return new Da({type:"object",shape:e,catchall:vu(),...z.normalizeParams(t)})}function K(e,t){return new Da({type:"object",shape:e,catchall:B(),...z.normalizeParams(t)})}var Ma=S("ZodUnion",(e,t)=>{_a.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zl(e,r,i,n),e.options=t.options});function L(e,t){return new Ma({type:"union",options:e,...z.normalizeParams(t)})}var qv=S("ZodXor",(e,t)=>{Ma.init(e,t),ph.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zl(e,r,i,n),e.options=t.options});function lR(e,t){return new qv({type:"union",options:e,inclusive:!1,...z.normalizeParams(t)})}var Vv=S("ZodDiscriminatedUnion",(e,t)=>{Ma.init(e,t),hh.init(e,t)});function Vn(e,t,r){return new Vv({type:"union",options:t,discriminator:e,...z.normalizeParams(r)})}var Zv=S("ZodIntersection",(e,t)=>{gh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>av(e,r,i,n)});function At(e,t){return new Zv({type:"intersection",left:e,right:t})}var Fv=S("ZodTuple",(e,t)=>{Er(),Qc.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>sv(e,r,i,n)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new qa({type:"optional",innerType:t}))})}});function Kv(e,t,r){let i=t instanceof oe,n=i?r:t,o=i?t:null;return new Fv({type:"tuple",items:e,rest:o,...z.normalizeParams(n)})}var Vi=S("ZodRecord",(e,t)=>{Er(),vh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>cv(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function A(e,t,r){return!t||!t._zod?new Vi({type:"record",keyType:d(),valueType:e,...z.normalizeParams(t)}):new Vi({type:"record",keyType:e,valueType:t,...z.normalizeParams(r)})}function uR(e,t,r){return new Vi({type:"record",keyType:e,valueType:t,...z.normalizeParams(r),partial:!0})}function dR(e,t,r){return new Vi({type:"record",keyType:e,valueType:t,mode:"loose",...z.normalizeParams(r)})}var Bv=S("ZodMap",(e,t)=>{Er(),yh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>nv(e,r,i,n),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(Nn(...r)),e.size=(...r)=>e.check(wr(...r))});function mR(e,t,r){return new Bv({type:"map",keyType:e,valueType:t,...z.normalizeParams(r)})}var Jv=S("ZodSet",(e,t)=>{Er(),Sh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>rv(e,r,i,n),e.min=(...r)=>e.check(Xt(...r)),e.nonempty=r=>e.check(Xt(1,r)),e.max=(...r)=>e.check(Nn(...r)),e.size=(...r)=>e.check(wr(...r))});function pR(e,t){return new Jv({type:"set",valueType:e,...z.normalizeParams(t)})}var Zi=S("ZodEnum",(e,t)=>{_h.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Jg(e,i,n,o),e.enum=t.entries,e.options=[...e._zod.values];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 Zi({...t,checks:[],...z.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 Zi({...t,checks:[],...z.normalizeParams(n),entries:o})}});function Q(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Zi({type:"enum",entries:r,...z.normalizeParams(t)})}function fR(e,t){return new Zi({type:"enum",entries:e,...z.normalizeParams(t)})}var Hv=S("ZodLiteral",(e,t)=>{bh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hg(e,r,i,n),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 $(e,t){return new Hv({type:"literal",values:Array.isArray(e)?e:[e],...z.normalizeParams(t)})}var Yv=S("ZodFile",(e,t)=>{$h.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wg(e,r,i,n),e.min=(r,i)=>e.check(Xt(r,i)),e.max=(r,i)=>e.check(Nn(r,i)),e.mime=(r,i)=>e.check(Ci(Array.isArray(r)?r:[r],i))});function hR(e){return Rg(Yv,e)}var Gv=S("ZodTransform",(e,t)=>{Er(),kh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>tv(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Pn(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(z.issue(o,r.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=r.value),a.inst??(a.inst=e),r.issues.push(z.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 yu(e){return new Gv({type:"transform",transform:e})}var qa=S("ZodOptional",(e,t)=>{el.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function J(e){return new qa({type:"optional",innerType:e})}var Su=S("ZodExactOptional",(e,t)=>{Rh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fl(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Wv(e){return new Su({type:"optional",innerType:e})}var Xv=S("ZodNullable",(e,t)=>{wh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>lv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function ja(e){return new Xv({type:"nullable",innerType:e})}function gR(e){return J(ja(e))}var Qv=S("ZodDefault",(e,t)=>{zh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>mv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ey(e,t){return new Qv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}var ty=S("ZodPrefault",(e,t)=>{Ih.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function ny(e,t){return new ty({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}var _u=S("ZodNonOptional",(e,t)=>{Th.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>uv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function ry(e,t){return new _u({type:"nonoptional",innerType:e,...z.normalizeParams(t)})}var iy=S("ZodSuccess",(e,t)=>{xh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function vR(e){return new iy({type:"success",innerType:e})}var oy=S("ZodCatch",(e,t)=>{Eh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ay(e,t){return new oy({type:"catch",innerType:e,catchValue:typeof t=="function"?t:z.constantCatch(t)})}var sy=S("ZodNaN",(e,t)=>{Ph.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yg(e,r,i,n)});function yR(e){return $g(sy,e)}var Va=S("ZodPipe",(e,t)=>{tl.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hv(e,r,i,n),e.in=t.in,e.out=t.out});function Yl(e,t){return new Va({type:"pipe",in:e,out:t})}var Za=S("ZodCodec",(e,t)=>{Va.init(e,t),ba.init(e,t)});function SR(e,t,r){return new Za({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function _R(e){let t=e._zod.def;return new Za({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var cy=S("ZodPreprocess",(e,t)=>{Va.init(e,t),Oh.init(e,t)}),ly=S("ZodReadonly",(e,t)=>{Ch.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>gv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function uy(e){return new ly({type:"readonly",innerType:e})}var dy=S("ZodTemplateLiteral",(e,t)=>{Nh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gg(e,r,i,n)});function bR(e,t){return new dy({type:"template_literal",parts:e,...z.normalizeParams(t)})}var my=S("ZodLazy",(e,t)=>{$a.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yv(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Zn(e){return new my({type:"lazy",getter:e})}var py=S("ZodPromise",(e,t)=>{jh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function $R(e){return new py({type:"promise",innerType:e})}var fy=S("ZodFunction",(e,t)=>{Ah.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ev(e,r,i,n)});function kR(e){return new fy({type:"function",input:Array.isArray(e?.input)?Kv(e?.input):e?.input??b(B()),output:e?.output??B()})}var Fa=S("ZodCustom",(e,t)=>{Uh.init(e,t),ue.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qg(e,r,i,n)});function RR(e){let t=new ve({check:"custom"});return t._zod.check=e,t}function wR(e,t){return wg(Fa,e??(()=>!0),t)}function hy(e,t={}){return zg(Fa,e,t)}function gy(e,t){return Ig(e,t)}var zR=Tg,IR=xg,vy=S("ZodInstanceOf",(e,t)=>{Fa.init(e,t)},{properties(e,t){return this.check(Oi(e,t))}});function TR(e,t={}){let r=new vy({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...z.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 xR=(...e)=>Eg({Codec:Za,Boolean:Ji,String:Fi},...e);function ER(e){let t=Zn(()=>L([d(e),x(),U(),en(),b(t),A(d(),t)]));return t}function gn(e,t){return new cy({type:"pipe",in:yu(e),out:t})}var Sy={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 BO(e){ke({customError:e})}function JO(){return ke().customError}var yy;yy||(yy={});var wt={};un(wt,{ZodISODate:()=>Dn,ZodISODateTime:()=>Ln,ZodISODuration:()=>qn,ZodISOTime:()=>Mn,date:()=>YO,datetime:()=>HO,duration:()=>WO,time:()=>GO});function HO(e){return xa(Ln,e)}function YO(e){return Ea(Dn,e)}function GO(e){return Pa(Mn,e)}function WO(e){return Oa(qn,e)}var q={...Yi,...Bl,iso:wt},XO=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 QO(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 PR(e,t){return e.map((r,i)=>i<t?r:r.optional())}function eC(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function tC(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]===void 0?void 0:eC(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 nC(e,t){return q.transform(i=>i).check(i=>{let n=i.value;if(typeof n!="object"||n===null||Array.isArray(n))return;let o=Object.getOwnPropertyNames(n);if(t.minProperties!==void 0&&o.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:n,inst:e,continue:!0}),t.maxProperties!==void 0&&o.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:n,inst:e,continue:!0}),t.keySchema)for(let a of o){let s=t.keySchema.safeParse(a);s.success||i.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function _y(e,t){if(e===null)return"z";let r=typeof e;if(r!=="object"){if(r==="number"&&Number.isNaN(e))return null;let i=String(e);return`${r[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let o=[];for(let a of e){let s=_y(a,t);if(s===null)return null;o.push(s)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),n=[];for(let o of i){let a=_y(e[o],t);if(a===null)return null;n.push(`${o.length}:${o}=${a}`)}return`o${n.length}:{${n.join(",")}}`}finally{t.delete(e)}}var rC=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),iC=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Ka(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Ka):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,r])=>rC.has(t)?Ka(r):!iC.has(t)||typeof r!="object"||r===null?!1:Object.values(r).some(Ka))}function OR(e){return e===1?"element":"elements"}function oC(e,t){return q.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let o=new Map;for(let a=0;a<n.length;a++){let s=_y(n[a],new Set);if(s===null)continue;let c=o.get(s);if(c===void 0){o.set(s,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${c}`,input:n,path:[a],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let c of n)if(t.containsSchema.safeParse(c).success&&++s>=a)break;s<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${OR(o)}; found ${s}`,input:n,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${OR(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function CR(e,t){if(e!==!1)return e===void 0||e===!0?q.any():nt(e,t)}var aC=/^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/;function NR(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return q.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 q.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=tC(n,t),a=nt(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===!0&&n.length===1&&n[0]===null)return q.null();if(n.length===0)return q.never();if(n.length===1)return q.literal(n[0]);if(n.every(a=>typeof a=="string"))return q.enum(n);let o=n.map(a=>q.literal(a));return o.length<2?o[0]:q.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return NR(a,t)});return n.length===0?q.never():n.length===1?n[0]:q.union(n)}if(!r)return q.any();let i;switch(r){case"string":{let n=q.string();if(e.format){let o=e.format;o==="email"?n=n.check(q.email()):o==="uri"||o==="uri-reference"?n=n.check(q.url()):o==="uuid"||o==="guid"?n=n.check(q.uuid()):o==="date-time"?n=n.check(q.iso.datetime({offset:!0})):o==="date"?n=n.check(q.iso.date()):o==="time"?n=n.check(q.regex(aC)):o==="duration"?n=n.check(q.iso.duration()):o==="hostname"?n=n.check(q.hostname()):o==="ipv4"?n=n.check(q.ipv4()):o==="ipv6"?n=n.check(q.ipv6()):o==="mac"?n=n.check(q.mac()):o==="cidr"?n=n.check(q.cidrv4()):o==="cidr-v6"?n=n.check(q.cidrv6()):o==="base64"?n=n.check(q.base64()):o==="base64url"?n=n.check(q.base64url()):o==="e164"?n=n.check(q.e164()):o==="credit_card"?n=n.check(q.creditCard()):o==="iban"?n=n.check(q.iban()):o==="jwt"?n=n.check(q.jwt()):o==="emoji"?n=n.check(q.emoji()):o==="nanoid"?n=n.check(q.nanoid()):o==="cuid"?n=n.check(q.cuid()):o==="cuid2"?n=n.check(q.cuid2()):o==="ulid"?n=n.check(q.ulid()):o==="xid"?n=n.check(q.xid()):o==="ksuid"&&(n=n.check(q.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"?q.number().int():q.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=q.boolean();break}case"null":{i=q.null();break}case"object":{let n={},o=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?nt(e.additionalProperties,t):void 0;for(let[m,p]of Object.entries(o)){let f=nt(p,t);Ue(n,m,a.has(m)?f:f.optional())}if(e.patternProperties){let m=e.patternProperties,p=Object.keys(m),f=[];for(let v of p){let y=nt(m[v],t),R=q.string().regex(new RegExp(v));f.push(q.looseRecord(R,y))}let h=[];if(Object.keys(n).length>0&&h.push(q.object(n).passthrough()),h.push(...f),h.length===0)i=q.object({}).passthrough();else if(h.length===1)i=h[0];else{let v=q.intersection(h[0],h[1]);for(let y=2;y<h.length;y++)v=q.intersection(v,h[y]);i=v}if(e.additionalProperties===!1){let v=Object.keys(n),y=p.map(w=>new RegExp(w)),R=i;i=i.check(w=>{if(!$t(w.value))return;let E=[];for(let D of Object.keys(w.value))v.includes(D)||y.some(F=>F.test(D))||E.push(D);E.length&&w.issues.push({code:"unrecognized_keys",keys:E,input:w.value,inst:R})})}}else{let m=q.object(n);e.additionalProperties===!1?i=m.strict():s?i=m.catchall(s):i=m.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,l=typeof e.minProperties=="number"?e.minProperties:void 0,u=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||l!==void 0||u!==void 0){let m;if(c){let p=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;m=nt(p,t)}i=nC(i,{keySchema:m,minProperties:l,maxProperties:u})}break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=typeof e.minItems=="number"?e.minItems:0,s=n.map(m=>nt(m,t)),c=PR(s,a),l=Array.isArray(o)?void 0:CR(o,t),u=q.tuple(c);i=l?u.rest(l):u,typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(m=>nt(m,t)),c=PR(s,a),l=CR(e.additionalItems,t),u=q.tuple(c);i=l?u.rest(l):u,typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(o!==void 0){let a=nt(o,t),s=q.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=q.array(q.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=oC(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?nt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return i}function nt(e,t){if(typeof e=="boolean")return e?q.any():q.never();let r=NR(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=>nt(l,t)),c=q.union(s);r=i?q.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>nt(l,t)),c=q.xor(s);r=i?q.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:q.any();else{let s=i?r:nt(e.allOf[0],t),c=i?0:1;for(let l=c;l<e.allOf.length;l++)s=q.intersection(s,nt(e.allOf[l],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=q.nullable(r)),e.readOnly===!0&&(r=q.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Ka(e.propertyNames)&&(n.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(n[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Ka(e.contains)&&(n.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(n[s]=e[s])}for(let s of Object.keys(e))XO.has(s)||Ue(n,s,e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function AR(e,t){if(typeof e=="boolean")return e?q.any():q.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=QO(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Le};return nt(r,o)}var jR=Symbol("z.visit/resolving");function Ba(e,t){let r=typeof t=="function"?t:(a,s)=>{let c=t[a._zod.def.type];return c?c(a,s):a},i=new Map;function n(a){let s=i.get(a);if(s===jR)return new $a({type:"lazy",getter:()=>i.get(a)});if(s!==void 0)return s;i.set(a,jR);let c=o(a),l=r(c,c!==a);return i.set(a,l),l}function o(a){let s=a._zod.def,c=s.type;switch(c){case"object":{let l=s.shape,u=Object.keys(l),m=!1,p={};for(let h of u){let v=n(l[h]);v!==l[h]&&(m=!0),p[h]=v}let f=s.catchall;return s.catchall&&(f=n(s.catchall),f!==s.catchall&&(m=!0)),m?pe(a,{...s,shape:p,catchall:f}):a}case"array":{let l=n(s.element);return l===s.element?a:pe(a,{...s,element:l})}case"tuple":{let l=s.items,u=!1,m=[];for(let f of l){let h=n(f);h!==f&&(u=!0),m.push(h)}let p=s.rest;return s.rest&&(p=n(s.rest),p!==s.rest&&(u=!0)),u?pe(a,{...s,items:m,rest:p}):a}case"record":case"map":{let l=n(s.keyType),u=n(s.valueType);return l===s.keyType&&u===s.valueType?a:pe(a,{...s,keyType:l,valueType:u})}case"set":{let l=n(s.valueType);return l===s.valueType?a:pe(a,{...s,valueType:l})}case"union":{let l=s.options,u=!1,m=[];for(let p of l){let f=n(p);f!==p&&(u=!0),m.push(f)}return u?pe(a,{...s,options:m}):a}case"intersection":{let l=n(s.left),u=n(s.right);return l===s.left&&u===s.right?a:pe(a,{...s,left:l,right:u})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let l=n(s.innerType);return l===s.innerType?a:pe(a,{...s,innerType:l})}case"pipe":{let l=n(s.in),u=n(s.out);return l===s.in&&u===s.out?a:pe(a,{...s,in:l,out:u})}case"function":{let l=n(s.input),u=n(s.output);return l===s.input&&u===s.output?a:pe(a,{...s,input:l,output:u})}case"lazy":{let l=s.getter,{_cachedInner:u,...m}=s;return pe(a,{...m,getter:()=>n(l())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return n(e)}function UR(e){return Ba(e,{object:t=>t.partial(),union:t=>{let r=t._zod.def;return r.discriminator===void 0?t:L(r.options)}})}function sC(e,t){if(!t?.length)return e;let r=e._zod.def;return pe(e,Ot(r,{checks:[...r.checks??[],...t]}),{parent:!0})}function LR(e){return sC(e.out,e.checks)}function cC(e){return e.in._zod.traits.has("$ZodTransform")?LR(e):e.in}function DR(e){return Ba(e,{pipe:t=>cC(t._zod.def),default:(t,r)=>r?J(t._zod.def.innerType):t,catch:(t,r)=>r?t._zod.def.innerType:t})}function MR(e){return Ba(e,{pipe:t=>LR(t._zod.def),prefault:(t,r)=>r?t._zod.def.innerType:t})}var Ja={};un(Ja,{bigint:()=>mC,boolean:()=>dC,date:()=>pC,number:()=>uC,string:()=>lC});function lC(e){return Yh(Fi,e)}function uC(e){return tg(Bi,e)}function dC(e){return cg(Ji,e)}function mC(e){return ug(Hi,e)}function pC(e){return bg(La,e)}var Nr="2025-11-25",bu="2025-03-26",Ha=[Nr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],$u="io.modelcontextprotocol/related-task",zt="io.modelcontextprotocol/protocolVersion",Ar="io.modelcontextprotocol/clientInfo",tn="io.modelcontextprotocol/serverInfo",nn="io.modelcontextprotocol/clientCapabilities",jr="io.modelcontextprotocol/subscriptionId",Kn="io.modelcontextprotocol/logLevel";var Ur="2.0";var Fn=Zn(()=>L([d(),x(),U(),en(),A(d(),Fn),b(Fn)])),Re=A(d(),Fn),$y=b(Fn),Ya=L([d(),x().int()]),Ga=d(),ku=g({ttl:x().optional()}),Ru=g({taskId:d()}),Wa=K({progressToken:Ya.optional(),[$u]:Ru.optional()}),Ee=g({_meta:Wa.optional()}),Lr=Ee.extend({task:ku.optional()}),we=g({method:d(),params:Ee.loose().optional()}),Fe=g({_meta:Wa.optional()}),Ke=g({method:d(),params:Fe.loose().optional()}),Xa=K({get[tn](){return Qi.optional().catch(void 0)}}),_e=K({_meta:Xa.optional()}),Bn=L([d(),x().int()]),Qa=g({jsonrpc:$(Ur),id:Bn,...we.shape}).strict(),es=g({jsonrpc:$(Ur),...Ke.shape}).strict(),Gi=g({jsonrpc:$(Ur),id:Bn,result:_e}).strict(),Wi=g({jsonrpc:$(Ur),id:Bn.optional(),error:g({code:x().int(),message:d(),data:B().optional()})}).strict(),Xi=L([Qa,es,Gi,Wi]),ky=L([Gi,Wi]),ts=_e.strict(),wu=Fe.extend({requestId:Bn.optional(),reason:d().optional()}),ns=Ke.extend({method:$("notifications/cancelled"),params:wu}),zu=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:Q(["light","dark"]).optional()}),Jn=g({icons:b(zu).optional()}),vn=g({name:d(),title:d().optional()}),Qi=vn.extend({...vn.shape,...Jn.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),fC=At(g({applyDefaults:U().optional()}),Re),hC=gn(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,At(g({form:fC.optional(),url:Re.optional()}),Re.optional())),Iu=K({list:Re.optional(),cancel:Re.optional(),requests:K({sampling:K({createMessage:Re.optional()}).optional(),elicitation:K({create:Re.optional()}).optional()}).optional()}),Tu=K({list:Re.optional(),cancel:Re.optional(),requests:K({tools:K({call:Re.optional()}).optional()}).optional()}),xu=g({experimental:A(d(),Re).optional(),sampling:g({context:Re.optional(),tools:Re.optional()}).optional(),elicitation:hC.optional(),roots:g({listChanged:U().optional()}).optional(),tasks:Iu.optional(),extensions:A(d(),Re).optional()}),Eu=Ee.extend({protocolVersion:d(),capabilities:xu,clientInfo:Qi}),rs=we.extend({method:$("initialize"),params:Eu}),is=g({experimental:A(d(),Re).optional(),logging:Re.optional(),completions:Re.optional(),prompts:g({listChanged:U().optional()}).optional(),resources:g({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:g({listChanged:U().optional()}).optional(),tasks:Tu.optional(),extensions:A(d(),Re).optional()}),Pu=_e.extend({protocolVersion:d(),capabilities:is,serverInfo:Qi,instructions:d().optional()}),Ou=Ke.extend({method:$("notifications/initialized"),params:Fe.optional()}),Cu=we.extend({method:$("server/discover"),params:Ee.optional()}),Nu=_e.extend({supportedVersions:b(d()),capabilities:is,instructions:d().optional()}),os=we.extend({method:$("ping"),params:Ee.optional()}),Au=g({progress:x(),total:J(x()),message:J(d())}),ju=g({...Fe.shape,...Au.shape,progressToken:Ya}),as=Ke.extend({method:$("notifications/progress"),params:ju}),Hn=Ee.extend({cursor:Ga.optional()}),Yn=we.extend({params:Hn.optional()}),jt=_e.extend({nextCursor:Ga.optional()}),ss=g({uri:d(),mimeType:J(d()),_meta:A(d(),B()).optional()}),cs=ss.extend({text:d()}),Ry=d().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ls=ss.extend({blob:Ry}),Gn=Q(["user","assistant"]),yn=g({audience:b(Gn).optional(),priority:x().min(0).max(1).optional(),lastModified:wt.datetime({offset:!0}).optional()}),Dr=g({...vn.shape,...Jn.shape,uri:d(),description:J(d()),mimeType:J(d()),size:J(x()),annotations:yn.optional(),_meta:J(K({}))}),Uu=g({...vn.shape,...Jn.shape,uriTemplate:d(),description:J(d()),mimeType:J(d()),annotations:yn.optional(),_meta:J(K({}))}),Lu=Yn.extend({method:$("resources/list")}),Du=jt.extend({resources:b(Dr)}),Mu=Yn.extend({method:$("resources/templates/list")}),qu=jt.extend({resourceTemplates:b(Uu)}),eo=Ee.extend({uri:d()}),Vu=eo,Zu=we.extend({method:$("resources/read"),params:Vu}),Fu=_e.extend({contents:b(L([cs,ls]))}),Ku=Ke.extend({method:$("notifications/resources/list_changed"),params:Fe.optional()}),Bu=eo,Ju=we.extend({method:$("resources/subscribe"),params:Bu}),Hu=eo,Yu=we.extend({method:$("resources/unsubscribe"),params:Hu}),us=g({toolsListChanged:U().optional(),promptsListChanged:U().optional(),resourcesListChanged:U().optional(),resourceSubscriptions:b(d()).optional()}),Gu=Ee.extend({notifications:us}),Wu=we.extend({method:$("subscriptions/listen"),params:Gu}),Xu=Fe.extend({notifications:us}),Qu=Ke.extend({method:$("notifications/subscriptions/acknowledged"),params:Xu}),ed=Xa.extend({[jr]:Bn}),td=_e.extend({_meta:ed}),nd=Fe.extend({uri:d()}),rd=Ke.extend({method:$("notifications/resources/updated"),params:nd}),id=g({name:d(),description:J(d()),required:J(U())}),od=g({...vn.shape,...Jn.shape,description:J(d()),arguments:J(b(id)),_meta:J(K({}))}),ad=Yn.extend({method:$("prompts/list")}),sd=jt.extend({prompts:b(od)}),cd=Ee.extend({name:d(),arguments:A(d(),d()).optional()}),ld=we.extend({method:$("prompts/get"),params:cd}),to=g({type:$("text"),text:d(),annotations:yn.optional(),_meta:A(d(),B()).optional()}),no=g({type:$("image"),data:Ry,mimeType:d(),annotations:yn.optional(),_meta:A(d(),B()).optional()}),ro=g({type:$("audio"),data:Ry,mimeType:d(),annotations:yn.optional(),_meta:A(d(),B()).optional()}),ud=g({type:$("tool_use"),name:d(),id:d(),input:A(d(),B()),_meta:A(d(),B()).optional()}),dd=g({type:$("resource"),resource:L([cs,ls]),annotations:yn.optional(),_meta:A(d(),B()).optional()}),md=Dr.extend({type:$("resource_link")}),io=L([to,no,ro,md,dd]),pd=g({role:Gn,content:io}),fd=_e.extend({description:d().optional(),messages:b(pd)}),hd=Ke.extend({method:$("notifications/prompts/list_changed"),params:Fe.optional()}),gd=g({title:d().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),vd=g({taskSupport:Q(["required","optional","forbidden"]).optional()}),ds=g({...vn.shape,...Jn.shape,description:d().optional(),inputSchema:g({type:$("object"),properties:A(d(),Fn).optional(),required:b(d()).optional()}).catchall(B()),outputSchema:K({$schema:d().optional()}).optional(),annotations:gd.optional(),execution:vd.optional(),_meta:A(d(),B()).optional()}),yd=Yn.extend({method:$("tools/list")}),Sd=jt.extend({tools:b(ds)}),ms=_e.extend({content:b(io).default([]),structuredContent:B().optional(),isError:U().optional()}),wy=ms.or(_e.extend({toolResult:B()})),_d=Lr.extend({name:d(),arguments:A(d(),B()).optional()}),bd=we.extend({method:$("tools/call"),params:_d}),$d=Ke.extend({method:$("notifications/tools/list_changed"),params:Fe.optional()}),zy=g({autoRefresh:U().default(!0),debounceMs:x().int().nonnegative().default(300)}),Wn=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),kd=Ee.extend({level:Wn}),Rd=we.extend({method:$("logging/setLevel"),params:kd}),wd=Fe.extend({level:Wn,logger:d().optional(),data:B()}),zd=Ke.extend({method:$("notifications/message"),params:wd}),Id=g({name:d().optional()}),Td=g({hints:b(Id).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),xd=g({mode:Q(["auto","required","none"]).optional()}),Ed=g({type:$("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:b(io),structuredContent:B().optional(),isError:U().optional(),_meta:A(d(),B()).optional()}),Pd=Vn("type",[to,no,ro]),Cr=Vn("type",[to,no,ro,ud,Ed]),Od=g({role:Gn,content:L([Cr,b(Cr)]),_meta:A(d(),B()).optional()}),Cd=Lr.extend({messages:b(Od),modelPreferences:Td.optional(),systemPrompt:d().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:Re.optional(),tools:b(ds).optional(),toolChoice:xd.optional()}),Nd=we.extend({method:$("sampling/createMessage"),params:Cd}),Ad=_e.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens"]).or(d())),role:Gn,content:Pd}),jd=_e.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:Gn,content:L([Cr,b(Cr)])}),ps=g({type:$("boolean"),title:d().optional(),description:d().optional(),default:U().optional()}),oo=g({type:$("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:d().optional()}),ao=g({type:Q(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),fs=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),hs=g({type:$("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),gs=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),Ud=L([fs,hs]),vs=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:$("string"),enum:b(d())}),default:b(d()).optional()}),ys=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),Ld=L([vs,ys]),Dd=L([gs,Ud,Ld]),Ss=L([Dd,ps,oo,ao]),so=Lr.extend({mode:$("form").optional(),message:d(),requestedSchema:g({type:$("object"),properties:A(d(),Ss),required:b(d()).optional()}).catchall(B())}),Md=Lr.extend({mode:$("url"),message:d(),elicitationId:d(),url:d().url()}),qd=L([so,Md]),Vd=we.extend({method:$("elicitation/create"),params:qd}),Zd=Fe.extend({elicitationId:d()}),Fd=Ke.extend({method:$("notifications/elicitation/complete"),params:Zd}),Kd=_e.extend({action:Q(["accept","decline","cancel"]),content:gn(e=>e===null?void 0:e,A(d(),L([d(),x(),U(),b(d())])).optional())}),Bd=g({type:$("ref/resource"),uri:d()}),Jd=g({type:$("ref/prompt"),name:d()}),Hd=Ee.extend({ref:L([Jd,Bd]),argument:g({name:d(),value:d()}),context:g({arguments:A(d(),d()).optional()}).optional()}),Yd=we.extend({method:$("completion/complete"),params:Hd}),Gd=_e.extend({completion:K({values:b(d()).max(100),total:J(x().int()),hasMore:J(U())})}),Wd=g({uri:d().startsWith("file://"),name:d().optional(),_meta:A(d(),B()).optional()}),Xd=we.extend({method:$("roots/list"),params:Ee.optional()}),Qd=_e.extend({roots:b(Wd)}),em=Ke.extend({method:$("notifications/roots/list_changed"),params:Fe.optional()}),Iy=K({ttl:x().optional(),pollInterval:x().optional()}),tm=Q(["working","input_required","completed","failed","cancelled"]),Xn=g({taskId:d(),status:tm,ttl:L([x(),en()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:J(x()),statusMessage:J(d())}),Ty=_e.extend({task:Xn}),nm=Fe.merge(Xn),xy=Ke.extend({method:$("notifications/tasks/status"),params:nm}),Ey=we.extend({method:$("tasks/get"),params:Ee.extend({taskId:d()})}),Py=_e.merge(Xn),Oy=we.extend({method:$("tasks/result"),params:Ee.extend({taskId:d()})}),Cy=_e.loose(),Ny=Yn.extend({method:$("tasks/list")}),Ay=jt.extend({tasks:b(Xn)}),jy=we.extend({method:$("tasks/cancel"),params:Ee.extend({taskId:d()})}),Uy=_e.merge(Xn),Ly=L([os,rs,Cu,Yd,Rd,ld,ad,Lu,Mu,Zu,Ju,Yu,Wu,bd,yd]),Dy=L([ns,as,Ou,em]),My=L([ts,Ad,jd,Kd,Qd]),qy=L([os,Nd,Vd,Xd]),Vy=L([ns,as,zd,rd,Ku,$d,hd,Qu,Fd]),Zy=L([ts,Pu,Nu,Gd,fd,sd,Du,qu,Fu,ms,Sd,td]);var Ae=Ki().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Sy.custom,message:"URL must be parseable",fatal:!0}),oa}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Ky=K({resource:d().url(),authorization_servers:b(Ae).optional(),jwks_uri:d().url().optional(),scopes_supported:b(d()).optional(),bearer_methods_supported:b(d()).optional(),resource_signing_alg_values_supported:b(d()).optional(),resource_name:d().optional(),resource_documentation:d().optional(),resource_policy_uri:d().url().optional(),resource_tos_uri:d().url().optional(),tls_client_certificate_bound_access_tokens:U().optional(),authorization_details_types_supported:b(d()).optional(),dpop_signing_alg_values_supported:b(d()).optional(),dpop_bound_access_tokens_required:U().optional()}),rm=K({issuer:d(),authorization_endpoint:Ae,token_endpoint:Ae,registration_endpoint:Ae.optional(),scopes_supported:b(d()).optional(),response_types_supported:b(d()),response_modes_supported:b(d()).optional(),grant_types_supported:b(d()).optional(),token_endpoint_auth_methods_supported:b(d()).optional(),token_endpoint_auth_signing_alg_values_supported:b(d()).optional(),service_documentation:Ae.optional(),revocation_endpoint:Ae.optional(),revocation_endpoint_auth_methods_supported:b(d()).optional(),revocation_endpoint_auth_signing_alg_values_supported:b(d()).optional(),introspection_endpoint:d().optional(),introspection_endpoint_auth_methods_supported:b(d()).optional(),introspection_endpoint_auth_signing_alg_values_supported:b(d()).optional(),code_challenge_methods_supported:b(d()).optional(),client_id_metadata_document_supported:U().optional(),authorization_response_iss_parameter_supported:U().optional().catch(void 0),dpop_signing_alg_values_supported:b(d()).optional()}),im=K({issuer:d(),authorization_endpoint:Ae,token_endpoint:Ae,userinfo_endpoint:Ae.optional(),jwks_uri:Ae,registration_endpoint:Ae.optional(),scopes_supported:b(d()).optional(),response_types_supported:b(d()),response_modes_supported:b(d()).optional(),grant_types_supported:b(d()).optional(),acr_values_supported:b(d()).optional(),subject_types_supported:b(d()),id_token_signing_alg_values_supported:b(d()),id_token_encryption_alg_values_supported:b(d()).optional(),id_token_encryption_enc_values_supported:b(d()).optional(),userinfo_signing_alg_values_supported:b(d()).optional(),userinfo_encryption_alg_values_supported:b(d()).optional(),userinfo_encryption_enc_values_supported:b(d()).optional(),request_object_signing_alg_values_supported:b(d()).optional(),request_object_encryption_alg_values_supported:b(d()).optional(),request_object_encryption_enc_values_supported:b(d()).optional(),token_endpoint_auth_methods_supported:b(d()).optional(),token_endpoint_auth_signing_alg_values_supported:b(d()).optional(),display_values_supported:b(d()).optional(),claim_types_supported:b(d()).optional(),claims_supported:b(d()).optional(),service_documentation:d().optional(),claims_locales_supported:b(d()).optional(),ui_locales_supported:b(d()).optional(),claims_parameter_supported:U().optional(),request_parameter_supported:U().optional(),request_uri_parameter_supported:U().optional(),require_request_uri_registration:U().optional(),op_policy_uri:Ae.optional(),op_tos_uri:Ae.optional(),client_id_metadata_document_supported:U().optional(),authorization_response_iss_parameter_supported:U().optional().catch(void 0)}),By=g({...im.shape,...rm.pick({code_challenge_methods_supported:!0}).shape}),Jy=g({access_token:d(),id_token:d().optional(),token_type:d(),expires_in:Ja.number().optional(),scope:d().optional(),refresh_token:d().optional(),issuer:d().optional().catch(void 0)}).strip(),Hy=g({issued_token_type:$("urn:ietf:params:oauth:token-type:id-jag"),access_token:d(),token_type:d().optional(),expires_in:x().optional(),scope:d().optional()}).strip(),Yy=g({error:d(),error_description:d().optional(),error_uri:d().optional()}),Fy=Ae.optional().or($("").transform(()=>{})),om=g({redirect_uris:b(Ae),token_endpoint_auth_method:d().optional(),grant_types:b(d()).optional(),response_types:b(d()).optional(),application_type:d().optional(),client_name:d().optional(),client_uri:Ae.optional(),logo_uri:Fy,scope:d().optional(),contacts:b(d()).optional(),tos_uri:Fy,policy_uri:d().optional(),jwks_uri:Ae.optional(),jwks:gu().optional(),software_id:d().optional(),software_version:d().optional(),software_statement:d().optional()}).strip(),am=g({client_id:d(),client_secret:d().optional(),client_id_issued_at:x().optional(),client_secret_expires_at:x().optional(),issuer:d().optional().catch(void 0)}).strip(),Gy=om.merge(am),Wy=g({error:d(),error_description:d().optional()}).strip(),Xy=g({token:d(),token_type_hint:d().optional()}).strip();var iS=Symbol.for("mcp.sdk.errorBrands");function zs(e,t){let r=new Set,i=t;for(;typeof i=="function";){let n=i.mcpBrand;Object.prototype.hasOwnProperty.call(i,"mcpBrand")&&typeof n=="string"&&r.add(n),i=Object.getPrototypeOf(i)}r.size!==0&&Object.defineProperty(e,iS,{value:r,enumerable:!1,configurable:!0})}function _n(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,iS)){let r=t[iS];if(r&&typeof r.has=="function"&&r.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var Vr=(function(e){return e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedGrantType="unsupported_grant_type",e.InvalidScope="invalid_scope",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedTokenType="unsupported_token_type",e.InvalidToken="invalid_token",e.MethodNotAllowed="method_not_allowed",e.TooManyRequests="too_many_requests",e.InvalidClientMetadata="invalid_client_metadata",e.InvalidRedirectUri="invalid_redirect_uri",e.InsufficientScope="insufficient_scope",e.InvalidTarget="invalid_target",e.InvalidDpopProof="invalid_dpop_proof",e.UseDpopNonce="use_dpop_nonce",e})({}),Is=class mw extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return _n(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return _n(this,t)}constructor(t,r,i){super(r),this.code=t,this.errorUri=i,this.name="OAuthError",zs(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new mw(t.error,t.error_description??t.error,t.error_uri)}},se=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),re=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return _n(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return _n(this,e)}constructor(e,t,r,i){super(t,i),this.code=e,this.data=r,this.name="SdkError",zs(this,new.target)}},gC=class extends re{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,r,i){super(e,t,r,i),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};var YR={};function pw(e){return Object.hasOwn(YR,e)?YR[e]:void 0}function GR(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function vC(e,t,r){return e==="elicitation"&&t==="form"&&r.form===void 0&&r.url===void 0}function fw(e){switch(e.method){case"elicitation/create":return e.params?.mode==="url"?{elicitation:{url:{}}}:{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;return t!==void 0&&(t.tools!==void 0||t.toolChoice!==void 0)?{sampling:{tools:{}}}:{sampling:{}}}case"roots/list":return{roots:{}};default:return}}function Ts(e,t){let r={};for(let[i,n]of Object.entries(e)){if(n===void 0)continue;let o=t===void 0?void 0:t[i];if(o===void 0){r[i]=n;continue}if(GR(n)&&GR(o)){let a={};for(let[s,c]of Object.entries(n))c!==void 0&&o[s]===void 0&&!vC(i,s,o)&&(a[s]=c);Object.keys(a).length>0&&(r[i]=a)}}return Object.keys(r).length>0?r:void 0}var hw="2026-07-28",Zr=[hw];function Lt(e){return e>=hw}function gw(e){return e.filter(t=>!Lt(t))}function pm(e){return e.filter(t=>Lt(t))}function vw(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(r=>r.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var yw=["task","inputRequests","requestState"];function cS(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||yw.some(t=>t in e)?e:{...e,content:[]}}function yC(){let e=Zn(()=>L([d(),x(),U(),en(),A(d(),e),b(e)])),t=A(d(),e),r=L([d(),x().int()]),i=d(),n=g({ttl:x().optional()}),o=g({taskId:d()}),a=K({progressToken:r.optional(),"io.modelcontextprotocol/related-task":o.optional()}),s=g({_meta:a.optional()}),c=s.extend({task:n.optional()}),l=g({method:d(),params:s.loose().optional()}),u=g({_meta:a.optional()}),m=g({method:d(),params:u.loose().optional()}),p=K({_meta:a.optional()}),f=L([d(),x().int()]),h=p.strict(),v=u.extend({requestId:f.optional(),reason:d().optional()}),y=m.extend({method:$("notifications/cancelled"),params:v}),R=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:Q(["light","dark"]).optional()}),w=g({icons:b(R).optional()}),E=g({name:d(),title:d().optional()}),D=E.extend({...E.shape,...w.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),F=At(g({applyDefaults:U().optional()}),t),N=gn(Ve=>Ve&&typeof Ve=="object"&&!Array.isArray(Ve)&&Object.keys(Ve).length===0?{form:{}}:Ve,At(g({form:F.optional(),url:t.optional()}),t.optional())),te=K({list:t.optional(),cancel:t.optional(),requests:K({sampling:K({createMessage:t.optional()}).optional(),elicitation:K({create:t.optional()}).optional()}).optional()}),ie=K({list:t.optional(),cancel:t.optional(),requests:K({tools:K({call:t.optional()}).optional()}).optional()}),Y=g({experimental:A(d(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:N.optional(),roots:g({listChanged:U().optional()}).optional(),tasks:te.optional(),extensions:A(d(),t).optional()}),ye=s.extend({protocolVersion:d(),capabilities:Y,clientInfo:D}),be=l.extend({method:$("initialize"),params:ye}),ce=g({experimental:A(d(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:U().optional()}).optional(),resources:g({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:g({listChanged:U().optional()}).optional(),tasks:ie.optional(),extensions:A(d(),t).optional()}),Ie=p.extend({protocolVersion:d(),capabilities:ce,serverInfo:D,instructions:d().optional()}),Pe=m.extend({method:$("notifications/initialized"),params:u.optional()}),De=l.extend({method:$("ping"),params:s.optional()}),Je=g({progress:x(),total:J(x()),message:J(d())}),rt=g({...u.shape,...Je.shape,progressToken:r}),yt=m.extend({method:$("notifications/progress"),params:rt}),Vt=s.extend({cursor:i.optional()}),dt=l.extend({params:Vt.optional()}),He=p.extend({nextCursor:i.optional()}),cn=g({uri:d(),mimeType:J(d()),_meta:A(d(),B()).optional()}),ln=cn.extend({text:d()}),Zt=d().refine(Ve=>{try{return atob(Ve),!0}catch{return!1}},{message:"Invalid Base64 string"}),Me=cn.extend({blob:Zt}),Ye=Q(["user","assistant"]),Ge=g({audience:b(Ye).optional(),priority:x().min(0).max(1).optional(),lastModified:wt.datetime({offset:!0}).optional()}),xt=g({...E.shape,...w.shape,uri:d(),description:J(d()),mimeType:J(d()),size:J(x()),annotations:Ge.optional(),_meta:J(K({}))}),or=g({...E.shape,...w.shape,uriTemplate:d(),description:J(d()),mimeType:J(d()),annotations:Ge.optional(),_meta:J(K({}))}),mt=dt.extend({method:$("resources/list")}),pt=He.extend({resources:b(xt)}),it=dt.extend({method:$("resources/templates/list")}),St=He.extend({resourceTemplates:b(or)}),_t=s.extend({uri:d()}),Ft=_t,Kt=l.extend({method:$("resources/read"),params:Ft}),wn=p.extend({contents:b(L([ln,Me]))}),Bt=m.extend({method:$("notifications/resources/list_changed"),params:u.optional()}),ar=_t,V=l.extend({method:$("resources/subscribe"),params:ar}),Jt=_t,G=l.extend({method:$("resources/unsubscribe"),params:Jt}),H=u.extend({uri:d()}),ae=m.extend({method:$("notifications/resources/updated"),params:H}),Z=g({name:d(),description:J(d()),required:J(U())}),M=g({...E.shape,...w.shape,description:J(d()),arguments:J(b(Z)),_meta:J(K({}))}),ee=dt.extend({method:$("prompts/list")}),X=He.extend({prompts:b(M)}),Te=s.extend({name:d(),arguments:A(d(),d()).optional()}),sr=l.extend({method:$("prompts/get"),params:Te}),Ht=g({type:$("text"),text:d(),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),cr=g({type:$("image"),data:Zt,mimeType:d(),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),lr=g({type:$("audio"),data:Zt,mimeType:d(),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),yo=g({type:$("tool_use"),name:d(),id:d(),input:A(d(),B()),_meta:A(d(),B()).optional()}),zn=g({type:$("resource"),resource:L([ln,Me]),annotations:Ge.optional(),_meta:A(d(),B()).optional()}),So=xt.extend({type:$("resource_link")}),bt=L([Ht,cr,lr,So,zn]),Qr=g({role:Ye,content:bt}),ei=p.extend({description:d().optional(),messages:b(Qr)}),ur=m.extend({method:$("notifications/prompts/list_changed"),params:u.optional()}),_o=g({title:d().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),ti=g({taskSupport:Q(["required","optional","forbidden"]).optional()}),dr=g({...E.shape,...w.shape,description:d().optional(),inputSchema:g({type:$("object"),properties:A(d(),e).optional(),required:b(d()).optional()}).catchall(B()),outputSchema:g({type:$("object"),properties:A(d(),e).optional(),required:b(d()).optional()}).catchall(B()).optional(),annotations:_o.optional(),execution:ti.optional(),_meta:A(d(),B()).optional()}),ni=dt.extend({method:$("tools/list")}),ri=He.extend({tools:b(dr)}),ii=p.extend({content:b(bt),structuredContent:A(d(),B()).optional(),isError:U().optional()}),qe=c.extend({name:d(),arguments:A(d(),B()).optional()}),bo=l.extend({method:$("tools/call"),params:qe}),Ys=m.extend({method:$("notifications/tools/list_changed"),params:u.optional()}),oi=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),$o=s.extend({level:oi}),ko=l.extend({method:$("logging/setLevel"),params:$o}),Ro=u.extend({level:oi,logger:d().optional(),data:B()}),wo=m.extend({method:$("notifications/message"),params:Ro}),zo=g({name:d().optional()}),Io=g({hints:b(zo).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),To=g({mode:Q(["auto","required","none"]).optional()}),Gs=g({type:$("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:b(bt),structuredContent:g({}).loose().optional(),isError:U().optional(),_meta:A(d(),B()).optional()}),xo=Vn("type",[Ht,cr,lr]),In=Vn("type",[Ht,cr,lr,yo,Gs]),Eo=g({role:Ye,content:L([In,b(In)]),_meta:A(d(),B()).optional()}),Po=c.extend({messages:b(Eo),modelPreferences:Io.optional(),systemPrompt:d().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:t.optional(),tools:b(dr).optional(),toolChoice:To.optional()}),Oo=l.extend({method:$("sampling/createMessage"),params:Po}),Co=p.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens"]).or(d())),role:Ye,content:xo}),No=p.extend({model:d(),stopReason:J(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:Ye,content:L([In,b(In)])}),Ao=g({type:$("boolean"),title:d().optional(),description:d().optional(),default:U().optional()}),jo=g({type:$("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:d().optional()}),Uo=g({type:Q(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),Lo=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),Do=g({type:$("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),Mo=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),qo=L([Lo,Do]),mr=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:$("string"),enum:b(d())}),default:b(d()).optional()}),pr=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),Ws=L([mr,pr]),Xs=L([Mo,qo,Ws]),ft=L([Xs,Ao,jo,Uo]),ht=c.extend({mode:$("form").optional(),message:d(),requestedSchema:g({type:$("object"),properties:A(d(),ft),required:b(d()).optional()}).catchall(B())}),Vo=c.extend({mode:$("url"),message:d(),elicitationId:d(),url:d().url()}),Et=L([ht,Vo]),Qs=l.extend({method:$("elicitation/create"),params:Et}),ec=u.extend({elicitationId:d()}),tc=m.extend({method:$("notifications/elicitation/complete"),params:ec}),nc=p.extend({action:Q(["accept","decline","cancel"]),content:gn(Ve=>Ve===null?void 0:Ve,A(d(),L([d(),x(),U(),b(d())])).optional())}),rc=g({type:$("ref/resource"),uri:d()}),ic=g({type:$("ref/prompt"),name:d()}),oc=s.extend({ref:L([ic,rc]),argument:g({name:d(),value:d()}),context:g({arguments:A(d(),d()).optional()}).optional()}),Zo=l.extend({method:$("completion/complete"),params:oc}),ac=p.extend({completion:K({values:b(d()).max(100),total:J(x().int()),hasMore:J(U())})}),sc=g({uri:d().startsWith("file://"),name:d().optional(),_meta:A(d(),B()).optional()}),ai=l.extend({method:$("roots/list"),params:s.optional()}),Fo=p.extend({roots:b(sc)}),cc=m.extend({method:$("notifications/roots/list_changed"),params:u.optional()}),lc=K({ttl:x().optional(),pollInterval:x().optional()}),Ko=Q(["working","input_required","completed","failed","cancelled"]),Tn=g({taskId:d(),status:Ko,ttl:L([x(),en()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:J(x()),statusMessage:J(d())}),ot=p.extend({task:Tn}),uc=u.merge(Tn),fr=m.extend({method:$("notifications/tasks/status"),params:uc}),si=l.extend({method:$("tasks/get"),params:s.extend({taskId:d()})}),ci=p.merge(Tn),li=l.extend({method:$("tasks/result"),params:s.extend({taskId:d()})}),Wm=p.loose(),We=dt.extend({method:$("tasks/list")}),ze=He.extend({tasks:b(Tn)}),hr=l.extend({method:$("tasks/cancel"),params:s.extend({taskId:d()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:r,CursorSchema:i,TaskMetadataSchema:n,RelatedTaskMetadataSchema:o,RequestMetaSchema:a,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:m,ResultSchema:p,RequestIdSchema:f,EmptyResultSchema:h,CancelledNotificationParamsSchema:v,CancelledNotificationSchema:y,IconSchema:R,IconsSchema:w,BaseMetadataSchema:E,ImplementationSchema:D,ClientTasksCapabilitySchema:te,ServerTasksCapabilitySchema:ie,ClientCapabilitiesSchema:Y,InitializeRequestParamsSchema:ye,InitializeRequestSchema:be,ServerCapabilitiesSchema:ce,InitializeResultSchema:Ie,InitializedNotificationSchema:Pe,PingRequestSchema:De,ProgressSchema:Je,ProgressNotificationParamsSchema:rt,ProgressNotificationSchema:yt,PaginatedRequestParamsSchema:Vt,PaginatedRequestSchema:dt,PaginatedResultSchema:He,ResourceContentsSchema:cn,TextResourceContentsSchema:ln,BlobResourceContentsSchema:Me,RoleSchema:Ye,AnnotationsSchema:Ge,ResourceSchema:xt,ResourceTemplateSchema:or,ListResourcesRequestSchema:mt,ListResourcesResultSchema:pt,ListResourceTemplatesRequestSchema:it,ListResourceTemplatesResultSchema:St,ResourceRequestParamsSchema:_t,ReadResourceRequestParamsSchema:Ft,ReadResourceRequestSchema:Kt,ReadResourceResultSchema:wn,ResourceListChangedNotificationSchema:Bt,SubscribeRequestParamsSchema:ar,SubscribeRequestSchema:V,UnsubscribeRequestParamsSchema:Jt,UnsubscribeRequestSchema:G,ResourceUpdatedNotificationParamsSchema:H,ResourceUpdatedNotificationSchema:ae,PromptArgumentSchema:Z,PromptSchema:M,ListPromptsRequestSchema:ee,ListPromptsResultSchema:X,GetPromptRequestParamsSchema:Te,GetPromptRequestSchema:sr,TextContentSchema:Ht,ImageContentSchema:cr,AudioContentSchema:lr,ToolUseContentSchema:yo,EmbeddedResourceSchema:zn,ResourceLinkSchema:So,ContentBlockSchema:bt,PromptMessageSchema:Qr,GetPromptResultSchema:ei,PromptListChangedNotificationSchema:ur,ToolAnnotationsSchema:_o,ToolExecutionSchema:ti,ToolSchema:dr,ListToolsRequestSchema:ni,ListToolsResultSchema:ri,CallToolResultSchema:ii,CallToolRequestParamsSchema:qe,CallToolRequestSchema:bo,ToolListChangedNotificationSchema:Ys,LoggingLevelSchema:oi,SetLevelRequestParamsSchema:$o,SetLevelRequestSchema:ko,LoggingMessageNotificationParamsSchema:Ro,LoggingMessageNotificationSchema:wo,ModelHintSchema:zo,ModelPreferencesSchema:Io,ToolChoiceSchema:To,ToolResultContentSchema:Gs,SamplingContentSchema:xo,SamplingMessageContentBlockSchema:In,SamplingMessageSchema:Eo,CreateMessageRequestParamsSchema:Po,CreateMessageRequestSchema:Oo,CreateMessageResultSchema:Co,CreateMessageResultWithToolsSchema:No,BooleanSchemaSchema:Ao,StringSchemaSchema:jo,NumberSchemaSchema:Uo,UntitledSingleSelectEnumSchemaSchema:Lo,TitledSingleSelectEnumSchemaSchema:Do,LegacyTitledEnumSchemaSchema:Mo,SingleSelectEnumSchemaSchema:qo,UntitledMultiSelectEnumSchemaSchema:mr,TitledMultiSelectEnumSchemaSchema:pr,MultiSelectEnumSchemaSchema:Ws,EnumSchemaSchema:Xs,PrimitiveSchemaDefinitionSchema:ft,ElicitRequestFormParamsSchema:ht,ElicitRequestURLParamsSchema:Vo,ElicitRequestParamsSchema:Et,ElicitRequestSchema:Qs,ElicitationCompleteNotificationParamsSchema:ec,ElicitationCompleteNotificationSchema:tc,ElicitResultSchema:nc,ResourceTemplateReferenceSchema:rc,PromptReferenceSchema:ic,CompleteRequestParamsSchema:oc,CompleteRequestSchema:Zo,CompleteResultSchema:ac,RootSchema:sc,ListRootsRequestSchema:ai,ListRootsResultSchema:Fo,RootsListChangedNotificationSchema:cc,TaskCreationParamsSchema:lc,TaskStatusSchema:Ko,TaskSchema:Tn,CreateTaskResultSchema:ot,TaskStatusNotificationParamsSchema:uc,TaskStatusNotificationSchema:fr,GetTaskRequestSchema:si,GetTaskResultSchema:ci,GetTaskPayloadRequestSchema:li,GetTaskPayloadResultSchema:Wm,ListTasksRequestSchema:We,ListTasksResultSchema:ze,CancelTaskRequestSchema:hr,CancelTaskResultSchema:p.merge(Tn),ClientRequestSchema:L([De,be,Zo,ko,sr,ee,mt,it,Kt,V,G,bo,ni,si,li,We,hr]),ClientNotificationSchema:L([y,yt,Pe,cc,fr]),ClientResultSchema:L([h,Co,No,nc,Fo,ci,ze,ot]),ServerRequestSchema:L([De,Oo,Qs,ai,si,li,We,hr]),ServerNotificationSchema:L([y,yt,wo,ae,Bt,Ys,ur,fr,tc]),ServerResultSchema:L([h,Ie,ac,ei,X,pt,St,wn,ii,ri,ci,ze,ot]),CallToolResultWireSchema:B().superRefine((Ve,sx)=>{if(!(typeof Ve!="object"||Ve===null||Array.isArray(Ve)||Ve.content!==void 0)){for(let M_ of yw)if(M_ in Ve){sx.addIssue({code:"custom",message:`content is required when the body carries \'${M_}\' \\u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(cS).pipe(ii)}}var SC;function lS(){return SC??=yC()}function Sw(e){return e.type!=="object"}var _C=new Set(["const","enum","default","examples"]),bC=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function WR(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function $C(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if(WR(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let r=Y_(e.$schema)&&e.$recursiveAnchor!==!0,i=(n,o)=>{if(Array.isArray(n))return n.map(c=>i(c,!1));if(n===null||typeof n!="object"||!o&&WR(n.$id))return n;let a={},s=!1;for(let[c,l]of Object.entries(n))o?a[c]=i(l,!1):(c==="$ref"||c==="$dynamicRef")&&typeof l=="string"?a[c]=l==="#"?"#/properties/result":l.startsWith("#/")?`#/properties/result${l.slice(1)}`:l:c==="$recursiveRef"&&l==="#"&&r?s=!0:_C.has(c)?a[c]=l:bC.has(c)?a[c]=i(l,!0):a[c]=i(l,!1);return s&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:i(e,!1)},required:["result"]}}var _w={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},bw={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},kC={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},sm;function fm(){if(sm)return sm;let e=lS();return sm={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},sm}function RC(){fm()}function $w(e){return Object.prototype.hasOwnProperty.call(_w,e)}function kw(e){return Object.prototype.hasOwnProperty.call(bw,e)}function wC(e){return Object.prototype.hasOwnProperty.call(kC,e)}function zC(e){return wC(e)?fm().resultSchemas[e]:void 0}function IC(e){return $w(e)?fm().requestSchemas[e]:void 0}function TC(e){return kw(e)?fm().notificationSchemas[e]:void 0}var q4=Object.keys(_w),V4=Object.keys(bw);function oS(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cm(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let r=e.safeParse(t);return r.success?{ok:!0,value:r.data}:{ok:!1,reason:"invalid",message:String(r.error)}}var XR={ok:!1,reason:"not-in-era"};function QR(e){return oS(e)&&oS(e.outputSchema)&&Sw(e.outputSchema)}var uS={era:"2025-11-25",hasRequestMethod:$w,hasNotificationMethod:kw,validateRequest:(e,t)=>cm(IC(e),t),validateResult:(e,t)=>cm(zC(e),t),validateNotification:(e,t)=>cm(TC(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>XR,validateInputResponse:()=>XR,samplingResultVariant:((e,t)=>{let r=lS();return cm(e?r.CreateMessageResultWithToolsSchema:r.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let r=vw(e),i=r.structuredContent;if(i===void 0)return r;let n=typeof i!="object"||i===null||Array.isArray(i),o=t!==void 0&&Sw(t);return!n&&!o?r:{...r,structuredContent:{result:i}}},decodeResult(e,t){if(oS(t)&&"resultType"in t){let r={...t};return delete r.resultType,{kind:"complete",result:r}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let r=t.tools;return!Array.isArray(r)||!r.some(i=>QR(i))?t:{...t,tools:r.map(i=>QR(i)?{...i,outputSchema:$C(i.outputSchema)}:i)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function xC(){let e=Zn(()=>L([d(),x(),U(),en(),A(d(),e),b(e)])),t=A(d(),e),r=L([d(),x().int()]),i=d(),n=L([d(),x().int()]),o=Q(["user","assistant"]),a=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),s=d().refine(ze=>{try{return atob(ze),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=g({ttl:x().optional()}),l=g({taskId:d()}),u=K({progressToken:r.optional(),"io.modelcontextprotocol/related-task":l.optional()}),m=g({_meta:u.optional()}),p=m.extend({task:c.optional()}),f=g({_meta:u.optional()}),h=g({method:d(),params:f.loose().optional()}),v=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:Q(["light","dark"]).optional()}),y=g({icons:b(v).optional()}),R=g({name:d(),title:d().optional()}),w=R.extend({...R.shape,...y.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),E=At(g({applyDefaults:U().optional()}),t),D=gn(ze=>ze&&typeof ze=="object"&&!Array.isArray(ze)&&Object.keys(ze).length===0?{form:{}}:ze,At(g({form:E.optional(),url:t.optional()}),t.optional())),F=K({list:t.optional(),cancel:t.optional(),requests:K({sampling:K({createMessage:t.optional()}).optional(),elicitation:K({create:t.optional()}).optional()}).optional()}),N=K({list:t.optional(),cancel:t.optional(),requests:K({tools:K({call:t.optional()}).optional()}).optional()}),te=g({experimental:A(d(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:D.optional(),roots:g({listChanged:U().optional()}).optional(),tasks:F.optional(),extensions:A(d(),t).optional()}),ie=g({experimental:A(d(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:U().optional()}).optional(),resources:g({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:g({listChanged:U().optional()}).optional(),tasks:N.optional(),extensions:A(d(),t).optional()}),Y=g({progress:x(),total:J(x()),message:J(d())}),ye=g({...f.shape,...Y.shape,progressToken:r}),be=h.extend({method:$("notifications/progress"),params:ye}),ce=f.extend({level:a,logger:d().optional(),data:B()}),Ie=h.extend({method:$("notifications/message"),params:ce}),Pe=g({uri:d(),mimeType:J(d()),_meta:A(d(),B()).optional()}),De=Pe.extend({text:d()}),Je=Pe.extend({blob:s}),rt=g({audience:b(o).optional(),priority:x().min(0).max(1).optional(),lastModified:wt.datetime({offset:!0}).optional()}),yt=g({...R.shape,...y.shape,uri:d(),description:J(d()),mimeType:J(d()),size:J(x()),annotations:rt.optional(),_meta:J(K({}))}),Vt=g({...R.shape,...y.shape,uriTemplate:d(),description:J(d()),mimeType:J(d()),annotations:rt.optional(),_meta:J(K({}))}),dt=h.extend({method:$("notifications/resources/list_changed"),params:f.optional()}),He=f.extend({uri:d()}),cn=h.extend({method:$("notifications/resources/updated"),params:He}),ln=g({name:d(),description:J(d()),required:J(U())}),Zt=g({...R.shape,...y.shape,description:J(d()),arguments:J(b(ln)),_meta:J(K({}))}),Me=h.extend({method:$("notifications/prompts/list_changed"),params:f.optional()}),Ye=g({type:$("text"),text:d(),annotations:rt.optional(),_meta:A(d(),B()).optional()}),Ge=g({type:$("image"),data:s,mimeType:d(),annotations:rt.optional(),_meta:A(d(),B()).optional()}),xt=g({type:$("audio"),data:s,mimeType:d(),annotations:rt.optional(),_meta:A(d(),B()).optional()}),or=g({type:$("tool_use"),name:d(),id:d(),input:A(d(),B()),_meta:A(d(),B()).optional()}),mt=g({type:$("resource"),resource:L([De,Je]),annotations:rt.optional(),_meta:A(d(),B()).optional()}),pt=yt.extend({type:$("resource_link")}),it=L([Ye,Ge,xt,pt,mt]),St=g({role:o,content:it}),_t=g({title:d().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),Ft=h.extend({method:$("notifications/tools/list_changed"),params:f.optional()}),Kt=g({name:d().optional()}),wn=g({hints:b(Kt).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Bt=g({mode:Q(["auto","required","none"]).optional()}),ar=g({type:$("boolean"),title:d().optional(),description:d().optional(),default:U().optional()}),V=g({type:$("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:d().optional()}),Jt=g({type:Q(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),G=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),H=g({type:$("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),ae=g({type:$("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),Z=L([G,H]),M=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:$("string"),enum:b(d())}),default:b(d()).optional()}),ee=g({type:$("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),X=L([M,ee]),Te=L([ae,Z,X]),sr=L([Te,ar,V,Jt]),Ht=p.extend({mode:$("form").optional(),message:d(),requestedSchema:g({type:$("object"),properties:A(d(),sr),required:b(d()).optional()}).catchall(B())}),cr=g({type:$("ref/resource"),uri:d()}),lr=g({type:$("ref/prompt"),name:d()}),yo=g({uri:d().startsWith("file://"),name:d().optional(),_meta:A(d(),B()).optional()}),zn=te.shape,So=g({experimental:zn.experimental,sampling:zn.sampling,elicitation:zn.elicitation,roots:zn.roots,extensions:zn.extensions}),bt=ie.shape,Qr=g({experimental:bt.experimental,logging:bt.logging,completions:bt.completions,prompts:bt.prompts,resources:bt.resources,tools:bt.tools,extensions:bt.extensions}),ei=K({progressToken:r.optional(),[zt]:d(),[Ar]:w.optional(),[nn]:So,[Kn]:a.optional()}),ur=g({...R.shape,...y.shape,description:d().optional(),inputSchema:K({$schema:d().optional(),type:$("object")}),outputSchema:K({$schema:d().optional()}).optional(),annotations:_t.optional(),_meta:A(d(),B()).optional()}),_o=g({type:$("tool_result"),toolUseId:d(),content:b(it),structuredContent:B().optional(),isError:U().optional(),_meta:A(d(),B()).optional()}),ti=L([Ye,Ge,xt,or,_o]),dr=g({role:o,content:L([ti,b(ti)]),_meta:A(d(),B()).optional()}),ni=d(),ri=K({[tn]:w.optional().catch(void 0)}),ii=ri.optional();function qe(ze){return K({_meta:ii,resultType:ni.default("complete"),...ze})}let bo=qe({}),Ys=qe({nextCursor:i.optional()}),oi=qe({content:b(it),structuredContent:B().optional(),isError:U().optional()}),$o=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),tools:b(ur),nextCursor:i.optional()}),ko=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),prompts:b(Zt),nextCursor:i.optional()}),Ro=qe({description:d().optional(),messages:b(St)}),wo=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resources:b(yt),nextCursor:i.optional()}),zo=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resourceTemplates:b(Vt),nextCursor:i.optional()}),Io=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),contents:b(L([De,Je]))}),To=qe({completion:g({values:b(d()).max(100),total:x().int().optional(),hasMore:U().optional()}).loose()}),Gs=qe({ttlMs:x().int().min(0),cacheScope:Q(["public","private"])}),xo=qe({ttlMs:x().int().min(0).catch(0),cacheScope:Q(["public","private"]).catch("private"),supportedVersions:b(d()),capabilities:Qr,instructions:d().optional()}),In=g({messages:b(dr),modelPreferences:wn.optional(),systemPrompt:d().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:t.optional(),tools:b(ur).optional(),toolChoice:Bt.optional()}),Eo=g({method:$("sampling/createMessage"),params:In}),Po=g({method:$("roots/list"),params:g({_meta:A(d(),B()).optional()}).optional()}),Oo=g({...dr.shape,model:d(),stopReason:d().optional()}),Co=g({roots:b(yo)}),No=g({action:Q(["accept","decline","cancel"]),content:A(d(),L([d(),x(),U(),b(d())])).optional()}),Ao=g({mode:$("url"),message:d(),url:d().url()}),jo=L([Ht,Ao]),Uo=g({method:$("elicitation/create"),params:jo}),Lo=L([Eo,Po,Uo]),Do=L([Oo,Co,No]),Mo=A(d(),Lo),qo=A(d(),Do),mr=qe({inputRequests:Mo.optional(),requestState:d().optional()}),pr={inputResponses:qo.optional(),requestState:d().optional()},Ws=g({_meta:ei,...pr}),Xs=K({progressToken:r.optional()});function ft(ze,hr){return g({method:$(ze),params:g({_meta:ei,...hr})})}function ht(ze,hr){return g({method:$(ze),params:g({_meta:Xs.optional(),...hr}).optional()})}let Vo={name:d(),arguments:A(d(),B()).optional(),...pr},Et={cursor:i.optional()},Qs=ft("tools/call",Vo),ec=ft("tools/list",Et),tc=ft("prompts/list",Et),nc=ft("prompts/get",{name:d(),arguments:A(d(),d()).optional(),...pr}),rc=ft("resources/list",Et),ic=ft("resources/templates/list",Et),oc=ft("resources/read",{uri:d(),...pr}),Zo={ref:L([lr,cr]),argument:g({name:d(),value:d()}),context:g({arguments:A(d(),d()).optional()}).optional()},ac=ft("completion/complete",Zo),sc=ft("server/discover",{}),ai=g({toolsListChanged:U().optional(),promptsListChanged:U().optional(),resourcesListChanged:U().optional(),resourceSubscriptions:b(d()).optional()}),Fo={notifications:ai},cc=ft("subscriptions/listen",Fo),lc=ri.extend({"io.modelcontextprotocol/subscriptionId":n}),Ko=K({_meta:lc,resultType:ni.default("complete")}),Tn={"tools/call":ht("tools/call",Vo),"tools/list":ht("tools/list",Et),"prompts/get":ht("prompts/get",{name:d(),arguments:A(d(),d()).optional()}),"prompts/list":ht("prompts/list",Et),"resources/list":ht("resources/list",Et),"resources/templates/list":ht("resources/templates/list",Et),"resources/read":ht("resources/read",{uri:d()}),"completion/complete":ht("completion/complete",Zo),"server/discover":ht("server/discover",{}),"subscriptions/listen":ht("subscriptions/listen",Fo)};function ot(ze){return K({_meta:ii,...ze})}let uc={"tools/call":ot({content:b(it),structuredContent:B().optional(),isError:U().optional()}),"tools/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),tools:b(ur),nextCursor:i.optional()}),"prompts/get":ot({description:d().optional(),messages:b(St)}),"prompts/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),prompts:b(Zt),nextCursor:i.optional()}),"resources/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resources:b(yt),nextCursor:i.optional()}),"resources/templates/list":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),resourceTemplates:b(Vt),nextCursor:i.optional()}),"resources/read":ot({ttlMs:x().int().min(0),cacheScope:Q(["public","private"]),contents:b(L([De,Je]))}),"completion/complete":ot({completion:g({values:b(d()).max(100),total:x().int().optional(),hasMore:U().optional()}).loose()}),"server/discover":ot({ttlMs:x().int().min(0).catch(0),cacheScope:Q(["public","private"]).catch("private"),supportedVersions:b(d()),capabilities:Qr,instructions:d().optional()}),"subscriptions/listen":ot({})},fr=K({"io.modelcontextprotocol/subscriptionId":n.optional()}),si=g({method:$("notifications/subscriptions/acknowledged"),params:g({_meta:fr.optional(),notifications:ai})}),ci=g({_meta:fr.optional(),requestId:n,reason:d().optional()}),li=g({method:$("notifications/cancelled"),params:ci}),Wm={"notifications/cancelled":li,"notifications/progress":be,"notifications/message":Ie,"notifications/resources/updated":cn,"notifications/resources/list_changed":dt,"notifications/tools/list_changed":Ft,"notifications/prompts/list_changed":Me,"notifications/subscriptions/acknowledged":si},We=ze=>g({jsonrpc:$("2.0"),id:L([d(),x().int()]),result:ze}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:r,CursorSchema:i,RequestIdSchema:n,RoleSchema:o,LoggingLevelSchema:a,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:m,TaskAugmentedRequestParamsSchema:p,NotificationsParamsSchema:f,NotificationSchema:h,IconSchema:v,IconsSchema:y,BaseMetadataSchema:R,ImplementationSchema:w,ClientTasksCapabilitySchema:F,ServerTasksCapabilitySchema:N,ClientCapabilitiesSchema:te,ServerCapabilitiesSchema:ie,ProgressSchema:Y,ProgressNotificationParamsSchema:ye,ProgressNotificationSchema:be,LoggingMessageNotificationParamsSchema:ce,LoggingMessageNotificationSchema:Ie,ResourceContentsSchema:Pe,TextResourceContentsSchema:De,BlobResourceContentsSchema:Je,AnnotationsSchema:rt,ResourceSchema:yt,ResourceTemplateSchema:Vt,ResourceListChangedNotificationSchema:dt,ResourceUpdatedNotificationParamsSchema:He,ResourceUpdatedNotificationSchema:cn,PromptArgumentSchema:ln,PromptSchema:Zt,PromptListChangedNotificationSchema:Me,TextContentSchema:Ye,ImageContentSchema:Ge,AudioContentSchema:xt,ToolUseContentSchema:or,EmbeddedResourceSchema:mt,ResourceLinkSchema:pt,ContentBlockSchema:it,PromptMessageSchema:St,ToolAnnotationsSchema:_t,ToolListChangedNotificationSchema:Ft,ModelHintSchema:Kt,ModelPreferencesSchema:wn,ToolChoiceSchema:Bt,BooleanSchemaSchema:ar,StringSchemaSchema:V,NumberSchemaSchema:Jt,UntitledSingleSelectEnumSchemaSchema:G,TitledSingleSelectEnumSchemaSchema:H,LegacyTitledEnumSchemaSchema:ae,SingleSelectEnumSchemaSchema:Z,UntitledMultiSelectEnumSchemaSchema:M,TitledMultiSelectEnumSchemaSchema:ee,MultiSelectEnumSchemaSchema:X,EnumSchemaSchema:Te,PrimitiveSchemaDefinitionSchema:sr,ElicitRequestFormParamsSchema:Ht,ResourceTemplateReferenceSchema:cr,PromptReferenceSchema:lr,RootSchema:yo,ClientCapabilities2026Schema:So,ServerCapabilities2026Schema:Qr,RequestMetaEnvelopeSchema:ei,ToolSchema:ur,ToolResultContentSchema:_o,SamplingMessageContentBlockSchema:ti,SamplingMessageSchema:dr,ResultTypeSchema:ni,ResultMetaSchema:ri,ResultSchema:bo,PaginatedResultSchema:Ys,CallToolResultSchema:oi,ListToolsResultSchema:$o,ListPromptsResultSchema:ko,GetPromptResultSchema:Ro,ListResourcesResultSchema:wo,ListResourceTemplatesResultSchema:zo,ReadResourceResultSchema:Io,CompleteResultSchema:To,CacheableResultSchema:Gs,DiscoverResultSchema:xo,CreateMessageRequestParamsSchema:In,CreateMessageRequestSchema:Eo,ListRootsRequestSchema:Po,CreateMessageResultSchema:Oo,ListRootsResultSchema:Co,ElicitResultSchema:No,ElicitRequestURLParamsSchema:Ao,ElicitRequestParamsSchema:jo,ElicitRequestSchema:Uo,InputRequestSchema:Lo,InputResponseSchema:Do,InputRequestsSchema:Mo,InputResponsesSchema:qo,InputRequiredResultSchema:mr,InputResponseRequestParamsSchema:Ws,CallToolRequestSchema:Qs,ListToolsRequestSchema:ec,ListPromptsRequestSchema:tc,GetPromptRequestSchema:nc,ListResourcesRequestSchema:rc,ListResourceTemplatesRequestSchema:ic,ReadResourceRequestSchema:oc,CompleteRequestSchema:ac,DiscoverRequestSchema:sc,SubscriptionFilterSchema:ai,SubscriptionsListenRequestSchema:cc,SubscriptionsListenResultMetaSchema:lc,SubscriptionsListenResultSchema:Ko,dispatchRequestSchemas:Tn,dispatchResultSchemas:uc,NotificationMetaSchema:fr,SubscriptionsAcknowledgedNotificationSchema:si,CancelledNotificationParamsSchema:ci,CancelledNotificationSchema:li,notificationSchemas2026:Wm,JSONRPCResultResponseSchema:We(bo),CallToolResultResponseSchema:We(L([oi,mr])),ListToolsResultResponseSchema:We($o),ListPromptsResultResponseSchema:We(ko),GetPromptResultResponseSchema:We(L([Ro,mr])),ListResourcesResultResponseSchema:We(wo),ListResourceTemplatesResultResponseSchema:We(zo),ReadResourceResultResponseSchema:We(L([Io,mr])),CompleteResultResponseSchema:We(To),DiscoverResultResponseSchema:We(xo),SubscriptionsListenResultResponseSchema:We(Ko)}}var EC;function Sn(){return EC??=xC()}var PC=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function OC(e){return PC.includes(e)}var lo=Symbol("modelcontextprotocol.resultCacheHintFallback");function hm(e,t){if(t===void 0)return e;let r=e[lo];if(r===void 0)return{...e,[lo]:t};let i={},n=r.ttlMs??t.ttlMs;n!==void 0&&(i.ttlMs=n);let o=r.cacheScope??t.cacheScope;return o!==void 0&&(i.cacheScope=o),{...e,[lo]:i}}function CC(e){return e[lo]}function dS(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function mS(e){return e==="public"||e==="private"}function xs(e,t){if(e.ttlMs!==void 0&&!dS(e.ttlMs))throw new RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(e.cacheScope!==void 0&&!mS(e.cacheScope))throw new RangeError(`Invalid cache hint for ${t}: cacheScope must be \'public\' or \'private\' (got ${String(e.cacheScope)})`)}var O=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),j=class Rw extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return _n(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return _n(this,t)}constructor(t,r,i){super(r),this.code=t,this.data=i,this.name="ProtocolError",zs(this,new.target)}static fromError(t,r,i){if(t===O.UrlElicitationRequired&&i){let n=i;if(n.elicitations)return new ww(n.elicitations,r)}if(t===O.UnsupportedProtocolVersion&&i){let n=i;if(Array.isArray(n.supported)&&typeof n.requested=="string")return new gm({supported:n.supported,requested:n.requested},r)}if(t===O.InvalidParams||t===O.ResourceNotFound){let n=i;if(typeof n?.uri=="string"&&(t===O.ResourceNotFound||Object.keys(n).length===1))return new Fr(n.uri,r)}if(t===O.MissingRequiredClientCapability&&i){let n=i;if(n.requiredCapabilities!==null&&typeof n.requiredCapabilities=="object"&&!Array.isArray(n.requiredCapabilities))return new Es({requiredCapabilities:n.requiredCapabilities},r)}return new Rw(t,r,i)}},Fr=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(O.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},ww=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(O.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},gm=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(O.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Es=class extends j{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(O.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},NC=0,AC="private",jC=["tools/call","prompts/get","resources/read"];function UC(e,t){let r=t.resultType;if(r===void 0)return{...t,resultType:"complete"};if(r==="complete"||jC.includes(e))return t;throw new j(O.InternalError,`Handler for ${e} returned resultType \'${String(r)}\', but results of ${e} only support \'complete\' on protocol revision 2026-07-28`)}function LC(e,t){let r=CC(t);if(t.resultType!=="complete"||!OC(e))return r===void 0?t:ZC(t);let i=t,n=dS(i.ttlMs)?i.ttlMs:qC(r),o=mS(i.cacheScope)?i.cacheScope:VC(r),a={...i,ttlMs:n,cacheScope:o};return delete a[lo],a}function DC(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function MC(e,t){if(t===void 0)return e;let r=e._meta;return r===void 0?{...e,_meta:{[tn]:t}}:!DC(r)||r[tn]!==void 0?e:{...e,_meta:{...r,[tn]:t}}}function qC(e){return e!==void 0&&dS(e.ttlMs)?e.ttlMs:NC}function VC(e){return e!==void 0&&mS(e.cacheScope)?e.cacheScope:AC}function ZC(e){let t={...e};return delete t[lo],t}var FC=["elicitation/create","sampling/createMessage","roots/list"],lm;function pS(){if(lm)return lm;let e=Sn();return lm={request:{"elicitation/create":g({method:$("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":g({method:$("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":g({method:$("roots/list"),params:K({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},lm}function KC(){pS()}function zw(e){return FC.includes(e)}function Qy(e){return zw(e)?pS().request[e]:void 0}function BC(e){return zw(e)?pS().response[e]:void 0}var fS={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},Iw={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function Tw(e){return Object.prototype.hasOwnProperty.call(fS,e)}function xw(e){return Object.prototype.hasOwnProperty.call(Iw,e)}function JC(e){return Object.prototype.hasOwnProperty.call(fS,e)}function HC(e){return Tw(e)?Sn().dispatchRequestSchemas[e]:void 0}function YC(e){return JC(e)?Sn().dispatchResultSchemas[e]:void 0}function GC(e){return xw(e)?Sn().notificationSchemas2026[e]:void 0}var Z4=Object.keys(fS),F4=Object.keys(Iw);function $s(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function _s(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let r=e.safeParse(t);return r.success?{ok:!0,value:r.data}:{ok:!1,reason:"invalid",message:String(r.error)}}var WC={ok:!1,reason:"not-in-era"},XC=[zt,nn];function QC(e,t){let r=t,i=!1,n=()=>(i||(r={...r},i=!0),r),o=t.tools;e==="tools/list"&&Array.isArray(o)&&o.some(s=>$s(s)&&"execution"in s)&&(n().tools=o.map(s=>{if(!$s(s)||!("execution"in s))return s;let c={...s};return delete c.execution,c}));let a=t.capabilities;if($s(a)&&"tasks"in a){let s={...a};delete s.tasks,n().capabilities=s}return r}var hS={era:"2026-07-28",hasRequestMethod:Tw,hasNotificationMethod:xw,hasInputRequestMethod:e=>Qy(e)!==void 0,validateRequest:(e,t)=>_s(HC(e),t),validateResult:(e,t)=>_s(YC(e),t),validateNotification:(e,t)=>_s(GC(e),t),validateInputRequest:(e,t)=>_s(Qy(e),t),validateInputResponse:(e,t)=>_s(BC(e),t),samplingResultVariant:()=>WC,outboundEnvelope(e){return{[zt]:e.protocolVersion,[Ar]:e.clientInfo,[nn]:e.clientCapabilities,...e.logLevel!==void 0&&{[Kn]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let i of XC)i in e||t.push({key:i,problem:"missing"});let r=Sn().RequestMetaEnvelopeSchema.safeParse(e);if(!r.success)for(let i of r.error.issues){let n=i.path.map(String),o=n.length>0?n.join("."):"_meta";n.length===1&&t.some(a=>a.key===o&&a.problem==="missing")||t.push({key:o,problem:i.message})}return t},projectCallToolResult:e=>vw(e),inputRequestSchema:Qy,decodeResult(e,t){if(!$s(t))return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let r=t.resultType;if(r===void 0)return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: missing required resultType \\u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof r!="string")return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:r})};if(r==="input_required"){let a=t.inputRequests,s=$s(a)?a:{},c=t.requestState,l=t._meta===void 0?void 0:Sn().ResultMetaSchema.safeParse(t._meta),u=l?.success?l.data:void 0;return Object.keys(s).length===0&&typeof c!="string"?{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:s,...typeof c=="string"&&{requestState:c},...u!==void 0&&{_meta:u}}}if(r!=="complete")return{kind:"invalid",error:new re(se.UnsupportedResultType,`Unsupported result type \'${r}\' for ${e}`,{resultType:r,method:e})};let i=Ew(),n=Object.hasOwn(i,e)?i[e]:void 0;if(n!==void 0){let a=n.safeParse(t);if(!a.success)return{kind:"invalid",error:new re(se.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let o={...t};return delete o.resultType,{kind:"complete",result:o}},encodeResult(e,t,r){return MC(LC(e,UC(e,QC(e,t))),r)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=Sn().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(r=>r.message).join("; ")}`}},um;function Ew(){if(um)return um;let e=Sn();return um={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},um}function eN(){Ew()}var Ps="2026-07-28";function bn(e){return e!==void 0&&Lt(e)?hS:uS}function ew(e){return e.revision!==void 0?bn(e.revision).era:e.era==="modern"?hS.era:uS.era}function eS(e){return Pw.some(t=>t.hasRequestMethod(e))}function tS(e){return Pw.some(t=>t.hasNotificationMethod(e))}function tw(e){return e==="tasks/get"||e==="tasks/cancel"}var Pw=[uS,hS];function nw(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Qn(e){if(!nw(e))return;let t=e._meta;return nw(t)?t:void 0}function vm(e){let t=Qn(e);return t!==void 0&&zt in t}function gS(e){let t=Qn(e)?.[zt];return typeof t=="string"?t:void 0}function mm(e){return bn(Ps).validateEnvelopeMeta(e)}var tN=B_({AnnotationsSchema:()=>yn,AudioContentSchema:()=>ro,BaseMetadataSchema:()=>vn,BaseRequestParamsSchema:()=>Ee,BlobResourceContentsSchema:()=>ls,BooleanSchemaSchema:()=>ps,CallToolRequestParamsSchema:()=>_d,CallToolRequestSchema:()=>bd,CallToolResultSchema:()=>ms,CancelTaskRequestSchema:()=>jy,CancelTaskResultSchema:()=>Uy,CancelledNotificationParamsSchema:()=>wu,CancelledNotificationSchema:()=>ns,ClientCapabilitiesSchema:()=>xu,ClientNotificationSchema:()=>Dy,ClientRequestSchema:()=>Ly,ClientResultSchema:()=>My,ClientTasksCapabilitySchema:()=>Iu,CompatibilityCallToolResultSchema:()=>wy,CompleteRequestParamsSchema:()=>Hd,CompleteRequestSchema:()=>Yd,CompleteResultSchema:()=>Gd,ContentBlockSchema:()=>io,CreateMessageRequestParamsSchema:()=>Cd,CreateMessageRequestSchema:()=>Nd,CreateMessageResultSchema:()=>Ad,CreateMessageResultWithToolsSchema:()=>jd,CreateTaskResultSchema:()=>Ty,CursorSchema:()=>Ga,DiscoverRequestSchema:()=>Cu,DiscoverResultSchema:()=>Nu,ElicitRequestFormParamsSchema:()=>so,ElicitRequestParamsSchema:()=>qd,ElicitRequestSchema:()=>Vd,ElicitRequestURLParamsSchema:()=>Md,ElicitResultSchema:()=>Kd,ElicitationCompleteNotificationParamsSchema:()=>Zd,ElicitationCompleteNotificationSchema:()=>Fd,EmbeddedResourceSchema:()=>dd,EmptyResultSchema:()=>ts,EnumSchemaSchema:()=>Dd,GetPromptRequestParamsSchema:()=>cd,GetPromptRequestSchema:()=>ld,GetPromptResultSchema:()=>fd,GetTaskPayloadRequestSchema:()=>Oy,GetTaskPayloadResultSchema:()=>Cy,GetTaskRequestSchema:()=>Ey,GetTaskResultSchema:()=>Py,IconSchema:()=>zu,IconsSchema:()=>Jn,ImageContentSchema:()=>no,ImplementationSchema:()=>Qi,InitializeRequestParamsSchema:()=>Eu,InitializeRequestSchema:()=>rs,InitializeResultSchema:()=>Pu,InitializedNotificationSchema:()=>Ou,JSONArraySchema:()=>$y,JSONObjectSchema:()=>Re,JSONRPCErrorResponseSchema:()=>Wi,JSONRPCMessageSchema:()=>Xi,JSONRPCNotificationSchema:()=>es,JSONRPCRequestSchema:()=>Qa,JSONRPCResponseSchema:()=>ky,JSONRPCResultResponseSchema:()=>Gi,JSONValueSchema:()=>Fn,LegacyTitledEnumSchemaSchema:()=>gs,ListChangedOptionsBaseSchema:()=>zy,ListPromptsRequestSchema:()=>ad,ListPromptsResultSchema:()=>sd,ListResourceTemplatesRequestSchema:()=>Mu,ListResourceTemplatesResultSchema:()=>qu,ListResourcesRequestSchema:()=>Lu,ListResourcesResultSchema:()=>Du,ListRootsRequestSchema:()=>Xd,ListRootsResultSchema:()=>Qd,ListTasksRequestSchema:()=>Ny,ListTasksResultSchema:()=>Ay,ListToolsRequestSchema:()=>yd,ListToolsResultSchema:()=>Sd,LoggingLevelSchema:()=>Wn,LoggingMessageNotificationParamsSchema:()=>wd,LoggingMessageNotificationSchema:()=>zd,ModelHintSchema:()=>Id,ModelPreferencesSchema:()=>Td,MultiSelectEnumSchemaSchema:()=>Ld,NotificationSchema:()=>Ke,NotificationsParamsSchema:()=>Fe,NumberSchemaSchema:()=>ao,PaginatedRequestParamsSchema:()=>Hn,PaginatedRequestSchema:()=>Yn,PaginatedResultSchema:()=>jt,PingRequestSchema:()=>os,PrimitiveSchemaDefinitionSchema:()=>Ss,ProgressNotificationParamsSchema:()=>ju,ProgressNotificationSchema:()=>as,ProgressSchema:()=>Au,ProgressTokenSchema:()=>Ya,PromptArgumentSchema:()=>id,PromptListChangedNotificationSchema:()=>hd,PromptMessageSchema:()=>pd,PromptReferenceSchema:()=>Jd,PromptSchema:()=>od,ReadResourceRequestParamsSchema:()=>Vu,ReadResourceRequestSchema:()=>Zu,ReadResourceResultSchema:()=>Fu,RelatedTaskMetadataSchema:()=>Ru,RequestIdSchema:()=>Bn,RequestMetaSchema:()=>Wa,RequestSchema:()=>we,ResourceContentsSchema:()=>ss,ResourceLinkSchema:()=>md,ResourceListChangedNotificationSchema:()=>Ku,ResourceRequestParamsSchema:()=>eo,ResourceSchema:()=>Dr,ResourceTemplateReferenceSchema:()=>Bd,ResourceTemplateSchema:()=>Uu,ResourceUpdatedNotificationParamsSchema:()=>nd,ResourceUpdatedNotificationSchema:()=>rd,ResultMetaObjectSchema:()=>Xa,ResultSchema:()=>_e,RoleSchema:()=>Gn,RootSchema:()=>Wd,RootsListChangedNotificationSchema:()=>em,SamplingContentSchema:()=>Pd,SamplingMessageContentBlockSchema:()=>Cr,SamplingMessageSchema:()=>Od,ServerCapabilitiesSchema:()=>is,ServerNotificationSchema:()=>Vy,ServerRequestSchema:()=>qy,ServerResultSchema:()=>Zy,ServerTasksCapabilitySchema:()=>Tu,SetLevelRequestParamsSchema:()=>kd,SetLevelRequestSchema:()=>Rd,SingleSelectEnumSchemaSchema:()=>Ud,StringSchemaSchema:()=>oo,SubscribeRequestParamsSchema:()=>Bu,SubscribeRequestSchema:()=>Ju,SubscriptionFilterSchema:()=>us,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Xu,SubscriptionsAcknowledgedNotificationSchema:()=>Qu,SubscriptionsListenRequestParamsSchema:()=>Gu,SubscriptionsListenRequestSchema:()=>Wu,SubscriptionsListenResultMetaSchema:()=>ed,SubscriptionsListenResultSchema:()=>td,TaskAugmentedRequestParamsSchema:()=>Lr,TaskCreationParamsSchema:()=>Iy,TaskMetadataSchema:()=>ku,TaskSchema:()=>Xn,TaskStatusNotificationParamsSchema:()=>nm,TaskStatusNotificationSchema:()=>xy,TaskStatusSchema:()=>tm,TextContentSchema:()=>to,TextResourceContentsSchema:()=>cs,TitledMultiSelectEnumSchemaSchema:()=>ys,TitledSingleSelectEnumSchemaSchema:()=>hs,ToolAnnotationsSchema:()=>gd,ToolChoiceSchema:()=>xd,ToolExecutionSchema:()=>vd,ToolListChangedNotificationSchema:()=>$d,ToolResultContentSchema:()=>Ed,ToolSchema:()=>ds,ToolUseContentSchema:()=>ud,UnsubscribeRequestParamsSchema:()=>Hu,UnsubscribeRequestSchema:()=>Yu,UntitledMultiSelectEnumSchemaSchema:()=>vs,UntitledSingleSelectEnumSchemaSchema:()=>fs});var Dt=e=>Qa.safeParse(e).success,ym=e=>es.safeParse(e).success,rn=e=>Gi.safeParse(e).success,on=e=>Wi.safeParse(e).success;var $n=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.resultType==="input_required";var vS=e=>rs.safeParse(e).success;function yS(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function SS(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var nN="Mcp-Param-",rw="x-mcp-header",rN=/^[!#$%&\'*+\\-.^_`|~0-9A-Za-z]+$/,iN=new Set(["string","integer","boolean"]);function Sm(e){let t=[],r=new Map,i,n=(a,s,c)=>{if(a===null||typeof a!="object")return;let l=a;if(rw in l){if(!c||s.length===0)return`${co(s)}: x-mcp-header is only permitted on properties statically reachable via a chain of \'properties\' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let m=l[rw];if(typeof m!="string"||m.length===0)return`${co(s)}: x-mcp-header MUST be a non-empty string`;if(!rN.test(m))return`${co(s)}: x-mcp-header \'${m}\' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let p=typeof l.type=="string"?l.type:void 0;if(p===void 0||!iN.has(p)){let v=`${co(s)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${p??"<none>"}`;if(p!=="number")return v;i??=v}let f=m.toLowerCase(),h=r.get(f);if(h!==void 0)return`x-mcp-header \'${m}\' is not case-insensitively unique (also declared as \'${h}\')`;r.set(f,m),t.push({path:s,headerName:m,type:p})}let u=l.properties;if(u!==null&&typeof u=="object")for(let[m,p]of Object.entries(u)){let f=n(p,[...s,m],c);if(f!==void 0)return f}for(let m of oN){let p=l[m];if(p===void 0)continue;let f=Array.isArray(p)?p:p!==null&&typeof p=="object"&&aN.has(m)?Object.values(p):[p];for(let h of f){let v=n(h,[...s,`<${m}>`],!1);if(v!==void 0)return v}}},o=n(e,[],!0);return o!==void 0?{valid:!1,reason:i??o}:i===void 0?{valid:!0,declarations:t}:{valid:!1,reason:i,declarations:t}}var oN=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],aN=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function co(e){return e.length===0?"<root>":e.join(".")}var sN="=?base64?",cN="?=",lN=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,uN=/^-?\\d+(\\.\\d+)?$/;function dN(e){if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number")return!Number.isFinite(e)||Number.isInteger(e)&&!Number.isSafeInteger(e)?void 0:String(e)}function mN(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.codePointAt(i);return new TextDecoder("utf-8",{fatal:!0}).decode(r)}function Ow(e){if(!(e.startsWith(sN)&&e.endsWith(cN)))return e;let t=e.slice(9,e.length-2);if(lN.test(t))try{return mN(t)}catch{return}}function pN(e,t){let r=e;for(let i of t){if(r===null||typeof r!="object")return;r=r[i]}return r}function Cw(e,t,r){for(let i of e){let n=`${nN}${i.headerName}`,o=r.get(n),a=pN(t,i.path);if(a==null)continue;let s=dN(a);if(s===void 0)continue;if(o===null)return nS("param-header-missing",n,`the body carries ${co(i.path)}=${JSON.stringify(a)} but the ${n} header is absent`);let c=Ow(o);if(c===void 0)return nS("param-header-invalid-encoding",n,`the ${n} header carries an invalid Base64 sentinel value`);if(!((i.type==="integer"||i.type==="number")&&uN.test(c)&&typeof a=="number"?Number(c)===a:c===s))return nS("param-header-mismatch",n,`the ${n} header decodes to ${JSON.stringify(c)} but the body carries ${co(i.path)}=${JSON.stringify(a)}`)}}function nS(e,t,r){return{kind:"reject",rung:"param-header-validation",cell:e,httpStatus:400,code:uo,message:`Bad Request: the request headers and body disagree: ${r}`,data:{mismatch:{header:t,body:r}},settled:!0}}var uo=-32020,K4=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[O.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[uo,O.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[O.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \\u2014 and a missing envelope on a request whose protocol-version header names a modern revision \\u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[O.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[O.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[uo],conformance:["http-header-validation"],rationale:"SEP-2243 standard `MCP-Protocol-Version` / `Mcp-Method` / `Mcp-Name` headers \\u2014 presence, sentinel decoding, and `Mcp-Name` \\u2194 body cross-check \\u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The spec requires `MCP-Protocol-Version` and `Mcp-Method` on every modern *request* POST (`Mcp-Name` only for the methods that mirror `params.name` / `params.uri` / `params.taskId`, see `MCP_NAME_HEADER_SOURCE`) and names them in that order, so a request missing several is answered by the earliest. Notification POSTs are exempt: the presence half runs on requests only, so a modern-enveloped notification is dispatched even with no standard headers at all. The classifier\\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half \\u2014 including the missing `MCP-Protocol-Version` cell, which cannot live on the edge rung without breaking body-primary classification. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[O.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \\u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[uo],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],_S={[O.ParseError]:400,[O.InvalidRequest]:400,[O.MethodNotFound]:404,[O.UnsupportedProtocolVersion]:400,[O.MissingRequiredClientCapability]:400,[uo]:400};function Nw(e,t){return t==="in-band"?e===O.MissingRequiredClientCapability?400:200:_S[e]??400}function It(e,t,r,i,n){return{kind:"reject",rung:e,cell:t,httpStatus:r,code:i.code,message:i.message,...i.data!==void 0&&{data:i.data},settled:n}}function Ut(e,t,r,i="era-classification"){return It(i,e,400,new j(uo,`Bad Request: the request headers and body disagree: ${r}`,{mismatch:{header:t,body:r}}),!0)}var iw={"tools/call":"name","prompts/get":"name","resources/read":"uri","tasks/get":"taskId","tasks/update":"taskId","tasks/cancel":"taskId"};function fN(e,t){let r=Object.hasOwn(iw,e)?iw[e]:void 0;if(r===void 0)return;let i=Rs(t)?t[r]:void 0;return{field:r,value:typeof i=="string"?i:void 0}}function dm(e){let t=0;for(;t<e.length;){let i=e.codePointAt(t);if(i!==9&&i!==32)break;t+=1}let r=e.length;for(;r>t;){let i=e.codePointAt(r-1);if(i!==9&&i!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function Aw(e,t){if(t.messageKind!=="request")return;let r=t.message.method;if(e.protocolVersionHeader===void 0){let c=t.classification.revision;return Ut("version-header-missing","(missing)",c===void 0?"the body carries a modern per-request envelope but the required MCP-Protocol-Version header is absent":`the body envelope names protocol version ${c} but the required MCP-Protocol-Version header is absent`,"standard-header-validation")}if(e.mcpMethodHeader===void 0)return Ut("method-header-missing","(missing)",`the body names method ${r} but the required Mcp-Method header is absent`,"standard-header-validation");let i=fN(r,t.message.params);if(i===void 0)return;let{field:n,value:o}=i;if(e.mcpNameHeader===void 0)return o===void 0?void 0:Ut("name-header-missing","(missing)",`the body carries params.${n}="${o}" but the required Mcp-Name header is absent`,"standard-header-validation");let a=dm(e.mcpNameHeader),s=Ow(a);if(s===void 0)return Ut("name-header-invalid-encoding",a,"the Mcp-Name header carries an invalid Base64 sentinel value","standard-header-validation");if(o!==void 0&&s!==o)return Ut("name-header-mismatch",a,`the body carries params.${n}="${o}" but the Mcp-Name header names "${s}"`,"standard-header-validation")}function Rs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jw(e){return e===void 0?{era:"modern"}:{era:Lt(e)?"modern":"legacy",revision:e}}function hN(e){if(!vm(e))return!1;let t=gS(e);if(t===void 0||!Lt(t))return!1;let r=Qn(e);return r!==void 0&&mm(r).length===0}function gN(e){if(e.length===0)return It("jsonrpc-shape","empty-batch",400,new j(O.InvalidRequest,"Bad Request: empty JSON-RPC batch"),!0);for(let t of e){if(vm(Rs(t)?t.params:void 0))return It("jsonrpc-shape","batch-with-modern-element",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC batches may not contain requests for protocol revision 2026-07-28 or later"),!0);if(!(Dt(t)||ym(t)||rn(t)||on(t)))return It("jsonrpc-shape","batch-with-invalid-element",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC batch contains an invalid message"),!0)}return{kind:"legacy",reason:"batch"}}function vN(e,t){let r=t.params,i=t.method,n=e.protocolVersionHeader,o=n!==void 0&&Lt(n);if(i==="initialize"&&!hN(r)){if(o)return Ut("initialize-with-modern-header",n,"an initialize request (legacy handshake) was sent with a modern MCP-Protocol-Version header");let a=Rs(r)&&typeof r.protocolVersion=="string"?r.protocolVersion:void 0;return{kind:"legacy",reason:"initialize",...a!==void 0&&{requestedVersion:a}}}if(vm(r)){let a=Qn(r),s=(a===void 0?[]:mm(a))[0];if(s!==void 0)return It("envelope","envelope-invalid",400,new j(O.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${s.key}: ${s.problem}`,{envelope:s}),!0);let c=gS(r);return n!==void 0&&c!==void 0&&n!==c?Ut("header-body-version-mismatch",n,`the body envelope names protocol version ${c} but the MCP-Protocol-Version header names ${n}`):e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==i?Ut("method-header-mismatch",e.mcpMethodHeader,`the body names method ${i} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"request",message:t,classification:jw(c)}}if(o){let a=Qn(r),s=mm(a??{}).filter(l=>l.problem==="missing").map(l=>l.key),c=a===void 0?["_meta"]:s.length>0?s:[zt];return It("envelope","modern-header-without-claim",400,new j(O.InvalidParams,`Invalid params: the MCP-Protocol-Version header names protocol revision ${n}, but the request is missing the required per-request envelope key(s): ${c.join(", ")}`,{envelope:{missing:c}}),!0)}return{kind:"legacy",reason:"no-claim",...n!==void 0&&{requestedVersion:n}}}function yN(e,t){let r=t.params,i=t.method,n=e.protocolVersionHeader,o=n!==void 0&&Lt(n);if(vm(r)){let a=gS(r);if(a===void 0){let c=Qn(r),l=(c===void 0?[]:mm(c)).find(u=>u.key===zt)??{key:zt,problem:"expected a protocol version string"};return It("envelope","notification-envelope-invalid",400,new j(O.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${l.key}: ${l.problem}`,{envelope:l}),!0)}if(n!==void 0&&n!==a)return Ut("notification-header-body-version-mismatch",n,`the notification envelope names protocol version ${a} but the MCP-Protocol-Version header names ${n}`);let s=jw(a);return s.era==="modern"&&e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==i?Ut("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${i} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:s}}return o?e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==i?Ut("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${i} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:{era:"modern",revision:n}}:{kind:"legacy",reason:"notification",...n!==void 0&&{requestedVersion:n}}}function Uw(e){if(e={...e,...e.protocolVersionHeader!==void 0&&{protocolVersionHeader:dm(e.protocolVersionHeader)},...e.mcpMethodHeader!==void 0&&{mcpMethodHeader:dm(e.mcpMethodHeader)},...e.mcpNameHeader!==void 0&&{mcpNameHeader:dm(e.mcpNameHeader)}},e.httpMethod.toUpperCase()!=="POST")return{kind:"legacy",reason:"http-method"};let t=e.body;return Array.isArray(t)?gN(t):rn(t)||on(t)?{kind:"legacy",reason:"response"}:Rs(t)&&Dt(t)?vN(e,t):Rs(t)&&ym(t)?yN(e,t):It("jsonrpc-shape","invalid-json-rpc-body",400,new j(O.InvalidRequest,"Bad Request: the request body is not a valid JSON-RPC message"),!0)}function Lw(e,t){switch(e.reason){case"http-method":return It("http-method","modern-only-method-not-allowed",405,new j(-32e3,"Method not allowed."),!0);case"batch":return It("jsonrpc-shape","modern-only-batch-not-supported",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC batches are not supported by this endpoint"),!0);case"response":return It("jsonrpc-shape","modern-only-response-post",400,new j(O.InvalidRequest,"Bad Request: JSON-RPC responses cannot be posted to this endpoint"),!0);case"notification":return;case"initialize":case"no-claim":{let r=e.requestedVersion;return It("era-classification","modern-only-missing-envelope",400,r===void 0?new j(O.UnsupportedProtocolVersion,"Unsupported protocol version: the request did not name a protocol version",{supported:[...t]}):new gm({supported:[...t],requested:r}),!0)}}}function _m(e,t){return Aa(e,t)}function bs(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function mo(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var ow=!1,aS="draft-2020-12";function Kr(e,t="input"){let r=e["~standard"],i;if(r.jsonSchema)i=r.jsonSchema[t]({target:aS});else if(r.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");ow||(ow=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),i=xr(e,{target:aS,io:t})}else throw new Error(`Schema library "${r.vendor}" does not implement StandardJSONSchemaV1 (\\`~standard.jsonSchema\\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return i.type!==void 0?i:Dw(i)?{type:"object",...i}:i;if(i.type!==void 0&&i.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(i.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...i}}var SN=/^#\\/(\\$defs|definitions)\\/([^/~%]+)$/;function Dw(e,t=e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;let r=typeof e.$ref=="string"&&SN.exec(e.$ref);if(r&&t[r[1]]?.[r[2]]?.type==="object")return!0;for(let i of["oneOf","anyOf","allOf"]){let n=e[i];if(Array.isArray(n)&&n.length>0)return n.every(o=>o!==null&&typeof o=="object"&&(o.type==="object"||Dw(o,"$id"in o?{}:t)))}return!1}function _N(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function qr(e,t){let r=await e["~standard"].validate(t);return r.issues&&r.issues.length>0?{success:!1,error:r.issues.map(i=>_N(i)).join(", ")}:{success:!0,data:r.value}}function bN(e){let t=xr(e,{target:aS,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var $N=/\\\\\\.\\\\d\\{(\\d+)\\}/;function kN(e){let t=$N.exec(e),r=[void 0,-1,0];return t&&r.push(Number(t[1])),[!1,!0].flatMap(i=>[!1,!0].flatMap(n=>r.map(o=>wt.datetime({local:i,offset:n,precision:o}))))}function RN(e,t){let r;switch(e){case"email":r=[Xl()];break;case"uri":r=[Ki()];break;case"date":r=[wt.date()];break;case"date-time":r=kN(t);break}return new Set(r.map(i=>bN(i)).filter(i=>i!==void 0))}function wN(e,t,r){return r!=="zod"?!0:RN(e,t).has(t)}function Mw(e){let t=Kr(e,"input"),r=t.properties||{},i=t.required||[];return Object.entries(r).map(([n,o])=>({name:n,description:o?.description,required:i.includes(n)}))}function ws(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function zN(e){try{return Kr(e,"input")}catch(t){let r=t instanceof Error?t.message:String(t);throw new j(O.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${r}`)}}var IN=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function bS(e){return IN.has(e)||e.startsWith("x-")}var TN=new Set(["$schema",...Object.keys(so.shape.requestedSchema.shape)]),aw={string:bs([oo,fs,hs,gs]),number:bs([ao]),integer:bs([ao]),boolean:bs([ps]),array:bs([vs,ys])},xN=new Set(oo.shape.format.unwrap().options);function EN(e,t,r,i){if(!ws(e))return e;let n=typeof e.type=="string"&&Object.hasOwn(aw,e.type)?aw[e.type]:void 0;if(n===void 0)return e;let o={};for(let[a,s]of Object.entries(e))n.has(a)||bS(a)?o[a]=s:a==="pattern"&&e.type==="string"&&typeof e.format=="string"?xN.has(e.format)?(typeof s!="string"||!wN(e.format,s,r))&&i.push(`${t}.${a}`):o[a]=s:i.push(`${t}.${a}`);return o}function PN(e,t){let r={},i=[];for(let[n,o]of Object.entries(e))n==="properties"&&ws(o)?r[n]=Object.fromEntries(Object.entries(o).map(([a,s])=>[a,EN(s,`properties.${a}`,t,i)])):TN.has(n)?r[n]=o:bS(n)||i.push(n);if(i.length>0)throw new j(O.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(", ")}`);return r}function ON(e,t){if(!ws(e.properties))return t;let r=Object.entries(e.properties).filter(([,i])=>!_m(Ss,i).success).map(([i])=>`properties.${i}`);return r.length>0?r.join(", "):t}function sS(e,t,r=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((i,n)=>sS(i,t[n],`${r}[${n}]`)):!ws(e)||!ws(t)?[]:Object.entries(e).flatMap(([i,n])=>{let o=r?`${r}.${i}`:i;return Object.prototype.hasOwnProperty.call(t,i)?sS(n,t[i],o):bS(i)?[]:[o]})}function CN(e){if(!mo(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,r=PN(zN(e.requestedSchema),t),i=_m(so.shape.requestedSchema,r);if(!i.success)throw new j(O.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${ON(r,i.error.message)}`);let n=sS(r,i.data);if(n.length>0)throw new j(O.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${n.join(", ")}`);let o=(i.data.required??[]).filter(a=>!Object.prototype.hasOwnProperty.call(i.data.properties,a));if(o.length>0)throw new j(O.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${o.join(", ")}`);return{...e,mode:"form",requestedSchema:i.data}}function NN(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,r=typeof e.requestState=="string";if(!t&&!r)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var er=Object.assign(NN,{elicit(e){try{return{method:"elicitation/create",params:CN(e)}}catch(t){throw t instanceof j?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});function $S(e,t){if(e===void 0||typeof e!="object"||e===null)return{kind:"missing"};let r=e[t];if(r===null||typeof r!="object"||Array.isArray(r))return{kind:"missing"};let i=r;if(i.action==="accept"||i.action==="decline"||i.action==="cancel"){let n=i.content;return{kind:"elicit",action:i.action,...n!==null&&typeof n=="object"&&!Array.isArray(n)&&{content:n}}}return Array.isArray(i.roots)?{kind:"roots",roots:i.roots}:typeof i.role=="string"&&i.content!==void 0?{kind:"sampling",result:i}:{kind:"missing"}}var qw=250;function Vw(e,t){return`Multi-round-trip request \'${e}\' still required input after ${t} rounds (inputRequired.maxRounds)`}function Zw(e,t){return new Promise((r,i)=>{if(t?.aborted){i(t.reason instanceof re?t.reason:new re(se.RequestTimeout,String(t.reason)));return}let n=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e),o=()=>{clearTimeout(n),i(t?.reason instanceof re?t.reason:new re(se.RequestTimeout,String(t?.reason)))};t?.addEventListener("abort",o,{once:!0})})}function Fw(e){let t=new AbortController,r=()=>t.abort(e?.reason);return e?.addEventListener("abort",r,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:i=>t.abort(i),dispose:()=>e?.removeEventListener("abort",r)}}var AN=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],jN={IdJagTokenExchangeResponseSchema:Hy,OAuthClientInformationFullSchema:Gy,OAuthClientInformationSchema:am,OAuthClientMetadataSchema:om,OAuthClientRegistrationErrorSchema:Wy,OAuthErrorResponseSchema:Yy,OAuthMetadataSchema:rm,OAuthProtectedResourceMetadataSchema:Ky,OAuthTokenRevocationRequestSchema:Xy,OAuthTokensSchema:Jy,OpenIdProviderDiscoveryMetadataSchema:By,OpenIdProviderMetadataSchema:im},Kw={},Bw={};function Jw(e,t){let r=e.slice(0,-6);Kw[r]=t,Bw[r]=i=>t.safeParse(i).success}for(let e of AN)Jw(e,tN[e]);for(let[e,t]of Object.entries(jN))Jw(e,t);var UN=Object.freeze(Kw),LN=Object.freeze(Bw);function DN(e){switch(e){case"initialize":case"notifications/initialized":return bn(void 0);case"server/discover":return bn(Ps);default:return}}var Hw=6e4,MN=[zt,Ar,nn,Kn],qN=["inputResponses","requestState"];function sw(e,t){let r=e.params;if(!ks(r))return{message:e,lifted:{}};let i=r._meta,n=ks(i)?MN.filter(c=>c in i):[],o=t==="request"?qN.filter(c=>c in r):[];if(n.length===0&&o.length===0)return{message:e,lifted:{}};let a={},s={...r};if(n.length>0&&ks(i)){let c={},l={...i};for(let u of n)c[u]=i[u],delete l[u];a.envelope=c,Object.keys(l).length>0?s._meta=l:delete s._meta}for(let c of o)c==="inputResponses"&&(a.inputResponses=s[c]),c==="requestState"&&(a.requestState=s[c]),delete s[c];return{message:{...e,params:s},lifted:a}}function cw(e,t){let r=e.validateResult(t,void 0);if(!(!r.ok&&r.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(i){let n=e.validateResult(t,i);return n.ok?{value:n.value}:{issues:[{message:n.reason==="invalid"?n.message:`not-in-era: ${t}`}]}}}}}function Os(e){return()=>e}var VN=Os(void 0);function kS(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:Os(t)}}}var Yw;function Gw(e,t){Yw(e,t)}var RS=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_customSchemaRequestMethods=new Set;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{Yw=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??Ha,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let r=e.params??{};return{...e,params:{...r,_meta:{...t,...r._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new re(se.UnsupportedResultType,`Unsupported result type \'${e.kind}\' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId!==void 0&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,r,i,n=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,t),startTime:Date.now(),timeout:t,maxTotalTimeout:r,resetTimeoutOnProgress:n,onTimeout:i})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let r=Date.now()-t.startTime;if(t.maxTotalTimeout&&r>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new re(se.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:r});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let r=this.transport?.onerror;this._transport.onerror=n=>{r?.(n),this._onerror(n)};let i=this._transport?.onmessage;this._transport.onmessage=(n,o)=>{i?.(n,o),rn(n)||on(n)?this._onresponse(n):Dt(n)?this._onrequest(n,o):ym(n)?this._onnotification(n,o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let r=new re(se.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let i of e.values())i(r);for(let i of t.values())i.abort(r)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:r}=sw(e,"notification"),i=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let a=ew(t.classification);if(a!==i.era){this._onerror(new Error(`Era mismatch on inbound notification \'${r.method}\': classified as ${a} but this instance serves ${i.era}`));return}}if(tS(r.method)&&!i.hasNotificationMethod(r.method))return;let n=this._notificationHandlers.get(r.method),o=this.fallbackNotificationHandler;n===void 0&&o===void 0||Promise.resolve().then(()=>n===void 0?o(r):n(r,i)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(e,t){let{message:r,lifted:i}=sw(e,"request"),n=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request \'${e.method}\': not servable on this connection\'s protocol era`));return}let o=this._transport,a=(v,y,R)=>{let w={jsonrpc:"2.0",id:r.id,error:{code:v,message:y,...R!==void 0&&{data:R}}};o?.send(w).catch(E=>this._onerror(new Error(`Failed to send an error response: ${E}`)))};if(t?.classification!==void 0){let v=ew(t.classification);if(v!==n.era){this._onerror(new Error(`Era mismatch on inbound request \'${r.method}\': classified as ${v} but this instance serves ${n.era}`));let y=t.classification.revision??v;a(O.UnsupportedProtocolVersion,`Unsupported protocol version: ${y}`,{supported:this._supportedProtocolVersions,requested:y});return}}if(eS(r.method)&&!n.hasRequestMethod(r.method)&&!(tw(r.method)&&this._customSchemaRequestMethods.has(r.method))){a(O.MethodNotFound,"Method not found");return}let s=this._requestHandlers.get(r.method)??this.fallbackRequestHandler;if(s===void 0){a(O.MethodNotFound,"Method not found");return}let c=n.checkInboundEnvelope(i);if(c!==void 0){a(O.InvalidParams,c);return}let l=(v,y)=>this._notificationViaCodec(this._resolveOutboundCodec(v.method),v,{...y,relatedRequestId:r.id}),u=(v,y,R)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(v.method),v,y,{...R,relatedRequestId:r.id}),m=new AbortController;this._requestHandlerAbortControllers.set(r.id,m);let p=i.inputResponses===void 0?void 0:ZN(i.inputResponses),f={sessionId:o?.sessionId,mcpReq:{id:r.id,method:r.method,_meta:r.params?._meta,...i.envelope!==void 0&&{envelope:i.envelope},...p!==void 0&&{inputResponses:p.accepted},...p!==void 0&&p.droppedKeys.length>0&&{droppedInputResponseKeys:p.droppedKeys},requestState:i.requestState===void 0?VN:Os(i.requestState),signal:m.signal,send:((v,y,R)=>{let w=this._resolveOutboundCodec(v.method);if(this._assertOutboundRequestInEra(w,v.method),mo(y))return u(v,y,R);let E=cw(w,v.method);if(E===void 0)throw new TypeError(`\'${v.method}\' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(v,E,y)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},h=this.buildContext(f,t);Promise.resolve().then(()=>s(r,h)).then(async v=>{if(m.signal.aborted)return;let y;try{y=n.encodeResult(r.method,v,this._outboundServerInfo())}catch(w){this._onerror(new Error(`Failed to encode result for ${r.method}: ${w}`)),a(O.InternalError,"Internal error");return}let R={result:y,jsonrpc:"2.0",id:r.id};await o?.send(R)},async v=>{if(m.signal.aborted)return;let y=Number.isSafeInteger(v.code)?v.code:O.InternalError,R={jsonrpc:"2.0",id:r.id,error:{code:n.encodeErrorCode(y),message:v.message??"Internal error",...v.data!==void 0&&{data:v.data}}};await o?.send(R)}).catch(v=>this._onerror(new Error(`Failed to send response: ${v}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===m&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(e){let{progressToken:t,...r}=e.params,i=Number(t),n=this._progressHandlers.get(i);if(!n){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(s){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(s);return}n(r)}_onresponse(e){let t=Number(e.id),r=this._responseHandlers.get(t);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),rn(e)?r(e):r(j.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,r){let i=this._resolveOutboundCodec(e.method);if(mo(t))return tw(e.method)||this._assertOutboundRequestInEra(i,e.method),this._requestWithSchemaViaCodec(i,e,t,r);this._assertOutboundRequestInEra(i,e.method);let n=cw(i,e.method);if(n===void 0)throw new TypeError(`\'${e.method}\' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(i,e,n,t)}_negotiatedWireCodec(){return bn(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=DN(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(eS(t)&&!e.hasRequestMethod(t))throw new re(se.MethodNotSupportedByProtocolVersion,`Method \'${t}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,r){let i=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(i,e.method),this._requestWithSchemaViaCodec(i,e,t,r)}_requestWithSchemaViaCodec(e,t,r,i){let{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a,headers:s}=i??{},c=Date.now(),l,u;return new Promise((m,p)=>{let f=N=>{p(N)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(N){f(N);return}if(i?.signal?.aborted){let N=i.signal.reason;throw N instanceof re?N:new re(se.RequestTimeout,String(N))}let h=e.era===Ps&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,v=this._requestMessageId++;u=v;let y={...t,jsonrpc:"2.0",id:v};i?.onprogress&&(this._progressHandlers.set(v,i.onprogress),y.params={...t.params,_meta:{...t.params?._meta,progressToken:v}});let R=this._envelopeOutbound(y),w=!1,E=N=>{w||(this._progressHandlers.delete(v),h===void 0?t.method!=="initialize"&&this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:v,reason:String(N)}}),{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a}).catch(te=>this._onerror(new Error(`Failed to send cancellation: ${te}`))):h.abort(),p(N instanceof re?N:new re(se.RequestTimeout,String(N))))};this._responseHandlers.set(v,N=>{if(i?.signal?.aborted)return;if(w=!0,N instanceof Error)return p(N);let te;try{te=e.decodeResult(t.method,N.result)}catch(Y){return p(Y instanceof Error?Y:new Error(String(Y)))}if(te.kind==="invalid")return p(te.error);if(te.kind==="input_required"){if(i?.allowInputRequired===!0)return m(FN(te));let Y={codec:e,request:t,resultSchema:r,options:i,flowStartedAt:c,retry:(ye,be)=>this._requestWithSchemaViaCodec(e,ye===void 0?{method:t.method}:{method:t.method,params:ye},r,be)};return m(this._resolveNonCompleteResult(te,Y))}let ie=te.result;qr(r,ie).then(Y=>{Y.success?m(Y.data):p(new re(se.InvalidResult,`Invalid result for ${t.method}: ${Y.error}`))},p)}),l=()=>E(i?.signal?.reason),i?.signal?.addEventListener("abort",l,{once:!0});let D=i?.timeout??Hw,F=()=>E(new re(se.RequestTimeout,"Request timed out",{timeout:D}));this._setupTimeout(v,D,i?.maxTotalTimeout,F,i?.resetTimeoutOnProgress??!1),this._transport.send(R,{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a,headers:s,requestSignal:h?.signal}).catch(N=>{this._progressHandlers.delete(v),p(N)})}).finally(()=>{l&&i?.signal?.removeEventListener("abort",l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return await this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,r){if(!this._transport)throw new re(se.NotConnected,"Not connected");if(tS(t.method)&&!e.hasNotificationMethod(t.method))throw new re(se.MethodNotSupportedByProtocolVersion,`Notification \'${t.method}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let i=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&r?.relatedRequestId===void 0){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(i,r).catch(n=>this._onerror(n))});return}await this._transport.send(i,r)}setRequestHandler(e,t,r){this.assertRequestHandlerCapability(e);let i;if(typeof t=="function"){if(!eS(e))throw new TypeError(`\'${e}\' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);i=(n,o)=>{let a=this._negotiatedWireCodec(),s=a.validateRequest(e,n);if(!s.ok&&s.reason==="not-in-era"&&(s=a.validateInputRequest(e,n)),!s.ok)throw s.reason==="not-in-era"?new j(O.InternalError,`No wire schema for ${e} in the resolved era`):new Error(s.message);return Promise.resolve(t(s.value,o))}}else if(r)i=async(n,o)=>{let a=await qr(t.params,{...n.params});if(!a.success)throw new j(O.InvalidParams,`Invalid params for ${e}: ${a.error}`);return r(a.data,o)};else throw new TypeError("setRequestHandler: handler is required");typeof t=="function"?this._customSchemaRequestMethods.delete(e):this._customSchemaRequestMethods.add(e),this._requestHandlers.set(e,this._wrapHandler(e,i))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e),this._customSchemaRequestMethods.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,r){if(typeof t=="function"){if(!tS(e))throw new TypeError(`\'${e}\' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(i,n)=>{let o=n.validateNotification(e,i);if(!o.ok)throw o.reason==="not-in-era"?new j(O.InternalError,`No wire schema for ${e} in the resolved era`):new Error(o.message);return Promise.resolve(t(o.value))});return}if(!r)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async i=>{let n=await qr(t.params,{...i.params});if(!n.success)throw new j(O.InvalidParams,`Invalid params for notification ${e}: ${n.error}`);await r(n.data,i)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function ks(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function wS(e,t){let r={...e};for(let i in t){let n=i,o=t[n];if(o===void 0)continue;let a=r[n];r[n]=ks(a)&&ks(o)?{...a,...o}:o}return r}function lw(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ZN(e){let t={},r=[];if(!lw(e))return{accepted:t,droppedKeys:r};for(let[i,n]of Object.entries(e)){if(!lw(n)||"method"in n||"result"in n){r.push(i);continue}t[i]=n}return{accepted:t,droppedKeys:r}}function FN(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState},...e._meta!==void 0&&{_meta:e._meta}}}var KN=K_((e=>{var t=/; *([!#$%&\'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\\u000b\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e\\u0080-\\u00ff]|\\\\[\\u000b\\u0020-\\u00ff])*"|[!#$%&\'*+.^_`|~0-9A-Za-z-]+) */g,r=/\\\\([\\u000b\\u0020-\\u00ff])/g,i=/^[!#$%&\'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&\'*+.^_`|~0-9A-Za-z-]+$/;e.parse=n;function n(s){if(!s)throw new TypeError("argument string is required");var c=typeof s=="object"?o(s):s;if(typeof c!="string")throw new TypeError("argument string is required to be a string");var l=c.indexOf(";"),u=l!==-1?c.slice(0,l).trim():c.trim();if(!i.test(u))throw new TypeError("invalid media type");var m=new a(u.toLowerCase());if(l!==-1){var p,f,h;for(t.lastIndex=l;f=t.exec(c);){if(f.index!==l)throw new TypeError("invalid parameter format");l+=f[0].length,p=f[1].toLowerCase(),h=f[2],h.charCodeAt(0)===34&&(h=h.slice(1,-1),h.indexOf("\\\\")!==-1&&(h=h.replace(r,"$1"))),m.parameters[p]=h}if(l!==c.length)throw new TypeError("invalid parameter format")}return m}function o(s){var c;if(typeof s.getHeader=="function"?c=s.getHeader("content-type"):typeof s.headers=="object"&&(c=s.headers&&s.headers["content-type"]),typeof c!="string")throw new TypeError("content-type header is missing from object");return c}function a(s){this.parameters=Object.create(null),this.type=s}})),BN=J_(KN(),1);function zS(e){if(e)try{return BN.parse(e).type}catch{let t=(e.split(";",1)[0]??"").trim().toLowerCase();return t===""||e.slice(t.length).includes(",")?void 0:t}}function IS(e){return e==="application/json"?!0:zS(e)==="application/json"}var JN=10*1024*1024;var HN=/^[A-Za-z0-9._-]{1,128}$/;function YN(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!HN.test(e)){let r=[...e].filter(i=>!/[A-Za-z0-9._-]/.test(i)).filter((i,n,o)=>o.indexOf(i)===n);return t.push(`Tool name contains invalid characters: ${r.map(i=>`"${i}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function GN(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let r of t)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function TS(e){let t=YN(e);return GN(e,t.warnings),t.isValid}var uw=1e6,rS=1e6,dw=1e4,WN=1e6,xS=class Mr{static isTemplate(t){return/\\{[^}\\s]+\\}/.test(t)}static validateLength(t,r,i){if(t.length>r)throw new Error(`${i} exceeds maximum length of ${r} characters (got ${t.length})`)}template;parts;get variableNames(){return this.parts.flatMap(t=>typeof t=="string"?[]:t.names)}constructor(t){Mr.validateLength(t,uw,"Template"),this.template=t,this.parts=this.parse(t)}toString(){return this.template}parse(t){let r=[],i="",n=0,o=0;for(;n<t.length;)if(t[n]==="{"){i&&(r.push(i),i="");let a=t.indexOf("}",n);if(a===-1)throw new Error("Unclosed template expression");if(o++,o>dw)throw new Error(`Template contains too many expressions (max ${dw})`);let s=t.slice(n+1,a),c=this.getOperator(s),l=s.includes("*"),u=this.getNames(s),m=u[0];for(let p of u)Mr.validateLength(p,rS,"Variable name");r.push({name:m,operator:c,names:u,exploded:l}),n=a+1}else i+=t[n],n++;return i&&r.push(i),r}getOperator(t){return["+","#",".","/","?","&"].find(r=>t.startsWith(r))||""}getNames(t){let r=this.getOperator(t);return t.slice(r.length).split(",").map(i=>i.replace("*","").trim()).filter(i=>i.length>0)}encodeValue(t,r){return Mr.validateLength(t,rS,"Variable value"),r==="+"||r==="#"?encodeURI(t):encodeURIComponent(t)}expandPart(t,r){if(t.operator==="?"||t.operator==="&"){let o=t.names.map(a=>{let s=r[a];return s===void 0?"":`${a}=${Array.isArray(s)?s.map(c=>this.encodeValue(c,t.operator)).join(","):this.encodeValue(s.toString(),t.operator)}`}).filter(a=>a.length>0);return o.length===0?"":(t.operator==="?"?"?":"&")+o.join("&")}if(t.names.length>1){let o=t.names.map(a=>r[a]).filter(a=>a!==void 0);return o.length===0?"":o.map(a=>Array.isArray(a)?a[0]:a).join(",")}let i=r[t.name];if(i===void 0)return"";let n=(Array.isArray(i)?i:[i]).map(o=>this.encodeValue(o,t.operator));switch(t.operator){case"":return n.join(",");case"+":return n.join(",");case"#":return"#"+n.join(",");case".":return"."+n.join(".");case"/":return"/"+n.join("/");default:return n.join(",")}}expand(t){let r="",i=!1;for(let n of this.parts){if(typeof n=="string"){r+=n;continue}let o=this.expandPart(n,t);o&&(r+=(n.operator==="?"||n.operator==="&")&&i?o.replace("?","&"):o,(n.operator==="?"||n.operator==="&")&&(i=!0))}return r}escapeRegExp(t){return t.replaceAll(/[.*+?^${}()|[\\]\\\\]/g,String.raw`\\$&`)}partToRegExp(t){let r=[];for(let o of t.names)Mr.validateLength(o,rS,"Variable name");if(t.operator==="?"||t.operator==="&"){for(let o=0;o<t.names.length;o++){let a=t.names[o],s=o===0?"\\\\"+t.operator:"&";r.push({pattern:s+this.escapeRegExp(a)+"=([^&]+)",name:a})}return r}let i,n=t.name;switch(t.operator){case"":i=t.exploded?"([^/,]+(?:,[^/,]+)*)":"([^/,]+)";break;case"+":case"#":i="(.+)";break;case".":i=String.raw`\\.([^/,]+)`;break;case"/":i="/"+(t.exploded?"([^/,]+(?:,[^/,]+)*)":"([^/,]+)");break;default:i="([^/]+)"}return r.push({pattern:i,name:n}),r}match(t){Mr.validateLength(t,uw,"URI");let r="^",i=[];for(let s of this.parts)if(typeof s=="string")r+=this.escapeRegExp(s);else{let c=this.partToRegExp(s);for(let{pattern:l,name:u}of c)r+=l,i.push({name:u,exploded:s.exploded})}r+="$",Mr.validateLength(r,WN,"Generated regex pattern");let n=new RegExp(r),o=t.match(n);if(!o)return null;let a={};for(let[s,c]of i.entries()){let{name:l,exploded:u}=c,m=o[s+1],p=l.replace("*","");a[p]=u&&m.includes(",")?m.split(","):m}return a}};function XN(e){return typeof e=="object"&&e!==null&&"_zod"in e}function QN(e){return typeof e=="object"&&e!==null&&!("_zod"in e)&&"_def"in e&&typeof e._def?.typeName=="string"}function eA(e){if(typeof e!="object"||e===null||mo(e))return!1;let t=Object.getPrototypeOf(e);return t!==Object.prototype&&t!==null?!1:Object.values(e).every(r=>XN(r))}function bm(e){if(e!==void 0){if(eA(e))return g(e);if(typeof e=="object"&&e!==null&&!mo(e)&&Object.values(e).some(t=>QN(t)))throw new TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!mo(e))throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}function ES(){lS(),Sn(),RC(),KC(),eN()}function Cs(e,t){let r=typeof e;if(r!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!Cs(e[n],t[n]))return!1;return!0}if(r==="object"){if(!e||!t)return e===t;let i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(let o of i)if(!Cs(e[o],t[o]))return!1;return!0}return e===t}function Mt(e){return encodeURI(tA(e))}function tA(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}var nA={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},rA={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},iA={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0},oA=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function Br(e,t=Object.create(null),r=oA,i=""){if(e&&typeof e=="object"&&!Array.isArray(e)){let o=e.$id||e.id;if(o){let a=new URL(o,r.href);a.hash.length>1?t[a.href]=e:(a.hash="",i===""?r=a:Br(e,t,r))}}else if(e!==!0&&e!==!1)return t;let n=r.href+(i?"#"+i:"");if(t[n]!==void 0)throw new Error(`Duplicate schema URI "${n}".`);if(t[n]=e,e===!0||e===!1)return t;if(e.__absolute_uri__===void 0&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:n}),e.$ref&&e.__absolute_ref__===void 0){let o=new URL(e.$ref,r.href);o.hash=o.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:o.href})}if(e.$recursiveRef&&e.__absolute_recursive_ref__===void 0){let o=new URL(e.$recursiveRef,r.href);o.hash=o.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:o.href})}if(e.$anchor){let o=new URL("#"+e.$anchor,r.href);t[o.href]=e}for(let o in e){if(iA[o])continue;let a=`${i}/${Mt(o)}`,s=e[o];if(Array.isArray(s)){if(nA[o]){let c=s.length;for(let l=0;l<c;l++)Br(s[l],t,r,`${a}/${l}`)}}else if(rA[o])for(let c in s)Br(s[c],t,r,`${a}/${Mt(c)}`);else Br(s,t,r,a)}return t}var aA=/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,sA=[0,31,28,31,30,31,30,31,31,30,31,30,31],cA=/^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,lA=/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,uA=/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,dA=/^(?:(?:[^\\x00-\\x20"\'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,mA=/^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,pA=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,fA=/^(?:\\/(?:[^~/]|~0|~1)*)*$/,hA=/^#(?:\\/(?:[a-z0-9_\\-.!$&\'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,gA=/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,vA=e=>{if(e[0]===\'"\')return!1;let[t,r,...i]=e.split("@");return!t||!r||i.length!==0||t.length>64||r.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(r)||!/^[a-z0-9.!#$%&\'*+/=?^_`{|}~-]+$/i.test(t)?!1:r.split(".").every(n=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(n))},yA=/^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,SA=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,_A=e=>e.length>1&&e.length<80&&(/^P\\d+([.,]\\d+)?W$/.test(e)||/^P[\\dYMDTHS]*(\\d[.,]\\d+)?[YMDHS]$/.test(e)&&/^P([.,\\d]+Y)?([.,\\d]+M)?([.,\\d]+D)?(T([.,\\d]+H)?([.,\\d]+M)?([.,\\d]+S)?)?$/.test(e));function an(e){return e.test.bind(e)}var Ww={date:Xw,time:Qw.bind(void 0,!1),"date-time":kA,duration:_A,uri:zA,"uri-reference":an(uA),"uri-template":an(dA),url:an(mA),email:vA,hostname:an(lA),ipv4:an(yA),ipv6:an(SA),regex:TA,uuid:an(pA),"json-pointer":an(fA),"json-pointer-uri-fragment":an(hA),"relative-json-pointer":an(gA)};function bA(e){return e%4===0&&(e%100!==0||e%400===0)}function Xw(e){let t=e.match(aA);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i==2&&bA(r)?29:sA[i])}function Qw(e,t){let r=t.match(cA);if(!r)return!1;let i=+r[1],n=+r[2],o=+r[3],a=!!r[5];return(i<=23&&n<=59&&o<=59||i==23&&n==59&&o==60)&&(!e||a)}var $A=/t|\\s/i;function kA(e){let t=e.split($A);return t.length==2&&Xw(t[0])&&Qw(!0,t[1])}var RA=/\\/|:/,wA=/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function zA(e){return RA.test(e)&&wA.test(e)}var IA=/[^\\\\]\\\\Z/;function TA(e){if(IA.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}function xA(e){let t=0,r=e.length,i=0,n;for(;i<r;)t++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<r&&(n=e.charCodeAt(i),(n&64512)==56320&&i++);return t}function $e(e,t,r="2019-09",i=Br(t),n=!0,o=null,a="#",s="#",c=Object.create(null)){if(t===!0)return{valid:!0,errors:[]};if(t===!1)return{valid:!1,errors:[{instanceLocation:a,keyword:"false",keywordLocation:a,error:"False boolean schema."}]};let l=typeof e,u;switch(l){case"boolean":case"number":case"string":u=l;break;case"object":e===null?u="null":Array.isArray(e)?u="array":u="object";break;default:throw new Error(`Instances of "${l}" type are not supported.`)}let{$ref:m,$recursiveRef:p,$recursiveAnchor:f,type:h,const:v,enum:y,required:R,not:w,anyOf:E,allOf:D,oneOf:F,if:N,then:te,else:ie,format:Y,properties:ye,patternProperties:be,additionalProperties:ce,unevaluatedProperties:Ie,minProperties:Pe,maxProperties:De,propertyNames:Je,dependentRequired:rt,dependentSchemas:yt,dependencies:Vt,prefixItems:dt,items:He,additionalItems:cn,unevaluatedItems:ln,contains:Zt,minContains:Me,maxContains:Ye,minItems:Ge,maxItems:xt,uniqueItems:or,minimum:mt,maximum:pt,exclusiveMinimum:it,exclusiveMaximum:St,multipleOf:_t,minLength:Ft,maxLength:Kt,pattern:wn,__absolute_ref__:Bt,__absolute_recursive_ref__:ar}=t,V=[];if(f===!0&&o===null&&(o=t),p==="#"){let G=o===null?i[ar]:o,H=`${s}/$recursiveRef`,ae=$e(e,o===null?t:o,r,i,n,G,a,H,c);ae.valid||V.push({instanceLocation:a,keyword:"$recursiveRef",keywordLocation:H,error:"A subschema had errors."},...ae.errors)}if(m!==void 0){let G=i[Bt||m];if(G===void 0){let Z=`Unresolved $ref "${m}".`;throw Bt&&Bt!==m&&(Z+=` Absolute URI "${Bt}".`),Z+=`\nKnown schemas:\n- ${Object.keys(i).join(`\n- `)}`,new Error(Z)}let H=`${s}/$ref`,ae=$e(e,G,r,i,n,o,a,H,c);if(ae.valid||V.push({instanceLocation:a,keyword:"$ref",keywordLocation:H,error:"A subschema had errors."},...ae.errors),r==="4"||r==="7")return{valid:V.length===0,errors:V}}if(Array.isArray(h)){let G=h.length,H=!1;for(let ae=0;ae<G;ae++)if(u===h[ae]||h[ae]==="integer"&&u==="number"&&e%1===0&&e===e){H=!0;break}H||V.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h.join(\'", "\')}".`})}else h==="integer"?(u!=="number"||e%1||e!==e)&&V.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h}".`}):h!==void 0&&u!==h&&V.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h}".`});if(v!==void 0&&(u==="object"||u==="array"?Cs(e,v)||V.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(v)}.`}):e!==v&&V.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(v)}.`})),y!==void 0&&(u==="object"||u==="array"?y.some(G=>Cs(e,G))||V.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`}):y.some(G=>e===G)||V.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`})),w!==void 0){let G=`${s}/not`;$e(e,w,r,i,n,o,a,G).valid&&V.push({instanceLocation:a,keyword:"not",keywordLocation:G,error:\'Instance matched "not" schema.\'})}let Jt=[];if(E!==void 0){let G=`${s}/anyOf`,H=V.length,ae=!1;for(let Z=0;Z<E.length;Z++){let M=E[Z],ee=Object.create(c),X=$e(e,M,r,i,n,f===!0?o:null,a,`${G}/${Z}`,ee);V.push(...X.errors),ae=ae||X.valid,X.valid&&Jt.push(ee)}ae?V.length=H:V.splice(H,0,{instanceLocation:a,keyword:"anyOf",keywordLocation:G,error:"Instance does not match any subschemas."})}if(D!==void 0){let G=`${s}/allOf`,H=V.length,ae=!0;for(let Z=0;Z<D.length;Z++){let M=D[Z],ee=Object.create(c),X=$e(e,M,r,i,n,f===!0?o:null,a,`${G}/${Z}`,ee);V.push(...X.errors),ae=ae&&X.valid,X.valid&&Jt.push(ee)}ae?V.length=H:V.splice(H,0,{instanceLocation:a,keyword:"allOf",keywordLocation:G,error:"Instance does not match every subschema."})}if(F!==void 0){let G=`${s}/oneOf`,H=V.length,ae=F.filter((Z,M)=>{let ee=Object.create(c),X=$e(e,Z,r,i,n,f===!0?o:null,a,`${G}/${M}`,ee);return V.push(...X.errors),X.valid&&Jt.push(ee),X.valid}).length;ae===1?V.length=H:V.splice(H,0,{instanceLocation:a,keyword:"oneOf",keywordLocation:G,error:`Instance does not match exactly one subschema (${ae} matches).`})}if((u==="object"||u==="array")&&Object.assign(c,...Jt),N!==void 0){let G=`${s}/if`;if($e(e,N,r,i,n,o,a,G,c).valid){if(te!==void 0){let H=$e(e,te,r,i,n,o,a,`${s}/then`,c);H.valid||V.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "then" schema.\'},...H.errors)}}else if(ie!==void 0){let H=$e(e,ie,r,i,n,o,a,`${s}/else`,c);H.valid||V.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "else" schema.\'},...H.errors)}}if(u==="object"){if(R!==void 0)for(let Z of R)Z in e||V.push({instanceLocation:a,keyword:"required",keywordLocation:`${s}/required`,error:`Instance does not have required property "${Z}".`});let G=Object.keys(e);if(Pe!==void 0&&G.length<Pe&&V.push({instanceLocation:a,keyword:"minProperties",keywordLocation:`${s}/minProperties`,error:`Instance does not have at least ${Pe} properties.`}),De!==void 0&&G.length>De&&V.push({instanceLocation:a,keyword:"maxProperties",keywordLocation:`${s}/maxProperties`,error:`Instance does not have at least ${De} properties.`}),Je!==void 0){let Z=`${s}/propertyNames`;for(let M in e){let ee=`${a}/${Mt(M)}`,X=$e(M,Je,r,i,n,o,ee,Z);X.valid||V.push({instanceLocation:a,keyword:"propertyNames",keywordLocation:Z,error:`Property name "${M}" does not match schema.`},...X.errors)}}if(rt!==void 0){let Z=`${s}/dependantRequired`;for(let M in rt)if(M in e){let ee=rt[M];for(let X of ee)X in e||V.push({instanceLocation:a,keyword:"dependentRequired",keywordLocation:Z,error:`Instance has "${M}" but does not have "${X}".`})}}if(yt!==void 0)for(let Z in yt){let M=`${s}/dependentSchemas`;if(Z in e){let ee=$e(e,yt[Z],r,i,n,o,a,`${M}/${Mt(Z)}`,c);ee.valid||V.push({instanceLocation:a,keyword:"dependentSchemas",keywordLocation:M,error:`Instance has "${Z}" but does not match dependant schema.`},...ee.errors)}}if(Vt!==void 0){let Z=`${s}/dependencies`;for(let M in Vt)if(M in e){let ee=Vt[M];if(Array.isArray(ee))for(let X of ee)X in e||V.push({instanceLocation:a,keyword:"dependencies",keywordLocation:Z,error:`Instance has "${M}" but does not have "${X}".`});else{let X=$e(e,ee,r,i,n,o,a,`${Z}/${Mt(M)}`);X.valid||V.push({instanceLocation:a,keyword:"dependencies",keywordLocation:Z,error:`Instance has "${M}" but does not match dependant schema.`},...X.errors)}}}let H=Object.create(null),ae=!1;if(ye!==void 0){let Z=`${s}/properties`;for(let M in ye){if(!(M in e))continue;let ee=`${a}/${Mt(M)}`,X=$e(e[M],ye[M],r,i,n,o,ee,`${Z}/${Mt(M)}`);if(X.valid)c[M]=H[M]=!0;else if(ae=n,V.push({instanceLocation:a,keyword:"properties",keywordLocation:Z,error:`Property "${M}" does not match schema.`},...X.errors),ae)break}}if(!ae&&be!==void 0){let Z=`${s}/patternProperties`;for(let M in be){let ee=new RegExp(M,"u"),X=be[M];for(let Te in e){if(!ee.test(Te))continue;let sr=`${a}/${Mt(Te)}`,Ht=$e(e[Te],X,r,i,n,o,sr,`${Z}/${Mt(M)}`);Ht.valid?c[Te]=H[Te]=!0:(ae=n,V.push({instanceLocation:a,keyword:"patternProperties",keywordLocation:Z,error:`Property "${Te}" matches pattern "${M}" but does not match associated schema.`},...Ht.errors))}}}if(!ae&&ce!==void 0){let Z=`${s}/additionalProperties`;for(let M in e){if(H[M])continue;let ee=`${a}/${Mt(M)}`,X=$e(e[M],ce,r,i,n,o,ee,Z);X.valid?c[M]=!0:(ae=n,V.push({instanceLocation:a,keyword:"additionalProperties",keywordLocation:Z,error:`Property "${M}" does not match additional properties schema.`},...X.errors))}}else if(!ae&&Ie!==void 0){let Z=`${s}/unevaluatedProperties`;for(let M in e)if(!c[M]){let ee=`${a}/${Mt(M)}`,X=$e(e[M],Ie,r,i,n,o,ee,Z);X.valid?c[M]=!0:V.push({instanceLocation:a,keyword:"unevaluatedProperties",keywordLocation:Z,error:`Property "${M}" does not match unevaluated properties schema.`},...X.errors)}}}else if(u==="array"){xt!==void 0&&e.length>xt&&V.push({instanceLocation:a,keyword:"maxItems",keywordLocation:`${s}/maxItems`,error:`Array has too many items (${e.length} > ${xt}).`}),Ge!==void 0&&e.length<Ge&&V.push({instanceLocation:a,keyword:"minItems",keywordLocation:`${s}/minItems`,error:`Array has too few items (${e.length} < ${Ge}).`});let G=e.length,H=0,ae=!1;if(dt!==void 0){let Z=`${s}/prefixItems`,M=Math.min(dt.length,G);for(;H<M;H++){let ee=$e(e[H],dt[H],r,i,n,o,`${a}/${H}`,`${Z}/${H}`);if(c[H]=!0,!ee.valid&&(ae=n,V.push({instanceLocation:a,keyword:"prefixItems",keywordLocation:Z,error:"Items did not match schema."},...ee.errors),ae))break}}if(He!==void 0){let Z=`${s}/items`;if(Array.isArray(He)){let M=Math.min(He.length,G);for(;H<M;H++){let ee=$e(e[H],He[H],r,i,n,o,`${a}/${H}`,`${Z}/${H}`);if(c[H]=!0,!ee.valid&&(ae=n,V.push({instanceLocation:a,keyword:"items",keywordLocation:Z,error:"Items did not match schema."},...ee.errors),ae))break}}else for(;H<G;H++){let M=$e(e[H],He,r,i,n,o,`${a}/${H}`,Z);if(c[H]=!0,!M.valid&&(ae=n,V.push({instanceLocation:a,keyword:"items",keywordLocation:Z,error:"Items did not match schema."},...M.errors),ae))break}if(!ae&&cn!==void 0){let M=`${s}/additionalItems`;for(;H<G;H++){let ee=$e(e[H],cn,r,i,n,o,`${a}/${H}`,M);c[H]=!0,ee.valid||(ae=n,V.push({instanceLocation:a,keyword:"additionalItems",keywordLocation:M,error:"Items did not match additional items schema."},...ee.errors))}}}if(Zt!==void 0)if(G===0&&Me===void 0)V.push({instanceLocation:a,keyword:"contains",keywordLocation:`${s}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(Me!==void 0&&G<Me)V.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array has less items (${G}) than minContains (${Me}).`});else{let Z=`${s}/contains`,M=V.length,ee=0;for(let X=0;X<G;X++){let Te=$e(e[X],Zt,r,i,n,o,`${a}/${X}`,Z);Te.valid?(c[X]=!0,ee++):V.push(...Te.errors)}ee>=(Me||0)&&(V.length=M),Me===void 0&&Ye===void 0&&ee===0?V.splice(M,0,{instanceLocation:a,keyword:"contains",keywordLocation:Z,error:"Array does not contain item matching schema."}):Me!==void 0&&ee<Me?V.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array must contain at least ${Me} items matching schema. Only ${ee} items were found.`}):Ye!==void 0&&ee>Ye&&V.push({instanceLocation:a,keyword:"maxContains",keywordLocation:`${s}/maxContains`,error:`Array may contain at most ${Ye} items matching schema. ${ee} items were found.`})}if(!ae&&ln!==void 0){let Z=`${s}/unevaluatedItems`;for(;H<G;H++){if(c[H])continue;let M=$e(e[H],ln,r,i,n,o,`${a}/${H}`,Z);c[H]=!0,M.valid||V.push({instanceLocation:a,keyword:"unevaluatedItems",keywordLocation:Z,error:"Items did not match unevaluated items schema."},...M.errors)}}if(or)for(let Z=0;Z<G;Z++){let M=e[Z],ee=typeof M=="object"&&M!==null;for(let X=0;X<G;X++){if(Z===X)continue;let Te=e[X];(M===Te||ee&&typeof Te=="object"&&Te!==null&&Cs(M,Te))&&(V.push({instanceLocation:a,keyword:"uniqueItems",keywordLocation:`${s}/uniqueItems`,error:`Duplicate items at indexes ${Z} and ${X}.`}),Z=Number.MAX_SAFE_INTEGER,X=Number.MAX_SAFE_INTEGER)}}}else if(u==="number"){if(r==="4"?(mt!==void 0&&(it===!0&&e<=mt||e<mt)&&V.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${it?"or equal to ":""} ${mt}.`}),pt!==void 0&&(St===!0&&e>=pt||e>pt)&&V.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${St?"or equal to ":""} ${pt}.`})):(mt!==void 0&&e<mt&&V.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${mt}.`}),pt!==void 0&&e>pt&&V.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${pt}.`}),it!==void 0&&e<=it&&V.push({instanceLocation:a,keyword:"exclusiveMinimum",keywordLocation:`${s}/exclusiveMinimum`,error:`${e} is less than ${it}.`}),St!==void 0&&e>=St&&V.push({instanceLocation:a,keyword:"exclusiveMaximum",keywordLocation:`${s}/exclusiveMaximum`,error:`${e} is greater than or equal to ${St}.`})),_t!==void 0){let G=e%_t;Math.abs(0-G)>=11920929e-14&&Math.abs(_t-G)>=11920929e-14&&V.push({instanceLocation:a,keyword:"multipleOf",keywordLocation:`${s}/multipleOf`,error:`${e} is not a multiple of ${_t}.`})}}else if(u==="string"){let G=Ft===void 0&&Kt===void 0?0:xA(e);Ft!==void 0&&G<Ft&&V.push({instanceLocation:a,keyword:"minLength",keywordLocation:`${s}/minLength`,error:`String is too short (${G} < ${Ft}).`}),Kt!==void 0&&G>Kt&&V.push({instanceLocation:a,keyword:"maxLength",keywordLocation:`${s}/maxLength`,error:`String is too long (${G} > ${Kt}).`}),wn!==void 0&&!new RegExp(wn,"u").test(e)&&V.push({instanceLocation:a,keyword:"pattern",keywordLocation:`${s}/pattern`,error:"String does not match pattern."}),Y!==void 0&&Ww[Y]&&!Ww[Y](e)&&V.push({instanceLocation:a,keyword:"format",keywordLocation:`${s}/format`,error:`String does not match format "${Y}".`})}return{valid:V.length===0,errors:V}}var EA=class{schema;draft;shortCircuit;lookup;constructor(e,t="2019-09",r=!0){this.schema=e,this.draft=t,this.shortCircuit=r,this.lookup=Br(e)}validate(e){return $e(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),Br(e,this.lookup)}},$m=class{shortcircuit;draft;constructor(e){this.shortcircuit=e?.shortcircuit??!0,this.draft=e?.draft}_draftFor(e){let t=G_(e,"pass an explicit { draft } to CfWorkerJsonSchemaValidator to validate other dialects.");return t==="draft-7"?"7":t}getValidator(e){let t=new EA(e,this.draft??this._draftFor(e),this.shortcircuit);return r=>{let i=t.validate(r);return i.valid?{valid:!0,data:r,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:i.errors.map(n=>`${n.instanceLocation}: ${n.error}`).join("; ")}}}};ES();var cz=Symbol.for("mcp.completable");function OS(e){return!!e&&typeof e=="object"&&cz in e}function PA(e){return e[cz]?.complete}var po=15e3,OA=2**31-1;function As(e,t){if(!Number.isFinite(e)||e<1)return;let r=setInterval(t,Math.min(e,OA));return r.unref?.(),r}var lz,CS=class{static{lz=e=>e._classification}onclose;onerror;onmessage;_classification;_responseMode;_started=!1;_used=!1;_closed=!1;_terminalDelivered=!1;_dispatchWindowOpen=!1;_requestId;_deferredResponse;_sse;_abortCleanup;_keepAliveMs;constructor(e){this._classification=e.classification,this._responseMode=e.responseMode??"auto",this._keepAliveMs=e.keepAliveMs??po}async start(){if(this._started)throw new Error("PerRequestHTTPServerTransport is already started");this._started=!0}async handleMessage(e,t){if(this._used)throw new Error("PerRequestHTTPServerTransport serves exactly one exchange; construct a new transport per request");if(!this._started||this.onmessage===void 0)throw new Error("PerRequestHTTPServerTransport is not connected: connect a server to this transport before handling a message");if(this._closed)throw new Error("PerRequestHTTPServerTransport is closed");this._used=!0;let r=t?.request?.signal;if(r?.aborted)throw await this.close(),new re(se.ConnectionClosed,"The request was aborted before it could be handled");let i={classification:this._classification,...t?.request!==void 0&&{request:t.request},...t?.authInfo!==void 0&&{authInfo:t.authInfo}};if(Dt(e)){this._requestId=e.id;let n,o,a=new Promise((s,c)=>{n=s,o=c});if(this._deferredResponse={promise:a,resolve:n,reject:o,settled:!1},r!==void 0){let s=()=>{this.close()};r.addEventListener("abort",s,{once:!0}),this._abortCleanup=()=>r.removeEventListener("abort",s)}this._dispatchWindowOpen=!0;try{this.onmessage(e,i)}finally{this._dispatchWindowOpen=!1}return this._responseMode==="sse"&&!this._closed&&!this._deferredResponse.settled&&this.upgradeToSse(),a}return this.onmessage(e,i),new Response(null,{status:202})}async send(e,t){if(this._closed)return;let r=rn(e)||on(e),i=r?e.id:t?.relatedRequestId;if(this._requestId===void 0||i===void 0||i!==this._requestId){r&&this.onerror?.(new Error(`Received a response for an unknown request id: ${String(e.id)}`));return}if(r){if(this._terminalDelivered)return;this._terminalDelivered=!0;let n=on(e)?e.error.code:void 0,o=n!==void 0&&(this._dispatchWindowOpen||n===O.MissingRequiredClientCapability)?_S[n]:void 0;if(o!==void 0&&this._sse===void 0){this.settleResponse(Response.json(e,{status:o,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}if(this._sse!==void 0||this._responseMode==="sse"){this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e),this.finalizeStream();return}this.settleResponse(Response.json(e,{status:200,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}this._responseMode!=="json"&&(this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e))}writeCommentFrame(e){if(this._closed||this._sse===void 0||this._sse.closed)return;let t=e.split(`\n`).map(r=>`: ${r}`).join(`\n`);this.writeFrame(`${t}\n\n`)}async close(){if(!this._closed){if(this._closed=!0,this._abortCleanup?.(),this._abortCleanup=void 0,this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}this._deferredResponse!==void 0&&!this._deferredResponse.settled&&(this._deferredResponse.settled=!0,this._deferredResponse.reject(new re(se.ConnectionClosed,"Connection closed before a response was produced"))),this.onclose?.()}}settleResponse(e){this._deferredResponse===void 0||this._deferredResponse.settled||(this._deferredResponse.settled=!0,this._deferredResponse.resolve(e))}upgradeToSse(){let e,t=new ReadableStream({start:r=>{e=r},cancel:()=>{this.close()}});this._sse={controller:e,encoder:new TextEncoder,closed:!1},this._sse.keepAliveTimer=As(this._keepAliveMs,()=>this.writeCommentFrame("keepalive")),this.settleResponse(new Response(t,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}}))}finalizeStream(){if(this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}queueMicrotask(()=>{this.close()})}writeMessageFrame(e){this.writeFrame(`event: message\ndata: ${JSON.stringify(e)}\n\n`)}writeFrame(e){if(!(this._sse===void 0||this._sse.closed))try{this._sse.controller.enqueue(this._sse.encoder.encode(e))}catch(t){this.onerror?.(new Error(`Failed to write to the response stream: ${t}`))}}};function CA(e){return e instanceof CS?lz(e):void 0}function km(e){return e.replaceAll(/[\\\\"]/g,String.raw`\\$&`).replaceAll(/[^\\u0020-\\u007E]/g," ")}function ez(e,t,r,i){let n=`Bearer error="${km(e)}", error_description="${km(t)}"`;return r.length>0&&(n+=`, scope="${km(r.join(" "))}"`),i&&(n+=`, resource_metadata="${km(i)}"`),n}function uz(e,t){let{requiredScopes:r=[],resourceMetadataUrl:i}=t??{};if(!(e instanceof Is)){let n=new Is(Vr.ServerError,"Internal Server Error");return Response.json(n.toResponseObject(),{status:500})}switch(e.code){case Vr.InvalidToken:{let n=ez(e.code,e.message,r,i);return Response.json(e.toResponseObject(),{status:401,headers:{"WWW-Authenticate":n}})}case Vr.InsufficientScope:{let n=ez(e.code,e.message,r,i);return Response.json(e.toResponseObject(),{status:403,headers:{"WWW-Authenticate":n}})}case Vr.ServerError:return Response.json(e.toResponseObject(),{status:500});default:return Response.json(e.toResponseObject(),{status:400})}}function dz(e){let t=new URL(e);return t.pathname=NA(e),t.hash="",t.href}function NA(e){let t=AA(e.pathname);return`/.well-known/oauth-protected-resource${t==="/"?"":t}`}function AA(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function jA(e){return typeof e=="object"&&e!==null&&"setScopeChallengeResolver"in e&&typeof e.setScopeChallengeResolver=="function"}function UA(e,t){if(typeof e!="string"||!/^[\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e))throw new TypeError(`${t} must satisfy the OAuth scope-token grammar`)}function LA(e){if(e===null||typeof e!="object"||!Array.isArray(e.scopes)||e.scopes.length===0)throw new TypeError("scope challenge must contain at least one scope");for(let[t,r]of e.scopes.entries())UA(r,`scope challenge scopes[${t}]`);if(e.errorDescription!==void 0&&typeof e.errorDescription!="string")throw new TypeError("scope challenge errorDescription must be a string");if(e.errorDescription!==void 0&&!/^[\\u0020-\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e.errorDescription))throw new TypeError("scope challenge errorDescription must satisfy the RFC 6750 error-description grammar");return e}async function NS(e,t,r){for(let i of e){let n=await r({request:i,...t!==void 0&&{authInfo:t}});if(n!==void 0)return LA(n)}}function AS(e){if(e?.resourceMetadataUrl!==void 0)return e.resourceMetadataUrl;if(e?.resource?.protocol==="https:"||e?.resource?.protocol==="http:")return dz(e.resource)}function jS(e,t){return uz(new Is(Vr.InsufficientScope,e.errorDescription??"Insufficient scope"),{requiredScopes:[...e.scopes],resourceMetadataUrl:t})}var DA=8,MA=6e5;function qA(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw new RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw new RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??DA,roundTimeoutMs:e?.roundTimeoutMs??MA,legacyShim:e?.legacyShim??!0}}function mz(e,t,r){if(r===null||typeof r!="object"||typeof r.method!="string")throw new j(O.InternalError,`Handler for ${e} returned an invalid input request \'${t}\': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let i=r,n=fw(i);if(n===void 0)throw new j(O.InternalError,`Handler for ${e} returned an input request \'${t}\' of kind \'${i.method}\', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:i,required:n}}function VA(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=[...t].map(i=>i.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function PS(e,t){if(e==="tools/call")return{content:[{type:"text",text:t}],isError:!0};throw new j(O.InternalError,t)}var ZA=class{constructor(e){this._host=e}async fulfill(e,t,r,i,n){let{maxRounds:o,roundTimeoutMs:a}=this._host,s=i.mcpReq.signal,c=n,l=0;for(;;){if(l+=1,l>o)return PS(e,Vw(e,o));let u=c.inputRequests,m=u!=null&&Object.keys(u).length>0,p=typeof c.requestState=="string"?c.requestState:void 0;if(!m&&p===void 0)throw new j(O.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);let f;if(m){let y=this._host.resolvedClientCapabilities(i),R=[];for(let[E,D]of Object.entries(u)){let{embedded:F,required:N}=mz(e,E,D);if(F.method!=="roots/list"&&F.params===void 0)throw new j(O.InternalError,`Handler for ${e} returned an input request \'${E}\' of kind \'${F.method}\' without params`);if(Ts(N,y)!==void 0)return PS(e,`Cannot request input \'${E}\' (${F.method}): the client on this 2025-era connection did not declare the required capability${y===void 0?" (no client capabilities are available on this connection \\u2014 per-request legacy serving cannot receive server-to-client requests)":""}`);R.push([E,F])}let w=Fw(s);try{let E={relatedRequestId:i.mcpReq.id,timeout:a,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:w.signal},D=await Promise.all(R.map(async([F,N])=>{try{return[F,await this._dispatchLeg(N,E)]}catch(te){throw w.abort(te),te}}));f=Object.fromEntries(D)}catch(E){if(s.aborted)throw E;return PS(e,`Fulfilling input required by \'${e}\' failed: ${E instanceof Error?E.message:String(E)}`)}finally{w.dispose()}}else await Zw(qw,s);let h={...i,mcpReq:{...i.mcpReq,inputResponses:f,droppedInputResponseKeys:void 0,requestState:Os(p)}};if(p!==void 0){let y=await this._host.verifyRequestState(p,h,e);y!==void 0&&(h=kS(h,y))}let v=await t(r,h);if(!$n(v))return v;c=v}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let r=e.params;return r.mode==="url"&&r.elicitationId===void 0&&(r={...r,elicitationId:VA()}),await this._host.sendElicitation(r,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}},FA=new Set(["tools/call","prompts/get","resources/read"]),pz,fz,hz;function gz(e,t){pz(e,t)}function vz(e,t){fz(e,t)}function yz(e){return hz(e)}var Sz=class extends RS{_clientCapabilities;_clientVersion;static{pz=(e,t)=>{t.clientCapabilities!==void 0&&(e._clientCapabilities=t.clientCapabilities),t.clientInfo!==void 0&&(e._clientVersion=t.clientInfo)},fz=(e,t)=>{let r=t.filter(i=>!e._supportedProtocolVersions.includes(i));r.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...r]),e.setRequestHandler("server/discover",()=>e._ondiscover())},hz=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_boundFromTransport=!1;_legacyInputRequiredShim(){return this._legacyShim??=new ZA({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,r)=>this._verifyRequestState(e,t,r),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new $m,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=qA(t?.inputRequired),t?.cacheHints!==void 0){for(let[r,i]of Object.entries(t.cacheHints))i!==void 0&&xs(i,`cacheHints[\'${r}\']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",r=>this._oninitialize(r)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),pm(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}async connect(e){if(this.transport!==void 0)throw new re(se.AlreadyConnected,"Use a separate Server instance per connection: this instance is already connected to a transport. To connect it to a new transport, call close() first.");this._boundFromTransport&&(this._boundFromTransport=!1,this._negotiatedProtocolVersion=void 0);let t=CA(e)?.revision;t!==void 0&&!this._servedModernEra()&&Zr.includes(t)&&pm(this._supportedProtocolVersions).includes(t)&&(this._negotiatedProtocolVersion=t,this._boundFromTransport=!0),await super.connect(e)}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let r=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:i}=e.params,n=_m(Wn,i);return n.success&&this._loggingLevels.set(r,n.data),{}})}buildContext(e,t){let r=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(i,n,o)=>{if(!this._capabilities.logging)return Promise.resolve();let a;if(this._servedModernEra()){if(a=e.mcpReq.envelope?.[Kn],a===void 0)return Promise.resolve()}else a=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return a!==void 0&&this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(a)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:i,data:n,logger:o}})},elicitInput:(i,n)=>this.elicitInput(i,n),requestSampling:(i,n)=>this.createMessage(i,n)},http:r?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(Wn.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let r=this._loggingLevels.get(t);return r?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(r):!1};registerCapabilities(e){if(this.transport)throw new re(se.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=wS(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if(e!=="tools/call"){let r=this._cacheHints?.[e],i=FA.has(e);return r===void 0&&!i?async(n,o)=>{let a=await t(n,o);if($n(a))throw new j(O.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}:async(n,o)=>{let a=i?await this._invokeInputRequiredCapableHandler(e,t,n,o):await t(n,o);if($n(a)){if(!i)throw new j(O.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}return r===void 0?a:hm(a,r)}}return async(r,i)=>{let n=bn(this._negotiatedProtocolVersion),o=n.validateRequest("tools/call",r);if(!o.ok)throw new j(o.reason==="not-in-era"?O.InternalError:O.InvalidParams,o.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${o.message}`);let a=await this._invokeInputRequiredCapableHandler("tools/call",t,r,i);if($n(a))return a;let s=cS(a),c=n.validateResult("tools/call",s);if(!c.ok)throw new j(c.reason==="not-in-era"?O.InternalError:O.InvalidParams,c.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${c.message}`);return c.value}}_servedModernEra(){return this._negotiatedProtocolVersion!==void 0&&Lt(this._negotiatedProtocolVersion)}async _invokeInputRequiredCapableHandler(e,t,r,i){let n=this._servedModernEra(),o=i.mcpReq.requestState();if(o!==void 0&&typeof o!="string")throw new j(O.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let a=i;if(typeof o=="string"){let m=await this._verifyRequestState(o,i,e);m!==void 0&&(a=kS(i,m))}let s;try{s=await t(r,a)}catch(m){throw m instanceof j&&m.code===O.UrlElicitationRequired&&n?new j(O.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { \\u2026: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`):m}if(!$n(s))return s;if(!n){if(!this._inputRequiredServing.legacyShim)throw new j(O.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??Nr}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,r,a,s)}let c=s.inputRequests,l=c!=null&&Object.keys(c).length>0,u=typeof s.requestState=="string";if(!l&&!u)throw new j(O.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let m=this._inputRequestCapabilityView(i);for(let[p,f]of Object.entries(c)){let{embedded:h,required:v}=mz(e,p,f),y=Ts(v,m);if(y!==void 0)throw new Es({requiredCapabilities:y},`Cannot request input \'${p}\' (${h.method}): the request\'s client capabilities do not declare the required capability`)}}return s}async _verifyRequestState(e,t,r){if(this._requestStateVerify!==void 0)try{return await this._requestStateVerify(e,t)}catch(i){throw this.onerror?.(new Error(`requestState verification rejected ${r}: ${i instanceof Error?i.message:String(i)}`)),new j(O.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[nn]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new re(se.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: \'${e}\' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead \\u2014 the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new re(se.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new re(se.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new re(se.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new re(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new re(se.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new re(se.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new re(se.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new re(se.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new re(se.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new re(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new re(se.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new re(se.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new re(se.CapabilityNotSupported,`Server does not support tools (required for ${e})`);break;case"ping":case"initialize":break}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let r=gw(this._supportedProtocolVersions),i=r.includes(t)?t:r[0]??Nr;return this._negotiatedProtocolVersion=i,this.transport?.setProtocolVersion?.(i),{protocolVersion:i,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:pm(this._supportedProtocolVersions),capabilities:KA(this.getCapabilities()),...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new re(se.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let o=e.messages.at(-1),a=Array.isArray(o.content)?o.content:[o.content],s=a.some(m=>m.type==="tool_result"),c=e.messages.length>1?e.messages.at(-2):void 0,l=c?Array.isArray(c.content)?c.content:[c.content]:[],u=l.some(m=>m.type==="tool_use");if(s){if(a.some(m=>m.type!=="tool_result"))throw new j(O.InvalidParams,"The last message must contain only tool_result content if any is present");if(!u)throw new j(O.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(u){let m=new Set(l.filter(f=>f.type==="tool_use").map(f=>f.id)),p=new Set(a.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(m.size!==p.size||![...m].every(f=>p.has(f)))throw new j(O.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let r=!!(e.tools||e.toolChoice),i=await this.request({method:"sampling/createMessage",params:e},t),n=this._wireCodec().samplingResultVariant(r,i);if(!n.ok)throw new re(se.InvalidResult,`Invalid sampling/createMessage result: ${n.reason==="invalid"?n.message:n.reason}`);return n.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new re(se.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new re(se.CapabilityNotSupported,"Client does not support form elicitation.");break}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,r){let i=e.mode??"form",n=r?.validateAcceptedContent??!0;switch(i){case"url":{let o=e;return this.request({method:"elicitation/create",params:o},t)}case"form":{let o=e.mode==="form"?e:{...e,mode:"form"},a=await this.request({method:"elicitation/create",params:o},t);if(n&&a.action==="accept"&&a.content&&o.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(o.requestedSchema)(a.content);if(!s.valid)throw new j(O.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(s){throw s instanceof j?s:new j(O.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return a}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new re(se.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};function KA(e){return{...e}}function BA(e,t){let r=0,i=[e];for(;i.length>0;){let n=i.pop();if(!(n===null||typeof n!="object"))if(Array.isArray(n))for(let o of n){if(++r>t)return r;o!==null&&typeof o=="object"&&i.push(o)}else for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;if(++r>t)return r;let a=n[o];a!==null&&typeof a=="object"&&i.push(a)}}return r}function JA(e){if(!(e===void 0||e===1/0)){if(typeof e!="number"||Number.isNaN(e)||e<1)throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(e)}`);return e}}var fo=class{server;_maxToolInputElements;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(!(t===void 0||!t.enabled)){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(t.inputSchema===void 0)return nz;try{let r=Kr(t.inputSchema,"input");return this._toolInputSchemaJson[e]=r,r}catch{return}}}constructor(e,t){this.server=new Sz(e,t),this._maxToolInputElements=JA(t?.maxToolInputElements),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return jA(e)&&e.setScopeChallengeResolver(t=>this.resolveScopeChallenge(t)),await this.server.connect(e)}async close(){await this.server.close()}resolveScopeChallenge=e=>{switch(e.request.method){case"tools/call":{let t=e.request.params?.name;if(typeof t!="string")return;let r=this._registeredTools[t];return r===void 0||!r.enabled?void 0:r.scopeChallenge?.(e)}case"resources/read":{let t=e.request.params?.uri;if(typeof t!="string")return;let r;try{r=new URL(t)}catch{return}let i=this._registeredResources[r.toString()];if(i!==void 0)return i.enabled?i.scopeChallenge?.(e):void 0;for(let n of Object.values(this._registeredResourceTemplates))if(n.resourceTemplate.uriTemplate.match(r.toString()))return n.enabled?n.scopeChallenge?.(e):void 0;return}case"prompts/get":{let t=e.request.params?.name;if(typeof t!="string")return;let r=this._registeredPrompts[t];return r===void 0||!r.enabled?void 0:r.scopeChallenge?.(e)}default:return}};_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let r={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?HA(e,t.inputSchema):nz,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(r.outputSchema=Kr(t.outputSchema,"output")),r})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let r=this._registeredTools[e.params.name];if(!r)throw new j(O.InvalidParams,`Tool ${e.params.name} not found`);if(!r.enabled)throw new j(O.InvalidParams,`Tool ${e.params.name} disabled`);try{let i=await this.validateToolInput(r,e.params.arguments,e.params.name),n=await this.executeToolHandler(r,i,t);return await this.validateToolOutput(r,n,e.params.name),$n(n)?n:this.server.projectCallToolResult(n,r.outputSchemaJson)}catch(i){if(i instanceof j&&i.code===O.UrlElicitationRequired)throw i;return this.createToolError(i instanceof Error?i.message:String(i))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,r){if(this._maxToolInputElements!==void 0&&BA(t,this._maxToolInputElements)>this._maxToolInputElements)throw new j(O.InvalidParams,`Invalid arguments for tool ${r}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);if(!e.inputSchema)return;let i=await qr(e.inputSchema,t??{});if(!i.success)throw new j(O.InvalidParams,`Input validation error: Invalid arguments for tool ${r}: ${i.error}`);return i.data}async validateToolOutput(e,t,r){if(!e.outputSchema||$n(t)||t.isError)return;if(t.structuredContent===void 0)throw new j(O.InvalidParams,`Output validation error: Tool ${r} has an output schema but no structured content was provided`);let i=await qr(e.outputSchema,t.structuredContent);if(!i.success)throw new j(O.InvalidParams,`Output validation error: Invalid structured content for tool ${r}: ${i.error}`)}async executeToolHandler(e,t,r){return e.executor(t,r)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":return yS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return SS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new j(O.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let r=this._registeredPrompts[t.name];if(!r)throw new j(O.InvalidParams,`Prompt ${t.name} not found`);if(!r.enabled)throw new j(O.InvalidParams,`Prompt ${t.name} disabled`);if(!r.argsSchema)return Ns;let i=sz(az(r.argsSchema)?.[e.params.argument.name]);if(!OS(i))return Ns;let n=PA(i);return n?oz(await n(e.params.argument.value,e.params.context)):Ns}async handleResourceCompletion(e,t){let r=Object.values(this._registeredResourceTemplates).find(n=>n.resourceTemplate.uriTemplate.toString()===t.uri);if(!r){if(this._registeredResources[t.uri])return Ns;throw new j(O.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let i=r.resourceTemplate.completeCallback(e.params.argument.name);return i?oz(await i(e.params.argument.value,e.params.context)):Ns}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let r=Object.entries(this._registeredResources).filter(([n,o])=>o.enabled).map(([n,o])=>({uri:n,name:o.name,...o.metadata})),i=[];for(let n of Object.values(this._registeredResourceTemplates)){if(!n.resourceTemplate.listCallback)continue;let o=await n.resourceTemplate.listCallback(t);for(let a of o.resources)i.push({...n.metadata,...a})}return{resources:[...r,...i]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let r;try{r=new URL(e.params.uri)}catch{throw new j(O.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let i=this._registeredResources[r.toString()];if(i){if(!i.enabled)throw new j(O.InvalidParams,`Resource ${r} disabled`);return hm(await i.readCallback(r,t),i.cacheHint)}for(let n of Object.values(this._registeredResourceTemplates)){let o=n.resourceTemplate.uriTemplate.match(r.toString());if(o){if(!n.enabled)throw new j(O.InvalidParams,`Resource template ${n.resourceTemplate.uriTemplate} disabled`);return hm(await n.readCallback(r,o,t),n.cacheHint)}}throw new Fr(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?Mw(t.argsSchema):void 0,icons:t.icons,_meta:t._meta}))})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let r=this._registeredPrompts[e.params.name];if(!r)throw new j(O.InvalidParams,`Prompt ${e.params.name} not found`);if(!r.enabled)throw new j(O.InvalidParams,`Prompt ${e.params.name} disabled`);return r.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,r,i){let{cacheHint:n,scopeChallenge:o,...a}=r,s=a;if(n!==void 0&&xs(n,`resource ${e}`),typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);let c=this._createRegisteredResource(e,r.title,t,s,o,i);return n!==void 0&&(c.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let c=this._createRegisteredResourceTemplate(e,r.title,t,s,o,i);return n!==void 0&&(c.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}}_createRegisteredResource(e,t,r,i,n,o){let a={name:e,title:t,metadata:i,readCallback:o,scopeChallenge:n,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:s=>{s.uri!==void 0&&s.uri!==r&&(delete this._registeredResources[r],s.uri&&(this._registeredResources[s.uri]=a)),s.name!==void 0&&(a.name=s.name),s.metadata!==void 0&&(a.metadata=s.metadata),s.title!==void 0&&(a.title=s.title,a.metadata={...a.metadata,title:s.title}),s.callback!==void 0&&(a.readCallback=s.callback),s.scopeChallenge!==void 0&&(a.scopeChallenge=s.scopeChallenge===null?void 0:s.scopeChallenge),s.enabled!==void 0&&(a.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[r]=a,a}_createRegisteredResourceTemplate(e,t,r,i,n,o){let a={resourceTemplate:r,title:t,metadata:i,readCallback:o,scopeChallenge:n,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:c=>{c.name!==void 0&&c.name!==e&&(delete this._registeredResourceTemplates[e],c.name&&(this._registeredResourceTemplates[c.name]=a)),c.template!==void 0&&(a.resourceTemplate=c.template),c.metadata!==void 0&&(a.metadata=c.metadata),c.title!==void 0&&(a.title=c.title,a.metadata={...a.metadata,title:c.title}),c.callback!==void 0&&(a.readCallback=c.callback),c.scopeChallenge!==void 0&&(a.scopeChallenge=c.scopeChallenge===null?void 0:c.scopeChallenge),c.enabled!==void 0&&(a.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=a;let s=r.uriTemplate.variableNames;return Array.isArray(s)&&s.some(c=>!!r.completeCallback(c))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(e,t,r,i,n,o,a,s){let c=i,l=n,u={title:t,description:r,argsSchema:i,icons:o,scopeChallenge:a,_meta:s,handler:iz(e,i,n),enabled:!0,disable:()=>u.update({enabled:!1}),enable:()=>u.update({enabled:!0}),remove:()=>u.update({name:null}),update:m=>{m.name!==void 0&&m.name!==e&&(delete this._registeredPrompts[e],m.name&&(this._registeredPrompts[m.name]=u)),m.title!==void 0&&(u.title=m.title),m.description!==void 0&&(u.description=m.description),m.icons!==void 0&&(u.icons=m.icons),m.scopeChallenge!==void 0&&(u.scopeChallenge=m.scopeChallenge===null?void 0:m.scopeChallenge),m._meta!==void 0&&(u._meta=m._meta);let p=!1;m.argsSchema!==void 0&&(u.argsSchema=m.argsSchema,c=m.argsSchema,p=!0),m.callback!==void 0&&(l=m.callback,p=!0),p&&(u.handler=iz(e,c,l)),m.enabled!==void 0&&(u.enabled=m.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=u,i){let m=az(i);m&&Object.values(m).some(p=>OS(sz(p)))&&this.setCompletionRequestHandler()}return u}_createRegisteredTool(e,t,r,i,n,o,a,s,c,l,u){TS(e);let m=u,p,f={title:t,description:r,inputSchema:i,outputSchema:n,get outputSchemaJson(){return p??=rz(f.outputSchema)},set outputSchemaJson(h){p=h},annotations:o,icons:a,execution:s,scopeChallenge:c,_meta:l,handler:u,executor:tz(i,u),enabled:!0,disable:()=>f.update({enabled:!1}),enable:()=>f.update({enabled:!0}),remove:()=>f.update({name:null}),update:h=>{h.name!==void 0&&h.name!==e&&(typeof h.name=="string"&&TS(h.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],h.name&&(delete this._toolInputSchemaJson[h.name],this._registeredTools[h.name]=f,e=h.name)),h.title!==void 0&&(f.title=h.title),h.description!==void 0&&(f.description=h.description);let v=!1;h.paramsSchema!==void 0&&(f.inputSchema=h.paramsSchema,delete this._toolInputSchemaJson[e],v=!0),h.callback!==void 0&&(f.handler=h.callback,m=h.callback,v=!0),v&&(f.executor=tz(f.inputSchema,m)),h.outputSchema!==void 0&&(f.outputSchema=h.outputSchema,f.outputSchemaJson=rz(h.outputSchema)),h.annotations!==void 0&&(f.annotations=h.annotations),h.icons!==void 0&&(f.icons=h.icons),h.scopeChallenge!==void 0&&(f.scopeChallenge=h.scopeChallenge===null?void 0:h.scopeChallenge),h._meta!==void 0&&(f._meta=h._meta),h.enabled!==void 0&&(f.enabled=h.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=f,this.setToolRequestHandlers(),this.sendToolListChanged(),f}registerTool(e,t,r){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:i,description:n,inputSchema:o,outputSchema:a,annotations:s,icons:c,scopeChallenge:l,_meta:u}=t;return this._createRegisteredTool(e,i,n,bm(o),bm(a),s,c,void 0,l,u,r)}registerPrompt(e,t,r){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:i,description:n,argsSchema:o,icons:a,scopeChallenge:s,_meta:c}=t,l=this._createRegisteredPrompt(e,i,n,bm(o),r,a,s,c);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),l}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}},US=class{_uriTemplate;constructor(e,t){this._callbacks=t,this._uriTemplate=typeof e=="string"?new xS(e):e}get uriTemplate(){return this._uriTemplate}get listCallback(){return this._callbacks.list}completeCallback(e){return this._callbacks.complete?.[e]}};function tz(e,t){if(e){let i=t;return async(n,o)=>i(n,o)}let r=t;return async(i,n)=>r(n)}var nz={type:"object",properties:{}};function HA(e,t){let r=Kr(t,"input"),i=Sm(r);return i.valid||console.warn(`[mcp-sdk] tool \'${e}\' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${i.reason}`),r}function rz(e){if(e!==void 0)try{return Kr(e,"output")}catch{return}}function iz(e,t,r){if(t){let i=r;return async(n,o)=>{let a=await qr(t,n??{});if(!a.success)throw new j(O.InvalidParams,`Invalid arguments for prompt ${e}: ${a.error}`);return i(a.data,o)}}else{let i=r;return async(n,o)=>i(o)}}function oz(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}var Ns={completion:{values:[],hasMore:!1}};function az(e){let t=e;if(t.shape&&typeof t.shape=="object")return t.shape}function YA(e){return e?.type==="optional"}function sz(e){return YA(e)?e.def?.innerType??e:e}var $z=class{_listeners=new Set;constructor(e){this.onerror=e}publish(e){for(let t of this._listeners)try{t(e)}catch(r){this.onerror?.(r instanceof Error?r:new Error(String(r)))}}subscribe(e){this._listeners.add(e);let t=!0;return()=>{t&&(t=!1,this._listeners.delete(e))}}get listenerCount(){return this._listeners.size}};function kz(e){return{toolsChanged:()=>e.publish({kind:"tools_list_changed"}),promptsChanged:()=>e.publish({kind:"prompts_list_changed"}),resourcesChanged:()=>e.publish({kind:"resources_list_changed"}),resourceUpdated:t=>e.publish({kind:"resource_updated",uri:t})}}function GA(e,t){switch(t.kind){case"tools_list_changed":return e.toolsListChanged===!0;case"prompts_list_changed":return e.promptsListChanged===!0;case"resources_list_changed":return e.resourcesListChanged===!0;case"resource_updated":return e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.includes(t.uri)}}function WA(e,t){let r={},i=n=>t===void 0||n===!0;return e.toolsListChanged===!0&&i(t?.tools?.listChanged)&&(r.toolsListChanged=!0),e.promptsListChanged===!0&&i(t?.prompts?.listChanged)&&(r.promptsListChanged=!0),e.resourcesListChanged===!0&&i(t?.resources?.listChanged)&&(r.resourcesListChanged=!0),e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.length>0&&i(t?.resources?.subscribe)&&(r.resourceSubscriptions=[...e.resourceSubscriptions]),r}function XA(e){switch(e.kind){case"tools_list_changed":return{method:"notifications/tools/list_changed",...e.params!==void 0&&{params:e.params}};case"prompts_list_changed":return{method:"notifications/prompts/list_changed",...e.params!==void 0&&{params:e.params}};case"resources_list_changed":return{method:"notifications/resources/list_changed",...e.params!==void 0&&{params:e.params}};case"resource_updated":return{method:"notifications/resources/updated",params:{...e.params,uri:e.uri}}}}var LS=1024;function _z(e,t,r){return Response.json({jsonrpc:"2.0",error:{code:t,message:r},id:e},{status:200})}function bz(e,t){return{method:e.method,params:{...e.params,_meta:{...e.params?._meta,[jr]:t}}}}function QA(e){let t=bn(Ps).validateRequest("subscriptions/listen",e);return t.ok?t.value.params?.notifications:void 0}function Rz(e){let{bus:t,onerror:r}=e,i=e.maxSubscriptions??LS,n=e.keepAliveMs??po,o=new Set;function a(s,c,l,u){if(o.size>=i)return r?.(new Error(`subscriptions/listen refused: subscription limit reached (${i})`)),_z(s.id,-32603,"Subscription limit reached");let m=QA(s);if(m===void 0)return _z(s.id,-32602,"Invalid params: \'notifications\' is required and must be a valid SubscriptionFilter");let p=WA(m,l),f=s.id,h=new TextEncoder,v,y=!1,R,w,E,D=ie=>{if(!y)try{v.enqueue(h.encode(ie))}catch(Y){r?.(Y instanceof Error?Y:new Error(String(Y)))}},F=(ie,Y)=>{D(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",method:ie,params:Y})}\n\n`)},N=ie=>{if(!y){ie&&D(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",id:f,result:{resultType:"complete",_meta:{[jr]:f,[tn]:u}}})}\n\n`),y=!0;try{R?.()}catch(Y){r?.(Y instanceof Error?Y:new Error(String(Y)))}w!==void 0&&clearInterval(w),E?.(),o.delete(N);try{v.close()}catch{}}},te=new ReadableStream({start(ie){v=ie;let Y=bz({method:"notifications/subscriptions/acknowledged",params:{notifications:p}},f);if(F(Y.method,Y.params),Object.keys(p).length===0){N(!0);return}R=t.subscribe(ye=>{if(y||!GA(p,ye))return;let be=bz(XA(ye),f);F(be.method,be.params)}),w=As(n,()=>D(`: keepalive\n\n`)),o.add(N)},cancel(){N(!1)}});if(c!==void 0)if(c.aborted)N(!1);else{let ie=()=>N(!1);c.addEventListener("abort",ie,{once:!0}),E=()=>c.removeEventListener("abort",ie)}return new Response(te,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}})}return{serve:a,closeAll(){for(let s of o)s(!0)},get openCount(){return o.size}}}async function ej(e,t,r){let i=new CS({classification:r.classification,...r.responseMode!==void 0&&{responseMode:r.responseMode},...r.keepAliveMs!==void 0&&{keepAliveMs:r.keepAliveMs}});return await e.connect(i),i.handleMessage(t,{...r.request!==void 0&&{request:r.request},...r.authInfo!==void 0&&{authInfo:r.authInfo}})}var MS=4*1024*1024,DS=100;function zz(e){return`Payload Too Large: Request body must not exceed ${e} bytes`}function qS(e){if(e===void 0)return MS;if(typeof e!="number"||!Number.isFinite(e)||e<=0)throw new RangeError(`maxRequestBodySize must be a positive number of bytes, got ${String(e)}`);return e}async function Iz(e,t=MS){if(Number(e.headers.get("content-length"))>t)return{tooLarge:!0};if(e.body===null)return{tooLarge:!1,text:""};let r=e.body.getReader(),i=new TextDecoder,n=0,o="";try{for(;;){let{done:a,value:s}=await r.read();if(a)break;if(n+=s.byteLength,n>t)return{tooLarge:!0};o+=i.decode(s,{stream:!0})}}finally{r.releaseLock()}return{tooLarge:!1,text:o+i.decode()}}var VS=class{sessionIdGenerator;_started=!1;_hasHandledRequest=!1;_closed=!1;_streamMapping=new Map;_requestToStreamMapping=new Map;_requestResponseMap=new Map;_initialized=!1;_enableJsonResponse=!1;_standaloneSseStreamId="_GET_stream";_eventStore;_onsessioninitialized;_onsessionclosed;_allowedHosts;_allowedOrigins;_enableDnsRebindingProtection;_retryInterval;_supportedProtocolVersions;_keepAliveMs;_maxRequestBodySize;_scopeChallengeResolver;sessionId;onclose;onerror;onmessage;constructor(e={}){this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=e.enableJsonResponse??!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=e.enableDnsRebindingProtection??!1,this._retryInterval=e.retryInterval,this._supportedProtocolVersions=e.supportedProtocolVersions??Ha,this._keepAliveMs=e.keepAliveMs??po,this._maxRequestBodySize=qS(e.maxRequestBodySize)}startKeepAlive(e,t){if(this._closed)return;let r=As(this._keepAliveMs,()=>{try{e.enqueue(t.encode(`: keepalive\n\n`))}catch{r!==void 0&&clearInterval(r)}});return r}setScopeChallengeResolver(e){this._scopeChallengeResolver=e}async start(){if(this._started)throw new Error("Transport already started");this._started=!0}setSupportedProtocolVersions(e){this._supportedProtocolVersions=e}createJsonErrorResponse(e,t,r,i){let n={code:t,message:r};return i?.data!==void 0&&(n.data=i.data),Response.json({jsonrpc:"2.0",error:n,id:null},{status:e,headers:{"Content-Type":"application/json",...i?.headers}})}async _checkScopeChallenge(e,t){if(!this._scopeChallengeResolver)return;let r=await NS(e.filter(i=>Dt(i)),t,this._scopeChallengeResolver);return r===void 0?void 0:jS(r,AS(t))}validateRequestHeaders(e){if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let t=e.headers.get("host");if(!t||!this._allowedHosts.includes(t)){let r=`Invalid Host header: ${t}`;return this.onerror?.(new Error(r)),this.createJsonErrorResponse(403,-32e3,r)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let t=e.headers.get("origin");if(t&&!this._allowedOrigins.includes(t)){let r=`Invalid Origin header: ${t}`;return this.onerror?.(new Error(r)),this.createJsonErrorResponse(403,-32e3,r)}}}}async handleRequest(e,t){if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");if(!this.sessionIdGenerator&&this._hasHandledRequest)throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");this._hasHandledRequest=!0;let r=this.validateRequestHeaders(e);if(r)return r;switch(e.method){case"POST":return this.handlePostRequest(e,t);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}supportsEmptySSEData(e){return this._supportedProtocolVersions.includes(e)&&e>="2025-11-25"}async writePrimingEvent(e,t,r,i){if(!this._eventStore||!this.supportsEmptySSEData(i))return;let n=await this._eventStore.storeEvent(r,{}),o=`id: ${n}\ndata: \n\n`;this._retryInterval!==void 0&&(o=`id: ${n}\nretry: ${this._retryInterval}\ndata: \n\n`),e.enqueue(t.encode(o))}async handleGetRequest(e){if(!e.headers.get("accept")?.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let t=this.validateSession(e);if(t)return t;let r=this.validateProtocolVersion(e);if(r)return r;if(this._eventStore){let c=e.headers.get("last-event-id");if(c)return this.replayEvents(c)}if(this._streamMapping.get(this._standaloneSseStreamId)!==void 0)return this.onerror?.(new Error("Conflict: Only one SSE stream is allowed per session")),this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let i=new TextEncoder,n,o,a=new ReadableStream({start:c=>{n=c},cancel:()=>{o!==void 0&&clearInterval(o),this._streamMapping.get(this._standaloneSseStreamId)?.controller===n&&this._streamMapping.delete(this._standaloneSseStreamId)}}),s={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};return this.sessionId!==void 0&&(s["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:n,encoder:i,cleanup:()=>{o!==void 0&&clearInterval(o),this._streamMapping.delete(this._standaloneSseStreamId);try{n.close()}catch{}}}),o=this.startKeepAlive(n,i),new Response(a,{headers:s})}async replayEvents(e){if(!this._eventStore)return this.onerror?.(new Error("Event store not configured")),this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let t;if(this._eventStore.getStreamIdForEventId){if(t=await this._eventStore.getStreamIdForEventId(e),!t)return this.onerror?.(new Error("Invalid event ID format")),this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(this._streamMapping.get(t)!==void 0)return this.onerror?.(new Error("Conflict: Stream already has an active connection")),this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let r={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(r["mcp-session-id"]=this.sessionId);let i=new TextEncoder,n,o,a=!1,s,c=new ReadableStream({start:u=>{n=u},cancel:()=>{a=!0,o!==void 0&&clearInterval(o),s!==void 0&&this._streamMapping.get(s)?.controller===n&&this._streamMapping.delete(s)}}),l=new Set;if(s=await this._eventStore.replayEventsAfter(e,{send:async(u,m)=>{if(l.add(u),!this.writeSSEEvent(n,i,m,u))try{n.close()}catch{}}}),this._closed||a){try{n.close()}catch{}return this.createJsonErrorResponse(404,-32001,"Session not found")}if(this._streamMapping.get(s)?.cleanup(),this._streamMapping.set(s,{controller:n,encoder:i,replayedEventIds:l,cleanup:()=>{o!==void 0&&clearInterval(o),this._streamMapping.delete(s);try{n.close()}catch{}}}),s!==this._standaloneSseStreamId&&![...this._requestToStreamMapping.values()].includes(s)){this._streamMapping.delete(s);try{n.close()}catch{}}return this._streamMapping.get(s)?.controller===n&&(o=this.startKeepAlive(n,i)),new Response(c,{headers:r})}catch(t){return this.onerror?.(t),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,t,r,i){try{let n=`event: message\n`;return i&&(n+=`id: ${i}\n`),n+=`data: ${JSON.stringify(r)}\n\n`,e.enqueue(t.encode(n)),!0}catch(n){return this.onerror?.(n),!1}}handleUnsupportedRequest(){return this.onerror?.(new Error("Method not allowed.")),Response.json({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null},{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,t){try{let r=e.headers.get("accept");if(!r?.includes("application/json")||!r.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept both application/json and text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");if(!IS(e.headers.get("content-type")))return this.onerror?.(new Error("Unsupported Media Type: Content-Type must be application/json")),this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let i=e,n;if(t?.parsedBody===void 0)try{let y=await Iz(e,this._maxRequestBodySize);if(y.tooLarge){let R=zz(this._maxRequestBodySize);return this.onerror?.(new Error(R)),this.createJsonErrorResponse(413,-32e3,R)}n=JSON.parse(y.text)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}else n=t.parsedBody;if(Array.isArray(n)&&n.length>DS)return this.onerror?.(new Error(`Invalid Request: Batch must not exceed ${DS} messages`)),this.createJsonErrorResponse(400,-32600,`Invalid Request: Batch must not exceed ${DS} messages`);let o;try{o=Array.isArray(n)?n.map(y=>Xi.parse(y)):[Xi.parse(n)]}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let a=o.some(y=>vS(y));if(a){if(this._initialized&&this.sessionId!==void 0)return this.onerror?.(new Error("Invalid Request: Server already initialized")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(o.length>1)return this.onerror?.(new Error("Invalid Request: Only one initialization request is allowed")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=this.sessionIdGenerator?.(),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!a){let y=this.validateSession(e);if(y)return y;let R=this.validateProtocolVersion(e);if(R)return R}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let s;try{s=await this._checkScopeChallenge(o,t?.authInfo)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(500,-32603,"Internal server error")}if(s)return s;if(!o.some(y=>Dt(y))){for(let y of o)this.onmessage?.(y,{authInfo:t?.authInfo,request:i});return new Response(null,{status:202})}let c=crypto.randomUUID(),l=o.find(y=>vS(y)),u=l?l.params.protocolVersion:e.headers.get("mcp-protocol-version")??bu;if(this._enableJsonResponse)return new Promise(y=>{this._streamMapping.set(c,{resolveJson:y,cleanup:()=>{this._streamMapping.delete(c)}});for(let R of o)Dt(R)&&this._requestToStreamMapping.set(R.id,c);for(let R of o)this.onmessage?.(R,{authInfo:t?.authInfo,request:i})});let m=new TextEncoder,p,f,h=new ReadableStream({start:y=>{p=y},cancel:()=>{f!==void 0&&clearInterval(f),this._streamMapping.get(c)?.controller===p&&this._streamMapping.delete(c)}}),v={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(v["mcp-session-id"]=this.sessionId);for(let y of o)Dt(y)&&(this._streamMapping.set(c,{controller:p,encoder:m,cleanup:()=>{f!==void 0&&clearInterval(f),this._streamMapping.delete(c);try{p.close()}catch{}}}),this._requestToStreamMapping.set(y.id,c));await this.writePrimingEvent(p,m,c,u);for(let y of o){let R,w;Dt(y)&&this._eventStore&&this.supportsEmptySSEData(u)&&(R=()=>{this.closeSSEStream(y.id)},w=()=>{this.closeStandaloneSSEStream()}),this.onmessage?.(y,{authInfo:t?.authInfo,request:i,closeSSEStream:R,closeStandaloneSSEStream:w})}return this._streamMapping.get(c)?.controller===p&&(f=this.startKeepAlive(p,m)),new Response(h,{status:200,headers:v})}catch(r){return this.onerror?.(r),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(r)})}}async handleDeleteRequest(e){let t=this.validateSession(e);if(t)return t;let r=this.validateProtocolVersion(e);if(r)return r;try{return await Promise.resolve(this._onsessionclosed?.(this.sessionId)),new Response(null,{status:200})}finally{await this.close()}}validateSession(e){if(this.sessionIdGenerator===void 0)return;if(!this._initialized)return this.onerror?.(new Error("Bad Request: Server not initialized")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let t=e.headers.get("mcp-session-id");if(!t)return this.onerror?.(new Error("Bad Request: Mcp-Session-Id header is required")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required");if(t!==this.sessionId)return this.onerror?.(new Error("Session not found")),this.createJsonErrorResponse(404,-32001,"Session not found")}validateProtocolVersion(e){let t=e.headers.get("mcp-protocol-version");if(t!==null&&!this._supportedProtocolVersions.includes(t)){let r=`Bad Request: Unsupported protocol version: ${t} (supported versions: ${this._supportedProtocolVersions.join(", ")})`;return this.onerror?.(new Error(r)),this.createJsonErrorResponse(400,-32e3,r)}}async close(){if(!this._closed){this._closed=!0;for(let{cleanup:e}of this._streamMapping.values())e();this._streamMapping.clear(),this._requestResponseMap.clear(),this.onclose?.()}}closeSSEStream(e){let t=this._requestToStreamMapping.get(e);if(!t)return;let r=this._streamMapping.get(t);r&&r.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,t){let r=t?.relatedRequestId;if((rn(e)||on(e))&&(r=e.id),r===void 0){if(rn(e)||on(e))throw new Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");let o;this._eventStore&&(o=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let a=this._streamMapping.get(this._standaloneSseStreamId);if(a===void 0)return;a.controller&&a.encoder&&(o===void 0||!a.replayedEventIds?.has(o))&&this.writeSSEEvent(a.controller,a.encoder,e,o);return}let i=this._requestToStreamMapping.get(r);if(!i)throw new Error(`No connection established for request ID: ${String(r)}`);let n=this._streamMapping.get(i);if(!this._enableJsonResponse){let o;this._eventStore&&(o=await this._eventStore.storeEvent(i,e),n=this._streamMapping.get(i)),n?.controller&&n?.encoder&&(o===void 0||!n.replayedEventIds?.has(o))&&this.writeSSEEvent(n.controller,n.encoder,e,o)}if(rn(e)||on(e)){this._requestResponseMap.set(r,e);let o=[...this._requestToStreamMapping.entries()].filter(([a,s])=>s===i).map(([a])=>a);if(o.every(a=>this._requestResponseMap.has(a))){if(!n){if(this._enableJsonResponse)throw new Error(`No connection established for request ID: ${String(r)}`);if(!this._eventStore){this.onerror?.(new Error(`Response for request ID ${String(r)} is undeliverable: per-request stream is disconnected and no eventStore is configured`));for(let a of o)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}for(let a of o)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}if(this._enableJsonResponse&&n.resolveJson){let a={"Content-Type":"application/json"};this.sessionId!==void 0&&(a["mcp-session-id"]=this.sessionId);let s=o.map(c=>this._requestResponseMap.get(c));s.length===1?n.resolveJson(Response.json(s[0],{status:200,headers:a})):n.resolveJson(Response.json(s,{status:200,headers:a})),n.cleanup()}else n.cleanup();for(let a of o)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a)}}}};function tr(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let{method:t,id:r}=e;return typeof t!="string"?null:typeof r=="string"||typeof r=="number"?r:null}function kn(e,t,r,i,n=null){return Response.json({jsonrpc:"2.0",error:{code:t,message:r,...i!==void 0&&{data:i}},id:n},{status:e,...e===405&&{headers:{Allow:"POST"}}})}function Rm(e,t=null){return kn(e.httpStatus,e.code,e.message,e.data,t)}function js(e){return e instanceof Error?e:new Error(String(e))}function Us(e=null){return kn(500,-32603,"Internal server error",void 0,e)}function wz(e){if(e.transport!==void 0)throw new Error("The factory returned an instance that is still serving another request. Return a new instance for each request.")}function tj(e,t,r,i){return async(n,o)=>{if(n.method.toUpperCase()!=="POST")return kn(405,-32e3,"Method not allowed.");try{let a=await e({era:"legacy",...o?.authInfo!==void 0&&{authInfo:o.authInfo},requestInfo:n}),s=new VS({sessionIdGenerator:void 0,...r!==void 0&&{keepAliveMs:r},...i!==void 0&&{maxRequestBodySize:i}});await a.connect(s);let c=()=>{s.close().catch(()=>{}),a.close().catch(()=>{})};n.signal?.addEventListener("abort",c,{once:!0});let l=await s.handleRequest(n,{...o?.authInfo!==void 0&&{authInfo:o.authInfo},...o?.parsedBody!==void 0&&{parsedBody:o.parsedBody}});if(l.body===null||zS(l.headers.get("content-type"))!=="text/event-stream")return c(),l;let u=l.body.getReader(),m=!1,p=()=>{m||(m=!0,c())},f=new ReadableStream({pull:async h=>{try{let{done:v,value:y}=await u.read();if(v){p(),h.close();return}y!==void 0&&h.enqueue(y)}catch(v){p(),h.error(v)}},cancel:h=>(p(),u.cancel(h).catch(()=>{}))});return new Response(f,{status:l.status,statusText:l.statusText,headers:l.headers})}catch(a){try{t?.(js(a))}catch{}return Us(tr(o?.parsedBody))}}}function Tz(e){return{protocolVersionHeader:e.headers.get("mcp-protocol-version")??void 0,mcpMethodHeader:e.headers.get("mcp-method")??void 0,mcpNameHeader:e.headers.get("mcp-name")??void 0}}async function xz(e,t,r=!0,i=MS){let n=e.method.toUpperCase(),o,a=t,s=e,c=!1;if(n==="POST"){if(a===void 0){r&&(s=e.clone());let l;try{let u=await Iz(e,i);if(u.tooLarge)return{step:"body-too-large"};l=u.text}catch{return{step:"unreadable-body"}}try{o=l.length===0?void 0:JSON.parse(l)}catch{c=!0}!c&&o!==void 0&&(a=o)}else o=a;if(c||o===void 0)return{step:"no-json-body",forwardRequest:s}}return{step:"classified",outcome:Uw({httpMethod:n,...Tz(e),...o!==void 0&&{body:o}}),body:o,parsedBody:a,forwardRequest:s}}async function Ez(e,t,r){let i=qS(r?.maxRequestBodySize),n=await xz(t===void 0&&e.method.toUpperCase()==="POST"?e.clone():e,t,!1,i);return n.step==="no-json-body"||n.step==="classified"&&n.outcome.kind==="legacy"}function Pz(e,t={}){let{legacy:r,onerror:i,responseMode:n}=t,o=qS(t.maxRequestBodySize);if(typeof r=="function")throw new TypeError("The \'legacy\' option only accepts \'stateless\' or \'reject\', not a handler function. To serve 2025-era traffic with your own handler, route in user land with the exported isLegacyRequest(request) predicate in front of a strict (legacy: \'reject\') handler.");let a=new Set,s=!1,c=R=>{try{i?.(R)}catch{}},l=t.bus??new $z(c),u=kz(l),m=Rz({bus:l,maxSubscriptions:t.maxSubscriptions??LS,keepAliveMs:t.keepAliveMs??po,onerror:c});n==="json"&&console.warn("responseMode: \'json\' drops mid-call notifications. subscriptions/listen streams are always served over SSE regardless; other notifications emitted before a result are dropped.");let p=r==="reject"?void 0:tj(e,c,t.keepAliveMs,o);async function f(R,w,E){let D=R.classification.revision;if(D===void 0||!Zr.includes(D)){let ce=new gm({supported:[...Zr],requested:D??"unknown"});return c(ce),kn(400,ce.code,ce.message,ce.data,tr(R.message))}let F=Aw({httpMethod:w.method,...Tz(w)},R);if(F!==void 0)return c(new Error(`Rejected inbound request (${F.cell}): ${F.message}`)),Rm(F,tr(R.message));let N=R.messageKind==="request"?Qn(R.message.params):void 0,te=N?.[nn];if(R.messageKind==="request"){let ce=pw(R.message.method);if(ce!==void 0){let Ie=Ts(ce,te);if(Ie!==void 0){let Pe=new Es({requiredCapabilities:Ie});return c(Pe),kn(Nw(Pe.code,"ladder"),Pe.code,Pe.message,Pe.data,R.message.id)}}}let ie=await e({era:"modern",...E!==void 0&&{authInfo:E},requestInfo:w}),Y=ie instanceof fo?ie.server:ie;if(wz(Y),R.messageKind==="request"&&R.message.method==="subscriptions/listen"){let ce=Y.getCapabilities(),Ie=yz(Y);return ie.close().catch(c),m.serve(R.message,w.signal,ce,Ie)}if(R.messageKind==="request"&&R.message.method==="tools/call"&&ie instanceof fo){let ce=R.message.params,Ie=typeof ce?.name=="string"?ce.name:void 0,Pe=Ie===void 0?void 0:ie.toolInputSchemaJson(Ie);if(Pe!==void 0){let De=Sm(Pe);if(De.declarations!==void 0&&De.declarations.length>0){let Je=Cw(De.declarations,ce?.arguments,w.headers);if(Je!==void 0)return ie.close().catch(c),c(new Error(`Rejected inbound request (${Je.cell}): ${Je.message}`)),Rm(Je,R.message.id)}}}if(R.messageKind==="request"&&ie instanceof fo)try{let ce=await NS([R.message],E,Ie=>ie.resolveScopeChallenge(Ie));if(ce!==void 0)return ie.close().catch(c),jS(ce,AS(E))}catch(ce){return ie.close().catch(c),c(js(ce)),Us(R.message.id)}wz(Y),Gw(Y,D),vz(Y,Zr),N!==void 0&&gz(Y,{clientInfo:N[Ar],clientCapabilities:te});let ye=Y.onclose;a.add(Y);let be=()=>{a.delete(Y),Y.onclose===be&&(Y.onclose=ye),ye?.()};Y.onclose=be;try{let ce=await ej(ie,R.message,{classification:R.classification,request:w,...E!==void 0&&{authInfo:E},...n!==void 0&&{responseMode:n},...t.keepAliveMs!==void 0&&{keepAliveMs:t.keepAliveMs}});return R.messageKind==="notification"&&queueMicrotask(()=>{Y.close().catch(()=>{})}),ce}catch(ce){return ce instanceof re&&ce.code===se.ConnectionClosed?new Response(null,{status:499}):(await Y.close().catch(()=>{}),a.delete(Y),c(js(ce)),Us(tr(R.message)))}}async function h(R,w,E,D){if(p!==void 0)return p(w,{...E!==void 0&&{authInfo:E},...D!==void 0&&{parsedBody:D}});let F=Lw(R,Zr);return F===void 0?new Response(null,{status:202}):(c(new Error(`Rejected 2025-era request on a modern-only endpoint (${F.cell}): ${F.message}`)),Rm(F,tr(D)))}async function v(R,w){let E=w?.authInfo;if(R.method.toUpperCase()==="POST"&&!IS(R.headers.get("content-type")))return c(new Error("Unsupported Media Type: Content-Type must be application/json")),kn(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let D=await xz(R,w?.parsedBody,!0,o);if(D.step==="unreadable-body")return kn(400,-32700,"Parse error: the request body could not be read");if(D.step==="body-too-large")return kn(413,-32e3,zz(o));if(D.step==="no-json-body")return p!==void 0?p(D.forwardRequest,{...E!==void 0&&{authInfo:E}}):kn(400,-32700,"Parse error: the request body is not valid JSON");let{outcome:F,body:N,parsedBody:te,forwardRequest:ie}=D;try{switch(F.kind){case"reject":return c(new Error(`Rejected inbound request (${F.cell}): ${F.message}`)),Rm(F,tr(N));case"modern":return await f(F,R,E);case"legacy":return await h(F,ie,E,te)}}catch(Y){return c(js(Y)),Us(tr(N))}}return{fetch:async(R,w)=>{if(s)throw new Error("This MCP handler has been closed");try{return await v(R,w)}catch(E){return c(js(E)),Us(tr(w?.parsedBody))}},notify:u,bus:l,close:async()=>{s=!0,m.closeAll();let R=[...a].map(w=>w.close().catch(()=>{}));a.clear(),await Promise.all(R)}}}function ZS(e){return/^Bearer\\s+(.+)$/i.exec(e.headers.get("authorization")?.trim()??"")?.[1]?.trim()||null}function Oz(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=atob(t+"=".repeat((4-t.length%4)%4));return Uint8Array.from(r,i=>i.charCodeAt(0))}function nj(e){let t=e.replace(/-----(BEGIN|END)[^-]+-----/g,"").replace(/\\s+/g,"");return Uint8Array.from(atob(t),r=>r.charCodeAt(0))}var Cz=new Map;function Nz(e){let t=Cz.get(e);return t||(t=crypto.subtle.importKey("spki",nj(e),{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"]),Cz.set(e,t)),t}function Az(e,t,r){if(!e||!t)return null;let i=Number(t);return Number.isFinite(i)&&i>r?e:null}function jz(e,t){return typeof e=="string"?e===t:Array.isArray(e)&&e.some(r=>r===t)}function rj(e,t){return typeof t=="string"?e===t:t.some(r=>r===e)}async function FS(e,t){let[r,i,n]=e.split(".");if(!r||!i||!n)throw new Error("malformed");let o=Oz(n),a=new TextEncoder().encode(`${r}.${i}`),s=await crypto.subtle.verify("RSASSA-PKCS1-v1_5",await Nz(t.publicKey),o,a),c=s?null:Az(t.previousKey,t.previousKeyUntil,Date.now());if(c&&(s=await Nz(c).then(p=>crypto.subtle.verify("RSASSA-PKCS1-v1_5",p,o,a)).catch(()=>!1)),!s)throw new Error("signature");let l=JSON.parse(new TextDecoder().decode(Oz(i))),u=Math.floor(Date.now()/1e3);if(!(jz(l.aud,t.audience)&&l.iss===t.issuer&&l.serverId===t.serverId&&rj(l.accessMode,t.accessMode)&&typeof l.exp=="number"&&l.exp>u&&typeof l.iat=="number"&&typeof l.jti=="string"&&typeof l.sub=="string"))throw new Error("claims");return{sub:l.sub,clientName:typeof l.clientName=="string"?l.clientName:null,connection:typeof l.connection=="string"?l.connection:null,clientUrl:typeof l.clientUrl=="string"&&l.clientUrl.startsWith("https://")?l.clientUrl:null,readOnly:l.readOnly===!0}}var Uz={response:null,userId:null,token:null,clientName:null,connection:null,clientUrl:null,readOnly:!1};function KS(e,t,r){return{...Uz,response:Response.json({error:t,message:r},{status:e})}}function Lz(e){return e==="public"?{protected:!1,summary:"This MCP endpoint is public."}:e==="users"?{protected:!0,summary:"This MCP endpoint requires signing in to its API."}:{protected:!0,summary:"This MCP endpoint requires a Sokie runtime token."}}async function Dz(e,t){if(t.accessMode==="public")return Uz;if(!t.auth)return KS(500,"runtime_auth_misconfigured","Runtime auth is not configured for this deployment.");let r=ZS(e);if(!r)return KS(401,"runtime_auth_required","This MCP endpoint requires a Sokie runtime token.");try{let{sub:i,...n}=await FS(r,{...t.auth,accessMode:t.accessMode});return{response:null,userId:i,token:r,...n}}catch{return KS(401,"runtime_auth_invalid","This MCP endpoint requires a valid Sokie runtime token.")}}var Mz=new WeakMap;function qz(e){return Mz.get(e)??null}function sn(e){let t=e?.trim();return t||null}function wm(e,t){let r=sn(e[t]);if(!r)throw new Error(`This deployment is missing ${t}. Redeploy the server.`);return r}function BS(e){let t=sn(e.SOKIE_ACCESS_MODE);return t==="private"||t==="users"?t:"public"}function Vz(e,t){let r=BS(t),i={bundle:e,baseUrl:sn(t.SOKIE_UPSTREAM_BASE_URL)??e.baseUrl??"",accessMode:r,auth:r!=="public"?{serverId:wm(t,"SOKIE_SERVER_ID"),issuer:wm(t,"SOKIE_AUTH_ISSUER"),audience:wm(t,"SOKIE_AUTH_AUDIENCE"),publicKey:wm(t,"SOKIE_AUTH_PUBLIC_KEY"),previousKey:sn(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS),previousKeyUntil:sn(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS_UNTIL)}:null,platformUrl:sn(t.SOKIE_PLATFORM_URL),connectUrl:sn(t.SOKIE_CONNECT_URL),secret:s=>s.startsWith("SOKIE_")?null:sn(t[s]),policy:null,policyText:null},n=sn(t.SOKIE_POLICY),o=Jo(n);o&&(i.policy=o,i.policyText=n);let a=sn(t.SOKIE_PLATFORM_TOKEN);return a&&Mz.set(i,a),i}function Zz(e={}){return{userId:null,runtimeToken:null,clientName:null,connection:null,clientUrl:null,readOnly:!1,policy:null,policyText:null,era:"legacy",projection:{preBytes:0,postBytes:0,applied:!1},call:{tool:null,isError:!1,errorClass:null,upstreamStatus:null},...e}}function Ls(e){let t=e.effect??(e.annotations?.readOnlyHint?"read":"external_effect");return{name:e.name,effect:t,area:e.area??e.tags?.[0]??""}}function zm(e,t,r){return tp(t.policy,Ls(r),{publicServer:e.accessMode==="public",readOnly:t.readOnly})}function ij(e,t,r){let i=Ls(r);return t.readOnly&&i.effect!=="read"?"readOnly":(t.policy?fc(t.policy,i):"allow")==="off"?"off":e.accessMode==="public"?"nobodyToAsk":"ask"}var JS="Its owner sets what agents may do in Sokie.";function oj(e,t,r){switch(e){case"readOnly":return r?`This connection is read only, so ${t} isn\'t available to it. The person who connected it can change that on their agents page for this server.`:`This connection is read only, so ${t} isn\'t available to it. The person who connected it can change that in Sokie, under Settings \\u203A Connected clients.`;case"off":return`Agents can\'t use ${t} on this server. ${JS}`;case"nobodyToAsk":return`${t} needs a person\'s OK first, and this server is public, so there\'s nobody to ask. ${JS}`;case"ask":return`${t} needs the OK of the person you act for before it runs. ${JS}`}}function Im(e,t,r){let i=ij(e,t,r),n=oj(i,r.name,e.accessMode==="users");return{content:[{type:"text",text:n}],isError:!0,_meta:{error:n,errorClass:"POLICY_DENIED",retryable:!1,policy:i}}}var Fz=new WeakMap,aj=8;function HS(e,t){let r=e.bundle.tools;if(!t.policy&&!t.readOnly)return r;let i=`${t.policyText??""}|${e.accessMode}|${t.readOnly?"r":"a"}`,n=Fz.get(r);n||(n=new Map,Fz.set(r,n));let o=n.get(i);if(o)return o;let a=Object.freeze(r.filter(s=>zm(e,t,s)!=="off"));if(n.size>=aj){let s=n.keys().next().value;s!==void 0&&n.delete(s)}return n.set(i,a),a}async function Kz(e,t,r){if(!r.policy&&!r.readOnly)return null;let i;try{i=await e.clone().json()}catch{return null}if(i?.method!=="tools/call"||typeof i.params?.name!="string")return null;let n=i.params.name,o=t.bundle.tools.find(s=>s.name===n);if(!o||zm(t,r,o)!=="off")return null;let a=typeof i.id=="string"||typeof i.id=="number"?i.id:null;return{response:Response.json({jsonrpc:"2.0",id:a,result:Im(t,r,o)}),tool:o.name}}var sj=new Map([["oauth_connection_revoked","The upstream account for this server was disconnected. Reconnect it in Sokie to use this tool."],["oauth_refresh_failed","The upstream account for this server could not be refreshed. Reconnect it in Sokie to use this tool."],["oauth_refresh_token_missing","The upstream account for this server cannot be refreshed. Reconnect it in Sokie to use this tool."],["caller_blocked","This server\'s owner has stopped your access to it. Ask them if you think that\'s a mistake."],["caller_sign_in_required","Your sign-in to this server\'s API has ended. Connect it again from your agent, and sign in when it asks."],["credential_rate_limited","Too many credential requests for this server. Wait a moment and retry."],["caller_key_missing","No key for this API in sokie dev. Set SOKIE_CALLER_KEY in .sokie/dev.env, then call the tool again."],["deployment_credential_invalid","Sokie refused this server\'s credential request. Redeploy the server if this keeps happening."]]);function nr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function GS(e,t){let r=nr(e)&&nr(e.error)?e.error.code:null;return typeof r=="string"&&sj.get(r)||t}function Bz(e){if(!nr(e)||!nr(e.elicitation))return null;let{url:t,message:r,elicitationId:i}=e.elicitation;if(typeof t!="string"||!t)return null;let n=typeof r=="string"&&r?r:"Authorization is required to use this tool.",o=typeof i=="string"?i:"",a=n.includes(t)?n:`${n} Open ${t}`;return new j(-32042,a,{elicitations:[{mode:"url",message:n,url:t,elicitationId:o}]})}async function WS(e,t,r){let i=qz(e);if(!e.platformUrl||!i)throw new Error("This deployment cannot reach Sokie for credentials. Redeploy the server.");let n=await fetch(`${e.platformUrl.replace(/\\/+$/,"")}/${t}`,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${i}`},body:JSON.stringify(r)});return{ok:n.ok,payload:await n.json().catch(()=>null)}}async function Jz(e,t,r){if(!t.runtimeToken)throw new Error("This server uses each caller\'s own key, so it must be private. Ask its owner to make it private.");let{ok:i,payload:n}=await WS(e,"caller-key",{callerToken:t.runtimeToken,reportInvalid:r});if(!i)throw Bz(n)??new Error(GS(n,"Your upstream key could not be read from Sokie."));let o=nr(n)&&typeof n.apiKey=="string"?n.apiKey.trim():"";if(!o)throw new Error("Sokie returned no upstream key for this call.");return o}async function Hz(e,t,r){let i=e.bundle.auth.type==="oauth"&&e.bundle.auth.tokens==="perCaller",n=i?t.runtimeToken:null;if(i&&!n)throw new Error("This server signs each caller in to the upstream, so it must be private. Ask its owner to make it private.");let{ok:o,payload:a}=await WS(e,"oauth-token",{callerToken:n,forceRefresh:r});if(!o)throw Bz(a)??new Error(GS(a,"The upstream access token could not be read from Sokie."));let s=nr(a)&&typeof a.accessToken=="string"?a.accessToken.trim():"";if(!s)throw new Error("Sokie returned no upstream access token for this call.");let c=nr(a)&&typeof a.tokenType=="string"&&a.tokenType.trim()?a.tokenType.trim():"Bearer";return{accessToken:s,tokenType:c}}async function Yz(e,t,r){if(!t.runtimeToken)throw new Error("This call needs a person\'s OK, and nobody signed in to ask.");let{ok:i,payload:n}=await WS(e,"held-call",{callerToken:t.runtimeToken,...r});if(!i||!nr(n))throw new Error(GS(n,"Sokie couldn\'t hold this call for the OK it needs."));let{decision:o}=n;if(o==="run")return{decision:o};if(o==="declined")return n.byClient===!0?{decision:o,byClient:!0}:{decision:o};if(o==="cancelled")return{decision:o};let a=s=>typeof n[s]=="string"?n[s]:"";if(o==="ask"&&a("url")&&a("id"))return{decision:o,id:a("id"),url:a("url"),...n.onPage===!0?{onPage:!0}:{},question:a("question")||`Allow ${r.tool}?`,message:a("message")||`This call needs your OK first: ${a("url")}`};throw new Error("Sokie answered this call\'s hold with something unexpected.")}var XS="sokie_ok",cj=new Set(["delete","external_effect"]);function lj(e){if(typeof e!="object"||e===null)return!1;let t=e;return t.form!==void 0||t.url===void 0}function uj(e){return typeof e=="object"&&e!==null&&e.url!==void 0}var Tm=(e,t)=>({content:[{type:"text",text:e}],isError:!0,_meta:{error:e,errorClass:"POLICY_DENIED",retryable:!1,policy:t}});async function Gz(e,t,r,i,n){let o=n.era==="modern"?$S(n.inputResponses,XS):null,a=await Yz(e,t,{tool:r.name,...r.title?{title:r.title}:{},kind:Ls(r).effect,args:i,...o?.kind==="elicit"?{answer:o.action}:{}});if(t.call.ask=a.decision==="run"?"allowed":a.decision==="declined"?"declined":"asked",a.decision==="run")return"run";if(a.decision==="declined"&&a.byClient)return Tm(`Your client answered no for the person you act for, so ${r.name} didn\'t run. If they didn\'t see a question, or meant yes, call ${r.name} again: they\'ll get a link to answer on Sokie.`,"declined");if(a.decision==="declined")return Tm(`The person you act for said no to ${r.name}, so nothing ran. Don\'t try it again unless they ask you to.`,"declined");if(a.decision==="cancelled")return Tm(`The person you act for didn\'t answer, so ${r.name} didn\'t run.`,"cancelled");let s=n.clientCapabilities(),c=()=>Tm(`${a.message} Reconnecting won\'t help; only the person\'s OK will.`,"ask");if(a.onPage)return c();let l=!cj.has(Ls(r).effect);if(n.era==="modern"){let u=s?.elicitation;return l&&lj(u)?er({inputRequests:{[XS]:er.elicit({message:a.question,requestedSchema:{type:"object",properties:{}}})}}):u&&(l||uj(u))?er({inputRequests:{[`${XS}_link`]:er.elicitUrl({url:a.url,message:a.message})}}):c()}if(s&&!s.elicitation)return c();throw new j(-32042,a.message,{elicitations:[{mode:"url",message:a.message,url:a.url,elicitationId:a.id}]})}var ho=e=>e!==null&&Object.prototype.toString.call(e)==="[object Object]",Em=(e,t)=>{if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(!Em(e[r],t[r]))return!1;return!0}if(ho(e)&&ho(t)){let r=Object.entries(e),i=new Set(Object.keys(t));if(r.length!==i.size)return!1;for(let[n,o]of r){if(!Em(o,t[n]))return!1;i.delete(n)}return i.size===0}return!1},xm=e=>{if(e===""||e===!1||e===null||e===void 0||Array.isArray(e)&&e.length===0)return!0;if(ho(e)){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},dj=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_",Wz=e=>e>="0"&&e<="9"||e==="-",mj=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_",k;(function(e){e.TOK_EOF="EOF",e.TOK_UNQUOTEDIDENTIFIER="UnquotedIdentifier",e.TOK_QUOTEDIDENTIFIER="QuotedIdentifier",e.TOK_RBRACKET="Rbracket",e.TOK_RPAREN="Rparen",e.TOK_COMMA="Comma",e.TOK_COLON="Colon",e.TOK_RBRACE="Rbrace",e.TOK_NUMBER="Number",e.TOK_CURRENT="Current",e.TOK_ROOT="Root",e.TOK_EXPREF="Expref",e.TOK_PIPE="Pipe",e.TOK_OR="Or",e.TOK_AND="And",e.TOK_EQ="EQ",e.TOK_GT="GT",e.TOK_LT="LT",e.TOK_GTE="GTE",e.TOK_LTE="LTE",e.TOK_NE="NE",e.TOK_FLATTEN="Flatten",e.TOK_STAR="Star",e.TOK_FILTER="Filter",e.TOK_DOT="Dot",e.TOK_NOT="Not",e.TOK_LBRACE="Lbrace",e.TOK_LBRACKET="Lbracket",e.TOK_LPAREN="Lparen",e.TOK_LITERAL="Literal"})(k||(k={}));var Xz={"(":k.TOK_LPAREN,")":k.TOK_RPAREN,"*":k.TOK_STAR,",":k.TOK_COMMA,".":k.TOK_DOT,":":k.TOK_COLON,"@":k.TOK_CURRENT,$:k.TOK_ROOT,"]":k.TOK_RBRACKET,"{":k.TOK_LBRACE,"}":k.TOK_RBRACE},pj={"!":!0,"<":!0,"=":!0,">":!0},fj={"\t":!0,"\\n":!0,"\\r":!0," ":!0},QS=class{constructor(){this._current=0}tokenize(t){let r=[];this._current=0;let i,n,o;for(;this._current<t.length;)if(dj(t[this._current]))i=this._current,n=this.consumeUnquotedIdentifier(t),r.push({start:i,type:k.TOK_UNQUOTEDIDENTIFIER,value:n});else if(Xz[t[this._current]]!==void 0)r.push({start:this._current,type:Xz[t[this._current]],value:t[this._current]}),this._current+=1;else if(Wz(t[this._current]))o=this.consumeNumber(t),r.push(o);else if(t[this._current]==="[")o=this.consumeLBracket(t),r.push(o);else if(t[this._current]===\'"\')i=this._current,n=this.consumeQuotedIdentifier(t),r.push({start:i,type:k.TOK_QUOTEDIDENTIFIER,value:n});else if(t[this._current]==="\'")i=this._current,n=this.consumeRawStringLiteral(t),r.push({start:i,type:k.TOK_LITERAL,value:n});else if(t[this._current]==="`"){i=this._current;let a=this.consumeLiteral(t);r.push({start:i,type:k.TOK_LITERAL,value:a})}else if(pj[t[this._current]]!==void 0)o=this.consumeOperator(t),o&&r.push(o);else if(fj[t[this._current]]!==void 0)this._current+=1;else if(t[this._current]==="&")i=this._current,this._current+=1,t[this._current]==="&"?(this._current+=1,r.push({start:i,type:k.TOK_AND,value:"&&"})):r.push({start:i,type:k.TOK_EXPREF,value:"&"});else if(t[this._current]==="|")i=this._current,this._current+=1,t[this._current]==="|"?(this._current+=1,r.push({start:i,type:k.TOK_OR,value:"||"})):r.push({start:i,type:k.TOK_PIPE,value:"|"});else{let a=new Error(`Unknown character: ${t[this._current]}`);throw a.name="LexerError",a}return r}consumeUnquotedIdentifier(t){let r=this._current;for(this._current+=1;this._current<t.length&&mj(t[this._current]);)this._current+=1;return t.slice(r,this._current)}consumeQuotedIdentifier(t){let r=this._current;this._current+=1;let i=t.length;for(;t[this._current]!==\'"\'&&this._current<i;){let n=this._current;t[n]==="\\\\"&&(t[n+1]==="\\\\"||t[n+1]===\'"\')?n+=2:n+=1,this._current=n}return this._current+=1,JSON.parse(t.slice(r,this._current))}consumeRawStringLiteral(t){let r=this._current;this._current+=1;let i=t.length;for(;t[this._current]!=="\'"&&this._current<i;){let o=this._current;t[o]==="\\\\"&&(t[o+1]==="\\\\"||t[o+1]==="\'")?o+=2:o+=1,this._current=o}return this._current+=1,t.slice(r+1,this._current-1).replace("\\\\\'","\'")}consumeNumber(t){let r=this._current;this._current+=1;let i=t.length;for(;Wz(t[this._current])&&this._current<i;)this._current+=1;let n=parseInt(t.slice(r,this._current),10);return{start:r,value:n,type:k.TOK_NUMBER}}consumeLBracket(t){let r=this._current;return this._current+=1,t[this._current]==="?"?(this._current+=1,{start:r,type:k.TOK_FILTER,value:"[?"}):t[this._current]==="]"?(this._current+=1,{start:r,type:k.TOK_FLATTEN,value:"[]"}):{start:r,type:k.TOK_LBRACKET,value:"["}}consumeOperator(t){let r=this._current,i=t[r];if(this._current+=1,i==="!")return t[this._current]==="="?(this._current+=1,{start:r,type:k.TOK_NE,value:"!="}):{start:r,type:k.TOK_NOT,value:"!"};if(i==="<")return t[this._current]==="="?(this._current+=1,{start:r,type:k.TOK_LTE,value:"<="}):{start:r,type:k.TOK_LT,value:"<"};if(i===">")return t[this._current]==="="?(this._current+=1,{start:r,type:k.TOK_GTE,value:">="}):{start:r,type:k.TOK_GT,value:">"};if(i==="="&&t[this._current]==="=")return this._current+=1,{start:r,type:k.TOK_EQ,value:"=="}}consumeLiteral(t){this._current+=1;let r=this._current,i=t.length;for(;t[this._current]!=="`"&&this._current<i;){let a=this._current;t[a]==="\\\\"&&(t[a+1]==="\\\\"||t[a+1]==="`")?a+=2:a+=1,this._current=a}let n=t.slice(r,this._current).trimLeft();n=n.replace("\\\\`","`");let o=this.looksLikeJSON(n)?JSON.parse(n):JSON.parse(`"${n}"`);return this._current+=1,o}looksLikeJSON(t){let i=["true","false","null"],n="-0123456789";if(t==="")return!1;if(\'[{"\'.includes(t[0])||i.includes(t))return!0;if(n.includes(t[0]))try{return JSON.parse(t),!0}catch{return!1}return!1}},hj=new QS,Be={[k.TOK_EOF]:0,[k.TOK_UNQUOTEDIDENTIFIER]:0,[k.TOK_QUOTEDIDENTIFIER]:0,[k.TOK_RBRACKET]:0,[k.TOK_RPAREN]:0,[k.TOK_COMMA]:0,[k.TOK_RBRACE]:0,[k.TOK_NUMBER]:0,[k.TOK_CURRENT]:0,[k.TOK_EXPREF]:0,[k.TOK_ROOT]:0,[k.TOK_PIPE]:1,[k.TOK_OR]:2,[k.TOK_AND]:3,[k.TOK_EQ]:5,[k.TOK_GT]:5,[k.TOK_LT]:5,[k.TOK_GTE]:5,[k.TOK_LTE]:5,[k.TOK_NE]:5,[k.TOK_FLATTEN]:9,[k.TOK_STAR]:20,[k.TOK_FILTER]:21,[k.TOK_DOT]:40,[k.TOK_NOT]:45,[k.TOK_LBRACE]:50,[k.TOK_LBRACKET]:55,[k.TOK_LPAREN]:60},e_=class{constructor(){this.index=0,this.tokens=[]}parse(t){this.loadTokens(t),this.index=0;let r=this.expression(0);if(this.lookahead(0)!==k.TOK_EOF){let i=this.lookaheadToken(0);this.errorToken(i,`Unexpected token type: ${i.type}, value: ${i.value}`)}return r}loadTokens(t){this.tokens=[...hj.tokenize(t),{type:k.TOK_EOF,value:"",start:t.length}]}expression(t){let r=this.lookaheadToken(0);this.advance();let i=this.nud(r),n=this.lookahead(0);for(;t<Be[n];)this.advance(),i=this.led(n,i),n=this.lookahead(0);return i}lookahead(t){return this.tokens[this.index+t].type}lookaheadToken(t){return this.tokens[this.index+t]}advance(){this.index+=1}nud(t){let r,i,n;switch(t.type){case k.TOK_LITERAL:return{type:"Literal",value:t.value};case k.TOK_UNQUOTEDIDENTIFIER:return{type:"Field",name:t.value};case k.TOK_QUOTEDIDENTIFIER:let o={type:"Field",name:t.value};if(this.lookahead(0)===k.TOK_LPAREN)throw new Error("Quoted identifier not allowed for function names.");return o;case k.TOK_NOT:return i=this.expression(Be.Not),{type:"NotExpression",children:[i]};case k.TOK_STAR:return r={type:"Identity"},i=this.lookahead(0)===k.TOK_RBRACKET&&{type:"Identity"}||this.parseProjectionRHS(Be.Star),{type:"ValueProjection",children:[r,i]};case k.TOK_FILTER:return this.led(t.type,{type:"Identity"});case k.TOK_LBRACE:return this.parseMultiselectHash();case k.TOK_FLATTEN:return r={type:k.TOK_FLATTEN,children:[{type:"Identity"}]},i=this.parseProjectionRHS(Be.Flatten),{type:"Projection",children:[r,i]};case k.TOK_LBRACKET:return this.lookahead(0)===k.TOK_NUMBER||this.lookahead(0)===k.TOK_COLON?(i=this.parseIndexExpression(),this.projectIfSlice({type:"Identity"},i)):this.lookahead(0)===k.TOK_STAR&&this.lookahead(1)===k.TOK_RBRACKET?(this.advance(),this.advance(),i=this.parseProjectionRHS(Be.Star),{children:[{type:"Identity"},i],type:"Projection"}):this.parseMultiselectList();case k.TOK_CURRENT:return{type:k.TOK_CURRENT};case k.TOK_ROOT:return{type:k.TOK_ROOT};case k.TOK_EXPREF:return n=this.expression(Be.Expref),{type:"ExpressionReference",children:[n]};case k.TOK_LPAREN:let a=[];for(;this.lookahead(0)!==k.TOK_RPAREN;)this.lookahead(0)===k.TOK_CURRENT?(n={type:k.TOK_CURRENT},this.advance()):n=this.expression(0),a.push(n);return this.match(k.TOK_RPAREN),a[0];default:this.errorToken(t)}}led(t,r){let i;switch(t){case k.TOK_DOT:let n=Be.Dot;return this.lookahead(0)!==k.TOK_STAR?(i=this.parseDotRHS(n),{type:"Subexpression",children:[r,i]}):(this.advance(),i=this.parseProjectionRHS(n),{type:"ValueProjection",children:[r,i]});case k.TOK_PIPE:return i=this.expression(Be.Pipe),{type:k.TOK_PIPE,children:[r,i]};case k.TOK_OR:return i=this.expression(Be.Or),{type:"OrExpression",children:[r,i]};case k.TOK_AND:return i=this.expression(Be.And),{type:"AndExpression",children:[r,i]};case k.TOK_LPAREN:let o=r.name,a=[],s;for(;this.lookahead(0)!==k.TOK_RPAREN;)this.lookahead(0)===k.TOK_CURRENT?(s={type:k.TOK_CURRENT},this.advance()):s=this.expression(0),this.lookahead(0)===k.TOK_COMMA&&this.match(k.TOK_COMMA),a.push(s);return this.match(k.TOK_RPAREN),{name:o,type:"Function",children:a};case k.TOK_FILTER:let l=this.expression(0);return this.match(k.TOK_RBRACKET),i=this.lookahead(0)===k.TOK_FLATTEN&&{type:"Identity"}||this.parseProjectionRHS(Be.Filter),{type:"FilterProjection",children:[r,i,l]};case k.TOK_FLATTEN:let u={type:k.TOK_FLATTEN,children:[r]},m=this.parseProjectionRHS(Be.Flatten);return{type:"Projection",children:[u,m]};case k.TOK_EQ:case k.TOK_NE:case k.TOK_GT:case k.TOK_GTE:case k.TOK_LT:case k.TOK_LTE:return this.parseComparator(r,t);case k.TOK_LBRACKET:let p=this.lookaheadToken(0);return p.type===k.TOK_NUMBER||p.type===k.TOK_COLON?(i=this.parseIndexExpression(),this.projectIfSlice(r,i)):(this.match(k.TOK_STAR),this.match(k.TOK_RBRACKET),i=this.parseProjectionRHS(Be.Star),{type:"Projection",children:[r,i]});default:return this.errorToken(this.lookaheadToken(0))}}match(t){if(this.lookahead(0)===t){this.advance();return}else{let r=this.lookaheadToken(0);this.errorToken(r,`Expected ${t}, got: ${r.type}`)}}errorToken(t,r=""){let i=new Error(r||`Invalid token (${t.type}): "${t.value}"`);throw i.name="ParserError",i}parseIndexExpression(){if(this.lookahead(0)===k.TOK_COLON||this.lookahead(1)===k.TOK_COLON)return this.parseSliceExpression();let t={type:"Index",value:this.lookaheadToken(0).value};return this.advance(),this.match(k.TOK_RBRACKET),t}projectIfSlice(t,r){let i={type:"IndexExpression",children:[t,r]};return r.type==="Slice"?{children:[i,this.parseProjectionRHS(Be.Star)],type:"Projection"}:i}parseSliceExpression(){let t=[null,null,null],r=0,i=this.lookahead(0);for(;i!==k.TOK_RBRACKET&&r<3;){if(i===k.TOK_COLON)r+=1,this.advance();else if(i===k.TOK_NUMBER)t[r]=this.lookaheadToken(0).value,this.advance();else{let n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}i=this.lookahead(0)}return this.match(k.TOK_RBRACKET),{children:t,type:"Slice"}}parseComparator(t,r){let i=this.expression(Be[r]);return{type:"Comparator",name:r,children:[t,i]}}parseDotRHS(t){let r=this.lookahead(0);if([k.TOK_UNQUOTEDIDENTIFIER,k.TOK_QUOTEDIDENTIFIER,k.TOK_STAR].includes(r))return this.expression(t);if(r===k.TOK_LBRACKET)return this.match(k.TOK_LBRACKET),this.parseMultiselectList();if(r===k.TOK_LBRACE)return this.match(k.TOK_LBRACE),this.parseMultiselectHash();let n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}parseProjectionRHS(t){if(Be[this.lookahead(0)]<10)return{type:"Identity"};if(this.lookahead(0)===k.TOK_LBRACKET)return this.expression(t);if(this.lookahead(0)===k.TOK_FILTER)return this.expression(t);if(this.lookahead(0)===k.TOK_DOT)return this.match(k.TOK_DOT),this.parseDotRHS(t);let r=this.lookaheadToken(0);this.errorToken(r,`Syntax error, unexpected token: ${r.value}(${r.type})`)}parseMultiselectList(){let t=[];for(;this.lookahead(0)!==k.TOK_RBRACKET;){let r=this.expression(0);if(t.push(r),this.lookahead(0)===k.TOK_COMMA&&(this.match(k.TOK_COMMA),this.lookahead(0)===k.TOK_RBRACKET))throw new Error("Unexpected token Rbracket")}return this.match(k.TOK_RBRACKET),{type:"MultiSelectList",children:t}}parseMultiselectHash(){let t=[],r=[k.TOK_UNQUOTEDIDENTIFIER,k.TOK_QUOTEDIDENTIFIER],i,n,o;for(;;){if(i=this.lookaheadToken(0),!r.includes(i.type))throw new Error(`Expecting an identifier token, got: ${i.type}`);if(n=i.value,this.advance(),this.match(k.TOK_COLON),o=this.expression(0),t.push({value:o,type:"KeyValuePair",name:n}),this.lookahead(0)===k.TOK_COMMA)this.match(k.TOK_COMMA);else if(this.lookahead(0)===k.TOK_RBRACE){this.match(k.TOK_RBRACE);break}}return{type:"MultiSelectHash",children:t}}},gj=new e_,P;(function(e){e[e.TYPE_NUMBER=0]="TYPE_NUMBER",e[e.TYPE_ANY=1]="TYPE_ANY",e[e.TYPE_STRING=2]="TYPE_STRING",e[e.TYPE_ARRAY=3]="TYPE_ARRAY",e[e.TYPE_OBJECT=4]="TYPE_OBJECT",e[e.TYPE_BOOLEAN=5]="TYPE_BOOLEAN",e[e.TYPE_EXPREF=6]="TYPE_EXPREF",e[e.TYPE_NULL=7]="TYPE_NULL",e[e.TYPE_ARRAY_NUMBER=8]="TYPE_ARRAY_NUMBER",e[e.TYPE_ARRAY_STRING=9]="TYPE_ARRAY_STRING"})(P||(P={}));var t_=class{constructor(t){this.TYPE_NAME_TABLE={[P.TYPE_NUMBER]:"number",[P.TYPE_ANY]:"any",[P.TYPE_STRING]:"string",[P.TYPE_ARRAY]:"array",[P.TYPE_OBJECT]:"object",[P.TYPE_BOOLEAN]:"boolean",[P.TYPE_EXPREF]:"expression",[P.TYPE_NULL]:"null",[P.TYPE_ARRAY_NUMBER]:"Array<number>",[P.TYPE_ARRAY_STRING]:"Array<string>"},this.functionAbs=([r])=>Math.abs(r),this.functionAvg=([r])=>{let i=0;for(let n=0;n<r.length;n+=1)i+=r[n];return i/r.length},this.functionCeil=([r])=>Math.ceil(r),this.functionContains=r=>{let[i,n]=r;return i.includes(n)},this.functionEndsWith=r=>{let[i,n]=r;return i.includes(n,i.length-n.length)},this.functionFloor=([r])=>Math.floor(r),this.functionJoin=r=>{let[i,n]=r;return n.join(i)},this.functionKeys=([r])=>Object.keys(r),this.functionLength=([r])=>ho(r)?Object.keys(r).length:r.length,this.functionMap=r=>{if(!this._interpreter)return[];let i=[],n=this._interpreter,o=r[0],a=r[1];for(let s=0;s<a.length;s+=1)i.push(n.visit(o,a[s]));return i},this.functionMax=([r])=>{if(!r.length)return null;if(this.getTypeName(r[0])===P.TYPE_NUMBER)return Math.max(...r);let n=r,o=n[0];for(let a=1;a<n.length;a+=1)o.localeCompare(n[a])<0&&(o=n[a]);return o},this.functionMaxBy=r=>{let i=r[1],n=r[0],o=this.createKeyFunction(i,[P.TYPE_NUMBER,P.TYPE_STRING]),a=-1/0,s,c;for(let l=0;l<n.length;l+=1)c=o&&o(n[l]),c!==void 0&&c>a&&(a=c,s=n[l]);return s},this.functionMerge=r=>{let i={};for(let n=0;n<r.length;n+=1){let o=r[n];i=Object.assign(i,o)}return i},this.functionMin=([r])=>{if(!r.length)return null;if(this.getTypeName(r[0])===P.TYPE_NUMBER)return Math.min(...r);let n=r,o=n[0];for(let a=1;a<n.length;a+=1)n[a].localeCompare(o)<0&&(o=n[a]);return o},this.functionMinBy=r=>{let i=r[1],n=r[0],o=this.createKeyFunction(i,[P.TYPE_NUMBER,P.TYPE_STRING]),a=1/0,s,c;for(let l=0;l<n.length;l+=1)c=o&&o(n[l]),c!==void 0&&c<a&&(a=c,s=n[l]);return s},this.functionNotNull=r=>{for(let i=0;i<r.length;i+=1)if(this.getTypeName(r[i])!==P.TYPE_NULL)return r[i];return null},this.functionReverse=([r])=>{if(this.getTypeName(r)===P.TYPE_STRING){let o=r,a="";for(let s=o.length-1;s>=0;s-=1)a+=o[s];return a}let n=r.slice(0);return n.reverse(),n},this.functionSort=([r])=>[...r].sort(),this.functionSortBy=r=>{if(!this._interpreter)return[];let i=r[0].slice(0);if(i.length===0)return i;let n=this._interpreter,o=r[1],a=this.getTypeName(n.visit(o,i[0]));if(a!==void 0&&![P.TYPE_NUMBER,P.TYPE_STRING].includes(a))throw new Error(`TypeError: unexpected type (${this.TYPE_NAME_TABLE[a]})`);let s=[];for(let c=0;c<i.length;c+=1)s.push([c,i[c]]);s.sort((c,l)=>{let u=n.visit(o,c[1]),m=n.visit(o,l[1]);if(this.getTypeName(u)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(u)]}`);if(this.getTypeName(m)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(m)]}`);return u>m?1:u<m?-1:c[0]-l[0]});for(let c=0;c<s.length;c+=1)i[c]=s[c][1];return i},this.functionStartsWith=([r,i])=>r.startsWith(i),this.functionSum=([r])=>r.reduce((i,n)=>i+n,0),this.functionToArray=([r])=>this.getTypeName(r)===P.TYPE_ARRAY?r:[r],this.functionToNumber=([r])=>{let i=this.getTypeName(r),n;return i===P.TYPE_NUMBER?r:i===P.TYPE_STRING&&(n=+r,!isNaN(n))?n:null},this.functionToString=([r])=>this.getTypeName(r)===P.TYPE_STRING?r:JSON.stringify(r),this.functionType=([r])=>{switch(this.getTypeName(r)){case P.TYPE_NUMBER:return"number";case P.TYPE_STRING:return"string";case P.TYPE_ARRAY:return"array";case P.TYPE_OBJECT:return"object";case P.TYPE_BOOLEAN:return"boolean";case P.TYPE_EXPREF:return"expref";case P.TYPE_NULL:return"null";default:return}},this.functionValues=([r])=>Object.values(r),this.functionTable={abs:{_func:this.functionAbs,_signature:[{types:[P.TYPE_NUMBER]}]},avg:{_func:this.functionAvg,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},ceil:{_func:this.functionCeil,_signature:[{types:[P.TYPE_NUMBER]}]},contains:{_func:this.functionContains,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]},{types:[P.TYPE_ANY]}]},ends_with:{_func:this.functionEndsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},floor:{_func:this.functionFloor,_signature:[{types:[P.TYPE_NUMBER]}]},join:{_func:this.functionJoin,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_ARRAY_STRING]}]},keys:{_func:this.functionKeys,_signature:[{types:[P.TYPE_OBJECT]}]},length:{_func:this.functionLength,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY,P.TYPE_OBJECT]}]},map:{_func:this.functionMap,_signature:[{types:[P.TYPE_EXPREF]},{types:[P.TYPE_ARRAY]}]},max:{_func:this.functionMax,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},max_by:{_func:this.functionMaxBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},merge:{_func:this.functionMerge,_signature:[{types:[P.TYPE_OBJECT],variadic:!0}]},min:{_func:this.functionMin,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},min_by:{_func:this.functionMinBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},not_null:{_func:this.functionNotNull,_signature:[{types:[P.TYPE_ANY],variadic:!0}]},reverse:{_func:this.functionReverse,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]}]},sort:{_func:this.functionSort,_signature:[{types:[P.TYPE_ARRAY_STRING,P.TYPE_ARRAY_NUMBER]}]},sort_by:{_func:this.functionSortBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},starts_with:{_func:this.functionStartsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},sum:{_func:this.functionSum,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},to_array:{_func:this.functionToArray,_signature:[{types:[P.TYPE_ANY]}]},to_number:{_func:this.functionToNumber,_signature:[{types:[P.TYPE_ANY]}]},to_string:{_func:this.functionToString,_signature:[{types:[P.TYPE_ANY]}]},type:{_func:this.functionType,_signature:[{types:[P.TYPE_ANY]}]},values:{_func:this.functionValues,_signature:[{types:[P.TYPE_OBJECT]}]}},this._interpreter=t}registerFunction(t,r,i){if(t in this.functionTable)throw new Error(`Function already defined: ${t}()`);this.functionTable[t]={_func:r.bind(this),_signature:i}}callFunction(t,r){let i=this.functionTable[t];if(i===void 0)throw new Error(`Unknown function: ${t}()`);return this.validateArgs(t,r,i._signature),i._func.call(this,r)}validateInputSignatures(t,r){for(let i=0;i<r.length;i+=1)if("variadic"in r[i]&&i!==r.length-1)throw new Error(`ArgumentError: ${t}() \'variadic\' argument ${i+1} must occur last`)}validateArgs(t,r,i){var n,o;let a;this.validateInputSignatures(t,i);let s=i.filter(v=>{var y;return(y=!v.optional)!==null&&y!==void 0?y:!1}).length,c=(o=(n=i[i.length-1])===null||n===void 0?void 0:n.variadic)!==null&&o!==void 0?o:!1,l=r.length<s,u=r.length>i.length,m=l&&(!c&&s>1||c)?"at least ":"";if(c&&l||!c&&(l||u))throw a=i.length>1,new Error(`ArgumentError: ${t}() takes ${m}${s} argument${a&&"s"||""} but received ${r.length}`);let p,f,h;for(let v=0;v<i.length;v+=1){h=!1,p=i[v].types,f=this.getTypeName(r[v]);let y;for(y=0;y<p.length;y+=1)if(f!==void 0&&this.typeMatches(f,p[y],r[v])){h=!0;break}if(!h&&f!==void 0){let R=p.map(w=>this.TYPE_NAME_TABLE[w]).join(" | ");throw new Error(`TypeError: ${t}() expected argument ${v+1} to be type (${R}) but received type ${this.TYPE_NAME_TABLE[f]} instead.`)}}}typeMatches(t,r,i){if(r===P.TYPE_ANY)return!0;if(r===P.TYPE_ARRAY_STRING||r===P.TYPE_ARRAY_NUMBER||r===P.TYPE_ARRAY){if(r===P.TYPE_ARRAY)return t===P.TYPE_ARRAY;if(t===P.TYPE_ARRAY){let n;r===P.TYPE_ARRAY_NUMBER?n=P.TYPE_NUMBER:r===P.TYPE_ARRAY_STRING&&(n=P.TYPE_STRING);for(let o=0;o<i.length;o+=1){let a=this.getTypeName(i[o]);if(a!==void 0&&n!==void 0&&!this.typeMatches(a,n,i[o]))return!1}return!0}}else return t===r;return!1}getTypeName(t){switch(Object.prototype.toString.call(t)){case"[object String]":return P.TYPE_STRING;case"[object Number]":return P.TYPE_NUMBER;case"[object Array]":return P.TYPE_ARRAY;case"[object Boolean]":return P.TYPE_BOOLEAN;case"[object Null]":return P.TYPE_NULL;case"[object Object]":return t.jmespathType===k.TOK_EXPREF?P.TYPE_EXPREF:P.TYPE_OBJECT;default:return}}createKeyFunction(t,r){if(!this._interpreter)return;let i=this._interpreter;return o=>{let a=i.visit(t,o);if(!r.includes(this.getTypeName(a))){let s=`TypeError: expected one of (${r.map(c=>this.TYPE_NAME_TABLE[c]).join(" | ")}), received ${this.TYPE_NAME_TABLE[this.getTypeName(a)]}`;throw new Error(s)}return a}}},n_=class{constructor(){this._rootValue=null,this.runtime=new t_(this)}search(t,r){return this._rootValue=r,this.visit(t,r)}visit(t,r){let i,n,o,a,s,c,l,u,m,p,f;switch(t.type){case"Field":return r===null?null:ho(r)?(c=r[t.name],c===void 0?null:c):null;case"Subexpression":for(o=this.visit(t.children[0],r),p=1;p<t.children.length;p+=1)if(o=this.visit(t.children[1],o),o===null)return null;return o;case"IndexExpression":return l=this.visit(t.children[0],r),u=this.visit(t.children[1],l),u;case"Index":if(!Array.isArray(r))return null;let h=t.value;return h<0&&(h=r.length+h),o=r[h],o===void 0&&(o=null),o;case"Slice":if(!Array.isArray(r))return null;let v=[...t.children],y=this.computeSliceParams(r.length,v),[R,w,E]=y;if(o=[],E>0)for(p=R;p<w;p+=E)o.push(r[p]);else for(p=R;p>w;p+=E)o.push(r[p]);return o;case"Projection":if(f=this.visit(t.children[0],r),!Array.isArray(f))return null;for(m=[],p=0;p<f.length;p+=1)n=this.visit(t.children[1],f[p]),n!==null&&m.push(n);return m;case"ValueProjection":if(f=this.visit(t.children[0],r),!ho(f))return null;m=[];let D=Object.values(f);for(p=0;p<D.length;p+=1)n=this.visit(t.children[1],D[p]),n!==null&&m.push(n);return m;case"FilterProjection":if(f=this.visit(t.children[0],r),!Array.isArray(f))return null;let F=[],N=[];for(p=0;p<f.length;p+=1)i=this.visit(t.children[2],f[p]),xm(i)||F.push(f[p]);for(let ce=0;ce<F.length;ce+=1)n=this.visit(t.children[1],F[ce]),n!==null&&N.push(n);return N;case"Comparator":switch(a=this.visit(t.children[0],r),s=this.visit(t.children[1],r),t.name){case k.TOK_EQ:o=Em(a,s);break;case k.TOK_NE:o=!Em(a,s);break;case k.TOK_GT:o=a>s;break;case k.TOK_GTE:o=a>=s;break;case k.TOK_LT:o=a<s;break;case k.TOK_LTE:o=a<=s;break;default:throw new Error(`Unknown comparator: ${t.name}`)}return o;case k.TOK_FLATTEN:let te=this.visit(t.children[0],r);if(!Array.isArray(te))return null;let ie=[];for(p=0;p<te.length;p+=1)n=te[p],Array.isArray(n)?ie=[...ie,...n]:ie.push(n);return ie;case"Identity":return r;case"MultiSelectList":if(r===null)return null;for(m=[],p=0;p<t.children.length;p+=1)m.push(this.visit(t.children[p],r));return m;case"MultiSelectHash":if(r===null)return null;m={};let Y;for(p=0;p<t.children.length;p+=1)Y=t.children[p],m[Y.name]=this.visit(Y.value,r);return m;case"OrExpression":return i=this.visit(t.children[0],r),xm(i)&&(i=this.visit(t.children[1],r)),i;case"AndExpression":return a=this.visit(t.children[0],r),xm(a)?a:this.visit(t.children[1],r);case"NotExpression":return a=this.visit(t.children[0],r),xm(a);case"Literal":return t.value;case k.TOK_PIPE:return l=this.visit(t.children[0],r),this.visit(t.children[1],l);case k.TOK_CURRENT:return r;case k.TOK_ROOT:return this._rootValue;case"Function":let ye=[];for(let ce=0;ce<t.children.length;ce+=1)ye.push(this.visit(t.children[ce],r));return this.runtime.callFunction(t.name,ye);case"ExpressionReference":let be=t.children[0];return be.jmespathType=k.TOK_EXPREF,be;default:throw new Error(`Unknown node type: ${t.type}`)}}computeSliceParams(t,r){let[i,n,o]=r;if(o===null)o=1;else if(o===0){let s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}let a=o<0;return i=i===null?a?t-1:0:this.capSliceRange(t,i,o),n=n===null?a?-1:t:this.capSliceRange(t,n,o),[i,n,o]}capSliceRange(t,r,i){let n=r;return n<0?(n+=t,n<0&&(n=i<0?-1:0)):n>=t&&(n=i<0?t-1:t),n}},vj=new n_,u6=P.TYPE_ANY,d6=P.TYPE_ARRAY,m6=P.TYPE_ARRAY_NUMBER,p6=P.TYPE_ARRAY_STRING,f6=P.TYPE_BOOLEAN,h6=P.TYPE_EXPREF,g6=P.TYPE_NULL,v6=P.TYPE_NUMBER,y6=P.TYPE_OBJECT,S6=P.TYPE_STRING;function Qz(e,t){let r=gj.parse(t);return vj.search(r,e)}function tI(e,t,r){if(!e?.trim()||t===null||typeof t!="object")return t;let i;try{i=Qz(t,e)??null}catch{return t}return r.projection.preBytes+=eI(t),r.projection.postBytes+=eI(i),r.projection.applied=!0,i}function eI(e){try{return new TextEncoder().encode(JSON.stringify(e)??"").length}catch{return 0}}var yj=new TextEncoder;function nI(e,t){if(e.trim().toLowerCase()!=="basic"||!t.includes(":"))return t;let r="";for(let i of yj.encode(t))r+=String.fromCharCode(i);return btoa(r)}var Pm={connection:"x-sokie-connection",name:"x-sokie-client",verified:"x-sokie-client-verified",id:"x-sokie-client-id"};function Sj(e){let t="";for(let r of e.trim()){let i=r.codePointAt(0)??0;i>=55296&&i<=57343?t+="%EF%BF%BD":i>=32&&i<=126&&r!=="%"?t+=r:t+=encodeURIComponent(r)}return t}function rI(e,t){let r=(n,o)=>{o?e.set(n,Sj(o)):e.delete(n)},i=t.userId!==null;r(Pm.connection,i?t.connection:null),r(Pm.name,i?t.clientName:null),r(Pm.verified,i?String(t.clientUrl!==null):null),r(Pm.id,i?t.clientUrl:null)}var iI={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}};var _j=new TextEncoder,bj=/^[A-Za-z0-9\\-._~]$/,$j=/^[A-Za-z0-9\\-._~:/?[\\]@!$&\'()*+,;=]$/,kj=/^[A-Za-z0-9\\-._~!\'()*]$/,Rj=e=>`%${e.toString(16).toUpperCase().padStart(2,"0")}`;function r_(e,t){let r="";for(let i of e)if(t.test(i))r+=i;else for(let n of _j.encode(i))r+=Rj(n);return r}var Om=e=>r_(e,bj);function oI(e){return e.split(/(%[0-9A-Fa-f]{2})/).map((t,r)=>r%2===1?t:r_(t,$j)).join("")}var Hr=e=>new URLSearchParams([["",e]]).toString().slice(1),Jr=e=>r_(e,kj);function aI(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Yr(e){return typeof e=="string"?e:e==null?"":typeof e=="object"?JSON.stringify(e):String(e)}var Ds=e=>e!=null;function Ms(e,t){if(!Ds(e))return null;if(t.json)return{kind:"primitive",text:JSON.stringify(e)};if(Array.isArray(e)){let r=e.filter(Ds).map(Yr);return r.length>0?{kind:"array",items:r}:null}if(aI(e)){let r=Object.entries(e).filter(([,i])=>Ds(i)).map(([i,n])=>[i,Yr(n)]);return r.length>0?{kind:"object",entries:r}:null}return{kind:"primitive",text:Yr(e)}}var Cm={spaceDelimited:" ",pipeDelimited:"|",tabDelimited:"\t"},go=e=>e.kind==="array"?e.items:e.entries.flat();function qs(e,t,r,i=r.allowReserved?oI:Om,n=Om){let o=Ms(t,r);if(!o)return[];let a=n(e);if(o.kind==="primitive")return[`${a}=${i(o.text)}`];if(r.style==="deepObject"&&o.kind==="object")return o.entries.map(([s,c])=>`${n(`${e}[${s}]`)}=${i(c)}`);if(!r.explode){let s=Cm[r.style];return[`${a}=${go(o).map(i).join(s?i(s):",")}`]}return o.kind==="array"?o.items.map(s=>`${a}=${i(s)}`):o.entries.map(([s,c])=>`${n(s)}=${i(c)}`)}function sI(e,t){let r=Ms(e,t);if(!r)return null;if(r.kind==="primitive")return r.text;let i=Cm[t.style]??",";return r.kind==="object"&&t.explode?r.entries.map(([n,o])=>`${n}=${o}`).join(i):go(r).join(i)}function cI(e,t){let r=Ms(e,t);return r?r.kind==="primitive"?[r.text]:r.kind==="array"&&t.explode?r.items:[go(r).join(Cm[t.style]??",")]:[]}function lI(e,t,r){let i=Ms(t,r),n=r.style==="label"?".":r.style==="matrix"?";":"";if(!i)return r.style==="matrix"?`;${e}`:n;let o=(l,u)=>r.style==="matrix"?`${l}=${u}`:u;if(i.kind==="primitive")return`${n}${o(e,Jr(i.text))}`;let a=Cm[r.style];if(a)return go(i).map(Jr).join(Jr(a));if(!r.explode)return`${n}${o(e,go(i).map(Jr).join(","))}`;let s=n||",",c=i.kind==="array"?i.items.map(l=>o(e,Jr(l))):i.entries.map(([l,u])=>`${Jr(l)}=${Jr(u)}`);return`${n}${c.join(s)}`}function uI(e,t,r){let i=Ms(t,r);if(!i)return[];let n=r.style==="cookie"?o=>o:Om;return i.kind==="primitive"?[`${e}=${n(i.text)}`]:r.explode?i.kind==="array"?i.items.map(o=>`${e}=${n(o)}`):i.entries.map(([o,a])=>`${o}=${n(a)}`):[`${e}=${go(i).map(n).join(",")}`]}function i_(e){return(e.split(";")[0]??"").trim().toLowerCase()}var o_=e=>e==="application/json"||e==="application/*+json"||/\\+json$/.test(e),Vs="application/x-www-form-urlencoded";function dI(e,t,r={}){let i=i_(t);if(i!==Vs)return Om(o_(i)?JSON.stringify(e):Yr(e));if(!aI(e))return typeof e=="string"?oI(e):"";let n=[];for(let[o,a]of Object.entries(e)){if(!Ds(a))continue;let s=r[o];if(s){n.push(...qs(o,a,s,Hr,Hr));continue}for(let c of Array.isArray(a)?a.filter(Ds):[a])n.push(`${Hr(o)}=${Hr(Yr(c))}`)}return n.join("&")}function mI(e,t,r,i){if(i==="."||i==="..")throw new Yt(e,[`${t} can\'t be "${r}"`])}function pI(e,t,r){return t.path.replace(/\\{([^}]+)\\}/g,(i,n)=>{let o=String(r[n]??"");return mI(e,n,o,o),encodeURIComponent(o)})}function fI(e,t,r,i){for(let[n,o]of Object.entries(t)){let a=e.params[n];if(!(o==null||a===void 0||a==="path"))if(a==="query")for(let s of Array.isArray(o)?o:[o])r.searchParams.append(n,String(s));else i.set(n,String(o))}}var Nm=(e,t,r)=>e.styles?.[t]??iI[r];function hI(e,t,r){return t.path.replace(/\\{([^}]+)\\}/g,(i,n)=>{let o=r[n],a=lI(n,o,Nm(t,n,"path"));return mI(e,n,Yr(o),a),a})}function a_(e,t){if(t.length===0)return;let r=e.get("cookie");e.set("cookie",[r,...t].filter(Boolean).join("; "))}function gI(e,t,r,i){let n=[],o=[],a="";for(let[c,l]of Object.entries(t)){let u=e.params[c];if(!(l==null||u===void 0||u==="path"))if(u==="querystring"){let{contentType:m=Vs,styles:p}=e.querystring??{};a=dI(l,m,p)}else if(u==="query")n.push(...qs(c,l,Nm(e,c,u)));else if(u==="cookie")o.push(...uI(c,l,Nm(e,c,u)));else{let m=sI(l,Nm(e,c,u));m!==null&&i.set(c,m)}}let s=[a,r.search.slice(1),...n].filter(Boolean).join("&");r.search=s,a_(i,o),i.has("accept")||i.set("accept",e.accept??"application/json")}function c_(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function s_(e){let t=new URLSearchParams,r=(i,n)=>{if(n!=null)if(Array.isArray(n))n.forEach((o,a)=>{r(i?`${i}[${a}]`:String(a),o)});else if(c_(n))for(let[o,a]of Object.entries(n))r(i?`${i}[${o}]`:o,a);else i!==null&&t.append(i,String(n))};return r(null,e),t.toString()}function wj(e,t){if(!c_(e))return s_(e);let r=[];for(let[i,n]of Object.entries(e)){let o=t[i],a=o?qs(i,n,o,Hr,Hr).join("&"):s_({[i]:n});a&&r.push(a)}return r.join("&")}function zj(e,t={}){let r=new FormData;if(!c_(e))return r;for(let[i,n]of Object.entries(e)){let o=t[i];if(o){for(let a of cI(n,o))r.append(i,a);continue}for(let a of Array.isArray(n)?n:[n])a!=null&&r.append(i,typeof a=="object"?JSON.stringify(a):String(a))}return r}var Ij=e=>e.startsWith("text/")||e==="application/xml"||/\\+xml$/.test(e);function vI(e,t,r,i=!1){if(!(e.body&&t.body!==void 0&&!["GET","HEAD"].includes(e.method.toUpperCase()))||!e.body)return;let{contentType:o}=e.body,a=i?e.body.styles:void 0,s=i_(o);return s==="multipart/form-data"?(r.delete("content-type"),zj(t.body,a)):(r.set("content-type",o),s===Vs?a?wj(t.body,a):s_(t.body):Ij(s)&&!o_(s)&&typeof t.body=="string"?t.body:JSON.stringify(t.body))}var Tj=`sokie/${Ho} (+https://sokie.sh)`;function SI(e,t){let r=e.replace(/\\/+$/,"");if(!/^https?:\\/\\//i.test(r))throw new Error(`This server has no upstream URL: set upstream.baseUrl in sokie.json (got ${r?`"${r}"`:"nothing"}).`);return new URL(t?`${r}/${t.replace(/^\\/+/,"")}`:r)}function yI(e,t){let r=e.secret(t);if(!r)throw new Error(`The secret ${t} is not set for this environment. Its owner sets it with \\`sokie secrets set ${t}\\`.`);return r}async function _I(e,t,r,i,n){let o=new Headers,a=[];for(let[c,l]of Object.entries(e.bundle.headers))if(typeof l=="string")o.set(c,l);else{let u=yI(e,l.secret);a.push(u),o.set(c,u)}if(o.has("user-agent")||o.set("user-agent",Tj),e.accessMode==="users"&&rI(o,r),!t.sendsCredential)return{headers:o,secrets:a};let{auth:s}=e.bundle;if(s.type==="oauth"){let c=await Hz(e,r,n);a.push(c.accessToken),o.set("authorization",`${c.tokenType} ${c.accessToken}`)}else if(s.type==="apiKey"){let c=s.key==="perCaller"?await Jz(e,r,n):yI(e,s.key.secret),l=e.bundle.requestFormat===2,u=l?nI(s.prefix,c):c;a.push(...new Set([c,u]));let m=`${s.prefix}${u}`;s.in==="query"?i.searchParams.set(s.name,m):l&&s.name.toLowerCase()==="cookie"?a_(o,[m]):o.set(s.name,m)}return{headers:o,secrets:a}}async function l_(e,t,r,i,n=!1){let{operation:o}=t;return o.kind==="graphql"?xj(e,t,o,r,i,n):Ej(e,t,o,r,i,n)}async function xj(e,t,r,i,n,o){let a=SI(e.baseUrl,""),{headers:s,secrets:c}=await _I(e,t,n,a,o);s.set("accept","application/json"),s.set("content-type","application/json");let l=Object.fromEntries(Object.entries(i).filter(([,m])=>m!==void 0)),u=JSON.stringify({query:r.document,variables:l});return{url:a.toString(),init:{method:"POST",headers:s,body:u},secrets:c}}async function Ej(e,t,r,i,n,o){let a=e.bundle.requestFormat===2,s=a?hI(t.name,r,i):pI(t.name,r,i),c=SI(e.baseUrl,s),{headers:l,secrets:u}=await _I(e,t,n,c,o);a?gI(r,i,c,l):fI(r,i,c,l);let m=vI(r,i,l,a),p=r.method.toUpperCase();return{url:c.toString(),init:{method:p,headers:l,body:m},secrets:u}}var Pj="[redacted]";var Oj=/^(?:text\\/|application\\/(?:json|xml|javascript|x-www-form-urlencoded|ya?ml|x-yaml|x-ndjson|jsonl|graphql|csv)\\b|[a-z]+\\/[^;]*\\+(?:json|xml|yaml)\\b)/;function Cj(e){return(e.headers.get("content-type")??"").split(";")[0]?.trim().toLowerCase()??""}function Nj(e){let t=new Promise((r,i)=>{e.aborted&&i(e.reason),e.addEventListener("abort",()=>i(e.reason),{once:!0})});return t.catch(()=>{}),t}function u_(e,t){let r=new Uint8Array(t),i=0;for(let n of e){if(i>=t)break;let o=n.subarray(0,t-i);r.set(o,i),i+=o.byteLength}return r}async function bI(e,t,r,i=!1){let n=e.getReader(),o=Nj(r),a=[],s=0;try{for(;;){let{done:c,value:l}=await Promise.race([n.read(),o]);if(c)return{bytes:u_(a,s),cut:!1};if(a.push(l),s+=l.byteLength,s>t)return{bytes:u_(a,t),cut:!0}}}catch(c){if(i&&!r.aborted)return{bytes:u_(a,s),cut:!0};throw c}finally{n.cancel().catch(()=>{})}}function Aj(e,t){return e.includes("gzip")&&t[0]===31&&t[1]===139?"gzip":e.includes("deflate")?t[0]===120?"deflate":"deflate-raw":null}async function jj(e,t,r){let i=(e.headers.get("content-encoding")??"").toLowerCase(),n=Aj(i,t.bytes);if(!n)return t;try{let o=new Blob([t.bytes]).stream().pipeThrough(new DecompressionStream(n)),a=await bI(o,2097152,r,t.cut);return{bytes:a.bytes,cut:a.cut||t.cut}}catch(o){if(r.aborted)throw o;return t}}var Uj=e=>JSON.stringify(e).slice(1,-1);function Lj(e,t){let r=t.flatMap(n=>[n,Uj(n)]).filter(n=>n.length>=8).sort((n,o)=>o.length-n.length),i=e;for(let n of r)i=i.split(n).join(Pj);return i}function Dj(e){if(!e)return null;try{return JSON.parse(e)}catch{return e}}async function $I(e,t,r=[]){if(!e.body)return{body:null};let i=await bI(e.body,2097152,t),n=Cj(e);if(n&&!Oj.test(n))return{body:null,file:{type:n,bytes:i.cut?null:i.bytes.byteLength}};let{bytes:o,cut:a}=await jj(e,i,t),s=Lj(new TextDecoder().decode(o),r);return a?{body:s,cut:!0}:{body:Dj(s)}}var d_=64*1024,kI=2e3,Mj="Ask for less: use this tool\'s paging or filtering arguments, such as a smaller page size, a narrower search or fewer fields.";function Zs(e){return e<1024*1024?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/(1024*1024)).toFixed(1).replace(/\\.0$/,"")} MB`}function jm(e,t=!0){let r=new TextEncoder().encode(e);if(t&&r.byteLength<=d_)return e;let i=new TextDecoder().decode(r.subarray(0,d_)).replace(/\\uFFFD$/,""),n=t?`this result is ${Zs(r.byteLength)}`:`the API\'s answer is over ${Zs(2097152)}`;return`${i}\n\n[Cut here: ${n}, and a tool returns at most ${Zs(d_)}. ${Mj}]`}function wI(e){let t=e.bytes===null?`over ${Zs(2097152)}`:Zs(e.bytes);return`The API answered with ${e.type} (${t}), which isn\'t text, so this tool can\'t return it.`}function qt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function m_(e){let t=e?.trim();if(!t)return null;let r=Number(t);if(Number.isFinite(r))return r>=0?Math.ceil(r):null;let i=Date.parse(t);return Number.isNaN(i)?null:Math.max(0,Math.ceil((i-Date.now())/1e3))}function qj(e){if(!qt(e))return{code:null,message:null};let t=qt(e.error)?e.error:null,r=(...i)=>{for(let n of i)if(typeof n=="string"&&n.trim())return n.trim();return null};return{code:r(t?.code,t?.type,e.code,e.error_code,typeof e.error=="string"?e.error:null),message:r(t?.message,e.message,e.error_description,e.detail)}}var zI=/^(?:invalid|missing|expired|revoked|bad)[_-]?(?:token|api[_-]?key|key|credentials?|auth)$|^(?:token|api[_-]?key|key|credentials?)[_-]?(?:expired|revoked|invalid|missing)$|^unauthenticated$/i;function Vj(e,t,r){let{code:i,message:n}=qj(t),o=r.bundle.auth.type==="apiKey"&&r.bundle.auth.key==="perCaller",a=e===401||e===403&&i!==null&&zI.test(i)||II(t);if(o&&a){let s=r.connectUrl?`Reconnect at ${r.connectUrl}`:"Reconnect it on this server\'s Sokie connect page";return`The upstream API refused the key you connected for "${r.bundle.name}"; it was most likely revoked, rotated or expired. ${s}. Signing in to Sokie again will not fix it.`}return e===403&&(i||n)?`The upstream API refused this action (${[i,n].filter(Boolean).join(": ")}). This is a permission decision, not a connection problem; reconnecting will not change it.`:null}function Zj(e){return!qt(e)||!Array.isArray(e.errors)?[]:e.errors.map(t=>qt(t)&&qt(t.extensions)&&typeof t.extensions.code=="string"?t.extensions.code:"").filter(Boolean)}function II(e){return Zj(e).some(t=>zI.test(t))}function TI(e,t,r){return t===401?!0:e.operation.kind==="graphql"&&II(r)}function p_(e){if(!qt(e)||!Array.isArray(e.errors)||e.errors.length===0)return null;let t=e.errors.map(r=>qt(r)&&typeof r.message=="string"?r.message.trim():"").filter(Boolean);return t.length>0?t.join(" "):"GraphQL execution failed."}function Am(e,t,r,i){let n=p_(t)??(typeof t=="string"?t:t?JSON.stringify(t,null,2):"No response body."),o=n.length>kI?`${n.slice(0,kI)}\\u2026 (cut)`:n,a=Vj(e,t,i),c=[e>=200&&e<300?"The upstream GraphQL API answered with errors.":`The upstream request failed with status ${e}.`,a,o].filter(Boolean).join(" ");return new Pt(c,e,r)}function xI(e,t,r,i){if(!t.ok)throw Am(t.status,r,m_(t.headers.get("retry-after")),i);if(e.operation.kind!=="graphql")return r;let n=p_(r),o=qt(r)&&qt(r.data)?r.data:null,a=e.operation.field;if(o&&o[a]!==void 0&&o[a]!==null)return o[a];if(n)throw Am(t.status,r,null,i);if(!o)throw new Error("The GraphQL response had no data.");return o[a]??null}function EI(e,t){if(e.operation.kind!=="graphql")return null;let i=(qt(t)&&qt(t.data)?t.data:null)?.[e.operation.field];if(i==null)return null;let n=p_(t);return n?`The API also reported errors for part of this result: ${n}`:null}function PI(e,t,r=t){let i=e.title??e.name;return t==null?r==null?`${i} completed.`:`${i} found nothing. The API answered, but without the fields this tool reads.`:typeof t=="string"?t:JSON.stringify(t,null,2)}var CI=3e4,OI=5,Fj=new Set([301,302,303,307,308]),Kj=["content-type","content-length","content-encoding","content-language"],Bj=["user-agent","accept"];function Jj(e,t){return e.host!==t.host?!1:t.protocol===e.protocol||e.protocol==="http:"&&t.protocol==="https:"}function Hj(e,t){let r=(e.method??"GET").toUpperCase();if(!(t===303&&r!=="HEAD"||(t===301||t===302)&&r==="POST"))return e;let n=new Headers(e.headers);for(let o of Kj)n.delete(o);return{...e,method:"GET",body:void 0,headers:n}}function Yj(e,t){let r=new Headers(e.headers),i=new Headers;for(let n of Bj){let o=r.get(n);o&&!t.includes(o)&&i.set(n,o)}return{method:e.method,headers:i}}async function Gj(e,t){let r=new URL(e.url),i=e.init,n=!0;for(let o=0;;o+=1){let a=await fetch(r.toString(),{...i,redirect:"manual",signal:t}),s=Fj.has(a.status)?a.headers.get("location"):null;if(!s)return a;await a.body?.cancel().catch(()=>{});let c=new URL(s,r);if(c.protocol!=="https:"&&c.protocol!=="http:")throw new Pt(`The upstream API redirected this call to a ${c.protocol} address, which Sokie doesn\'t follow.`,a.status);if(o>=OI)throw new Pt(`The upstream API redirected this call more than ${OI} times, so Sokie stopped following it.`,a.status);if(i=Hj(i,a.status),n&&!Jj(new URL(e.url),c)){if(i.body!==void 0&&i.body!==null)throw new Pt(`The upstream API sent this call on to ${c.host}. Sokie sends a call\'s body only to the API\'s own host.`,a.status);i=Yj(i,e.secrets),n=!1}r=c}}var Wj=()=>new Pt(`The upstream API didn\'t answer within ${CI/1e3} seconds. Try again; if it keeps happening, the API may be down or the request too large.`,504);async function f_(e,t=CI){let r=AbortSignal.timeout(t);try{let i=await Gj(e,r);return{response:i,...await $I(i,r,e.secrets)}}catch(i){throw r.aborted||i instanceof Error&&i.name==="TimeoutError"?Wj():i}}function Xj(e,t,r){if(Math.abs(e.length-t.length)>r)return r+1;let i=Array.from({length:t.length+1},(n,o)=>o);for(let n=1;n<=e.length;n+=1){let o=[n],a=n;for(let s=1;s<=t.length;s+=1){let c=e[n-1]===t[s-1]?0:1,l=Math.min((i[s]??0)+1,(o[s-1]??0)+1,(i[s-1]??0)+c);o[s]=l,a=Math.min(a,l)}if(a>r)return r+1;i=o}return i[t.length]??r+1}function NI(e,t){let r=Math.max(1,Math.floor(e.length/3)),i=e.toLowerCase(),n=null,o=r+1;for(let a of t){if(a.toLowerCase()===i)return a;let s=Xj(i,a.toLowerCase(),r);s<=r&&s<o&&(n=a,o=s)}return n}function Rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var je=e=>e.length>0?`/${e.join("/")}`:"/";function AI(e){return typeof e.type=="string"?[e.type]:Array.isArray(e.type)?e.type.filter(t=>typeof t=="string"):[]}function Fs(e,t){let r=[];return Um(e,t,[],r),r}function jI(e,t,r){let i=Fs(t,r);if(i.length>0)throw new Yt(e,i);return Rn(r)?r:{}}function Um(e,t,r,i){if(t===null&&(e.nullable===!0||AI(e).includes("null")))return;for(let a of["anyOf","oneOf"]){let s=e[a];if(!Array.isArray(s)||s.length===0)continue;s.some(l=>Rn(l)&&Fs(l,t).length===0)||i.push(`${je(r)} must match at least one allowed schema`);return}if(Object.hasOwn(e,"const")&&t!==e.const){i.push(`${je(r)} must equal ${JSON.stringify(e.const)}`);return}if(Array.isArray(e.enum)&&!e.enum.some(a=>a===t)){i.push(`${je(r)} must be one of ${e.enum.map(a=>JSON.stringify(a)).join(", ")}`);return}let n=AI(e).filter(a=>a!=="null"),o=n.length>0?n:Rn(e.properties)?["object"]:Rn(e.items)?["array"]:[];if(o.length!==0){if(o.length>1){o.some(s=>Fs({...e,type:s},t).length===0)||i.push(`${je(r)} must be one of the types ${o.join(", ")}`);return}Qj(o[0]??"",e,t,r,i)}}function Qj(e,t,r,i,n){e==="object"?eU(t,r,i,n):e==="array"?tU(t,r,i,n):e==="string"?nU(t,r,i,n):e==="integer"||e==="number"?iU(e,t,r,i,n):e==="boolean"&&typeof r!="boolean"&&n.push(`${je(i)} must be a boolean`)}function eU(e,t,r,i){if(!Rn(t)){i.push(`${je(r)} must be an object`);return}let n=Rn(e.properties)?e.properties:{},o=Array.isArray(e.required)?e.required.filter(a=>typeof a=="string"):[];for(let a of o)t[a]===void 0&&i.push(`${je([...r,a])} is required`);for(let[a,s]of Object.entries(t)){if(s===void 0)continue;let c=n[a];if(Rn(c))Um(c,s,[...r,a],i);else if(e.additionalProperties===!1){let l=NI(a,Object.keys(n));i.push(`${je([...r,a])} is not allowed${l?` (did you mean "${l}"?)`:""}`)}else Rn(e.additionalProperties)&&Um(e.additionalProperties,s,[...r,a],i)}}function tU(e,t,r,i){if(!Array.isArray(t)){i.push(`${je(r)} must be an array`);return}typeof e.minItems=="number"&&t.length<e.minItems&&i.push(`${je(r)} must contain at least ${e.minItems} items`),typeof e.maxItems=="number"&&t.length>e.maxItems&&i.push(`${je(r)} must contain no more than ${e.maxItems} items`);let n=e.items;Rn(n)&&t.forEach((o,a)=>{Um(n,o,[...r,String(a)],i)})}function nU(e,t,r,i){if(typeof t!="string"){i.push(`${je(r)} must be a string`);return}typeof e.minLength=="number"&&t.length<e.minLength&&i.push(`${je(r)} must have length at least ${e.minLength}`),typeof e.maxLength=="number"&&t.length>e.maxLength&&i.push(`${je(r)} must have length no greater than ${e.maxLength}`),typeof e.pattern=="string"&&!rU(e.pattern,t)&&i.push(`${je(r)} must match pattern ${e.pattern}`)}function rU(e,t){try{return new RegExp(e).test(t)}catch{return!0}}function iU(e,t,r,i,n){if(typeof r!="number"||Number.isNaN(r)||e==="integer"&&!Number.isInteger(r)){n.push(`${je(i)} must be ${e==="integer"?"an integer":"a number"}`);return}typeof t.minimum=="number"&&r<t.minimum&&n.push(`${je(i)} must be at least ${t.minimum}`),typeof t.maximum=="number"&&r>t.maximum&&n.push(`${je(i)} must be no greater than ${t.maximum}`)}var oU=e=>({content:[{type:"text",text:e}]});function aU(e,t){let{response:r}=e,i=e.file?wI(e.file):e.cut?String(e.body):null;if(i===null)return null;if(!r.ok){let n=m_(r.headers.get("retry-after"));throw Am(r.status,i,n,t)}return oU(e.file?i:jm(i,!1))}async function UI(e,t,r,i){let n=jI(t.name,t.inputSchema,r),o=await f_(await l_(e,t,n,i));TI(t,o.response.status,o.body)&&sU(e,t)&&(o=await f_(await l_(e,t,n,i,!0)));let a=aU(o,e);if(a)return a;let s=xI(t,o.response,o.body,e),c=tI(t.project,s,i),l=EI(t,o.body);return{content:[{type:"text",text:jm(PI(t,c,s))},...l?[{type:"text",text:jm(l)}]:[]]}}function sU(e,t){let{auth:r}=e.bundle;return t.sendsCredential?r.type==="oauth"||r.type==="apiKey"&&r.key==="perCaller":!1}function h_(e){if(typeof e=="object"&&e!==null){for(let t of Object.values(e))h_(t);Object.freeze(e)}return e}function LI(e,t){let r=h_(structuredClone(t));return h_({"~standard":{version:1,vendor:"sokie",validate:i=>{let n=Fs(r,i);return n.length===0?{value:i}:{issues:[{message:new Yt(e,n).message}]}},jsonSchema:{input:()=>r,output:()=>r}}})}var DI=new WeakMap;function qI(e){let t=DI.get(e);if(t)return t;let r=LI(e.name,e.inputSchema);return DI.set(e,r),r}var MI=new WeakMap;function VI(e){let t=MI.get(e);if(t)return t;let r={catalog:Object.freeze(e.map(i=>({name:i.name,title:i.title??i.name,description:i.description,tags:i.tags??[]}))),byName:new Map(e.map(i=>[i.name,i]))};return MI.set(e,r),r}async function ZI(e,t){try{return await e()}catch(r){if(!pc(r))return mc(r);let i=t.clientCapabilities();if(i&&!i.elicitation)return lU(r);if(t.era==="modern")return cU(r,t.inputRequired);throw r}}function cU(e,t){let r=Object.fromEntries(e.data.elicitations.map((i,n)=>[i.elicitationId||`elicitation_${n}`,t.elicitUrl({url:i.url,message:i.message})]));return t({inputRequests:r})}function lU(e){let t=e.data.elicitations.map(r=>r.message.includes(r.url)?`${r.message} Then run the tool again.`:`${r.message} Open this page, then run the tool again: ${r.url}`);return t.push("Reconnecting or signing in to Sokie again will not fix this; the credential has to be provided at that page."),{content:[{type:"text",text:t.join(" ")}],isError:!0,_meta:{...dc(e),errorClass:"POLICY_DENIED",retryable:!1,elicitationUndeliverable:!0,elicitationUrls:e.data.elicitations.map(r=>r.url)}}}function FI(e,t){return{era:t.era,inputRequired:er,clientCapabilities:()=>e.server.getClientCapabilities()}}function Lm(e,t,r,i){let n=e.registerTool.bind(e),{title:o,annotations:a}=r;n(t,o?{...r,annotations:{title:o,...a}}:r,i)}async function KI(e,t,r){e.call.tool=t;let i=await r();if(i.isError){e.call.isError=!0;let n=i._meta??{};typeof n.errorClass=="string"&&(e.call.errorClass=n.errorClass),typeof n.httpStatus=="number"&&(e.call.upstreamStatus=n.httpStatus)}return i}function BI(e,t,r,i,n,o){return KI(r,i.name,async()=>{let a=zm(t,r,i);if(a==="off")return Im(t,r,i);if(a==="ask"){let s=FI(e,r);try{let c=await Gz(t,r,i,n,{era:s.era,clientCapabilities:s.clientCapabilities,...o?.mcpReq?.inputResponses?{inputResponses:o.mcpReq.inputResponses}:{}});if(c!=="run")return c}catch(c){if(pc(c))throw c;return mc(c)}}return ZI(()=>UI(t,i,n,r),FI(e,r))})}function JI(e,t,r){for(let i of HS(t,r))Lm(e,i.name,{title:i.title,description:i.description,inputSchema:qI(i),...i.annotations?{annotations:i.annotations}:{}},(n,o)=>BI(e,t,r,i,n,o))}var g_=(e,t=!1)=>({content:[{type:"text",text:e}],...t?{isError:t}:{}});function HI(e,t,r){let{catalog:i,byName:n}=VI(HS(t,r)),o=a=>g_(`Unknown tool "${a??""}". Use searchTools to find tool names.`,!0);Lm(e,"searchTools",{title:"Search tools",description:"Find tools on this server by keyword. Returns names and summaries without input schemas; call getToolDefinition for a tool\'s schema, then useTool to run it.",inputSchema:xe.object({query:xe.string(),limit:xe.number().int().optional()})},async a=>{let{query:s="",limit:c=10}=a;return g_(JSON.stringify(Bo(i,s,c),null,2))}),Lm(e,"getToolDefinition",{title:"Get tool definition",description:"The full definition (description and input schema) of one tool, by exact name. Find names with searchTools.",inputSchema:xe.object({name:xe.string()})},async a=>{let s=n.get(a.name??"");if(!s)return o(a.name);let{name:c,title:l,description:u,inputSchema:m}=s;return g_(JSON.stringify({name:c,title:l,description:u,inputSchema:m},null,2))}),Lm(e,"useTool",{title:"Use tool",description:"Run a tool by exact name with its arguments. Get the argument shape from getToolDefinition first.",inputSchema:xe.object({name:xe.string(),arguments:xe.record(xe.string(),xe.unknown()).optional()})},async(a,s)=>{let{name:c,arguments:l}=a,u=n.get(c??""),m=u?null:t.bundle.tools.find(p=>p.name===c);return m?KI(r,m.name,async()=>Im(t,r,m)):u?BI(e,t,r,u,l??{},s):{...o(c),_meta:{error:`Unknown tool "${c??""}".`,errorClass:"BINDING_MISUSE",retryable:!1}}})}function YI(e,t){let r=e.registerPrompt.bind(e);for(let i of t){let n=Object.fromEntries(i.arguments.map(o=>[o.name,o.required?xe.string():xe.string().optional()]));r(i.name,{title:i.title,description:i.description,argsSchema:n},o=>({messages:[{role:"user",content:{type:"text",text:uU(i.template,o??{})}}]}))}}function uU(e,t){return e.replace(/\\{\\{\\s*([A-Za-z_][A-Za-z0-9_]*)\\s*\\}\\}/g,(r,i)=>{let n=t[i];return n==null?"":String(n)})}function GI(e,t){let r=e.registerResource.bind(e);for(let i of t){let{name:n,uri:o,title:a,description:s,mimeType:c,content:l}=i;r(n,o,{title:a,description:s,mimeType:c},async()=>({contents:[{uri:o,mimeType:c,text:l}]}))}}var dU=/^[A-Za-z][A-Za-z0-9_./-]{0,63}$/;async function WI(e){let t;try{t=await e.clone().json()}catch{return null}if(Array.isArray(t))return t.length>0?"batch":null;if(typeof t!="object"||t===null||!("method"in t))return null;let{method:r}=t;return typeof r=="string"&&dU.test(r)?r:null}var Gr="/.well-known/agent-skills/",Ks="/skills/",XI="x-sokie-read-skill";var QI="readSkill";function eT(e){return e.startsWith(Gr)||e.startsWith(Ks)}var mU=Uint32Array.from({length:256},(e,t)=>{let r=t;for(let i=0;i<8;i+=1)r=r&1?3988292384^r>>>1:r>>>1;return r>>>0});function pU(e){let t=4294967295;for(let r of e)t=(mU[(t^r)&255]??0)^t>>>8;return(t^4294967295)>>>0}function tT(e,t,{name:r,data:i,crc:n}){e.setUint16(t,20,!0),e.setUint16(t+2,2048,!0),e.setUint16(t+4,0,!0),e.setUint16(t+6,0,!0),e.setUint16(t+8,33,!0),e.setUint32(t+10,n,!0),e.setUint32(t+14,i.length,!0),e.setUint32(t+18,i.length,!0),e.setUint16(t+22,r.length,!0)}function v_(e){let t=new TextEncoder,r=0,i=e.map(({path:c,content:l})=>{let u=t.encode(c),m=t.encode(l),p={name:u,data:m,crc:pU(m),offset:r};return r+=30+u.length+m.length,p}),n=i.reduce((c,l)=>c+46+l.name.length,0),o=new Uint8Array(r+n+22),a=new DataView(o.buffer);for(let c of i)a.setUint32(c.offset,67324752,!0),tT(a,c.offset+4,c),o.set(c.name,c.offset+30),o.set(c.data,c.offset+30+c.name.length);let s=r;for(let c of i)a.setUint32(s,33639248,!0),a.setUint16(s+4,20,!0),tT(a,s+6,c),a.setUint32(s+42,c.offset,!0),o.set(c.name,s+46),s+=46+c.name.length;return a.setUint32(s,101010256,!0),a.setUint16(s+8,i.length,!0),a.setUint16(s+10,i.length,!0),a.setUint32(s+12,n,!0),a.setUint32(s+16,r,!0),o}var fU="https://schemas.agentskills.io/discovery/0.2.0/schema.json",hU="index.json",gU="marketplace.json",vU=new Set(["builtin","cargo","constructor","gh","github","inline","npm","pip","skills-dir","synced","uv"]),yU={"cache-control":"public, max-age=60","access-control-allow-origin":"*"},y_=e=>({"x-sokie-skill":e,"x-sokie-method":"skills/download"});async function rT(e){return[...new Uint8Array(await crypto.subtle.digest("SHA-256",e))].map(r=>r.toString(16).padStart(2,"0")).join("")}function Dm(e,t,r,i={}){return new Response(e.method==="HEAD"?null:t,{headers:{...yU,"content-type":r,...i}})}function b_(e){let t=e.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return t?vU.has(t)?`${t}-skills`:t:"server-skills"}function S_(e){return`${b_(e)}-plugin.zip`}function iT(e){return/^\\d+$/.test(e.version)?`1.0.${e.version}`:"1.0.0"}function oT(e,t){return t.files.map(({path:r,start:i,end:n})=>({path:r,content:e.slice(i,n)}))}function aT(e,t){return v_(oT(e,t))}function __(e){return`The skills for ${e.name}, and the server they use.`}function sT(e,t,r){let i=b_(e),n={name:i,version:iT(e),description:__(e)},o={mcpServers:{[i]:{type:"http",url:`${t}/mcp`}}};return v_([{path:".claude-plugin/plugin.json",content:`${JSON.stringify(n,null,2)}\n`},{path:".mcp.json",content:`${JSON.stringify(o,null,2)}\n`},...(e.skills??[]).flatMap(a=>oT(r,a).map(({path:s,content:c})=>({path:`skills/${a.frontmatter.name}/${s}`,content:c})))])}async function SU(e,t){let r=await Promise.all((e.skills??[]).map(async i=>{let{name:n,description:o}=i.frontmatter,[a,s]=i.files;return a&&!s?{name:n,type:"skill-md",description:o,url:`${Gr}${n}/SKILL.md`,digest:a.digest}:{name:n,type:"archive",description:o,url:`${Gr}${n}.zip`,digest:`sha256:${await rT(aT(await t(),i))}`}}));return{$schema:fU,skills:r}}async function _U(e,t,r){let i=b_(e);return{name:i,owner:{name:e.name},description:__(e),plugins:[{name:i,description:__(e),version:iT(e),source:{source:"archive",url:`${t}${Ks}${S_(e)}`,sha256:await rT(sT(e,t,await r()))}}]}}function nT(e,t){return e.skills?.find(r=>r.frontmatter.name===t)}async function cT(e,t,r){if(e.method!=="GET"&&e.method!=="HEAD")return new Response("Method not allowed",{status:405,headers:{allow:"GET, HEAD"}});let{pathname:i,origin:n}=new URL(e.url),o=async()=>(await r()).default,a=s=>Dm(e,JSON.stringify(s),"application/json");if(i===`${Gr}${hU}`)return a(await SU(t,o));if(i===`${Ks}${gU}`)return a(await _U(t,n,o));if(i===`${Ks}${S_(t)}`)return Dm(e,sT(t,n,await o()),"application/zip",{"content-disposition":`attachment; filename="${S_(t)}"`,...y_("*")});if(i.startsWith(Gr)){let s=i.slice(Gr.length),c=s.endsWith(".zip")?nT(t,s.slice(0,-4)):null;if(c)return Dm(e,aT(await o(),c),"application/zip",y_(c.frontmatter.name));let l=s.endsWith("/SKILL.md")?nT(t,s.slice(0,-9)):null,u=l?.files[0];if(l&&u)return Dm(e,(await o()).slice(u.start,u.end),"text/markdown",y_(l.frontmatter.name))}return new Response("Not found",{status:404})}var Wr="io.modelcontextprotocol/skills",Mm="skills/list",qm="skills/get",Vm="resources/directory/read",$_="inode/directory",Zm=Object.freeze({files:512,bytes:16777216}),bU=/^sha256:[\\da-f]{64}$/,$U=d().regex(bU,\'digest must be "sha256:" followed by 64 lowercase hexadecimal characters\'),kU=K({uri:d(),digest:$U,size:x().int().nonnegative()}),RU=K({name:d(),description:d()}).refine(e=>Object.getPrototypeOf(e)===Object.prototype,\'frontmatter must not have a "__proto__" field\'),wU=L([b(kU),$("dynamic")]),Fm=K({uri:d(),frontmatter:RU,resources:wU,_meta:A(d(),B()).optional()}),zU=Q(["public","private"]),k_={ttlMs:x().int().nonnegative(),cacheScope:zU},I2=K({...jt.shape,skills:b(Fm),...k_}),lT=Ee.extend({uri:d()}),T2=K({..._e.shape,skill:Fm,...k_}),IU=K(Dr.shape),uT=Hn.extend({uri:d()}),x2=K({...jt.shape,resources:b(IU),...k_}),E2=K({directoryRead:U().optional()});var Jm=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SkillCatalogError"})}static[Symbol.hasInstance](e){return _n(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SkillCatalogError.isInstance(value)`); for callbacks use `v => SkillCatalogError.isInstance(v)`");return _n(this,e)}problems;constructor(e){let t=e.map(r=>` ${r.path}: ${r.message}`).join(`\n`);super(`${e.length} skill problem${e.length===1?"":"s"}:\n${t}`),this.name="SkillCatalogError",this.problems=e,zs(this,new.target)}};function IT(e){console.warn(`[mcp-sdk] skills: ${e.path}: ${e.message}`)}var TU=new TextEncoder;function TT(e){return TU.encode(e)}function T_(e){try{return new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e)}catch{return}}function xT(e){let t="";for(let i=0;i<e.length;i+=32768)t+=String.fromCodePoint(...e.subarray(i,i+32768));return btoa(t)}function xU(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.codePointAt(i);return r}async function x_(e){let{buffer:t,byteOffset:r,byteLength:i}=e,n=t instanceof ArrayBuffer?new Uint8Array(t,r,i):new Uint8Array(e),o=new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",n)),a="";for(let s of o)a+=s.toString(16).padStart(2,"0");return`sha256:${a}`}var le=class extends Error{line;constructor(e,t){super(t===void 0?e:`line ${t}: ${e}`),this.name="FrontmatterError",this.line=t}},dT=32;function EU(e){let t=e.replaceAll(`\\r\n`,`\n`);if(t.codePointAt(0)===65279&&(t=t.slice(1)),!t.startsWith(`---\n`))throw new le(\'SKILL.md must begin with a "---" line\',1);let r=t.slice(4),i=/^---[\\t ]*$/m.exec(r);if(i===null)throw new le(\'frontmatter has no closing "---" line\');let n=r.slice(i.index+i[0].length);return n.startsWith(`\n`)&&(n=n.slice(1)),{yaml:r.slice(0,i.index),body:n}}function PU(e){let{yaml:t,body:r}=EU(e);return{frontmatter:OU(t,2),body:r}}function OU(e,t=1){return new AU(CU(e,t)).parseDocument()}function CU(e,t){let r=e.split(`\n`);return r.at(-1)===""&&r.pop(),r.map((i,n)=>({no:t+n,indent:/^ */.exec(i)?.[0].length??0,text:Js(i),raw:i}))}var Km="tabs cannot be used for indentation",NU=e=>e.text===""||e.text.startsWith("#"),R_=e=>e.raw[e.indent]==="\t",rr=e=>/^-(?:[\\t ]|$)/.test(e),AU=class{index=0;constructor(e){this.lines=e}parseDocument(){let e=this.peek();if(e===void 0)return{};if(e.text.startsWith("\\uFEFF"))throw new le("a byte order mark inside the frontmatter is not supported",e.no);if(rr(e.text)||Bm(e.text,e.no)===void 0)throw new le("frontmatter must be a mapping of keys to values",e.no);let t=this.parseMapping(e.indent,0),r=this.peek();if(r!==void 0)throw new le("unexpected content",r.no);return t}peek(){for(;this.index<this.lines.length&&NU(this.lines[this.index]);)this.index++;let e=this.lines[this.index];if(e!==void 0&&R_(e))throw new le(Km,e.no);return e}parseMapping(e,t){z_(t,this.lines[this.index]?.no);let r={};for(let i=this.peek();i!==void 0&&i.indent>=e;i=this.peek()){if(i.indent>e)throw new le("unexpected indentation",i.no);if(rr(i.text))break;let n=Bm(i.text,i.no);if(n===void 0)throw new le(\'expected "key: value"\',i.no);if(Object.hasOwn(r,n.key))throw new le(`duplicate key "${n.key}"`,i.no);this.index++,r[n.key]=this.parseValue(n.rest,i,e,t+1,!0)}return r}parseSequence(e,t){z_(t,this.lines[this.index]?.no);let r=[];for(let i=this.peek();i!==void 0&&i.indent>=e;i=this.peek()){if(i.indent>e)throw new le("unexpected indentation",i.no);if(!rr(i.text))break;let n=i.text.slice(1),o=Js(n),a=i.indent+1+(n.length-o.length);if(o!==""&&!o.startsWith("#")&&(rr(o)||Bm(o,i.no)!==void 0)){if(/^ *\\t/.test(n))throw new le(Km,i.no);this.lines[this.index]={...i,indent:a,text:o},r.push(rr(o)?this.parseSequence(a,t+1):this.parseMapping(a,t+1));continue}this.index++,r.push(this.parseValue(o,i,e,t+1,!1))}return r}parseValue(e,t,r,i,n){if(e===""||e.startsWith("#")){let a=this.peek();return a!==void 0&&a.indent>r?this.parseIndented(r,i):n&&a!==void 0&&a.indent===r&&rr(a.text)?this.parseSequence(r,i):null}let o=e[0];if(o==="|"||o===">")return this.parseBlockScalar(e,t,r);if(o===\'"\'||o==="\'"){let{value:a,end:s}=Ym(e,0,t.no);return fT(e.slice(s),t.no),a}if(o==="["||o==="{"){let{value:a,end:s}=OT(e,0,t.no,i);return fT(e.slice(s),t.no),a}if("&*!".includes(o))throw new le("anchors, aliases and tags are not supported",t.no);if("%@`,]}".includes(o))throw new le(`"${o}" cannot start a plain value; quote it`,t.no);if(rr(e)||/^\\?(?:[\\t ]|$)/.test(e))throw new le("a nested collection must start on its own line",t.no);return this.parsePlain(e,t,r)}parseIndented(e,t){let r=this.peek();return rr(r.text)?this.parseSequence(r.indent,t):Bm(r.text,r.no)!==void 0?this.parseMapping(r.indent,t):(this.index++,this.parseValue(r.text,r,e,t,!1))}parsePlain(e,t,r){let i=pT(e);mT(i,t.no);let n=I_.test(e),o=0;for(;this.index<this.lines.length;){let a=this.lines[this.index];if(a.text===""){o++,this.index++;continue}if(a.indent<=r||a.text.startsWith("#"))break;if(R_(a))throw new le(Km,a.no);if(n)throw new le("a comment ends a plain value; quote a value that continues past it",a.no);let s=pT(a.text);mT(s,a.no),n=I_.test(a.text),i+=o>0?`\n`.repeat(o):" ",i+=s,o=0,this.index++}return P_(i,t.no)}parseBlockScalar(e,t,r){let i=/^([>|])([+-]?)(?:[\\t ]+#.*)?[\\t ]*$/.exec(e);if(i===null)throw new le(/^[>|][+-]?\\d|^[>|]\\d/.test(e)?"block scalar indentation indicators are not supported":"invalid block scalar header",t.no);let n=[],o=-1,a=0;for(;this.index<this.lines.length;){let s=this.lines[this.index],c=s.indent===s.raw.length;if(o===-1&&!c&&s.indent>r&&(o=s.indent,a>o))throw new le("a leading blank line is indented more than the block scalar content",s.no);if(o!==-1&&s.indent>=o)n.push(s.raw.slice(o));else if(c)o===-1&&(a=Math.max(a,s.indent)),n.push("");else{if(R_(s))throw new le(Km,s.no);break}this.index++}return HU(n,i[1]===">",i[2]??"")}};function z_(e,t){if(e>dT)throw new le(`nesting deeper than ${dT} levels is not supported`,t)}function Bm(e,t){let r=e[0];if(r===\'"\'||r==="\'"){let{value:i,end:n}=Ym(e,0,t),o=e.slice(n);return o===":"||/^:[\\t ]/.test(o)?{key:E_(i,t),rest:Js(o.slice(1))}:void 0}if(r==="?")throw new le(\'complex keys ("?") are not supported\',t);if(!(r===void 0||"[]{}&*!|>%@`#,".includes(r)))for(let i=0;i<e.length;i++){let n=e[i],o=e[i-1];if(n==="#"&&(o===" "||o==="\t"))return;if(n===":"){let a=e[i+1];if(a===void 0||a===" "||a==="\t"){let s=Hm(e.slice(0,i));return s===""?void 0:{key:ET(s,t),rest:Js(e.slice(i+1))}}}}}function E_(e,t){if(e==="__proto__")throw new le(\'the key "__proto__" is not supported\',t);return e}function ET(e,t){if(typeof P_(e,t)!="string")throw new le(`key "${e}" must be a string; quote it`,t);return E_(e,t)}function mT(e,t){if(/:(?:[\\t ]|$)/.test(e))throw new le(\'a plain value cannot contain ": "; quote the value\',t)}var I_=/[\\t ]#/;function pT(e){let t=I_.exec(e);return Hm(t===null?e:e.slice(0,t.index))}function fT(e,t){if(!(Js(e)===""||/^[\\t ]+#/.test(e)))throw new le("unexpected text after the value",t)}function Js(e){return e.slice(ir(e,0))}function Hm(e){let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]==="\t");)t--;return e.slice(0,t)}var jU=/^(?:~|null|Null|NULL)$/,UU=/^(?:true|True|TRUE)$/,LU=/^(?:false|False|FALSE)$/,DU=/^[+-]?\\d+$/,MU=/^0o[0-7]+$/,qU=/^0x[\\dA-Fa-f]+$/,VU=/^[+-]?(?:\\.\\d+|\\d+(?:\\.\\d*)?)(?:[Ee][+-]?\\d+)?$/,ZU=/^(?:[+-]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$/;function P_(e,t){if(e===""||jU.test(e))return null;if(UU.test(e))return!0;if(LU.test(e))return!1;let r;if(DU.test(e)||VU.test(e)?r=Number(e):MU.test(e)?r=Number.parseInt(e.slice(2),8):qU.test(e)?r=Number.parseInt(e.slice(2),16):ZU.test(e)&&(r=NaN),r===void 0)return e;if(!Number.isFinite(r))throw new le(`"${e}" cannot be represented in JSON; quote it`,t);return r}var FU={0:"\\0",a:"\\x07",b:"\\b",t:"\t","\t":"\t",n:`\n`,v:"\\v",f:"\\f",r:"\\r",e:"\\x1B"," ":" ",\'"\':\'"\',"/":"/","\\\\":"\\\\",N:"\\x85",_:"\\xA0",L:"\\u2028",P:"\\u2029"},KU={x:2,u:4,U:8},PT="a quoted value must close on the same line (multi-line quoted values are not supported)";function Ym(e,t,r){let i=e[t],n="",o=t+1;for(;o<e.length;){let a=e[o];if(i==="\'"){if(a==="\'"){if(e[o+1]==="\'"){n+="\'",o+=2;continue}return{value:n,end:o+1}}n+=a,o++;continue}if(a===\'"\')return{value:n,end:o+1};if(a==="\\\\"){let s=BU(e,o,r);n+=s.decoded,o+=s.length;continue}n+=a,o++}throw new le(PT,r)}function BU(e,t,r){let i=e[t+1];if(i===void 0)throw new le(PT,r);let n=FU[i];if(n!==void 0)return{decoded:n,length:2};let o=KU[i];if(o===void 0)throw new le(`unknown escape "\\\\${i}"`,r);let a=e.slice(t+2,t+2+o);if(a.length!==o||!/^[\\dA-Fa-f]+$/.test(a)||Number.parseInt(a,16)>1114111)throw new le(`invalid escape "\\\\${i}${a}"`,r);return{decoded:String.fromCodePoint(Number.parseInt(a,16)),length:2+o}}function ir(e,t){let r=t;for(;e[r]===" "||e[r]==="\t";)r++;return r}var O_="a flow collection must close on the same line";function OT(e,t,r,i){z_(i,r);let n=e[t],o=n==="["?"]":"}",a=[],s={},c=ir(e,t+1);if(e[c]===o)return{value:n==="["?a:s,end:c+1};for(;;){if(n==="["){let u=hT(e,c,r,i);a.push(u.value),c=ir(e,u.end)}else{let u=JU(e,c,r),m=hT(e,u.end+1,r,i);if(Object.hasOwn(s,u.key))throw new le(`duplicate key "${u.key}"`,r);s[u.key]=m.value,c=ir(e,m.end)}let l=e[c];if(l===","){if(c=ir(e,c+1),e[c]===o)return{value:n==="["?a:s,end:c+1};continue}if(l===o)return{value:n==="["?a:s,end:c+1};throw l===void 0?new le(O_,r):new le(`unexpected "${l}" in a flow collection`,r)}}function JU(e,t,r){let i=ir(e,t),n=e[i];if(n===void 0)throw new le(O_,r);if(n===\'"\'||n==="\'"){let c=Ym(e,i,r),l=ir(e,c.end);if(e[l]!==":")throw new le(\'expected ": " after a key in a flow mapping\',r);return{key:E_(c.value,r),end:l}}if(n==="["||n==="{")throw new le("complex keys (flow collections as keys) are not supported",r);NT(e,i,r);let o=AT(e,i),a=Hm(e.slice(i,o)),s=e[o+1];if(a===""||e[o]!==":"||s!==" "&&s!=="\t")throw new le(\'expected "key: value" in a flow mapping\',r);return{key:ET(a,r),end:o}}var CT=" \t,[]{}";function NT(e,t,r){let i=e[t];if("&*!".includes(i))throw new le("anchors, aliases and tags are not supported",r);if("|>%@`#".includes(i)||"-?:".includes(i)&&CT.includes(e[t+1]??" "))throw new le(`"${i}" cannot start a plain value in a flow collection; quote it`,r)}function AT(e,t){let r=t;for(;r<e.length;){let i=e[r];if(",[]{}".includes(i)||i==="#"&&(e[r-1]===" "||e[r-1]==="\t")||i===":"&&CT.includes(e[r+1]??" "))break;r++}return r}function hT(e,t,r,i){let n=ir(e,t),o=e[n];if(o===void 0)throw new le(O_,r);if(o==="["||o==="{")return OT(e,n,r,i+1);if(o===\'"\'||o==="\'")return Ym(e,n,r);NT(e,n,r);let a=AT(e,n);if(e[a]===":")throw new le("mappings inside flow collections are not supported; quote the value",r);let s=Hm(e.slice(n,a));if(s==="")throw new le("empty value in a flow collection",r);return{value:P_(s,r),end:a}}function HU(e,t,r){let i="",n=0,o=!1,a=!1;for(let s of e){if(s===""){n++;continue}t?s.startsWith(" ")||s.startsWith("\t")?(a=!0,i+=`\n`.repeat(o?1+n:n)):a?(a=!1,i+=`\n`.repeat(n+1)):n===0?o&&(i+=" "):i+=`\n`.repeat(n):i+=`\n`.repeat(o?1+n:n),i+=s,o=!0,n=0}return r==="+"?i+=`\n`.repeat(o?1+n:n):r===""&&o&&(i+=`\n`),i}var YU=/[^\\w!$&\'()*+,.:;=@[\\]|~-]/gu;function C_(e){return e.replaceAll(YU,t=>encodeURIComponent(t))}function gT(e){return e==="."||e===".."?e.replaceAll(".","%2E"):C_(e)}function jT(e){let t=e.length;for(;t>0&&e.codePointAt(t-1)===47;)t--;return e.slice(0,t)}function N_(e,t){if(!e.endsWith("://"))return`${jT(e)}/${t.map(n=>gT(n)).join("/")}`;let[r,...i]=t;return r===void 0?e:[e+encodeURIComponent(r),...i.map(n=>gT(n))].join("/")}function Tt(e){try{return new URL(e).href}catch{return}}function GU(e){return Tt(e)===e}var WU="/SKILL.md";function XU(e){let t=Tt(e);if(t===void 0||!t.endsWith(WU))return;let r=t.slice(0,-9);return r.endsWith("/")?void 0:r}function UT(e){try{return decodeURIComponent(e)}catch{return e}}function vT(e){let t=new URL(e),r=t.pathname;return UT(r===""||r==="/"?t.host:r.slice(r.lastIndexOf("/")+1))}function QU(e,t){let r=Tt(t);return r===void 0||!r.startsWith(`${e}/`)?!1:r.slice(e.length+1).split("/").every(i=>{let n=UT(i);return n!==""&&n!=="."&&n!==".."&&!n.includes("/")&&!n.includes("\\0")})}function eL(e){try{return decodeURIComponent(e)}catch{return}}function tL(e){return e>=240?4:e>=224?3:e>=192?2:1}function nL(e){let t="";for(let r=0;r<e.length;){let i=3*tL(Number.parseInt(e.slice(r+1,r+3),16)),n=eL(e.slice(r,r+i));n===void 0?(t+=`%25${e.slice(r+1,r+3)}`,r+=3):(t+=C_(n),r+=i)}return t}var rL=/((?:%[\\dA-Fa-f]{2})+)/;function iL(e){return e.split(rL).map((t,r)=>r%2===0?C_(t):nL(t)).join("")}function oL(e,t){let r;try{r=new URL(t)}catch{return}r.hash="";let i=r.href;return i.includes("?")||!i.startsWith(`${e}/`)?i:`${e}/${i.slice(e.length+1).split("/").map(n=>iL(n)).join("/")}`}function Xr(e,t){return e<t?-1:e>t?1:0}var aL=/^[\\da-z]+(?:-[\\da-z]+)*$/,sL=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.values(e).every(t=>typeof t=="string");function yT(e){let t=0;for(let r=0;r<e.length;r+=e.codePointAt(r)>65535?2:1)t++;return t}function A_(e){let t=[],r=XU(e.uri);if(r===void 0)return[`uri "${e.uri}" must be a URI ending in /SKILL.md inside a named directory`];let i=e.frontmatter,{name:n,description:o}=e.frontmatter;n.length===0||n.length>64||!aL.test(n)?t.push(`frontmatter name "${n}" must be 1-64 lowercase letters, digits and single hyphens`):vT(r)!==n&&t.push(`frontmatter name "${n}" must match the last path segment "${vT(r)}"`),(o===""||yT(o)>1024)&&t.push("frontmatter description must be 1-1024 characters");let a=i.compatibility;if(a!==void 0&&(typeof a!="string"||a===""||yT(a)>500)&&t.push("frontmatter compatibility must be a string of 1-500 characters"),i.metadata!==void 0&&!sL(i.metadata)&&t.push("frontmatter metadata must map strings to strings"),e.resources!=="dynamic"){let s=Tt(e.uri),c=new Set,l=!1;for(let u of e.resources){let m=Tt(u.uri);if(m===void 0){t.push(`resource "${u.uri}" is not a valid URI`);continue}if(/[#?]/.test(m)){t.push(`resource "${u.uri}" must not have a query or fragment`);continue}let p=oL(r,m)??m;c.has(p)&&t.push(`resource "${u.uri}" is listed more than once`),c.add(p),m===s?l=!0:QU(r,u.uri)||t.push(`resource "${u.uri}" is outside the skill directory ${r}`)}l||t.push(`resources must include ${e.uri}`)}return t}function ST(e){let t=Fm.safeParse(e);return t.success?A_(t.data):t.error.issues.map(r=>`${r.path.join(".")||"(entry)"}: ${r.message}`)}async function LT(e,t){let r=t.find(s=>s.uri===e);if(r===void 0)return{problems:["SKILL.md is missing"]};let i=T_(r.bytes);if(i===void 0)return{problems:["SKILL.md is not valid UTF-8"]};let n;try{n=PU(i).frontmatter}catch(s){if(s instanceof le)return{problems:[`SKILL.md frontmatter: ${s.message}`]};throw s}if(typeof n.name!="string"||typeof n.description!="string")return{problems:[\'SKILL.md frontmatter must contain string "name" and "description"\']};let o=await Promise.all(t.map(async s=>({uri:s.uri,digest:await x_(s.bytes),size:s.bytes.byteLength})));o.sort((s,c)=>Xr(s.uri,c.uri));let a={uri:e,frontmatter:n,resources:o};return{skill:a,problems:A_(a)}}var _T={md:"text/markdown",markdown:"text/markdown",txt:"text/plain",json:"application/json",yaml:"application/yaml",yml:"application/yaml",py:"text/x-python",sh:"application/x-sh",bash:"application/x-sh",js:"text/javascript",mjs:"text/javascript",ts:"text/typescript",html:"text/html",css:"text/css",csv:"text/csv",xml:"application/xml",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",pdf:"application/pdf"};function cL(e){let t=e.lastIndexOf(".");if(t<=0)return"application/octet-stream";let r=e.slice(t+1).toLowerCase();return Object.hasOwn(_T,r)?_T[r]:"application/octet-stream"}var Hs=e=>e.slice(e.lastIndexOf("/")+1),Bs=e=>{let t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)},DT=e=>e instanceof Error?e.message:String(e),MT="symlinks and other special files are not followed; copy the file instead",w_=e=>e.kind!=="directory"&&Hs(e.path)==="SKILL.md";function qT(e,t,r){let i=e.get(t);i===void 0?e.set(t,[r]):i.push(r)}function lL(e,t){let r;try{r=e(t)}catch(i){if(i instanceof URIError)return;throw i}return GU(r)?r:void 0}async function uL(e){let t=[],r=async i=>{let n;try{n=await e.list(i)}catch(o){throw new Jm([{path:i===""?".":i,message:`cannot be listed: ${DT(o)}`}])}for(let o of n.toSorted((a,s)=>Xr(a.name,s.name))){if(o.name.startsWith("."))continue;let a=i===""?o.name:`${i}/${o.name}`;t.push({path:a,kind:o.kind}),o.kind==="directory"&&await r(a)}};return await r(""),t}async function dL(e,t){try{return await e.read(t)}catch(r){throw new Jm([{path:t,message:`cannot be read: ${DT(r)}`}])}}async function bT(e,t){let r=await uL(e),i=[],n=m=>{t.strict?i.push(m):t.warn(m)},o=m=>N_("skill://",[...t.prefix,...m.split("/")]);for(let m of r){let p=Hs(m.path);m.kind==="file"&&p!=="SKILL.md"&&p.toLowerCase()==="skill.md"&&t.warn({path:m.path,message:"did you mean SKILL.md? File names are case-sensitive"})}let a=new Set(r.filter(m=>w_(m)).map(m=>Bs(m.path))),s=new Map;for(let m of r){let p=!1;for(let f=Bs(m.path);f!=="";f=Bs(f))a.has(f)&&(p=!0,qT(s,f,m));!p&&m.kind==="unsupported"&&!w_(m)&&n({path:m.path,message:`${MT} (skipped)`})}let c=[],l=new Map,u=r.filter(m=>w_(m)).toSorted((m,p)=>p.path.split("/").length-m.path.split("/").length);for(let m of u){let p=Bs(m.path);if(p===""){n({path:m.path,message:"a SKILL.md at the root has no skill path; point loadSkills (or your adapter) at its parent folder (skipped)"});continue}let f=await mL(e,s.get(p)??[],p,o,t,n,l);f!==void 0&&c.push(f)}if(i.length>0)throw new Jm(i);return c.length===0&&t.warn({path:".",message:"no skills found (a skill is a folder containing SKILL.md)"}),pL(c,r,o)}async function mL(e,t,r,i,n,o,a){let s=t.find(y=>y.kind==="unsupported");if(s!==void 0){o({path:s.path,message:`${MT} (skill skipped)`});return}let c=`${r}/SKILL.md`,l=[],u=[];for(let y of t){let R=lL(i,y.path);if(R===void 0){o({path:y.path,message:"this name cannot be represented in a URI (skill skipped)"});return}if(y.kind!=="file")continue;let w=y.path===c,E=w?void 0:a.get(y.path);if(E===void 0){let D=await dL(e,y.path);w&&l.push({uri:R,bytes:D}),E={digest:await x_(D),size:D.byteLength},a.set(y.path,E)}u.push({path:y.path,uri:R,...E,mimeType:cL(Hs(y.path))})}let m=await LT(i(c),l),p=u.map(({uri:y,digest:R,size:w})=>({uri:y,digest:R,size:w})).toSorted((y,R)=>Xr(y.uri,R.uri)),f=m.skill===void 0?void 0:{...m.skill,resources:p},h=f===void 0?m.problems:A_(f);if(f===void 0||h.length>0){for(let y of h)o({path:c,message:`${y} (skill skipped)`});return}let v=0;for(let y of u)v+=y.size;if(u.length>n.limits.files||v>n.limits.bytes){let y=n.strict?"Raise limits to allow it":"Set strict: true to fail instead, or raise limits";o({path:r,message:`${u.length} files / ${v} bytes exceeds the limit of ${n.limits.files} files / ${n.limits.bytes} bytes; some hosts may decline it. ${y}`})}return{dir:r,skill:f,files:u,manifestSize:u.find(y=>y.path===c)?.size??0,inside:t}}function VT(e){if(typeof e=="object"&&e!==null&&!Object.isFrozen(e)){Object.freeze(e);for(let t of Object.values(e))VT(t)}return e}function pL(e,t,r){let i=Object.freeze(e.map(l=>VT(l.skill)).toSorted((l,u)=>Xr(l.uri,u.uri))),n=new Map,o=new Set;for(let l of e){for(let u of l.files)n.set(u.uri,u);o.add(l.dir);for(let u of l.inside)u.kind==="directory"&&o.add(u.path)}let a=new Map;for(let l of t)qT(a,Bs(l.path),l);let s=new Map;for(let l of o){let u=[];for(let m of a.get(l)??[]){if(m.kind==="directory"){u.push({uri:r(m.path),name:Hs(m.path),mimeType:$_});continue}let p=n.get(r(m.path));m.kind==="file"&&p!==void 0&&u.push({uri:p.uri,name:Hs(m.path),mimeType:p.mimeType,size:p.size})}u.sort((m,p)=>Xr(m.uri,p.uri)),s.set(r(l),u)}let c=e.map(l=>({uri:l.skill.uri,name:l.skill.frontmatter.name,description:l.skill.frontmatter.description,mimeType:"text/markdown",size:l.manifestSize})).toSorted((l,u)=>Xr(l.uri,u.uri));return{ordered:i,skills:new Map(i.map(l=>[l.uri,l])),files:n,dirs:s,listed:c}}var ZT=new WeakSet,FT="after:";function fL(e){return xT(TT(FT+e)).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function hL(e){try{let t=e.replaceAll("-","+").replaceAll("_","/"),r=T_(xU(t+"=".repeat((4-t.length%4)%4)));return r?.startsWith(FT)?r.slice(6):void 0}catch{return}}function $T(e,t,r,i){let n=0;if(t!==void 0){let c=hL(t);if(c===void 0)throw new j(O.InvalidParams,"Invalid cursor");n=e.findIndex(l=>Xr(i(l),c)>0),n===-1&&(n=e.length)}let o=Math.min(e.length,n+r),a=e.slice(n,o),s=a.at(-1);return o<e.length&&s!==void 0?{items:a,nextCursor:fL(i(s))}:{items:a}}function gL(e){if(e===void 0)return 100;if(e===Number.POSITIVE_INFINITY||Number.isSafeInteger(e)&&e>0)return e;throw new RangeError(`pageSize must be a positive integer or Infinity (got ${e})`)}var vL=e=>e instanceof Error?e.message:String(e);function yL(e,t,r,i){let n={async list({cursor:o}){let a=$T(e.current.ordered,o,r,s=>s.uri);return a.nextCursor===void 0?{skills:a.items}:{skills:a.items,nextCursor:a.nextCursor}},async get(o){let a=Tt(o);return a===void 0?void 0:e.current.skills.get(a)},read:o=>SL(e.current,t,o,i),async readDirectory(o,{cursor:a}){let s=Tt(o),c=s===void 0?void 0:e.current.dirs.get(s);if(c===void 0)return;let l=$T(c,a,r,u=>u.uri);return l.nextCursor===void 0?{resources:l.items}:{resources:l.items,nextCursor:l.nextCursor}},async listResources(){return[...e.current.listed]}};return ZT.add(n),n}async function SL(e,t,r,i){let n=Tt(r),o=n===void 0?void 0:e.files.get(n);if(o===void 0){if(n!==void 0&&e.dirs.has(n))throw new Fr(r,`${r} is a directory; use resources/directory/read`);return}let a;try{a=await t.read(o.path)}catch(c){throw i({path:o.path,message:`could not be read: ${vL(c)}`}),new j(O.InternalError,`${r} could not be read`)}if(a.byteLength!==o.size||await x_(a)!==o.digest)throw i({path:o.path,message:"changed since the catalog was loaded; call reload()"}),new j(O.InternalError,`${r} changed since the skills catalog was loaded`);let s=T_(a);return s===void 0?{bytes:a,mimeType:o.mimeType}:{text:s,mimeType:o.mimeType}}function KT(e,t){let r=e.split("/").filter(i=>i!==""&&i!==".");if(r.length===0||r.includes(".."))throw new TypeError(`${t} must be a relative path without ".." (got ${JSON.stringify(e)})`);return r}var _L=/^[a-z][\\d+.a-z-]*:\\/\\//i;function kT(e){let t=e?.uri;return typeof t=="string"?t:"(entry without a uri)"}function bL(e,t){let r=t.mimeType===void 0?{}:{mimeType:t.mimeType};return"text"in t?{uri:e,...r,text:t.text}:{uri:e,...r,blob:xT(t.bytes)}}var RT=new WeakSet,BT=new WeakMap,$L="another skills extension is already attached to this server; attach one per server (to serve several folders or sources, combine them behind one SkillFiles adapter or SkillSource)",Gm=class{id=Wr;#e;#r;#n;#t;#o;#a;#i;#c=new WeakSet;static load(e,t){return JT.load(e,t)}constructor(e){e.cacheHint!==void 0&&xs(e.cacheHint,"skills cacheHint");let t=e.baseUri??"skill://",r=_L.test(t)?Tt(t):void 0;if(r===void 0)throw new TypeError(`baseUri must be a "scheme://\\u2026" URI (got ${JSON.stringify(t)})`);this.#n=r.endsWith("://")?r:`${jT(r)}/`,this.#e=e.source,this.#r=ZT.has(e.source),this.#t=e.cacheHint,this.#o={ttlMs:e.cacheHint?.ttlMs??0,cacheScope:e.cacheHint?.cacheScope??"private"},this.#a=e.strict??!1,this.#i=e.onWarning??IT}attach(e){if(this.#c.has(e))return;if(e.isConnected())throw new Error("attach skills before connecting the server");if(RT.has(e))throw new Error($L);let t=e.server,r=this.#e.readDirectory!==void 0,i=this.#e.listResources===void 0?void 0:n=>this.#f(n);t.assertCanSetRequestHandler(Mm),t.assertCanSetRequestHandler(qm),r&&t.assertCanSetRequestHandler(Vm),e.registerResource(Wr,new US(`${this.#n}{+path}`,{list:i}),this.#t===void 0?{}:{cacheHint:this.#t},(n,o,a)=>this.#m(n,a)),t.setRequestHandler(Mm,{params:Hn},(n,o)=>this.#u(t,n.cursor,o)),t.setRequestHandler(qm,{params:lT},(n,o)=>this.#d(t,n.uri,o)),r&&t.setRequestHandler(Vm,{params:uT},(n,o)=>this.#p(t,n.uri,n.cursor,o)),t.registerCapabilities({extensions:{[Wr]:r?{directoryRead:!0}:{}}}),this.#c.add(e),RT.add(e),BT.get(this)?.(e)}#s(e){return Lt(e.getNegotiatedProtocolVersion()??"")?{...this.#o}:{}}#l(e){if(this.#r)return[...e];let t=[];for(let r of e){let i=ST(r);if(i.length===0){t.push(r);continue}let n=`invalid skill entry from the source: ${i.join("; ")}`;if(this.#a)throw new j(O.InternalError,`${kT(r)}: ${n}`);this.#i({path:kT(r),message:`${n} (dropped from skills/list)`})}return t}async#u(e,t,r){let i=await this.#e.list(t===void 0?{}:{cursor:t},r);return{skills:this.#l(i.skills),...i.nextCursor===void 0?{}:{nextCursor:i.nextCursor},...this.#s(e)}}async#d(e,t,r){let i=await this.#e.get(t,r);if(i===void 0)throw new j(O.InvalidParams,`No skill is served at ${t}`);if(!this.#r){let n=ST(i);if(n.length>0){let o=`invalid skill entry from the source: ${n.join("; ")}`;throw this.#i({path:t,message:o}),new j(O.InternalError,o)}}if(Tt(i.uri)!==Tt(t))throw new j(O.InternalError,`the skill source returned ${i.uri} for ${t}`);return{skill:i,...this.#s(e)}}async#m(e,t){let r=await this.#e.read(e.href,t);if(r===void 0)throw new Fr(e.href);return{contents:[bL(e.href,r)]}}async#p(e,t,r,i){let n=await this.#e.readDirectory(t,r===void 0?{}:{cursor:r},i);if(n===void 0)throw new j(O.InvalidParams,`${t} is not a directory resource`);return{resources:n.resources,...n.nextCursor===void 0?{}:{nextCursor:n.nextCursor},...this.#s(e)}}async#f(e){let t=await this.#e.listResources(e),r=[];for(let i of t)Tt(i.uri)?.startsWith(this.#n)?r.push(i):this.#i({path:i.uri,message:`listResources returned a URI outside ${this.#n}; dropped from resources/list`});return{resources:r}}},wT=1024;function kL(e){let t={files:e?.files??Zm.files,bytes:e?.bytes??Zm.bytes};for(let[r,i]of Object.entries(t))if(i!==Number.POSITIVE_INFINITY&&!(Number.isSafeInteger(i)&&i>0))throw new RangeError(`limits.${r} must be a positive integer or Infinity (got ${i})`);return t}function zT(e){return JSON.stringify(e.listed.map(t=>[t.uri,t.name,t.description]))}function RL(e,t){let r=i=>JSON.stringify(e.skills.get(i))===JSON.stringify(t.skills.get(i));return{added:[...t.skills.keys()].filter(i=>!e.skills.has(i)),removed:[...e.skills.keys()].filter(i=>!t.skills.has(i)),changed:[...t.skills.keys()].filter(i=>e.skills.has(i)&&!r(i))}}var JT=class HT extends Gm{#e;#r;#n;#t=new Set;#o=wT;#a=Promise.resolve();constructor(t){super(t.sourceOptions),this.#e=t.state,this.#r=t.files,this.#n=t.build,BT.set(this,r=>this.#i(r))}static async load(t,r={}){let i=gL(r.pageSize),n={prefix:r.prefix===void 0?[]:KT(r.prefix,"prefix"),limits:kL(r.limits),strict:r.strict??!1,warn:r.onWarning??IT},o={current:await bT(t,n)};return new HT({state:o,files:t,build:n,sourceOptions:{source:yL(o,t,i,n.warn),baseUri:n.prefix.length===0?"skill://":N_("skill://",n.prefix),cacheHint:r.cacheHint,strict:r.strict,onWarning:n.warn}})}get entries(){return this.#e.current.ordered}reload(){let t=this.#a.then(()=>this.#c());return this.#a=t.then(()=>{},()=>{}),t}#i(t){if(typeof WeakRef=="function"){if(this.#t.size>=this.#o){for(let r of this.#t)r.deref()===void 0&&this.#t.delete(r);this.#o=Math.max(wT,2*this.#t.size)}this.#t.add(new WeakRef(t))}}async#c(){let t=this.#e.current,r=await bT(this.#r,this.#n);this.#e.current=r;let i=zT(t)!==zT(r);return i&&this.#s(),{...RL(t,r),listChanged:i}}#s(){for(let t of this.#t){let r=t.deref();if(r===void 0){this.#t.delete(t);continue}if(!r.isConnected())continue;let i=r.server.transport?.sessionId;try{Promise.resolve(r.server.sendResourceListChanged()).catch(n=>this.#l(i,n))}catch(n){this.#l(i,n)}}}#l(t,r){let i=t===void 0?"":` to session ${t}`,n=r instanceof Error?r.message:String(r);try{this.#n.warn({path:"resources/list_changed",message:`could not be sent${i}: ${n}`})}catch{}}};var wL=20,YT=300,zL=100,IL="io.modelcontextprotocol/clientCapabilities",j_=(e,t)=>`skill://${e}/${t}`,GT=new WeakMap;function WT(e){let t=GT.get(e);if(t)return t;let r=e.map(o=>{let{name:a}=o.frontmatter;return{uri:j_(a,"SKILL.md"),frontmatter:o.frontmatter,resources:o.files.map(({path:s,digest:c,size:l})=>({uri:j_(a,s),digest:c,size:l}))}}),i=new Map(e.flatMap(o=>o.files.map(a=>[j_(o.frontmatter.name,a.path),{skill:o.frontmatter.name,file:a}]))),n={entries:r,byUri:new Map(r.map(o=>[o.uri,o])),files:i,byName:new Map(e.map(o=>[o.frontmatter.name,o])),catalog:e.map(({frontmatter:o})=>({name:o.name,title:o.name,description:o.description,tags:[]}))};return GT.set(e,n),n}function TL(e){return e.endsWith(".md")?"text/markdown":e.endsWith(".json")?"application/json":"text/plain"}async function L_(e,t){let{default:r}=await e();return r.slice(t.start,t.end)}function xL(e,t,r){return{async list({cursor:i}){let n=Number(i??0);if(!Number.isInteger(n)||n<0)return{skills:[]};let o=n+zL;return{skills:e.entries.slice(n,o),...o<e.entries.length?{nextCursor:String(o)}:{}}},async get(i){return e.byUri.get(i)},async read(i){let n=e.files.get(i);if(n)return r(n.skill),{text:await L_(t,n.file),mimeType:TL(n.file.path)}}}}function XT(e,t,r,i,n){let o=xL(WT(t.bundle.skills??[]),i,a=>{r.call.skill=a});new Gm({source:o,cacheHint:n}).attach(e)}async function QT(e){try{return(await e.clone().json())?.params?._meta?.[IL]?.extensions?.[Wr]!==void 0}catch{return!1}}function ex(e){let t="This server has skills: instructions for whole jobs. Before a job that one fits, read it with readSkill.";if(e.length>wL)return`${t} Find one with readSkill and search.`;let r=e.map(({frontmatter:{name:i,description:n}})=>{let o=n.length>YT?`${n.slice(0,YT)}...`:n;return`- ${i}: ${o}`});return`${t}\n\n${r.join(`\n`)}`}var vo=e=>({content:[{type:"text",text:e}]});function U_(e){return{...vo(e),isError:!0,_meta:{error:e,errorClass:"BINDING_MISUSE",retryable:!1}}}function EL(e,t){let r=Bo(e.catalog,t);return r.length===0?vo(`No skill matches "${t}".`):vo(r.map(({name:i,description:n})=>`${i}: ${n}`).join(`\n`))}async function PL(e,t){let[r,...i]=e.files;if(!r)return U_(`${e.frontmatter.name} has no files.`);let n=await L_(t,r);if(i.length===0)return vo(n);let o=i.map(({path:a})=>a).join(", ");return vo(`${n}\n\nMore files in this skill, read with readSkill and file: ${o}`)}function tx(e,t,r,i){let n=WT(t.bundle.skills??[]);e.registerTool(QI,{title:"Read skill",description:"Read the instructions for a whole job on this server before you start it. Pass name for one skill, with file for one of its other files, or search to find skills that fit.",inputSchema:xe.object({name:xe.string().optional(),file:xe.string().optional(),search:xe.string().optional()}),annotations:{title:"Read skill",readOnlyHint:!0,idempotentHint:!0,openWorldHint:!1}},async({name:o,file:a,search:s})=>{if(o===void 0)return EL(n,s??"");let c=n.byName.get(o);if(!c)return U_(`No skill named ${o}. Find one with readSkill and search.`);if(r.call.skill=o,a===void 0)return await PL(c,i);let l=c.files.find(u=>u.path===a);return l?vo(await L_(i,l)):U_(`${o} has no file ${a}.`)})}function ox(e){return{ttlMs:6e4,cacheScope:e.accessMode==="public"?"public":"private"}}function CL(e){let t=ox(e);return{"tools/list":t,"prompts/list":t,"resources/list":t,"resources/templates/list":t,"resources/read":t,"server/discover":t}}function nx(e,t,r){let i=r&&!r.noReadSkill?ex(e.bundle.skills??[]):null,n=new fo({name:e.bundle.name,version:e.bundle.version},{cacheHints:CL(e),...i?{instructions:i}:{}});return e.bundle.discovery==="search"?HI(n,e,t):JI(n,e,t),e.bundle.prompts.length>0&&YI(n,e.bundle.prompts),e.bundle.resources.length>0&&GI(n,e.bundle.resources),r&&(XT(n,e,t,r.load,ox(e)),r.noReadSkill||tx(n,e,t,r.load)),n}async function NL(e,t,r,i){if(await Ez(e)){let o=nx(t,{...r,era:"legacy"},i),a=new VS({sessionIdGenerator:void 0,enableJsonResponse:!0});return await o.connect(a),await a.handleRequest(e)}return await Pz(o=>nx(t,{...r,era:o.era},i),{legacy:"reject",responseMode:"json"}).fetch(e)}var AL="Send one JSON-RPC message per request: batches aren\'t supported.";function jL(){return Response.json({jsonrpc:"2.0",id:null,error:{code:-32600,message:AL}},{status:400})}function UL(e){let t=e==="GET"?"This MCP endpoint is stateless and offers no server-initiated stream. Send JSON-RPC requests with POST.":"This MCP endpoint is stateless and issues no session to end.";return Response.json({jsonrpc:"2.0",id:null,error:{code:-32e3,message:t}},{status:405,headers:{allow:"POST"}})}function ax(e,t){let r=t.SOKIE_COMMIT?.trim(),i=t.SOKIE_DEPLOYMENT_ID?.trim();return{runtime:Ho,version:e.version,...r?{commit:r}:{},...i?{deployment:i}:{}}}function rx(e,t,r){let i=new URL(e.url).origin,n=Lz(BS(t));return Response.json({status:"ok",message:`This is an MCP server. Connect an MCP client to ${i}/mcp.`,authentication:{required:n.protected,summary:n.summary},...ax(r,t),endpoints:{health:`${i}/health`,mcp:`${i}/mcp`}})}var D_=/^[\\x21-\\x7e]{1,128}$/;function ix(e,t,r){let i=t.projection.applied&&t.projection.preBytes>0,n=t.call.tool!==null&&D_.test(t.call.tool)?t.call.tool:null,o=t.call.skill&&D_.test(t.call.skill)?t.call.skill:null;if(!i&&n===null&&o===null&&r===null)return e;let a=new Headers(e.headers);if(r!==null&&a.set("x-sokie-method",r),o!==null&&a.set("x-sokie-skill",o),i&&(a.set("x-sokie-projection-pre-bytes",String(t.projection.preBytes)),a.set("x-sokie-projection-post-bytes",String(t.projection.postBytes))),n!==null){a.set("x-sokie-tool",n),t.call.ask&&a.set("x-sokie-ask",t.call.ask),t.call.isError&&a.set("x-sokie-tool-error","1");let{errorClass:s,upstreamStatus:c}=t.call;t.call.isError&&s!==null&&D_.test(s)&&a.set("x-sokie-tool-error-class",s),t.call.isError&&c!==null&&Number.isInteger(c)&&a.set("x-sokie-upstream-status",String(c))}return new Response(e.body,{status:e.status,statusText:e.statusText,headers:a})}function LL(e,t){let r=e.headers.get(ep)?.trim()??null,i=Jo(r);return i?{policy:i,policyText:r}:{policy:t.policy,policyText:t.policyText}}function DL(e,t){async function r(i,n){let{pathname:o}=new URL(i.url);if(o==="/health")return Response.json({status:"ok",...ax(e,n)});if(o==="/")return rx(i,n,e);if(t&&eT(o))return await cT(i,e,t);if(o!=="/mcp")return new Response("Not found",{status:404});if(i.method==="GET"&&(i.headers.get("accept")??"").includes("text/html"))return rx(i,n,e);let a=Vz(e,n),s=await Dz(i,a);if(s.response)return s.response;if(i.method==="GET"||i.method==="DELETE")return UL(i.method);let c=Zz({userId:s.userId,runtimeToken:s.token,clientName:s.clientName,connection:s.connection,clientUrl:s.clientUrl,readOnly:s.readOnly,...LL(i,a)}),l=await WI(i);if(l==="batch")return jL();let u=await Kz(i,a,c);if(u)return c.call={...c.call,tool:u.tool,isError:!0,errorClass:"POLICY_DENIED"},ix(u.response,c,l);let m=t&&(e.skills??[]).length>0?{load:t,noReadSkill:i.headers.get(XI)==="off"||await QT(i)}:null;return ix(await NL(i,a,c,m),c,l)}return{handleRequest:r,bundle:e}}function ML(e){return{fetch:(t,r)=>e.handleRequest(t,r)}}export{ep as POLICY_HEADER,Ho as RUNTIME_VERSION,Yt as ToolInputError,Pt as UpstreamHttpError,jz as audienceMatches,ZS as bearerToken,dc as classifyToolError,DL as defineServer,tp as effectiveLevel,fc as levelOf,Jo as parsePolicy,Az as previousKeyInWindow,Bo as searchCatalog,hx as serializePolicy,ML as toWorkerHandler,FS as verifyRuntimeToken};\n';
68255
68271
 
68256
68272
  // ../runtime/worker/modules.ts
68257
68273
  var COMPATIBILITY_DATE = "2026-08-04";