@opengeni/runtime 3.0.1 → 4.0.0-canary.35585322809001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/codemode-client.json +1 -0
- package/dist/chunk-4A4XTKKX.js +1 -0
- package/dist/{chunk-RIJ6DCYS.js → chunk-HCGLD7NH.js} +9817 -9494
- package/dist/chunk-HCGLD7NH.js.map +1 -0
- package/dist/{chunk-FHGLYLBL.js → chunk-SPT3PLMX.js} +1 -87
- package/dist/chunk-SPT3PLMX.js.map +1 -0
- package/dist/{chunk-GB763TSV.js → chunk-TE27J65Q.js} +1 -1
- package/dist/chunk-TE27J65Q.js.map +1 -0
- package/dist/{chunk-46BFUGFL.js → chunk-WIHICNWS.js} +1660 -388
- package/dist/chunk-WIHICNWS.js.map +1 -0
- package/dist/{chunk-UU6EJR52.js → chunk-YU4VRTR4.js} +2 -2
- package/dist/chunk-YU4VRTR4.js.map +1 -0
- package/dist/chunk-ZG2YH25H.js +94 -0
- package/dist/chunk-ZG2YH25H.js.map +1 -0
- package/dist/codex-tool-search.d.ts +5 -4
- package/dist/context-compaction.d.ts +19 -0
- package/dist/gmail-rest-mcp.js +1 -1
- package/dist/index.d.ts +30 -22
- package/dist/index.js +25 -5
- package/dist/lazy-manifest-OEYEHNVY.js +45 -0
- package/dist/lazy-manifest-OEYEHNVY.js.map +1 -0
- package/dist/lazy-manifest.d.ts +6 -0
- package/dist/lazy-tool-transport.d.ts +3 -2
- package/dist/{localSources-PVFCAPN2.js → localSources-TWHTEKGO.js} +3 -2
- package/dist/localSources-TWHTEKGO.js.map +1 -0
- package/dist/metrics.d.ts +6 -0
- package/dist/operational-instructions.d.ts +1 -1
- package/dist/prepared-compaction-request.d.ts +8 -0
- package/dist/provider-history-adapter.d.ts +2 -2
- package/dist/runtime-skills.d.ts +3 -10
- package/dist/sandbox/codemode-client.d.ts +17 -0
- package/dist/sandbox/codemode-token.d.ts +3 -3
- package/dist/sandbox/index.d.ts +2 -1
- package/dist/sandbox/index.js +8 -2
- package/dist/sandbox/materialization-verification-error.d.ts +27 -0
- package/dist/sandbox/provider-command-session.d.ts +44 -2
- package/dist/sandbox/providers/modal-command-control.d.ts +32 -29
- package/dist/sandbox/providers/modal-command-router-wire.d.ts +49 -0
- package/dist/sandbox/providers/modal-command-session.d.ts +2 -1
- package/dist/sandbox/providers/modal-legacy-command-control.d.ts +50 -0
- package/dist/sandbox/providers/modal-materialization-verification.d.ts +7 -0
- package/dist/sandbox/providers/modal.d.ts +0 -8
- package/dist/sandbox/routing/routing-session.d.ts +21 -0
- package/dist/sandbox/turn-tool-cancellation.d.ts +1 -0
- package/dist/skill-library.d.ts +0 -6
- package/dist/skill-library.js +1 -1
- package/dist/workspace-tool-gateway.js +7 -5
- package/package.json +13 -11
- package/src/bundled_artifact_skills/opengeni-documents/SKILL.md +19 -0
- package/src/bundled_artifact_skills/opengeni-documents/references/api.md +22 -0
- package/src/bundled_default_skills/opengeni-client/SKILL.md +349 -0
- package/src/bundled_default_skills/opengeni-client/agents/openai.yaml +4 -0
- package/src/bundled_default_skills/opengeni-client/references/api-workflows.md +256 -0
- package/src/bundled_default_skills/opengeni-client/references/compatibility-and-troubleshooting.md +84 -0
- package/src/bundled_default_skills/opengeni-client/references/customer-skill-template.md +96 -0
- package/src/bundled_default_skills/opengeni-client/references/data-tools-and-credentials.md +99 -0
- package/src/bundled_default_skills/opengeni-client/references/discovery-and-autonomy.md +81 -0
- package/src/bundled_default_skills/opengeni-client/references/external-users-and-connect.md +457 -0
- package/src/bundled_default_skills/opengeni-client/references/isolation-and-authorization.md +77 -0
- package/src/bundled_default_skills/opengeni-client/references/product-integration-shapes.md +232 -0
- package/src/bundled_default_skills/opengeni-client/references/product-shapes-and-ui.md +116 -0
- package/src/bundled_default_skills/opengeni-client/references/runtime-profile-and-verification.md +157 -0
- package/src/bundled_default_skills/opengeni-help/SKILL.md +101 -0
- package/src/bundled_management_skills/opengeni-skills/SKILL.md +33 -3
- package/src/codex-tool-search.ts +13 -5
- package/src/context-compaction.ts +87 -4
- package/src/gmail-rest-mcp.ts +1 -2
- package/src/index.ts +363 -131
- package/src/lazy-manifest.ts +55 -0
- package/src/lazy-tool-transport.ts +15 -2
- package/src/metrics.ts +6 -0
- package/src/model-request-capture.ts +3 -0
- package/src/operational-instructions.ts +11 -2
- package/src/prepared-compaction-request.ts +51 -0
- package/src/provider-history-adapter.ts +12 -3
- package/src/runtime-skills.ts +3 -17
- package/src/sandbox/codemode-client.ts +204 -0
- package/src/sandbox/codemode-token.ts +7 -2
- package/src/sandbox/index.ts +7 -0
- package/src/sandbox/materialization-verification-error.ts +65 -0
- package/src/sandbox/provider-command-session.ts +70 -2
- package/src/sandbox/providers/modal-command-control.ts +386 -242
- package/src/sandbox/providers/modal-command-router-wire.ts +248 -0
- package/src/sandbox/providers/modal-command-session.ts +177 -4
- package/src/sandbox/providers/modal-legacy-command-control.ts +351 -0
- package/src/sandbox/providers/modal-materialization-verification.ts +122 -0
- package/src/sandbox/providers/modal.ts +1 -9
- package/src/sandbox/routing/routing-session.ts +417 -79
- package/src/sandbox/turn-tool-cancellation.ts +38 -2
- package/src/skill-catalog.ts +1 -0
- package/src/skill-library.ts +0 -6
- package/src/workspace-governance.ts +0 -1
- package/src/workspace-skills.ts +114 -74
- package/dist/chunk-46BFUGFL.js.map +0 -1
- package/dist/chunk-FHGLYLBL.js.map +0 -1
- package/dist/chunk-GB763TSV.js.map +0 -1
- package/dist/chunk-RIJ6DCYS.js.map +0 -1
- package/dist/chunk-UU6EJR52.js.map +0 -1
- /package/dist/{localSources-PVFCAPN2.js.map → chunk-4A4XTKKX.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":{"ogtool":"#!/usr/bin/env node\nvar{defineProperty:An,getOwnPropertyNames:Am,getOwnPropertyDescriptor:Zm}=Object,Cm=Object.prototype.hasOwnProperty;function Rm(e){return this[e]}var Lm=(e)=>{var r=(Ys??=new WeakMap).get(e),o;if(r)return r;if(r=An({},\"__esModule\",{value:!0}),e&&typeof e===\"object\"||typeof e===\"function\"){for(var i of Am(e))if(!Cm.call(r,i))An(r,i,{get:Rm.bind(e,i),enumerable:!(o=Zm(e,i))||o.enumerable})}return Ys.set(e,r),r},Ys;var Vm=(e)=>e;function Fm(e,r){this[e]=Vm.bind(null,r)}var Y=(e,r)=>{for(var o in r)An(e,o,{get:r[o],enumerable:!0,configurable:!0,set:Fm.bind(r,o)})};var Sv={};Y(Sv,{listProjection:()=>Ws,parseToolArguments:()=>Em,resolveTool:()=>Ks,showOutput:()=>Dm});module.exports=Lm(Sv);var jm=require(\"node:crypto\"),Pe=require(\"node:fs\");var bm=require(\"node:crypto\");var p={};Y(p,{$brand:()=>Cn,$input:()=>ec,$output:()=>Qa,NEVER:()=>Zn,TimePrecision:()=>ic,ZodAny:()=>Bu,ZodArray:()=>Qu,ZodBase64:()=>yn,ZodBase64URL:()=>_n,ZodBigInt:()=>ut,ZodBigIntFormat:()=>kn,ZodBoolean:()=>ct,ZodCIDRv4:()=>hn,ZodCIDRv6:()=>$n,ZodCUID:()=>ln,ZodCUID2:()=>dn,ZodCatch:()=>bs,ZodCodec:()=>Gt,ZodCustom:()=>qt,ZodCustomStringFormat:()=>it,ZodDate:()=>Lt,ZodDefault:()=>gs,ZodDiscriminatedUnion:()=>ts,ZodE164:()=>bn,ZodEmail:()=>cn,ZodEmoji:()=>un,ZodEnum:()=>nt,ZodError:()=>_g,ZodExactOptional:()=>ms,ZodFile:()=>ls,ZodFirstPartyTypeKind:()=>Us,ZodFunction:()=>Ps,ZodGUID:()=>Nt,ZodIPv4:()=>gn,ZodIPv6:()=>vn,ZodISODate:()=>en,ZodISODateTime:()=>Qr,ZodISODuration:()=>rn,ZodISOTime:()=>tn,ZodIntersection:()=>rs,ZodIssueCode:()=>xg,ZodJWT:()=>xn,ZodKSUID:()=>fn,ZodLazy:()=>Ts,ZodLiteral:()=>ss,ZodMAC:()=>Fu,ZodMap:()=>cs,ZodNaN:()=>ks,ZodNanoID:()=>sn,ZodNever:()=>Yu,ZodNonOptional:()=>On,ZodNull:()=>Ku,ZodNullable:()=>fs,ZodNumber:()=>at,ZodNumberFormat:()=>ze,ZodObject:()=>Ft,ZodOptional:()=>Tn,ZodPipe:()=>Mt,ZodPrefault:()=>hs,ZodPreprocess:()=>ws,ZodPromise:()=>js,ZodReadonly:()=>Is,ZodRealError:()=>M,ZodRecord:()=>rt,ZodSet:()=>us,ZodString:()=>ot,ZodStringFormat:()=>O,ZodSuccess:()=>_s,ZodSymbol:()=>Gu,ZodTemplateLiteral:()=>Ss,ZodTransform:()=>ds,ZodTuple:()=>os,ZodType:()=>I,ZodULID:()=>mn,ZodURL:()=>Rt,ZodUUID:()=>re,ZodUndefined:()=>qu,ZodUnion:()=>Jt,ZodUnknown:()=>Xu,ZodVoid:()=>Hu,ZodXID:()=>pn,ZodXor:()=>es,_ZodString:()=>an,_default:()=>vs,_function:()=>Gd,any:()=>xd,array:()=>Vt,base64:()=>id,base64url:()=>ad,bigint:()=>hd,boolean:()=>Mu,catch:()=>xs,check:()=>qd,cidrv4:()=>nd,cidrv6:()=>od,clone:()=>Z,codec:()=>Vd,coerce:()=>Ns,config:()=>D,core:()=>ae,cuid:()=>Bl,cuid2:()=>Xl,custom:()=>Kd,date:()=>wd,decode:()=>Nu,decodeAsync:()=>Zu,describe:()=>Wd,discriminatedUnion:()=>jd,e164:()=>cd,email:()=>Rl,emoji:()=>Kl,encode:()=>Uu,encodeAsync:()=>Au,endsWith:()=>qe,enum:()=>zn,exactOptional:()=>ps,file:()=>Zd,flattenError:()=>$t,float32:()=>pd,float64:()=>fd,formatError:()=>yt,fromJSONSchema:()=>tm,function:()=>Gd,getErrorMap:()=>wg,globalRegistry:()=>N,gt:()=>ee,gte:()=>R,guid:()=>Ll,hash:()=>md,hex:()=>dd,hostname:()=>ld,httpUrl:()=>ql,includes:()=>Me,instanceof:()=>Xd,int:()=>nn,int32:()=>gd,int64:()=>$d,intersection:()=>ns,invertCodec:()=>Fd,ipv4:()=>ed,ipv6:()=>rd,iso:()=>tt,json:()=>Hd,jwt:()=>ud,keyof:()=>Id,ksuid:()=>Ql,lazy:()=>Os,length:()=>we,literal:()=>Ad,locales:()=>jt,looseObject:()=>Td,looseRecord:()=>Dd,lowercase:()=>Fe,lt:()=>Q,lte:()=>q,mac:()=>td,map:()=>Ed,maxLength:()=>ke,maxSize:()=>me,meta:()=>Bd,mime:()=>Ke,minLength:()=>ie,minSize:()=>te,multipleOf:()=>de,nan:()=>Ld,nanoid:()=>Wl,nativeEnum:()=>Nd,negative:()=>Mr,never:()=>wn,nonnegative:()=>qr,nonoptional:()=>ys,nonpositive:()=>Gr,normalize:()=>We,null:()=>Wu,nullable:()=>Zt,nullish:()=>Cd,number:()=>Ju,object:()=>zd,optional:()=>At,overwrite:()=>B,parse:()=>ju,parseAsync:()=>Pu,partialRecord:()=>Pd,pipe:()=>on,positive:()=>Jr,prefault:()=>$s,preprocess:()=>Qd,prettifyError:()=>Xn,promise:()=>Md,property:()=>Kr,readonly:()=>zs,record:()=>as,refine:()=>Ds,regex:()=>Ve,regexes:()=>G,registry:()=>xr,safeDecode:()=>Ru,safeDecodeAsync:()=>Vu,safeEncode:()=>Cu,safeEncodeAsync:()=>Lu,safeParse:()=>Du,safeParseAsync:()=>Eu,set:()=>Ud,setErrorMap:()=>kg,size:()=>xe,slugify:()=>He,startsWith:()=>Ge,strictObject:()=>Sd,string:()=>Ut,stringFormat:()=>sd,stringbool:()=>Yd,success:()=>Rd,superRefine:()=>Es,symbol:()=>_d,templateLiteral:()=>Jd,toJSONSchema:()=>Yr,toLowerCase:()=>Xe,toUpperCase:()=>Ye,transform:()=>Sn,treeifyError:()=>Bn,trim:()=>Be,tuple:()=>is,uint32:()=>vd,uint64:()=>yd,ulid:()=>Yl,undefined:()=>bd,union:()=>In,unknown:()=>Ie,uppercase:()=>Je,url:()=>Gl,util:()=>h,uuid:()=>Vl,uuidv4:()=>Fl,uuidv6:()=>Jl,uuidv7:()=>Ml,void:()=>kd,xid:()=>Hl,xor:()=>Od});var ae={};Y(ae,{$ZodAny:()=>zi,$ZodArray:()=>Pi,$ZodAsyncError:()=>H,$ZodBase64:()=>vi,$ZodBase64URL:()=>hi,$ZodBigInt:()=>$r,$ZodBigIntFormat:()=>xi,$ZodBoolean:()=>kt,$ZodCIDRv4:()=>pi,$ZodCIDRv6:()=>fi,$ZodCUID:()=>ti,$ZodCUID2:()=>ri,$ZodCatch:()=>Bi,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>Po,$ZodCheckEndsWith:()=>Jo,$ZodCheckGreaterThan:()=>dr,$ZodCheckIncludes:()=>Vo,$ZodCheckLengthEquals:()=>Zo,$ZodCheckLessThan:()=>lr,$ZodCheckLowerCase:()=>Ro,$ZodCheckMaxLength:()=>No,$ZodCheckMaxSize:()=>Do,$ZodCheckMimeType:()=>Go,$ZodCheckMinLength:()=>Ao,$ZodCheckMinSize:()=>Eo,$ZodCheckMultipleOf:()=>Oo,$ZodCheckNumberFormat:()=>jo,$ZodCheckOverwrite:()=>qo,$ZodCheckProperty:()=>Mo,$ZodCheckRegex:()=>Co,$ZodCheckSizeEquals:()=>Uo,$ZodCheckStartsWith:()=>Fo,$ZodCheckStringFormat:()=>Re,$ZodCheckUpperCase:()=>Lo,$ZodCodec:()=>It,$ZodCustom:()=>na,$ZodCustomStringFormat:()=>_i,$ZodDate:()=>ji,$ZodDefault:()=>Gi,$ZodDiscriminatedUnion:()=>Ui,$ZodE164:()=>$i,$ZodEmail:()=>Yo,$ZodEmoji:()=>Qo,$ZodEncodeError:()=>$e,$ZodEnum:()=>Ri,$ZodError:()=>ht,$ZodExactOptional:()=>Ji,$ZodFile:()=>Vi,$ZodFunction:()=>ea,$ZodGUID:()=>Bo,$ZodIPv4:()=>li,$ZodIPv6:()=>di,$ZodISODate:()=>ci,$ZodISODateTime:()=>ai,$ZodISODuration:()=>si,$ZodISOTime:()=>ui,$ZodIntersection:()=>Ni,$ZodJWT:()=>yi,$ZodKSUID:()=>ii,$ZodLazy:()=>ra,$ZodLiteral:()=>Li,$ZodMAC:()=>mi,$ZodMap:()=>Zi,$ZodNaN:()=>Xi,$ZodNanoID:()=>ei,$ZodNever:()=>Ti,$ZodNonOptional:()=>Ki,$ZodNull:()=>Ii,$ZodNullable:()=>Mi,$ZodNumber:()=>hr,$ZodNumberFormat:()=>bi,$ZodObject:()=>Ol,$ZodObjectJIT:()=>Di,$ZodOptional:()=>_r,$ZodPipe:()=>br,$ZodPrefault:()=>qi,$ZodPreprocess:()=>Yi,$ZodPromise:()=>ta,$ZodReadonly:()=>Hi,$ZodRealError:()=>J,$ZodRecord:()=>Ai,$ZodRegistry:()=>tc,$ZodSet:()=>Ci,$ZodString:()=>be,$ZodStringFormat:()=>T,$ZodSuccess:()=>Wi,$ZodSymbol:()=>ki,$ZodTemplateLiteral:()=>Qi,$ZodTransform:()=>Fi,$ZodTuple:()=>yr,$ZodType:()=>w,$ZodULID:()=>ni,$ZodURL:()=>Ho,$ZodUUID:()=>Xo,$ZodUndefined:()=>wi,$ZodUnion:()=>wt,$ZodUnknown:()=>Si,$ZodVoid:()=>Oi,$ZodXID:()=>oi,$ZodXor:()=>Ei,$brand:()=>Cn,$constructor:()=>l,$input:()=>ec,$output:()=>Qa,Doc:()=>mr,JSONSchema:()=>Al,JSONSchemaGenerator:()=>Iu,NEVER:()=>Zn,TimePrecision:()=>ic,_any:()=>zc,_array:()=>Ec,_base64:()=>Rr,_base64url:()=>Lr,_bigint:()=>yc,_boolean:()=>hc,_catch:()=>mg,_check:()=>Nl,_cidrv4:()=>Zr,_cidrv6:()=>Cr,_coercedBigint:()=>_c,_coercedBoolean:()=>$c,_coercedDate:()=>Pc,_coercedNumber:()=>dc,_coercedString:()=>nc,_cuid:()=>jr,_cuid2:()=>Pr,_custom:()=>Nc,_date:()=>jc,_decode:()=>rr,_decodeAsync:()=>or,_default:()=>sg,_discriminatedUnion:()=>Yf,_e164:()=>Vr,_email:()=>kr,_emoji:()=>Tr,_encode:()=>tr,_encodeAsync:()=>nr,_endsWith:()=>qe,_enum:()=>ng,_file:()=>Uc,_float32:()=>pc,_float64:()=>fc,_gt:()=>ee,_gte:()=>R,_guid:()=>Pt,_includes:()=>Me,_int:()=>mc,_int32:()=>gc,_int64:()=>bc,_intersection:()=>Hf,_ipv4:()=>Nr,_ipv6:()=>Ar,_isoDate:()=>cc,_isoDateTime:()=>ac,_isoDuration:()=>sc,_isoTime:()=>uc,_jwt:()=>Fr,_ksuid:()=>Ur,_lazy:()=>vg,_length:()=>we,_literal:()=>ig,_lowercase:()=>Fe,_lt:()=>Q,_lte:()=>q,_mac:()=>oc,_map:()=>tg,_max:()=>q,_maxLength:()=>ke,_maxSize:()=>me,_mime:()=>Ke,_min:()=>R,_minLength:()=>ie,_minSize:()=>te,_multipleOf:()=>de,_nan:()=>Dc,_nanoid:()=>Or,_nativeEnum:()=>og,_negative:()=>Mr,_never:()=>Tc,_nonnegative:()=>qr,_nonoptional:()=>lg,_nonpositive:()=>Gr,_normalize:()=>We,_null:()=>Ic,_nullable:()=>ug,_number:()=>lc,_optional:()=>cg,_overwrite:()=>B,_parse:()=>Ne,_parseAsync:()=>Ae,_pipe:()=>pg,_positive:()=>Jr,_promise:()=>hg,_property:()=>Kr,_readonly:()=>fg,_record:()=>eg,_refine:()=>Ac,_regex:()=>Ve,_safeDecode:()=>ar,_safeDecodeAsync:()=>ur,_safeEncode:()=>ir,_safeEncodeAsync:()=>cr,_safeParse:()=>Ze,_safeParseAsync:()=>Ce,_set:()=>rg,_size:()=>xe,_slugify:()=>He,_startsWith:()=>Ge,_string:()=>rc,_stringFormat:()=>Qe,_stringbool:()=>Lc,_success:()=>dg,_superRefine:()=>Zc,_symbol:()=>kc,_templateLiteral:()=>gg,_toLowerCase:()=>Xe,_toUpperCase:()=>Ye,_transform:()=>ag,_trim:()=>Be,_tuple:()=>Qf,_uint32:()=>vc,_uint64:()=>xc,_ulid:()=>Dr,_undefined:()=>wc,_union:()=>Bf,_unknown:()=>Sc,_uppercase:()=>Je,_url:()=>Dt,_uuid:()=>wr,_uuidv4:()=>Ir,_uuidv6:()=>zr,_uuidv7:()=>Sr,_void:()=>Oc,_xid:()=>Er,_xor:()=>Xf,clone:()=>Z,config:()=>D,createStandardJSONSchemaMethod:()=>et,createToJSONSchemaMethod:()=>Vc,decode:()=>vp,decodeAsync:()=>$p,describe:()=>Cc,encode:()=>gp,encodeAsync:()=>hp,extractDefs:()=>fe,finalize:()=>ge,flattenError:()=>$t,formatError:()=>yt,globalConfig:()=>he,globalRegistry:()=>N,initializeContext:()=>pe,isValidBase64:()=>gi,isValidBase64URL:()=>Il,isValidJWT:()=>zl,locales:()=>jt,meta:()=>Rc,parse:()=>Qt,parseAsync:()=>er,prettifyError:()=>Xn,process:()=>S,regexes:()=>G,registry:()=>xr,safeDecode:()=>_p,safeDecodeAsync:()=>xp,safeEncode:()=>yp,safeEncodeAsync:()=>bp,safeParse:()=>Yn,safeParseAsync:()=>Hn,toDotPath:()=>ol,toJSONSchema:()=>Yr,treeifyError:()=>Bn,util:()=>h,version:()=>Ko});var Hs,Zn=Object.freeze({status:\"aborted\"});function l(e,r,o){function i(c,u){if(!c._zod)Object.defineProperty(c,\"_zod\",{value:{def:u,constr:a,traits:new Set},enumerable:!1});if(c._zod.traits.has(e))return;c._zod.traits.add(e),r(c,u);let s=a.prototype,d=Object.keys(s);for(let f=0;f<d.length;f++){let _=d[f];if(!(_ in c))c[_]=s[_].bind(c)}}let t=o?.Parent??Object;class n extends t{}Object.defineProperty(n,\"name\",{value:e});function a(c){var u;let s=o?.Parent?new n:this;i(s,c),(u=s._zod).deferred??(u.deferred=[]);for(let d of s._zod.deferred)d();return s}return Object.defineProperty(a,\"init\",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:(c)=>{if(o?.Parent&&c instanceof o.Parent)return!0;return c?._zod?.traits?.has(e)}}),Object.defineProperty(a,\"name\",{value:e}),a}var Cn=Symbol(\"zod_brand\");class H extends Error{constructor(){super(\"Encountered Promise during synchronous parse. Use .parseAsync() instead.\")}}class $e extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name=\"ZodEncodeError\"}}(Hs=globalThis).__zod_globalConfig??(Hs.__zod_globalConfig={});var he=globalThis.__zod_globalConfig;function D(e){if(e)Object.assign(he,e);return he}var h={};Y(h,{BIGINT_FORMAT_RANGES:()=>Kn,Class:()=>rl,NUMBER_FORMAT_RANGES:()=>qn,aborted:()=>le,allowsEval:()=>Fn,assert:()=>Km,assertEqual:()=>Jm,assertIs:()=>Gm,assertNever:()=>qm,assertNotEqual:()=>Mm,assignProp:()=>ue,base64ToUint8Array:()=>el,base64urlToUint8Array:()=>lp,cached:()=>Ee,captureStackTrace:()=>Ht,cleanEnum:()=>sp,cleanRegex:()=>pt,clone:()=>Z,cloneDef:()=>Bm,createTransparentProxy:()=>tp,defineLazy:()=>z,esc:()=>Yt,escapeRegex:()=>K,explicitlyAborted:()=>Wn,extend:()=>op,finalizeIssue:()=>C,floatSafeRemainder:()=>Ln,getElementAtPath:()=>Xm,getEnumValues:()=>mt,getLengthableOrigin:()=>vt,getParsedType:()=>ep,getSizableOrigin:()=>gt,hexToUint8Array:()=>mp,isObject:()=>ye,isPlainObject:()=>se,issue:()=>Ue,joinValues:()=>m,jsonStringifyReplacer:()=>De,merge:()=>ap,mergeDefs:()=>oe,normalizeParams:()=>b,nullish:()=>ce,numKeys:()=>Qm,objectClone:()=>Wm,omit:()=>np,optionalKeys:()=>Gn,parsedType:()=>v,partial:()=>cp,pick:()=>rp,prefixIssues:()=>F,primitiveTypes:()=>Mn,promiseAllObject:()=>Ym,propertyKeyTypes:()=>ft,randomString:()=>Hm,required:()=>up,safeExtend:()=>ip,shallowClone:()=>Jn,slugify:()=>Vn,stringifyPrimitive:()=>g,uint8ArrayToBase64:()=>tl,uint8ArrayToBase64url:()=>dp,uint8ArrayToHex:()=>pp,unwrapMessage:()=>dt});function Jm(e){return e}function Mm(e){return e}function Gm(e){}function qm(e){throw Error(\"Unexpected value in exhaustive check\")}function Km(e){}function mt(e){let r=Object.values(e).filter((i)=>typeof i===\"number\");return Object.entries(e).filter(([i,t])=>r.indexOf(+i)===-1).map(([i,t])=>t)}function m(e,r=\"|\"){return e.map((o)=>g(o)).join(r)}function De(e,r){if(typeof r===\"bigint\")return r.toString();return r}function Ee(e){return{get value(){{let o=e();return Object.defineProperty(this,\"value\",{value:o}),o}throw Error(\"cached value already set\")}}}function ce(e){return e===null||e===void 0}function pt(e){let r=e.startsWith(\"^\")?1:0,o=e.endsWith(\"$\")?e.length-1:e.length;return e.slice(r,o)}function Ln(e,r){let o=e/r,i=Math.round(o),t=Number.EPSILON*Math.max(Math.abs(o),1);if(Math.abs(o-i)<t)return 0;return o-i}var Qs=Symbol(\"evaluating\");function z(e,r,o){let i=void 0;Object.defineProperty(e,r,{get(){if(i===Qs)return;if(i===void 0)i=Qs,i=o();return i},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Wm(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ue(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function oe(...e){let r={};for(let o of e){let i=Object.getOwnPropertyDescriptors(o);Object.assign(r,i)}return Object.defineProperties({},r)}function Bm(e){return oe(e._zod.def)}function Xm(e,r){if(!r)return e;return r.reduce((o,i)=>o?.[i],e)}function Ym(e){let r=Object.keys(e),o=r.map((i)=>e[i]);return Promise.all(o).then((i)=>{let t={};for(let n=0;n<r.length;n++)t[r[n]]=i[n];return t})}function Hm(e=10){let o=\"\";for(let i=0;i<e;i++)o+=\"abcdefghijklmnopqrstuvwxyz\"[Math.floor(Math.random()*26)];return o}function Yt(e){return JSON.stringify(e)}function Vn(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,\"\").replace(/[\\s_-]+/g,\"-\").replace(/^-+|-+$/g,\"\")}var Ht=\"captureStackTrace\"in Error?Error.captureStackTrace:(...e)=>{};function ye(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}var Fn=Ee(()=>{if(he.jitless)return!1;if(typeof navigator<\"u\"&&navigator?.userAgent?.includes(\"Cloudflare\"))return!1;try{return new Function(\"\"),!0}catch(e){return!1}});function se(e){if(ye(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;if(typeof r!==\"function\")return!0;let o=r.prototype;if(ye(o)===!1)return!1;if(Object.prototype.hasOwnProperty.call(o,\"isPrototypeOf\")===!1)return!1;return!0}function Jn(e){if(se(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}function Qm(e){let r=0;for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))r++;return r}var ep=(e)=>{let r=typeof e;switch(r){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\":if(Array.isArray(e))return\"array\";if(e===null)return\"null\";if(e.then&&typeof e.then===\"function\"&&e.catch&&typeof e.catch===\"function\")return\"promise\";if(typeof Map<\"u\"&&e instanceof Map)return\"map\";if(typeof Set<\"u\"&&e instanceof Set)return\"set\";if(typeof Date<\"u\"&&e instanceof Date)return\"date\";if(typeof File<\"u\"&&e instanceof File)return\"file\";return\"object\";default:throw Error(`Unknown data type: ${r}`)}},ft=new Set([\"string\",\"number\",\"symbol\"]),Mn=new Set([\"string\",\"number\",\"bigint\",\"boolean\",\"symbol\",\"undefined\"]);function K(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function Z(e,r,o){let i=new e._zod.constr(r??e._zod.def);if(!r||o?.parent)i._zod.parent=e;return i}function b(e){let r=e;if(!r)return{};if(typeof r===\"string\")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw Error(\"Cannot specify both `message` and `error` params\");r.error=r.message}if(delete r.message,typeof r.error===\"string\")return{...r,error:()=>r.error};return r}function tp(e){let r;return new Proxy({},{get(o,i,t){return r??(r=e()),Reflect.get(r,i,t)},set(o,i,t,n){return r??(r=e()),Reflect.set(r,i,t,n)},has(o,i){return r??(r=e()),Reflect.has(r,i)},deleteProperty(o,i){return r??(r=e()),Reflect.deleteProperty(r,i)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,i){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(o,i,t){return r??(r=e()),Reflect.defineProperty(r,i,t)}})}function g(e){if(typeof e===\"bigint\")return e.toString()+\"n\";if(typeof e===\"string\")return`\"${e}\"`;return`${e}`}function Gn(e){return Object.keys(e).filter((r)=>e[r]._zod.optin===\"optional\"&&e[r]._zod.optout===\"optional\")}var qn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Kn={int64:[BigInt(\"-9223372036854775808\"),BigInt(\"9223372036854775807\")],uint64:[BigInt(0),BigInt(\"18446744073709551615\")]};function rp(e,r){let o=e._zod.def,i=o.checks;if(i&&i.length>0)throw Error(\".pick() cannot be used on object schemas containing refinements\");let n=oe(e._zod.def,{get shape(){let a={};for(let c in r){if(!(c in o.shape))throw Error(`Unrecognized key: \"${c}\"`);if(!r[c])continue;a[c]=o.shape[c]}return ue(this,\"shape\",a),a},checks:[]});return Z(e,n)}function np(e,r){let o=e._zod.def,i=o.checks;if(i&&i.length>0)throw Error(\".omit() cannot be used on object schemas containing refinements\");let n=oe(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in r){if(!(c in o.shape))throw Error(`Unrecognized key: \"${c}\"`);if(!r[c])continue;delete a[c]}return ue(this,\"shape\",a),a},checks:[]});return Z(e,n)}function op(e,r){if(!se(r))throw Error(\"Invalid input to extend: expected a plain object\");let o=e._zod.def.checks;if(o&&o.length>0){let n=e._zod.def.shape;for(let a in r)if(Object.getOwnPropertyDescriptor(n,a)!==void 0)throw Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}let t=oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r};return ue(this,\"shape\",n),n}});return Z(e,t)}function ip(e,r){if(!se(r))throw Error(\"Invalid input to safeExtend: expected a plain object\");let o=oe(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return ue(this,\"shape\",i),i}});return Z(e,o)}function ap(e,r){if(e._zod.def.checks?.length)throw Error(\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\");let o=oe(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r._zod.def.shape};return ue(this,\"shape\",i),i},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return Z(e,o)}function cp(e,r,o){let t=r._zod.def.checks;if(t&&t.length>0)throw Error(\".partial() cannot be used on object schemas containing refinements\");let a=oe(r._zod.def,{get shape(){let c=r._zod.def.shape,u={...c};if(o)for(let s in o){if(!(s in c))throw Error(`Unrecognized key: \"${s}\"`);if(!o[s])continue;u[s]=e?new e({type:\"optional\",innerType:c[s]}):c[s]}else for(let s in c)u[s]=e?new e({type:\"optional\",innerType:c[s]}):c[s];return ue(this,\"shape\",u),u},checks:[]});return Z(r,a)}function up(e,r,o){let i=oe(r._zod.def,{get shape(){let t=r._zod.def.shape,n={...t};if(o)for(let a in o){if(!(a in n))throw Error(`Unrecognized key: \"${a}\"`);if(!o[a])continue;n[a]=new e({type:\"nonoptional\",innerType:t[a]})}else for(let a in t)n[a]=new e({type:\"nonoptional\",innerType:t[a]});return ue(this,\"shape\",n),n}});return Z(r,i)}function le(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function Wn(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function F(e,r){return r.map((o)=>{var i;return(i=o).path??(i.path=[]),o.path.unshift(e),o})}function dt(e){return typeof e===\"string\"?e:e?.message}function C(e,r,o){let i=e.message?e.message:dt(e.inst?._zod.def?.error?.(e))??dt(r?.error?.(e))??dt(o.customError?.(e))??dt(o.localeError?.(e))??\"Invalid input\",{inst:t,continue:n,input:a,...c}=e;if(c.path??(c.path=[]),c.message=i,r?.reportInput)c.input=a;return c}function gt(e){if(e instanceof Set)return\"set\";if(e instanceof Map)return\"map\";if(e instanceof File)return\"file\";return\"unknown\"}function vt(e){if(Array.isArray(e))return\"array\";if(typeof e===\"string\")return\"string\";return\"unknown\"}function v(e){let r=typeof e;switch(r){case\"number\":return Number.isNaN(e)?\"nan\":\"number\";case\"object\":{if(e===null)return\"null\";if(Array.isArray(e))return\"array\";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&\"constructor\"in o&&o.constructor)return o.constructor.name}}return r}function Ue(...e){let[r,o,i]=e;if(typeof r===\"string\")return{message:r,code:\"custom\",input:o,inst:i};return{...r}}function sp(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map((r)=>r[1])}function el(e){let r=atob(e),o=new Uint8Array(r.length);for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o}function tl(e){let r=\"\";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function lp(e){let r=e.replace(/-/g,\"+\").replace(/_/g,\"/\"),o=\"=\".repeat((4-r.length%4)%4);return el(r+o)}function dp(e){return tl(e).replace(/\\+/g,\"-\").replace(/\\//g,\"_\").replace(/=/g,\"\")}function mp(e){let r=e.replace(/^0x/,\"\");if(r.length%2!==0)throw Error(\"Invalid hex string length\");let o=new Uint8Array(r.length/2);for(let i=0;i<r.length;i+=2)o[i/2]=Number.parseInt(r.slice(i,i+2),16);return o}function pp(e){return Array.from(e).map((r)=>r.toString(16).padStart(2,\"0\")).join(\"\")}class rl{constructor(...e){}}var nl=(e,r)=>{e.name=\"$ZodError\",Object.defineProperty(e,\"_zod\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\"issues\",{value:r,enumerable:!1}),e.message=JSON.stringify(r,De,2),Object.defineProperty(e,\"toString\",{value:()=>e.message,enumerable:!1})},ht=l(\"$ZodError\",nl),J=l(\"$ZodError\",nl,{Parent:Error});function $t(e,r=(o)=>o.message){let o={},i=[];for(let t of e.issues)if(t.path.length>0)o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t));else i.push(r(t));return{formErrors:i,fieldErrors:o}}function yt(e,r=(o)=>o.message){let o={_errors:[]},i=(t,n=[])=>{for(let a of t.issues)if(a.code===\"invalid_union\"&&a.errors.length)a.errors.map((c)=>i({issues:c},[...n,...a.path]));else if(a.code===\"invalid_key\")i({issues:a.issues},[...n,...a.path]);else if(a.code===\"invalid_element\")i({issues:a.issues},[...n,...a.path]);else{let c=[...n,...a.path];if(c.length===0)o._errors.push(r(a));else{let u=o,s=0;while(s<c.length){let d=c[s];if(s!==c.length-1)u[d]=u[d]||{_errors:[]};else u[d]=u[d]||{_errors:[]},u[d]._errors.push(r(a));u=u[d],s++}}}};return i(e),o}function Bn(e,r=(o)=>o.message){let o={errors:[]},i=(t,n=[])=>{var a,c;for(let u of t.issues)if(u.code===\"invalid_union\"&&u.errors.length)u.errors.map((s)=>i({issues:s},[...n,...u.path]));else if(u.code===\"invalid_key\")i({issues:u.issues},[...n,...u.path]);else if(u.code===\"invalid_element\")i({issues:u.issues},[...n,...u.path]);else{let s=[...n,...u.path];if(s.length===0){o.errors.push(r(u));continue}let d=o,f=0;while(f<s.length){let _=s[f],y=f===s.length-1;if(typeof _===\"string\")d.properties??(d.properties={}),(a=d.properties)[_]??(a[_]={errors:[]}),d=d.properties[_];else d.items??(d.items=[]),(c=d.items)[_]??(c[_]={errors:[]}),d=d.items[_];if(y)d.errors.push(r(u));f++}}};return i(e),o}function ol(e){let r=[],o=e.map((i)=>typeof i===\"object\"?i.key:i);for(let i of o)if(typeof i===\"number\")r.push(`[${i}]`);else if(typeof i===\"symbol\")r.push(`[${JSON.stringify(String(i))}]`);else if(/[^\\w$]/.test(i))r.push(`[${JSON.stringify(i)}]`);else{if(r.length)r.push(\".\");r.push(i)}return r.join(\"\")}function Xn(e){let r=[],o=[...e.issues].sort((i,t)=>(i.path??[]).length-(t.path??[]).length);for(let i of o)if(r.push(`✖ ${i.message}`),i.path?.length)r.push(` → at ${ol(i.path)}`);return r.join(`\n`)}var Ne=(e)=>(r,o,i,t)=>{let n=i?{...i,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},n);if(a instanceof Promise)throw new H;if(a.issues.length){let c=new(t?.Err??e)(a.issues.map((u)=>C(u,n,D())));throw Ht(c,t?.callee),c}return a.value},Qt=Ne(J),Ae=(e)=>async(r,o,i,t)=>{let n=i?{...i,async:!0}:{async:!0},a=r._zod.run({value:o,issues:[]},n);if(a instanceof Promise)a=await a;if(a.issues.length){let c=new(t?.Err??e)(a.issues.map((u)=>C(u,n,D())));throw Ht(c,t?.callee),c}return a.value},er=Ae(J),Ze=(e)=>(r,o,i)=>{let t=i?{...i,async:!1}:{async:!1},n=r._zod.run({value:o,issues:[]},t);if(n instanceof Promise)throw new H;return n.issues.length?{success:!1,error:new(e??ht)(n.issues.map((a)=>C(a,t,D())))}:{success:!0,data:n.value}},Yn=Ze(J),Ce=(e)=>async(r,o,i)=>{let t=i?{...i,async:!0}:{async:!0},n=r._zod.run({value:o,issues:[]},t);if(n instanceof Promise)n=await n;return n.issues.length?{success:!1,error:new e(n.issues.map((a)=>C(a,t,D())))}:{success:!0,data:n.value}},Hn=Ce(J),tr=(e)=>(r,o,i)=>{let t=i?{...i,direction:\"backward\"}:{direction:\"backward\"};return Ne(e)(r,o,t)},gp=tr(J),rr=(e)=>(r,o,i)=>Ne(e)(r,o,i),vp=rr(J),nr=(e)=>async(r,o,i)=>{let t=i?{...i,direction:\"backward\"}:{direction:\"backward\"};return Ae(e)(r,o,t)},hp=nr(J),or=(e)=>async(r,o,i)=>Ae(e)(r,o,i),$p=or(J),ir=(e)=>(r,o,i)=>{let t=i?{...i,direction:\"backward\"}:{direction:\"backward\"};return Ze(e)(r,o,t)},yp=ir(J),ar=(e)=>(r,o,i)=>Ze(e)(r,o,i),_p=ar(J),cr=(e)=>async(r,o,i)=>{let t=i?{...i,direction:\"backward\"}:{direction:\"backward\"};return Ce(e)(r,o,t)},bp=cr(J),ur=(e)=>async(r,o,i)=>Ce(e)(r,o,i),xp=ur(J);var G={};Y(G,{base64:()=>go,base64url:()=>sr,bigint:()=>xo,boolean:()=>wo,browserEmail:()=>jp,cidrv4:()=>po,cidrv6:()=>fo,cuid:()=>Qn,cuid2:()=>eo,date:()=>$o,datetime:()=>_o,domain:()=>Ep,duration:()=>io,e164:()=>ho,email:()=>co,emoji:()=>uo,extendedDuration:()=>kp,guid:()=>ao,hex:()=>Up,hostname:()=>Dp,html5Email:()=>Sp,httpProtocol:()=>vo,idnEmail:()=>Op,integer:()=>ko,ipv4:()=>so,ipv6:()=>lo,ksuid:()=>no,lowercase:()=>So,mac:()=>mo,md5_base64:()=>Ap,md5_base64url:()=>Zp,md5_hex:()=>Np,nanoid:()=>oo,null:()=>Io,number:()=>_t,rfc5322Email:()=>Tp,sha1_base64:()=>Rp,sha1_base64url:()=>Lp,sha1_hex:()=>Cp,sha256_base64:()=>Fp,sha256_base64url:()=>Jp,sha256_hex:()=>Vp,sha384_base64:()=>Gp,sha384_base64url:()=>qp,sha384_hex:()=>Mp,sha512_base64:()=>Wp,sha512_base64url:()=>Bp,sha512_hex:()=>Kp,string:()=>bo,time:()=>yo,ulid:()=>to,undefined:()=>zo,unicodeEmail:()=>il,uppercase:()=>To,uuid:()=>_e,uuid4:()=>wp,uuid6:()=>Ip,uuid7:()=>zp,xid:()=>ro});var Qn=/^[cC][0-9a-z]{6,}$/,eo=/^[0-9a-z]+$/,to=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ro=/^[0-9a-vA-V]{20}$/,no=/^[A-Za-z0-9]{27}$/,oo=/^[a-zA-Z0-9_-]{21}$/,io=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,kp=/^[-+]?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)?)??$/,ao=/^([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})$/,_e=(e)=>{if(!e)return/^([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)$/;return 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})$`)},wp=_e(4),Ip=_e(6),zp=_e(7),co=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,Sp=/^[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])?)*$/,Tp=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,il=/^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u,Op=il,jp=/^[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])?)*$/,Pp=\"^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$\";function uo(){return new RegExp(Pp,\"u\")}var so=/^(?:(?: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])$/,lo=/^(([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}|:))$/,mo=(e)=>{let r=K(e??\":\");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},po=/^((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])$/,fo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,go=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sr=/^[A-Za-z0-9_-]*$/,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])?)*\\.?$/,Ep=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,vo=/^https?$/,ho=/^\\+[1-9]\\d{6,14}$/,al=\"(?:(?:\\\\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])))\",$o=new RegExp(`^${al}$`);function cl(e){return typeof e.precision===\"number\"?e.precision===-1?\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d\":e.precision===0?\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d\":`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?\"}function yo(e){return new RegExp(`^${cl(e)}$`)}function _o(e){let r=cl({precision:e.precision}),o=[\"Z\"];if(e.local)o.push(\"\");if(e.offset)o.push(\"([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)\");let i=`${r}(?:${o.join(\"|\")})`;return new RegExp(`^${al}T(?:${i})$`)}var bo=(e)=>{let r=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??\"\"}}`:\"[\\\\s\\\\S]*\";return new RegExp(`^${r}$`)},xo=/^-?\\d+n?$/,ko=/^-?\\d+$/,_t=/^-?\\d+(?:\\.\\d+)?$/,wo=/^(?:true|false)$/i,Io=/^null$/i;var zo=/^undefined$/i;var So=/^[^A-Z]*$/,To=/^[^a-z]*$/,Up=/^[0-9a-fA-F]*$/;function bt(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function xt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Np=/^[0-9a-fA-F]{32}$/,Ap=bt(22,\"==\"),Zp=xt(22),Cp=/^[0-9a-fA-F]{40}$/,Rp=bt(27,\"=\"),Lp=xt(27),Vp=/^[0-9a-fA-F]{64}$/,Fp=bt(43,\"=\"),Jp=xt(43),Mp=/^[0-9a-fA-F]{96}$/,Gp=bt(64,\"\"),qp=xt(64),Kp=/^[0-9a-fA-F]{128}$/,Wp=bt(86,\"==\"),Bp=xt(86);var j=l(\"$ZodCheck\",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),sl={number:\"number\",bigint:\"bigint\",object:\"date\"},lr=l(\"$ZodCheckLessThan\",(e,r)=>{j.init(e,r);let o=sl[typeof r.value];e._zod.onattach.push((i)=>{let t=i._zod.bag,n=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(r.value<n)if(r.inclusive)t.maximum=r.value;else t.exclusiveMaximum=r.value}),e._zod.check=(i)=>{if(r.inclusive?i.value<=r.value:i.value<r.value)return;i.issues.push({origin:o,code:\"too_big\",maximum:typeof r.value===\"object\"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),dr=l(\"$ZodCheckGreaterThan\",(e,r)=>{j.init(e,r);let o=sl[typeof r.value];e._zod.onattach.push((i)=>{let t=i._zod.bag,n=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(r.value>n)if(r.inclusive)t.minimum=r.value;else t.exclusiveMinimum=r.value}),e._zod.check=(i)=>{if(r.inclusive?i.value>=r.value:i.value>r.value)return;i.issues.push({origin:o,code:\"too_small\",minimum:typeof r.value===\"object\"?r.value.getTime():r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Oo=l(\"$ZodCheckMultipleOf\",(e,r)=>{j.init(e,r),e._zod.onattach.push((o)=>{var i;(i=o._zod.bag).multipleOf??(i.multipleOf=r.value)}),e._zod.check=(o)=>{if(typeof o.value!==typeof r.value)throw Error(\"Cannot mix number and bigint in multiple_of check.\");if(typeof o.value===\"bigint\"?o.value%r.value===BigInt(0):Ln(o.value,r.value)===0)return;o.issues.push({origin:typeof o.value,code:\"not_multiple_of\",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),jo=l(\"$ZodCheckNumberFormat\",(e,r)=>{j.init(e,r),r.format=r.format||\"float64\";let o=r.format?.includes(\"int\"),i=o?\"int\":\"number\",[t,n]=qn[r.format];e._zod.onattach.push((a)=>{let c=a._zod.bag;if(c.format=r.format,c.minimum=t,c.maximum=n,o)c.pattern=ko}),e._zod.check=(a)=>{let c=a.value;if(o){if(!Number.isInteger(c)){a.issues.push({expected:i,format:r.format,code:\"invalid_type\",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){if(c>0)a.issues.push({input:c,code:\"too_big\",maximum:Number.MAX_SAFE_INTEGER,note:\"Integers must be within the safe integer range.\",inst:e,origin:i,inclusive:!0,continue:!r.abort});else a.issues.push({input:c,code:\"too_small\",minimum:Number.MIN_SAFE_INTEGER,note:\"Integers must be within the safe integer range.\",inst:e,origin:i,inclusive:!0,continue:!r.abort});return}}if(c<t)a.issues.push({origin:\"number\",input:c,code:\"too_small\",minimum:t,inclusive:!0,inst:e,continue:!r.abort});if(c>n)a.issues.push({origin:\"number\",input:c,code:\"too_big\",maximum:n,inclusive:!0,inst:e,continue:!r.abort})}}),Po=l(\"$ZodCheckBigIntFormat\",(e,r)=>{j.init(e,r);let[o,i]=Kn[r.format];e._zod.onattach.push((t)=>{let n=t._zod.bag;n.format=r.format,n.minimum=o,n.maximum=i}),e._zod.check=(t)=>{let n=t.value;if(n<o)t.issues.push({origin:\"bigint\",input:n,code:\"too_small\",minimum:o,inclusive:!0,inst:e,continue:!r.abort});if(n>i)t.issues.push({origin:\"bigint\",input:n,code:\"too_big\",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),Do=l(\"$ZodCheckMaxSize\",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=(i)=>{let t=i.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push((i)=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;if(r.maximum<t)i._zod.bag.maximum=r.maximum}),e._zod.check=(i)=>{let t=i.value;if(t.size<=r.maximum)return;i.issues.push({origin:gt(t),code:\"too_big\",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Eo=l(\"$ZodCheckMinSize\",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=(i)=>{let t=i.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push((i)=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(r.minimum>t)i._zod.bag.minimum=r.minimum}),e._zod.check=(i)=>{let t=i.value;if(t.size>=r.minimum)return;i.issues.push({origin:gt(t),code:\"too_small\",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Uo=l(\"$ZodCheckSizeEquals\",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=(i)=>{let t=i.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push((i)=>{let t=i._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=(i)=>{let t=i.value,n=t.size;if(n===r.size)return;let a=n>r.size;i.issues.push({origin:gt(t),...a?{code:\"too_big\",maximum:r.size}:{code:\"too_small\",minimum:r.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),No=l(\"$ZodCheckMaxLength\",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=(i)=>{let t=i.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push((i)=>{let t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;if(r.maximum<t)i._zod.bag.maximum=r.maximum}),e._zod.check=(i)=>{let t=i.value;if(t.length<=r.maximum)return;let a=vt(t);i.issues.push({origin:a,code:\"too_big\",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ao=l(\"$ZodCheckMinLength\",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=(i)=>{let t=i.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push((i)=>{let t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(r.minimum>t)i._zod.bag.minimum=r.minimum}),e._zod.check=(i)=>{let t=i.value;if(t.length>=r.minimum)return;let a=vt(t);i.issues.push({origin:a,code:\"too_small\",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Zo=l(\"$ZodCheckLengthEquals\",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=(i)=>{let t=i.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push((i)=>{let t=i._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=(i)=>{let t=i.value,n=t.length;if(n===r.length)return;let a=vt(t),c=n>r.length;i.issues.push({origin:a,...c?{code:\"too_big\",maximum:r.length}:{code:\"too_small\",minimum:r.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!r.abort})}}),Re=l(\"$ZodCheckStringFormat\",(e,r)=>{var o,i;if(j.init(e,r),e._zod.onattach.push((t)=>{let n=t._zod.bag;if(n.format=r.format,r.pattern)n.patterns??(n.patterns=new Set),n.patterns.add(r.pattern)}),r.pattern)(o=e._zod).check??(o.check=(t)=>{if(r.pattern.lastIndex=0,r.pattern.test(t.value))return;t.issues.push({origin:\"string\",code:\"invalid_format\",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})});else(i=e._zod).check??(i.check=()=>{})}),Co=l(\"$ZodCheckRegex\",(e,r)=>{Re.init(e,r),e._zod.check=(o)=>{if(r.pattern.lastIndex=0,r.pattern.test(o.value))return;o.issues.push({origin:\"string\",code:\"invalid_format\",format:\"regex\",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Ro=l(\"$ZodCheckLowerCase\",(e,r)=>{r.pattern??(r.pattern=So),Re.init(e,r)}),Lo=l(\"$ZodCheckUpperCase\",(e,r)=>{r.pattern??(r.pattern=To),Re.init(e,r)}),Vo=l(\"$ZodCheckIncludes\",(e,r)=>{j.init(e,r);let o=K(r.includes),i=new RegExp(typeof r.position===\"number\"?`^.{${r.position}}${o}`:o);r.pattern=i,e._zod.onattach.push((t)=>{let n=t._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(i)}),e._zod.check=(t)=>{if(t.value.includes(r.includes,r.position))return;t.issues.push({origin:\"string\",code:\"invalid_format\",format:\"includes\",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Fo=l(\"$ZodCheckStartsWith\",(e,r)=>{j.init(e,r);let o=new RegExp(`^${K(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push((i)=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=(i)=>{if(i.value.startsWith(r.prefix))return;i.issues.push({origin:\"string\",code:\"invalid_format\",format:\"starts_with\",prefix:r.prefix,input:i.value,inst:e,continue:!r.abort})}}),Jo=l(\"$ZodCheckEndsWith\",(e,r)=>{j.init(e,r);let o=new RegExp(`.*${K(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push((i)=>{let t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=(i)=>{if(i.value.endsWith(r.suffix))return;i.issues.push({origin:\"string\",code:\"invalid_format\",format:\"ends_with\",suffix:r.suffix,input:i.value,inst:e,continue:!r.abort})}});function ul(e,r,o){if(e.issues.length)r.issues.push(...F(o,e.issues))}var Mo=l(\"$ZodCheckProperty\",(e,r)=>{j.init(e,r),e._zod.check=(o)=>{let i=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then((t)=>ul(t,o,r.property));ul(i,o,r.property);return}}),Go=l(\"$ZodCheckMimeType\",(e,r)=>{j.init(e,r);let o=new Set(r.mime);e._zod.onattach.push((i)=>{i._zod.bag.mime=r.mime}),e._zod.check=(i)=>{if(o.has(i.value.type))return;i.issues.push({code:\"invalid_value\",values:r.mime,input:i.value.type,inst:e,continue:!r.abort})}}),qo=l(\"$ZodCheckOverwrite\",(e,r)=>{j.init(e,r),e._zod.check=(o)=>{o.value=r.tx(o.value)}});class mr{constructor(e=[]){if(this.content=[],this.indent=0,this)this.args=e}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e===\"function\"){e(this,{execution:\"sync\"}),e(this,{execution:\"async\"});return}let o=e.split(`\n`).filter((n)=>n),i=Math.min(...o.map((n)=>n.length-n.trimStart().length)),t=o.map((n)=>n.slice(i)).map((n)=>\" \".repeat(this.indent*2)+n);for(let n of t)this.content.push(n)}compile(){let e=Function,r=this?.args,i=[...(this?.content??[\"\"]).map((t)=>` ${t}`)];return new e(...r,i.join(`\n`))}}var Ko={major:4,minor:4,patch:3};var w=l(\"$ZodType\",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ko;let i=[...e._zod.def.checks??[]];if(e._zod.traits.has(\"$ZodCheck\"))i.unshift(e);for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(a,c,u)=>{let s=le(a),d;for(let f of c){if(f._zod.def.when){if(Wn(a))continue;if(!f._zod.def.when(a))continue}else if(s)continue;let _=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&u?.async===!1)throw new H;if(d||y instanceof Promise)d=(d??Promise.resolve()).then(async()=>{if(await y,a.issues.length===_)return;if(!s)s=le(a,_)});else{if(a.issues.length===_)continue;if(!s)s=le(a,_)}}if(d)return d.then(()=>a);return a},n=(a,c,u)=>{if(le(a))return a.aborted=!0,a;let s=t(c,i,u);if(s instanceof Promise){if(u.async===!1)throw new H;return s.then((d)=>e._zod.parse(d,u))}return e._zod.parse(s,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction===\"backward\"){let s=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});if(s instanceof Promise)return s.then((d)=>n(d,a,c));return n(s,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new H;return u.then((s)=>t(s,i,c))}return t(u,i,c)}}z(e,\"~standard\",()=>({validate:(t)=>{try{let n=Yn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return Hn(e,t).then((a)=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:\"zod\",version:1}))}),be=l(\"$ZodString\",(e,r)=>{w.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??bo(e._zod.bag),e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=String(o.value)}catch(t){}if(typeof o.value===\"string\")return o;return o.issues.push({expected:\"string\",code:\"invalid_type\",input:o.value,inst:e}),o}}),T=l(\"$ZodStringFormat\",(e,r)=>{Re.init(e,r),be.init(e,r)}),Bo=l(\"$ZodGUID\",(e,r)=>{r.pattern??(r.pattern=ao),T.init(e,r)}),Xo=l(\"$ZodUUID\",(e,r)=>{if(r.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(i===void 0)throw Error(`Invalid UUID version: \"${r.version}\"`);r.pattern??(r.pattern=_e(i))}else r.pattern??(r.pattern=_e());T.init(e,r)}),Yo=l(\"$ZodEmail\",(e,r)=>{r.pattern??(r.pattern=co),T.init(e,r)}),Ho=l(\"$ZodURL\",(e,r)=>{T.init(e,r),e._zod.check=(o)=>{try{let i=o.value.trim();if(!r.normalize&&r.protocol?.source===vo.source){if(!/^https?:\\/\\//i.test(i)){o.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid URL format\",input:o.value,inst:e,continue:!r.abort});return}}let t=new URL(i);if(r.hostname){if(r.hostname.lastIndex=0,!r.hostname.test(t.hostname))o.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid hostname\",pattern:r.hostname.source,input:o.value,inst:e,continue:!r.abort})}if(r.protocol){if(r.protocol.lastIndex=0,!r.protocol.test(t.protocol.endsWith(\":\")?t.protocol.slice(0,-1):t.protocol))o.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid protocol\",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})}if(r.normalize)o.value=t.href;else o.value=i;return}catch(i){o.issues.push({code:\"invalid_format\",format:\"url\",input:o.value,inst:e,continue:!r.abort})}}}),Qo=l(\"$ZodEmoji\",(e,r)=>{r.pattern??(r.pattern=uo()),T.init(e,r)}),ei=l(\"$ZodNanoID\",(e,r)=>{r.pattern??(r.pattern=oo),T.init(e,r)}),ti=l(\"$ZodCUID\",(e,r)=>{r.pattern??(r.pattern=Qn),T.init(e,r)}),ri=l(\"$ZodCUID2\",(e,r)=>{r.pattern??(r.pattern=eo),T.init(e,r)}),ni=l(\"$ZodULID\",(e,r)=>{r.pattern??(r.pattern=to),T.init(e,r)}),oi=l(\"$ZodXID\",(e,r)=>{r.pattern??(r.pattern=ro),T.init(e,r)}),ii=l(\"$ZodKSUID\",(e,r)=>{r.pattern??(r.pattern=no),T.init(e,r)}),ai=l(\"$ZodISODateTime\",(e,r)=>{r.pattern??(r.pattern=_o(r)),T.init(e,r)}),ci=l(\"$ZodISODate\",(e,r)=>{r.pattern??(r.pattern=$o),T.init(e,r)}),ui=l(\"$ZodISOTime\",(e,r)=>{r.pattern??(r.pattern=yo(r)),T.init(e,r)}),si=l(\"$ZodISODuration\",(e,r)=>{r.pattern??(r.pattern=io),T.init(e,r)}),li=l(\"$ZodIPv4\",(e,r)=>{r.pattern??(r.pattern=so),T.init(e,r),e._zod.bag.format=\"ipv4\"}),di=l(\"$ZodIPv6\",(e,r)=>{r.pattern??(r.pattern=lo),T.init(e,r),e._zod.bag.format=\"ipv6\",e._zod.check=(o)=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:\"invalid_format\",format:\"ipv6\",input:o.value,inst:e,continue:!r.abort})}}}),mi=l(\"$ZodMAC\",(e,r)=>{r.pattern??(r.pattern=mo(r.delimiter)),T.init(e,r),e._zod.bag.format=\"mac\"}),pi=l(\"$ZodCIDRv4\",(e,r)=>{r.pattern??(r.pattern=po),T.init(e,r)}),fi=l(\"$ZodCIDRv6\",(e,r)=>{r.pattern??(r.pattern=fo),T.init(e,r),e._zod.check=(o)=>{let i=o.value.split(\"/\");try{if(i.length!==2)throw Error();let[t,n]=i;if(!n)throw Error();let a=Number(n);if(`${a}`!==n)throw Error();if(a<0||a>128)throw Error();new URL(`http://[${t}]`)}catch{o.issues.push({code:\"invalid_format\",format:\"cidrv6\",input:o.value,inst:e,continue:!r.abort})}}});function gi(e){if(e===\"\")return!0;if(/\\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var vi=l(\"$ZodBase64\",(e,r)=>{r.pattern??(r.pattern=go),T.init(e,r),e._zod.bag.contentEncoding=\"base64\",e._zod.check=(o)=>{if(gi(o.value))return;o.issues.push({code:\"invalid_format\",format:\"base64\",input:o.value,inst:e,continue:!r.abort})}});function Il(e){if(!sr.test(e))return!1;let r=e.replace(/[-_]/g,(i)=>i===\"-\"?\"+\":\"/\"),o=r.padEnd(Math.ceil(r.length/4)*4,\"=\");return gi(o)}var hi=l(\"$ZodBase64URL\",(e,r)=>{r.pattern??(r.pattern=sr),T.init(e,r),e._zod.bag.contentEncoding=\"base64url\",e._zod.check=(o)=>{if(Il(o.value))return;o.issues.push({code:\"invalid_format\",format:\"base64url\",input:o.value,inst:e,continue:!r.abort})}}),$i=l(\"$ZodE164\",(e,r)=>{r.pattern??(r.pattern=ho),T.init(e,r)});function zl(e,r=null){try{let o=e.split(\".\");if(o.length!==3)return!1;let[i]=o;if(!i)return!1;let t=JSON.parse(atob(i));if(\"typ\"in t&&t?.typ!==\"JWT\")return!1;if(!t.alg)return!1;if(r&&(!(\"alg\"in t)||t.alg!==r))return!1;return!0}catch{return!1}}var yi=l(\"$ZodJWT\",(e,r)=>{T.init(e,r),e._zod.check=(o)=>{if(zl(o.value,r.alg))return;o.issues.push({code:\"invalid_format\",format:\"jwt\",input:o.value,inst:e,continue:!r.abort})}}),_i=l(\"$ZodCustomStringFormat\",(e,r)=>{T.init(e,r),e._zod.check=(o)=>{if(r.fn(o.value))return;o.issues.push({code:\"invalid_format\",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),hr=l(\"$ZodNumber\",(e,r)=>{w.init(e,r),e._zod.pattern=e._zod.bag.pattern??_t,e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=Number(o.value)}catch(a){}let t=o.value;if(typeof t===\"number\"&&!Number.isNaN(t)&&Number.isFinite(t))return o;let n=typeof t===\"number\"?Number.isNaN(t)?\"NaN\":!Number.isFinite(t)?\"Infinity\":void 0:void 0;return o.issues.push({expected:\"number\",code:\"invalid_type\",input:t,inst:e,...n?{received:n}:{}}),o}}),bi=l(\"$ZodNumberFormat\",(e,r)=>{jo.init(e,r),hr.init(e,r)}),kt=l(\"$ZodBoolean\",(e,r)=>{w.init(e,r),e._zod.pattern=wo,e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=Boolean(o.value)}catch(n){}let t=o.value;if(typeof t===\"boolean\")return o;return o.issues.push({expected:\"boolean\",code:\"invalid_type\",input:t,inst:e}),o}}),$r=l(\"$ZodBigInt\",(e,r)=>{w.init(e,r),e._zod.pattern=xo,e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch(t){}if(typeof o.value===\"bigint\")return o;return o.issues.push({expected:\"bigint\",code:\"invalid_type\",input:o.value,inst:e}),o}}),xi=l(\"$ZodBigIntFormat\",(e,r)=>{Po.init(e,r),$r.init(e,r)}),ki=l(\"$ZodSymbol\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(typeof t===\"symbol\")return o;return o.issues.push({expected:\"symbol\",code:\"invalid_type\",input:t,inst:e}),o}}),wi=l(\"$ZodUndefined\",(e,r)=>{w.init(e,r),e._zod.pattern=zo,e._zod.values=new Set([void 0]),e._zod.parse=(o,i)=>{let t=o.value;if(typeof t>\"u\")return o;return o.issues.push({expected:\"undefined\",code:\"invalid_type\",input:t,inst:e}),o}}),Ii=l(\"$ZodNull\",(e,r)=>{w.init(e,r),e._zod.pattern=Io,e._zod.values=new Set([null]),e._zod.parse=(o,i)=>{let t=o.value;if(t===null)return o;return o.issues.push({expected:\"null\",code:\"invalid_type\",input:t,inst:e}),o}}),zi=l(\"$ZodAny\",(e,r)=>{w.init(e,r),e._zod.parse=(o)=>o}),Si=l(\"$ZodUnknown\",(e,r)=>{w.init(e,r),e._zod.parse=(o)=>o}),Ti=l(\"$ZodNever\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>(o.issues.push({expected:\"never\",code:\"invalid_type\",input:o.value,inst:e}),o)}),Oi=l(\"$ZodVoid\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(typeof t>\"u\")return o;return o.issues.push({expected:\"void\",code:\"invalid_type\",input:t,inst:e}),o}}),ji=l(\"$ZodDate\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{if(r.coerce)try{o.value=new Date(o.value)}catch(c){}let t=o.value,n=t instanceof Date;if(n&&!Number.isNaN(t.getTime()))return o;return o.issues.push({expected:\"date\",code:\"invalid_type\",input:t,...n?{received:\"Invalid Date\"}:{},inst:e}),o}});function dl(e,r,o){if(e.issues.length)r.issues.push(...F(o,e.issues));r.value[o]=e.value}var Pi=l(\"$ZodArray\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!Array.isArray(t))return o.issues.push({expected:\"array\",code:\"invalid_type\",input:t,inst:e}),o;o.value=Array(t.length);let n=[];for(let a=0;a<t.length;a++){let c=t[a],u=r.element._zod.run({value:c,issues:[]},i);if(u instanceof Promise)n.push(u.then((s)=>dl(s,o,a)));else dl(u,o,a)}if(n.length)return Promise.all(n).then(()=>o);return o}});function vr(e,r,o,i,t,n){let a=o in i;if(e.issues.length){if(t&&n&&!a)return;r.issues.push(...F(o,e.issues))}if(!a&&!t){if(!e.issues.length)r.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:void 0,path:[o]});return}if(e.value===void 0){if(a)r.value[o]=void 0}else r.value[o]=e.value}function Sl(e){let r=Object.keys(e.shape);for(let i of r)if(!e.shape?.[i]?._zod?.traits?.has(\"$ZodType\"))throw Error(`Invalid element at key \"${i}\": expected a Zod schema`);let o=Gn(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function Tl(e,r,o,i,t,n){let a=[],c=t.keySet,u=t.catchall._zod,s=u.def.type,d=u.optin===\"optional\",f=u.optout===\"optional\";for(let _ in r){if(_===\"__proto__\")continue;if(c.has(_))continue;if(s===\"never\"){a.push(_);continue}let y=u.run({value:r[_],issues:[]},i);if(y instanceof Promise)e.push(y.then((k)=>vr(k,o,_,r,d,f)));else vr(y,o,_,r,d,f)}if(a.length)o.issues.push({code:\"unrecognized_keys\",keys:a,input:r,inst:n});if(!e.length)return o;return Promise.all(e).then(()=>o)}var Ol=l(\"$ZodObject\",(e,r)=>{if(w.init(e,r),!Object.getOwnPropertyDescriptor(r,\"shape\")?.get){let c=r.shape;Object.defineProperty(r,\"shape\",{get:()=>{let u={...c};return Object.defineProperty(r,\"shape\",{value:u}),u}})}let i=Ee(()=>Sl(r));z(e._zod,\"propValues\",()=>{let c=r.shape,u={};for(let s in c){let d=c[s]._zod;if(d.values){u[s]??(u[s]=new Set);for(let f of d.values)u[s].add(f)}}return u});let t=ye,n=r.catchall,a;e._zod.parse=(c,u)=>{a??(a=i.value);let s=c.value;if(!t(s))return c.issues.push({expected:\"object\",code:\"invalid_type\",input:s,inst:e}),c;c.value={};let d=[],f=a.shape;for(let _ of a.keys){let y=f[_],k=y._zod.optin===\"optional\",V=y._zod.optout===\"optional\",E=y._zod.run({value:s[_],issues:[]},u);if(E instanceof Promise)d.push(E.then((Nn)=>vr(Nn,c,_,s,k,V)));else vr(E,c,_,s,k,V)}if(!n)return d.length?Promise.all(d).then(()=>c):c;return Tl(d,s,c,u,i.value,e)}}),Di=l(\"$ZodObjectJIT\",(e,r)=>{Ol.init(e,r);let o=e._zod.parse,i=Ee(()=>Sl(r)),t=(_)=>{let y=new mr([\"shape\",\"payload\",\"ctx\"]),k=i.value,V=(X)=>{let P=Yt(X);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};y.write(\"const input = payload.value;\");let E=Object.create(null),Nn=0;for(let X of k.keys)E[X]=`key_${Nn++}`;y.write(\"const newResult = {};\");for(let X of k.keys){let P=E[X],U=Yt(X),Bs=_[X],Xs=Bs?._zod?.optin===\"optional\",Nm=Bs?._zod?.optout===\"optional\";if(y.write(`const ${P} = ${V(X)};`),Xs&&Nm)y.write(`\n if (${P}.issues.length) {\n if (${U} in input) {\n payload.issues = payload.issues.concat(${P}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${U}, ...iss.path] : [${U}]\n })));\n }\n }\n \n if (${P}.value === undefined) {\n if (${U} in input) {\n newResult[${U}] = undefined;\n }\n } else {\n newResult[${U}] = ${P}.value;\n }\n \n `);else if(!Xs)y.write(`\n const ${P}_present = ${U} in input;\n if (${P}.issues.length) {\n payload.issues = payload.issues.concat(${P}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${U}, ...iss.path] : [${U}]\n })));\n }\n if (!${P}_present && !${P}.issues.length) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [${U}]\n });\n }\n\n if (${P}_present) {\n if (${P}.value === undefined) {\n newResult[${U}] = undefined;\n } else {\n newResult[${U}] = ${P}.value;\n }\n }\n\n `);else y.write(`\n if (${P}.issues.length) {\n payload.issues = payload.issues.concat(${P}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${U}, ...iss.path] : [${U}]\n })));\n }\n \n if (${P}.value === undefined) {\n if (${U} in input) {\n newResult[${U}] = undefined;\n }\n } else {\n newResult[${U}] = ${P}.value;\n }\n \n `)}y.write(\"payload.value = newResult;\"),y.write(\"return payload;\");let Um=y.compile();return(X,P)=>Um(_,X,P)},n,a=ye,c=!he.jitless,s=c&&Fn.value,d=r.catchall,f;e._zod.parse=(_,y)=>{f??(f=i.value);let k=_.value;if(!a(k))return _.issues.push({expected:\"object\",code:\"invalid_type\",input:k,inst:e}),_;if(c&&s&&y?.async===!1&&y.jitless!==!0){if(!n)n=t(r.shape);if(_=n(_,y),!d)return _;return Tl([],k,_,y,f,e)}return o(_,y)}});function ml(e,r,o,i){for(let n of e)if(n.issues.length===0)return r.value=n.value,r;let t=e.filter((n)=>!le(n));if(t.length===1)return r.value=t[0].value,t[0];return r.issues.push({code:\"invalid_union\",input:r.value,inst:o,errors:e.map((n)=>n.issues.map((a)=>C(a,i,D())))}),r}var wt=l(\"$ZodUnion\",(e,r)=>{w.init(e,r),z(e._zod,\"optin\",()=>r.options.some((i)=>i._zod.optin===\"optional\")?\"optional\":void 0),z(e._zod,\"optout\",()=>r.options.some((i)=>i._zod.optout===\"optional\")?\"optional\":void 0),z(e._zod,\"values\",()=>{if(r.options.every((i)=>i._zod.values))return new Set(r.options.flatMap((i)=>Array.from(i._zod.values)));return}),z(e._zod,\"pattern\",()=>{if(r.options.every((i)=>i._zod.pattern)){let i=r.options.map((t)=>t._zod.pattern);return new RegExp(`^(${i.map((t)=>pt(t.source)).join(\"|\")})$`)}return});let o=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(i,t)=>{if(o)return o(i,t);let n=!1,a=[];for(let c of r.options){let u=c._zod.run({value:i.value,issues:[]},t);if(u instanceof Promise)a.push(u),n=!0;else{if(u.issues.length===0)return u;a.push(u)}}if(!n)return ml(a,i,e,t);return Promise.all(a).then((c)=>ml(c,i,e,t))}});function pl(e,r,o,i){let t=e.filter((n)=>n.issues.length===0);if(t.length===1)return r.value=t[0].value,r;if(t.length===0)r.issues.push({code:\"invalid_union\",input:r.value,inst:o,errors:e.map((n)=>n.issues.map((a)=>C(a,i,D())))});else r.issues.push({code:\"invalid_union\",input:r.value,inst:o,errors:[],inclusive:!1});return r}var Ei=l(\"$ZodXor\",(e,r)=>{wt.init(e,r),r.inclusive=!1;let o=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(i,t)=>{if(o)return o(i,t);let n=!1,a=[];for(let c of r.options){let u=c._zod.run({value:i.value,issues:[]},t);if(u instanceof Promise)a.push(u),n=!0;else a.push(u)}if(!n)return pl(a,i,e,t);return Promise.all(a).then((c)=>pl(c,i,e,t))}}),Ui=l(\"$ZodDiscriminatedUnion\",(e,r)=>{r.inclusive=!1,wt.init(e,r);let o=e._zod.parse;z(e._zod,\"propValues\",()=>{let t={};for(let n of r.options){let a=n._zod.propValues;if(!a||Object.keys(a).length===0)throw Error(`Invalid discriminated union option at index \"${r.options.indexOf(n)}\"`);for(let[c,u]of Object.entries(a)){if(!t[c])t[c]=new Set;for(let s of u)t[c].add(s)}}return t});let i=Ee(()=>{let t=r.options,n=new Map;for(let a of t){let c=a._zod.propValues?.[r.discriminator];if(!c||c.size===0)throw Error(`Invalid discriminated union option at index \"${r.options.indexOf(a)}\"`);for(let u of c){if(n.has(u))throw Error(`Duplicate discriminator value \"${String(u)}\"`);n.set(u,a)}}return n});e._zod.parse=(t,n)=>{let a=t.value;if(!ye(a))return t.issues.push({code:\"invalid_type\",expected:\"object\",input:a,inst:e}),t;let c=i.value.get(a?.[r.discriminator]);if(c)return c._zod.run(t,n);if(r.unionFallback||n.direction===\"backward\")return o(t,n);return t.issues.push({code:\"invalid_union\",errors:[],note:\"No matching discriminator\",discriminator:r.discriminator,options:Array.from(i.value.keys()),input:a,path:[r.discriminator],inst:e}),t}}),Ni=l(\"$ZodIntersection\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value,n=r.left._zod.run({value:t,issues:[]},i),a=r.right._zod.run({value:t,issues:[]},i);if(n instanceof Promise||a instanceof Promise)return Promise.all([n,a]).then(([u,s])=>fl(o,u,s));return fl(o,n,a)}});function Wo(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e===+r)return{valid:!0,data:e};if(se(e)&&se(r)){let o=Object.keys(r),i=Object.keys(e).filter((n)=>o.indexOf(n)!==-1),t={...e,...r};for(let n of i){let a=Wo(e[n],r[n]);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};t[n]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let i=0;i<e.length;i++){let t=e[i],n=r[i],a=Wo(t,n);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o.push(a.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function fl(e,r,o){let i=new Map,t;for(let c of r.issues)if(c.code===\"unrecognized_keys\"){t??(t=c);for(let u of c.keys){if(!i.has(u))i.set(u,{});i.get(u).l=!0}}else e.issues.push(c);for(let c of o.issues)if(c.code===\"unrecognized_keys\")for(let u of c.keys){if(!i.has(u))i.set(u,{});i.get(u).r=!0}else e.issues.push(c);let n=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(n.length&&t)e.issues.push({...t,keys:n});if(le(e))return e;let a=Wo(r.value,o.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var yr=l(\"$ZodTuple\",(e,r)=>{w.init(e,r);let o=r.items;e._zod.parse=(i,t)=>{let n=i.value;if(!Array.isArray(n))return i.issues.push({input:n,inst:e,expected:\"tuple\",code:\"invalid_type\"}),i;i.value=[];let a=[],c=gl(o,\"optin\"),u=gl(o,\"optout\");if(!r.rest){if(n.length<c)return i.issues.push({code:\"too_small\",minimum:c,inclusive:!0,input:n,inst:e,origin:\"array\"}),i;if(n.length>o.length)i.issues.push({code:\"too_big\",maximum:o.length,inclusive:!0,input:n,inst:e,origin:\"array\"})}let s=Array(o.length);for(let d=0;d<o.length;d++){let f=o[d]._zod.run({value:n[d],issues:[]},t);if(f instanceof Promise)a.push(f.then((_)=>{s[d]=_}));else s[d]=f}if(r.rest){let d=o.length-1,f=n.slice(o.length);for(let _ of f){d++;let y=r.rest._zod.run({value:_,issues:[]},t);if(y instanceof Promise)a.push(y.then((k)=>vl(k,i,d)));else vl(y,i,d)}}if(a.length)return Promise.all(a).then(()=>hl(s,i,o,n,u));return hl(s,i,o,n,u)}});function gl(e,r){for(let o=e.length-1;o>=0;o--)if(e[o]._zod[r]!==\"optional\")return o+1;return 0}function vl(e,r,o){if(e.issues.length)r.issues.push(...F(o,e.issues));r.value[o]=e.value}function hl(e,r,o,i,t){for(let n=0;n<o.length;n++){let a=e[n],c=n<i.length;if(a.issues.length){if(!c&&n>=t){r.value.length=n;break}r.issues.push(...F(n,a.issues))}r.value[n]=a.value}for(let n=r.value.length-1;n>=i.length;n--)if(o[n]._zod.optout===\"optional\"&&r.value[n]===void 0)r.value.length=n;else break;return r}var Ai=l(\"$ZodRecord\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!se(t))return o.issues.push({expected:\"record\",code:\"invalid_type\",input:t,inst:e}),o;let n=[],a=r.keyType._zod.values;if(a){o.value={};let c=new Set;for(let s of a)if(typeof s===\"string\"||typeof s===\"number\"||typeof s===\"symbol\"){c.add(typeof s===\"number\"?s.toString():s);let d=r.keyType._zod.run({value:s,issues:[]},i);if(d instanceof Promise)throw Error(\"Async schemas not supported in object keys currently\");if(d.issues.length){o.issues.push({code:\"invalid_key\",origin:\"record\",issues:d.issues.map((y)=>C(y,i,D())),input:s,path:[s],inst:e});continue}let f=d.value,_=r.valueType._zod.run({value:t[s],issues:[]},i);if(_ instanceof Promise)n.push(_.then((y)=>{if(y.issues.length)o.issues.push(...F(s,y.issues));o.value[f]=y.value}));else{if(_.issues.length)o.issues.push(...F(s,_.issues));o.value[f]=_.value}}let u;for(let s in t)if(!c.has(s))u=u??[],u.push(s);if(u&&u.length>0)o.issues.push({code:\"unrecognized_keys\",input:t,inst:e,keys:u})}else{o.value={};for(let c of Reflect.ownKeys(t)){if(c===\"__proto__\")continue;if(!Object.prototype.propertyIsEnumerable.call(t,c))continue;let u=r.keyType._zod.run({value:c,issues:[]},i);if(u instanceof Promise)throw Error(\"Async schemas not supported in object keys currently\");if(typeof c===\"string\"&&_t.test(c)&&u.issues.length){let f=r.keyType._zod.run({value:Number(c),issues:[]},i);if(f instanceof Promise)throw Error(\"Async schemas not supported in object keys currently\");if(f.issues.length===0)u=f}if(u.issues.length){if(r.mode===\"loose\")o.value[c]=t[c];else o.issues.push({code:\"invalid_key\",origin:\"record\",issues:u.issues.map((f)=>C(f,i,D())),input:c,path:[c],inst:e});continue}let d=r.valueType._zod.run({value:t[c],issues:[]},i);if(d instanceof Promise)n.push(d.then((f)=>{if(f.issues.length)o.issues.push(...F(c,f.issues));o.value[u.value]=f.value}));else{if(d.issues.length)o.issues.push(...F(c,d.issues));o.value[u.value]=d.value}}}if(n.length)return Promise.all(n).then(()=>o);return o}}),Zi=l(\"$ZodMap\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!(t instanceof Map))return o.issues.push({expected:\"map\",code:\"invalid_type\",input:t,inst:e}),o;let n=[];o.value=new Map;for(let[a,c]of t){let u=r.keyType._zod.run({value:a,issues:[]},i),s=r.valueType._zod.run({value:c,issues:[]},i);if(u instanceof Promise||s instanceof Promise)n.push(Promise.all([u,s]).then(([d,f])=>{$l(d,f,o,a,t,e,i)}));else $l(u,s,o,a,t,e,i)}if(n.length)return Promise.all(n).then(()=>o);return o}});function $l(e,r,o,i,t,n,a){if(e.issues.length)if(ft.has(typeof i))o.issues.push(...F(i,e.issues));else o.issues.push({code:\"invalid_key\",origin:\"map\",input:t,inst:n,issues:e.issues.map((c)=>C(c,a,D()))});if(r.issues.length)if(ft.has(typeof i))o.issues.push(...F(i,r.issues));else o.issues.push({origin:\"map\",code:\"invalid_element\",input:t,inst:n,key:i,issues:r.issues.map((c)=>C(c,a,D()))});o.value.set(e.value,r.value)}var Ci=l(\"$ZodSet\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:\"set\",code:\"invalid_type\"}),o;let n=[];o.value=new Set;for(let a of t){let c=r.valueType._zod.run({value:a,issues:[]},i);if(c instanceof Promise)n.push(c.then((u)=>yl(u,o)));else yl(c,o)}if(n.length)return Promise.all(n).then(()=>o);return o}});function yl(e,r){if(e.issues.length)r.issues.push(...e.issues);r.value.add(e.value)}var Ri=l(\"$ZodEnum\",(e,r)=>{w.init(e,r);let o=mt(r.entries),i=new Set(o);e._zod.values=i,e._zod.pattern=new RegExp(`^(${o.filter((t)=>ft.has(typeof t)).map((t)=>typeof t===\"string\"?K(t):t.toString()).join(\"|\")})$`),e._zod.parse=(t,n)=>{let a=t.value;if(i.has(a))return t;return t.issues.push({code:\"invalid_value\",values:o,input:a,inst:e}),t}}),Li=l(\"$ZodLiteral\",(e,r)=>{if(w.init(e,r),r.values.length===0)throw Error(\"Cannot create literal schema with no valid values\");let o=new Set(r.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.values.map((i)=>typeof i===\"string\"?K(i):i?K(i.toString()):String(i)).join(\"|\")})$`),e._zod.parse=(i,t)=>{let n=i.value;if(o.has(n))return i;return i.issues.push({code:\"invalid_value\",values:r.values,input:n,inst:e}),i}}),Vi=l(\"$ZodFile\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{let t=o.value;if(t instanceof File)return o;return o.issues.push({expected:\"file\",code:\"invalid_type\",input:t,inst:e}),o}}),Fi=l(\"$ZodTransform\",(e,r)=>{w.init(e,r),e._zod.optin=\"optional\",e._zod.parse=(o,i)=>{if(i.direction===\"backward\")throw new $e(e.constructor.name);let t=r.transform(o.value,o);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then((a)=>(o.value=a,o.fallback=!0,o));if(t instanceof Promise)throw new H;return o.value=t,o.fallback=!0,o}});function _l(e,r){if(r===void 0&&(e.issues.length||e.fallback))return{issues:[],value:void 0};return e}var _r=l(\"$ZodOptional\",(e,r)=>{w.init(e,r),e._zod.optin=\"optional\",e._zod.optout=\"optional\",z(e._zod,\"values\",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),z(e._zod,\"pattern\",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${pt(o.source)})?$`):void 0}),e._zod.parse=(o,i)=>{if(r.innerType._zod.optin===\"optional\"){let t=o.value,n=r.innerType._zod.run(o,i);if(n instanceof Promise)return n.then((a)=>_l(a,t));return _l(n,t)}if(o.value===void 0)return o;return r.innerType._zod.run(o,i)}}),Ji=l(\"$ZodExactOptional\",(e,r)=>{_r.init(e,r),z(e._zod,\"values\",()=>r.innerType._zod.values),z(e._zod,\"pattern\",()=>r.innerType._zod.pattern),e._zod.parse=(o,i)=>r.innerType._zod.run(o,i)}),Mi=l(\"$ZodNullable\",(e,r)=>{w.init(e,r),z(e._zod,\"optin\",()=>r.innerType._zod.optin),z(e._zod,\"optout\",()=>r.innerType._zod.optout),z(e._zod,\"pattern\",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${pt(o.source)}|null)$`):void 0}),z(e._zod,\"values\",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,i)=>{if(o.value===null)return o;return r.innerType._zod.run(o,i)}}),Gi=l(\"$ZodDefault\",(e,r)=>{w.init(e,r),e._zod.optin=\"optional\",z(e._zod,\"values\",()=>r.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction===\"backward\")return r.innerType._zod.run(o,i);if(o.value===void 0)return o.value=r.defaultValue,o;let t=r.innerType._zod.run(o,i);if(t instanceof Promise)return t.then((n)=>bl(n,r));return bl(t,r)}});function bl(e,r){if(e.value===void 0)e.value=r.defaultValue;return e}var qi=l(\"$ZodPrefault\",(e,r)=>{w.init(e,r),e._zod.optin=\"optional\",z(e._zod,\"values\",()=>r.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction===\"backward\")return r.innerType._zod.run(o,i);if(o.value===void 0)o.value=r.defaultValue;return r.innerType._zod.run(o,i)}}),Ki=l(\"$ZodNonOptional\",(e,r)=>{w.init(e,r),z(e._zod,\"values\",()=>{let o=r.innerType._zod.values;return o?new Set([...o].filter((i)=>i!==void 0)):void 0}),e._zod.parse=(o,i)=>{let t=r.innerType._zod.run(o,i);if(t instanceof Promise)return t.then((n)=>xl(n,e));return xl(t,e)}});function xl(e,r){if(!e.issues.length&&e.value===void 0)e.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:e.value,inst:r});return e}var Wi=l(\"$ZodSuccess\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{if(i.direction===\"backward\")throw new $e(\"ZodSuccess\");let t=r.innerType._zod.run(o,i);if(t instanceof Promise)return t.then((n)=>(o.value=n.issues.length===0,o));return o.value=t.issues.length===0,o}}),Bi=l(\"$ZodCatch\",(e,r)=>{w.init(e,r),e._zod.optin=\"optional\",z(e._zod,\"optout\",()=>r.innerType._zod.optout),z(e._zod,\"values\",()=>r.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction===\"backward\")return r.innerType._zod.run(o,i);let t=r.innerType._zod.run(o,i);if(t instanceof Promise)return t.then((n)=>{if(o.value=n.value,n.issues.length)o.value=r.catchValue({...o,error:{issues:n.issues.map((a)=>C(a,i,D()))},input:o.value}),o.issues=[],o.fallback=!0;return o});if(o.value=t.value,t.issues.length)o.value=r.catchValue({...o,error:{issues:t.issues.map((n)=>C(n,i,D()))},input:o.value}),o.issues=[],o.fallback=!0;return o}}),Xi=l(\"$ZodNaN\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>{if(typeof o.value!==\"number\"||!Number.isNaN(o.value))return o.issues.push({input:o.value,inst:e,expected:\"nan\",code:\"invalid_type\"}),o;return o}}),br=l(\"$ZodPipe\",(e,r)=>{w.init(e,r),z(e._zod,\"values\",()=>r.in._zod.values),z(e._zod,\"optin\",()=>r.in._zod.optin),z(e._zod,\"optout\",()=>r.out._zod.optout),z(e._zod,\"propValues\",()=>r.in._zod.propValues),e._zod.parse=(o,i)=>{if(i.direction===\"backward\"){let n=r.out._zod.run(o,i);if(n instanceof Promise)return n.then((a)=>pr(a,r.in,i));return pr(n,r.in,i)}let t=r.in._zod.run(o,i);if(t instanceof Promise)return t.then((n)=>pr(n,r.out,i));return pr(t,r.out,i)}});function pr(e,r,o){if(e.issues.length)return e.aborted=!0,e;return r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},o)}var It=l(\"$ZodCodec\",(e,r)=>{w.init(e,r),z(e._zod,\"values\",()=>r.in._zod.values),z(e._zod,\"optin\",()=>r.in._zod.optin),z(e._zod,\"optout\",()=>r.out._zod.optout),z(e._zod,\"propValues\",()=>r.in._zod.propValues),e._zod.parse=(o,i)=>{if((i.direction||\"forward\")===\"forward\"){let n=r.in._zod.run(o,i);if(n instanceof Promise)return n.then((a)=>fr(a,r,i));return fr(n,r,i)}else{let n=r.out._zod.run(o,i);if(n instanceof Promise)return n.then((a)=>fr(a,r,i));return fr(n,r,i)}}});function fr(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||\"forward\")===\"forward\"){let t=r.transform(e.value,e);if(t instanceof Promise)return t.then((n)=>gr(e,n,r.out,o));return gr(e,t,r.out,o)}else{let t=r.reverseTransform(e.value,e);if(t instanceof Promise)return t.then((n)=>gr(e,n,r.in,o));return gr(e,t,r.in,o)}}function gr(e,r,o,i){if(e.issues.length)return e.aborted=!0,e;return o._zod.run({value:r,issues:e.issues},i)}var Yi=l(\"$ZodPreprocess\",(e,r)=>{br.init(e,r)}),Hi=l(\"$ZodReadonly\",(e,r)=>{w.init(e,r),z(e._zod,\"propValues\",()=>r.innerType._zod.propValues),z(e._zod,\"values\",()=>r.innerType._zod.values),z(e._zod,\"optin\",()=>r.innerType?._zod?.optin),z(e._zod,\"optout\",()=>r.innerType?._zod?.optout),e._zod.parse=(o,i)=>{if(i.direction===\"backward\")return r.innerType._zod.run(o,i);let t=r.innerType._zod.run(o,i);if(t instanceof Promise)return t.then(kl);return kl(t)}});function kl(e){return e.value=Object.freeze(e.value),e}var Qi=l(\"$ZodTemplateLiteral\",(e,r)=>{w.init(e,r);let o=[];for(let i of r.parts)if(typeof i===\"object\"&&i!==null){if(!i._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${i._zod.traits}`);let n=t.startsWith(\"^\")?1:0,a=t.endsWith(\"$\")?t.length-1:t.length;o.push(t.slice(n,a))}else if(i===null||Mn.has(typeof i))o.push(K(`${i}`));else throw Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${o.join(\"\")}$`),e._zod.parse=(i,t)=>{if(typeof i.value!==\"string\")return i.issues.push({input:i.value,inst:e,expected:\"string\",code:\"invalid_type\"}),i;if(e._zod.pattern.lastIndex=0,!e._zod.pattern.test(i.value))return i.issues.push({input:i.value,inst:e,code:\"invalid_format\",format:r.format??\"template_literal\",pattern:e._zod.pattern.source}),i;return i}}),ea=l(\"$ZodFunction\",(e,r)=>(w.init(e,r),e._def=r,e._zod.def=r,e.implement=(o)=>{if(typeof o!==\"function\")throw Error(\"implement() must be called with a function\");return function(...i){let t=e._def.input?Qt(e._def.input,i):i,n=Reflect.apply(o,this,t);if(e._def.output)return Qt(e._def.output,n);return n}},e.implementAsync=(o)=>{if(typeof o!==\"function\")throw Error(\"implementAsync() must be called with a function\");return async function(...i){let t=e._def.input?await er(e._def.input,i):i,n=await Reflect.apply(o,this,t);if(e._def.output)return await er(e._def.output,n);return n}},e._zod.parse=(o,i)=>{if(typeof o.value!==\"function\")return o.issues.push({code:\"invalid_type\",expected:\"function\",input:o.value,inst:e}),o;if(e._def.output&&e._def.output._zod.def.type===\"promise\")o.value=e.implementAsync(o.value);else o.value=e.implement(o.value);return o},e.input=(...o)=>{let i=e.constructor;if(Array.isArray(o[0]))return new i({type:\"function\",input:new yr({type:\"tuple\",items:o[0],rest:o[1]}),output:e._def.output});return new i({type:\"function\",input:o[0],output:e._def.output})},e.output=(o)=>new e.constructor({type:\"function\",input:e._def.input,output:o}),e)),ta=l(\"$ZodPromise\",(e,r)=>{w.init(e,r),e._zod.parse=(o,i)=>Promise.resolve(o.value).then((t)=>r.innerType._zod.run({value:t,issues:[]},i))}),ra=l(\"$ZodLazy\",(e,r)=>{w.init(e,r),z(e._zod,\"innerType\",()=>{let o=r;if(!o._cachedInner)o._cachedInner=r.getter();return o._cachedInner}),z(e._zod,\"pattern\",()=>e._zod.innerType?._zod?.pattern),z(e._zod,\"propValues\",()=>e._zod.innerType?._zod?.propValues),z(e._zod,\"optin\",()=>e._zod.innerType?._zod?.optin??void 0),z(e._zod,\"optout\",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,i)=>e._zod.innerType._zod.run(o,i)}),na=l(\"$ZodCustom\",(e,r)=>{j.init(e,r),w.init(e,r),e._zod.parse=(o,i)=>o,e._zod.check=(o)=>{let i=o.value,t=r.fn(i);if(t instanceof Promise)return t.then((n)=>wl(n,o,i,e));wl(t,o,i,e);return}});function wl(e,r,o,i){if(!e){let t={code:\"custom\",input:o,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};if(i._zod.def.params)t.params=i._zod.def.params;r.issues.push(Ue(t))}}var jt={};Y(jt,{ar:()=>oa,az:()=>ia,be:()=>aa,bg:()=>ca,ca:()=>ua,cs:()=>sa,da:()=>la,de:()=>da,el:()=>ma,en:()=>zt,eo:()=>pa,es:()=>fa,fa:()=>ga,fi:()=>va,fr:()=>ha,frCA:()=>$a,he:()=>ya,hr:()=>_a,hu:()=>ba,hy:()=>xa,id:()=>ka,is:()=>wa,it:()=>Ia,ja:()=>za,ka:()=>Sa,kh:()=>Ta,km:()=>St,ko:()=>Oa,lt:()=>ja,mk:()=>Pa,ms:()=>Da,nl:()=>Ea,no:()=>Ua,ota:()=>Na,pl:()=>Za,ps:()=>Aa,pt:()=>Ca,ro:()=>Ra,ru:()=>La,sl:()=>Va,sv:()=>Fa,ta:()=>Ja,th:()=>Ma,tr:()=>Ga,ua:()=>qa,uk:()=>Ot,ur:()=>Ka,uz:()=>Wa,vi:()=>Ba,yo:()=>Ha,zhCN:()=>Xa,zhTW:()=>Ya});var Yp=()=>{let e={string:{unit:\"حرف\",verb:\"أن يحوي\"},file:{unit:\"بايت\",verb:\"أن يحوي\"},array:{unit:\"عنصر\",verb:\"أن يحوي\"},set:{unit:\"عنصر\",verb:\"أن يحوي\"}};function r(t){return e[t]??null}let o={regex:\"مدخل\",email:\"بريد إلكتروني\",url:\"رابط\",emoji:\"إيموجي\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"تاريخ ووقت بمعيار ISO\",date:\"تاريخ بمعيار ISO\",time:\"وقت بمعيار ISO\",duration:\"مدة بمعيار ISO\",ipv4:\"عنوان IPv4\",ipv6:\"عنوان IPv6\",cidrv4:\"مدى عناوين بصيغة IPv4\",cidrv6:\"مدى عناوين بصيغة IPv6\",base64:\"نَص بترميز base64-encoded\",base64url:\"نَص بترميز base64url-encoded\",json_string:\"نَص على هيئة JSON\",e164:\"رقم هاتف بمعيار E.164\",jwt:\"JWT\",template_literal:\"مدخل\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${c}`;return`مدخلات غير مقبولة: يفترض إدخال ${n}، ولكن تم إدخال ${c}`}case\"invalid_value\":if(t.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${g(t.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return` أكبر من اللازم: يفترض أن تكون ${t.origin??\"القيمة\"} ${n} ${t.maximum.toString()} ${a.unit??\"عنصر\"}`;return`أكبر من اللازم: يفترض أن تكون ${t.origin??\"القيمة\"} ${n} ${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${n} ${t.minimum.toString()} ${a.unit}`;return`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${n} ${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`نَص غير مقبول: يجب أن يبدأ بـ \"${t.prefix}\"`;if(n.format===\"ends_with\")return`نَص غير مقبول: يجب أن ينتهي بـ \"${n.suffix}\"`;if(n.format===\"includes\")return`نَص غير مقبول: يجب أن يتضمَّن \"${n.includes}\"`;if(n.format===\"regex\")return`نَص غير مقبول: يجب أن يطابق النمط ${n.pattern}`;return`${o[n.format]??t.format} غير مقبول`}case\"not_multiple_of\":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case\"unrecognized_keys\":return`معرف${t.keys.length>1?\"ات\":\"\"} غريب${t.keys.length>1?\"ة\":\"\"}: ${m(t.keys,\"، \")}`;case\"invalid_key\":return`معرف غير مقبول في ${t.origin}`;case\"invalid_union\":return\"مدخل غير مقبول\";case\"invalid_element\":return`مدخل غير مقبول في ${t.origin}`;default:return\"مدخل غير مقبول\"}}};function oa(){return{localeError:Yp()}}var Hp=()=>{let e={string:{unit:\"simvol\",verb:\"olmalıdır\"},file:{unit:\"bayt\",verb:\"olmalıdır\"},array:{unit:\"element\",verb:\"olmalıdır\"},set:{unit:\"element\",verb:\"olmalıdır\"}};function r(t){return e[t]??null}let o={regex:\"input\",email:\"email address\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datetime\",date:\"ISO date\",time:\"ISO time\",duration:\"ISO duration\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded string\",base64url:\"base64url-encoded string\",json_string:\"JSON string\",e164:\"E.164 number\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${c}`;return`Yanlış dəyər: gözlənilən ${n}, daxil olan ${c}`}case\"invalid_value\":if(t.values.length===1)return`Yanlış dəyər: gözlənilən ${g(t.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Çox böyük: gözlənilən ${t.origin??\"dəyər\"} ${n}${t.maximum.toString()} ${a.unit??\"element\"}`;return`Çox böyük: gözlənilən ${t.origin??\"dəyər\"} ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Çox kiçik: gözlənilən ${t.origin} ${n}${t.minimum.toString()} ${a.unit}`;return`Çox kiçik: gözlənilən ${t.origin} ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Yanlış mətn: \"${n.prefix}\" ilə başlamalıdır`;if(n.format===\"ends_with\")return`Yanlış mətn: \"${n.suffix}\" ilə bitməlidir`;if(n.format===\"includes\")return`Yanlış mətn: \"${n.includes}\" daxil olmalıdır`;if(n.format===\"regex\")return`Yanlış mətn: ${n.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case\"unrecognized_keys\":return`Tanınmayan açar${t.keys.length>1?\"lar\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`${t.origin} daxilində yanlış açar`;case\"invalid_union\":return\"Yanlış dəyər\";case\"invalid_element\":return`${t.origin} daxilində yanlış dəyər`;default:return\"Yanlış dəyər\"}}};function ia(){return{localeError:Hp()}}function jl(e,r,o,i){let t=Math.abs(e),n=t%10,a=t%100;if(a>=11&&a<=19)return i;if(n===1)return r;if(n>=2&&n<=4)return o;return i}var Qp=()=>{let e={string:{unit:{one:\"сімвал\",few:\"сімвалы\",many:\"сімвалаў\"},verb:\"мець\"},array:{unit:{one:\"элемент\",few:\"элементы\",many:\"элементаў\"},verb:\"мець\"},set:{unit:{one:\"элемент\",few:\"элементы\",many:\"элементаў\"},verb:\"мець\"},file:{unit:{one:\"байт\",few:\"байты\",many:\"байтаў\"},verb:\"мець\"}};function r(t){return e[t]??null}let o={regex:\"увод\",email:\"email адрас\",url:\"URL\",emoji:\"эмодзі\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO дата і час\",date:\"ISO дата\",time:\"ISO час\",duration:\"ISO працягласць\",ipv4:\"IPv4 адрас\",ipv6:\"IPv6 адрас\",cidrv4:\"IPv4 дыяпазон\",cidrv6:\"IPv6 дыяпазон\",base64:\"радок у фармаце base64\",base64url:\"радок у фармаце base64url\",json_string:\"JSON радок\",e164:\"нумар E.164\",jwt:\"JWT\",template_literal:\"увод\"},i={nan:\"NaN\",number:\"лік\",array:\"масіў\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${c}`;return`Няправільны ўвод: чакаўся ${n}, атрымана ${c}`}case\"invalid_value\":if(t.values.length===1)return`Няправільны ўвод: чакалася ${g(t.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a){let c=Number(t.maximum),u=jl(c,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??\"значэнне\"} павінна ${a.verb} ${n}${t.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${t.origin??\"значэнне\"} павінна быць ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a){let c=Number(t.minimum),u=jl(c,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${n}${t.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Няправільны радок: павінен пачынацца з \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Няправільны радок: павінен заканчвацца на \"${n.suffix}\"`;if(n.format===\"includes\")return`Няправільны радок: павінен змяшчаць \"${n.includes}\"`;if(n.format===\"regex\")return`Няправільны радок: павінен адпавядаць шаблону ${n.pattern}`;return`Няправільны ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case\"unrecognized_keys\":return`Нераспазнаны ${t.keys.length>1?\"ключы\":\"ключ\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Няправільны ключ у ${t.origin}`;case\"invalid_union\":return\"Няправільны ўвод\";case\"invalid_element\":return`Няправільнае значэнне ў ${t.origin}`;default:return\"Няправільны ўвод\"}}};function aa(){return{localeError:Qp()}}var ef=()=>{let e={string:{unit:\"символа\",verb:\"да съдържа\"},file:{unit:\"байта\",verb:\"да съдържа\"},array:{unit:\"елемента\",verb:\"да съдържа\"},set:{unit:\"елемента\",verb:\"да съдържа\"}};function r(t){return e[t]??null}let o={regex:\"вход\",email:\"имейл адрес\",url:\"URL\",emoji:\"емоджи\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO време\",date:\"ISO дата\",time:\"ISO време\",duration:\"ISO продължителност\",ipv4:\"IPv4 адрес\",ipv6:\"IPv6 адрес\",cidrv4:\"IPv4 диапазон\",cidrv6:\"IPv6 диапазон\",base64:\"base64-кодиран низ\",base64url:\"base64url-кодиран низ\",json_string:\"JSON низ\",e164:\"E.164 номер\",jwt:\"JWT\",template_literal:\"вход\"},i={nan:\"NaN\",number:\"число\",array:\"масив\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Невалиден вход: очакван instanceof ${t.expected}, получен ${c}`;return`Невалиден вход: очакван ${n}, получен ${c}`}case\"invalid_value\":if(t.values.length===1)return`Невалиден вход: очакван ${g(t.values[0])}`;return`Невалидна опция: очаквано едно от ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Твърде голямо: очаква се ${t.origin??\"стойност\"} да съдържа ${n}${t.maximum.toString()} ${a.unit??\"елемента\"}`;return`Твърде голямо: очаква се ${t.origin??\"стойност\"} да бъде ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Твърде малко: очаква се ${t.origin} да съдържа ${n}${t.minimum.toString()} ${a.unit}`;return`Твърде малко: очаква се ${t.origin} да бъде ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Невалиден низ: трябва да започва с \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Невалиден низ: трябва да завършва с \"${n.suffix}\"`;if(n.format===\"includes\")return`Невалиден низ: трябва да включва \"${n.includes}\"`;if(n.format===\"regex\")return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let a=\"Невалиден\";if(n.format===\"emoji\")a=\"Невалидно\";if(n.format===\"datetime\")a=\"Невалидно\";if(n.format===\"date\")a=\"Невалидна\";if(n.format===\"time\")a=\"Невалидно\";if(n.format===\"duration\")a=\"Невалидна\";return`${a} ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Невалидно число: трябва да бъде кратно на ${t.divisor}`;case\"unrecognized_keys\":return`Неразпознат${t.keys.length>1?\"и\":\"\"} ключ${t.keys.length>1?\"ове\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Невалиден ключ в ${t.origin}`;case\"invalid_union\":return\"Невалиден вход\";case\"invalid_element\":return`Невалидна стойност в ${t.origin}`;default:return\"Невалиден вход\"}}};function ca(){return{localeError:ef()}}var tf=()=>{let e={string:{unit:\"caràcters\",verb:\"contenir\"},file:{unit:\"bytes\",verb:\"contenir\"},array:{unit:\"elements\",verb:\"contenir\"},set:{unit:\"elements\",verb:\"contenir\"}};function r(t){return e[t]??null}let o={regex:\"entrada\",email:\"adreça electrònica\",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ça IPv4\",ipv6:\"adreça IPv6\",cidrv4:\"rang IPv4\",cidrv6:\"rang IPv6\",base64:\"cadena codificada en base64\",base64url:\"cadena codificada en base64url\",json_string:\"cadena JSON\",e164:\"número E.164\",jwt:\"JWT\",template_literal:\"entrada\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${c}`;return`Tipus invàlid: s'esperava ${n}, s'ha rebut ${c}`}case\"invalid_value\":if(t.values.length===1)return`Valor invàlid: s'esperava ${g(t.values[0])}`;return`Opció invàlida: s'esperava una de ${m(t.values,\" o \")}`;case\"too_big\":{let n=t.inclusive?\"com a màxim\":\"menys de\",a=r(t.origin);if(a)return`Massa gran: s'esperava que ${t.origin??\"el valor\"} contingués ${n} ${t.maximum.toString()} ${a.unit??\"elements\"}`;return`Massa gran: s'esperava que ${t.origin??\"el valor\"} fos ${n} ${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\"com a mínim\":\"més de\",a=r(t.origin);if(a)return`Massa petit: s'esperava que ${t.origin} contingués ${n} ${t.minimum.toString()} ${a.unit}`;return`Massa petit: s'esperava que ${t.origin} fos ${n} ${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Format invàlid: ha de començar amb \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Format invàlid: ha d'acabar amb \"${n.suffix}\"`;if(n.format===\"includes\")return`Format invàlid: ha d'incloure \"${n.includes}\"`;if(n.format===\"regex\")return`Format invàlid: ha de coincidir amb el patró ${n.pattern}`;return`Format invàlid per a ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case\"unrecognized_keys\":return`Clau${t.keys.length>1?\"s\":\"\"} no reconeguda${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Clau invàlida a ${t.origin}`;case\"invalid_union\":return\"Entrada invàlida\";case\"invalid_element\":return`Element invàlid a ${t.origin}`;default:return\"Entrada invàlida\"}}};function ua(){return{localeError:tf()}}var rf=()=>{let e={string:{unit:\"znaků\",verb:\"mít\"},file:{unit:\"bajtů\",verb:\"mít\"},array:{unit:\"prvků\",verb:\"mít\"},set:{unit:\"prvků\",verb:\"mít\"}};function r(t){return e[t]??null}let o={regex:\"regulární výraz\",email:\"e-mailová 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 čas ve formátu ISO\",date:\"datum ve formátu ISO\",time:\"čas ve formátu ISO\",duration:\"doba trvání ISO\",ipv4:\"IPv4 adresa\",ipv6:\"IPv6 adresa\",cidrv4:\"rozsah IPv4\",cidrv6:\"rozsah IPv6\",base64:\"řetězec zakódovaný ve formátu base64\",base64url:\"řetězec zakódovaný ve formátu base64url\",json_string:\"řetězec ve formátu JSON\",e164:\"číslo E.164\",jwt:\"JWT\",template_literal:\"vstup\"},i={nan:\"NaN\",number:\"číslo\",string:\"řetězec\",function:\"funkce\",array:\"pole\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${c}`;return`Neplatný vstup: očekáváno ${n}, obdrženo ${c}`}case\"invalid_value\":if(t.values.length===1)return`Neplatný vstup: očekáváno ${g(t.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Hodnota je příliš velká: ${t.origin??\"hodnota\"} musí mít ${n}${t.maximum.toString()} ${a.unit??\"prvků\"}`;return`Hodnota je příliš velká: ${t.origin??\"hodnota\"} musí být ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Hodnota je příliš malá: ${t.origin??\"hodnota\"} musí mít ${n}${t.minimum.toString()} ${a.unit??\"prvků\"}`;return`Hodnota je příliš malá: ${t.origin??\"hodnota\"} musí být ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Neplatný řetězec: musí začínat na \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Neplatný řetězec: musí končit na \"${n.suffix}\"`;if(n.format===\"includes\")return`Neplatný řetězec: musí obsahovat \"${n.includes}\"`;if(n.format===\"regex\")return`Neplatný řetězec: musí odpovídat vzoru ${n.pattern}`;return`Neplatný formát ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case\"unrecognized_keys\":return`Neznámé klíče: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Neplatný klíč v ${t.origin}`;case\"invalid_union\":return\"Neplatný vstup\";case\"invalid_element\":return`Neplatná hodnota v ${t.origin}`;default:return\"Neplatný vstup\"}}};function sa(){return{localeError:rf()}}var nf=()=>{let e={string:{unit:\"tegn\",verb:\"havde\"},file:{unit:\"bytes\",verb:\"havde\"},array:{unit:\"elementer\",verb:\"indeholdt\"},set:{unit:\"elementer\",verb:\"indeholdt\"}};function r(t){return e[t]??null}let o={regex:\"input\",email:\"e-mailadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkeslæt\",date:\"ISO-dato\",time:\"ISO-klokkeslæt\",duration:\"ISO-varighed\",ipv4:\"IPv4-område\",ipv6:\"IPv6-område\",cidrv4:\"IPv4-spektrum\",cidrv6:\"IPv6-spektrum\",base64:\"base64-kodet streng\",base64url:\"base64url-kodet streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",string:\"streng\",number:\"tal\",boolean:\"boolean\",array:\"liste\",object:\"objekt\",set:\"sæt\",file:\"fil\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Ugyldigt input: forventede instanceof ${t.expected}, fik ${c}`;return`Ugyldigt input: forventede ${n}, fik ${c}`}case\"invalid_value\":if(t.values.length===1)return`Ugyldig værdi: forventede ${g(t.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin),c=i[t.origin]??t.origin;if(a)return`For stor: forventede ${c??\"value\"} ${a.verb} ${n} ${t.maximum.toString()} ${a.unit??\"elementer\"}`;return`For stor: forventede ${c??\"value\"} havde ${n} ${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin),c=i[t.origin]??t.origin;if(a)return`For lille: forventede ${c} ${a.verb} ${n} ${t.minimum.toString()} ${a.unit}`;return`For lille: forventede ${c} havde ${n} ${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ugyldig streng: skal starte med \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Ugyldig streng: skal ende med \"${n.suffix}\"`;if(n.format===\"includes\")return`Ugyldig streng: skal indeholde \"${n.includes}\"`;if(n.format===\"regex\")return`Ugyldig streng: skal matche mønsteret ${n.pattern}`;return`Ugyldig ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Ugyldigt tal: skal være deleligt med ${t.divisor}`;case\"unrecognized_keys\":return`${t.keys.length>1?\"Ukendte nøgler\":\"Ukendt nøgle\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Ugyldig nøgle i ${t.origin}`;case\"invalid_union\":return\"Ugyldigt input: matcher ingen af de tilladte typer\";case\"invalid_element\":return`Ugyldig værdi i ${t.origin}`;default:return\"Ugyldigt input\"}}};function la(){return{localeError:nf()}}var of=()=>{let e={string:{unit:\"Zeichen\",verb:\"zu haben\"},file:{unit:\"Bytes\",verb:\"zu haben\"},array:{unit:\"Elemente\",verb:\"zu haben\"},set:{unit:\"Elemente\",verb:\"zu haben\"}};function r(t){return e[t]??null}let o={regex:\"Eingabe\",email:\"E-Mail-Adresse\",url:\"URL\",emoji:\"Emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-Datum und -Uhrzeit\",date:\"ISO-Datum\",time:\"ISO-Uhrzeit\",duration:\"ISO-Dauer\",ipv4:\"IPv4-Adresse\",ipv6:\"IPv6-Adresse\",cidrv4:\"IPv4-Bereich\",cidrv6:\"IPv6-Bereich\",base64:\"Base64-codierter String\",base64url:\"Base64-URL-codierter String\",json_string:\"JSON-String\",e164:\"E.164-Nummer\",jwt:\"JWT\",template_literal:\"Eingabe\"},i={nan:\"NaN\",number:\"Zahl\",array:\"Array\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${c}`;return`Ungültige Eingabe: erwartet ${n}, erhalten ${c}`}case\"invalid_value\":if(t.values.length===1)return`Ungültige Eingabe: erwartet ${g(t.values[0])}`;return`Ungültige Option: erwartet eine von ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Zu groß: erwartet, dass ${t.origin??\"Wert\"} ${n}${t.maximum.toString()} ${a.unit??\"Elemente\"} hat`;return`Zu groß: erwartet, dass ${t.origin??\"Wert\"} ${n}${t.maximum.toString()} ist`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Zu klein: erwartet, dass ${t.origin} ${n}${t.minimum.toString()} ${a.unit} hat`;return`Zu klein: erwartet, dass ${t.origin} ${n}${t.minimum.toString()} ist`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ungültiger String: muss mit \"${n.prefix}\" beginnen`;if(n.format===\"ends_with\")return`Ungültiger String: muss mit \"${n.suffix}\" enden`;if(n.format===\"includes\")return`Ungültiger String: muss \"${n.includes}\" enthalten`;if(n.format===\"regex\")return`Ungültiger String: muss dem Muster ${n.pattern} entsprechen`;return`Ungültig: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case\"unrecognized_keys\":return`${t.keys.length>1?\"Unbekannte Schlüssel\":\"Unbekannter Schlüssel\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Ungültiger Schlüssel in ${t.origin}`;case\"invalid_union\":return\"Ungültige Eingabe\";case\"invalid_element\":return`Ungültiger Wert in ${t.origin}`;default:return\"Ungültige Eingabe\"}}};function da(){return{localeError:of()}}var af=()=>{let e={string:{unit:\"χαρακτήρες\",verb:\"να έχει\"},file:{unit:\"bytes\",verb:\"να έχει\"},array:{unit:\"στοιχεία\",verb:\"να έχει\"},set:{unit:\"στοιχεία\",verb:\"να έχει\"},map:{unit:\"καταχωρήσεις\",verb:\"να έχει\"}};function r(t){return e[t]??null}let o={regex:\"είσοδος\",email:\"διεύθυνση 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 ημερομηνία και ώρα\",date:\"ISO ημερομηνία\",time:\"ISO ώρα\",duration:\"ISO διάρκεια\",ipv4:\"διεύθυνση IPv4\",ipv6:\"διεύθυνση IPv6\",mac:\"διεύθυνση MAC\",cidrv4:\"εύρος IPv4\",cidrv6:\"εύρος IPv6\",base64:\"συμβολοσειρά κωδικοποιημένη σε base64\",base64url:\"συμβολοσειρά κωδικοποιημένη σε base64url\",json_string:\"συμβολοσειρά JSON\",e164:\"αριθμός E.164\",jwt:\"JWT\",template_literal:\"είσοδος\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(typeof t.expected===\"string\"&&/^[A-Z]/.test(t.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${c}`;return`Μη έγκυρη είσοδος: αναμενόταν ${n}, λήφθηκε ${c}`}case\"invalid_value\":if(t.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${g(t.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Πολύ μεγάλο: αναμενόταν ${t.origin??\"τιμή\"} να έχει ${n}${t.maximum.toString()} ${a.unit??\"στοιχεία\"}`;return`Πολύ μεγάλο: αναμενόταν ${t.origin??\"τιμή\"} να είναι ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Πολύ μικρό: αναμενόταν ${t.origin} να έχει ${n}${t.minimum.toString()} ${a.unit}`;return`Πολύ μικρό: αναμενόταν ${t.origin} να είναι ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \"${n.suffix}\"`;if(n.format===\"includes\")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \"${n.includes}\"`;if(n.format===\"regex\")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${n.pattern}`;return`Μη έγκυρο: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${t.divisor}`;case\"unrecognized_keys\":return`Άγνωστ${t.keys.length>1?\"α\":\"ο\"} κλειδ${t.keys.length>1?\"ιά\":\"ί\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Μη έγκυρο κλειδί στο ${t.origin}`;case\"invalid_union\":return\"Μη έγκυρη είσοδος\";case\"invalid_element\":return`Μη έγκυρη τιμή στο ${t.origin}`;default:return\"Μη έγκυρη είσοδος\"}}};function ma(){return{localeError:af()}}var cf=()=>{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 r(t){return e[t]??null}let o={regex:\"input\",email:\"email address\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datetime\",date:\"ISO date\",time:\"ISO time\",duration:\"ISO duration\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",mac:\"MAC address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded string\",base64url:\"base64url-encoded string\",json_string:\"JSON string\",e164:\"E.164 number\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;return`Invalid input: expected ${n}, received ${c}`}case\"invalid_value\":if(t.values.length===1)return`Invalid input: expected ${g(t.values[0])}`;return`Invalid option: expected one of ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Too big: expected ${t.origin??\"value\"} to have ${n}${t.maximum.toString()} ${a.unit??\"elements\"}`;return`Too big: expected ${t.origin??\"value\"} to be ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Too small: expected ${t.origin} to have ${n}${t.minimum.toString()} ${a.unit}`;return`Too small: expected ${t.origin} to be ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Invalid string: must start with \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Invalid string: must end with \"${n.suffix}\"`;if(n.format===\"includes\")return`Invalid string: must include \"${n.includes}\"`;if(n.format===\"regex\")return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Invalid number: must be a multiple of ${t.divisor}`;case\"unrecognized_keys\":return`Unrecognized key${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Invalid key in ${t.origin}`;case\"invalid_union\":if(t.options&&Array.isArray(t.options)&&t.options.length>0)return`Invalid discriminator value. Expected ${t.options.map((a)=>`'${a}'`).join(\" | \")}`;return\"Invalid input\";case\"invalid_element\":return`Invalid value in ${t.origin}`;default:return\"Invalid input\"}}};function zt(){return{localeError:cf()}}var uf=()=>{let e={string:{unit:\"karaktrojn\",verb:\"havi\"},file:{unit:\"bajtojn\",verb:\"havi\"},array:{unit:\"elementojn\",verb:\"havi\"},set:{unit:\"elementojn\",verb:\"havi\"}};function r(t){return e[t]??null}let o={regex:\"enigo\",email:\"retadreso\",url:\"URL\",emoji:\"emoĝio\",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ŭro\",ipv4:\"IPv4-adreso\",ipv6:\"IPv6-adreso\",cidrv4:\"IPv4-rango\",cidrv6:\"IPv6-rango\",base64:\"64-ume kodita karaktraro\",base64url:\"URL-64-ume kodita karaktraro\",json_string:\"JSON-karaktraro\",e164:\"E.164-nombro\",jwt:\"JWT\",template_literal:\"enigo\"},i={nan:\"NaN\",number:\"nombro\",array:\"tabelo\",null:\"senvalora\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${c}`;return`Nevalida enigo: atendiĝis ${n}, riceviĝis ${c}`}case\"invalid_value\":if(t.values.length===1)return`Nevalida enigo: atendiĝis ${g(t.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Tro granda: atendiĝis ke ${t.origin??\"valoro\"} havu ${n}${t.maximum.toString()} ${a.unit??\"elementojn\"}`;return`Tro granda: atendiĝis ke ${t.origin??\"valoro\"} havu ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Tro malgranda: atendiĝis ke ${t.origin} havu ${n}${t.minimum.toString()} ${a.unit}`;return`Tro malgranda: atendiĝis ke ${t.origin} estu ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Nevalida karaktraro: devas komenciĝi per \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Nevalida karaktraro: devas finiĝi per \"${n.suffix}\"`;if(n.format===\"includes\")return`Nevalida karaktraro: devas inkluzivi \"${n.includes}\"`;if(n.format===\"regex\")return`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`;return`Nevalida ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case\"unrecognized_keys\":return`Nekonata${t.keys.length>1?\"j\":\"\"} ŝlosilo${t.keys.length>1?\"j\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Nevalida ŝlosilo en ${t.origin}`;case\"invalid_union\":return\"Nevalida enigo\";case\"invalid_element\":return`Nevalida valoro en ${t.origin}`;default:return\"Nevalida enigo\"}}};function pa(){return{localeError:uf()}}var sf=()=>{let e={string:{unit:\"caracteres\",verb:\"tener\"},file:{unit:\"bytes\",verb:\"tener\"},array:{unit:\"elementos\",verb:\"tener\"},set:{unit:\"elementos\",verb:\"tener\"}};function r(t){return e[t]??null}let o={regex:\"entrada\",email:\"dirección de correo electrónico\",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ón ISO\",ipv4:\"dirección IPv4\",ipv6:\"dirección IPv6\",cidrv4:\"rango IPv4\",cidrv6:\"rango IPv6\",base64:\"cadena codificada en base64\",base64url:\"URL codificada en base64\",json_string:\"cadena JSON\",e164:\"número E.164\",jwt:\"JWT\",template_literal:\"entrada\"},i={nan:\"NaN\",string:\"texto\",number:\"número\",boolean:\"booleano\",array:\"arreglo\",object:\"objeto\",set:\"conjunto\",file:\"archivo\",date:\"fecha\",bigint:\"número grande\",symbol:\"símbolo\",undefined:\"indefinido\",null:\"nulo\",function:\"función\",map:\"mapa\",record:\"registro\",tuple:\"tupla\",enum:\"enumeración\",union:\"unión\",literal:\"literal\",promise:\"promesa\",void:\"vacío\",never:\"nunca\",unknown:\"desconocido\",any:\"cualquiera\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${c}`;return`Entrada inválida: se esperaba ${n}, recibido ${c}`}case\"invalid_value\":if(t.values.length===1)return`Entrada inválida: se esperaba ${g(t.values[0])}`;return`Opción inválida: se esperaba una de ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin),c=i[t.origin]??t.origin;if(a)return`Demasiado grande: se esperaba que ${c??\"valor\"} tuviera ${n}${t.maximum.toString()} ${a.unit??\"elementos\"}`;return`Demasiado grande: se esperaba que ${c??\"valor\"} fuera ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin),c=i[t.origin]??t.origin;if(a)return`Demasiado pequeño: se esperaba que ${c} tuviera ${n}${t.minimum.toString()} ${a.unit}`;return`Demasiado pequeño: se esperaba que ${c} fuera ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Cadena inválida: debe comenzar con \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Cadena inválida: debe terminar en \"${n.suffix}\"`;if(n.format===\"includes\")return`Cadena inválida: debe incluir \"${n.includes}\"`;if(n.format===\"regex\")return`Cadena inválida: debe coincidir con el patrón ${n.pattern}`;return`Inválido ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Número inválido: debe ser múltiplo de ${t.divisor}`;case\"unrecognized_keys\":return`Llave${t.keys.length>1?\"s\":\"\"} desconocida${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Llave inválida en ${i[t.origin]??t.origin}`;case\"invalid_union\":return\"Entrada inválida\";case\"invalid_element\":return`Valor inválido en ${i[t.origin]??t.origin}`;default:return\"Entrada inválida\"}}};function fa(){return{localeError:sf()}}var lf=()=>{let e={string:{unit:\"کاراکتر\",verb:\"داشته باشد\"},file:{unit:\"بایت\",verb:\"داشته باشد\"},array:{unit:\"آیتم\",verb:\"داشته باشد\"},set:{unit:\"آیتم\",verb:\"داشته باشد\"}};function r(t){return e[t]??null}let o={regex:\"ورودی\",email:\"آدرس ایمیل\",url:\"URL\",emoji:\"ایموجی\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"تاریخ و زمان ایزو\",date:\"تاریخ ایزو\",time:\"زمان ایزو\",duration:\"مدت زمان ایزو\",ipv4:\"IPv4 آدرس\",ipv6:\"IPv6 آدرس\",cidrv4:\"IPv4 دامنه\",cidrv6:\"IPv6 دامنه\",base64:\"base64-encoded رشته\",base64url:\"base64url-encoded رشته\",json_string:\"JSON رشته\",e164:\"E.164 عدد\",jwt:\"JWT\",template_literal:\"ورودی\"},i={nan:\"NaN\",number:\"عدد\",array:\"آرایه\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`ورودی نامعتبر: میبایست instanceof ${t.expected} میبود، ${c} دریافت شد`;return`ورودی نامعتبر: میبایست ${n} میبود، ${c} دریافت شد`}case\"invalid_value\":if(t.values.length===1)return`ورودی نامعتبر: میبایست ${g(t.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${m(t.values,\"|\")} میبود`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`خیلی بزرگ: ${t.origin??\"مقدار\"} باید ${n}${t.maximum.toString()} ${a.unit??\"عنصر\"} باشد`;return`خیلی بزرگ: ${t.origin??\"مقدار\"} باید ${n}${t.maximum.toString()} باشد`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`خیلی کوچک: ${t.origin} باید ${n}${t.minimum.toString()} ${a.unit} باشد`;return`خیلی کوچک: ${t.origin} باید ${n}${t.minimum.toString()} باشد`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`رشته نامعتبر: باید با \"${n.prefix}\" شروع شود`;if(n.format===\"ends_with\")return`رشته نامعتبر: باید با \"${n.suffix}\" تمام شود`;if(n.format===\"includes\")return`رشته نامعتبر: باید شامل \"${n.includes}\" باشد`;if(n.format===\"regex\")return`رشته نامعتبر: باید با الگوی ${n.pattern} مطابقت داشته باشد`;return`${o[n.format]??t.format} نامعتبر`}case\"not_multiple_of\":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case\"unrecognized_keys\":return`کلید${t.keys.length>1?\"های\":\"\"} ناشناس: ${m(t.keys,\", \")}`;case\"invalid_key\":return`کلید ناشناس در ${t.origin}`;case\"invalid_union\":return\"ورودی نامعتبر\";case\"invalid_element\":return`مقدار نامعتبر در ${t.origin}`;default:return\"ورودی نامعتبر\"}}};function ga(){return{localeError:lf()}}var df=()=>{let e={string:{unit:\"merkkiä\",subject:\"merkkijonon\"},file:{unit:\"tavua\",subject:\"tiedoston\"},array:{unit:\"alkiota\",subject:\"listan\"},set:{unit:\"alkiota\",subject:\"joukon\"},number:{unit:\"\",subject:\"luvun\"},bigint:{unit:\"\",subject:\"suuren kokonaisluvun\"},int:{unit:\"\",subject:\"kokonaisluvun\"},date:{unit:\"\",subject:\"päivämäärän\"}};function r(t){return e[t]??null}let o={regex:\"säännöllinen lauseke\",email:\"sähköpostiosoite\",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äivämäärä\",time:\"ISO-aika\",duration:\"ISO-kesto\",ipv4:\"IPv4-osoite\",ipv6:\"IPv6-osoite\",cidrv4:\"IPv4-alue\",cidrv6:\"IPv6-alue\",base64:\"base64-koodattu merkkijono\",base64url:\"base64url-koodattu merkkijono\",json_string:\"JSON-merkkijono\",e164:\"E.164-luku\",jwt:\"JWT\",template_literal:\"templaattimerkkijono\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${c}`;return`Virheellinen tyyppi: odotettiin ${n}, oli ${c}`}case\"invalid_value\":if(t.values.length===1)return`Virheellinen syöte: täytyy olla ${g(t.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Liian suuri: ${a.subject} täytyy olla ${n}${t.maximum.toString()} ${a.unit}`.trim();return`Liian suuri: arvon täytyy olla ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Liian pieni: ${a.subject} täytyy olla ${n}${t.minimum.toString()} ${a.unit}`.trim();return`Liian pieni: arvon täytyy olla ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Virheellinen syöte: täytyy alkaa \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Virheellinen syöte: täytyy loppua \"${n.suffix}\"`;if(n.format===\"includes\")return`Virheellinen syöte: täytyy sisältää \"${n.includes}\"`;if(n.format===\"regex\")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${n.pattern}`;return`Virheellinen ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case\"unrecognized_keys\":return`${t.keys.length>1?\"Tuntemattomat avaimet\":\"Tuntematon avain\"}: ${m(t.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öte\"}}};function va(){return{localeError:df()}}var mf=()=>{let e={string:{unit:\"caractères\",verb:\"avoir\"},file:{unit:\"octets\",verb:\"avoir\"},array:{unit:\"éléments\",verb:\"avoir\"},set:{unit:\"éléments\",verb:\"avoir\"}};function r(t){return e[t]??null}let o={regex:\"entrée\",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ée ISO\",ipv4:\"adresse IPv4\",ipv6:\"adresse IPv6\",cidrv4:\"plage IPv4\",cidrv6:\"plage IPv6\",base64:\"chaîne encodée en base64\",base64url:\"chaîne encodée en base64url\",json_string:\"chaîne JSON\",e164:\"numéro E.164\",jwt:\"JWT\",template_literal:\"entrée\"},i={string:\"chaîne\",number:\"nombre\",int:\"entier\",boolean:\"booléen\",bigint:\"grand entier\",symbol:\"symbole\",undefined:\"indéfini\",null:\"null\",never:\"jamais\",void:\"vide\",date:\"date\",array:\"tableau\",object:\"objet\",tuple:\"tuple\",record:\"enregistrement\",map:\"carte\",set:\"ensemble\",file:\"fichier\",nonoptional:\"non-optionnel\",nan:\"NaN\",function:\"fonction\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Entrée invalide : instanceof ${t.expected} attendu, ${c} reçu`;return`Entrée invalide : ${n} attendu, ${c} reçu`}case\"invalid_value\":if(t.values.length===1)return`Entrée invalide : ${g(t.values[0])} attendu`;return`Option invalide : une valeur parmi ${m(t.values,\"|\")} attendue`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Trop grand : ${i[t.origin]??\"valeur\"} doit ${a.verb} ${n}${t.maximum.toString()} ${a.unit??\"élément(s)\"}`;return`Trop grand : ${i[t.origin]??\"valeur\"} doit être ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Trop petit : ${i[t.origin]??\"valeur\"} doit ${a.verb} ${n}${t.minimum.toString()} ${a.unit}`;return`Trop petit : ${i[t.origin]??\"valeur\"} doit être ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Chaîne invalide : doit commencer par \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Chaîne invalide : doit se terminer par \"${n.suffix}\"`;if(n.format===\"includes\")return`Chaîne invalide : doit inclure \"${n.includes}\"`;if(n.format===\"regex\")return`Chaîne invalide : doit correspondre au modèle ${n.pattern}`;return`${o[n.format]??t.format} invalide`}case\"not_multiple_of\":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case\"unrecognized_keys\":return`Clé${t.keys.length>1?\"s\":\"\"} non reconnue${t.keys.length>1?\"s\":\"\"} : ${m(t.keys,\", \")}`;case\"invalid_key\":return`Clé invalide dans ${t.origin}`;case\"invalid_union\":return\"Entrée invalide\";case\"invalid_element\":return`Valeur invalide dans ${t.origin}`;default:return\"Entrée invalide\"}}};function ha(){return{localeError:mf()}}var pf=()=>{let e={string:{unit:\"caractères\",verb:\"avoir\"},file:{unit:\"octets\",verb:\"avoir\"},array:{unit:\"éléments\",verb:\"avoir\"},set:{unit:\"éléments\",verb:\"avoir\"}};function r(t){return e[t]??null}let o={regex:\"entrée\",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ée ISO\",ipv4:\"adresse IPv4\",ipv6:\"adresse IPv6\",cidrv4:\"plage IPv4\",cidrv6:\"plage IPv6\",base64:\"chaîne encodée en base64\",base64url:\"chaîne encodée en base64url\",json_string:\"chaîne JSON\",e164:\"numéro E.164\",jwt:\"JWT\",template_literal:\"entrée\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Entrée invalide : attendu instanceof ${t.expected}, reçu ${c}`;return`Entrée invalide : attendu ${n}, reçu ${c}`}case\"invalid_value\":if(t.values.length===1)return`Entrée invalide : attendu ${g(t.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"≤\":\"<\",a=r(t.origin);if(a)return`Trop grand : attendu que ${t.origin??\"la valeur\"} ait ${n}${t.maximum.toString()} ${a.unit}`;return`Trop grand : attendu que ${t.origin??\"la valeur\"} soit ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\"≥\":\">\",a=r(t.origin);if(a)return`Trop petit : attendu que ${t.origin} ait ${n}${t.minimum.toString()} ${a.unit}`;return`Trop petit : attendu que ${t.origin} soit ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Chaîne invalide : doit commencer par \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Chaîne invalide : doit se terminer par \"${n.suffix}\"`;if(n.format===\"includes\")return`Chaîne invalide : doit inclure \"${n.includes}\"`;if(n.format===\"regex\")return`Chaîne invalide : doit correspondre au motif ${n.pattern}`;return`${o[n.format]??t.format} invalide`}case\"not_multiple_of\":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case\"unrecognized_keys\":return`Clé${t.keys.length>1?\"s\":\"\"} non reconnue${t.keys.length>1?\"s\":\"\"} : ${m(t.keys,\", \")}`;case\"invalid_key\":return`Clé invalide dans ${t.origin}`;case\"invalid_union\":return\"Entrée invalide\";case\"invalid_element\":return`Valeur invalide dans ${t.origin}`;default:return\"Entrée invalide\"}}};function $a(){return{localeError:pf()}}var ff=()=>{let e={string:{label:\"מחרוזת\",gender:\"f\"},number:{label:\"מספר\",gender:\"m\"},boolean:{label:\"ערך בוליאני\",gender:\"m\"},bigint:{label:\"BigInt\",gender:\"m\"},date:{label:\"תאריך\",gender:\"m\"},array:{label:\"מערך\",gender:\"m\"},object:{label:\"אובייקט\",gender:\"m\"},null:{label:\"ערך ריק (null)\",gender:\"m\"},undefined:{label:\"ערך לא מוגדר (undefined)\",gender:\"m\"},symbol:{label:\"סימבול (Symbol)\",gender:\"m\"},function:{label:\"פונקציה\",gender:\"f\"},map:{label:\"מפה (Map)\",gender:\"f\"},set:{label:\"קבוצה (Set)\",gender:\"f\"},file:{label:\"קובץ\",gender:\"m\"},promise:{label:\"Promise\",gender:\"m\"},NaN:{label:\"NaN\",gender:\"m\"},unknown:{label:\"ערך לא ידוע\",gender:\"m\"},value:{label:\"ערך\",gender:\"m\"}},r={string:{unit:\"תווים\",shortLabel:\"קצר\",longLabel:\"ארוך\"},file:{unit:\"בייטים\",shortLabel:\"קטן\",longLabel:\"גדול\"},array:{unit:\"פריטים\",shortLabel:\"קטן\",longLabel:\"גדול\"},set:{unit:\"פריטים\",shortLabel:\"קטן\",longLabel:\"גדול\"},number:{unit:\"\",shortLabel:\"קטן\",longLabel:\"גדול\"}},o=(s)=>s?e[s]:void 0,i=(s)=>{let d=o(s);if(d)return d.label;return s??e.unknown.label},t=(s)=>`ה${i(s)}`,n=(s)=>(o(s)?.gender??\"m\")===\"f\"?\"צריכה להיות\":\"צריך להיות\",a=(s)=>{if(!s)return null;return r[s]??null},c={regex:{label:\"קלט\",gender:\"m\"},email:{label:\"כתובת אימייל\",gender:\"f\"},url:{label:\"כתובת רשת\",gender:\"f\"},emoji:{label:\"אימוג'י\",gender:\"m\"},uuid:{label:\"UUID\",gender:\"m\"},nanoid:{label:\"nanoid\",gender:\"m\"},guid:{label:\"GUID\",gender:\"m\"},cuid:{label:\"cuid\",gender:\"m\"},cuid2:{label:\"cuid2\",gender:\"m\"},ulid:{label:\"ULID\",gender:\"m\"},xid:{label:\"XID\",gender:\"m\"},ksuid:{label:\"KSUID\",gender:\"m\"},datetime:{label:\"תאריך וזמן ISO\",gender:\"m\"},date:{label:\"תאריך ISO\",gender:\"m\"},time:{label:\"זמן ISO\",gender:\"m\"},duration:{label:\"משך זמן ISO\",gender:\"m\"},ipv4:{label:\"כתובת IPv4\",gender:\"f\"},ipv6:{label:\"כתובת IPv6\",gender:\"f\"},cidrv4:{label:\"טווח IPv4\",gender:\"m\"},cidrv6:{label:\"טווח IPv6\",gender:\"m\"},base64:{label:\"מחרוזת בבסיס 64\",gender:\"f\"},base64url:{label:\"מחרוזת בבסיס 64 לכתובות רשת\",gender:\"f\"},json_string:{label:\"מחרוזת JSON\",gender:\"f\"},e164:{label:\"מספר E.164\",gender:\"m\"},jwt:{label:\"JWT\",gender:\"m\"},ends_with:{label:\"קלט\",gender:\"m\"},includes:{label:\"קלט\",gender:\"m\"},lowercase:{label:\"קלט\",gender:\"m\"},starts_with:{label:\"קלט\",gender:\"m\"},uppercase:{label:\"קלט\",gender:\"m\"}},u={nan:\"NaN\"};return(s)=>{switch(s.code){case\"invalid_type\":{let d=s.expected,f=u[d??\"\"]??i(d),_=v(s.input),y=u[_]??e[_]?.label??_;if(/^[A-Z]/.test(s.expected))return`קלט לא תקין: צריך להיות instanceof ${s.expected}, התקבל ${y}`;return`קלט לא תקין: צריך להיות ${f}, התקבל ${y}`}case\"invalid_value\":{if(s.values.length===1)return`ערך לא תקין: הערך חייב להיות ${g(s.values[0])}`;let d=s.values.map((y)=>g(y));if(s.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${d[0]} או ${d[1]}`;let f=d[d.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${d.slice(0,-1).join(\", \")} או ${f}`}case\"too_big\":{let d=a(s.origin),f=t(s.origin??\"value\");if(s.origin===\"string\")return`${d?.longLabel??\"ארוך\"} מדי: ${f} צריכה להכיל ${s.maximum.toString()} ${d?.unit??\"\"} ${s.inclusive?\"או פחות\":\"לכל היותר\"}`.trim();if(s.origin===\"number\"){let k=s.inclusive?`קטן או שווה ל-${s.maximum}`:`קטן מ-${s.maximum}`;return`גדול מדי: ${f} צריך להיות ${k}`}if(s.origin===\"array\"||s.origin===\"set\"){let k=s.origin===\"set\"?\"צריכה\":\"צריך\",V=s.inclusive?`${s.maximum} ${d?.unit??\"\"} או פחות`:`פחות מ-${s.maximum} ${d?.unit??\"\"}`;return`גדול מדי: ${f} ${k} להכיל ${V}`.trim()}let _=s.inclusive?\"<=\":\"<\",y=n(s.origin??\"value\");if(d?.unit)return`${d.longLabel} מדי: ${f} ${y} ${_}${s.maximum.toString()} ${d.unit}`;return`${d?.longLabel??\"גדול\"} מדי: ${f} ${y} ${_}${s.maximum.toString()}`}case\"too_small\":{let d=a(s.origin),f=t(s.origin??\"value\");if(s.origin===\"string\")return`${d?.shortLabel??\"קצר\"} מדי: ${f} צריכה להכיל ${s.minimum.toString()} ${d?.unit??\"\"} ${s.inclusive?\"או יותר\":\"לפחות\"}`.trim();if(s.origin===\"number\"){let k=s.inclusive?`גדול או שווה ל-${s.minimum}`:`גדול מ-${s.minimum}`;return`קטן מדי: ${f} צריך להיות ${k}`}if(s.origin===\"array\"||s.origin===\"set\"){let k=s.origin===\"set\"?\"צריכה\":\"צריך\";if(s.minimum===1&&s.inclusive){let E=s.origin===\"set\"?\"לפחות פריט אחד\":\"לפחות פריט אחד\";return`קטן מדי: ${f} ${k} להכיל ${E}`}let V=s.inclusive?`${s.minimum} ${d?.unit??\"\"} או יותר`:`יותר מ-${s.minimum} ${d?.unit??\"\"}`;return`קטן מדי: ${f} ${k} להכיל ${V}`.trim()}let _=s.inclusive?\">=\":\">\",y=n(s.origin??\"value\");if(d?.unit)return`${d.shortLabel} מדי: ${f} ${y} ${_}${s.minimum.toString()} ${d.unit}`;return`${d?.shortLabel??\"קטן\"} מדי: ${f} ${y} ${_}${s.minimum.toString()}`}case\"invalid_format\":{let d=s;if(d.format===\"starts_with\")return`המחרוזת חייבת להתחיל ב \"${d.prefix}\"`;if(d.format===\"ends_with\")return`המחרוזת חייבת להסתיים ב \"${d.suffix}\"`;if(d.format===\"includes\")return`המחרוזת חייבת לכלול \"${d.includes}\"`;if(d.format===\"regex\")return`המחרוזת חייבת להתאים לתבנית ${d.pattern}`;let f=c[d.format],_=f?.label??d.format,k=(f?.gender??\"m\")===\"f\"?\"תקינה\":\"תקין\";return`${_} לא ${k}`}case\"not_multiple_of\":return`מספר לא תקין: חייב להיות מכפלה של ${s.divisor}`;case\"unrecognized_keys\":return`מפתח${s.keys.length>1?\"ות\":\"\"} לא מזוה${s.keys.length>1?\"ים\":\"ה\"}: ${m(s.keys,\", \")}`;case\"invalid_key\":return\"שדה לא תקין באובייקט\";case\"invalid_union\":return\"קלט לא תקין\";case\"invalid_element\":return`ערך לא תקין ב${t(s.origin??\"array\")}`;default:return\"קלט לא תקין\"}}};function ya(){return{localeError:ff()}}var gf=()=>{let e={string:{unit:\"znakova\",verb:\"imati\"},file:{unit:\"bajtova\",verb:\"imati\"},array:{unit:\"stavki\",verb:\"imati\"},set:{unit:\"stavki\",verb:\"imati\"}};function r(t){return e[t]??null}let o={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\",cidrv4:\"IPv4 raspon\",cidrv6:\"IPv6 raspon\",base64:\"base64 kodirani tekst\",base64url:\"base64url kodirani tekst\",json_string:\"JSON tekst\",e164:\"E.164 broj\",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(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${c}`;return`Neispravan unos: očekuje se ${n}, a primljeno je ${c}`}case\"invalid_value\":if(t.values.length===1)return`Neispravna vrijednost: očekivano ${g(t.values[0])}`;return`Neispravna opcija: očekivano jedno od ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin),c=i[t.origin]??t.origin;if(a)return`Preveliko: očekivano da ${c??\"vrijednost\"} ima ${n}${t.maximum.toString()} ${a.unit??\"elemenata\"}`;return`Preveliko: očekivano da ${c??\"vrijednost\"} bude ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin),c=i[t.origin]??t.origin;if(a)return`Premalo: očekivano da ${c} ima ${n}${t.minimum.toString()} ${a.unit}`;return`Premalo: očekivano da ${c} bude ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Neispravan tekst: mora započinjati s \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Neispravan tekst: mora završavati s \"${n.suffix}\"`;if(n.format===\"includes\")return`Neispravan tekst: mora sadržavati \"${n.includes}\"`;if(n.format===\"regex\")return`Neispravan tekst: mora odgovarati uzorku ${n.pattern}`;return`Neispravna ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Neispravan broj: mora biti višekratnik od ${t.divisor}`;case\"unrecognized_keys\":return`Neprepoznat${t.keys.length>1?\"i ključevi\":\" ključ\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Neispravan ključ u ${i[t.origin]??t.origin}`;case\"invalid_union\":return\"Neispravan unos\";case\"invalid_element\":return`Neispravna vrijednost u ${i[t.origin]??t.origin}`;default:return\"Neispravan unos\"}}};function _a(){return{localeError:gf()}}var vf=()=>{let e={string:{unit:\"karakter\",verb:\"legyen\"},file:{unit:\"byte\",verb:\"legyen\"},array:{unit:\"elem\",verb:\"legyen\"},set:{unit:\"elem\",verb:\"legyen\"}};function r(t){return e[t]??null}let o={regex:\"bemenet\",email:\"email cím\",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őbélyeg\",date:\"ISO dátum\",time:\"ISO idő\",duration:\"ISO időintervallum\",ipv4:\"IPv4 cím\",ipv6:\"IPv6 cím\",cidrv4:\"IPv4 tartomány\",cidrv6:\"IPv6 tartomány\",base64:\"base64-kódolt string\",base64url:\"base64url-kódolt string\",json_string:\"JSON string\",e164:\"E.164 szám\",jwt:\"JWT\",template_literal:\"bemenet\"},i={nan:\"NaN\",number:\"szám\",array:\"tömb\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${c}`;return`Érvénytelen bemenet: a várt érték ${n}, a kapott érték ${c}`}case\"invalid_value\":if(t.values.length===1)return`Érvénytelen bemenet: a várt érték ${g(t.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Túl nagy: ${t.origin??\"érték\"} mérete túl nagy ${n}${t.maximum.toString()} ${a.unit??\"elem\"}`;return`Túl nagy: a bemeneti érték ${t.origin??\"érték\"} túl nagy: ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${n}${t.minimum.toString()} ${a.unit}`;return`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Érvénytelen string: \"${n.prefix}\" értékkel kell kezdődnie`;if(n.format===\"ends_with\")return`Érvénytelen string: \"${n.suffix}\" értékkel kell végződnie`;if(n.format===\"includes\")return`Érvénytelen string: \"${n.includes}\" értéket kell tartalmaznia`;if(n.format===\"regex\")return`Érvénytelen string: ${n.pattern} mintának kell megfelelnie`;return`Érvénytelen ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case\"unrecognized_keys\":return`Ismeretlen kulcs${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Érvénytelen kulcs ${t.origin}`;case\"invalid_union\":return\"Érvénytelen bemenet\";case\"invalid_element\":return`Érvénytelen érték: ${t.origin}`;default:return\"Érvénytelen bemenet\"}}};function ba(){return{localeError:vf()}}function Pl(e,r,o){return Math.abs(e)===1?r:o}function Le(e){if(!e)return\"\";let r=[\"ա\",\"ե\",\"ը\",\"ի\",\"ո\",\"ու\",\"օ\"],o=e[e.length-1];return e+(r.includes(o)?\"ն\":\"ը\")}var hf=()=>{let e={string:{unit:{one:\"նշան\",many:\"նշաններ\"},verb:\"ունենալ\"},file:{unit:{one:\"բայթ\",many:\"բայթեր\"},verb:\"ունենալ\"},array:{unit:{one:\"տարր\",many:\"տարրեր\"},verb:\"ունենալ\"},set:{unit:{one:\"տարր\",many:\"տարրեր\"},verb:\"ունենալ\"}};function r(t){return e[t]??null}let o={regex:\"մուտք\",email:\"էլ. հասցե\",url:\"URL\",emoji:\"էմոջի\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO ամսաթիվ և ժամ\",date:\"ISO ամսաթիվ\",time:\"ISO ժամ\",duration:\"ISO տևողություն\",ipv4:\"IPv4 հասցե\",ipv6:\"IPv6 հասցե\",cidrv4:\"IPv4 միջակայք\",cidrv6:\"IPv6 միջակայք\",base64:\"base64 ձևաչափով տող\",base64url:\"base64url ձևաչափով տող\",json_string:\"JSON տող\",e164:\"E.164 համար\",jwt:\"JWT\",template_literal:\"մուտք\"},i={nan:\"NaN\",number:\"թիվ\",array:\"զանգված\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${c}`;return`Սխալ մուտքագրում․ սպասվում էր ${n}, ստացվել է ${c}`}case\"invalid_value\":if(t.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${g(t.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a){let c=Number(t.maximum),u=Pl(c,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Le(t.origin??\"արժեք\")} կունենա ${n}${t.maximum.toString()} ${u}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Le(t.origin??\"արժեք\")} լինի ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a){let c=Number(t.minimum),u=Pl(c,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Le(t.origin)} կունենա ${n}${t.minimum.toString()} ${u}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Le(t.origin)} լինի ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Սխալ տող․ պետք է սկսվի \"${n.prefix}\"-ով`;if(n.format===\"ends_with\")return`Սխալ տող․ պետք է ավարտվի \"${n.suffix}\"-ով`;if(n.format===\"includes\")return`Սխալ տող․ պետք է պարունակի \"${n.includes}\"`;if(n.format===\"regex\")return`Սխալ տող․ պետք է համապատասխանի ${n.pattern} ձևաչափին`;return`Սխալ ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`;case\"unrecognized_keys\":return`Չճանաչված բանալի${t.keys.length>1?\"ներ\":\"\"}. ${m(t.keys,\", \")}`;case\"invalid_key\":return`Սխալ բանալի ${Le(t.origin)}-ում`;case\"invalid_union\":return\"Սխալ մուտքագրում\";case\"invalid_element\":return`Սխալ արժեք ${Le(t.origin)}-ում`;default:return\"Սխալ մուտքագրում\"}}};function xa(){return{localeError:hf()}}var $f=()=>{let e={string:{unit:\"karakter\",verb:\"memiliki\"},file:{unit:\"byte\",verb:\"memiliki\"},array:{unit:\"item\",verb:\"memiliki\"},set:{unit:\"item\",verb:\"memiliki\"}};function r(t){return e[t]??null}let o={regex:\"input\",email:\"alamat email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"tanggal dan waktu format ISO\",date:\"tanggal format ISO\",time:\"jam format ISO\",duration:\"durasi format ISO\",ipv4:\"alamat IPv4\",ipv6:\"alamat IPv6\",cidrv4:\"rentang alamat IPv4\",cidrv6:\"rentang alamat IPv6\",base64:\"string dengan enkode base64\",base64url:\"string dengan enkode base64url\",json_string:\"string JSON\",e164:\"angka E.164\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${c}`;return`Input tidak valid: diharapkan ${n}, diterima ${c}`}case\"invalid_value\":if(t.values.length===1)return`Input tidak valid: diharapkan ${g(t.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Terlalu besar: diharapkan ${t.origin??\"value\"} memiliki ${n}${t.maximum.toString()} ${a.unit??\"elemen\"}`;return`Terlalu besar: diharapkan ${t.origin??\"value\"} menjadi ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Terlalu kecil: diharapkan ${t.origin} memiliki ${n}${t.minimum.toString()} ${a.unit}`;return`Terlalu kecil: diharapkan ${t.origin} menjadi ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`String tidak valid: harus dimulai dengan \"${n.prefix}\"`;if(n.format===\"ends_with\")return`String tidak valid: harus berakhir dengan \"${n.suffix}\"`;if(n.format===\"includes\")return`String tidak valid: harus menyertakan \"${n.includes}\"`;if(n.format===\"regex\")return`String tidak valid: harus sesuai pola ${n.pattern}`;return`${o[n.format]??t.format} tidak valid`}case\"not_multiple_of\":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case\"unrecognized_keys\":return`Kunci tidak dikenali ${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Kunci tidak valid di ${t.origin}`;case\"invalid_union\":return\"Input tidak valid\";case\"invalid_element\":return`Nilai tidak valid di ${t.origin}`;default:return\"Input tidak valid\"}}};function ka(){return{localeError:$f()}}var yf=()=>{let e={string:{unit:\"stafi\",verb:\"að hafa\"},file:{unit:\"bæti\",verb:\"að hafa\"},array:{unit:\"hluti\",verb:\"að hafa\"},set:{unit:\"hluti\",verb:\"að hafa\"}};function r(t){return e[t]??null}let o={regex:\"gildi\",email:\"netfang\",url:\"vefslóð\",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ími\",date:\"ISO dagsetning\",time:\"ISO tími\",duration:\"ISO tímalengd\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded strengur\",base64url:\"base64url-encoded strengur\",json_string:\"JSON strengur\",e164:\"E.164 tölugildi\",jwt:\"JWT\",template_literal:\"gildi\"},i={nan:\"NaN\",number:\"númer\",array:\"fylki\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Rangt gildi: Þú slóst inn ${c} þar sem á að vera instanceof ${t.expected}`;return`Rangt gildi: Þú slóst inn ${c} þar sem á að vera ${n}`}case\"invalid_value\":if(t.values.length===1)return`Rangt gildi: gert ráð fyrir ${g(t.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Of stórt: gert er ráð fyrir að ${t.origin??\"gildi\"} hafi ${n}${t.maximum.toString()} ${a.unit??\"hluti\"}`;return`Of stórt: gert er ráð fyrir að ${t.origin??\"gildi\"} sé ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Of lítið: gert er ráð fyrir að ${t.origin} hafi ${n}${t.minimum.toString()} ${a.unit}`;return`Of lítið: gert er ráð fyrir að ${t.origin} sé ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ógildur strengur: verður að byrja á \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Ógildur strengur: verður að enda á \"${n.suffix}\"`;if(n.format===\"includes\")return`Ógildur strengur: verður að innihalda \"${n.includes}\"`;if(n.format===\"regex\")return`Ógildur strengur: verður að fylgja mynstri ${n.pattern}`;return`Rangt ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Röng tala: verður að vera margfeldi af ${t.divisor}`;case\"unrecognized_keys\":return`Óþekkt ${t.keys.length>1?\"ir lyklar\":\"ur lykill\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Rangur lykill í ${t.origin}`;case\"invalid_union\":return\"Rangt gildi\";case\"invalid_element\":return`Rangt gildi í ${t.origin}`;default:return\"Rangt gildi\"}}};function wa(){return{localeError:yf()}}var _f=()=>{let e={string:{unit:\"caratteri\",verb:\"avere\"},file:{unit:\"byte\",verb:\"avere\"},array:{unit:\"elementi\",verb:\"avere\"},set:{unit:\"elementi\",verb:\"avere\"}};function r(t){return e[t]??null}let o={regex:\"input\",email:\"indirizzo email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data e ora ISO\",date:\"data ISO\",time:\"ora ISO\",duration:\"durata ISO\",ipv4:\"indirizzo IPv4\",ipv6:\"indirizzo IPv6\",cidrv4:\"intervallo IPv4\",cidrv6:\"intervallo IPv6\",base64:\"stringa codificata in base64\",base64url:\"URL codificata in base64\",json_string:\"stringa JSON\",e164:\"numero E.164\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"numero\",array:\"vettore\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Input non valido: atteso instanceof ${t.expected}, ricevuto ${c}`;return`Input non valido: atteso ${n}, ricevuto ${c}`}case\"invalid_value\":if(t.values.length===1)return`Input non valido: atteso ${g(t.values[0])}`;return`Opzione non valida: atteso uno tra ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Troppo grande: ${t.origin??\"valore\"} deve avere ${n}${t.maximum.toString()} ${a.unit??\"elementi\"}`;return`Troppo grande: ${t.origin??\"valore\"} deve essere ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Troppo piccolo: ${t.origin} deve avere ${n}${t.minimum.toString()} ${a.unit}`;return`Troppo piccolo: ${t.origin} deve essere ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Stringa non valida: deve iniziare con \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Stringa non valida: deve terminare con \"${n.suffix}\"`;if(n.format===\"includes\")return`Stringa non valida: deve includere \"${n.includes}\"`;if(n.format===\"regex\")return`Stringa non valida: deve corrispondere al pattern ${n.pattern}`;return`Input non valido: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case\"unrecognized_keys\":return`Chiav${t.keys.length>1?\"i\":\"e\"} non riconosciut${t.keys.length>1?\"e\":\"a\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Chiave non valida in ${t.origin}`;case\"invalid_union\":return\"Input non valido\";case\"invalid_element\":return`Valore non valido in ${t.origin}`;default:return\"Input non valido\"}}};function Ia(){return{localeError:_f()}}var bf=()=>{let e={string:{unit:\"文字\",verb:\"である\"},file:{unit:\"バイト\",verb:\"である\"},array:{unit:\"要素\",verb:\"である\"},set:{unit:\"要素\",verb:\"である\"}};function r(t){return e[t]??null}let o={regex:\"入力値\",email:\"メールアドレス\",url:\"URL\",emoji:\"絵文字\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO日時\",date:\"ISO日付\",time:\"ISO時刻\",duration:\"ISO期間\",ipv4:\"IPv4アドレス\",ipv6:\"IPv6アドレス\",cidrv4:\"IPv4範囲\",cidrv6:\"IPv6範囲\",base64:\"base64エンコード文字列\",base64url:\"base64urlエンコード文字列\",json_string:\"JSON文字列\",e164:\"E.164番号\",jwt:\"JWT\",template_literal:\"入力値\"},i={nan:\"NaN\",number:\"数値\",array:\"配列\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`無効な入力: instanceof ${t.expected}が期待されましたが、${c}が入力されました`;return`無効な入力: ${n}が期待されましたが、${c}が入力されました`}case\"invalid_value\":if(t.values.length===1)return`無効な入力: ${g(t.values[0])}が期待されました`;return`無効な選択: ${m(t.values,\"、\")}のいずれかである必要があります`;case\"too_big\":{let n=t.inclusive?\"以下である\":\"より小さい\",a=r(t.origin);if(a)return`大きすぎる値: ${t.origin??\"値\"}は${t.maximum.toString()}${a.unit??\"要素\"}${n}必要があります`;return`大きすぎる値: ${t.origin??\"値\"}は${t.maximum.toString()}${n}必要があります`}case\"too_small\":{let n=t.inclusive?\"以上である\":\"より大きい\",a=r(t.origin);if(a)return`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a.unit}${n}必要があります`;return`小さすぎる値: ${t.origin}は${t.minimum.toString()}${n}必要があります`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`無効な文字列: \"${n.prefix}\"で始まる必要があります`;if(n.format===\"ends_with\")return`無効な文字列: \"${n.suffix}\"で終わる必要があります`;if(n.format===\"includes\")return`無効な文字列: \"${n.includes}\"を含む必要があります`;if(n.format===\"regex\")return`無効な文字列: パターン${n.pattern}に一致する必要があります`;return`無効な${o[n.format]??t.format}`}case\"not_multiple_of\":return`無効な数値: ${t.divisor}の倍数である必要があります`;case\"unrecognized_keys\":return`認識されていないキー${t.keys.length>1?\"群\":\"\"}: ${m(t.keys,\"、\")}`;case\"invalid_key\":return`${t.origin}内の無効なキー`;case\"invalid_union\":return\"無効な入力\";case\"invalid_element\":return`${t.origin}内の無効な値`;default:return\"無効な入力\"}}};function za(){return{localeError:bf()}}var xf=()=>{let e={string:{unit:\"სიმბოლო\",verb:\"უნდა შეიცავდეს\"},file:{unit:\"ბაიტი\",verb:\"უნდა შეიცავდეს\"},array:{unit:\"ელემენტი\",verb:\"უნდა შეიცავდეს\"},set:{unit:\"ელემენტი\",verb:\"უნდა შეიცავდეს\"}};function r(t){return e[t]??null}let o={regex:\"შეყვანა\",email:\"ელ-ფოსტის მისამართი\",url:\"URL\",emoji:\"ემოჯი\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"თარიღი-დრო\",date:\"თარიღი\",time:\"დრო\",duration:\"ხანგრძლივობა\",ipv4:\"IPv4 მისამართი\",ipv6:\"IPv6 მისამართი\",cidrv4:\"IPv4 დიაპაზონი\",cidrv6:\"IPv6 დიაპაზონი\",base64:\"base64-კოდირებული ველი\",base64url:\"base64url-კოდირებული ველი\",json_string:\"JSON ველი\",e164:\"E.164 ნომერი\",jwt:\"JWT\",template_literal:\"შეყვანა\"},i={nan:\"NaN\",number:\"რიცხვი\",string:\"ველი\",boolean:\"ბულეანი\",function:\"ფუნქცია\",array:\"მასივი\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${c}`;return`არასწორი შეყვანა: მოსალოდნელი ${n}, მიღებული ${c}`}case\"invalid_value\":if(t.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${g(t.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${m(t.values,\"|\")}-დან`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`ზედმეტად დიდი: მოსალოდნელი ${t.origin??\"მნიშვნელობა\"} ${a.verb} ${n}${t.maximum.toString()} ${a.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${t.origin??\"მნიშვნელობა\"} იყოს ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${n}${t.minimum.toString()} ${a.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`არასწორი ველი: უნდა იწყებოდეს \"${n.prefix}\"-ით`;if(n.format===\"ends_with\")return`არასწორი ველი: უნდა მთავრდებოდეს \"${n.suffix}\"-ით`;if(n.format===\"includes\")return`არასწორი ველი: უნდა შეიცავდეს \"${n.includes}\"-ს`;if(n.format===\"regex\")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`;return`არასწორი ${o[n.format]??t.format}`}case\"not_multiple_of\":return`არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`;case\"unrecognized_keys\":return`უცნობი გასაღებ${t.keys.length>1?\"ები\":\"ი\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`არასწორი გასაღები ${t.origin}-ში`;case\"invalid_union\":return\"არასწორი შეყვანა\";case\"invalid_element\":return`არასწორი მნიშვნელობა ${t.origin}-ში`;default:return\"არასწორი შეყვანა\"}}};function Sa(){return{localeError:xf()}}var kf=()=>{let e={string:{unit:\"តួអក្សរ\",verb:\"គួរមាន\"},file:{unit:\"បៃ\",verb:\"គួរមាន\"},array:{unit:\"ធាតុ\",verb:\"គួរមាន\"},set:{unit:\"ធាតុ\",verb:\"គួរមាន\"}};function r(t){return e[t]??null}let o={regex:\"ទិន្នន័យបញ្ចូល\",email:\"អាសយដ្ឋានអ៊ីមែល\",url:\"URL\",emoji:\"សញ្ញាអារម្មណ៍\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"កាលបរិច្ឆេទ និងម៉ោង ISO\",date:\"កាលបរិច្ឆេទ ISO\",time:\"ម៉ោង ISO\",duration:\"រយៈពេល ISO\",ipv4:\"អាសយដ្ឋាន IPv4\",ipv6:\"អាសយដ្ឋាន IPv6\",cidrv4:\"ដែនអាសយដ្ឋាន IPv4\",cidrv6:\"ដែនអាសយដ្ឋាន IPv6\",base64:\"ខ្សែអក្សរអ៊ិកូដ base64\",base64url:\"ខ្សែអក្សរអ៊ិកូដ base64url\",json_string:\"ខ្សែអក្សរ JSON\",e164:\"លេខ E.164\",jwt:\"JWT\",template_literal:\"ទិន្នន័យបញ្ចូល\"},i={nan:\"NaN\",number:\"លេខ\",array:\"អារេ (Array)\",null:\"គ្មានតម្លៃ (null)\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${c}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n} ប៉ុន្តែទទួលបាន ${c}`}case\"invalid_value\":if(t.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${g(t.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`ធំពេក៖ ត្រូវការ ${t.origin??\"តម្លៃ\"} ${n} ${t.maximum.toString()} ${a.unit??\"ធាតុ\"}`;return`ធំពេក៖ ត្រូវការ ${t.origin??\"តម្លៃ\"} ${n} ${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`តូចពេក៖ ត្រូវការ ${t.origin} ${n} ${t.minimum.toString()} ${a.unit}`;return`តូចពេក៖ ត្រូវការ ${t.origin} ${n} ${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \"${n.prefix}\"`;if(n.format===\"ends_with\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \"${n.suffix}\"`;if(n.format===\"includes\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \"${n.includes}\"`;if(n.format===\"regex\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${n.pattern}`;return`មិនត្រឹមត្រូវ៖ ${o[n.format]??t.format}`}case\"not_multiple_of\":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case\"unrecognized_keys\":return`រកឃើញសោមិនស្គាល់៖ ${m(t.keys,\", \")}`;case\"invalid_key\":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case\"invalid_union\":return\"ទិន្នន័យមិនត្រឹមត្រូវ\";case\"invalid_element\":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return\"ទិន្នន័យមិនត្រឹមត្រូវ\"}}};function St(){return{localeError:kf()}}function Ta(){return St()}var wf=()=>{let e={string:{unit:\"문자\",verb:\"to have\"},file:{unit:\"바이트\",verb:\"to have\"},array:{unit:\"개\",verb:\"to have\"},set:{unit:\"개\",verb:\"to have\"}};function r(t){return e[t]??null}let o={regex:\"입력\",email:\"이메일 주소\",url:\"URL\",emoji:\"이모지\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO 날짜시간\",date:\"ISO 날짜\",time:\"ISO 시간\",duration:\"ISO 기간\",ipv4:\"IPv4 주소\",ipv6:\"IPv6 주소\",cidrv4:\"IPv4 범위\",cidrv6:\"IPv6 범위\",base64:\"base64 인코딩 문자열\",base64url:\"base64url 인코딩 문자열\",json_string:\"JSON 문자열\",e164:\"E.164 번호\",jwt:\"JWT\",template_literal:\"입력\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${c}입니다`;return`잘못된 입력: 예상 타입은 ${n}, 받은 타입은 ${c}입니다`}case\"invalid_value\":if(t.values.length===1)return`잘못된 입력: 값은 ${g(t.values[0])} 이어야 합니다`;return`잘못된 옵션: ${m(t.values,\"또는 \")} 중 하나여야 합니다`;case\"too_big\":{let n=t.inclusive?\"이하\":\"미만\",a=n===\"미만\"?\"이어야 합니다\":\"여야 합니다\",c=r(t.origin),u=c?.unit??\"요소\";if(c)return`${t.origin??\"값\"}이 너무 큽니다: ${t.maximum.toString()}${u} ${n}${a}`;return`${t.origin??\"값\"}이 너무 큽니다: ${t.maximum.toString()} ${n}${a}`}case\"too_small\":{let n=t.inclusive?\"이상\":\"초과\",a=n===\"이상\"?\"이어야 합니다\":\"여야 합니다\",c=r(t.origin),u=c?.unit??\"요소\";if(c)return`${t.origin??\"값\"}이 너무 작습니다: ${t.minimum.toString()}${u} ${n}${a}`;return`${t.origin??\"값\"}이 너무 작습니다: ${t.minimum.toString()} ${n}${a}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`잘못된 문자열: \"${n.prefix}\"(으)로 시작해야 합니다`;if(n.format===\"ends_with\")return`잘못된 문자열: \"${n.suffix}\"(으)로 끝나야 합니다`;if(n.format===\"includes\")return`잘못된 문자열: \"${n.includes}\"을(를) 포함해야 합니다`;if(n.format===\"regex\")return`잘못된 문자열: 정규식 ${n.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${o[n.format]??t.format}`}case\"not_multiple_of\":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case\"unrecognized_keys\":return`인식할 수 없는 키: ${m(t.keys,\", \")}`;case\"invalid_key\":return`잘못된 키: ${t.origin}`;case\"invalid_union\":return\"잘못된 입력\";case\"invalid_element\":return`잘못된 값: ${t.origin}`;default:return\"잘못된 입력\"}}};function Oa(){return{localeError:wf()}}var Tt=(e)=>e.charAt(0).toUpperCase()+e.slice(1);function Dl(e){let r=Math.abs(e),o=r%10,i=r%100;if(i>=11&&i<=19||o===0)return\"many\";if(o===1)return\"one\";return\"few\"}var If=()=>{let e={string:{unit:{one:\"simbolis\",few:\"simboliai\",many:\"simbolių\"},verb:{smaller:{inclusive:\"turi būti ne ilgesnė kaip\",notInclusive:\"turi būti trumpesnė kaip\"},bigger:{inclusive:\"turi būti ne trumpesnė kaip\",notInclusive:\"turi būti ilgesnė kaip\"}}},file:{unit:{one:\"baitas\",few:\"baitai\",many:\"baitų\"},verb:{smaller:{inclusive:\"turi būti ne didesnis kaip\",notInclusive:\"turi būti mažesnis kaip\"},bigger:{inclusive:\"turi būti ne mažesnis kaip\",notInclusive:\"turi būti didesnis kaip\"}}},array:{unit:{one:\"elementą\",few:\"elementus\",many:\"elementų\"},verb:{smaller:{inclusive:\"turi turėti ne daugiau kaip\",notInclusive:\"turi turėti mažiau kaip\"},bigger:{inclusive:\"turi turėti ne mažiau kaip\",notInclusive:\"turi turėti daugiau kaip\"}}},set:{unit:{one:\"elementą\",few:\"elementus\",many:\"elementų\"},verb:{smaller:{inclusive:\"turi turėti ne daugiau kaip\",notInclusive:\"turi turėti mažiau kaip\"},bigger:{inclusive:\"turi turėti ne mažiau kaip\",notInclusive:\"turi turėti daugiau kaip\"}}}};function r(t,n,a,c){let u=e[t]??null;if(u===null)return u;return{unit:u.unit[n],verb:u.verb[c][a?\"inclusive\":\"notInclusive\"]}}let o={regex:\"įvestis\",email:\"el. pašto 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ė\",ipv4:\"IPv4 adresas\",ipv6:\"IPv6 adresas\",cidrv4:\"IPv4 tinklo prefiksas (CIDR)\",cidrv6:\"IPv6 tinklo prefiksas (CIDR)\",base64:\"base64 užkoduota eilutė\",base64url:\"base64url užkoduota eilutė\",json_string:\"JSON eilutė\",e164:\"E.164 numeris\",jwt:\"JWT\",template_literal:\"įvestis\"},i={nan:\"NaN\",number:\"skaičius\",bigint:\"sveikasis skaičius\",string:\"eilutė\",boolean:\"loginė reikšmė\",undefined:\"neapibrėžta reikšmė\",function:\"funkcija\",symbol:\"simbolis\",array:\"masyvas\",object:\"objektas\",null:\"nulinė reikšmė\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Gautas tipas ${c}, o tikėtasi - instanceof ${t.expected}`;return`Gautas tipas ${c}, o tikėtasi - ${n}`}case\"invalid_value\":if(t.values.length===1)return`Privalo būti ${g(t.values[0])}`;return`Privalo būti vienas iš ${m(t.values,\"|\")} pasirinkimų`;case\"too_big\":{let n=i[t.origin]??t.origin,a=r(t.origin,Dl(Number(t.maximum)),t.inclusive??!1,\"smaller\");if(a?.verb)return`${Tt(n??t.origin??\"reikšmė\")} ${a.verb} ${t.maximum.toString()} ${a.unit??\"elementų\"}`;let c=t.inclusive?\"ne didesnis kaip\":\"mažesnis kaip\";return`${Tt(n??t.origin??\"reikšmė\")} turi būti ${c} ${t.maximum.toString()} ${a?.unit}`}case\"too_small\":{let n=i[t.origin]??t.origin,a=r(t.origin,Dl(Number(t.minimum)),t.inclusive??!1,\"bigger\");if(a?.verb)return`${Tt(n??t.origin??\"reikšmė\")} ${a.verb} ${t.minimum.toString()} ${a.unit??\"elementų\"}`;let c=t.inclusive?\"ne mažesnis kaip\":\"didesnis kaip\";return`${Tt(n??t.origin??\"reikšmė\")} turi būti ${c} ${t.minimum.toString()} ${a?.unit}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Eilutė privalo prasidėti \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Eilutė privalo pasibaigti \"${n.suffix}\"`;if(n.format===\"includes\")return`Eilutė privalo įtraukti \"${n.includes}\"`;if(n.format===\"regex\")return`Eilutė privalo atitikti ${n.pattern}`;return`Neteisingas ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Skaičius privalo būti ${t.divisor} kartotinis.`;case\"unrecognized_keys\":return`Neatpažint${t.keys.length>1?\"i\":\"as\"} rakt${t.keys.length>1?\"ai\":\"as\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return\"Rastas klaidingas raktas\";case\"invalid_union\":return\"Klaidinga įvestis\";case\"invalid_element\":{let n=i[t.origin]??t.origin;return`${Tt(n??t.origin??\"reikšmė\")} turi klaidingą įvestį`}default:return\"Klaidinga įvestis\"}}};function ja(){return{localeError:If()}}var zf=()=>{let e={string:{unit:\"знаци\",verb:\"да имаат\"},file:{unit:\"бајти\",verb:\"да имаат\"},array:{unit:\"ставки\",verb:\"да имаат\"},set:{unit:\"ставки\",verb:\"да имаат\"}};function r(t){return e[t]??null}let o={regex:\"внес\",email:\"адреса на е-пошта\",url:\"URL\",emoji:\"емоџи\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO датум и време\",date:\"ISO датум\",time:\"ISO време\",duration:\"ISO времетраење\",ipv4:\"IPv4 адреса\",ipv6:\"IPv6 адреса\",cidrv4:\"IPv4 опсег\",cidrv6:\"IPv6 опсег\",base64:\"base64-енкодирана низа\",base64url:\"base64url-енкодирана низа\",json_string:\"JSON низа\",e164:\"E.164 број\",jwt:\"JWT\",template_literal:\"внес\"},i={nan:\"NaN\",number:\"број\",array:\"низа\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Грешен внес: се очекува instanceof ${t.expected}, примено ${c}`;return`Грешен внес: се очекува ${n}, примено ${c}`}case\"invalid_value\":if(t.values.length===1)return`Invalid input: expected ${g(t.values[0])}`;return`Грешана опција: се очекува една ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Премногу голем: се очекува ${t.origin??\"вредноста\"} да има ${n}${t.maximum.toString()} ${a.unit??\"елементи\"}`;return`Премногу голем: се очекува ${t.origin??\"вредноста\"} да биде ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Премногу мал: се очекува ${t.origin} да има ${n}${t.minimum.toString()} ${a.unit}`;return`Премногу мал: се очекува ${t.origin} да биде ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Неважечка низа: мора да започнува со \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Неважечка низа: мора да завршува со \"${n.suffix}\"`;if(n.format===\"includes\")return`Неважечка низа: мора да вклучува \"${n.includes}\"`;if(n.format===\"regex\")return`Неважечка низа: мора да одгоара на патернот ${n.pattern}`;return`Invalid ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Грешен број: мора да биде делив со ${t.divisor}`;case\"unrecognized_keys\":return`${t.keys.length>1?\"Непрепознаени клучеви\":\"Непрепознаен клуч\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Грешен клуч во ${t.origin}`;case\"invalid_union\":return\"Грешен внес\";case\"invalid_element\":return`Грешна вредност во ${t.origin}`;default:return\"Грешен внес\"}}};function Pa(){return{localeError:zf()}}var Sf=()=>{let e={string:{unit:\"aksara\",verb:\"mempunyai\"},file:{unit:\"bait\",verb:\"mempunyai\"},array:{unit:\"elemen\",verb:\"mempunyai\"},set:{unit:\"elemen\",verb:\"mempunyai\"}};function r(t){return e[t]??null}let o={regex:\"input\",email:\"alamat e-mel\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"tarikh masa ISO\",date:\"tarikh ISO\",time:\"masa ISO\",duration:\"tempoh ISO\",ipv4:\"alamat IPv4\",ipv6:\"alamat IPv6\",cidrv4:\"julat IPv4\",cidrv6:\"julat IPv6\",base64:\"string dikodkan base64\",base64url:\"string dikodkan base64url\",json_string:\"string JSON\",e164:\"nombor E.164\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"nombor\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${c}`;return`Input tidak sah: dijangka ${n}, diterima ${c}`}case\"invalid_value\":if(t.values.length===1)return`Input tidak sah: dijangka ${g(t.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Terlalu besar: dijangka ${t.origin??\"nilai\"} ${a.verb} ${n}${t.maximum.toString()} ${a.unit??\"elemen\"}`;return`Terlalu besar: dijangka ${t.origin??\"nilai\"} adalah ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${n}${t.minimum.toString()} ${a.unit}`;return`Terlalu kecil: dijangka ${t.origin} adalah ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`String tidak sah: mesti bermula dengan \"${n.prefix}\"`;if(n.format===\"ends_with\")return`String tidak sah: mesti berakhir dengan \"${n.suffix}\"`;if(n.format===\"includes\")return`String tidak sah: mesti mengandungi \"${n.includes}\"`;if(n.format===\"regex\")return`String tidak sah: mesti sepadan dengan corak ${n.pattern}`;return`${o[n.format]??t.format} tidak sah`}case\"not_multiple_of\":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case\"unrecognized_keys\":return`Kunci tidak dikenali: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Kunci tidak sah dalam ${t.origin}`;case\"invalid_union\":return\"Input tidak sah\";case\"invalid_element\":return`Nilai tidak sah dalam ${t.origin}`;default:return\"Input tidak sah\"}}};function Da(){return{localeError:Sf()}}var Tf=()=>{let e={string:{unit:\"tekens\",verb:\"heeft\"},file:{unit:\"bytes\",verb:\"heeft\"},array:{unit:\"elementen\",verb:\"heeft\"},set:{unit:\"elementen\",verb:\"heeft\"}};function r(t){return e[t]??null}let o={regex:\"invoer\",email:\"emailadres\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datum en tijd\",date:\"ISO datum\",time:\"ISO tijd\",duration:\"ISO duur\",ipv4:\"IPv4-adres\",ipv6:\"IPv6-adres\",cidrv4:\"IPv4-bereik\",cidrv6:\"IPv6-bereik\",base64:\"base64-gecodeerde tekst\",base64url:\"base64 URL-gecodeerde tekst\",json_string:\"JSON string\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"invoer\"},i={nan:\"NaN\",number:\"getal\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${c}`;return`Ongeldige invoer: verwacht ${n}, ontving ${c}`}case\"invalid_value\":if(t.values.length===1)return`Ongeldige invoer: verwacht ${g(t.values[0])}`;return`Ongeldige optie: verwacht één van ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin),c=t.origin===\"date\"?\"laat\":t.origin===\"string\"?\"lang\":\"groot\";if(a)return`Te ${c}: verwacht dat ${t.origin??\"waarde\"} ${n}${t.maximum.toString()} ${a.unit??\"elementen\"} ${a.verb}`;return`Te ${c}: verwacht dat ${t.origin??\"waarde\"} ${n}${t.maximum.toString()} is`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin),c=t.origin===\"date\"?\"vroeg\":t.origin===\"string\"?\"kort\":\"klein\";if(a)return`Te ${c}: verwacht dat ${t.origin} ${n}${t.minimum.toString()} ${a.unit} ${a.verb}`;return`Te ${c}: verwacht dat ${t.origin} ${n}${t.minimum.toString()} is`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ongeldige tekst: moet met \"${n.prefix}\" beginnen`;if(n.format===\"ends_with\")return`Ongeldige tekst: moet op \"${n.suffix}\" eindigen`;if(n.format===\"includes\")return`Ongeldige tekst: moet \"${n.includes}\" bevatten`;if(n.format===\"regex\")return`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`;return`Ongeldig: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case\"unrecognized_keys\":return`Onbekende key${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Ongeldige key in ${t.origin}`;case\"invalid_union\":return\"Ongeldige invoer\";case\"invalid_element\":return`Ongeldige waarde in ${t.origin}`;default:return\"Ongeldige invoer\"}}};function Ea(){return{localeError:Tf()}}var Of=()=>{let e={string:{unit:\"tegn\",verb:\"å ha\"},file:{unit:\"bytes\",verb:\"å ha\"},array:{unit:\"elementer\",verb:\"å inneholde\"},set:{unit:\"elementer\",verb:\"å inneholde\"}};function r(t){return e[t]??null}let o={regex:\"input\",email:\"e-postadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkeslett\",date:\"ISO-dato\",time:\"ISO-klokkeslett\",duration:\"ISO-varighet\",ipv4:\"IPv4-område\",ipv6:\"IPv6-område\",cidrv4:\"IPv4-spekter\",cidrv6:\"IPv6-spekter\",base64:\"base64-enkodet streng\",base64url:\"base64url-enkodet streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"tall\",array:\"liste\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Ugyldig input: forventet instanceof ${t.expected}, fikk ${c}`;return`Ugyldig input: forventet ${n}, fikk ${c}`}case\"invalid_value\":if(t.values.length===1)return`Ugyldig verdi: forventet ${g(t.values[0])}`;return`Ugyldig valg: forventet en av ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`For stor(t): forventet ${t.origin??\"value\"} til å ha ${n}${t.maximum.toString()} ${a.unit??\"elementer\"}`;return`For stor(t): forventet ${t.origin??\"value\"} til å ha ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`For lite(n): forventet ${t.origin} til å ha ${n}${t.minimum.toString()} ${a.unit}`;return`For lite(n): forventet ${t.origin} til å ha ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ugyldig streng: må starte med \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Ugyldig streng: må ende med \"${n.suffix}\"`;if(n.format===\"includes\")return`Ugyldig streng: må inneholde \"${n.includes}\"`;if(n.format===\"regex\")return`Ugyldig streng: må matche mønsteret ${n.pattern}`;return`Ugyldig ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case\"unrecognized_keys\":return`${t.keys.length>1?\"Ukjente nøkler\":\"Ukjent nøkkel\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Ugyldig nøkkel i ${t.origin}`;case\"invalid_union\":return\"Ugyldig input\";case\"invalid_element\":return`Ugyldig verdi i ${t.origin}`;default:return\"Ugyldig input\"}}};function Ua(){return{localeError:Of()}}var jf=()=>{let e={string:{unit:\"harf\",verb:\"olmalıdır\"},file:{unit:\"bayt\",verb:\"olmalıdır\"},array:{unit:\"unsur\",verb:\"olmalıdır\"},set:{unit:\"unsur\",verb:\"olmalıdır\"}};function r(t){return e[t]??null}let o={regex:\"giren\",email:\"epostagâh\",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âmı\",date:\"ISO tarihi\",time:\"ISO zamanı\",duration:\"ISO müddeti\",ipv4:\"IPv4 nişânı\",ipv6:\"IPv6 nişânı\",cidrv4:\"IPv4 menzili\",cidrv6:\"IPv6 menzili\",base64:\"base64-şifreli metin\",base64url:\"base64url-şifreli metin\",json_string:\"JSON metin\",e164:\"E.164 sayısı\",jwt:\"JWT\",template_literal:\"giren\"},i={nan:\"NaN\",number:\"numara\",array:\"saf\",null:\"gayb\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Fâsit giren: umulan instanceof ${t.expected}, alınan ${c}`;return`Fâsit giren: umulan ${n}, alınan ${c}`}case\"invalid_value\":if(t.values.length===1)return`Fâsit giren: umulan ${g(t.values[0])}`;return`Fâsit tercih: mûteberler ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Fazla büyük: ${t.origin??\"value\"}, ${n}${t.maximum.toString()} ${a.unit??\"elements\"} sahip olmalıydı.`;return`Fazla büyük: ${t.origin??\"value\"}, ${n}${t.maximum.toString()} olmalıydı.`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Fazla küçük: ${t.origin}, ${n}${t.minimum.toString()} ${a.unit} sahip olmalıydı.`;return`Fazla küçük: ${t.origin}, ${n}${t.minimum.toString()} olmalıydı.`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Fâsit metin: \"${n.prefix}\" ile başlamalı.`;if(n.format===\"ends_with\")return`Fâsit metin: \"${n.suffix}\" ile bitmeli.`;if(n.format===\"includes\")return`Fâsit metin: \"${n.includes}\" ihtivâ etmeli.`;if(n.format===\"regex\")return`Fâsit metin: ${n.pattern} nakşına uymalı.`;return`Fâsit ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case\"unrecognized_keys\":return`Tanınmayan anahtar ${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`${t.origin} için tanınmayan anahtar var.`;case\"invalid_union\":return\"Giren tanınamadı.\";case\"invalid_element\":return`${t.origin} için tanınmayan kıymet var.`;default:return\"Kıymet tanınamadı.\"}}};function Na(){return{localeError:jf()}}var Pf=()=>{let e={string:{unit:\"توکي\",verb:\"ولري\"},file:{unit:\"بایټس\",verb:\"ولري\"},array:{unit:\"توکي\",verb:\"ولري\"},set:{unit:\"توکي\",verb:\"ولري\"}};function r(t){return e[t]??null}let o={regex:\"ورودي\",email:\"بریښنالیک\",url:\"یو آر ال\",emoji:\"ایموجي\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"نیټه او وخت\",date:\"نېټه\",time:\"وخت\",duration:\"موده\",ipv4:\"د IPv4 پته\",ipv6:\"د IPv6 پته\",cidrv4:\"د IPv4 ساحه\",cidrv6:\"د IPv6 ساحه\",base64:\"base64-encoded متن\",base64url:\"base64url-encoded متن\",json_string:\"JSON متن\",e164:\"د E.164 شمېره\",jwt:\"JWT\",template_literal:\"ورودي\"},i={nan:\"NaN\",number:\"عدد\",array:\"ارې\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${c} ترلاسه شو`;return`ناسم ورودي: باید ${n} وای, مګر ${c} ترلاسه شو`}case\"invalid_value\":if(t.values.length===1)return`ناسم ورودي: باید ${g(t.values[0])} وای`;return`ناسم انتخاب: باید یو له ${m(t.values,\"|\")} څخه وای`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`ډیر لوی: ${t.origin??\"ارزښت\"} باید ${n}${t.maximum.toString()} ${a.unit??\"عنصرونه\"} ولري`;return`ډیر لوی: ${t.origin??\"ارزښت\"} باید ${n}${t.maximum.toString()} وي`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`ډیر کوچنی: ${t.origin} باید ${n}${t.minimum.toString()} ${a.unit} ولري`;return`ډیر کوچنی: ${t.origin} باید ${n}${t.minimum.toString()} وي`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`ناسم متن: باید د \"${n.prefix}\" سره پیل شي`;if(n.format===\"ends_with\")return`ناسم متن: باید د \"${n.suffix}\" سره پای ته ورسيږي`;if(n.format===\"includes\")return`ناسم متن: باید \"${n.includes}\" ولري`;if(n.format===\"regex\")return`ناسم متن: باید د ${n.pattern} سره مطابقت ولري`;return`${o[n.format]??t.format} ناسم دی`}case\"not_multiple_of\":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case\"unrecognized_keys\":return`ناسم ${t.keys.length>1?\"کلیډونه\":\"کلیډ\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`ناسم کلیډ په ${t.origin} کې`;case\"invalid_union\":return\"ناسمه ورودي\";case\"invalid_element\":return`ناسم عنصر په ${t.origin} کې`;default:return\"ناسمه ورودي\"}}};function Aa(){return{localeError:Pf()}}var Df=()=>{let e={string:{unit:\"znaków\",verb:\"mieć\"},file:{unit:\"bajtów\",verb:\"mieć\"},array:{unit:\"elementów\",verb:\"mieć\"},set:{unit:\"elementów\",verb:\"mieć\"}};function r(t){return e[t]??null}let o={regex:\"wyrażenie\",email:\"adres email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data i godzina w formacie ISO\",date:\"data w formacie ISO\",time:\"godzina w formacie ISO\",duration:\"czas trwania ISO\",ipv4:\"adres IPv4\",ipv6:\"adres IPv6\",cidrv4:\"zakres IPv4\",cidrv6:\"zakres IPv6\",base64:\"ciąg znaków zakodowany w formacie base64\",base64url:\"ciąg znaków zakodowany w formacie base64url\",json_string:\"ciąg znaków w formacie JSON\",e164:\"liczba E.164\",jwt:\"JWT\",template_literal:\"wejście\"},i={nan:\"NaN\",number:\"liczba\",array:\"tablica\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${c}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${n}, otrzymano ${c}`}case\"invalid_value\":if(t.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${g(t.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Za duża wartość: oczekiwano, że ${t.origin??\"wartość\"} będzie mieć ${n}${t.maximum.toString()} ${a.unit??\"elementów\"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??\"wartość\"} będzie wynosić ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Za mała wartość: oczekiwano, że ${t.origin??\"wartość\"} będzie mieć ${n}${t.minimum.toString()} ${a.unit??\"elementów\"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??\"wartość\"} będzie wynosić ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Nieprawidłowy ciąg znaków: musi zaczynać się od \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Nieprawidłowy ciąg znaków: musi kończyć się na \"${n.suffix}\"`;if(n.format===\"includes\")return`Nieprawidłowy ciąg znaków: musi zawierać \"${n.includes}\"`;if(n.format===\"regex\")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${n.pattern}`;return`Nieprawidłow(y/a/e) ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case\"unrecognized_keys\":return`Nierozpoznane klucze${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Nieprawidłowy klucz w ${t.origin}`;case\"invalid_union\":return\"Nieprawidłowe dane wejściowe\";case\"invalid_element\":return`Nieprawidłowa wartość w ${t.origin}`;default:return\"Nieprawidłowe dane wejściowe\"}}};function Za(){return{localeError:Df()}}var Ef=()=>{let e={string:{unit:\"caracteres\",verb:\"ter\"},file:{unit:\"bytes\",verb:\"ter\"},array:{unit:\"itens\",verb:\"ter\"},set:{unit:\"itens\",verb:\"ter\"}};function r(t){return e[t]??null}let o={regex:\"padrão\",email:\"endereço de e-mail\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data e hora ISO\",date:\"data ISO\",time:\"hora ISO\",duration:\"duração ISO\",ipv4:\"endereço IPv4\",ipv6:\"endereço IPv6\",cidrv4:\"faixa de IPv4\",cidrv6:\"faixa de IPv6\",base64:\"texto codificado em base64\",base64url:\"URL codificada em base64\",json_string:\"texto JSON\",e164:\"número E.164\",jwt:\"JWT\",template_literal:\"entrada\"},i={nan:\"NaN\",number:\"número\",null:\"nulo\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Tipo inválido: esperado instanceof ${t.expected}, recebido ${c}`;return`Tipo inválido: esperado ${n}, recebido ${c}`}case\"invalid_value\":if(t.values.length===1)return`Entrada inválida: esperado ${g(t.values[0])}`;return`Opção inválida: esperada uma das ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Muito grande: esperado que ${t.origin??\"valor\"} tivesse ${n}${t.maximum.toString()} ${a.unit??\"elementos\"}`;return`Muito grande: esperado que ${t.origin??\"valor\"} fosse ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Muito pequeno: esperado que ${t.origin} tivesse ${n}${t.minimum.toString()} ${a.unit}`;return`Muito pequeno: esperado que ${t.origin} fosse ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Texto inválido: deve começar com \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Texto inválido: deve terminar com \"${n.suffix}\"`;if(n.format===\"includes\")return`Texto inválido: deve incluir \"${n.includes}\"`;if(n.format===\"regex\")return`Texto inválido: deve corresponder ao padrão ${n.pattern}`;return`${o[n.format]??t.format} inválido`}case\"not_multiple_of\":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case\"unrecognized_keys\":return`Chave${t.keys.length>1?\"s\":\"\"} desconhecida${t.keys.length>1?\"s\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Chave inválida em ${t.origin}`;case\"invalid_union\":return\"Entrada inválida\";case\"invalid_element\":return`Valor inválido em ${t.origin}`;default:return\"Campo inválido\"}}};function Ca(){return{localeError:Ef()}}var Uf=()=>{let e={string:{unit:\"caractere\",verb:\"să aibă\"},file:{unit:\"octeți\",verb:\"să aibă\"},array:{unit:\"elemente\",verb:\"să aibă\"},set:{unit:\"elemente\",verb:\"să aibă\"},map:{unit:\"intrări\",verb:\"să aibă\"}};function r(t){return e[t]??null}let o={regex:\"intrare\",email:\"adresă 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ă și oră ISO\",date:\"dată ISO\",time:\"oră ISO\",duration:\"durată ISO\",ipv4:\"adresă IPv4\",ipv6:\"adresă IPv6\",mac:\"adresă MAC\",cidrv4:\"interval IPv4\",cidrv6:\"interval IPv6\",base64:\"șir codat base64\",base64url:\"șir codat base64url\",json_string:\"șir JSON\",e164:\"număr E.164\",jwt:\"JWT\",template_literal:\"intrare\"},i={nan:\"NaN\",string:\"șir\",number:\"număr\",boolean:\"boolean\",function:\"funcție\",array:\"matrice\",object:\"obiect\",undefined:\"nedefinit\",symbol:\"simbol\",bigint:\"număr mare\",void:\"void\",never:\"never\",map:\"hartă\",set:\"set\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;return`Intrare invalidă: așteptat ${n}, primit ${c}`}case\"invalid_value\":if(t.values.length===1)return`Intrare invalidă: așteptat ${g(t.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Prea mare: așteptat ca ${t.origin??\"valoarea\"} ${a.verb} ${n}${t.maximum.toString()} ${a.unit??\"elemente\"}`;return`Prea mare: așteptat ca ${t.origin??\"valoarea\"} să fie ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Prea mic: așteptat ca ${t.origin} ${a.verb} ${n}${t.minimum.toString()} ${a.unit}`;return`Prea mic: așteptat ca ${t.origin} să fie ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Șir invalid: trebuie să înceapă cu \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Șir invalid: trebuie să se termine cu \"${n.suffix}\"`;if(n.format===\"includes\")return`Șir invalid: trebuie să includă \"${n.includes}\"`;if(n.format===\"regex\")return`Șir invalid: trebuie să se potrivească cu modelul ${n.pattern}`;return`Format invalid: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Număr invalid: trebuie să fie multiplu de ${t.divisor}`;case\"unrecognized_keys\":return`Chei nerecunoscute: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Cheie invalidă în ${t.origin}`;case\"invalid_union\":return\"Intrare invalidă\";case\"invalid_element\":return`Valoare invalidă în ${t.origin}`;default:return\"Intrare invalidă\"}}};function Ra(){return{localeError:Uf()}}function El(e,r,o,i){let t=Math.abs(e),n=t%10,a=t%100;if(a>=11&&a<=19)return i;if(n===1)return r;if(n>=2&&n<=4)return o;return i}var Nf=()=>{let e={string:{unit:{one:\"символ\",few:\"символа\",many:\"символов\"},verb:\"иметь\"},file:{unit:{one:\"байт\",few:\"байта\",many:\"байт\"},verb:\"иметь\"},array:{unit:{one:\"элемент\",few:\"элемента\",many:\"элементов\"},verb:\"иметь\"},set:{unit:{one:\"элемент\",few:\"элемента\",many:\"элементов\"},verb:\"иметь\"}};function r(t){return e[t]??null}let o={regex:\"ввод\",email:\"email адрес\",url:\"URL\",emoji:\"эмодзи\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO дата и время\",date:\"ISO дата\",time:\"ISO время\",duration:\"ISO длительность\",ipv4:\"IPv4 адрес\",ipv6:\"IPv6 адрес\",cidrv4:\"IPv4 диапазон\",cidrv6:\"IPv6 диапазон\",base64:\"строка в формате base64\",base64url:\"строка в формате base64url\",json_string:\"JSON строка\",e164:\"номер E.164\",jwt:\"JWT\",template_literal:\"ввод\"},i={nan:\"NaN\",number:\"число\",array:\"массив\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Неверный ввод: ожидалось instanceof ${t.expected}, получено ${c}`;return`Неверный ввод: ожидалось ${n}, получено ${c}`}case\"invalid_value\":if(t.values.length===1)return`Неверный ввод: ожидалось ${g(t.values[0])}`;return`Неверный вариант: ожидалось одно из ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a){let c=Number(t.maximum),u=El(c,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??\"значение\"} будет иметь ${n}${t.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${t.origin??\"значение\"} будет ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a){let c=Number(t.minimum),u=El(c,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${n}${t.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Неверная строка: должна начинаться с \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Неверная строка: должна заканчиваться на \"${n.suffix}\"`;if(n.format===\"includes\")return`Неверная строка: должна содержать \"${n.includes}\"`;if(n.format===\"regex\")return`Неверная строка: должна соответствовать шаблону ${n.pattern}`;return`Неверный ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Неверное число: должно быть кратным ${t.divisor}`;case\"unrecognized_keys\":return`Нераспознанн${t.keys.length>1?\"ые\":\"ый\"} ключ${t.keys.length>1?\"и\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Неверный ключ в ${t.origin}`;case\"invalid_union\":return\"Неверные входные данные\";case\"invalid_element\":return`Неверное значение в ${t.origin}`;default:return\"Неверные входные данные\"}}};function La(){return{localeError:Nf()}}var Af=()=>{let e={string:{unit:\"znakov\",verb:\"imeti\"},file:{unit:\"bajtov\",verb:\"imeti\"},array:{unit:\"elementov\",verb:\"imeti\"},set:{unit:\"elementov\",verb:\"imeti\"}};function r(t){return e[t]??null}let o={regex:\"vnos\",email:\"e-poštni 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 čas\",date:\"ISO datum\",time:\"ISO čas\",duration:\"ISO trajanje\",ipv4:\"IPv4 naslov\",ipv6:\"IPv6 naslov\",cidrv4:\"obseg IPv4\",cidrv6:\"obseg IPv6\",base64:\"base64 kodiran niz\",base64url:\"base64url kodiran niz\",json_string:\"JSON niz\",e164:\"E.164 številka\",jwt:\"JWT\",template_literal:\"vnos\"},i={nan:\"NaN\",number:\"število\",array:\"tabela\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${c}`;return`Neveljaven vnos: pričakovano ${n}, prejeto ${c}`}case\"invalid_value\":if(t.values.length===1)return`Neveljaven vnos: pričakovano ${g(t.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Preveliko: pričakovano, da bo ${t.origin??\"vrednost\"} imelo ${n}${t.maximum.toString()} ${a.unit??\"elementov\"}`;return`Preveliko: pričakovano, da bo ${t.origin??\"vrednost\"} ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Premajhno: pričakovano, da bo ${t.origin} imelo ${n}${t.minimum.toString()} ${a.unit}`;return`Premajhno: pričakovano, da bo ${t.origin} ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Neveljaven niz: mora se začeti z \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Neveljaven niz: mora se končati z \"${n.suffix}\"`;if(n.format===\"includes\")return`Neveljaven niz: mora vsebovati \"${n.includes}\"`;if(n.format===\"regex\")return`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`;return`Neveljaven ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case\"unrecognized_keys\":return`Neprepoznan${t.keys.length>1?\"i ključi\":\" ključ\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Neveljaven ključ v ${t.origin}`;case\"invalid_union\":return\"Neveljaven vnos\";case\"invalid_element\":return`Neveljavna vrednost v ${t.origin}`;default:return\"Neveljaven vnos\"}}};function Va(){return{localeError:Af()}}var Zf=()=>{let e={string:{unit:\"tecken\",verb:\"att ha\"},file:{unit:\"bytes\",verb:\"att ha\"},array:{unit:\"objekt\",verb:\"att innehålla\"},set:{unit:\"objekt\",verb:\"att innehålla\"}};function r(t){return e[t]??null}let o={regex:\"reguljärt uttryck\",email:\"e-postadress\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-datum och tid\",date:\"ISO-datum\",time:\"ISO-tid\",duration:\"ISO-varaktighet\",ipv4:\"IPv4-intervall\",ipv6:\"IPv6-intervall\",cidrv4:\"IPv4-spektrum\",cidrv6:\"IPv6-spektrum\",base64:\"base64-kodad sträng\",base64url:\"base64url-kodad sträng\",json_string:\"JSON-sträng\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"mall-literal\"},i={nan:\"NaN\",number:\"antal\",array:\"lista\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${c}`;return`Ogiltig inmatning: förväntat ${n}, fick ${c}`}case\"invalid_value\":if(t.values.length===1)return`Ogiltig inmatning: förväntat ${g(t.values[0])}`;return`Ogiltigt val: förväntade en av ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`För stor(t): förväntade ${t.origin??\"värdet\"} att ha ${n}${t.maximum.toString()} ${a.unit??\"element\"}`;return`För stor(t): förväntat ${t.origin??\"värdet\"} att ha ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`För lite(t): förväntade ${t.origin??\"värdet\"} att ha ${n}${t.minimum.toString()} ${a.unit}`;return`För lite(t): förväntade ${t.origin??\"värdet\"} att ha ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ogiltig sträng: måste börja med \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Ogiltig sträng: måste sluta med \"${n.suffix}\"`;if(n.format===\"includes\")return`Ogiltig sträng: måste innehålla \"${n.includes}\"`;if(n.format===\"regex\")return`Ogiltig sträng: måste matcha mönstret \"${n.pattern}\"`;return`Ogiltig(t) ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case\"unrecognized_keys\":return`${t.keys.length>1?\"Okända nycklar\":\"Okänd nyckel\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Ogiltig nyckel i ${t.origin??\"värdet\"}`;case\"invalid_union\":return\"Ogiltig input\";case\"invalid_element\":return`Ogiltigt värde i ${t.origin??\"värdet\"}`;default:return\"Ogiltig input\"}}};function Fa(){return{localeError:Zf()}}var Cf=()=>{let e={string:{unit:\"எழுத்துக்கள்\",verb:\"கொண்டிருக்க வேண்டும்\"},file:{unit:\"பைட்டுகள்\",verb:\"கொண்டிருக்க வேண்டும்\"},array:{unit:\"உறுப்புகள்\",verb:\"கொண்டிருக்க வேண்டும்\"},set:{unit:\"உறுப்புகள்\",verb:\"கொண்டிருக்க வேண்டும்\"}};function r(t){return e[t]??null}let o={regex:\"உள்ளீடு\",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 தேதி நேரம்\",date:\"ISO தேதி\",time:\"ISO நேரம்\",duration:\"ISO கால அளவு\",ipv4:\"IPv4 முகவரி\",ipv6:\"IPv6 முகவரி\",cidrv4:\"IPv4 வரம்பு\",cidrv6:\"IPv6 வரம்பு\",base64:\"base64-encoded சரம்\",base64url:\"base64url-encoded சரம்\",json_string:\"JSON சரம்\",e164:\"E.164 எண்\",jwt:\"JWT\",template_literal:\"input\"},i={nan:\"NaN\",number:\"எண்\",array:\"அணி\",null:\"வெறுமை\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${c}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n}, பெறப்பட்டது ${c}`}case\"invalid_value\":if(t.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${g(t.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${m(t.values,\"|\")} இல் ஒன்று`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??\"மதிப்பு\"} ${n}${t.maximum.toString()} ${a.unit??\"உறுப்புகள்\"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??\"மதிப்பு\"} ${n}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${n}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${n}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`தவறான சரம்: \"${n.prefix}\" இல் தொடங்க வேண்டும்`;if(n.format===\"ends_with\")return`தவறான சரம்: \"${n.suffix}\" இல் முடிவடைய வேண்டும்`;if(n.format===\"includes\")return`தவறான சரம்: \"${n.includes}\" ஐ உள்ளடக்க வேண்டும்`;if(n.format===\"regex\")return`தவறான சரம்: ${n.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${o[n.format]??t.format}`}case\"not_multiple_of\":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case\"unrecognized_keys\":return`அடையாளம் தெரியாத விசை${t.keys.length>1?\"கள்\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`${t.origin} இல் தவறான விசை`;case\"invalid_union\":return\"தவறான உள்ளீடு\";case\"invalid_element\":return`${t.origin} இல் தவறான மதிப்பு`;default:return\"தவறான உள்ளீடு\"}}};function Ja(){return{localeError:Cf()}}var Rf=()=>{let e={string:{unit:\"ตัวอักษร\",verb:\"ควรมี\"},file:{unit:\"ไบต์\",verb:\"ควรมี\"},array:{unit:\"รายการ\",verb:\"ควรมี\"},set:{unit:\"รายการ\",verb:\"ควรมี\"}};function r(t){return e[t]??null}let o={regex:\"ข้อมูลที่ป้อน\",email:\"ที่อยู่อีเมล\",url:\"URL\",emoji:\"อิโมจิ\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"วันที่เวลาแบบ ISO\",date:\"วันที่แบบ ISO\",time:\"เวลาแบบ ISO\",duration:\"ช่วงเวลาแบบ ISO\",ipv4:\"ที่อยู่ IPv4\",ipv6:\"ที่อยู่ IPv6\",cidrv4:\"ช่วง IP แบบ IPv4\",cidrv6:\"ช่วง IP แบบ IPv6\",base64:\"ข้อความแบบ Base64\",base64url:\"ข้อความแบบ Base64 สำหรับ URL\",json_string:\"ข้อความแบบ JSON\",e164:\"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)\",jwt:\"โทเคน JWT\",template_literal:\"ข้อมูลที่ป้อน\"},i={nan:\"NaN\",number:\"ตัวเลข\",array:\"อาร์เรย์ (Array)\",null:\"ไม่มีค่า (null)\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${c}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n} แต่ได้รับ ${c}`}case\"invalid_value\":if(t.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${g(t.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"ไม่เกิน\":\"น้อยกว่า\",a=r(t.origin);if(a)return`เกินกำหนด: ${t.origin??\"ค่า\"} ควรมี${n} ${t.maximum.toString()} ${a.unit??\"รายการ\"}`;return`เกินกำหนด: ${t.origin??\"ค่า\"} ควรมี${n} ${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\"อย่างน้อย\":\"มากกว่า\",a=r(t.origin);if(a)return`น้อยกว่ากำหนด: ${t.origin} ควรมี${n} ${t.minimum.toString()} ${a.unit}`;return`น้อยกว่ากำหนด: ${t.origin} ควรมี${n} ${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \"${n.prefix}\"`;if(n.format===\"ends_with\")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \"${n.suffix}\"`;if(n.format===\"includes\")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี \"${n.includes}\" อยู่ในข้อความ`;if(n.format===\"regex\")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${n.pattern}`;return`รูปแบบไม่ถูกต้อง: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case\"unrecognized_keys\":return`พบคีย์ที่ไม่รู้จัก: ${m(t.keys,\", \")}`;case\"invalid_key\":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case\"invalid_union\":return\"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้\";case\"invalid_element\":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return\"ข้อมูลไม่ถูกต้อง\"}}};function Ma(){return{localeError:Rf()}}var Lf=()=>{let e={string:{unit:\"karakter\",verb:\"olmalı\"},file:{unit:\"bayt\",verb:\"olmalı\"},array:{unit:\"öğe\",verb:\"olmalı\"},set:{unit:\"öğe\",verb:\"olmalı\"}};function r(t){return e[t]??null}let o={regex:\"girdi\",email:\"e-posta adresi\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO tarih ve saat\",date:\"ISO tarih\",time:\"ISO saat\",duration:\"ISO süre\",ipv4:\"IPv4 adresi\",ipv6:\"IPv6 adresi\",cidrv4:\"IPv4 aralığı\",cidrv6:\"IPv6 aralığı\",base64:\"base64 ile şifrelenmiş metin\",base64url:\"base64url ile şifrelenmiş metin\",json_string:\"JSON dizesi\",e164:\"E.164 sayısı\",jwt:\"JWT\",template_literal:\"Şablon dizesi\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${c}`;return`Geçersiz değer: beklenen ${n}, alınan ${c}`}case\"invalid_value\":if(t.values.length===1)return`Geçersiz değer: beklenen ${g(t.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Çok büyük: beklenen ${t.origin??\"değer\"} ${n}${t.maximum.toString()} ${a.unit??\"öğe\"}`;return`Çok büyük: beklenen ${t.origin??\"değer\"} ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Çok küçük: beklenen ${t.origin} ${n}${t.minimum.toString()} ${a.unit}`;return`Çok küçük: beklenen ${t.origin} ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Geçersiz metin: \"${n.prefix}\" ile başlamalı`;if(n.format===\"ends_with\")return`Geçersiz metin: \"${n.suffix}\" ile bitmeli`;if(n.format===\"includes\")return`Geçersiz metin: \"${n.includes}\" içermeli`;if(n.format===\"regex\")return`Geçersiz metin: ${n.pattern} desenine uymalı`;return`Geçersiz ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`;case\"unrecognized_keys\":return`Tanınmayan anahtar${t.keys.length>1?\"lar\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`${t.origin} içinde geçersiz anahtar`;case\"invalid_union\":return\"Geçersiz değer\";case\"invalid_element\":return`${t.origin} içinde geçersiz değer`;default:return\"Geçersiz değer\"}}};function Ga(){return{localeError:Lf()}}var Vf=()=>{let e={string:{unit:\"символів\",verb:\"матиме\"},file:{unit:\"байтів\",verb:\"матиме\"},array:{unit:\"елементів\",verb:\"матиме\"},set:{unit:\"елементів\",verb:\"матиме\"}};function r(t){return e[t]??null}let o={regex:\"вхідні дані\",email:\"адреса електронної пошти\",url:\"URL\",emoji:\"емодзі\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"дата та час ISO\",date:\"дата ISO\",time:\"час ISO\",duration:\"тривалість ISO\",ipv4:\"адреса IPv4\",ipv6:\"адреса IPv6\",cidrv4:\"діапазон IPv4\",cidrv6:\"діапазон IPv6\",base64:\"рядок у кодуванні base64\",base64url:\"рядок у кодуванні base64url\",json_string:\"рядок JSON\",e164:\"номер E.164\",jwt:\"JWT\",template_literal:\"вхідні дані\"},i={nan:\"NaN\",number:\"число\",array:\"масив\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${c}`;return`Неправильні вхідні дані: очікується ${n}, отримано ${c}`}case\"invalid_value\":if(t.values.length===1)return`Неправильні вхідні дані: очікується ${g(t.values[0])}`;return`Неправильна опція: очікується одне з ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Занадто велике: очікується, що ${t.origin??\"значення\"} ${a.verb} ${n}${t.maximum.toString()} ${a.unit??\"елементів\"}`;return`Занадто велике: очікується, що ${t.origin??\"значення\"} буде ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Занадто мале: очікується, що ${t.origin} ${a.verb} ${n}${t.minimum.toString()} ${a.unit}`;return`Занадто мале: очікується, що ${t.origin} буде ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Неправильний рядок: повинен починатися з \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Неправильний рядок: повинен закінчуватися на \"${n.suffix}\"`;if(n.format===\"includes\")return`Неправильний рядок: повинен містити \"${n.includes}\"`;if(n.format===\"regex\")return`Неправильний рядок: повинен відповідати шаблону ${n.pattern}`;return`Неправильний ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Неправильне число: повинно бути кратним ${t.divisor}`;case\"unrecognized_keys\":return`Нерозпізнаний ключ${t.keys.length>1?\"і\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Неправильний ключ у ${t.origin}`;case\"invalid_union\":return\"Неправильні вхідні дані\";case\"invalid_element\":return`Неправильне значення у ${t.origin}`;default:return\"Неправильні вхідні дані\"}}};function Ot(){return{localeError:Vf()}}function qa(){return Ot()}var Ff=()=>{let e={string:{unit:\"حروف\",verb:\"ہونا\"},file:{unit:\"بائٹس\",verb:\"ہونا\"},array:{unit:\"آئٹمز\",verb:\"ہونا\"},set:{unit:\"آئٹمز\",verb:\"ہونا\"}};function r(t){return e[t]??null}let o={regex:\"ان پٹ\",email:\"ای میل ایڈریس\",url:\"یو آر ایل\",emoji:\"ایموجی\",uuid:\"یو یو آئی ڈی\",uuidv4:\"یو یو آئی ڈی وی 4\",uuidv6:\"یو یو آئی ڈی وی 6\",nanoid:\"نینو آئی ڈی\",guid:\"جی یو آئی ڈی\",cuid:\"سی یو آئی ڈی\",cuid2:\"سی یو آئی ڈی 2\",ulid:\"یو ایل آئی ڈی\",xid:\"ایکس آئی ڈی\",ksuid:\"کے ایس یو آئی ڈی\",datetime:\"آئی ایس او ڈیٹ ٹائم\",date:\"آئی ایس او تاریخ\",time:\"آئی ایس او وقت\",duration:\"آئی ایس او مدت\",ipv4:\"آئی پی وی 4 ایڈریس\",ipv6:\"آئی پی وی 6 ایڈریس\",cidrv4:\"آئی پی وی 4 رینج\",cidrv6:\"آئی پی وی 6 رینج\",base64:\"بیس 64 ان کوڈڈ سٹرنگ\",base64url:\"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ\",json_string:\"جے ایس او این سٹرنگ\",e164:\"ای 164 نمبر\",jwt:\"جے ڈبلیو ٹی\",template_literal:\"ان پٹ\"},i={nan:\"NaN\",number:\"نمبر\",array:\"آرے\",null:\"نل\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${c} موصول ہوا`;return`غلط ان پٹ: ${n} متوقع تھا، ${c} موصول ہوا`}case\"invalid_value\":if(t.values.length===1)return`غلط ان پٹ: ${g(t.values[0])} متوقع تھا`;return`غلط آپشن: ${m(t.values,\"|\")} میں سے ایک متوقع تھا`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`بہت بڑا: ${t.origin??\"ویلیو\"} کے ${n}${t.maximum.toString()} ${a.unit??\"عناصر\"} ہونے متوقع تھے`;return`بہت بڑا: ${t.origin??\"ویلیو\"} کا ${n}${t.maximum.toString()} ہونا متوقع تھا`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`بہت چھوٹا: ${t.origin} کے ${n}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${t.origin} کا ${n}${t.minimum.toString()} ہونا متوقع تھا`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`غلط سٹرنگ: \"${n.prefix}\" سے شروع ہونا چاہیے`;if(n.format===\"ends_with\")return`غلط سٹرنگ: \"${n.suffix}\" پر ختم ہونا چاہیے`;if(n.format===\"includes\")return`غلط سٹرنگ: \"${n.includes}\" شامل ہونا چاہیے`;if(n.format===\"regex\")return`غلط سٹرنگ: پیٹرن ${n.pattern} سے میچ ہونا چاہیے`;return`غلط ${o[n.format]??t.format}`}case\"not_multiple_of\":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case\"unrecognized_keys\":return`غیر تسلیم شدہ کی${t.keys.length>1?\"ز\":\"\"}: ${m(t.keys,\"، \")}`;case\"invalid_key\":return`${t.origin} میں غلط کی`;case\"invalid_union\":return\"غلط ان پٹ\";case\"invalid_element\":return`${t.origin} میں غلط ویلیو`;default:return\"غلط ان پٹ\"}}};function Ka(){return{localeError:Ff()}}var Jf=()=>{let e={string:{unit:\"belgi\",verb:\"bo‘lishi kerak\"},file:{unit:\"bayt\",verb:\"bo‘lishi kerak\"},array:{unit:\"element\",verb:\"bo‘lishi kerak\"},set:{unit:\"element\",verb:\"bo‘lishi kerak\"},map:{unit:\"yozuv\",verb:\"bo‘lishi kerak\"}};function r(t){return e[t]??null}let o={regex:\"kirish\",email:\"elektron pochta manzili\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO sana va vaqti\",date:\"ISO sana\",time:\"ISO vaqt\",duration:\"ISO davomiylik\",ipv4:\"IPv4 manzil\",ipv6:\"IPv6 manzil\",mac:\"MAC manzil\",cidrv4:\"IPv4 diapazon\",cidrv6:\"IPv6 diapazon\",base64:\"base64 kodlangan satr\",base64url:\"base64url kodlangan satr\",json_string:\"JSON satr\",e164:\"E.164 raqam\",jwt:\"JWT\",template_literal:\"kirish\"},i={nan:\"NaN\",number:\"raqam\",array:\"massiv\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${c}`;return`Noto‘g‘ri kirish: kutilgan ${n}, qabul qilingan ${c}`}case\"invalid_value\":if(t.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${g(t.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Juda katta: kutilgan ${t.origin??\"qiymat\"} ${n}${t.maximum.toString()} ${a.unit} ${a.verb}`;return`Juda katta: kutilgan ${t.origin??\"qiymat\"} ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Juda kichik: kutilgan ${t.origin} ${n}${t.minimum.toString()} ${a.unit} ${a.verb}`;return`Juda kichik: kutilgan ${t.origin} ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Noto‘g‘ri satr: \"${n.prefix}\" bilan boshlanishi kerak`;if(n.format===\"ends_with\")return`Noto‘g‘ri satr: \"${n.suffix}\" bilan tugashi kerak`;if(n.format===\"includes\")return`Noto‘g‘ri satr: \"${n.includes}\" ni o‘z ichiga olishi kerak`;if(n.format===\"regex\")return`Noto‘g‘ri satr: ${n.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`;case\"unrecognized_keys\":return`Noma’lum kalit${t.keys.length>1?\"lar\":\"\"}: ${m(t.keys,\", \")}`;case\"invalid_key\":return`${t.origin} dagi kalit noto‘g‘ri`;case\"invalid_union\":return\"Noto‘g‘ri kirish\";case\"invalid_element\":return`${t.origin} da noto‘g‘ri qiymat`;default:return\"Noto‘g‘ri kirish\"}}};function Wa(){return{localeError:Jf()}}var Mf=()=>{let e={string:{unit:\"ký tự\",verb:\"có\"},file:{unit:\"byte\",verb:\"có\"},array:{unit:\"phần tử\",verb:\"có\"},set:{unit:\"phần tử\",verb:\"có\"}};function r(t){return e[t]??null}let o={regex:\"đầu vào\",email:\"địa chỉ 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ày giờ ISO\",date:\"ngày ISO\",time:\"giờ ISO\",duration:\"khoảng thời gian ISO\",ipv4:\"địa chỉ IPv4\",ipv6:\"địa chỉ IPv6\",cidrv4:\"dải IPv4\",cidrv6:\"dải IPv6\",base64:\"chuỗi mã hóa base64\",base64url:\"chuỗi mã hóa base64url\",json_string:\"chuỗi JSON\",e164:\"số E.164\",jwt:\"JWT\",template_literal:\"đầu vào\"},i={nan:\"NaN\",number:\"số\",array:\"mảng\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${c}`;return`Đầu vào không hợp lệ: mong đợi ${n}, nhận được ${c}`}case\"invalid_value\":if(t.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${g(t.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Quá lớn: mong đợi ${t.origin??\"giá trị\"} ${a.verb} ${n}${t.maximum.toString()} ${a.unit??\"phần tử\"}`;return`Quá lớn: mong đợi ${t.origin??\"giá trị\"} ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${n}${t.minimum.toString()} ${a.unit}`;return`Quá nhỏ: mong đợi ${t.origin} ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Chuỗi không hợp lệ: phải bắt đầu bằng \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Chuỗi không hợp lệ: phải kết thúc bằng \"${n.suffix}\"`;if(n.format===\"includes\")return`Chuỗi không hợp lệ: phải bao gồm \"${n.includes}\"`;if(n.format===\"regex\")return`Chuỗi không hợp lệ: phải khớp với mẫu ${n.pattern}`;return`${o[n.format]??t.format} không hợp lệ`}case\"not_multiple_of\":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case\"unrecognized_keys\":return`Khóa không được nhận dạng: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Khóa không hợp lệ trong ${t.origin}`;case\"invalid_union\":return\"Đầu vào không hợp lệ\";case\"invalid_element\":return`Giá trị không hợp lệ trong ${t.origin}`;default:return\"Đầu vào không hợp lệ\"}}};function Ba(){return{localeError:Mf()}}var Gf=()=>{let e={string:{unit:\"字符\",verb:\"包含\"},file:{unit:\"字节\",verb:\"包含\"},array:{unit:\"项\",verb:\"包含\"},set:{unit:\"项\",verb:\"包含\"}};function r(t){return e[t]??null}let o={regex:\"输入\",email:\"电子邮件\",url:\"URL\",emoji:\"表情符号\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO日期时间\",date:\"ISO日期\",time:\"ISO时间\",duration:\"ISO时长\",ipv4:\"IPv4地址\",ipv6:\"IPv6地址\",cidrv4:\"IPv4网段\",cidrv6:\"IPv6网段\",base64:\"base64编码字符串\",base64url:\"base64url编码字符串\",json_string:\"JSON字符串\",e164:\"E.164号码\",jwt:\"JWT\",template_literal:\"输入\"},i={nan:\"NaN\",number:\"数字\",array:\"数组\",null:\"空值(null)\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`无效输入:期望 instanceof ${t.expected},实际接收 ${c}`;return`无效输入:期望 ${n},实际接收 ${c}`}case\"invalid_value\":if(t.values.length===1)return`无效输入:期望 ${g(t.values[0])}`;return`无效选项:期望以下之一 ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`数值过大:期望 ${t.origin??\"值\"} ${n}${t.maximum.toString()} ${a.unit??\"个元素\"}`;return`数值过大:期望 ${t.origin??\"值\"} ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`数值过小:期望 ${t.origin} ${n}${t.minimum.toString()} ${a.unit}`;return`数值过小:期望 ${t.origin} ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`无效字符串:必须以 \"${n.prefix}\" 开头`;if(n.format===\"ends_with\")return`无效字符串:必须以 \"${n.suffix}\" 结尾`;if(n.format===\"includes\")return`无效字符串:必须包含 \"${n.includes}\"`;if(n.format===\"regex\")return`无效字符串:必须满足正则表达式 ${n.pattern}`;return`无效${o[n.format]??t.format}`}case\"not_multiple_of\":return`无效数字:必须是 ${t.divisor} 的倍数`;case\"unrecognized_keys\":return`出现未知的键(key): ${m(t.keys,\", \")}`;case\"invalid_key\":return`${t.origin} 中的键(key)无效`;case\"invalid_union\":return\"无效输入\";case\"invalid_element\":return`${t.origin} 中包含无效值(value)`;default:return\"无效输入\"}}};function Xa(){return{localeError:Gf()}}var qf=()=>{let e={string:{unit:\"字元\",verb:\"擁有\"},file:{unit:\"位元組\",verb:\"擁有\"},array:{unit:\"項目\",verb:\"擁有\"},set:{unit:\"項目\",verb:\"擁有\"}};function r(t){return e[t]??null}let o={regex:\"輸入\",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 日期時間\",date:\"ISO 日期\",time:\"ISO 時間\",duration:\"ISO 期間\",ipv4:\"IPv4 位址\",ipv6:\"IPv6 位址\",cidrv4:\"IPv4 範圍\",cidrv6:\"IPv6 範圍\",base64:\"base64 編碼字串\",base64url:\"base64url 編碼字串\",json_string:\"JSON 字串\",e164:\"E.164 數值\",jwt:\"JWT\",template_literal:\"輸入\"},i={nan:\"NaN\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`無效的輸入值:預期為 instanceof ${t.expected},但收到 ${c}`;return`無效的輸入值:預期為 ${n},但收到 ${c}`}case\"invalid_value\":if(t.values.length===1)return`無效的輸入值:預期為 ${g(t.values[0])}`;return`無效的選項:預期為以下其中之一 ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`數值過大:預期 ${t.origin??\"值\"} 應為 ${n}${t.maximum.toString()} ${a.unit??\"個元素\"}`;return`數值過大:預期 ${t.origin??\"值\"} 應為 ${n}${t.maximum.toString()}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`數值過小:預期 ${t.origin} 應為 ${n}${t.minimum.toString()} ${a.unit}`;return`數值過小:預期 ${t.origin} 應為 ${n}${t.minimum.toString()}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`無效的字串:必須以 \"${n.prefix}\" 開頭`;if(n.format===\"ends_with\")return`無效的字串:必須以 \"${n.suffix}\" 結尾`;if(n.format===\"includes\")return`無效的字串:必須包含 \"${n.includes}\"`;if(n.format===\"regex\")return`無效的字串:必須符合格式 ${n.pattern}`;return`無效的 ${o[n.format]??t.format}`}case\"not_multiple_of\":return`無效的數字:必須為 ${t.divisor} 的倍數`;case\"unrecognized_keys\":return`無法識別的鍵值${t.keys.length>1?\"們\":\"\"}:${m(t.keys,\"、\")}`;case\"invalid_key\":return`${t.origin} 中有無效的鍵值`;case\"invalid_union\":return\"無效的輸入值\";case\"invalid_element\":return`${t.origin} 中有無效的值`;default:return\"無效的輸入值\"}}};function Ya(){return{localeError:qf()}}var Kf=()=>{let e={string:{unit:\"àmi\",verb:\"ní\"},file:{unit:\"bytes\",verb:\"ní\"},array:{unit:\"nkan\",verb:\"ní\"},set:{unit:\"nkan\",verb:\"ní\"}};function r(t){return e[t]??null}let o={regex:\"ẹ̀rọ ìbáwọlé\",email:\"àdírẹ́sì ìmẹ́lì\",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:\"àkókò ISO\",date:\"ọjọ́ ISO\",time:\"àkókò ISO\",duration:\"àkókò tó pé ISO\",ipv4:\"àdírẹ́sì IPv4\",ipv6:\"àdírẹ́sì IPv6\",cidrv4:\"àgbègbè IPv4\",cidrv6:\"àgbègbè IPv6\",base64:\"ọ̀rọ̀ tí a kọ́ ní base64\",base64url:\"ọ̀rọ̀ base64url\",json_string:\"ọ̀rọ̀ JSON\",e164:\"nọ́mbà E.164\",jwt:\"JWT\",template_literal:\"ẹ̀rọ ìbáwọlé\"},i={nan:\"NaN\",number:\"nọ́mbà\",array:\"akopọ\"};return(t)=>{switch(t.code){case\"invalid_type\":{let n=i[t.expected]??t.expected,a=v(t.input),c=i[a]??a;if(/^[A-Z]/.test(t.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${c}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${n}, àmọ̀ a rí ${c}`}case\"invalid_value\":if(t.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${g(t.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${m(t.values,\"|\")}`;case\"too_big\":{let n=t.inclusive?\"<=\":\"<\",a=r(t.origin);if(a)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??\"iye\"} ${a.verb} ${n}${t.maximum} ${a.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${n}${t.maximum}`}case\"too_small\":{let n=t.inclusive?\">=\":\">\",a=r(t.origin);if(a)return`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${n}${t.minimum} ${a.unit}`;return`Kéré ju: a ní láti jẹ́ ${n}${t.minimum}`}case\"invalid_format\":{let n=t;if(n.format===\"starts_with\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \"${n.prefix}\"`;if(n.format===\"ends_with\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \"${n.suffix}\"`;if(n.format===\"includes\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \"${n.includes}\"`;if(n.format===\"regex\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${n.pattern}`;return`Aṣìṣe: ${o[n.format]??t.format}`}case\"not_multiple_of\":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case\"unrecognized_keys\":return`Bọtìnì àìmọ̀: ${m(t.keys,\", \")}`;case\"invalid_key\":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case\"invalid_union\":return\"Ìbáwọlé aṣìṣe\";case\"invalid_element\":return`Iye aṣìṣe nínú ${t.origin}`;default:return\"Ìbáwọlé aṣìṣe\"}}};function Ha(){return{localeError:Kf()}}var Ul,Qa=Symbol(\"ZodOutput\"),ec=Symbol(\"ZodInput\");class tc{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let o=r[0];if(this._map.set(e,o),o&&typeof o===\"object\"&&\"id\"in o)this._idmap.set(o.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);if(r&&typeof r===\"object\"&&\"id\"in r)this._idmap.delete(r.id);return this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let i={...o,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function xr(){return new tc}(Ul=globalThis).__zod_globalRegistry??(Ul.__zod_globalRegistry=xr());var N=globalThis.__zod_globalRegistry;function rc(e,r){return new e({type:\"string\",...b(r)})}function nc(e,r){return new e({type:\"string\",coerce:!0,...b(r)})}function kr(e,r){return new e({type:\"string\",format:\"email\",check:\"string_format\",abort:!1,...b(r)})}function Pt(e,r){return new e({type:\"string\",format:\"guid\",check:\"string_format\",abort:!1,...b(r)})}function wr(e,r){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,...b(r)})}function Ir(e,r){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v4\",...b(r)})}function zr(e,r){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v6\",...b(r)})}function Sr(e,r){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v7\",...b(r)})}function Dt(e,r){return new e({type:\"string\",format:\"url\",check:\"string_format\",abort:!1,...b(r)})}function Tr(e,r){return new e({type:\"string\",format:\"emoji\",check:\"string_format\",abort:!1,...b(r)})}function Or(e,r){return new e({type:\"string\",format:\"nanoid\",check:\"string_format\",abort:!1,...b(r)})}function jr(e,r){return new e({type:\"string\",format:\"cuid\",check:\"string_format\",abort:!1,...b(r)})}function Pr(e,r){return new e({type:\"string\",format:\"cuid2\",check:\"string_format\",abort:!1,...b(r)})}function Dr(e,r){return new e({type:\"string\",format:\"ulid\",check:\"string_format\",abort:!1,...b(r)})}function Er(e,r){return new e({type:\"string\",format:\"xid\",check:\"string_format\",abort:!1,...b(r)})}function Ur(e,r){return new e({type:\"string\",format:\"ksuid\",check:\"string_format\",abort:!1,...b(r)})}function Nr(e,r){return new e({type:\"string\",format:\"ipv4\",check:\"string_format\",abort:!1,...b(r)})}function Ar(e,r){return new e({type:\"string\",format:\"ipv6\",check:\"string_format\",abort:!1,...b(r)})}function oc(e,r){return new e({type:\"string\",format:\"mac\",check:\"string_format\",abort:!1,...b(r)})}function Zr(e,r){return new e({type:\"string\",format:\"cidrv4\",check:\"string_format\",abort:!1,...b(r)})}function Cr(e,r){return new e({type:\"string\",format:\"cidrv6\",check:\"string_format\",abort:!1,...b(r)})}function Rr(e,r){return new e({type:\"string\",format:\"base64\",check:\"string_format\",abort:!1,...b(r)})}function Lr(e,r){return new e({type:\"string\",format:\"base64url\",check:\"string_format\",abort:!1,...b(r)})}function Vr(e,r){return new e({type:\"string\",format:\"e164\",check:\"string_format\",abort:!1,...b(r)})}function Fr(e,r){return new e({type:\"string\",format:\"jwt\",check:\"string_format\",abort:!1,...b(r)})}var ic={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ac(e,r){return new e({type:\"string\",format:\"datetime\",check:\"string_format\",offset:!1,local:!1,precision:null,...b(r)})}function cc(e,r){return new e({type:\"string\",format:\"date\",check:\"string_format\",...b(r)})}function uc(e,r){return new e({type:\"string\",format:\"time\",check:\"string_format\",precision:null,...b(r)})}function sc(e,r){return new e({type:\"string\",format:\"duration\",check:\"string_format\",...b(r)})}function lc(e,r){return new e({type:\"number\",checks:[],...b(r)})}function dc(e,r){return new e({type:\"number\",coerce:!0,checks:[],...b(r)})}function mc(e,r){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"safeint\",...b(r)})}function pc(e,r){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"float32\",...b(r)})}function fc(e,r){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"float64\",...b(r)})}function gc(e,r){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"int32\",...b(r)})}function vc(e,r){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"uint32\",...b(r)})}function hc(e,r){return new e({type:\"boolean\",...b(r)})}function $c(e,r){return new e({type:\"boolean\",coerce:!0,...b(r)})}function yc(e,r){return new e({type:\"bigint\",...b(r)})}function _c(e,r){return new e({type:\"bigint\",coerce:!0,...b(r)})}function bc(e,r){return new e({type:\"bigint\",check:\"bigint_format\",abort:!1,format:\"int64\",...b(r)})}function xc(e,r){return new e({type:\"bigint\",check:\"bigint_format\",abort:!1,format:\"uint64\",...b(r)})}function kc(e,r){return new e({type:\"symbol\",...b(r)})}function wc(e,r){return new e({type:\"undefined\",...b(r)})}function Ic(e,r){return new e({type:\"null\",...b(r)})}function zc(e){return new e({type:\"any\"})}function Sc(e){return new e({type:\"unknown\"})}function Tc(e,r){return new e({type:\"never\",...b(r)})}function Oc(e,r){return new e({type:\"void\",...b(r)})}function jc(e,r){return new e({type:\"date\",...b(r)})}function Pc(e,r){return new e({type:\"date\",coerce:!0,...b(r)})}function Dc(e,r){return new e({type:\"nan\",...b(r)})}function Q(e,r){return new lr({check:\"less_than\",...b(r),value:e,inclusive:!1})}function q(e,r){return new lr({check:\"less_than\",...b(r),value:e,inclusive:!0})}function ee(e,r){return new dr({check:\"greater_than\",...b(r),value:e,inclusive:!1})}function R(e,r){return new dr({check:\"greater_than\",...b(r),value:e,inclusive:!0})}function Jr(e){return ee(0,e)}function Mr(e){return Q(0,e)}function Gr(e){return q(0,e)}function qr(e){return R(0,e)}function de(e,r){return new Oo({check:\"multiple_of\",...b(r),value:e})}function me(e,r){return new Do({check:\"max_size\",...b(r),maximum:e})}function te(e,r){return new Eo({check:\"min_size\",...b(r),minimum:e})}function xe(e,r){return new Uo({check:\"size_equals\",...b(r),size:e})}function ke(e,r){return new No({check:\"max_length\",...b(r),maximum:e})}function ie(e,r){return new Ao({check:\"min_length\",...b(r),minimum:e})}function we(e,r){return new Zo({check:\"length_equals\",...b(r),length:e})}function Ve(e,r){return new Co({check:\"string_format\",format:\"regex\",...b(r),pattern:e})}function Fe(e){return new Ro({check:\"string_format\",format:\"lowercase\",...b(e)})}function Je(e){return new Lo({check:\"string_format\",format:\"uppercase\",...b(e)})}function Me(e,r){return new Vo({check:\"string_format\",format:\"includes\",...b(r),includes:e})}function Ge(e,r){return new Fo({check:\"string_format\",format:\"starts_with\",...b(r),prefix:e})}function qe(e,r){return new Jo({check:\"string_format\",format:\"ends_with\",...b(r),suffix:e})}function Kr(e,r,o){return new Mo({check:\"property\",property:e,schema:r,...b(o)})}function Ke(e,r){return new Go({check:\"mime_type\",mime:e,...b(r)})}function B(e){return new qo({check:\"overwrite\",tx:e})}function We(e){return B((r)=>r.normalize(e))}function Be(){return B((e)=>e.trim())}function Xe(){return B((e)=>e.toLowerCase())}function Ye(){return B((e)=>e.toUpperCase())}function He(){return B((e)=>Vn(e))}function Ec(e,r,o){return new e({type:\"array\",element:r,...b(o)})}function Bf(e,r,o){return new e({type:\"union\",options:r,...b(o)})}function Xf(e,r,o){return new e({type:\"union\",options:r,inclusive:!1,...b(o)})}function Yf(e,r,o,i){return new e({type:\"union\",options:o,discriminator:r,...b(i)})}function Hf(e,r,o){return new e({type:\"intersection\",left:r,right:o})}function Qf(e,r,o,i){let t=o instanceof w;return new e({type:\"tuple\",items:r,rest:t?o:null,...b(t?i:o)})}function eg(e,r,o,i){return new e({type:\"record\",keyType:r,valueType:o,...b(i)})}function tg(e,r,o,i){return new e({type:\"map\",keyType:r,valueType:o,...b(i)})}function rg(e,r,o){return new e({type:\"set\",valueType:r,...b(o)})}function ng(e,r,o){let i=Array.isArray(r)?Object.fromEntries(r.map((t)=>[t,t])):r;return new e({type:\"enum\",entries:i,...b(o)})}function og(e,r,o){return new e({type:\"enum\",entries:r,...b(o)})}function ig(e,r,o){return new e({type:\"literal\",values:Array.isArray(r)?r:[r],...b(o)})}function Uc(e,r){return new e({type:\"file\",...b(r)})}function ag(e,r){return new e({type:\"transform\",transform:r})}function cg(e,r){return new e({type:\"optional\",innerType:r})}function ug(e,r){return new e({type:\"nullable\",innerType:r})}function sg(e,r,o){return new e({type:\"default\",innerType:r,get defaultValue(){return typeof o===\"function\"?o():Jn(o)}})}function lg(e,r,o){return new e({type:\"nonoptional\",innerType:r,...b(o)})}function dg(e,r){return new e({type:\"success\",innerType:r})}function mg(e,r,o){return new e({type:\"catch\",innerType:r,catchValue:typeof o===\"function\"?o:()=>o})}function pg(e,r,o){return new e({type:\"pipe\",in:r,out:o})}function fg(e,r){return new e({type:\"readonly\",innerType:r})}function gg(e,r,o){return new e({type:\"template_literal\",parts:r,...b(o)})}function vg(e,r){return new e({type:\"lazy\",getter:r})}function hg(e,r){return new e({type:\"promise\",innerType:r})}function Nc(e,r,o){let i=b(o);return i.abort??(i.abort=!0),new e({type:\"custom\",check:\"custom\",fn:r,...i})}function Ac(e,r,o){return new e({type:\"custom\",check:\"custom\",fn:r,...b(o)})}function Zc(e,r){let o=Nl((i)=>(i.addIssue=(t)=>{if(typeof t===\"string\")i.issues.push(Ue(t,i.value,o._zod.def));else{let n=t;if(n.fatal)n.continue=!1;n.code??(n.code=\"custom\"),n.input??(n.input=i.value),n.inst??(n.inst=o),n.continue??(n.continue=!o._zod.def.abort),i.issues.push(Ue(n))}},e(i.value,i)),r);return o}function Nl(e,r){let o=new j({check:\"custom\",...b(r)});return o._zod.check=e,o}function Cc(e){let r=new j({check:\"describe\"});return r._zod.onattach=[(o)=>{let i=N.get(o)??{};N.add(o,{...i,description:e})}],r._zod.check=()=>{},r}function Rc(e){let r=new j({check:\"meta\"});return r._zod.onattach=[(o)=>{let i=N.get(o)??{};N.add(o,{...i,...e})}],r._zod.check=()=>{},r}function Lc(e,r){let o=b(r),i=o.truthy??[\"true\",\"1\",\"yes\",\"on\",\"y\",\"enabled\"],t=o.falsy??[\"false\",\"0\",\"no\",\"off\",\"n\",\"disabled\"];if(o.case!==\"sensitive\")i=i.map((y)=>typeof y===\"string\"?y.toLowerCase():y),t=t.map((y)=>typeof y===\"string\"?y.toLowerCase():y);let n=new Set(i),a=new Set(t),c=e.Codec??It,u=e.Boolean??kt,d=new(e.String??be)({type:\"string\",error:o.error}),f=new u({type:\"boolean\",error:o.error}),_=new c({type:\"pipe\",in:d,out:f,transform:(y,k)=>{let V=y;if(o.case!==\"sensitive\")V=V.toLowerCase();if(n.has(V))return!0;else if(a.has(V))return!1;else return k.issues.push({code:\"invalid_value\",expected:\"stringbool\",values:[...n,...a],input:k.value,inst:_,continue:!1}),{}},reverseTransform:(y,k)=>{if(y===!0)return i[0]||\"true\";else return t[0]||\"false\"},error:o.error});return _}function Qe(e,r,o,i={}){let t=b(i),n={...b(i),check:\"string_format\",type:\"string\",format:r,fn:typeof o===\"function\"?o:(c)=>o.test(c),...t};if(o instanceof RegExp)n.pattern=o;return new e(n)}function pe(e){let r=e?.target??\"draft-2020-12\";if(r===\"draft-4\")r=\"draft-04\";if(r===\"draft-7\")r=\"draft-07\";return{processors:e.processors??{},metadataRegistry:e?.metadata??N,target:r,unrepresentable:e?.unrepresentable??\"throw\",override:e?.override??(()=>{}),io:e?.io??\"output\",counter:0,seen:new Map,cycles:e?.cycles??\"ref\",reused:e?.reused??\"inline\",external:e?.external??void 0}}function S(e,r,o={path:[],schemaPath:[]}){var i;let t=e._zod.def,n=r.seen.get(e);if(n){if(n.count++,o.schemaPath.includes(e))n.cycle=o.path;return n.schema}let a={schema:{},count:1,cycle:void 0,path:o.path};r.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let d={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,d);else{let _=a.schema,y=r.processors[t.type];if(!y)throw Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);y(e,r,_,d)}let f=e._zod.parent;if(f){if(!a.ref)a.ref=f;S(f,r,d),r.seen.get(f).isParent=!0}}let u=r.metadataRegistry.get(e);if(u)Object.assign(a.schema,u);if(r.io===\"input\"&&L(e))delete a.schema.examples,delete a.schema.default;if(r.io===\"input\"&&\"_prefault\"in a.schema)(i=a.schema).default??(i.default=a.schema._prefault);return delete a.schema._prefault,r.seen.get(e).schema}function fe(e,r){let o=e.seen.get(r);if(!o)throw Error(\"Unprocessed schema. This is a bug in Zod.\");let i=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let u=i.get(c);if(u&&u!==a[0])throw Error(`Duplicate schema id \"${c}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(c,a[0])}}let t=(a)=>{let c=e.target===\"draft-2020-12\"?\"$defs\":\"definitions\";if(e.external){let f=e.external.registry.get(a[0])?.id,_=e.external.uri??((k)=>k);if(f)return{ref:_(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${_(\"__shared\")}#/${c}/${y}`}}if(a[1]===o)return{ref:\"#\"};let s=`${\"#\"}/${c}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:s+d}},n=(a)=>{if(a[1].schema.$ref)return;let c=a[1],{ref:u,defId:s}=t(a);if(c.def={...c.schema},s)c.defId=s;let d=c.schema;for(let f in d)delete d[f];d.$ref=u};if(e.cycles===\"throw\")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw Error(`Cycle detected: #/${c.cycle?.join(\"/\")}/<root>\n\nSet the \\`cycles\\` parameter to \\`\"ref\"\\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(r===a[0]){n(a);continue}if(e.external){let s=e.external.registry.get(a[0])?.id;if(r!==a[0]&&s){n(a);continue}}if(e.metadataRegistry.get(a[0])?.id){n(a);continue}if(c.cycle){n(a);continue}if(c.count>1){if(e.reused===\"ref\"){n(a);continue}}}}function ge(e,r){let o=e.seen.get(r);if(!o)throw Error(\"Unprocessed schema. This is a bug in Zod.\");let i=(c)=>{let u=e.seen.get(c);if(u.ref===null)return;let s=u.def??u.schema,d={...s},f=u.ref;if(u.ref=null,f){i(f);let y=e.seen.get(f),k=y.schema;if(k.$ref&&(e.target===\"draft-07\"||e.target===\"draft-04\"||e.target===\"openapi-3.0\"))s.allOf=s.allOf??[],s.allOf.push(k);else Object.assign(s,k);if(Object.assign(s,d),c._zod.parent===f)for(let E in s){if(E===\"$ref\"||E===\"allOf\")continue;if(!(E in d))delete s[E]}if(k.$ref&&y.def)for(let E in s){if(E===\"$ref\"||E===\"allOf\")continue;if(E in y.def&&JSON.stringify(s[E])===JSON.stringify(y.def[E]))delete s[E]}}let _=c._zod.parent;if(_&&_!==f){i(_);let y=e.seen.get(_);if(y?.schema.$ref){if(s.$ref=y.schema.$ref,y.def)for(let k in s){if(k===\"$ref\"||k===\"allOf\")continue;if(k in y.def&&JSON.stringify(s[k])===JSON.stringify(y.def[k]))delete s[k]}}}e.override({zodSchema:c,jsonSchema:s,path:u.path??[]})};for(let c of[...e.seen.entries()].reverse())i(c[0]);let t={};if(e.target===\"draft-2020-12\")t.$schema=\"https://json-schema.org/draft/2020-12/schema\";else if(e.target===\"draft-07\")t.$schema=\"http://json-schema.org/draft-07/schema#\";else if(e.target===\"draft-04\")t.$schema=\"http://json-schema.org/draft-04/schema#\";else if(e.target===\"openapi-3.0\");if(e.external?.uri){let c=e.external.registry.get(r)?.id;if(!c)throw Error(\"Schema is missing an `id` property\");t.$id=e.external.uri(c)}Object.assign(t,o.def??o.schema);let n=e.metadataRegistry.get(r)?.id;if(n!==void 0&&t.id===n)delete t.id;let a=e.external?.defs??{};for(let c of e.seen.entries()){let u=c[1];if(u.def&&u.defId){if(u.def.id===u.defId)delete u.def.id;a[u.defId]=u.def}}if(e.external);else if(Object.keys(a).length>0)if(e.target===\"draft-2020-12\")t.$defs=a;else t.definitions=a;try{let c=JSON.parse(JSON.stringify(t));return Object.defineProperty(c,\"~standard\",{value:{...r[\"~standard\"],jsonSchema:{input:et(r,\"input\",e.processors),output:et(r,\"output\",e.processors)}},enumerable:!1,writable:!1}),c}catch(c){throw Error(\"Error converting schema to JSON.\")}}function L(e,r){let o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let i=e._zod.def;if(i.type===\"transform\")return!0;if(i.type===\"array\")return L(i.element,o);if(i.type===\"set\")return L(i.valueType,o);if(i.type===\"lazy\")return L(i.getter(),o);if(i.type===\"promise\"||i.type===\"optional\"||i.type===\"nonoptional\"||i.type===\"nullable\"||i.type===\"readonly\"||i.type===\"default\"||i.type===\"prefault\")return L(i.innerType,o);if(i.type===\"intersection\")return L(i.left,o)||L(i.right,o);if(i.type===\"record\"||i.type===\"map\")return L(i.keyType,o)||L(i.valueType,o);if(i.type===\"pipe\"){if(e._zod.traits.has(\"$ZodCodec\"))return!0;return L(i.in,o)||L(i.out,o)}if(i.type===\"object\"){for(let t in i.shape)if(L(i.shape[t],o))return!0;return!1}if(i.type===\"union\"){for(let t of i.options)if(L(t,o))return!0;return!1}if(i.type===\"tuple\"){for(let t of i.items)if(L(t,o))return!0;if(i.rest&&L(i.rest,o))return!0;return!1}return!1}var Vc=(e,r={})=>(o)=>{let i=pe({...o,processors:r});return S(e,i),fe(i,e),ge(i,e)},et=(e,r,o={})=>(i)=>{let{libraryOptions:t,target:n}=i??{},a=pe({...t??{},target:n,io:r,processors:o});return S(e,a),fe(a,e),ge(a,e)};var $g={guid:\"uuid\",url:\"uri\",datetime:\"date-time\",json_string:\"json-string\",regex:\"\"},Fc=(e,r,o,i)=>{let t=o;t.type=\"string\";let{minimum:n,maximum:a,format:c,patterns:u,contentEncoding:s}=e._zod.bag;if(typeof n===\"number\")t.minLength=n;if(typeof a===\"number\")t.maxLength=a;if(c){if(t.format=$g[c]??c,t.format===\"\")delete t.format;if(c===\"time\")delete t.format}if(s)t.contentEncoding=s;if(u&&u.size>0){let d=[...u];if(d.length===1)t.pattern=d[0].source;else if(d.length>1)t.allOf=[...d.map((f)=>({...r.target===\"draft-07\"||r.target===\"draft-04\"||r.target===\"openapi-3.0\"?{type:\"string\"}:{},pattern:f.source}))]}},Jc=(e,r,o,i)=>{let t=o,{minimum:n,maximum:a,format:c,multipleOf:u,exclusiveMaximum:s,exclusiveMinimum:d}=e._zod.bag;if(typeof c===\"string\"&&c.includes(\"int\"))t.type=\"integer\";else t.type=\"number\";let f=typeof d===\"number\"&&d>=(n??Number.NEGATIVE_INFINITY),_=typeof s===\"number\"&&s<=(a??Number.POSITIVE_INFINITY),y=r.target===\"draft-04\"||r.target===\"openapi-3.0\";if(f)if(y)t.minimum=d,t.exclusiveMinimum=!0;else t.exclusiveMinimum=d;else if(typeof n===\"number\")t.minimum=n;if(_)if(y)t.maximum=s,t.exclusiveMaximum=!0;else t.exclusiveMaximum=s;else if(typeof a===\"number\")t.maximum=a;if(typeof u===\"number\")t.multipleOf=u},Mc=(e,r,o,i)=>{o.type=\"boolean\"},Gc=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"BigInt cannot be represented in JSON Schema\")},qc=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Symbols cannot be represented in JSON Schema\")},Kc=(e,r,o,i)=>{if(r.target===\"openapi-3.0\")o.type=\"string\",o.nullable=!0,o.enum=[null];else o.type=\"null\"},Wc=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Undefined cannot be represented in JSON Schema\")},Bc=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Void cannot be represented in JSON Schema\")},Xc=(e,r,o,i)=>{o.not={}},Yc=(e,r,o,i)=>{},Hc=(e,r,o,i)=>{},Qc=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Date cannot be represented in JSON Schema\")},eu=(e,r,o,i)=>{let t=e._zod.def,n=mt(t.entries);if(n.every((a)=>typeof a===\"number\"))o.type=\"number\";if(n.every((a)=>typeof a===\"string\"))o.type=\"string\";o.enum=n},tu=(e,r,o,i)=>{let t=e._zod.def,n=[];for(let a of t.values)if(a===void 0){if(r.unrepresentable===\"throw\")throw Error(\"Literal `undefined` cannot be represented in JSON Schema\")}else if(typeof a===\"bigint\")if(r.unrepresentable===\"throw\")throw Error(\"BigInt literals cannot be represented in JSON Schema\");else n.push(Number(a));else n.push(a);if(n.length===0);else if(n.length===1){let a=n[0];if(o.type=a===null?\"null\":typeof a,r.target===\"draft-04\"||r.target===\"openapi-3.0\")o.enum=[a];else o.const=a}else{if(n.every((a)=>typeof a===\"number\"))o.type=\"number\";if(n.every((a)=>typeof a===\"string\"))o.type=\"string\";if(n.every((a)=>typeof a===\"boolean\"))o.type=\"boolean\";if(n.every((a)=>a===null))o.type=\"null\";o.enum=n}},ru=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"NaN cannot be represented in JSON Schema\")},nu=(e,r,o,i)=>{let t=o,n=e._zod.pattern;if(!n)throw Error(\"Pattern not found in template literal\");t.type=\"string\",t.pattern=n.source},ou=(e,r,o,i)=>{let t=o,n={type:\"string\",format:\"binary\",contentEncoding:\"binary\"},{minimum:a,maximum:c,mime:u}=e._zod.bag;if(a!==void 0)n.minLength=a;if(c!==void 0)n.maxLength=c;if(u)if(u.length===1)n.contentMediaType=u[0],Object.assign(t,n);else Object.assign(t,n),t.anyOf=u.map((s)=>({contentMediaType:s}));else Object.assign(t,n)},iu=(e,r,o,i)=>{o.type=\"boolean\"},au=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Custom types cannot be represented in JSON Schema\")},cu=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Function types cannot be represented in JSON Schema\")},uu=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Transforms cannot be represented in JSON Schema\")},su=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Map cannot be represented in JSON Schema\")},lu=(e,r,o,i)=>{if(r.unrepresentable===\"throw\")throw Error(\"Set cannot be represented in JSON Schema\")},du=(e,r,o,i)=>{let t=o,n=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;if(typeof a===\"number\")t.minItems=a;if(typeof c===\"number\")t.maxItems=c;t.type=\"array\",t.items=S(n.element,r,{...i,path:[...i.path,\"items\"]})},mu=(e,r,o,i)=>{let t=o,n=e._zod.def;t.type=\"object\",t.properties={};let a=n.shape;for(let s in a)t.properties[s]=S(a[s],r,{...i,path:[...i.path,\"properties\",s]});let c=new Set(Object.keys(a)),u=new Set([...c].filter((s)=>{let d=n.shape[s]._zod;if(r.io===\"input\")return d.optin===void 0;else return d.optout===void 0}));if(u.size>0)t.required=Array.from(u);if(n.catchall?._zod.def.type===\"never\")t.additionalProperties=!1;else if(!n.catchall){if(r.io===\"output\")t.additionalProperties=!1}else if(n.catchall)t.additionalProperties=S(n.catchall,r,{...i,path:[...i.path,\"additionalProperties\"]})},Br=(e,r,o,i)=>{let t=e._zod.def,n=t.inclusive===!1,a=t.options.map((c,u)=>S(c,r,{...i,path:[...i.path,n?\"oneOf\":\"anyOf\",u]}));if(n)o.oneOf=a;else o.anyOf=a},pu=(e,r,o,i)=>{let t=e._zod.def,n=S(t.left,r,{...i,path:[...i.path,\"allOf\",0]}),a=S(t.right,r,{...i,path:[...i.path,\"allOf\",1]}),c=(s)=>(\"allOf\"in s)&&Object.keys(s).length===1,u=[...c(n)?n.allOf:[n],...c(a)?a.allOf:[a]];o.allOf=u},fu=(e,r,o,i)=>{let t=o,n=e._zod.def;t.type=\"array\";let a=r.target===\"draft-2020-12\"?\"prefixItems\":\"items\",c=r.target===\"draft-2020-12\"?\"items\":r.target===\"openapi-3.0\"?\"items\":\"additionalItems\",u=n.items.map((_,y)=>S(_,r,{...i,path:[...i.path,a,y]})),s=n.rest?S(n.rest,r,{...i,path:[...i.path,c,...r.target===\"openapi-3.0\"?[n.items.length]:[]]}):null;if(r.target===\"draft-2020-12\"){if(t.prefixItems=u,s)t.items=s}else if(r.target===\"openapi-3.0\"){if(t.items={anyOf:u},s)t.items.anyOf.push(s);if(t.minItems=u.length,!s)t.maxItems=u.length}else if(t.items=u,s)t.additionalItems=s;let{minimum:d,maximum:f}=e._zod.bag;if(typeof d===\"number\")t.minItems=d;if(typeof f===\"number\")t.maxItems=f},gu=(e,r,o,i)=>{let t=o,n=e._zod.def;t.type=\"object\";let a=n.keyType,u=a._zod.bag?.patterns;if(n.mode===\"loose\"&&u&&u.size>0){let d=S(n.valueType,r,{...i,path:[...i.path,\"patternProperties\",\"*\"]});t.patternProperties={};for(let f of u)t.patternProperties[f.source]=d}else{if(r.target===\"draft-07\"||r.target===\"draft-2020-12\")t.propertyNames=S(n.keyType,r,{...i,path:[...i.path,\"propertyNames\"]});t.additionalProperties=S(n.valueType,r,{...i,path:[...i.path,\"additionalProperties\"]})}let s=a._zod.values;if(s){let d=[...s].filter((f)=>typeof f===\"string\"||typeof f===\"number\");if(d.length>0)t.required=d}},vu=(e,r,o,i)=>{let t=e._zod.def,n=S(t.innerType,r,i),a=r.seen.get(e);if(r.target===\"openapi-3.0\")a.ref=t.innerType,o.nullable=!0;else o.anyOf=[n,{type:\"null\"}]},hu=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);n.ref=t.innerType},$u=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);n.ref=t.innerType,o.default=JSON.parse(JSON.stringify(t.defaultValue))},yu=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);if(n.ref=t.innerType,r.io===\"input\")o._prefault=JSON.parse(JSON.stringify(t.defaultValue))},_u=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);n.ref=t.innerType;let a;try{a=t.catchValue(void 0)}catch{throw Error(\"Dynamic catch values are not supported in JSON Schema\")}o.default=a},bu=(e,r,o,i)=>{let t=e._zod.def,n=t.in._zod.traits.has(\"$ZodTransform\"),a=r.io===\"input\"?n?t.out:t.in:t.out;S(a,r,i);let c=r.seen.get(e);c.ref=a},xu=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);n.ref=t.innerType,o.readOnly=!0},ku=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);n.ref=t.innerType},Xr=(e,r,o,i)=>{let t=e._zod.def;S(t.innerType,r,i);let n=r.seen.get(e);n.ref=t.innerType},wu=(e,r,o,i)=>{let t=e._zod.innerType;S(t,r,i);let n=r.seen.get(e);n.ref=t},Wr={string:Fc,number:Jc,boolean:Mc,bigint:Gc,symbol:qc,null:Kc,undefined:Wc,void:Bc,never:Xc,any:Yc,unknown:Hc,date:Qc,enum:eu,literal:tu,nan:ru,template_literal:nu,file:ou,success:iu,custom:au,function:cu,transform:uu,map:su,set:lu,array:du,object:mu,union:Br,intersection:pu,tuple:fu,record:gu,nullable:vu,nonoptional:hu,default:$u,prefault:yu,catch:_u,pipe:bu,readonly:xu,promise:ku,optional:Xr,lazy:wu};function Yr(e,r){if(\"_idmap\"in e){let i=e,t=pe({...r,processors:Wr}),n={};for(let u of i._idmap.entries()){let[s,d]=u;S(d,t)}let a={},c={registry:i,uri:r?.uri,defs:n};t.external=c;for(let u of i._idmap.entries()){let[s,d]=u;fe(t,d),a[s]=ge(t,d)}if(Object.keys(n).length>0){let u=t.target===\"draft-2020-12\"?\"$defs\":\"definitions\";a.__shared={[u]:n}}return{schemas:a}}let o=pe({...r,processors:Wr});return S(e,o),fe(o,e),ge(o,e)}class Iu{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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??\"draft-2020-12\";if(r===\"draft-4\")r=\"draft-04\";if(r===\"draft-7\")r=\"draft-07\";this.ctx=pe({processors:Wr,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return S(e,this.ctx,r)}emit(e,r){if(r){if(r.cycles)this.ctx.cycles=r.cycles;if(r.reused)this.ctx.reused=r.reused;if(r.external)this.ctx.external=r.external}fe(this.ctx,e);let o=ge(this.ctx,e),{\"~standard\":i,...t}=o;return t}}var Al={};var Et={};Y(Et,{ZodAny:()=>Bu,ZodArray:()=>Qu,ZodBase64:()=>yn,ZodBase64URL:()=>_n,ZodBigInt:()=>ut,ZodBigIntFormat:()=>kn,ZodBoolean:()=>ct,ZodCIDRv4:()=>hn,ZodCIDRv6:()=>$n,ZodCUID:()=>ln,ZodCUID2:()=>dn,ZodCatch:()=>bs,ZodCodec:()=>Gt,ZodCustom:()=>qt,ZodCustomStringFormat:()=>it,ZodDate:()=>Lt,ZodDefault:()=>gs,ZodDiscriminatedUnion:()=>ts,ZodE164:()=>bn,ZodEmail:()=>cn,ZodEmoji:()=>un,ZodEnum:()=>nt,ZodExactOptional:()=>ms,ZodFile:()=>ls,ZodFunction:()=>Ps,ZodGUID:()=>Nt,ZodIPv4:()=>gn,ZodIPv6:()=>vn,ZodIntersection:()=>rs,ZodJWT:()=>xn,ZodKSUID:()=>fn,ZodLazy:()=>Ts,ZodLiteral:()=>ss,ZodMAC:()=>Fu,ZodMap:()=>cs,ZodNaN:()=>ks,ZodNanoID:()=>sn,ZodNever:()=>Yu,ZodNonOptional:()=>On,ZodNull:()=>Ku,ZodNullable:()=>fs,ZodNumber:()=>at,ZodNumberFormat:()=>ze,ZodObject:()=>Ft,ZodOptional:()=>Tn,ZodPipe:()=>Mt,ZodPrefault:()=>hs,ZodPreprocess:()=>ws,ZodPromise:()=>js,ZodReadonly:()=>Is,ZodRecord:()=>rt,ZodSet:()=>us,ZodString:()=>ot,ZodStringFormat:()=>O,ZodSuccess:()=>_s,ZodSymbol:()=>Gu,ZodTemplateLiteral:()=>Ss,ZodTransform:()=>ds,ZodTuple:()=>os,ZodType:()=>I,ZodULID:()=>mn,ZodURL:()=>Rt,ZodUUID:()=>re,ZodUndefined:()=>qu,ZodUnion:()=>Jt,ZodUnknown:()=>Xu,ZodVoid:()=>Hu,ZodXID:()=>pn,ZodXor:()=>es,_ZodString:()=>an,_default:()=>vs,_function:()=>Gd,any:()=>xd,array:()=>Vt,base64:()=>id,base64url:()=>ad,bigint:()=>hd,boolean:()=>Mu,catch:()=>xs,check:()=>qd,cidrv4:()=>nd,cidrv6:()=>od,codec:()=>Vd,cuid:()=>Bl,cuid2:()=>Xl,custom:()=>Kd,date:()=>wd,describe:()=>Wd,discriminatedUnion:()=>jd,e164:()=>cd,email:()=>Rl,emoji:()=>Kl,enum:()=>zn,exactOptional:()=>ps,file:()=>Zd,float32:()=>pd,float64:()=>fd,function:()=>Gd,guid:()=>Ll,hash:()=>md,hex:()=>dd,hostname:()=>ld,httpUrl:()=>ql,instanceof:()=>Xd,int:()=>nn,int32:()=>gd,int64:()=>$d,intersection:()=>ns,invertCodec:()=>Fd,ipv4:()=>ed,ipv6:()=>rd,json:()=>Hd,jwt:()=>ud,keyof:()=>Id,ksuid:()=>Ql,lazy:()=>Os,literal:()=>Ad,looseObject:()=>Td,looseRecord:()=>Dd,mac:()=>td,map:()=>Ed,meta:()=>Bd,nan:()=>Ld,nanoid:()=>Wl,nativeEnum:()=>Nd,never:()=>wn,nonoptional:()=>ys,null:()=>Wu,nullable:()=>Zt,nullish:()=>Cd,number:()=>Ju,object:()=>zd,optional:()=>At,partialRecord:()=>Pd,pipe:()=>on,prefault:()=>$s,preprocess:()=>Qd,promise:()=>Md,readonly:()=>zs,record:()=>as,refine:()=>Ds,set:()=>Ud,strictObject:()=>Sd,string:()=>Ut,stringFormat:()=>sd,stringbool:()=>Yd,success:()=>Rd,superRefine:()=>Es,symbol:()=>_d,templateLiteral:()=>Jd,transform:()=>Sn,tuple:()=>is,uint32:()=>vd,uint64:()=>yd,ulid:()=>Yl,undefined:()=>bd,union:()=>In,unknown:()=>Ie,url:()=>Gl,uuid:()=>Vl,uuidv4:()=>Fl,uuidv6:()=>Jl,uuidv7:()=>Ml,void:()=>kd,xid:()=>Hl,xor:()=>Od});var Hr={};Y(Hr,{endsWith:()=>qe,gt:()=>ee,gte:()=>R,includes:()=>Me,length:()=>we,lowercase:()=>Fe,lt:()=>Q,lte:()=>q,maxLength:()=>ke,maxSize:()=>me,mime:()=>Ke,minLength:()=>ie,minSize:()=>te,multipleOf:()=>de,negative:()=>Mr,nonnegative:()=>qr,nonpositive:()=>Gr,normalize:()=>We,overwrite:()=>B,positive:()=>Jr,property:()=>Kr,regex:()=>Ve,size:()=>xe,slugify:()=>He,startsWith:()=>Ge,toLowerCase:()=>Xe,toUpperCase:()=>Ye,trim:()=>Be,uppercase:()=>Je});var tt={};Y(tt,{ZodISODate:()=>en,ZodISODateTime:()=>Qr,ZodISODuration:()=>rn,ZodISOTime:()=>tn,date:()=>Su,datetime:()=>zu,duration:()=>Ou,time:()=>Tu});var Qr=l(\"ZodISODateTime\",(e,r)=>{ai.init(e,r),O.init(e,r)});function zu(e){return ac(Qr,e)}var en=l(\"ZodISODate\",(e,r)=>{ci.init(e,r),O.init(e,r)});function Su(e){return cc(en,e)}var tn=l(\"ZodISOTime\",(e,r)=>{ui.init(e,r),O.init(e,r)});function Tu(e){return uc(tn,e)}var rn=l(\"ZodISODuration\",(e,r)=>{si.init(e,r),O.init(e,r)});function Ou(e){return sc(rn,e)}var Zl=(e,r)=>{ht.init(e,r),e.name=\"ZodError\",Object.defineProperties(e,{format:{value:(o)=>yt(e,o)},flatten:{value:(o)=>$t(e,o)},addIssue:{value:(o)=>{e.issues.push(o),e.message=JSON.stringify(e.issues,De,2)}},addIssues:{value:(o)=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,De,2)}},isEmpty:{get(){return e.issues.length===0}}})},_g=l(\"ZodError\",Zl),M=l(\"ZodError\",Zl,{Parent:Error});var ju=Ne(M),Pu=Ae(M),Du=Ze(M),Eu=Ce(M),Uu=tr(M),Nu=rr(M),Au=nr(M),Zu=or(M),Cu=ir(M),Ru=ar(M),Lu=cr(M),Vu=ur(M);var Cl=new WeakMap;function Ct(e,r,o){let i=Object.getPrototypeOf(e),t=Cl.get(i);if(!t)t=new Set,Cl.set(i,t);if(t.has(r))return;t.add(r);for(let n in o){let a=o[n];Object.defineProperty(i,n,{configurable:!0,enumerable:!1,get(){let c=a.bind(this);return Object.defineProperty(this,n,{configurable:!0,writable:!0,enumerable:!0,value:c}),c},set(c){Object.defineProperty(this,n,{configurable:!0,writable:!0,enumerable:!0,value:c})}})}}var I=l(\"ZodType\",(e,r)=>(w.init(e,r),Object.assign(e[\"~standard\"],{jsonSchema:{input:et(e,\"input\"),output:et(e,\"output\")}}),e.toJSONSchema=Vc(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,\"_def\",{value:r}),e.parse=(o,i)=>ju(e,o,i,{callee:e.parse}),e.safeParse=(o,i)=>Du(e,o,i),e.parseAsync=async(o,i)=>Pu(e,o,i,{callee:e.parseAsync}),e.safeParseAsync=async(o,i)=>Eu(e,o,i),e.spa=e.safeParseAsync,e.encode=(o,i)=>Uu(e,o,i),e.decode=(o,i)=>Nu(e,o,i),e.encodeAsync=async(o,i)=>Au(e,o,i),e.decodeAsync=async(o,i)=>Zu(e,o,i),e.safeEncode=(o,i)=>Cu(e,o,i),e.safeDecode=(o,i)=>Ru(e,o,i),e.safeEncodeAsync=async(o,i)=>Lu(e,o,i),e.safeDecodeAsync=async(o,i)=>Vu(e,o,i),Ct(e,\"ZodType\",{check(...o){let i=this.def;return this.clone(h.mergeDefs(i,{checks:[...i.checks??[],...o.map((t)=>typeof t===\"function\"?{_zod:{check:t,def:{check:\"custom\"},onattach:[]}}:t)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,i){return Z(this,o,i)},brand(){return this},register(o,i){return o.add(this,i),this},refine(o,i){return this.check(Ds(o,i))},superRefine(o,i){return this.check(Es(o,i))},overwrite(o){return this.check(B(o))},optional(){return At(this)},exactOptional(){return ps(this)},nullable(){return Zt(this)},nullish(){return At(Zt(this))},nonoptional(o){return ys(this,o)},array(){return Vt(this)},or(o){return In([this,o])},and(o){return ns(this,o)},transform(o){return on(this,Sn(o))},default(o){return vs(this,o)},prefault(o){return $s(this,o)},catch(o){return xs(this,o)},pipe(o){return on(this,o)},readonly(){return zs(this)},describe(o){let i=this.clone();return N.add(i,{description:o}),i},meta(...o){if(o.length===0)return N.get(this);let i=this.clone();return N.add(i,o[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(e,\"description\",{get(){return N.get(e)?.description},configurable:!0}),e)),an=l(\"_ZodString\",(e,r)=>{be.init(e,r),I.init(e,r),e._zod.processJSONSchema=(i,t,n)=>Fc(e,i,t,n);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,Ct(e,\"_ZodString\",{regex(...i){return this.check(Ve(...i))},includes(...i){return this.check(Me(...i))},startsWith(...i){return this.check(Ge(...i))},endsWith(...i){return this.check(qe(...i))},min(...i){return this.check(ie(...i))},max(...i){return this.check(ke(...i))},length(...i){return this.check(we(...i))},nonempty(...i){return this.check(ie(1,...i))},lowercase(i){return this.check(Fe(i))},uppercase(i){return this.check(Je(i))},trim(){return this.check(Be())},normalize(...i){return this.check(We(...i))},toLowerCase(){return this.check(Xe())},toUpperCase(){return this.check(Ye())},slugify(){return this.check(He())}})}),ot=l(\"ZodString\",(e,r)=>{be.init(e,r),an.init(e,r),e.email=(o)=>e.check(kr(cn,o)),e.url=(o)=>e.check(Dt(Rt,o)),e.jwt=(o)=>e.check(Fr(xn,o)),e.emoji=(o)=>e.check(Tr(un,o)),e.guid=(o)=>e.check(Pt(Nt,o)),e.uuid=(o)=>e.check(wr(re,o)),e.uuidv4=(o)=>e.check(Ir(re,o)),e.uuidv6=(o)=>e.check(zr(re,o)),e.uuidv7=(o)=>e.check(Sr(re,o)),e.nanoid=(o)=>e.check(Or(sn,o)),e.guid=(o)=>e.check(Pt(Nt,o)),e.cuid=(o)=>e.check(jr(ln,o)),e.cuid2=(o)=>e.check(Pr(dn,o)),e.ulid=(o)=>e.check(Dr(mn,o)),e.base64=(o)=>e.check(Rr(yn,o)),e.base64url=(o)=>e.check(Lr(_n,o)),e.xid=(o)=>e.check(Er(pn,o)),e.ksuid=(o)=>e.check(Ur(fn,o)),e.ipv4=(o)=>e.check(Nr(gn,o)),e.ipv6=(o)=>e.check(Ar(vn,o)),e.cidrv4=(o)=>e.check(Zr(hn,o)),e.cidrv6=(o)=>e.check(Cr($n,o)),e.e164=(o)=>e.check(Vr(bn,o)),e.datetime=(o)=>e.check(zu(o)),e.date=(o)=>e.check(Su(o)),e.time=(o)=>e.check(Tu(o)),e.duration=(o)=>e.check(Ou(o))});function Ut(e){return rc(ot,e)}var O=l(\"ZodStringFormat\",(e,r)=>{T.init(e,r),an.init(e,r)}),cn=l(\"ZodEmail\",(e,r)=>{Yo.init(e,r),O.init(e,r)});function Rl(e){return kr(cn,e)}var Nt=l(\"ZodGUID\",(e,r)=>{Bo.init(e,r),O.init(e,r)});function Ll(e){return Pt(Nt,e)}var re=l(\"ZodUUID\",(e,r)=>{Xo.init(e,r),O.init(e,r)});function Vl(e){return wr(re,e)}function Fl(e){return Ir(re,e)}function Jl(e){return zr(re,e)}function Ml(e){return Sr(re,e)}var Rt=l(\"ZodURL\",(e,r)=>{Ho.init(e,r),O.init(e,r)});function Gl(e){return Dt(Rt,e)}function ql(e){return Dt(Rt,{protocol:G.httpProtocol,hostname:G.domain,...h.normalizeParams(e)})}var un=l(\"ZodEmoji\",(e,r)=>{Qo.init(e,r),O.init(e,r)});function Kl(e){return Tr(un,e)}var sn=l(\"ZodNanoID\",(e,r)=>{ei.init(e,r),O.init(e,r)});function Wl(e){return Or(sn,e)}var ln=l(\"ZodCUID\",(e,r)=>{ti.init(e,r),O.init(e,r)});function Bl(e){return jr(ln,e)}var dn=l(\"ZodCUID2\",(e,r)=>{ri.init(e,r),O.init(e,r)});function Xl(e){return Pr(dn,e)}var mn=l(\"ZodULID\",(e,r)=>{ni.init(e,r),O.init(e,r)});function Yl(e){return Dr(mn,e)}var pn=l(\"ZodXID\",(e,r)=>{oi.init(e,r),O.init(e,r)});function Hl(e){return Er(pn,e)}var fn=l(\"ZodKSUID\",(e,r)=>{ii.init(e,r),O.init(e,r)});function Ql(e){return Ur(fn,e)}var gn=l(\"ZodIPv4\",(e,r)=>{li.init(e,r),O.init(e,r)});function ed(e){return Nr(gn,e)}var Fu=l(\"ZodMAC\",(e,r)=>{mi.init(e,r),O.init(e,r)});function td(e){return oc(Fu,e)}var vn=l(\"ZodIPv6\",(e,r)=>{di.init(e,r),O.init(e,r)});function rd(e){return Ar(vn,e)}var hn=l(\"ZodCIDRv4\",(e,r)=>{pi.init(e,r),O.init(e,r)});function nd(e){return Zr(hn,e)}var $n=l(\"ZodCIDRv6\",(e,r)=>{fi.init(e,r),O.init(e,r)});function od(e){return Cr($n,e)}var yn=l(\"ZodBase64\",(e,r)=>{vi.init(e,r),O.init(e,r)});function id(e){return Rr(yn,e)}var _n=l(\"ZodBase64URL\",(e,r)=>{hi.init(e,r),O.init(e,r)});function ad(e){return Lr(_n,e)}var bn=l(\"ZodE164\",(e,r)=>{$i.init(e,r),O.init(e,r)});function cd(e){return Vr(bn,e)}var xn=l(\"ZodJWT\",(e,r)=>{yi.init(e,r),O.init(e,r)});function ud(e){return Fr(xn,e)}var it=l(\"ZodCustomStringFormat\",(e,r)=>{_i.init(e,r),O.init(e,r)});function sd(e,r,o={}){return Qe(it,e,r,o)}function ld(e){return Qe(it,\"hostname\",G.hostname,e)}function dd(e){return Qe(it,\"hex\",G.hex,e)}function md(e,r){let o=r?.enc??\"hex\",i=`${e}_${o}`,t=G[i];if(!t)throw Error(`Unrecognized hash format: ${i}`);return Qe(it,i,t,r)}var at=l(\"ZodNumber\",(e,r)=>{hr.init(e,r),I.init(e,r),e._zod.processJSONSchema=(i,t,n)=>Jc(e,i,t,n),Ct(e,\"ZodNumber\",{gt(i,t){return this.check(ee(i,t))},gte(i,t){return this.check(R(i,t))},min(i,t){return this.check(R(i,t))},lt(i,t){return this.check(Q(i,t))},lte(i,t){return this.check(q(i,t))},max(i,t){return this.check(q(i,t))},int(i){return this.check(nn(i))},safe(i){return this.check(nn(i))},positive(i){return this.check(ee(0,i))},nonnegative(i){return this.check(R(0,i))},negative(i){return this.check(Q(0,i))},nonpositive(i){return this.check(q(0,i))},multipleOf(i,t){return this.check(de(i,t))},step(i,t){return this.check(de(i,t))},finite(){return this}});let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??\"\").includes(\"int\")||Number.isSafeInteger(o.multipleOf??0.5),e.isFinite=!0,e.format=o.format??null});function Ju(e){return lc(at,e)}var ze=l(\"ZodNumberFormat\",(e,r)=>{bi.init(e,r),at.init(e,r)});function nn(e){return mc(ze,e)}function pd(e){return pc(ze,e)}function fd(e){return fc(ze,e)}function gd(e){return gc(ze,e)}function vd(e){return vc(ze,e)}var ct=l(\"ZodBoolean\",(e,r)=>{kt.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Mc(e,o,i,t)});function Mu(e){return hc(ct,e)}var ut=l(\"ZodBigInt\",(e,r)=>{$r.init(e,r),I.init(e,r),e._zod.processJSONSchema=(i,t,n)=>Gc(e,i,t,n),e.gte=(i,t)=>e.check(R(i,t)),e.min=(i,t)=>e.check(R(i,t)),e.gt=(i,t)=>e.check(ee(i,t)),e.gte=(i,t)=>e.check(R(i,t)),e.min=(i,t)=>e.check(R(i,t)),e.lt=(i,t)=>e.check(Q(i,t)),e.lte=(i,t)=>e.check(q(i,t)),e.max=(i,t)=>e.check(q(i,t)),e.positive=(i)=>e.check(ee(BigInt(0),i)),e.negative=(i)=>e.check(Q(BigInt(0),i)),e.nonpositive=(i)=>e.check(q(BigInt(0),i)),e.nonnegative=(i)=>e.check(R(BigInt(0),i)),e.multipleOf=(i,t)=>e.check(de(i,t));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function hd(e){return yc(ut,e)}var kn=l(\"ZodBigIntFormat\",(e,r)=>{xi.init(e,r),ut.init(e,r)});function $d(e){return bc(kn,e)}function yd(e){return xc(kn,e)}var Gu=l(\"ZodSymbol\",(e,r)=>{ki.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>qc(e,o,i,t)});function _d(e){return kc(Gu,e)}var qu=l(\"ZodUndefined\",(e,r)=>{wi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Wc(e,o,i,t)});function bd(e){return wc(qu,e)}var Ku=l(\"ZodNull\",(e,r)=>{Ii.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Kc(e,o,i,t)});function Wu(e){return Ic(Ku,e)}var Bu=l(\"ZodAny\",(e,r)=>{zi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Yc(e,o,i,t)});function xd(){return zc(Bu)}var Xu=l(\"ZodUnknown\",(e,r)=>{Si.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Hc(e,o,i,t)});function Ie(){return Sc(Xu)}var Yu=l(\"ZodNever\",(e,r)=>{Ti.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Xc(e,o,i,t)});function wn(e){return Tc(Yu,e)}var Hu=l(\"ZodVoid\",(e,r)=>{Oi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Bc(e,o,i,t)});function kd(e){return Oc(Hu,e)}var Lt=l(\"ZodDate\",(e,r)=>{ji.init(e,r),I.init(e,r),e._zod.processJSONSchema=(i,t,n)=>Qc(e,i,t,n),e.min=(i,t)=>e.check(R(i,t)),e.max=(i,t)=>e.check(q(i,t));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function wd(e){return jc(Lt,e)}var Qu=l(\"ZodArray\",(e,r)=>{Pi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>du(e,o,i,t),e.element=r.element,Ct(e,\"ZodArray\",{min(o,i){return this.check(ie(o,i))},nonempty(o){return this.check(ie(1,o))},max(o,i){return this.check(ke(o,i))},length(o,i){return this.check(we(o,i))},unwrap(){return this.element}})});function Vt(e,r){return Ec(Qu,e,r)}function Id(e){let r=e._zod.def.shape;return zn(Object.keys(r))}var Ft=l(\"ZodObject\",(e,r)=>{Di.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>mu(e,o,i,t),h.defineLazy(e,\"shape\",()=>r.shape),Ct(e,\"ZodObject\",{keyof(){return zn(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:Ie()})},loose(){return this.clone({...this._zod.def,catchall:Ie()})},strict(){return this.clone({...this._zod.def,catchall:wn()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return h.extend(this,o)},safeExtend(o){return h.safeExtend(this,o)},merge(o){return h.merge(this,o)},pick(o){return h.pick(this,o)},omit(o){return h.omit(this,o)},partial(...o){return h.partial(Tn,this,o[0])},required(...o){return h.required(On,this,o[0])}})});function zd(e,r){let o={type:\"object\",shape:e??{},...h.normalizeParams(r)};return new Ft(o)}function Sd(e,r){return new Ft({type:\"object\",shape:e,catchall:wn(),...h.normalizeParams(r)})}function Td(e,r){return new Ft({type:\"object\",shape:e,catchall:Ie(),...h.normalizeParams(r)})}var Jt=l(\"ZodUnion\",(e,r)=>{wt.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Br(e,o,i,t),e.options=r.options});function In(e,r){return new Jt({type:\"union\",options:e,...h.normalizeParams(r)})}var es=l(\"ZodXor\",(e,r)=>{Jt.init(e,r),Ei.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Br(e,o,i,t),e.options=r.options});function Od(e,r){return new es({type:\"union\",options:e,inclusive:!1,...h.normalizeParams(r)})}var ts=l(\"ZodDiscriminatedUnion\",(e,r)=>{Jt.init(e,r),Ui.init(e,r)});function jd(e,r,o){return new ts({type:\"union\",options:r,discriminator:e,...h.normalizeParams(o)})}var rs=l(\"ZodIntersection\",(e,r)=>{Ni.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>pu(e,o,i,t)});function ns(e,r){return new rs({type:\"intersection\",left:e,right:r})}var os=l(\"ZodTuple\",(e,r)=>{yr.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>fu(e,o,i,t),e.rest=(o)=>e.clone({...e._zod.def,rest:o})});function is(e,r,o){let i=r instanceof w,t=i?o:r;return new os({type:\"tuple\",items:e,rest:i?r:null,...h.normalizeParams(t)})}var rt=l(\"ZodRecord\",(e,r)=>{Ai.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>gu(e,o,i,t),e.keyType=r.keyType,e.valueType=r.valueType});function as(e,r,o){if(!r||!r._zod)return new rt({type:\"record\",keyType:Ut(),valueType:e,...h.normalizeParams(r)});return new rt({type:\"record\",keyType:e,valueType:r,...h.normalizeParams(o)})}function Pd(e,r,o){let i=Z(e);return i._zod.values=void 0,new rt({type:\"record\",keyType:i,valueType:r,...h.normalizeParams(o)})}function Dd(e,r,o){return new rt({type:\"record\",keyType:e,valueType:r,mode:\"loose\",...h.normalizeParams(o)})}var cs=l(\"ZodMap\",(e,r)=>{Zi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>su(e,o,i,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...o)=>e.check(te(...o)),e.nonempty=(o)=>e.check(te(1,o)),e.max=(...o)=>e.check(me(...o)),e.size=(...o)=>e.check(xe(...o))});function Ed(e,r,o){return new cs({type:\"map\",keyType:e,valueType:r,...h.normalizeParams(o)})}var us=l(\"ZodSet\",(e,r)=>{Ci.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>lu(e,o,i,t),e.min=(...o)=>e.check(te(...o)),e.nonempty=(o)=>e.check(te(1,o)),e.max=(...o)=>e.check(me(...o)),e.size=(...o)=>e.check(xe(...o))});function Ud(e,r){return new us({type:\"set\",valueType:e,...h.normalizeParams(r)})}var nt=l(\"ZodEnum\",(e,r)=>{Ri.init(e,r),I.init(e,r),e._zod.processJSONSchema=(i,t,n)=>eu(e,i,t,n),e.enum=r.entries,e.options=Object.values(r.entries);let o=new Set(Object.keys(r.entries));e.extract=(i,t)=>{let n={};for(let a of i)if(o.has(a))n[a]=r.entries[a];else throw Error(`Key ${a} not found in enum`);return new nt({...r,checks:[],...h.normalizeParams(t),entries:n})},e.exclude=(i,t)=>{let n={...r.entries};for(let a of i)if(o.has(a))delete n[a];else throw Error(`Key ${a} not found in enum`);return new nt({...r,checks:[],...h.normalizeParams(t),entries:n})}});function zn(e,r){let o=Array.isArray(e)?Object.fromEntries(e.map((i)=>[i,i])):e;return new nt({type:\"enum\",entries:o,...h.normalizeParams(r)})}function Nd(e,r){return new nt({type:\"enum\",entries:e,...h.normalizeParams(r)})}var ss=l(\"ZodLiteral\",(e,r)=>{Li.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>tu(e,o,i,t),e.values=new Set(r.values),Object.defineProperty(e,\"value\",{get(){if(r.values.length>1)throw Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");return r.values[0]}})});function Ad(e,r){return new ss({type:\"literal\",values:Array.isArray(e)?e:[e],...h.normalizeParams(r)})}var ls=l(\"ZodFile\",(e,r)=>{Vi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>ou(e,o,i,t),e.min=(o,i)=>e.check(te(o,i)),e.max=(o,i)=>e.check(me(o,i)),e.mime=(o,i)=>e.check(Ke(Array.isArray(o)?o:[o],i))});function Zd(e){return Uc(ls,e)}var ds=l(\"ZodTransform\",(e,r)=>{Fi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>uu(e,o,i,t),e._zod.parse=(o,i)=>{if(i.direction===\"backward\")throw new $e(e.constructor.name);o.addIssue=(n)=>{if(typeof n===\"string\")o.issues.push(h.issue(n,o.value,r));else{let a=n;if(a.fatal)a.continue=!1;a.code??(a.code=\"custom\"),a.input??(a.input=o.value),a.inst??(a.inst=e),o.issues.push(h.issue(a))}};let t=r.transform(o.value,o);if(t instanceof Promise)return t.then((n)=>(o.value=n,o.fallback=!0,o));return o.value=t,o.fallback=!0,o}});function Sn(e){return new ds({type:\"transform\",transform:e})}var Tn=l(\"ZodOptional\",(e,r)=>{_r.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Xr(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function At(e){return new Tn({type:\"optional\",innerType:e})}var ms=l(\"ZodExactOptional\",(e,r)=>{Ji.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>Xr(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function ps(e){return new ms({type:\"optional\",innerType:e})}var fs=l(\"ZodNullable\",(e,r)=>{Mi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>vu(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function Zt(e){return new fs({type:\"nullable\",innerType:e})}function Cd(e){return At(Zt(e))}var gs=l(\"ZodDefault\",(e,r)=>{Gi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>$u(e,o,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vs(e,r){return new gs({type:\"default\",innerType:e,get defaultValue(){return typeof r===\"function\"?r():h.shallowClone(r)}})}var hs=l(\"ZodPrefault\",(e,r)=>{qi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>yu(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function $s(e,r){return new hs({type:\"prefault\",innerType:e,get defaultValue(){return typeof r===\"function\"?r():h.shallowClone(r)}})}var On=l(\"ZodNonOptional\",(e,r)=>{Ki.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>hu(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function ys(e,r){return new On({type:\"nonoptional\",innerType:e,...h.normalizeParams(r)})}var _s=l(\"ZodSuccess\",(e,r)=>{Wi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>iu(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function Rd(e){return new _s({type:\"success\",innerType:e})}var bs=l(\"ZodCatch\",(e,r)=>{Bi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>_u(e,o,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xs(e,r){return new bs({type:\"catch\",innerType:e,catchValue:typeof r===\"function\"?r:()=>r})}var ks=l(\"ZodNaN\",(e,r)=>{Xi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>ru(e,o,i,t)});function Ld(e){return Dc(ks,e)}var Mt=l(\"ZodPipe\",(e,r)=>{br.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>bu(e,o,i,t),e.in=r.in,e.out=r.out});function on(e,r){return new Mt({type:\"pipe\",in:e,out:r})}var Gt=l(\"ZodCodec\",(e,r)=>{Mt.init(e,r),It.init(e,r)});function Vd(e,r,o){return new Gt({type:\"pipe\",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}function Fd(e){let r=e._zod.def;return new Gt({type:\"pipe\",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var ws=l(\"ZodPreprocess\",(e,r)=>{Mt.init(e,r),Yi.init(e,r)}),Is=l(\"ZodReadonly\",(e,r)=>{Hi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>xu(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function zs(e){return new Is({type:\"readonly\",innerType:e})}var Ss=l(\"ZodTemplateLiteral\",(e,r)=>{Qi.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>nu(e,o,i,t)});function Jd(e,r){return new Ss({type:\"template_literal\",parts:e,...h.normalizeParams(r)})}var Ts=l(\"ZodLazy\",(e,r)=>{ra.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>wu(e,o,i,t),e.unwrap=()=>e._zod.def.getter()});function Os(e){return new Ts({type:\"lazy\",getter:e})}var js=l(\"ZodPromise\",(e,r)=>{ta.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>ku(e,o,i,t),e.unwrap=()=>e._zod.def.innerType});function Md(e){return new js({type:\"promise\",innerType:e})}var Ps=l(\"ZodFunction\",(e,r)=>{ea.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>cu(e,o,i,t)});function Gd(e){return new Ps({type:\"function\",input:Array.isArray(e?.input)?is(e?.input):e?.input??Vt(Ie()),output:e?.output??Ie()})}var qt=l(\"ZodCustom\",(e,r)=>{na.init(e,r),I.init(e,r),e._zod.processJSONSchema=(o,i,t)=>au(e,o,i,t)});function qd(e){let r=new j({check:\"custom\"});return r._zod.check=e,r}function Kd(e,r){return Nc(qt,e??(()=>!0),r)}function Ds(e,r={}){return Ac(qt,e,r)}function Es(e,r){return Zc(e,r)}var Wd=Cc,Bd=Rc;function Xd(e,r={}){let o=new qt({type:\"custom\",check:\"custom\",fn:(i)=>i instanceof e,abort:!0,...h.normalizeParams(r)});return o._zod.bag.Class=e,o._zod.check=(i)=>{if(!(i.value instanceof e))i.issues.push({code:\"invalid_type\",expected:e.name,input:i.value,inst:o,path:[...o._zod.def.path??[]]})},o}var Yd=(...e)=>Lc({Codec:Gt,Boolean:ct,String:ot},...e);function Hd(e){let r=Os(()=>In([Ut(e),Ju(),Mu(),Wu(),Vt(r),as(Ut(),r)]));return r}function Qd(e,r){return new ws({type:\"pipe\",in:Sn(e),out:r})}var xg={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 kg(e){D({customError:e})}function wg(){return D().customError}var Us;(function(e){})(Us||(Us={}));var x={...Et,...Hr,iso:tt},Ig=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 zg(e,r){let o=e.$schema;if(o===\"https://json-schema.org/draft/2020-12/schema\")return\"draft-2020-12\";if(o===\"http://json-schema.org/draft-07/schema#\")return\"draft-7\";if(o===\"http://json-schema.org/draft-04/schema#\")return\"draft-4\";return r??\"draft-2020-12\"}function Sg(e,r){if(!e.startsWith(\"#\"))throw Error(\"External $ref is not supported, only local refs (#/...) are allowed\");let o=e.slice(1).split(\"/\").filter(Boolean);if(o.length===0)return r.rootSchema;let i=r.version===\"draft-2020-12\"?\"$defs\":\"definitions\";if(o[0]===i){let t=o[1];if(!t||!r.defs[t])throw Error(`Reference not found: ${e}`);return r.defs[t]}throw Error(`Reference not found: ${e}`)}function em(e,r){if(e.not!==void 0){if(typeof e.not===\"object\"&&Object.keys(e.not).length===0)return x.never();throw Error(\"not is not supported in Zod (except { not: {} } for never)\")}if(e.unevaluatedItems!==void 0)throw Error(\"unevaluatedItems is not supported\");if(e.unevaluatedProperties!==void 0)throw Error(\"unevaluatedProperties is not supported\");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(\"Conditional schemas (if/then/else) are not supported\");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(\"dependentSchemas and dependentRequired are not supported\");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return x.lazy(()=>{if(!r.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let n=Sg(t,r),a=A(n,r);return r.refs.set(t,a),r.processing.delete(t),a}if(e.enum!==void 0){let t=e.enum;if(r.version===\"openapi-3.0\"&&e.nullable===!0&&t.length===1&&t[0]===null)return x.null();if(t.length===0)return x.never();if(t.length===1)return x.literal(t[0]);if(t.every((a)=>typeof a===\"string\"))return x.enum(t);let n=t.map((a)=>x.literal(a));if(n.length<2)return n[0];return x.union([n[0],n[1],...n.slice(2)])}if(e.const!==void 0)return x.literal(e.const);let o=e.type;if(Array.isArray(o)){let t=o.map((n)=>{let a={...e,type:n};return em(a,r)});if(t.length===0)return x.never();if(t.length===1)return t[0];return x.union(t)}if(!o)return x.any();let i;switch(o){case\"string\":{let t=x.string();if(e.format){let n=e.format;if(n===\"email\")t=t.check(x.email());else if(n===\"uri\"||n===\"uri-reference\")t=t.check(x.url());else if(n===\"uuid\"||n===\"guid\")t=t.check(x.uuid());else if(n===\"date-time\")t=t.check(x.iso.datetime());else if(n===\"date\")t=t.check(x.iso.date());else if(n===\"time\")t=t.check(x.iso.time());else if(n===\"duration\")t=t.check(x.iso.duration());else if(n===\"ipv4\")t=t.check(x.ipv4());else if(n===\"ipv6\")t=t.check(x.ipv6());else if(n===\"mac\")t=t.check(x.mac());else if(n===\"cidr\")t=t.check(x.cidrv4());else if(n===\"cidr-v6\")t=t.check(x.cidrv6());else if(n===\"base64\")t=t.check(x.base64());else if(n===\"base64url\")t=t.check(x.base64url());else if(n===\"e164\")t=t.check(x.e164());else if(n===\"jwt\")t=t.check(x.jwt());else if(n===\"emoji\")t=t.check(x.emoji());else if(n===\"nanoid\")t=t.check(x.nanoid());else if(n===\"cuid\")t=t.check(x.cuid());else if(n===\"cuid2\")t=t.check(x.cuid2());else if(n===\"ulid\")t=t.check(x.ulid());else if(n===\"xid\")t=t.check(x.xid());else if(n===\"ksuid\")t=t.check(x.ksuid())}if(typeof e.minLength===\"number\")t=t.min(e.minLength);if(typeof e.maxLength===\"number\")t=t.max(e.maxLength);if(e.pattern)t=t.regex(new RegExp(e.pattern));i=t;break}case\"number\":case\"integer\":{let t=o===\"integer\"?x.number().int():x.number();if(typeof e.minimum===\"number\")t=t.min(e.minimum);if(typeof e.maximum===\"number\")t=t.max(e.maximum);if(typeof e.exclusiveMinimum===\"number\")t=t.gt(e.exclusiveMinimum);else if(e.exclusiveMinimum===!0&&typeof e.minimum===\"number\")t=t.gt(e.minimum);if(typeof e.exclusiveMaximum===\"number\")t=t.lt(e.exclusiveMaximum);else if(e.exclusiveMaximum===!0&&typeof e.maximum===\"number\")t=t.lt(e.maximum);if(typeof e.multipleOf===\"number\")t=t.multipleOf(e.multipleOf);i=t;break}case\"boolean\":{i=x.boolean();break}case\"null\":{i=x.null();break}case\"object\":{let t={},n=e.properties||{},a=new Set(e.required||[]);for(let[u,s]of Object.entries(n)){let d=A(s,r);t[u]=a.has(u)?d:d.optional()}if(e.propertyNames){let u=A(e.propertyNames,r),s=e.additionalProperties&&typeof e.additionalProperties===\"object\"?A(e.additionalProperties,r):x.any();if(Object.keys(t).length===0){i=x.record(u,s);break}let d=x.object(t).passthrough(),f=x.looseRecord(u,s);i=x.intersection(d,f);break}if(e.patternProperties){let u=e.patternProperties,s=Object.keys(u),d=[];for(let _ of s){let y=A(u[_],r),k=x.string().regex(new RegExp(_));d.push(x.looseRecord(k,y))}let f=[];if(Object.keys(t).length>0)f.push(x.object(t).passthrough());if(f.push(...d),f.length===0)i=x.object({}).passthrough();else if(f.length===1)i=f[0];else{let _=x.intersection(f[0],f[1]);for(let y=2;y<f.length;y++)_=x.intersection(_,f[y]);i=_}break}let c=x.object(t);if(e.additionalProperties===!1)i=c.strict();else if(typeof e.additionalProperties===\"object\")i=c.catchall(A(e.additionalProperties,r));else i=c.passthrough();break}case\"array\":{let{prefixItems:t,items:n}=e;if(t&&Array.isArray(t)){let a=t.map((u)=>A(u,r)),c=n&&typeof n===\"object\"&&!Array.isArray(n)?A(n,r):void 0;if(c)i=x.tuple(a).rest(c);else i=x.tuple(a);if(typeof e.minItems===\"number\")i=i.check(x.minLength(e.minItems));if(typeof e.maxItems===\"number\")i=i.check(x.maxLength(e.maxItems))}else if(Array.isArray(n)){let a=n.map((u)=>A(u,r)),c=e.additionalItems&&typeof e.additionalItems===\"object\"?A(e.additionalItems,r):void 0;if(c)i=x.tuple(a).rest(c);else i=x.tuple(a);if(typeof e.minItems===\"number\")i=i.check(x.minLength(e.minItems));if(typeof e.maxItems===\"number\")i=i.check(x.maxLength(e.maxItems))}else if(n!==void 0){let a=A(n,r),c=x.array(a);if(typeof e.minItems===\"number\")c=c.min(e.minItems);if(typeof e.maxItems===\"number\")c=c.max(e.maxItems);i=c}else i=x.array(x.any());break}default:throw Error(`Unsupported type: ${o}`)}return i}function A(e,r){if(typeof e===\"boolean\")return e?x.any():x.never();let o=em(e,r),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map((s)=>A(s,r)),u=x.union(c);o=i?x.intersection(o,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map((s)=>A(s,r)),u=x.xor(c);o=i?x.intersection(o,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=i?o:x.any();else{let c=i?o:A(e.allOf[0],r),u=i?0:1;for(let s=u;s<e.allOf.length;s++)c=x.intersection(c,A(e.allOf[s],r));o=c}if(e.nullable===!0&&r.version===\"openapi-3.0\")o=x.nullable(o);if(e.readOnly===!0)o=x.readonly(o);if(e.default!==void 0)o=o.default(e.default);let t={},n=[\"$id\",\"id\",\"$comment\",\"$anchor\",\"$vocabulary\",\"$dynamicRef\",\"$dynamicAnchor\"];for(let c of n)if(c in e)t[c]=e[c];let a=[\"contentEncoding\",\"contentMediaType\",\"contentSchema\"];for(let c of a)if(c in e)t[c]=e[c];for(let c of Object.keys(e))if(!Ig.has(c))t[c]=e[c];if(Object.keys(t).length>0)r.registry.add(o,t);if(e.description)o=o.describe(e.description);return o}function tm(e,r){if(typeof e===\"boolean\")return e?x.any():x.never();let o;try{o=JSON.parse(JSON.stringify(e))}catch{throw Error(\"fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas\")}let i=zg(o,r?.defaultTarget),t=o.$defs||o.definitions||{},n={version:i,defs:t,refs:new Map,processing:new Set,rootSchema:o,registry:r?.registry??N};return A(o,n)}var Ns={};Y(Ns,{bigint:()=>Pg,boolean:()=>jg,date:()=>Dg,number:()=>Og,string:()=>Tg});function Tg(e){return nc(ot,e)}function Og(e){return dc(at,e)}function jg(e){return $c(ct,e)}function Pg(e){return _c(ut,e)}function Dg(e){return Pc(Lt,e)}D(zt());class rm extends Error{code=\"site_session_path_unsupported\";constructor(){super(\"Unsupported Site session API path\");this.name=\"SiteSessionPathError\"}}function nm(e,r,o=\"GET\",i){let t=e.split(\"?\")[0];if(!(t===\"/v1/workspaces/site-host\"||t.startsWith(\"/v1/workspaces/site-host/\"))&&t!==\"/v1/config/client\"||/[%\\\\#\\u0000-\\u0020\\u007f]/u.test(t)||t.split(\"/\").some((s)=>s===\".\"||s===\"..\"))throw new rm;let c=e.replace(\"/workspaces/site-host\",`/workspaces/${encodeURIComponent(r)}`),u=new URL(c,\"http://site.invalid\");if(u.searchParams.get(\"originSiteId\")===\"current\"&&r!==\"site-host\")return u.searchParams.set(\"originSiteId\",i??\"00000000-0000-0000-0000-000000000000\"),u.pathname+u.search;return c}var im=1,Eg=1,am=4096,cm=16777216,Ug=8,Ng=1024,As=1;var W=p.string().regex(/^[0-9a-f]{64}$/u),Ag=p.string().min(1).max(256).regex(/^[A-Za-z0-9_-]+$/u),um=p.string().min(1).max(512).regex(/^[^\\u0000-\\u001f\\u007f]+$/u),Zg=p.string().min(1).max(128).regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/u).refine((e)=>![\"__proto__\",\"prototype\",\"constructor\"].includes(e),{message:\"unsafe Codemode namespace segment\"}),Se=p.record(p.string().max(512),p.json()),Kt=p.object({serverId:Ag,toolName:um}).strict(),Zs=Kt,sm=p.object({src:p.string().min(1).max(8192),mimeType:p.string().min(1).max(128).optional(),sizes:p.array(p.string().min(1).max(64)).max(16).optional(),theme:p.enum([\"light\",\"dark\"]).optional()}).strict(),Cg=p.object({title:p.string().max(512).optional(),readOnlyHint:p.boolean().optional(),destructiveHint:p.boolean().optional(),idempotentHint:p.boolean().optional(),openWorldHint:p.boolean().optional()}).loose(),om=Se,lm=p.object({identity:Kt,modelName:um,codemodePath:p.array(Zg).min(2).max(Ug),title:p.string().min(1).max(512).optional(),description:p.string().max(32768).optional(),inputSchema:om,outputSchema:om.optional(),annotations:Cg.optional(),icons:p.array(sm).max(16).optional(),source:p.enum([\"opengeni\",\"files\",\"docs\",\"mcp\",\"codex_apps\",\"interaction\"]),approval:p.enum([\"none\",\"human\",\"policy\"])}).strict(),Rg=lm,zy=p.object({version:p.literal(Eg),accountId:p.string().uuid(),workspaceId:p.string().uuid(),generation:p.number().int().positive(),digest:W,createdAt:p.string().datetime({offset:!0}),entries:p.array(Rg).max(am)}).strict().superRefine((e,r)=>{let o=new Set,i=new Set,t=new Set;for(let[n,a]of e.entries.entries()){let c=`${a.identity.serverId}\\x00${a.identity.toolName}`,u=a.codemodePath.join(\".\");if(o.has(c))r.addIssue({code:\"custom\",path:[\"entries\",n,\"identity\"],message:\"duplicate tool identity\"});if(i.has(a.modelName))r.addIssue({code:\"custom\",path:[\"entries\",n,\"modelName\"],message:\"duplicate model tool name\"});if(t.has(u))r.addIssue({code:\"custom\",path:[\"entries\",n,\"codemodePath\"],message:\"duplicate tool path\"});o.add(c),i.add(a.modelName),t.add(u)}}),Sy=p.object({kind:p.enum([\"model\",\"codemode\",\"http\",\"mcp\",\"browser\"]),subjectId:p.string().min(1).max(1024)}).strict(),dm=p.object({version:p.literal(im),accountId:p.string().uuid(),workspaceId:p.string().uuid(),sessionId:p.string().uuid(),turnId:p.string().uuid(),attemptId:p.string().uuid(),executionGeneration:p.number().int().positive(),generation:p.number().int().positive(),digest:W,createdAt:p.string().datetime({offset:!0}),entries:p.array(lm).max(am)}).strict().superRefine((e,r)=>{let o=new Set,i=new Set,t=new Set;for(let[n,a]of e.entries.entries()){let c=`${a.identity.serverId}\\x00${a.identity.toolName}`,u=a.codemodePath.join(\".\");if(o.has(c))r.addIssue({code:\"custom\",path:[\"entries\",n,\"identity\"],message:\"duplicate tool identity\"});if(i.has(a.modelName))r.addIssue({code:\"custom\",path:[\"entries\",n,\"modelName\"],message:\"duplicate model tool name\"});if(t.has(u))r.addIssue({code:\"custom\",path:[\"entries\",n,\"codemodePath\"],message:\"duplicate Codemode tool path\"});o.add(c),i.add(a.modelName),t.add(u)}}),Cs=p.object({kind:p.enum([\"model\",\"codemode\"]),subjectId:p.string().min(1).max(1024)}).strict(),Lg=p.object({operationId:p.string().uuid(),catalogDigest:W,identity:Kt,arguments:Se,caller:Cs}).strict(),Wt=p.record(p.string().max(256),p.json()).optional(),ve=p.record(p.string().max(512),p.json()).optional(),Vg=p.object({type:p.literal(\"text\"),text:p.string(),annotations:Wt,_meta:ve}).loose(),Fg=p.object({type:p.literal(\"image\"),data:p.string(),mimeType:p.string().min(1).max(128),annotations:Wt,_meta:ve}).loose(),Jg=p.object({type:p.literal(\"audio\"),data:p.string(),mimeType:p.string().min(1).max(128),annotations:Wt,_meta:ve}).loose(),Mg=p.object({type:p.literal(\"resource_link\"),name:p.string().min(1).max(1024),title:p.string().max(1024).optional(),uri:p.string().min(1).max(16384),description:p.string().max(32768).optional(),mimeType:p.string().max(128).optional(),size:p.number().int().nonnegative().optional(),icons:p.array(sm).max(16).optional(),annotations:Wt,_meta:ve}).loose(),Gg=p.object({uri:p.string().min(1).max(16384),mimeType:p.string().max(128).optional(),text:p.string(),_meta:ve}).loose(),qg=p.object({uri:p.string().min(1).max(16384),mimeType:p.string().max(128).optional(),blob:p.string(),_meta:ve}).loose(),Kg=p.object({type:p.literal(\"resource\"),resource:p.union([Gg,qg]),annotations:Wt,_meta:ve}).loose(),Wg=p.discriminatedUnion(\"type\",[Vg,Fg,Jg,Mg,Kg]),jn=p.object({content:p.array(Wg).max(Ng),structuredContent:Se.optional(),isError:p.boolean().optional(),_meta:ve}).loose(),Bg=jn,Ty=p.object({operationId:p.string().uuid().optional(),catalogDigest:W,identity:Zs,arguments:Se,siteArtifactId:p.string().uuid().optional(),siteVersionId:p.string().uuid().optional(),approvalToken:p.string().regex(/^ogta_[A-Za-z0-9_-]{43}$/u).optional()}).strict().superRefine(Xg),Oy=p.object({operationId:p.string().uuid(),catalogDigest:W,identity:Zs,arguments:Se}).strict(),jy=p.object({operationId:p.string().uuid(),catalogDigest:W,identity:Zs,approvalToken:p.string().regex(/^ogta_[A-Za-z0-9_-]{43}$/u),expiresAt:p.string().datetime({offset:!0})}).strict(),Py=p.object({operationId:p.string().uuid(),catalogDigest:W,result:Bg}).strict(),Dy=p.object({catalogDigest:W,moduleSpecifier:p.string().min(1).max(512),source:p.string().max(16777216)}).strict();function Xg(e,r){if(e.siteArtifactId===void 0===(e.siteVersionId===void 0))return;r.addIssue({code:\"custom\",message:\"siteArtifactId and siteVersionId must be provided together\",path:[e.siteArtifactId===void 0?\"siteArtifactId\":\"siteVersionId\"]})}var Yg=p.enum([\"queued\",\"running\",\"completed\",\"failed\",\"outcome_unknown\",\"cancelled\"]),Rs=p.object({version:p.literal(As),operationId:p.string().uuid(),accountId:p.string().uuid(),workspaceId:p.string().uuid(),sessionId:p.string().uuid(),turnId:p.string().uuid(),attemptId:p.string().uuid(),executionGeneration:p.number().int().positive(),catalogDigest:W,requestDigest:W,identity:Kt,arguments:Se,caller:Cs.refine((e)=>e.kind===\"codemode\",{message:\"Codemode operation caller must be codemode\"}),state:Yg,result:jn.nullable(),errorCode:p.string().min(1).max(128).nullable(),errorMessage:p.string().min(1).max(4096).nullable(),createdAt:p.string().datetime({offset:!0}),claimedAt:p.string().datetime({offset:!0}).nullable(),executionStartedAt:p.string().datetime({offset:!0}).nullable(),completedAt:p.string().datetime({offset:!0}).nullable(),updatedAt:p.string().datetime({offset:!0})}).strict(),Ey=p.object({operationId:p.string().uuid(),catalogDigest:W,identity:Kt,arguments:Se}).strict(),mm=p.object({operation:Rs,dispatch:p.enum([\"accepted\",\"already_running\",\"terminal\",\"unavailable\",\"rejected\"])}).strict(),Hg=p.object({version:p.literal(As),operationId:p.string().uuid(),catalogDigest:W}).strict(),Qg=p.object({version:p.literal(As),operationId:p.string().uuid(),status:p.enum([\"accepted\",\"already_running\",\"terminal\",\"unavailable\",\"rejected\"])}).strict();var pm=require(\"node:crypto\");class st extends Error{code=\"tool_not_found\";constructor(){super(\"Tool is not present in the active gateway catalog\");this.name=\"ToolGatewayToolNotFoundError\"}}class Ls extends Error{code=\"catalog_integrity_failed\";constructor(){super(\"Tool catalog digest does not match its authoritative content\");this.name=\"ToolGatewayCatalogIntegrityError\"}}class Vs extends Error{code=\"catalog_too_large\";constructor(){super(\"Tool catalog exceeds the maximum serialized size\");this.name=\"ToolGatewayCatalogTooLargeError\"}}class Bt extends Error{code=\"tool_path_collision\";constructor(e,r){super(r===\"extends_leaf\"?`Tool path ${e.join(\".\")} extends a tool leaf`:`Tool path ${e.join(\".\")} collides`);this.name=\"ToolGatewayPathCollisionError\"}}function Pn(e){return pm.createHash(\"sha256\").update(JSON.stringify(Fs(e)),\"utf8\").digest(\"hex\")}function lt(e,r){return e<r?-1:e>r?1:0}function Fs(e){if(Array.isArray(e))return e.map(Fs);if(e!==null&&typeof e===\"object\")return Object.fromEntries(Object.entries(e).sort(([r],[o])=>lt(r,o)).map(([r,o])=>[r,Fs(o)]));return e}function gm(e,r){let o=vm();for(let i of e.entries)ev(o,i);return[`// Generated by ${r.generatedBy}. Do not edit.`,`// ${r.catalogDigestLabel??\"Tool catalog digest\"}: ${e.digest}`,`import type { ${r.callOptionsType}, ${r.fallbackResultType} } from ${JSON.stringify(r.moduleSpecifier)};`,\"\",`declare module ${JSON.stringify(r.moduleSpecifier)} {`,` interface ${r.interfaceName} {`,...hm(o,4,r),\" }\",\"}\",\"\",\"export {};\",\"\"].join(`\n`)}function Js(e){return ne(e,e,new Set,0)}function vm(){return{children:new Map,entry:null}}function ev(e,r){let o=e;for(let[i,t]of r.codemodePath.entries()){if(o.entry)throw new Bt(r.codemodePath,\"extends_leaf\");let n=o.children.get(t);if(!n)n=vm(),o.children.set(t,n);if(o=n,i===r.codemodePath.length-1){if(o.entry||o.children.size>0)throw new Bt(r.codemodePath,\"collision\");o.entry=r}}}function hm(e,r,o){let i=[];for(let[t,n]of[...e.children].sort(([a],[c])=>lt(a,c))){if(n.entry){let a=n.entry,c=Js(a.inputSchema),u=a.outputSchema?Js(a.outputSchema):o.fallbackResultType,s=cv(a.description??a.title);if(s)i.push(...uv(s,r));i.push(`${Te(r)}readonly ${t}: (`),i.push(`${Te(r+2)}argumentsValue${tv(a.inputSchema)?\"?\":\"\"}: ${c},`),i.push(`${Te(r+2)}options?: ${o.callOptionsType},`),i.push(`${Te(r)}) => Promise<${u}>;`);continue}i.push(`${Te(r)}readonly ${t}: {`),i.push(...hm(n,r+2,o)),i.push(`${Te(r)}};`)}return i}function tv(e){if(!Oe(e))return!1;return(Array.isArray(e.required)?e.required.filter((o)=>typeof o===\"string\"):[]).length===0&&(e.type===\"object\"||Oe(e.properties))}function ne(e,r,o,i){if(i>48||e===!0)return\"unknown\";if(e===!1)return\"never\";if(!Oe(e))return\"unknown\";if(typeof e.$ref===\"string\"){if(!e.$ref.startsWith(\"#/\")||o.has(e.$ref))return\"unknown\";let c=av(r,e.$ref);if(c===void 0)return\"unknown\";let u=new Set(o);return u.add(e.$ref),ne(c,r,u,i+1)}if(Object.hasOwn(e,\"const\"))return Dn(e.const);if(Array.isArray(e.enum))return Xt(e.enum.map(Dn));let t=[];if(Array.isArray(e.oneOf))t.push(Xt(e.oneOf.map((c)=>ne(c,r,o,i+1))));if(Array.isArray(e.anyOf))t.push(Xt(e.anyOf.map((c)=>ne(c,r,o,i+1))));if(Array.isArray(e.allOf))t.push(fm(e.allOf.map((c)=>ne(c,r,o,i+1))));if(t.length>0){let c=fm(t);return e.nullable===!0?Xt([c,\"null\"]):c}let a=(Array.isArray(e.type)?e.type.filter((c)=>typeof c===\"string\"):typeof e.type===\"string\"?[e.type]:iv(e)).map((c)=>rv(c,e,r,o,i+1));if(e.nullable===!0)a.push(\"null\");return Xt(a.length>0?a:[\"unknown\"])}function rv(e,r,o,i,t){if(e===\"null\"||e===\"boolean\"||e===\"string\")return e;if(e===\"integer\"||e===\"number\")return\"number\";if(e===\"array\")return nv(r,o,i,t);if(e!==\"object\")return\"unknown\";return ov(r,o,i,t)}function nv(e,r,o,i){if(Array.isArray(e.prefixItems)){let n=e.prefixItems.map((c)=>ne(c,r,o,i+1));if(e.items===!1)return`readonly [${n.join(\", \")}]`;let a=e.items===void 0||e.items===!0?\"unknown\":ne(e.items,r,o,i+1);return`readonly [${n.join(\", \")}${n.length>0?\", \":\"\"}...${a}[]]`}return`readonly (${e.items===void 0||e.items===!0?\"unknown\":ne(e.items,r,o,i+1)})[]`}function ov(e,r,o,i){let t=Oe(e.properties)?e.properties:{},n=new Set(Array.isArray(e.required)?e.required.filter((u)=>typeof u===\"string\"):[]),a=Object.entries(t).sort(([u],[s])=>lt(u,s)),c=a.map(([u,s])=>`readonly ${Ms(u)}${n.has(u)?\"\":\"?\"}: ${ne(s,r,o,i+1)}`);for(let u of[...n].filter((s)=>!Object.hasOwn(t,s)).sort(lt))c.push(`readonly ${Ms(u)}: unknown`);if(e.additionalProperties!==!1){if(a.length===0&&e.additionalProperties!==void 0&&e.additionalProperties!==!0)return`Readonly<Record<string, ${ne(e.additionalProperties,r,o,i+1)}>>`;c.push(\"readonly [key: string]: unknown\")}return c.length===0?\"Record<string, never>\":`{ ${c.join(\"; \")} }`}function iv(e){if(Oe(e.properties)||Object.hasOwn(e,\"additionalProperties\"))return[\"object\"];if(Object.hasOwn(e,\"items\")||Array.isArray(e.prefixItems))return[\"array\"];return[]}function av(e,r){let o=e;for(let i of r.slice(2).split(\"/\")){if(!Oe(o))return;let t=i.replace(/~1/gu,\"/\").replace(/~0/gu,\"~\");if(!Object.hasOwn(o,t))return;o=o[t]}return o}function Dn(e){if(e===null||typeof e===\"string\"||typeof e===\"number\"||typeof e===\"boolean\")return JSON.stringify(e);if(Array.isArray(e))return`readonly [${e.map(Dn).join(\", \")}]`;if(Oe(e))return`{ ${Object.entries(e).sort(([r],[o])=>lt(r,o)).map(([r,o])=>`readonly ${Ms(r)}: ${Dn(o)}`).join(\"; \")} }`;return\"unknown\"}function Xt(e){let r=[...new Set(e)];if(r.includes(\"unknown\"))return\"unknown\";if(r.length===0)return\"never\";return r.length===1?r[0]:r.map($m).join(\" | \")}function fm(e){let r=[...new Set(e.filter((o)=>o!==\"unknown\"))];return r.length===0?\"unknown\":r.length===1?r[0]:r.map($m).join(\" & \")}function $m(e){return/[|&]/u.test(e)?`(${e})`:e}function Ms(e){return/^[A-Za-z_$][A-Za-z0-9_$]*$/u.test(e)?e:JSON.stringify(e)}function cv(e){if(!e)return null;let r=e.replace(/\\s+/gu,\" \").trim().replace(/\\*\\//gu,\"*\\\\/\");if(!r)return null;return r.length<=512?r:`${r.slice(0,509)}...`}function uv(e,r){return[`${Te(r)}/** ${e} */`]}function Te(e){return\" \".repeat(e)}function Oe(e){return e!==null&&typeof e===\"object\"&&!Array.isArray(e)}function ym(e,r={}){let o=En(e);return gm({digest:o.digest,entries:o.entries},{moduleSpecifier:r.moduleSpecifier??\"@opengeni/codemode\",interfaceName:\"CodemodeGeneratedTools\",callOptionsType:\"CodemodeCallOptions\",fallbackResultType:\"CodemodeToolResult\",generatedBy:\"@opengeni/codemode via @opengeni/tool-gateway\",catalogDigestLabel:\"Attempt catalog digest\"})}class je extends Error{status;code=\"codemode_transport_error\";remoteCode;retryable;outcomeUnknown;details;constructor(e,r=null,o={}){super(e);this.status=r;this.name=\"CodemodeTransportError\",this.remoteCode=o.code??null,this.retryable=o.retryable??null,this.outcomeUnknown=o.outcomeUnknown??null,this.details=o.details??null}}class xm extends Error{operation;code;constructor(e,r){super(e.errorMessage??`Codemode operation ${e.state}`);this.operation=e;this.code=r;this.name=\"CodemodeOperationError\"}}class km extends Error{result;code;retryable;constructor(e){let r=fv(e);super(r.message);this.result=e;this.name=\"CodemodeToolCallError\",this.code=r.code,this.retryable=r.retryable}}class wm extends Error{code=\"invalid_tool_result\";constructor(e){super(e);this.name=\"CodemodeToolContractError\"}}class qs{options;baseUrl;fetchImpl;pollIntervalMs;timeoutMs;catalogSnapshot=null;constructor(e){this.options=e;if(this.baseUrl=e.baseUrl.replace(/\\/+$/u,\"\"),!/^https?:\\/\\//u.test(this.baseUrl))throw Error(\"Codemode baseUrl must be an absolute HTTP(S) URL\");this.fetchImpl=e.fetch??globalThis.fetch.bind(globalThis),this.pollIntervalMs=Gs(e.pollIntervalMs??500,50,30000),this.timeoutMs=Gs(e.timeoutMs??600000,1000,3600000)}async catalog(e={}){if(this.catalogSnapshot&&!e.refresh)return this.catalogSnapshot;let r=await this.request(\"/catalog\",{method:\"GET\",...e.signal?{signal:e.signal}:{}}),o=En(await r.json());return this.catalogSnapshot=o,o}async tools(e={}){return dv(await this.catalog(e),this)}async call(e,r={},o={}){return(await this.callResolved((i)=>i.entries.find((t)=>t.identity.serverId===e.serverId&&t.identity.toolName===e.toolName)??null,r,o)).result}async callResolved(e,r,o){let i=await this.catalog(o.signal?{signal:o.signal}:{}),t=e(i);if(!t)throw new st;let n=o.operationId??bm.randomUUID(),a=Date.now()+Gs(o.timeoutMs??this.timeoutMs,1000,3600000),c=!1,u=!1,s=null,d=0;while(!0){if(Im(o.signal),Date.now()>=a)throw new je(`Codemode operation ${n} did not settle before the client deadline`);if(!c||(s?.state===\"queued\"||s?.state===\"running\")&&Date.now()>=d){c=!0,d=Date.now()+2000;try{s=await this.submit(n,i.digest,t.identity,r,o.signal)}catch(_){if(s===null&&!u&&_ instanceof je&&_.remoteCode===\"codemode_catalog_stale\"){if(u=!0,i=await this.catalog({refresh:!0,...o.signal?{signal:o.signal}:{}}),t=e(i),!t)throw new st;c=!1,d=0;continue}if(o.signal?.aborted)throw _;if(s===null&&!sv(_))throw _;let y;try{y=await this.read(n,o.signal)}catch(k){if(o.signal?.aborted)throw k;throw new je(`Codemode operation ${n} could not be reconciled after its submission response failed`,null,{code:\"codemode_operation_recovery_unavailable\",retryable:!0,outcomeUnknown:!0,details:{operationId:n}})}lv(y,{operationId:n,catalog:i,identity:t.identity,arguments:r}),s=y}}else s=await this.read(n,o.signal);if(s.state===\"completed\")return{result:jn.parse(s.result),entry:t};if([\"failed\",\"outcome_unknown\",\"cancelled\"].includes(s.state))throw new xm(s,s.errorCode??`codemode_${s.state}`);await vv(this.pollIntervalMs,o.signal)}}async callPath(e,r={},o={}){if(e.length<2||e.some((i)=>i.length===0))throw new st;return(await this.callResolved((i)=>_m(i,e),r,o)).result}async callPathValue(e,r={},o={}){if(e.length<2||e.some((n)=>n.length===0))throw new st;let{result:i,entry:t}=await this.callResolved((n)=>_m(n,e),r,o);if(!t.outputSchema)return i;if(i.isError)throw new km(i);if(!i.structuredContent)throw new wm(`Codemode tool ${e.join(\".\")} declared outputSchema but returned no structured content`);return i.structuredContent}async submit(e,r,o,i,t){let n=await this.request(\"/calls\",{method:\"POST\",...t?{signal:t}:{},headers:{\"content-type\":\"application/json\"},body:JSON.stringify({operationId:e,catalogDigest:r,identity:o,arguments:i})});return mm.parse(await n.json()).operation}async read(e,r){let o=await this.request(`/calls/${e}`,{method:\"GET\",...r?{signal:r}:{}});return Rs.parse(await o.json())}async sessionRequest(e,r){return nm(e,\"site-host\",r.method??\"GET\"),this.request(`/sdk${e}`,r,!1)}async request(e,r,o=!0){let i=typeof this.options.token===\"function\"?await this.options.token():this.options.token,t=await this.fetchImpl(`${this.baseUrl}${e}`,{...r,headers:{...Object.fromEntries(new Headers(r.headers).entries()),authorization:`Bearer ${i}`}});if(!t.ok&&o){let n=`Codemode request failed with HTTP ${t.status}`,a={};try{let c=gv(await t.json());if(c?.message)n=c.message;if(c)a={...c.code?{code:c.code}:{},...c.retryable===void 0?{}:{retryable:c.retryable},...c.outcomeUnknown===void 0?{}:{outcomeUnknown:c.outcomeUnknown},...c.details?{details:c.details}:{}}}catch{}throw new je(n,t.status,a)}return t}}function sv(e){return!(e instanceof je)||e.outcomeUnknown===!0}function lv(e,r){if(e.operationId===r.operationId&&e.accountId===r.catalog.accountId&&e.workspaceId===r.catalog.workspaceId&&e.sessionId===r.catalog.sessionId&&e.turnId===r.catalog.turnId&&e.attemptId===r.catalog.attemptId&&e.executionGeneration===r.catalog.executionGeneration&&e.catalogDigest===r.catalog.digest&&e.identity.serverId===r.identity.serverId&&e.identity.toolName===r.identity.toolName&&Pn(e.arguments)===Pn(r.arguments))return;throw new je(\"Codemode operation id is already bound to a different request\",409,{code:\"codemode_operation_conflict\",retryable:!1,outcomeUnknown:!1})}function dv(e,r){let o=En(e),i=Object.create(null);for(let t of o.entries){let n=i;for(let u of t.codemodePath.slice(0,-1)){let s=n[u];if(typeof s===\"function\")throw Error(\"Codemode path collides with a tool\");if(!s)s=Object.create(null),n[u]=s;n=s}let a=t.codemodePath.at(-1),c=async(u={},s={})=>await r.callPathValue(t.codemodePath,u,s);Object.defineProperty(c,\"entry\",{value:t,enumerable:!1}),n[a]=c}return i}function mv(e){let{createdAt:r,...o}=e;return Pn(o)}function En(e){let r=dm.parse(e);pv(r);let{digest:o,...i}=r;if(mv(i)!==o)throw new Ls;return r}function pv(e){if(new TextEncoder().encode(JSON.stringify(e)).byteLength>cm)throw new Vs}function Gs(e,r,o){if(!Number.isFinite(e))return r;return Math.max(r,Math.min(o,Math.floor(e)))}function Im(e){if(e?.aborted)throw e.reason??new DOMException(\"Aborted\",\"AbortError\")}function fv(e){let o=e.structuredContent?.error;return{code:typeof o?.code===\"string\"?o.code:\"tool_error\",message:typeof o?.message===\"string\"?o.message:\"Codemode tool failed\",retryable:o?.retryable===!0}}function _m(e,r){let o=e.entries.filter((i)=>i.codemodePath.length===r.length&&i.codemodePath.every((t,n)=>t===r[n]));return o.length===1?o[0]:null}function gv(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return null;let r=e,o=r.error&&typeof r.error===\"object\"&&!Array.isArray(r.error)?r.error:r,i=o.details&&typeof o.details===\"object\"&&!Array.isArray(o.details)?o.details:void 0,t=i?.code,n=typeof t===\"string\"&&/^[a-z0-9_]{1,128}$/u.test(t)?t:void 0,a=typeof o.message===\"string\"?o.message:void 0,c=typeof o.retryable===\"boolean\"?o.retryable:void 0,u=typeof o.outcomeUnknown===\"boolean\"?o.outcomeUnknown:void 0;return a||n||c!==void 0||u!==void 0||i?{...a?{message:a}:{},...n?{code:n}:{},...c===void 0?{}:{retryable:c},...u===void 0?{}:{outcomeUnknown:u},...i?{details:i}:{}}:null}async function vv(e,r){if(!r){await new Promise((o)=>setTimeout(o,e));return}Im(r),await new Promise((o,i)=>{let t=setTimeout(()=>{r.removeEventListener(\"abort\",n),o()},e),n=()=>{clearTimeout(t),i(r.reason??new DOMException(\"Aborted\",\"AbortError\"))};r.addEventListener(\"abort\",n,{once:!0})})}var zm={name:\"@opengeni/ogtool\",version:\"0.3.42-canary.35585322809001\",description:\"Codemode CLI and typed client entrypoint for an OpenGeni execution attempt.\",license:\"Apache-2.0\",repository:{type:\"git\",url:\"git+https://github.com/Cloudgeni-ai/opengeni.git\",directory:\"packages/ogtool\"},bin:{ogtool:\"./dist/bin/ogtool.cjs\"},files:[\"dist\",\"src\"],type:\"module\",sideEffects:!1,main:\"./src/index.ts\",module:\"./src/index.ts\",types:\"./src/index.ts\",exports:{\".\":{types:\"./src/index.ts\",default:\"./src/index.ts\"}},publishConfig:{access:\"public\",provenance:!0},scripts:{typecheck:\"tsc --noEmit\",test:\"bun test\",build:\"bun build.ts\",prepublishOnly:\"bash ../../scripts/prepublish-guard\"},dependencies:{\"@opengeni/codemode\":\"workspace:*\"},devDependencies:{tsup:\"^8.5.0\",typescript:\"7.0.2\"},engines:{node:\">=18\"}};function Sm(e){return(e.description||e.title||\"\").split(/\\p{White_Space}+/u).filter(Boolean).join(\" \")}function $v(e){let r=Sm(e),o=Array.from(r);return o.length<=160?r:`${o.slice(0,159).join(\"\")}…`}function yv(e){return e.replace(/[\\u0000-\\u001f\\u007f-\\u009f]/gu,(r)=>`\\\\u${r.charCodeAt(0).toString(16).padStart(4,\"0\")}`)}function Tm(e){let r={full:!1,json:!1,query:\"\",offset:0},o=new Set,i=()=>Error(\"usage: ogtool list [--full | --json] [--query <substring>] [--limit <1..100>] [--offset <nonnegative integer>]\");for(let t=0;t<e.length;t++){let n=e[t],a=n.indexOf(\"=\"),c=a<0?n:n.slice(0,a);if(o.has(c))throw i();if(o.add(c),c===\"--full\"||c===\"--json\"){if(a>=0)throw i();r[c===\"--full\"?\"full\":\"json\"]=!0}else if(c===\"--query\"||c===\"--limit\"||c===\"--offset\"){let u=a<0?e[++t]:n.slice(a+1);if(u===void 0||a<0&&u.startsWith(\"-\"))throw i();if(c===\"--query\")r.query=u;else{if(!/^[0-9]+$/u.test(u)||!Number.isSafeInteger(Number(u)))throw i();let s=Number(u);if(c===\"--limit\"&&(s<1||s>100))throw i();r[c===\"--limit\"?\"limit\":\"offset\"]=s}}else throw i()}if(r.full&&o.size!==1)throw i();return r}function Om(e,r){let o=e.entries.filter((u)=>u.codemodePath.join(\".\").includes(r.query)||Sm(u).includes(r.query)),i=o.slice(r.offset,r.limit===void 0?void 0:r.offset+r.limit).map((u)=>({path:u.codemodePath.join(\".\"),description:$v(u)})),t=r.json?[]:i.map((u)=>`${u.path}${u.description?` — ${yv(u.description)}`:\"\"}\n`),n=r.offset+i.length<o.length?r.offset+i.length:null,a={catalogDigest:e.digest,total:o.length,offset:r.offset,nextOffset:n,tools:i};return r.json?`${JSON.stringify(a)}\n`:t.join(\"\")+`# total: ${a.total}; offset: ${a.offset}; nextOffset: ${n??\"none\"}\n`+(n===null?\"\":`# Continue with --offset ${n} (keep the same --query and --limit).\n`)}var _v=\"@opengeni/ogtool\",Pm=zm.version;function Un(e=1){let r=[\"usage:\",\" ogtool list [--full | --json]\",\" [--query <substring>] [--limit <1..100>] [--offset <nonnegative integer>]\",\" ogtool show <tool-path-or-model-name>\",\" ogtool call <tool-path-or-model-name> [json-object]\",\" ogtool declarations [output-file]\",\" ogtool doctor\",\" ogtool --version\",\"\",\"list returns all authorized tools by default; --limit/--offset are opt-in slices\",\"\",\"requires OPENGENI_CODEMODE_URL and OPENGENI_CODEMODE_TOKEN or OPENGENI_CODEMODE_TOKEN_FILE\"].join(`\n`);(e===0?process.stdout:process.stderr).write(`${r}\n`),process.exitCode=e}function bv(){let e=process.env.OPENGENI_CODEMODE_URL?.trim(),r=process.env.OPENGENI_CODEMODE_TOKEN!==void 0,o=process.env.OPENGENI_CODEMODE_TOKEN_FILE?.trim();if(!e)throw Error(\"OPENGENI_CODEMODE_URL is required\");if(!r&&!o)throw Error(\"OPENGENI_CODEMODE_TOKEN or OPENGENI_CODEMODE_TOKEN_FILE is required\");return new qs({baseUrl:e,token:r?async()=>xv():async()=>kv(o)})}function xv(){let e=process.env.OPENGENI_CODEMODE_TOKEN?.trim();if(!e)throw Error(\"OPENGENI_CODEMODE_TOKEN is empty\");return e}function kv(e){let r;try{r=Pe.readFileSync(e,\"utf8\").trim()}catch{throw Error(\"OPENGENI_CODEMODE_TOKEN_FILE is not readable\")}if(!r)throw Error(\"OPENGENI_CODEMODE_TOKEN_FILE is empty\");return r}function wv(){let e=process.env.OPENGENI_CODEMODE_TOKEN,r=e!==void 0,o=Boolean(e?.trim().length),i=process.env.OPENGENI_CODEMODE_TOKEN_FILE??null,t=process.env.OPENGENI_CODEMODE_URL??null,n=!1,a=null;if(t)try{a=new URL(t).protocol,n=a===\"http:\"||a===\"https:\"}catch{n=!1}let c=!1,u=!1;if(i)try{c=Pe.statSync(i).isFile(),u=c&&Pe.readFileSync(i,\"utf8\").trim().length>0}catch{c=!1}let s=r?\"environment\":i?\"file\":null,f=n&&(r?o:u);process.stdout.write(`${JSON.stringify({ok:f,package:_v,version:Pm,node:process.version,urlConfigured:t!==null,urlValid:n,protocol:a,tokenMode:s,directTokenConfigured:r,directTokenNonempty:o,tokenFileConfigured:i!==null,tokenFileReadable:c,tokenFileNonempty:u,packageSpec:process.env.OPENGENI_OGTOOL_PACKAGE_SPEC??null},null,2)}\n`),process.exitCode=f?0:1}function Ks(e,r){let o=e.entries.filter((i)=>i.modelName===r||i.codemodePath.join(\".\")===r||`${i.identity.serverId}.${i.identity.toolName}`===r);if(o.length!==1)throw Error(o.length===0?`Unknown Codemode tool: ${r}`:`Ambiguous tool: ${r}`);return o[0]}function Ws(e){return{catalogDigest:e.digest,attemptId:e.attemptId,tools:e.entries.map((r)=>({name:r.modelName,path:r.codemodePath.join(\".\"),identity:r.identity,...r.title?{title:r.title}:{},...r.description?{description:r.description}:{},inputSchema:r.inputSchema,...r.outputSchema?{outputSchema:r.outputSchema}:{},...r.annotations?{annotations:r.annotations}:{},approval:r.approval,source:r.source}))}}var Iv=65536;function Dm(e,r){let o=Ks(e,r),i=Ws({...e,entries:[o]}),t=JSON.stringify(i.tools[0],null,2);if(Buffer.byteLength(t,\"utf8\")+1>Iv)throw Error(\"Tool details exceed 65536 bytes; use list --full or declarations <output-file>\");return`${t}\n`}function Em(e){if(e===void 0)return{};let r;try{r=JSON.parse(e)}catch{throw Error(\"tool arguments must be valid JSON\")}if(!r||typeof r!==\"object\"||Array.isArray(r))throw Error(\"tool arguments must be a JSON object\");return r}async function zv(){let e=process.argv[2];if(e===\"--help\"||e===\"-h\"||e===\"help\")return Un(0);if(e===\"--version\"||e===\"-V\"||e===\"version\"){process.stdout.write(`${Pm}\n`);return}if(e===\"doctor\")return wv();if(!e)return Un();let r=process.argv.slice(3);if((e===\"list\"||e===\"show\")&&r.length===1&&(r[0]===\"--help\"||r[0]===\"-h\"))return Un(0);let o=e===\"list\"?Tm(r):null;if(e===\"show\"&&(r.length!==1||!r[0]||r[0].startsWith(\"-\")))throw Error(\"usage: ogtool show <tool-path-or-model-name>\");let i=bv();if(e===\"list\"){let t=await i.catalog();if(o.full)process.stdout.write(`${JSON.stringify(Ws(t),null,2)}\n`);else process.stdout.write(Om(t,o));return}if(e===\"show\"){process.stdout.write(Dm(await i.catalog(),r[0]));return}if(e===\"call\"){let t=process.argv[3];if(!t)throw Error(\"tool path or model name is required\");let n=Em(process.argv[4]),a=await i.catalog(),c=Ks(a,t),u=await i.call(c.identity,n,{operationId:jm.randomUUID()});process.stdout.write(`${JSON.stringify(u,null,2)}\n`);return}if(e===\"declarations\"){let t=await i.catalog(),n=ym(t),a=process.argv[3];if(!a||a===\"-\")process.stdout.write(n);else Pe.writeFileSync(a,n,{encoding:\"utf8\",mode:384}),process.stdout.write(`${JSON.stringify({catalogDigest:t.digest,output:a},null,2)}\n`);return}return Un()}zv().catch((e)=>{let r=e&&typeof e===\"object\"&&\"code\"in e?String(e.code):null;process.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),process.exitCode=r===\"tool_outcome_unknown\"?3:1});\n","client.mjs":"var v_=Object.create;var{getPrototypeOf:y_,defineProperty:ka,getOwnPropertyNames:$_}=Object;var w_=Object.prototype.hasOwnProperty;function b_(e){return this[e]}var __,k_,xa=(e,t,n)=>{var o=e!=null&&typeof e===\"object\";if(o){var r=t?__??=new WeakMap:k_??=new WeakMap,i=r.get(e);if(i)return i}n=e!=null?v_(y_(e)):{};let a=t||!e||!e.__esModule?ka(n,\"default\",{value:e,enumerable:!0}):n;if(e&&typeof e===\"object\"||typeof e===\"function\"){for(let s of $_(e))if(!w_.call(a,s))ka(a,s,{get:b_.bind(e,s),enumerable:!0})}if(o)r.set(e,a);return a};var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var x_=(e)=>e;function S_(e,t){this[e]=x_.bind(null,t)}var Ne=(e,t)=>{for(var n in t)ka(e,n,{get:t[n],enumerable:!0,configurable:!0,set:S_.bind(t,n)})};var _n=_(function(Pg){Object.defineProperty(Pg,\"__esModule\",{value:!0});Pg.regexpCode=Pg.getEsmExportName=Pg.getProperty=Pg.safeStringify=Pg.stringify=Pg.strConcat=Pg.addCodeArg=Pg.str=Pg._=Pg.nil=Pg._Code=Pg.Name=Pg.IDENTIFIER=Pg._CodeOrName=void 0;class Ei{}Pg._CodeOrName=Ei;Pg.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class yr extends Ei{constructor(e){super();if(!Pg.IDENTIFIER.test(e))throw Error(\"CodeGen: name must be a valid identifier\");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}Pg.Name=yr;class Te extends Ei{constructor(e){super();this._items=typeof e===\"string\"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===\"\"||e==='\"\"'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((t,n)=>`${t}${n}`,\"\")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((t,n)=>{if(n instanceof yr)t[n.str]=(t[n.str]||0)+1;return t},{})}}Pg._Code=Te;Pg.nil=new Te(\"\");function Ig(e,...t){let n=[e[0]],o=0;while(o<t.length)Rp(n,t[o]),n.push(e[++o]);return new Te(n)}Pg._=Ig;var Ap=new Te(\"+\");function Tg(e,...t){let n=[bn(e[0])],o=0;while(o<t.length)n.push(Ap),Rp(n,t[o]),n.push(Ap,bn(e[++o]));return jS(n),new Te(n)}Pg.str=Tg;function Rp(e,t){if(t instanceof Te)e.push(...t._items);else if(t instanceof yr)e.push(t);else e.push(qS(t))}Pg.addCodeArg=Rp;function jS(e){let t=1;while(t<e.length-1){if(e[t]===Ap){let n=US(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=\"+\"}t++}}function US(e,t){if(t==='\"\"')return e;if(e==='\"\"')return t;if(typeof e==\"string\"){if(t instanceof yr||e[e.length-1]!=='\"')return;if(typeof t!=\"string\")return`${e.slice(0,-1)}${t}\"`;if(t[0]==='\"')return e.slice(0,-1)+t.slice(1);return}if(typeof t==\"string\"&&t[0]==='\"'&&!(e instanceof yr))return`\"${e}${t.slice(1)}`;return}function DS(e,t){return t.emptyStr()?e:e.emptyStr()?t:Tg`${e}${t}`}Pg.strConcat=DS;function qS(e){return typeof e==\"number\"||typeof e==\"boolean\"||e===null?e:bn(Array.isArray(e)?e.join(\",\"):e)}function NS(e){return new Te(bn(e))}Pg.stringify=NS;function bn(e){return JSON.stringify(e).replace(/\\u2028/g,\"\\\\u2028\").replace(/\\u2029/g,\"\\\\u2029\")}Pg.safeStringify=bn;function JS(e){return typeof e==\"string\"&&Pg.IDENTIFIER.test(e)?new Te(`.${e}`):Ig`[${e}]`}Pg.getProperty=JS;function GS(e){if(typeof e==\"string\"&&Pg.IDENTIFIER.test(e))return new Te(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Pg.getEsmExportName=GS;function MS(e){return new Te(e.toString())}Pg.regexpCode=MS});var qp=_(function(zg){Object.defineProperty(zg,\"__esModule\",{value:!0});zg.ValueScope=zg.ValueScopeName=zg.Scope=zg.varKinds=zg.UsedValueState=void 0;var de=_n();class Eg extends Error{constructor(e){super(`CodeGen: \"code\" for ${e} not defined`);this.value=e.value}}var zi;(function(e){e[e.Started=0]=\"Started\",e[e.Completed=1]=\"Completed\"})(zi||(zg.UsedValueState=zi={}));zg.varKinds={const:new de.Name(\"const\"),let:new de.Name(\"let\"),var:new de.Name(\"var\")};class Up{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof de.Name?e:this.name(e)}name(e){return new de.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,n;if(((n=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||n===void 0?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix \"${e}\" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}zg.Scope=Up;class Dp extends de.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=de._`.${new de.Name(t)}[${n}]`}}zg.ValueScopeName=Dp;var tI=de._`\\n`;class Og extends Up{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?tI:de.nil}}get(){return this._scope}name(e){return new Dp(e,this._newName(e))}value(e,t){var n;if(t.ref===void 0)throw Error(\"CodeGen: ref must be passed in value\");let o=this.toName(e),{prefix:r}=o,i=(n=t.key)!==null&&n!==void 0?n:t.ref,a=this._values[r];if(a){let u=a.get(i);if(u)return u}else a=this._values[r]=new Map;a.set(i,o);let s=this._scope[r]||(this._scope[r]=[]),c=s.length;return s[c]=t.ref,o.setValue(t,{property:r,itemIndex:c}),o}getValue(e,t){let n=this._values[e];if(!n)return;return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(n)=>{if(n.scopePath===void 0)throw Error(`CodeGen: name \"${n}\" has no value`);return de._`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,(o)=>{if(o.value===void 0)throw Error(`CodeGen: name \"${o}\" has no value`);return o.value.code},t,n)}_reduceValues(e,t,n={},o){let r=de.nil;for(let i in e){let a=e[i];if(!a)continue;let s=n[i]=n[i]||new Map;a.forEach((c)=>{if(s.has(c))return;s.set(c,zi.Started);let u=t(c);if(u){let l=this.opts.es5?zg.varKinds.var:zg.varKinds.const;r=de._`${r}${l} ${c} = ${u};${this.opts._n}`}else if(u=o===null||o===void 0?void 0:o(c))r=de._`${r}${u}${this.opts._n}`;else throw new Eg(c);s.set(c,zi.Completed)})}return r}}zg.ValueScope=Og});var j=_(function(pe){Object.defineProperty(pe,\"__esModule\",{value:!0});pe.or=pe.and=pe.not=pe.CodeGen=pe.operators=pe.varKinds=pe.ValueScopeName=pe.ValueScope=pe.Scope=pe.Name=pe.regexpCode=pe.stringify=pe.getProperty=pe.nil=pe.strConcat=pe.str=pe._=void 0;var M=_n(),Pe=qp(),ot=_n();Object.defineProperty(pe,\"_\",{enumerable:!0,get:function(){return ot._}});Object.defineProperty(pe,\"str\",{enumerable:!0,get:function(){return ot.str}});Object.defineProperty(pe,\"strConcat\",{enumerable:!0,get:function(){return ot.strConcat}});Object.defineProperty(pe,\"nil\",{enumerable:!0,get:function(){return ot.nil}});Object.defineProperty(pe,\"getProperty\",{enumerable:!0,get:function(){return ot.getProperty}});Object.defineProperty(pe,\"stringify\",{enumerable:!0,get:function(){return ot.stringify}});Object.defineProperty(pe,\"regexpCode\",{enumerable:!0,get:function(){return ot.regexpCode}});Object.defineProperty(pe,\"Name\",{enumerable:!0,get:function(){return ot.Name}});var qi=qp();Object.defineProperty(pe,\"Scope\",{enumerable:!0,get:function(){return qi.Scope}});Object.defineProperty(pe,\"ValueScope\",{enumerable:!0,get:function(){return qi.ValueScope}});Object.defineProperty(pe,\"ValueScopeName\",{enumerable:!0,get:function(){return qi.ValueScopeName}});Object.defineProperty(pe,\"varKinds\",{enumerable:!0,get:function(){return qi.varKinds}});pe.operators={GT:new M._Code(\">\"),GTE:new M._Code(\">=\"),LT:new M._Code(\"<\"),LTE:new M._Code(\"<=\"),EQ:new M._Code(\"===\"),NEQ:new M._Code(\"!==\"),NOT:new M._Code(\"!\"),OR:new M._Code(\"||\"),AND:new M._Code(\"&&\"),ADD:new M._Code(\"+\")};class it{optimizeNodes(){return this}optimizeNames(e,t){return this}}class Rg extends it{constructor(e,t,n){super();this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let n=e?Pe.varKinds.var:this.varKind,o=this.rhs===void 0?\"\":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=wr(this.rhs,e,t);return this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}}class Gp extends it{constructor(e,t,n){super();this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof M.Name&&!e[this.lhs.str]&&!this.sideEffects)return;return this.rhs=wr(this.rhs,e,t),this}get names(){let e=this.lhs instanceof M.Name?{}:{...this.lhs.names};return Di(e,this.rhs)}}class jg extends Gp{constructor(e,t,n,o){super(e,n,o);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class Ug extends it{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class Dg extends it{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:\"\"};`+e}}class qg extends it{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class Ng extends it{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=wr(this.code,e,t),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}}class Ni extends it{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),\"\")}optimizeNodes(){let{nodes:e}=this,t=e.length;while(t--){let n=e[t].optimizeNodes();if(Array.isArray(n))e.splice(t,1,...n);else if(n)e[t]=n;else e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,o=n.length;while(o--){let r=n[o];if(r.optimizeNames(e,t))continue;iI(e,r.names),n.splice(o,1)}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>Pt(e,t.names),{})}}class at extends Ni{render(e){return\"{\"+e._n+super.render(e)+\"}\"+e._n}}class Jg extends Ni{}class kn extends at{}kn.kind=\"else\";class Ze extends at{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+=\"else \"+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let t=this.else;if(t){let n=t.optimizeNodes();t=this.else=Array.isArray(n)?new kn(n):n}if(t){if(e===!1)return t instanceof Ze?t:t.nodes;if(this.nodes.length)return this;return new Ze(Vg(e),t instanceof Ze?[t]:t.nodes)}if(e===!1||!this.nodes.length)return;return this}optimizeNames(e,t){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,t),!(super.optimizeNames(e,t)||this.else))return;return this.condition=wr(this.condition,e,t),this}get names(){let e=super.names;if(Di(e,this.condition),this.else)Pt(e,this.else.names);return e}}Ze.kind=\"if\";class $r extends at{}$r.kind=\"for\";class Gg extends $r{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;return this.iteration=wr(this.iteration,e,t),this}get names(){return Pt(super.names,this.iteration.names)}}class Mg extends $r{constructor(e,t,n,o){super();this.varKind=e,this.name=t,this.from=n,this.to=o}render(e){let t=e.es5?Pe.varKinds.var:this.varKind,{name:n,from:o,to:r}=this;return`for(${t} ${n}=${o}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=Di(super.names,this.from);return Di(e,this.to)}}class Np extends $r{constructor(e,t,n,o){super();this.loop=e,this.varKind=t,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;return this.iterable=wr(this.iterable,e,t),this}get names(){return Pt(super.names,this.iterable.names)}}class Ai extends at{constructor(e,t,n){super();this.name=e,this.args=t,this.async=n}render(e){return`${this.async?\"async \":\"\"}function ${this.name}(${this.args})`+super.render(e)}}Ai.kind=\"func\";class Ri extends Ni{render(e){return\"return \"+super.render(e)}}Ri.kind=\"return\";class Zg extends at{render(e){let t=\"try\"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(e,t){var n,o;return super.optimizeNames(e,t),(n=this.catch)===null||n===void 0||n.optimizeNames(e,t),(o=this.finally)===null||o===void 0||o.optimizeNames(e,t),this}get names(){let e=super.names;if(this.catch)Pt(e,this.catch.names);if(this.finally)Pt(e,this.finally.names);return e}}class ji extends at{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}ji.kind=\"catch\";class Ui extends at{render(e){return\"finally\"+super.render(e)}}Ui.kind=\"finally\";class Lg{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`\n`:\"\"},this._extScope=e,this._scope=new Pe.Scope({parent:e}),this._nodes=[new Jg]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,o){let r=this._scope.toName(t);if(n!==void 0&&o)this._constants[r.str]=n;return this._leafNode(new Rg(e,r,n)),r}const(e,t,n){return this._def(Pe.varKinds.const,e,t,n)}let(e,t,n){return this._def(Pe.varKinds.let,e,t,n)}var(e,t,n){return this._def(Pe.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new Gp(e,t,n))}add(e,t){return this._leafNode(new jg(e,pe.operators.ADD,t))}code(e){if(typeof e==\"function\")e();else if(e!==M.nil)this._leafNode(new Ng(e));return this}object(...e){let t=[\"{\"];for(let[n,o]of e){if(t.length>1)t.push(\",\");if(t.push(n),n!==o||this.opts.es5)t.push(\":\"),(0,M.addCodeArg)(t,o)}return t.push(\"}\"),new M._Code(t)}if(e,t,n){if(this._blockNode(new Ze(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error('CodeGen: \"else\" body without \"then\" body');return this}elseIf(e){return this._elseNode(new Ze(e))}else(){return this._elseNode(new kn)}endIf(){return this._endBlockNode(Ze,kn)}_for(e,t){if(this._blockNode(e),t)this.code(t).endFor();return this}for(e,t){return this._for(new Gg(e),t)}forRange(e,t,n,o,r=this.opts.es5?Pe.varKinds.var:Pe.varKinds.let){let i=this._scope.toName(e);return this._for(new Mg(r,i,t,n),()=>o(i))}forOf(e,t,n,o=Pe.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let i=t instanceof M.Name?t:this.var(\"_arr\",t);return this.forRange(\"_i\",0,M._`${i}.length`,(a)=>{this.var(r,M._`${i}[${a}]`),n(r)})}return this._for(new Np(\"of\",o,r,t),()=>n(r))}forIn(e,t,n,o=this.opts.es5?Pe.varKinds.var:Pe.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,M._`Object.keys(${t})`,n);let r=this._scope.toName(e);return this._for(new Np(\"in\",o,r,t),()=>n(r))}endFor(){return this._endBlockNode($r)}label(e){return this._leafNode(new Ug(e))}break(e){return this._leafNode(new Dg(e))}return(e){let t=new Ri;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error('CodeGen: \"return\" should have one node');return this._endBlockNode(Ri)}try(e,t,n){if(!t&&!n)throw Error('CodeGen: \"try\" without \"catch\" and \"finally\"');let o=new Zg;if(this._blockNode(o),this.code(e),t){let r=this.name(\"e\");this._currNode=o.catch=new ji(r),t(r)}if(n)this._currNode=o.finally=new Ui,this.code(n);return this._endBlockNode(ji,Ui)}throw(e){return this._leafNode(new qg(e))}block(e,t){if(this._blockStarts.push(this._nodes.length),e)this.code(e).endBlock(t);return this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(\"CodeGen: not in self-balancing block\");let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=M.nil,n,o){if(this._blockNode(new Ai(e,t,n)),o)this.code(o).endFunc();return this}endFunc(){return this._endBlockNode(Ai)}optimize(e=1){while(e-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block \"${t?`${e.kind}/${t.kind}`:e.kind}\"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof Ze))throw Error('CodeGen: \"else\" without \"if\"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}}pe.CodeGen=Lg;function Pt(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function Di(e,t){return t instanceof M._CodeOrName?Pt(e,t.names):e}function wr(e,t,n){if(e instanceof M.Name)return o(e);if(!r(e))return e;return new M._Code(e._items.reduce((i,a)=>{if(a instanceof M.Name)a=o(a);if(a instanceof M._Code)i.push(...a._items);else i.push(a);return i},[]));function o(i){let a=n[i.str];if(a===void 0||t[i.str]!==1)return i;return delete t[i.str],a}function r(i){return i instanceof M._Code&&i._items.some((a)=>a instanceof M.Name&&t[a.str]===1&&n[a.str]!==void 0)}}function iI(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function Vg(e){return typeof e==\"boolean\"||typeof e==\"number\"||e===null?!e:M._`!${Jp(e)}`}pe.not=Vg;var aI=Fg(pe.operators.AND);function sI(...e){return e.reduce(aI)}pe.and=sI;var cI=Fg(pe.operators.OR);function uI(...e){return e.reduce(cI)}pe.or=uI;function Fg(e){return(t,n)=>t===M.nil?n:n===M.nil?t:M._`${Jp(t)} ${e} ${Jp(n)}`}function Jp(e){return e instanceof M.Name?e:M._`(${e})`}});var J=_(function(tv){Object.defineProperty(tv,\"__esModule\",{value:!0});tv.checkStrictMode=tv.getErrorPath=tv.Type=tv.useFunc=tv.setEvaluated=tv.evaluatedPropsToName=tv.mergeEvaluated=tv.eachItem=tv.unescapeJsonPointer=tv.escapeJsonPointer=tv.escapeFragment=tv.unescapeFragment=tv.schemaRefOrVal=tv.schemaHasRulesButRef=tv.schemaHasRules=tv.checkUnknownRules=tv.alwaysValidSchema=tv.toHash=void 0;var K=j(),mI=_n();function fI(e){let t={};for(let n of e)t[n]=!0;return t}tv.toHash=fI;function hI(e,t){if(typeof t==\"boolean\")return t;if(Object.keys(t).length===0)return!0;return Hg(e,t),!Xg(t,e.self.RULES.all)}tv.alwaysValidSchema=hI;function Hg(e,t=e.schema){let{opts:n,self:o}=e;if(!n.strictSchema)return;if(typeof t===\"boolean\")return;let r=o.RULES.keywords;for(let i in t)if(!r[i])ev(e,`unknown keyword: \"${i}\"`)}tv.checkUnknownRules=Hg;function Xg(e,t){if(typeof e==\"boolean\")return!e;for(let n in e)if(t[n])return!0;return!1}tv.schemaHasRules=Xg;function gI(e,t){if(typeof e==\"boolean\")return!e;for(let n in e)if(n!==\"$ref\"&&t.all[n])return!0;return!1}tv.schemaHasRulesButRef=gI;function vI({topSchemaRef:e,schemaPath:t},n,o,r){if(!r){if(typeof n==\"number\"||typeof n==\"boolean\")return n;if(typeof n==\"string\")return K._`${n}`}return K._`${e}${t}${(0,K.getProperty)(o)}`}tv.schemaRefOrVal=vI;function yI(e){return Yg(decodeURIComponent(e))}tv.unescapeFragment=yI;function $I(e){return encodeURIComponent(Zp(e))}tv.escapeFragment=$I;function Zp(e){if(typeof e==\"number\")return`${e}`;return e.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")}tv.escapeJsonPointer=Zp;function Yg(e){return e.replace(/~1/g,\"/\").replace(/~0/g,\"~\")}tv.unescapeJsonPointer=Yg;function wI(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}tv.eachItem=wI;function Kg({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(r,i,a,s)=>{let c=a===void 0?i:a instanceof K.Name?(i instanceof K.Name?e(r,i,a):t(r,i,a),a):i instanceof K.Name?(t(r,a,i),i):n(i,a);return s===K.Name&&!(c instanceof K.Name)?o(r,c):c}}tv.mergeEvaluated={props:Kg({mergeNames:(e,t,n)=>e.if(K._`${n} !== true && ${t} !== undefined`,()=>{e.if(K._`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,K._`${n} || {}`).code(K._`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if(K._`${n} !== true`,()=>{if(t===!0)e.assign(n,!0);else e.assign(n,K._`${n} || {}`),Lp(e,n,t)}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Qg}),items:Kg({mergeNames:(e,t,n)=>e.if(K._`${n} !== true && ${t} !== undefined`,()=>e.assign(n,K._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if(K._`${n} !== true`,()=>e.assign(n,t===!0?!0:K._`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var(\"items\",t)})};function Qg(e,t){if(t===!0)return e.var(\"props\",!0);let n=e.var(\"props\",K._`{}`);if(t!==void 0)Lp(e,n,t);return n}tv.evaluatedPropsToName=Qg;function Lp(e,t,n){Object.keys(n).forEach((o)=>e.assign(K._`${t}${(0,K.getProperty)(o)}`,!0))}tv.setEvaluated=Lp;var Wg={};function bI(e,t){return e.scopeValue(\"func\",{ref:t,code:Wg[t.code]||(Wg[t.code]=new mI._Code(t.code))})}tv.useFunc=bI;var Mp;(function(e){e[e.Num=0]=\"Num\",e[e.Str=1]=\"Str\"})(Mp||(tv.Type=Mp={}));function _I(e,t,n){if(e instanceof K.Name){let o=t===Mp.Num;return n?o?K._`\"[\" + ${e} + \"]\"`:K._`\"['\" + ${e} + \"']\"`:o?K._`\"/\" + ${e}`:K._`\"/\" + ${e}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`}return n?(0,K.getProperty)(e).toString():\"/\"+Zp(e)}tv.getErrorPath=_I;function ev(e,t,n=e.opts.strictSchema){if(!n)return;if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}tv.checkStrictMode=ev});var ke=_(function(nv){Object.defineProperty(nv,\"__esModule\",{value:!0});var te=j(),JI={data:new te.Name(\"data\"),valCxt:new te.Name(\"valCxt\"),instancePath:new te.Name(\"instancePath\"),parentData:new te.Name(\"parentData\"),parentDataProperty:new te.Name(\"parentDataProperty\"),rootData:new te.Name(\"rootData\"),dynamicAnchors:new te.Name(\"dynamicAnchors\"),vErrors:new te.Name(\"vErrors\"),errors:new te.Name(\"errors\"),this:new te.Name(\"this\"),self:new te.Name(\"self\"),scope:new te.Name(\"scope\"),json:new te.Name(\"json\"),jsonPos:new te.Name(\"jsonPos\"),jsonLen:new te.Name(\"jsonLen\"),jsonPart:new te.Name(\"jsonPart\")};nv.default=JI});var xn=_(function(sv){Object.defineProperty(sv,\"__esModule\",{value:!0});sv.extendErrors=sv.resetErrorsCount=sv.reportExtraError=sv.reportError=sv.keyword$DataError=sv.keywordError=void 0;var Z=j(),Gi=J(),ae=ke();sv.keywordError={message:({keyword:e})=>Z.str`must pass \"${e}\" keyword validation`};sv.keyword$DataError={message:({keyword:e,schemaType:t})=>t?Z.str`\"${e}\" keyword must be ${t} ($data)`:Z.str`\"${e}\" keyword is invalid ($data)`};function MI(e,t=sv.keywordError,n,o){let{it:r}=e,{gen:i,compositeRule:a,allErrors:s}=r,c=av(e,t,n);if(o!==null&&o!==void 0?o:a||s)ov(i,c);else iv(r,Z._`[${c}]`)}sv.reportError=MI;function ZI(e,t=sv.keywordError,n){let{it:o}=e,{gen:r,compositeRule:i,allErrors:a}=o,s=av(e,t,n);if(ov(r,s),!(i||a))iv(o,ae.default.vErrors)}sv.reportExtraError=ZI;function LI(e,t){e.assign(ae.default.errors,t),e.if(Z._`${ae.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(Z._`${ae.default.vErrors}.length`,t),()=>e.assign(ae.default.vErrors,null)))}sv.resetErrorsCount=LI;function VI({gen:e,keyword:t,schemaValue:n,data:o,errsCount:r,it:i}){if(r===void 0)throw Error(\"ajv implementation error\");let a=e.name(\"err\");e.forRange(\"i\",r,ae.default.errors,(s)=>{if(e.const(a,Z._`${ae.default.vErrors}[${s}]`),e.if(Z._`${a}.instancePath === undefined`,()=>e.assign(Z._`${a}.instancePath`,(0,Z.strConcat)(ae.default.instancePath,i.errorPath))),e.assign(Z._`${a}.schemaPath`,Z.str`${i.errSchemaPath}/${t}`),i.opts.verbose)e.assign(Z._`${a}.schema`,n),e.assign(Z._`${a}.data`,o)})}sv.extendErrors=VI;function ov(e,t){let n=e.const(\"err\",t);e.if(Z._`${ae.default.vErrors} === null`,()=>e.assign(ae.default.vErrors,Z._`[${n}]`),Z._`${ae.default.vErrors}.push(${n})`),e.code(Z._`${ae.default.errors}++`)}function iv(e,t){let{gen:n,validateName:o,schemaEnv:r}=e;if(r.$async)n.throw(Z._`new ${e.ValidationError}(${t})`);else n.assign(Z._`${o}.errors`,t),n.return(!1)}var Ct={keyword:new Z.Name(\"keyword\"),schemaPath:new Z.Name(\"schemaPath\"),params:new Z.Name(\"params\"),propertyName:new Z.Name(\"propertyName\"),message:new Z.Name(\"message\"),schema:new Z.Name(\"schema\"),parentSchema:new Z.Name(\"parentSchema\")};function av(e,t,n){let{createErrors:o}=e.it;if(o===!1)return Z._`{}`;return FI(e,t,n)}function FI(e,t,n={}){let{gen:o,it:r}=e,i=[BI(r,n),KI(e,n)];return WI(e,t,i),o.object(...i)}function BI({errorPath:e},{instancePath:t}){let n=t?Z.str`${e}${(0,Gi.getErrorPath)(t,Gi.Type.Str)}`:e;return[ae.default.instancePath,(0,Z.strConcat)(ae.default.instancePath,n)]}function KI({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let r=o?t:Z.str`${t}/${e}`;if(n)r=Z.str`${r}${(0,Gi.getErrorPath)(n,Gi.Type.Str)}`;return[Ct.schemaPath,r]}function WI(e,{params:t,message:n},o){let{keyword:r,data:i,schemaValue:a,it:s}=e,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:d}=s;if(o.push([Ct.keyword,r],[Ct.params,typeof t==\"function\"?t(e):t||Z._`{}`]),c.messages)o.push([Ct.message,typeof n==\"function\"?n(e):n]);if(c.verbose)o.push([Ct.schema,a],[Ct.parentSchema,Z._`${l}${d}`],[ae.default.data,i]);if(u)o.push([Ct.propertyName,u])}});var pv=_(function(lv){Object.defineProperty(lv,\"__esModule\",{value:!0});lv.boolOrEmptySchema=lv.topBoolOrEmptySchema=void 0;var e0=xn(),t0=j(),r0=ke(),n0={message:\"boolean schema is false\"};function o0(e){let{gen:t,schema:n,validateName:o}=e;if(n===!1)uv(e,!1);else if(typeof n==\"object\"&&n.$async===!0)t.return(r0.default.data);else t.assign(t0._`${o}.errors`,null),t.return(!0)}lv.topBoolOrEmptySchema=o0;function i0(e,t){let{gen:n,schema:o}=e;if(o===!1)n.var(t,!1),uv(e);else n.var(t,!0)}lv.boolOrEmptySchema=i0;function uv(e,t){let{gen:n,data:o}=e,r={gen:n,keyword:\"false schema\",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,e0.reportError)(r,n0,void 0,t)}});var Fp=_(function(mv){Object.defineProperty(mv,\"__esModule\",{value:!0});mv.getRules=mv.isJSONType=void 0;var s0=[\"string\",\"number\",\"integer\",\"boolean\",\"null\",\"object\",\"array\"],c0=new Set(s0);function u0(e){return typeof e==\"string\"&&c0.has(e)}mv.isJSONType=u0;function l0(){let e={number:{type:\"number\",rules:[]},string:{type:\"string\",rules:[]},array:{type:\"array\",rules:[]},object:{type:\"object\",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}mv.getRules=l0});var Bp=_(function(vv){Object.defineProperty(vv,\"__esModule\",{value:!0});vv.shouldUseRule=vv.shouldUseGroup=vv.schemaHasRulesForType=void 0;function p0({schema:e,self:t},n){let o=t.RULES.types[n];return o&&o!==!0&&hv(e,o)}vv.schemaHasRulesForType=p0;function hv(e,t){return t.rules.some((n)=>gv(e,n))}vv.shouldUseGroup=hv;function gv(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some((o)=>e[o]!==void 0))}vv.shouldUseRule=gv});var Sn=_(function(_v){Object.defineProperty(_v,\"__esModule\",{value:!0});_v.reportTypeError=_v.checkDataTypes=_v.checkDataType=_v.coerceAndCheckDataType=_v.getJSONTypes=_v.getSchemaTypes=_v.DataType=void 0;var h0=Fp(),g0=Bp(),v0=xn(),D=j(),$v=J(),br;(function(e){e[e.Correct=0]=\"Correct\",e[e.Wrong=1]=\"Wrong\"})(br||(_v.DataType=br={}));function y0(e){let t=wv(e.type);if(t.includes(\"null\")){if(e.nullable===!1)throw Error(\"type: null contradicts nullable: false\")}else{if(!t.length&&e.nullable!==void 0)throw Error('\"nullable\" cannot be used without \"type\"');if(e.nullable===!0)t.push(\"null\")}return t}_v.getSchemaTypes=y0;function wv(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(h0.isJSONType))return t;throw Error(\"type must be JSONType or JSONType[]: \"+t.join(\",\"))}_v.getJSONTypes=wv;function $0(e,t){let{gen:n,data:o,opts:r}=e,i=w0(t,r.coerceTypes),a=t.length>0&&!(i.length===0&&t.length===1&&(0,g0.schemaHasRulesForType)(e,t[0]));if(a){let s=Wp(t,o,r.strictNumbers,br.Wrong);n.if(s,()=>{if(i.length)b0(e,t,i);else Hp(e)})}return a}_v.coerceAndCheckDataType=$0;var bv=new Set([\"string\",\"number\",\"integer\",\"boolean\",\"null\"]);function w0(e,t){return t?e.filter((n)=>bv.has(n)||t===\"array\"&&n===\"array\"):[]}function b0(e,t,n){let{gen:o,data:r,opts:i}=e,a=o.let(\"dataType\",D._`typeof ${r}`),s=o.let(\"coerced\",D._`undefined`);if(i.coerceTypes===\"array\")o.if(D._`${a} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,()=>o.assign(r,D._`${r}[0]`).assign(a,D._`typeof ${r}`).if(Wp(t,r,i.strictNumbers),()=>o.assign(s,r)));o.if(D._`${s} !== undefined`);for(let u of n)if(bv.has(u)||u===\"array\"&&i.coerceTypes===\"array\")c(u);o.else(),Hp(e),o.endIf(),o.if(D._`${s} !== undefined`,()=>{o.assign(r,s),_0(e,s)});function c(u){switch(u){case\"string\":o.elseIf(D._`${a} == \"number\" || ${a} == \"boolean\"`).assign(s,D._`\"\" + ${r}`).elseIf(D._`${r} === null`).assign(s,D._`\"\"`);return;case\"number\":o.elseIf(D._`${a} == \"boolean\" || ${r} === null\n || (${a} == \"string\" && ${r} && ${r} == +${r})`).assign(s,D._`+${r}`);return;case\"integer\":o.elseIf(D._`${a} === \"boolean\" || ${r} === null\n || (${a} === \"string\" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(s,D._`+${r}`);return;case\"boolean\":o.elseIf(D._`${r} === \"false\" || ${r} === 0 || ${r} === null`).assign(s,!1).elseIf(D._`${r} === \"true\" || ${r} === 1`).assign(s,!0);return;case\"null\":o.elseIf(D._`${r} === \"\" || ${r} === 0 || ${r} === false`),o.assign(s,null);return;case\"array\":o.elseIf(D._`${a} === \"string\" || ${a} === \"number\"\n || ${a} === \"boolean\" || ${r} === null`).assign(s,D._`[${r}]`)}}}function _0({gen:e,parentData:t,parentDataProperty:n},o){e.if(D._`${t} !== undefined`,()=>e.assign(D._`${t}[${n}]`,o))}function Kp(e,t,n,o=br.Correct){let r=o===br.Correct?D.operators.EQ:D.operators.NEQ,i;switch(e){case\"null\":return D._`${t} ${r} null`;case\"array\":i=D._`Array.isArray(${t})`;break;case\"object\":i=D._`${t} && typeof ${t} == \"object\" && !Array.isArray(${t})`;break;case\"integer\":i=a(D._`!(${t} % 1) && !isNaN(${t})`);break;case\"number\":i=a();break;default:return D._`typeof ${t} ${r} ${e}`}return o===br.Correct?i:(0,D.not)(i);function a(s=D.nil){return(0,D.and)(D._`typeof ${t} == \"number\"`,s,n?D._`isFinite(${t})`:D.nil)}}_v.checkDataType=Kp;function Wp(e,t,n,o){if(e.length===1)return Kp(e[0],t,n,o);let r,i=(0,$v.toHash)(e);if(i.array&&i.object){let a=D._`typeof ${t} != \"object\"`;r=i.null?a:D._`!${t} || ${a}`,delete i.null,delete i.array,delete i.object}else r=D.nil;if(i.number)delete i.integer;for(let a in i)r=(0,D.and)(r,Kp(a,t,n,o));return r}_v.checkDataTypes=Wp;var k0={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==\"string\"?D._`{type: ${e}}`:D._`{type: ${t}}`};function Hp(e){let t=x0(e);(0,v0.reportError)(t,k0)}_v.reportTypeError=Hp;function x0(e){let{gen:t,data:n,schema:o}=e,r=(0,$v.schemaRefOrVal)(e,o,\"type\");return{gen:t,keyword:\"type\",data:n,schema:o.type,schemaCode:r,schemaValue:r,parentSchema:o,params:{},it:e}}});var Tv=_(function(Sv){Object.defineProperty(Sv,\"__esModule\",{value:!0});Sv.assignDefaults=void 0;var _r=j(),O0=J();function z0(e,t){let{properties:n,items:o}=e.schema;if(t===\"object\"&&n)for(let r in n)xv(e,r,n[r].default);else if(t===\"array\"&&Array.isArray(o))o.forEach((r,i)=>xv(e,i,r.default))}Sv.assignDefaults=z0;function xv(e,t,n){let{gen:o,compositeRule:r,data:i,opts:a}=e;if(n===void 0)return;let s=_r._`${i}${(0,_r.getProperty)(t)}`;if(r){(0,O0.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=_r._`${s} === undefined`;if(a.useDefaults===\"empty\")c=_r._`${c} || ${s} === null || ${s} === \"\"`;o.if(c,_r._`${s} = ${(0,_r.stringify)(n)}`)}});var xe=_(function(Ev){Object.defineProperty(Ev,\"__esModule\",{value:!0});Ev.validateUnion=Ev.validateArray=Ev.usePattern=Ev.callValidateCode=Ev.schemaProperties=Ev.allSchemaProperties=Ev.noPropertyInData=Ev.propertyInData=Ev.isOwnProperty=Ev.hasPropFunc=Ev.reportMissingProp=Ev.checkMissingProp=Ev.checkReportMissingProp=void 0;var W=j(),Xp=J(),st=ke(),A0=J();function R0(e,t){let{gen:n,data:o,it:r}=e;n.if(Qp(n,o,t,r.opts.ownProperties),()=>{e.setParams({missingProperty:W._`${t}`},!0),e.error()})}Ev.checkReportMissingProp=R0;function j0({gen:e,data:t,it:{opts:n}},o,r){return(0,W.or)(...o.map((i)=>(0,W.and)(Qp(e,t,i,n.ownProperties),W._`${r} = ${i}`)))}Ev.checkMissingProp=j0;function U0(e,t){e.setParams({missingProperty:t},!0),e.error()}Ev.reportMissingProp=U0;function Pv(e){return e.scopeValue(\"func\",{ref:Object.prototype.hasOwnProperty,code:W._`Object.prototype.hasOwnProperty`})}Ev.hasPropFunc=Pv;function Yp(e,t,n){return W._`${Pv(e)}.call(${t}, ${n})`}Ev.isOwnProperty=Yp;function D0(e,t,n,o){let r=W._`${t}${(0,W.getProperty)(n)} !== undefined`;return o?W._`${r} && ${Yp(e,t,n)}`:r}Ev.propertyInData=D0;function Qp(e,t,n,o){let r=W._`${t}${(0,W.getProperty)(n)} === undefined`;return o?(0,W.or)(r,(0,W.not)(Yp(e,t,n))):r}Ev.noPropertyInData=Qp;function Cv(e){return e?Object.keys(e).filter((t)=>t!==\"__proto__\"):[]}Ev.allSchemaProperties=Cv;function q0(e,t){return Cv(t).filter((n)=>!(0,Xp.alwaysValidSchema)(e,t[n]))}Ev.schemaProperties=q0;function N0({schemaCode:e,data:t,it:{gen:n,topSchemaRef:o,schemaPath:r,errorPath:i},it:a},s,c,u){let l=u?W._`${e}, ${t}, ${o}${r}`:t,d=[[st.default.instancePath,(0,W.strConcat)(st.default.instancePath,i)],[st.default.parentData,a.parentData],[st.default.parentDataProperty,a.parentDataProperty],[st.default.rootData,st.default.rootData]];if(a.opts.dynamicRef)d.push([st.default.dynamicAnchors,st.default.dynamicAnchors]);let f=W._`${l}, ${n.object(...d)}`;return c!==W.nil?W._`${s}.call(${c}, ${f})`:W._`${s}(${f})`}Ev.callValidateCode=N0;var J0=W._`new RegExp`;function G0({gen:e,it:{opts:t}},n){let o=t.unicodeRegExp?\"u\":\"\",{regExp:r}=t.code,i=r(n,o);return e.scopeValue(\"pattern\",{key:i.toString(),ref:i,code:W._`${r.code===\"new RegExp\"?J0:(0,A0.useFunc)(e,r)}(${n}, ${o})`})}Ev.usePattern=G0;function M0(e){let{gen:t,data:n,keyword:o,it:r}=e,i=t.name(\"valid\");if(r.allErrors){let s=t.let(\"valid\",!0);return a(()=>t.assign(s,!1)),s}return t.var(i,!0),a(()=>t.break()),i;function a(s){let c=t.const(\"len\",W._`${n}.length`);t.forRange(\"i\",0,c,(u)=>{e.subschema({keyword:o,dataProp:u,dataPropType:Xp.Type.Num},i),t.if((0,W.not)(i),s)})}}Ev.validateArray=M0;function Z0(e){let{gen:t,schema:n,keyword:o,it:r}=e;if(!Array.isArray(n))throw Error(\"ajv implementation error\");if(n.some((c)=>(0,Xp.alwaysValidSchema)(r,c))&&!r.opts.unevaluated)return;let a=t.let(\"valid\",!1),s=t.name(\"_valid\");t.block(()=>n.forEach((c,u)=>{let l=e.subschema({keyword:o,schemaProp:u,compositeRule:!0},s);if(t.assign(a,W._`${a} || ${s}`),!e.mergeValidEvaluated(l,s))t.if((0,W.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ev.validateUnion=Z0});var Uv=_(function(Rv){Object.defineProperty(Rv,\"__esModule\",{value:!0});Rv.validateKeywordUsage=Rv.validSchemaType=Rv.funcKeywordCode=Rv.macroKeywordCode=void 0;var se=j(),Et=ke(),rT=xe(),nT=xn();function oT(e,t){let{gen:n,keyword:o,schema:r,parentSchema:i,it:a}=e,s=t.macro.call(a.self,r,i,a),c=Av(n,o,s);if(a.opts.validateSchema!==!1)a.self.validateSchema(s,!0);let u=n.name(\"valid\");e.subschema({schema:s,schemaPath:se.nil,errSchemaPath:`${a.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}Rv.macroKeywordCode=oT;function iT(e,t){var n;let{gen:o,keyword:r,schema:i,parentSchema:a,$data:s,it:c}=e;sT(c,t);let u=!s&&t.compile?t.compile.call(c.self,i,a,c):t.validate,l=Av(o,r,u),d=o.let(\"valid\");e.block$data(d,f),e.ok((n=t.valid)!==null&&n!==void 0?n:d);function f(){if(t.errors===!1){if(y(),t.modifying)zv(e);x(()=>e.error())}else{let T=t.async?m():v();if(t.modifying)zv(e);x(()=>aT(e,T))}}function m(){let T=o.let(\"ruleErrs\",null);return o.try(()=>y(se._`await `),(G)=>o.assign(d,!1).if(se._`${G} instanceof ${c.ValidationError}`,()=>o.assign(T,se._`${G}.errors`),()=>o.throw(G))),T}function v(){let T=se._`${l}.errors`;return o.assign(T,null),y(se.nil),T}function y(T=t.async?se._`await `:se.nil){let G=c.opts.passContext?Et.default.this:Et.default.self,z=!((\"compile\"in t)&&!s||t.schema===!1);o.assign(d,se._`${T}${(0,rT.callValidateCode)(e,l,G,z)}`,t.modifying)}function x(T){var G;o.if((0,se.not)((G=t.valid)!==null&&G!==void 0?G:d),T)}}Rv.funcKeywordCode=iT;function zv(e){let{gen:t,data:n,it:o}=e;t.if(o.parentData,()=>t.assign(n,se._`${o.parentData}[${o.parentDataProperty}]`))}function aT(e,t){let{gen:n}=e;n.if(se._`Array.isArray(${t})`,()=>{n.assign(Et.default.vErrors,se._`${Et.default.vErrors} === null ? ${t} : ${Et.default.vErrors}.concat(${t})`).assign(Et.default.errors,se._`${Et.default.vErrors}.length`),(0,nT.extendErrors)(e)},()=>e.error())}function sT({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(\"async keyword in sync schema\")}function Av(e,t,n){if(n===void 0)throw Error(`keyword \"${t}\" failed to compile`);return e.scopeValue(\"keyword\",typeof n==\"function\"?{ref:n}:{ref:n,code:(0,se.stringify)(n)})}function cT(e,t,n=!1){return!t.length||t.some((o)=>o===\"array\"?Array.isArray(e):o===\"object\"?e&&typeof e==\"object\"&&!Array.isArray(e):typeof e==o||n&&typeof e>\"u\")}Rv.validSchemaType=cT;function uT({schema:e,opts:t,self:n,errSchemaPath:o},r,i){if(Array.isArray(r.keyword)?!r.keyword.includes(i):r.keyword!==i)throw Error(\"ajv implementation error\");let a=r.dependencies;if(a===null||a===void 0?void 0:a.some((s)=>!Object.prototype.hasOwnProperty.call(e,s)))throw Error(`parent schema must have dependencies of ${i}: ${a.join(\",\")}`);if(r.validateSchema){if(!r.validateSchema(e[i])){let c=`keyword \"${i}\" value is invalid at path \"${o}\": `+n.errorsText(r.validateSchema.errors);if(t.validateSchema===\"log\")n.logger.error(c);else throw Error(c)}}}Rv.validateKeywordUsage=uT});var Jv=_(function(qv){Object.defineProperty(qv,\"__esModule\",{value:!0});qv.extendSubschemaMode=qv.extendSubschemaData=qv.getSubschema=void 0;var De=j(),Dv=J();function mT(e,{keyword:t,schemaProp:n,schema:o,schemaPath:r,errSchemaPath:i,topSchemaRef:a}){if(t!==void 0&&o!==void 0)throw Error('both \"keyword\" and \"schema\" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return n===void 0?{schema:s,schemaPath:De._`${e.schemaPath}${(0,De.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:De._`${e.schemaPath}${(0,De.getProperty)(t)}${(0,De.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Dv.escapeFragment)(n)}`}}if(o!==void 0){if(r===void 0||i===void 0||a===void 0)throw Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"');return{schema:o,schemaPath:r,topSchemaRef:a,errSchemaPath:i}}throw Error('either \"keyword\" or \"schema\" must be passed')}qv.getSubschema=mT;function fT(e,t,{dataProp:n,dataPropType:o,data:r,dataTypes:i,propertyName:a}){if(r!==void 0&&n!==void 0)throw Error('both \"data\" and \"dataProp\" passed, only one allowed');let{gen:s}=t;if(n!==void 0){let{errorPath:u,dataPathArr:l,opts:d}=t,f=s.let(\"data\",De._`${t.data}${(0,De.getProperty)(n)}`,!0);c(f),e.errorPath=De.str`${u}${(0,Dv.getErrorPath)(n,o,d.jsPropertySyntax)}`,e.parentDataProperty=De._`${n}`,e.dataPathArr=[...l,e.parentDataProperty]}if(r!==void 0){let u=r instanceof De.Name?r:s.let(\"data\",r,!0);if(c(u),a!==void 0)e.propertyName=a}if(i)e.dataTypes=i;function c(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}qv.extendSubschemaData=fT;function hT(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:o,createErrors:r,allErrors:i}){if(o!==void 0)e.compositeRule=o;if(r!==void 0)e.createErrors=r;if(i!==void 0)e.allErrors=i;e.jtdDiscriminator=t,e.jtdMetadata=n}qv.extendSubschemaMode=hT});var em=_(function(sq,Gv){Gv.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==\"object\"&&typeof n==\"object\"){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}});var Zv=_(function(cq,Mv){var ct=Mv.exports=function(e,t,n){if(typeof t==\"function\")n=t,t={};n=t.cb||n;var o=typeof n==\"function\"?n:n.pre||function(){},r=n.post||function(){};Mi(t,o,r,e,\"\",e)};ct.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ct.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ct.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ct.skipKeywords={default:!0,enum:!0,const:!0,required:!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};function Mi(e,t,n,o,r,i,a,s,c,u){if(o&&typeof o==\"object\"&&!Array.isArray(o)){t(o,r,i,a,s,c,u);for(var l in o){var d=o[l];if(Array.isArray(d)){if(l in ct.arrayKeywords)for(var f=0;f<d.length;f++)Mi(e,t,n,d[f],r+\"/\"+l+\"/\"+f,i,r,l,o,f)}else if(l in ct.propsKeywords){if(d&&typeof d==\"object\")for(var m in d)Mi(e,t,n,d[m],r+\"/\"+l+\"/\"+yT(m),i,r,l,o,m)}else if(l in ct.keywords||e.allKeys&&!(l in ct.skipKeywords))Mi(e,t,n,d,r+\"/\"+l,i,r,l,o)}n(o,r,i,a,s,c,u)}}function yT(e){return e.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")}});var In=_(function(Bv){Object.defineProperty(Bv,\"__esModule\",{value:!0});Bv.getSchemaRefs=Bv.resolveUrl=Bv.normalizeId=Bv._getFullPath=Bv.getFullPath=Bv.inlineRef=void 0;var $T=J(),wT=em(),bT=Zv(),_T=new Set([\"type\",\"format\",\"pattern\",\"maxLength\",\"minLength\",\"maxProperties\",\"minProperties\",\"maxItems\",\"minItems\",\"maximum\",\"minimum\",\"uniqueItems\",\"multipleOf\",\"required\",\"enum\",\"const\"]);function kT(e,t=!0){if(typeof e==\"boolean\")return!0;if(t===!0)return!tm(e);if(!t)return!1;return Lv(e)<=t}Bv.inlineRef=kT;var xT=new Set([\"$ref\",\"$recursiveRef\",\"$recursiveAnchor\",\"$dynamicRef\",\"$dynamicAnchor\"]);function tm(e){for(let t in e){if(xT.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(tm))return!0;if(typeof n==\"object\"&&tm(n))return!0}return!1}function Lv(e){let t=0;for(let n in e){if(n===\"$ref\")return 1/0;if(t++,_T.has(n))continue;if(typeof e[n]==\"object\")(0,$T.eachItem)(e[n],(o)=>t+=Lv(o));if(t===1/0)return 1/0}return t}function Vv(e,t=\"\",n){if(n!==!1)t=kr(t);let o=e.parse(t);return Fv(e,o)}Bv.getFullPath=Vv;function Fv(e,t){return e.serialize(t).split(\"#\")[0]+\"#\"}Bv._getFullPath=Fv;var ST=/#\\/?$/;function kr(e){return e?e.replace(ST,\"\"):\"\"}Bv.normalizeId=kr;function IT(e,t,n){return n=kr(n),e.resolve(t,n)}Bv.resolveUrl=IT;var TT=/^[a-z_][-a-z0-9._]*$/i;function PT(e,t){if(typeof e==\"boolean\")return{};let{schemaId:n,uriResolver:o}=this.opts,r=kr(e[n]||t),i={\"\":r},a=Vv(o,r,!1),s={},c=new Set;return bT(e,{allKeys:!0},(d,f,m,v)=>{if(v===void 0)return;let y=a+f,x=i[v];if(typeof d[n]==\"string\")x=T.call(this,d[n]);G.call(this,d.$anchor),G.call(this,d.$dynamicAnchor),i[f]=x;function T(z){let O=this.opts.uriResolver.resolve;if(z=kr(x?O(x,z):z),c.has(z))throw l(z);c.add(z);let P=this.refs[z];if(typeof P==\"string\")P=this.refs[P];if(typeof P==\"object\")u(d,P.schema,z);else if(z!==kr(y))if(z[0]===\"#\")u(d,s[z],z),s[z]=d;else this.refs[z]=y;return z}function G(z){if(typeof z==\"string\"){if(!TT.test(z))throw Error(`invalid anchor \"${z}\"`);T.call(this,`#${z}`)}}}),s;function u(d,f,m){if(f!==void 0&&!wT(d,f))throw l(m)}function l(d){return Error(`reference \"${d}\" resolves to more than one schema`)}}Bv.getSchemaRefs=PT});var Ot=_(function(uy){Object.defineProperty(uy,\"__esModule\",{value:!0});uy.getData=uy.KeywordCxt=uy.validateFunctionCode=void 0;var Qv=pv(),Wv=Sn(),nm=Bp(),Zi=Sn(),RT=Tv(),Pn=Uv(),rm=Jv(),C=j(),R=ke(),jT=In(),Le=J(),Tn=xn();function UT(e){if(ry(e)){if(ny(e),ty(e)){NT(e);return}}ey(e,()=>(0,Qv.topBoolOrEmptySchema)(e))}uy.validateFunctionCode=UT;function ey({gen:e,validateName:t,schema:n,schemaEnv:o,opts:r},i){if(r.code.es5)e.func(t,C._`${R.default.data}, ${R.default.valCxt}`,o.$async,()=>{e.code(C._`\"use strict\"; ${Hv(n,r)}`),qT(e,r),e.code(i)});else e.func(t,C._`${R.default.data}, ${DT(r)}`,o.$async,()=>e.code(Hv(n,r)).code(i))}function DT(e){return C._`{${R.default.instancePath}=\"\", ${R.default.parentData}, ${R.default.parentDataProperty}, ${R.default.rootData}=${R.default.data}${e.dynamicRef?C._`, ${R.default.dynamicAnchors}={}`:C.nil}}={}`}function qT(e,t){e.if(R.default.valCxt,()=>{if(e.var(R.default.instancePath,C._`${R.default.valCxt}.${R.default.instancePath}`),e.var(R.default.parentData,C._`${R.default.valCxt}.${R.default.parentData}`),e.var(R.default.parentDataProperty,C._`${R.default.valCxt}.${R.default.parentDataProperty}`),e.var(R.default.rootData,C._`${R.default.valCxt}.${R.default.rootData}`),t.dynamicRef)e.var(R.default.dynamicAnchors,C._`${R.default.valCxt}.${R.default.dynamicAnchors}`)},()=>{if(e.var(R.default.instancePath,C._`\"\"`),e.var(R.default.parentData,C._`undefined`),e.var(R.default.parentDataProperty,C._`undefined`),e.var(R.default.rootData,R.default.data),t.dynamicRef)e.var(R.default.dynamicAnchors,C._`{}`)})}function NT(e){let{schema:t,opts:n,gen:o}=e;ey(e,()=>{if(n.$comment&&t.$comment)iy(e);if(LT(e),o.let(R.default.vErrors,null),o.let(R.default.errors,0),n.unevaluated)JT(e);oy(e),BT(e)});return}function JT(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(\"evaluated\",C._`${n}.evaluated`),t.if(C._`${e.evaluated}.dynamicProps`,()=>t.assign(C._`${e.evaluated}.props`,C._`undefined`)),t.if(C._`${e.evaluated}.dynamicItems`,()=>t.assign(C._`${e.evaluated}.items`,C._`undefined`))}function Hv(e,t){let n=typeof e==\"object\"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?C._`/*# sourceURL=${n} */`:C.nil}function GT(e,t){if(ry(e)){if(ny(e),ty(e)){MT(e,t);return}}(0,Qv.boolOrEmptySchema)(e,t)}function ty({schema:e,self:t}){if(typeof e==\"boolean\")return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function ry(e){return typeof e.schema!=\"boolean\"}function MT(e,t){let{schema:n,gen:o,opts:r}=e;if(r.$comment&&n.$comment)iy(e);VT(e),FT(e);let i=o.const(\"_errs\",R.default.errors);oy(e,i),o.var(t,C._`${i} === ${R.default.errors}`)}function ny(e){(0,Le.checkUnknownRules)(e),ZT(e)}function oy(e,t){if(e.opts.jtd)return Xv(e,[],!1,t);let n=(0,Wv.getSchemaTypes)(e.schema),o=(0,Wv.coerceAndCheckDataType)(e,n);Xv(e,n,!o,t)}function ZT(e){let{schema:t,errSchemaPath:n,opts:o,self:r}=e;if(t.$ref&&o.ignoreKeywordsWithRef&&(0,Le.schemaHasRulesButRef)(t,r.RULES))r.logger.warn(`$ref: keywords ignored in schema at path \"${n}\"`)}function LT(e){let{schema:t,opts:n}=e;if(t.default!==void 0&&n.useDefaults&&n.strictSchema)(0,Le.checkStrictMode)(e,\"default is ignored in the schema root\")}function VT(e){let t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,jT.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function FT(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(\"async schema in sync schema\")}function iy({gen:e,schemaEnv:t,schema:n,errSchemaPath:o,opts:r}){let i=n.$comment;if(r.$comment===!0)e.code(C._`${R.default.self}.logger.log(${i})`);else if(typeof r.$comment==\"function\"){let a=C.str`${o}/$comment`,s=e.scopeValue(\"root\",{ref:t.root});e.code(C._`${R.default.self}.opts.$comment(${i}, ${a}, ${s}.schema)`)}}function BT(e){let{gen:t,schemaEnv:n,validateName:o,ValidationError:r,opts:i}=e;if(n.$async)t.if(C._`${R.default.errors} === 0`,()=>t.return(R.default.data),()=>t.throw(C._`new ${r}(${R.default.vErrors})`));else{if(t.assign(C._`${o}.errors`,R.default.vErrors),i.unevaluated)KT(e);t.return(C._`${R.default.errors} === 0`)}}function KT({gen:e,evaluated:t,props:n,items:o}){if(n instanceof C.Name)e.assign(C._`${t}.props`,n);if(o instanceof C.Name)e.assign(C._`${t}.items`,o)}function Xv(e,t,n,o){let{gen:r,schema:i,data:a,allErrors:s,opts:c,self:u}=e,{RULES:l}=u;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,Le.schemaHasRulesButRef)(i,l))){r.block(()=>sy(e,\"$ref\",l.all.$ref.definition));return}if(!c.jtd)WT(e,t);r.block(()=>{for(let f of l.rules)d(f);d(l.post)});function d(f){if(!(0,nm.shouldUseGroup)(i,f))return;if(f.type){if(r.if((0,Zi.checkDataType)(f.type,a,c.strictNumbers)),Yv(e,f),t.length===1&&t[0]===f.type&&n)r.else(),(0,Zi.reportTypeError)(e);r.endIf()}else Yv(e,f);if(!s)r.if(C._`${R.default.errors} === ${o||0}`)}}function Yv(e,t){let{gen:n,schema:o,opts:{useDefaults:r}}=e;if(r)(0,RT.assignDefaults)(e,t.type);n.block(()=>{for(let i of t.rules)if((0,nm.shouldUseRule)(o,i))sy(e,i.keyword,i.definition,t.type)})}function WT(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;if(HT(e,t),!e.opts.allowUnionTypes)XT(e,t);YT(e,e.dataTypes)}function HT(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((n)=>{if(!ay(e.dataTypes,n))om(e,`type \"${n}\" not allowed by context \"${e.dataTypes.join(\",\")}\"`)}),eP(e,t)}function XT(e,t){if(t.length>1&&!(t.length===2&&t.includes(\"null\")))om(e,\"use allowUnionTypes to allow union type keyword\")}function YT(e,t){let n=e.self.RULES.all;for(let o in n){let r=n[o];if(typeof r==\"object\"&&(0,nm.shouldUseRule)(e.schema,r)){let{type:i}=r.definition;if(i.length&&!i.some((a)=>QT(t,a)))om(e,`missing type \"${i.join(\",\")}\" for keyword \"${o}\"`)}}}function QT(e,t){return e.includes(t)||t===\"number\"&&e.includes(\"integer\")}function ay(e,t){return e.includes(t)||t===\"integer\"&&e.includes(\"number\")}function eP(e,t){let n=[];for(let o of e.dataTypes)if(ay(t,o))n.push(o);else if(t.includes(\"integer\")&&o===\"number\")n.push(\"integer\");e.dataTypes=n}function om(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at \"${n}\" (strictTypes)`,(0,Le.checkStrictMode)(e,t,e.opts.strictTypes)}class im{constructor(e,t,n){if((0,Pn.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Le.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(\"vSchema\",cy(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Pn.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);if(\"code\"in t?t.trackErrors:t.errors!==!1)this.errsCount=e.gen.const(\"_errs\",R.default.errors)}result(e,t,n){this.failResult((0,C.not)(e),t,n)}failResult(e,t,n){if(this.gen.if(e),n)n();else this.error();if(t){if(this.gen.else(),t(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(e,t){this.failResult((0,C.not)(e),void 0,t)}fail(e){if(e===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(e),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail(C._`${t} !== undefined && (${(0,C.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?Tn.reportExtraError:Tn.reportError)(this,this.def.error,t)}$dataError(){(0,Tn.reportError)(this,this.def.$dataError||Tn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add \"trackErrors\" to keyword definition');(0,Tn.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,n=C.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=C.nil,t=C.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:r,def:i}=this;if(n.if((0,C.or)(C._`${o} === undefined`,t)),e!==C.nil)n.assign(e,!0);if(r.length||i.validateSchema){if(n.elseIf(this.invalid$data()),this.$dataError(),e!==C.nil)n.assign(e,!1)}n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:o,it:r}=this;return(0,C.or)(i(),a());function i(){if(n.length){if(!(t instanceof C.Name))throw Error(\"ajv implementation error\");let s=Array.isArray(n)?n:[n];return C._`${(0,Zi.checkDataTypes)(s,t,r.opts.strictNumbers,Zi.DataType.Wrong)}`}return C.nil}function a(){if(o.validateSchema){let s=e.scopeValue(\"validate$data\",{ref:o.validateSchema});return C._`!${s}(${t})`}return C.nil}}subschema(e,t){let n=(0,rm.getSubschema)(this.it,e);(0,rm.extendSubschemaData)(n,this.it,e),(0,rm.extendSubschemaMode)(n,e);let o={...this.it,...n,items:void 0,props:void 0};return GT(o,t),o}mergeEvaluated(e,t){let{it:n,gen:o}=this;if(!n.opts.unevaluated)return;if(n.props!==!0&&e.props!==void 0)n.props=Le.mergeEvaluated.props(o,e.props,n.props,t);if(n.items!==!0&&e.items!==void 0)n.items=Le.mergeEvaluated.items(o,e.items,n.items,t)}mergeValidEvaluated(e,t){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(t,()=>this.mergeEvaluated(e,C.Name)),!0}}uy.KeywordCxt=im;function sy(e,t,n,o){let r=new im(e,n,t);if(\"code\"in n)n.code(r,o);else if(r.$data&&n.validate)(0,Pn.funcKeywordCode)(r,n);else if(\"macro\"in n)(0,Pn.macroKeywordCode)(r,n);else if(n.compile||n.validate)(0,Pn.funcKeywordCode)(r,n)}var tP=/^\\/(?:[^~]|~0|~1)*$/,rP=/^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/;function cy(e,{dataLevel:t,dataNames:n,dataPathArr:o}){let r,i;if(e===\"\")return R.default.rootData;if(e[0]===\"/\"){if(!tP.test(e))throw Error(`Invalid JSON-pointer: ${e}`);r=e,i=R.default.rootData}else{let u=rP.exec(e);if(!u)throw Error(`Invalid JSON-pointer: ${e}`);let l=+u[1];if(r=u[2],r===\"#\"){if(l>=t)throw Error(c(\"property/index\",l));return o[t-l]}if(l>t)throw Error(c(\"data\",l));if(i=n[t-l],!r)return i}let a=i,s=r.split(\"/\");for(let u of s)if(u)i=C._`${i}${(0,C.getProperty)((0,Le.unescapeJsonPointer)(u))}`,a=C._`${a} && ${i}`;return a;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${t}`}}uy.getData=cy});var xr=_(function(py){Object.defineProperty(py,\"__esModule\",{value:!0});class dy extends Error{constructor(e){super(\"validation failed\");this.errors=e,this.ajv=this.validation=!0}}py.default=dy});var zt=_(function(fy){Object.defineProperty(fy,\"__esModule\",{value:!0});var am=In();class my extends Error{constructor(e,t,n,o){super(o||`can't resolve reference ${n} from id ${t}`);this.missingRef=(0,am.resolveUrl)(e,t,n),this.missingSchema=(0,am.normalizeId)((0,am.getFullPath)(e,this.missingRef))}}fy.default=my});var En=_(function(vy){Object.defineProperty(vy,\"__esModule\",{value:!0});vy.resolveSchema=vy.getCompilingSchema=vy.resolveRef=vy.compileSchema=vy.SchemaEnv=void 0;var Ce=j(),sP=xr(),At=ke(),Ee=In(),hy=J(),cP=Ot();class Cn{constructor(e){var t;this.refs={},this.dynamicAnchors={};let n;if(typeof e.schema==\"object\")n=e.schema;this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,Ee.normalizeId)(n===null||n===void 0?void 0:n[e.schemaId||\"$id\"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n===null||n===void 0?void 0:n.$async,this.refs={}}}vy.SchemaEnv=Cn;function cm(e){let t=gy.call(this,e);if(t)return t;let n=(0,Ee.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:r}=this.opts.code,{ownProperties:i}=this.opts,a=new Ce.CodeGen(this.scope,{es5:o,lines:r,ownProperties:i}),s;if(e.$async)s=a.scopeValue(\"Error\",{ref:sP.default,code:Ce._`require(\"ajv/dist/runtime/validation_error\").default`});let c=a.scopeName(\"validate\");e.validateName=c;let u={gen:a,allErrors:this.opts.allErrors,data:At.default.data,parentData:At.default.parentData,parentDataProperty:At.default.parentDataProperty,dataNames:[At.default.data],dataPathArr:[Ce.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue(\"schema\",this.opts.code.source===!0?{ref:e.schema,code:(0,Ce.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ce.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?\"\":\"#\"),errorPath:Ce._`\"\"`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,cP.validateFunctionCode)(u),a.optimize(this.opts.code.optimize);let d=a.toString();if(l=`${a.scopeRefs(At.default.scope)}return ${d}`,this.opts.code.process)l=this.opts.code.process(l,e);let m=Function(`${At.default.self}`,`${At.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async)m.$async=!0;if(this.opts.code.source===!0)m.source={validateName:c,validateCode:d,scopeValues:a._values};if(this.opts.unevaluated){let{props:v,items:y}=u;if(m.evaluated={props:v instanceof Ce.Name?void 0:v,items:y instanceof Ce.Name?void 0:y,dynamicProps:v instanceof Ce.Name,dynamicItems:y instanceof Ce.Name},m.source)m.source.evaluated=(0,Ce.stringify)(m.evaluated)}return e.validate=m,e}catch(d){if(delete e.validate,delete e.validateName,l)this.logger.error(\"Error compiling schema, function code:\",l);throw d}finally{this._compilations.delete(e)}}vy.compileSchema=cm;function uP(e,t,n){var o;n=(0,Ee.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let i=pP.call(this,e,n);if(i===void 0){let a=(o=e.localRefs)===null||o===void 0?void 0:o[n],{schemaId:s}=this.opts;if(a)i=new Cn({schema:a,schemaId:s,root:e,baseId:t})}if(i===void 0)return;return e.refs[n]=lP.call(this,i)}vy.resolveRef=uP;function lP(e){if((0,Ee.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:cm.call(this,e)}function gy(e){for(let t of this._compilations)if(dP(t,e))return t}vy.getCompilingSchema=gy;function dP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function pP(e,t){let n;while(typeof(n=this.refs[t])==\"string\")t=n;return n||this.schemas[t]||Li.call(this,e,t)}function Li(e,t){let n=this.opts.uriResolver.parse(t),o=(0,Ee._getFullPath)(this.opts.uriResolver,n),r=(0,Ee.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===r)return sm.call(this,n,e);let i=(0,Ee.normalizeId)(o),a=this.refs[i]||this.schemas[i];if(typeof a==\"string\"){let s=Li.call(this,e,a);if(typeof(s===null||s===void 0?void 0:s.schema)!==\"object\")return;return sm.call(this,n,s)}if(typeof(a===null||a===void 0?void 0:a.schema)!==\"object\")return;if(!a.validate)cm.call(this,a);if(i===(0,Ee.normalizeId)(t)){let{schema:s}=a,{schemaId:c}=this.opts,u=s[c];if(u)r=(0,Ee.resolveUrl)(this.opts.uriResolver,r,u);return new Cn({schema:s,schemaId:c,root:e,baseId:r})}return sm.call(this,n,a)}vy.resolveSchema=Li;var mP=new Set([\"properties\",\"patternProperties\",\"enum\",\"dependencies\",\"definitions\"]);function sm(e,{baseId:t,schema:n,root:o}){var r;if(((r=e.fragment)===null||r===void 0?void 0:r[0])!==\"/\")return;for(let s of e.fragment.slice(1).split(\"/\")){if(typeof n===\"boolean\")return;let c=n[(0,hy.unescapeFragment)(s)];if(c===void 0)return;n=c;let u=typeof n===\"object\"&&n[this.opts.schemaId];if(!mP.has(s)&&u)t=(0,Ee.resolveUrl)(this.opts.uriResolver,t,u)}let i;if(typeof n!=\"boolean\"&&n.$ref&&!(0,hy.schemaHasRulesButRef)(n,this.RULES)){let s=(0,Ee.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=Li.call(this,o,s)}let{schemaId:a}=this.opts;if(i=i||new Cn({schema:n,schemaId:a,root:o,baseId:t}),i.schema!==i.root.schema)return i;return}});var $y=_(function(fq,yP){yP.exports={$id:\"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",description:\"Meta-schema for $data reference (JSON AnySchema extension proposal)\",type:\"object\",required:[\"$data\"],properties:{$data:{type:\"string\",anyOf:[{format:\"relative-json-pointer\"},{format:\"json-pointer\"}]}},additionalProperties:!1}});var dm=_(function(hq,Sy){var $P=RegExp.prototype.test.bind(/^[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}$/iu),by=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)$/u),um=RegExp.prototype.test.bind(/^[\\da-f]{2}$/iu),_y=RegExp.prototype.test.bind(/^[\\da-z\\-._~]$/iu),wP=RegExp.prototype.test.bind(/^[\\da-z\\-._~!$&'()*+,;=:@/]$/iu);function lm(e){let t=\"\",n=0,o=0;for(o=0;o<e.length;o++){if(n=e[o].charCodeAt(0),n===48)continue;if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return\"\";t+=e[o];break}for(o+=1;o<e.length;o++){if(n=e[o].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return\"\";t+=e[o]}return t}var bP=RegExp.prototype.test.bind(/[^!\"$&'()*+,\\-.;=_`a-z{}~]/u);function wy(e){return e.length=0,!0}function _P(e,t,n){if(e.length){let o=lm(e);if(o!==\"\")t.push(o);else return n.error=!0,!1;e.length=0}return!0}function kP(e){let t=0,n={error:!1,address:\"\",zone:\"\"},o=[],r=[],i=!1,a=!1,s=_P;for(let c=0;c<e.length;c++){let u=e[c];if(u===\"[\"||u===\"]\")continue;if(u===\":\"){if(i===!0)a=!0;if(!s(r,o,n))break;if(++t>7){n.error=!0;break}if(c>0&&e[c-1]===\":\")i=!0;o.push(\":\");continue}else if(u===\"%\"){if(!s(r,o,n))break;s=wy}else{r.push(u);continue}}if(r.length)if(s===wy)n.zone=r.join(\"\");else if(a)o.push(r.join(\"\"));else o.push(lm(r));return n.address=o.join(\"\"),n}function ky(e){if(xP(e,\":\")<2)return{host:e,isIPV6:!1};let t=kP(e);if(!t.error){let{address:n,address:o}=t;if(t.zone)n+=\"%\"+t.zone,o+=\"%25\"+t.zone;return{host:n,isIPV6:!0,escapedHost:o}}else return{host:e,isIPV6:!1}}function xP(e,t){let n=0;for(let o=0;o<e.length;o++)if(e[o]===t)n++;return n}function SP(e){let t=e,n=[],o=-1,r=0;while(r=t.length){if(r===1)if(t===\".\")break;else if(t===\"/\"){n.push(\"/\");break}else{n.push(t);break}else if(r===2){if(t[0]===\".\"){if(t[1]===\".\")break;else if(t[1]===\"/\"){t=t.slice(2);continue}}else if(t[0]===\"/\"){if(t[1]===\".\"||t[1]===\"/\"){n.push(\"/\");break}}}else if(r===3){if(t===\"/..\"){if(n.length!==0)n.pop();n.push(\"/\");break}}if(t[0]===\".\"){if(t[1]===\".\"){if(t[2]===\"/\"){t=t.slice(3);continue}}else if(t[1]===\"/\"){t=t.slice(2);continue}}else if(t[0]===\"/\"){if(t[1]===\".\"){if(t[2]===\"/\"){t=t.slice(2);continue}else if(t[2]===\".\"){if(t[3]===\"/\"){if(t=t.slice(3),n.length!==0)n.pop();continue}}}}if((o=t.indexOf(\"/\",1))===-1){n.push(t);break}else n.push(t.slice(0,o)),t=t.slice(o)}return n.join(\"\")}var IP={\"@\":\"%40\",\"/\":\"%2F\",\"?\":\"%3F\",\"#\":\"%23\",\":\":\"%3A\"},TP=/[@/?#:]/g,PP=/[@/?#]/g;function xy(e,t){let n=t?PP:TP;return n.lastIndex=0,e.replace(n,(o)=>IP[o])}function CP(e,t=!1){if(e.indexOf(\"%\")===-1)return e;let n=\"\";for(let o=0;o<e.length;o++){if(e[o]===\"%\"&&o+2<e.length){let r=e.slice(o+1,o+3);if(um(r)){let i=r.toUpperCase(),a=String.fromCharCode(parseInt(i,16));if(t&&_y(a))n+=a;else n+=\"%\"+i;o+=2;continue}}n+=e[o]}return n}function EP(e){let t=\"\";for(let n=0;n<e.length;n++){if(e[n]===\"%\"&&n+2<e.length){let o=e.slice(n+1,n+3);if(um(o)){let r=o.toUpperCase(),i=String.fromCharCode(parseInt(r,16));if(i!==\".\"&&_y(i))t+=i;else t+=\"%\"+r;n+=2;continue}}if(wP(e[n]))t+=e[n];else t+=escape(e[n])}return t}function OP(e){let t=\"\";for(let n=0;n<e.length;n++){if(e[n]===\"%\"&&n+2<e.length){let o=e.slice(n+1,n+3);if(um(o)){t+=\"%\"+o.toUpperCase(),n+=2;continue}}t+=escape(e[n])}return t}function zP(e){let t=[];if(e.userinfo!==void 0)t.push(e.userinfo),t.push(\"@\");if(e.host!==void 0){let n=unescape(e.host);if(!by(n)){let o=ky(n);if(o.isIPV6===!0)n=`[${o.escapedHost}]`;else n=xy(n,!1)}t.push(n)}if(typeof e.port===\"number\"||typeof e.port===\"string\")t.push(\":\"),t.push(String(e.port));return t.length?t.join(\"\"):void 0}Sy.exports={nonSimpleDomain:bP,recomposeAuthority:zP,reescapeHostDelimiters:xy,normalizePercentEncoding:CP,normalizePathEncoding:EP,escapePreservingEscapes:OP,removeDotSegments:SP,isIPv4:by,isUUID:$P,normalizeIPv6:ky,stringArrayToHexStripped:lm}});var Ey=_(function(gq,Cy){var{isUUID:AP}=dm(),RP=/([\\da-z][\\d\\-a-z]{0,31}):((?:[\\w!$'()*+,\\-.:;=@]|%[\\da-f]{2})+)/iu,jP=[\"http\",\"https\",\"ws\",\"wss\",\"urn\",\"urn:uuid\"];function UP(e){return jP.indexOf(e)!==-1}function pm(e){if(e.secure===!0)return!0;else if(e.secure===!1)return!1;else if(e.scheme)return e.scheme.length===3&&(e.scheme[0]===\"w\"||e.scheme[0]===\"W\")&&(e.scheme[1]===\"s\"||e.scheme[1]===\"S\")&&(e.scheme[2]===\"s\"||e.scheme[2]===\"S\");else return!1}function Iy(e){if(!e.host)e.error=e.error||\"HTTP URIs must have a host.\";return e}function Ty(e){let t=String(e.scheme).toLowerCase()===\"https\";if(e.port===(t?443:80)||e.port===\"\")e.port=void 0;if(!e.path)e.path=\"/\";return e}function DP(e){return e.secure=pm(e),e.resourceName=(e.path||\"/\")+(e.query?\"?\"+e.query:\"\"),e.path=void 0,e.query=void 0,e}function qP(e){if(e.port===(pm(e)?443:80)||e.port===\"\")e.port=void 0;if(typeof e.secure===\"boolean\")e.scheme=e.secure?\"wss\":\"ws\",e.secure=void 0;if(e.resourceName){let[t,n]=e.resourceName.split(\"?\");e.path=t&&t!==\"/\"?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function NP(e,t){if(!e.path)return e.error=\"URN can not be parsed\",e;let n=e.path.match(RP);if(n){let o=t.scheme||e.scheme||\"urn\";e.nid=n[1].toLowerCase(),e.nss=n[2];let r=`${o}:${t.nid||e.nid}`,i=mm(r);if(e.path=void 0,i)e=i.parse(e,t)}else e.error=e.error||\"URN can not be parsed.\";return e}function JP(e,t){if(e.nid===void 0)throw Error(\"URN without nid cannot be serialized\");let n=t.scheme||e.scheme||\"urn\",o=e.nid.toLowerCase(),r=`${n}:${t.nid||o}`,i=mm(r);if(i)e=i.serialize(e,t);let a=e,s=e.nss;return a.path=`${o||t.nid}:${s}`,t.skipEscape=!0,a}function GP(e,t){let n=e;if(n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!AP(n.uuid)))n.error=n.error||\"UUID is not valid.\";return n}function MP(e){let t=e;return t.nss=(e.uuid||\"\").toLowerCase(),t}var Py={scheme:\"http\",domainHost:!0,parse:Iy,serialize:Ty},ZP={scheme:\"https\",domainHost:Py.domainHost,parse:Iy,serialize:Ty},Vi={scheme:\"ws\",domainHost:!0,parse:DP,serialize:qP},LP={scheme:\"wss\",domainHost:Vi.domainHost,parse:Vi.parse,serialize:Vi.serialize},VP={scheme:\"urn\",parse:NP,serialize:JP,skipNormalize:!0},FP={scheme:\"urn:uuid\",parse:GP,serialize:MP,skipNormalize:!0},Fi={http:Py,https:ZP,ws:Vi,wss:LP,urn:VP,\"urn:uuid\":FP};Object.setPrototypeOf(Fi,null);function mm(e){return e&&(Fi[e]||Fi[e.toLowerCase()])||void 0}Cy.exports={wsIsSecure:pm,SCHEMES:Fi,isValidSchemeName:UP,getSchemeHandler:mm}});var jy=_(function(vq,Wi){var{normalizeIPv6:BP,removeDotSegments:On,recomposeAuthority:KP,normalizePercentEncoding:WP,normalizePathEncoding:HP,escapePreservingEscapes:XP,reescapeHostDelimiters:YP,isIPv4:QP,nonSimpleDomain:eC}=dm(),{SCHEMES:tC,getSchemeHandler:zy}=Ey();function rC(e,t){if(typeof e===\"string\")e=uC(e,t);else if(typeof e===\"object\")e=Ki(Rt(e,t),t);return e}function nC(e,t,n){let o=n?Object.assign({scheme:\"null\"},n):{scheme:\"null\"},{parsed:r,malformedAuthorityOrPort:i}=Bi(e,o),{parsed:a,malformedAuthorityOrPort:s}=Bi(t,o);if(i||s)throw Error(r.error||a.error||\"URI is malformed.\");let c=Ay(r,a,o,!0);return o.skipEscape=!0,Rt(c,o)}function Ay(e,t,n,o){let r={};if(!o)e=Ki(Rt(e,n),n),t=Ki(Rt(t,n),n);if(n=n||{},!n.tolerant&&t.scheme)r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=On(t.path||\"\"),r.query=t.query;else{if(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=On(t.path||\"\"),r.query=t.query;else{if(!t.path)if(r.path=e.path,t.query!==void 0)r.query=t.query;else r.query=e.query;else{if(t.path[0]===\"/\")r.path=On(t.path);else{if((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path)r.path=\"/\"+t.path;else if(!e.path)r.path=t.path;else r.path=e.path.slice(0,e.path.lastIndexOf(\"/\")+1)+t.path;r.path=On(r.path)}r.query=t.query}r.userinfo=e.userinfo,r.host=e.host,r.port=e.port}r.scheme=e.scheme}return r.fragment=t.fragment,r}function oC(e,t,n){let o=Oy(e,n),r=Oy(t,n);return o!==void 0&&r!==void 0&&o.toLowerCase()===r.toLowerCase()}function Rt(e,t){let n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:\"\"},o=Object.assign({},t),r=[],i=zy(o.scheme||n.scheme);if(i&&i.serialize)i.serialize(n,o);if(n.path!==void 0)if(!o.skipEscape){if(n.path=XP(n.path),n.scheme!==void 0)n.path=n.path.split(\"%3A\").join(\":\")}else n.path=WP(n.path);if(o.reference!==\"suffix\"&&n.scheme)r.push(n.scheme,\":\");let a=KP(n);if(a!==void 0){if(o.reference!==\"suffix\")r.push(\"//\");if(r.push(a),n.path&&n.path[0]!==\"/\")r.push(\"/\")}if(n.path!==void 0){let s=n.path;if(!o.absolutePath&&(!i||!i.absolutePath))s=On(s);if(a===void 0&&s[0]===\"/\"&&s[1]===\"/\")s=\"/%2F\"+s.slice(2);r.push(s)}if(n.query!==void 0)r.push(\"?\",n.query);if(n.fragment!==void 0)r.push(\"#\",n.fragment);return r.join(\"\")}var iC=/^(?:([^#/:?]+):)?(?:\\/\\/((?:([^#/?@]*)@)?(\\[[^#/?\\]]+\\]|[^#/:?]*)(?::(\\d*))?))?([^#?]*)(?:\\?([^#]*))?(?:#((?:.|[\\n\\r])*))?/u,aC=/^(?:[^#/:?]+:)?\\/\\/([^/?#]*)/,sC=/^(?:[^#/:?]+:)?([/\\\\\\t\\n\\r]*)/;function cC(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!==\"/\")return'URI path must start with \"/\" when authority is present.';if(typeof e.port===\"number\"&&(e.port<0||e.port>65535))return\"URI port is malformed.\";return}function Bi(e,t){let n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:\"\",port:void 0,path:\"\",query:void 0,fragment:void 0},r=!1,i=!1;if(n.reference===\"suffix\")if(n.scheme)e=n.scheme+\":\"+e;else e=\"//\"+e;let a=e.match(aC);if(a!==null&&a[1].indexOf(\"\\\\\")!==-1)o.error=\"URI authority must not contain a literal backslash.\",r=!0;let s=e.match(sC);if(s!==null){let u=s[1],l=u.replace(/[\\t\\n\\r]/g,\"\");if(l.length>=2){if(l.slice(0,2)!==\"//\")o.error=o.error||\"URI authority must not contain a literal backslash.\",r=!0;else if(u.length!==l.length)o.error=o.error||\"URI authority introducer must not contain whitespace.\",r=!0}}let c=e.match(iC);if(c){if(o.scheme=c[1],o.userinfo=c[3],o.host=c[4],o.port=parseInt(c[5],10),o.path=c[6]||\"\",o.query=c[7],o.fragment=c[8],isNaN(o.port))o.port=c[5];let u=cC(o,c);if(u!==void 0)o.error=o.error||u,r=!0;if(o.host)if(QP(o.host)===!1){let f=BP(o.host);o.host=f.host.toLowerCase(),i=f.isIPV6}else i=!0;if(o.scheme===void 0&&o.userinfo===void 0&&o.host===void 0&&o.port===void 0&&o.query===void 0&&!o.path)o.reference=\"same-document\";else if(o.scheme===void 0)o.reference=\"relative\";else if(o.fragment===void 0)o.reference=\"absolute\";else o.reference=\"uri\";if(n.reference&&n.reference!==\"suffix\"&&n.reference!==o.reference)o.error=o.error||\"URI is not a \"+n.reference+\" reference.\";let l=zy(n.scheme||o.scheme);if(!n.unicodeSupport&&(!l||!l.unicodeSupport)){if(o.host&&(n.domainHost||l&&l.domainHost)&&i===!1&&eC(o.host))try{o.host=new URL(\"http://\"+o.host).hostname}catch(d){o.error=o.error||\"Host's domain name can not be converted to ASCII: \"+d}}if(!l||l&&!l.skipNormalize){if(e.indexOf(\"%\")!==-1){if(o.scheme!==void 0)o.scheme=unescape(o.scheme);if(o.host!==void 0)o.host=YP(unescape(o.host),i)}if(o.path)o.path=HP(o.path);if(o.fragment)try{o.fragment=encodeURI(decodeURIComponent(o.fragment))}catch{o.error=o.error||\"URI malformed\"}}if(l&&l.parse)l.parse(o,n)}else o.error=o.error||\"URI can not be parsed.\";return{parsed:o,malformedAuthorityOrPort:r}}function Ki(e,t){return Bi(e,t).parsed}function uC(e,t){return Ry(e,t).normalized}function Ry(e,t){let{parsed:n,malformedAuthorityOrPort:o}=Bi(e,t);return{normalized:o?e:Rt(n,t),malformedAuthorityOrPort:o}}function Oy(e,t){if(typeof e===\"string\"){let{normalized:n,malformedAuthorityOrPort:o}=Ry(e,t);return o?void 0:n}if(typeof e===\"object\")return Rt(e,t)}var fm={SCHEMES:tC,normalize:rC,resolve:nC,resolveComponent:Ay,equal:oC,serialize:Rt,parse:Ki};Wi.exports=fm;Wi.exports.default=fm;Wi.exports.fastUri=fm});var qy=_(function(Dy){Object.defineProperty(Dy,\"__esModule\",{value:!0});var Uy=jy();Uy.code='require(\"ajv/dist/runtime/uri\").default';Dy.default=Uy});var Yi=_(function(Ve){Object.defineProperty(Ve,\"__esModule\",{value:!0});Ve.CodeGen=Ve.Name=Ve.nil=Ve.stringify=Ve.str=Ve._=Ve.KeywordCxt=void 0;var dC=Ot();Object.defineProperty(Ve,\"KeywordCxt\",{enumerable:!0,get:function(){return dC.KeywordCxt}});var Sr=j();Object.defineProperty(Ve,\"_\",{enumerable:!0,get:function(){return Sr._}});Object.defineProperty(Ve,\"str\",{enumerable:!0,get:function(){return Sr.str}});Object.defineProperty(Ve,\"stringify\",{enumerable:!0,get:function(){return Sr.stringify}});Object.defineProperty(Ve,\"nil\",{enumerable:!0,get:function(){return Sr.nil}});Object.defineProperty(Ve,\"Name\",{enumerable:!0,get:function(){return Sr.Name}});Object.defineProperty(Ve,\"CodeGen\",{enumerable:!0,get:function(){return Sr.CodeGen}});var pC=xr(),Zy=zt(),mC=Fp(),zn=En(),fC=j(),An=In(),Hi=Sn(),gm=J(),Ny=$y(),hC=qy(),Ly=(e,t)=>new RegExp(e,t);Ly.code=\"new RegExp\";var gC=[\"removeAdditional\",\"useDefaults\",\"coerceTypes\"],vC=new Set([\"validate\",\"serialize\",\"parse\",\"wrapper\",\"root\",\"schema\",\"keyword\",\"pattern\",\"formats\",\"validate$data\",\"func\",\"obj\",\"Error\"]),yC={errorDataPath:\"\",format:\"`validateFormats: false` can be used instead.\",nullable:'\"nullable\" keyword is supported by default.',jsonPointers:\"Deprecated jsPropertySyntax can be used instead.\",extendRefs:\"Deprecated ignoreKeywordsWithRef can be used instead.\",missingRefs:\"Pass empty schema with $id that should be ignored to ajv.addSchema.\",processCode:\"Use option `code: {process: (code, schemaEnv: object) => string}`\",sourceCode:\"Use option `code: {source: true}`\",strictDefaults:\"It is default now, see option `strict`.\",strictKeywords:\"It is default now, see option `strict`.\",uniqueItems:'\"uniqueItems\" keyword is always validated.',unknownFormats:\"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",cache:\"Map is used as cache, schema object as key.\",serialize:\"Map is used as cache, schema object as key.\",ajvErrors:\"It is default now.\"},$C={ignoreKeywordsWithRef:\"\",jsPropertySyntax:\"\",unicode:'\"minLength\"/\"maxLength\" account for unicode characters by default.'},Jy=200;function wC(e){var t,n,o,r,i,a,s,c,u,l,d,f,m,v,y,x,T,G,z,O,P,ve,we,Rr,ba;let jr=e.strict,_a=(t=e.code)===null||t===void 0?void 0:t.optimize,sf=_a===!0||_a===void 0?1:_a||0,cf=(o=(n=e.code)===null||n===void 0?void 0:n.regExp)!==null&&o!==void 0?o:Ly,g_=(r=e.uriResolver)!==null&&r!==void 0?r:hC.default;return{strictSchema:(a=(i=e.strictSchema)!==null&&i!==void 0?i:jr)!==null&&a!==void 0?a:!0,strictNumbers:(c=(s=e.strictNumbers)!==null&&s!==void 0?s:jr)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:jr)!==null&&l!==void 0?l:\"log\",strictTuples:(f=(d=e.strictTuples)!==null&&d!==void 0?d:jr)!==null&&f!==void 0?f:\"log\",strictRequired:(v=(m=e.strictRequired)!==null&&m!==void 0?m:jr)!==null&&v!==void 0?v:!1,code:e.code?{...e.code,optimize:sf,regExp:cf}:{optimize:sf,regExp:cf},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Jy,loopEnum:(x=e.loopEnum)!==null&&x!==void 0?x:Jy,meta:(T=e.meta)!==null&&T!==void 0?T:!0,messages:(G=e.messages)!==null&&G!==void 0?G:!0,inlineRefs:(z=e.inlineRefs)!==null&&z!==void 0?z:!0,schemaId:(O=e.schemaId)!==null&&O!==void 0?O:\"$id\",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(ve=e.validateSchema)!==null&&ve!==void 0?ve:!0,validateFormats:(we=e.validateFormats)!==null&&we!==void 0?we:!0,unicodeRegExp:(Rr=e.unicodeRegExp)!==null&&Rr!==void 0?Rr:!0,int32range:(ba=e.int32range)!==null&&ba!==void 0?ba:!0,uriResolver:g_}}class Xi{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...wC(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new fC.ValueScope({scope:{},prefixes:vC,es5:t,lines:n}),this.logger=IC(e.logger);let o=e.validateFormats;if(e.validateFormats=!1,this.RULES=(0,mC.getRules)(),Gy.call(this,yC,e,\"NOT SUPPORTED\"),Gy.call(this,$C,e,\"DEPRECATED\",\"warn\"),this._metaOpts=xC.call(this),e.formats)_C.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords)kC.call(this,e.keywords);if(typeof e.meta==\"object\")this.addMetaSchema(e.meta);bC.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword(\"$async\")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,o=Ny;if(n===\"id\")o={...Ny},o.id=o.$id,delete o.$id;if(t&&e)this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==\"object\"?e[t]||e:void 0}validate(e,t){let n;if(typeof e==\"string\"){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref \"${e}\"`)}else n=this.compile(e);let o=n(t);if(!(\"$async\"in n))this.errors=n.errors;return o}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=\"function\")throw Error(\"options.loadSchema should be a function\");let{loadSchema:n}=this.opts;return o.call(this,e,t);async function o(u,l){await r.call(this,u.$schema);let d=this._addSchema(u,l);return d.validate||i.call(this,d)}async function r(u){if(u&&!this.getSchema(u))await o.call(this,{$ref:u},!0)}async function i(u){try{return this._compileSchemaEnv(u)}catch(l){if(!(l instanceof Zy.default))throw l;return a.call(this,l),await s.call(this,l.missingSchema),i.call(this,u)}}function a({missingSchema:u,missingRef:l}){if(this.refs[u])throw Error(`AnySchema ${u} is loaded but ${l} cannot be resolved`)}async function s(u){let l=await c.call(this,u);if(!this.refs[u])await r.call(this,l.$schema);if(!this.refs[u])this.addSchema(l,u,t)}async function c(u){let l=this._loading[u];if(l)return l;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(e,t,n,o=this.opts.validateSchema){if(Array.isArray(e)){for(let i of e)this.addSchema(i,void 0,n,o);return this}let r;if(typeof e===\"object\"){let{schemaId:i}=this.opts;if(r=e[i],r!==void 0&&typeof r!=\"string\")throw Error(`schema ${i} must be string`)}return t=(0,An.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,o,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==\"boolean\")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=\"string\")throw Error(\"$schema must be a string\");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(\"meta-schema not available\"),this.errors=null,!0;let o=this.validate(n,e);if(!o&&t){let r=\"schema is invalid: \"+this.errorsText();if(this.opts.validateSchema===\"log\")this.logger.error(r);else throw Error(r)}return o}getSchema(e){let t;while(typeof(t=My.call(this,e))==\"string\")e=t;if(t===void 0){let{schemaId:n}=this.opts,o=new zn.SchemaEnv({schema:{},schemaId:n});if(t=zn.resolveSchema.call(this,o,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case\"undefined\":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case\"string\":{let t=My.call(this,e);if(typeof t==\"object\")this._cache.delete(t.schema);return delete this.schemas[e],delete this.refs[e],this}case\"object\":{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];if(n)n=(0,An.normalizeId)(n),delete this.schemas[n],delete this.refs[n];return this}default:throw Error(\"ajv.removeSchema: invalid parameter\")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==\"string\"){if(n=e,typeof t==\"object\")this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\"),t.keyword=n}else if(typeof e==\"object\"&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(\"addKeywords: keyword must be string or non-empty array\")}else throw Error(\"invalid addKeywords parameters\");if(PC.call(this,n,t),!t)return(0,gm.eachItem)(n,(r)=>hm.call(this,r)),this;EC.call(this,t);let o={...t,type:(0,Hi.getJSONTypes)(t.type),schemaType:(0,Hi.getJSONTypes)(t.schemaType)};return(0,gm.eachItem)(n,o.type.length===0?(r)=>hm.call(this,r,o):(r)=>o.type.forEach((i)=>hm.call(this,r,o,i))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==\"object\"?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let o=n.rules.findIndex((r)=>r.keyword===e);if(o>=0)n.rules.splice(o,1)}return this}addFormat(e,t){if(typeof t==\"string\")t=new RegExp(t);return this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=\", \",dataVar:n=\"data\"}={}){if(!e||e.length===0)return\"No errors\";return e.map((o)=>`${n}${o.instancePath} ${o.message}`).reduce((o,r)=>o+t+r)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let o of t){let r=o.split(\"/\").slice(1),i=e;for(let a of r)i=i[a];for(let a in n){let s=n[a];if(typeof s!=\"object\")continue;let{$data:c}=s.definition,u=i[a];if(c&&u)i[a]=Vy(u)}}return e}_removeAllSchemas(e,t){for(let n in e){let o=e[n];if(!t||t.test(n)){if(typeof o==\"string\")delete e[n];else if(o&&!o.meta)this._cache.delete(o.schema),delete e[n]}}}_addSchema(e,t,n,o=this.opts.validateSchema,r=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof e==\"object\")i=e[a];else if(this.opts.jtd)throw Error(\"schema must be object\");else if(typeof e!=\"boolean\")throw Error(\"schema must be object or boolean\");let s=this._cache.get(e);if(s!==void 0)return s;n=(0,An.normalizeId)(i||n);let c=An.getSchemaRefs.call(this,e,n);if(s=new zn.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),r&&!n.startsWith(\"#\")){if(n)this._checkUnique(n);this.refs[n]=s}if(o)this.validateSchema(e,!0);return s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id \"${e}\" already exists`)}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else zn.compileSchema.call(this,e);if(!e.validate)throw Error(\"ajv implementation error\");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{zn.compileSchema.call(this,e)}finally{this.opts=t}}}Xi.ValidationError=pC.default;Xi.MissingRefError=Zy.default;Ve.default=Xi;function Gy(e,t,n,o=\"error\"){for(let r in e){let i=r;if(i in t)this.logger[o](`${n}: option ${r}. ${e[i]}`)}}function My(e){return e=(0,An.normalizeId)(e),this.schemas[e]||this.refs[e]}function bC(){let e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function _C(){for(let e in this.opts.formats){let t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function kC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn(\"keywords option as map is deprecated, pass array\");for(let t in e){let n=e[t];if(!n.keyword)n.keyword=t;this.addKeyword(n)}}function xC(){let e={...this.opts};for(let t of gC)delete e[t];return e}var SC={log(){},warn(){},error(){}};function IC(e){if(e===!1)return SC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(\"logger must implement log, warn and error methods\")}var TC=/^[a-z_$][a-z0-9_$:-]*$/i;function PC(e,t){let{RULES:n}=this;if((0,gm.eachItem)(e,(o)=>{if(n.keywords[o])throw Error(`Keyword ${o} is already defined`);if(!TC.test(o))throw Error(`Keyword ${o} has invalid name`)}),!t)return;if(t.$data&&!((\"code\"in t)||(\"validate\"in t)))throw Error('$data keyword must have \"code\" or \"validate\" function')}function hm(e,t,n){var o;let r=t===null||t===void 0?void 0:t.post;if(n&&r)throw Error('keyword with \"post\" flag cannot have \"type\"');let{RULES:i}=this,a=r?i.post:i.rules.find(({type:c})=>c===n);if(!a)a={type:n,rules:[]},i.rules.push(a);if(i.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,Hi.getJSONTypes)(t.type),schemaType:(0,Hi.getJSONTypes)(t.schemaType)}};if(t.before)CC.call(this,a,s,t.before);else a.rules.push(s);i.all[e]=s,(o=t.implements)===null||o===void 0||o.forEach((c)=>this.addKeyword(c))}function CC(e,t,n){let o=e.rules.findIndex((r)=>r.keyword===n);if(o>=0)e.rules.splice(o,0,t);else e.rules.push(t),this.logger.warn(`rule ${n} is not defined`)}function EC(e){let{metaSchema:t}=e;if(t===void 0)return;if(e.$data&&this.opts.$data)t=Vy(t);e.validateSchema=this.compile(t,!0)}var OC={$ref:\"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\"};function Vy(e){return{anyOf:[e,OC]}}});var By=_(function(Fy){Object.defineProperty(Fy,\"__esModule\",{value:!0});var RC={keyword:\"id\",code(){throw Error('NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID')}};Fy.default=RC});var ta=_(function(Xy){Object.defineProperty(Xy,\"__esModule\",{value:!0});Xy.callRef=Xy.getValidate=void 0;var UC=zt(),Ky=xe(),me=j(),Ir=ke(),Wy=En(),Qi=J(),DC={keyword:\"$ref\",schemaType:\"string\",code(e){let{gen:t,schema:n,it:o}=e,{baseId:r,schemaEnv:i,validateName:a,opts:s,self:c}=o,{root:u}=i;if((n===\"#\"||n===\"#/\")&&r===u.baseId)return d();let l=Wy.resolveRef.call(c,u,r,n);if(l===void 0)throw new UC.default(o.opts.uriResolver,r,n);if(l instanceof Wy.SchemaEnv)return f(l);return m(l);function d(){if(i===u)return ea(e,a,i,i.$async);let v=t.scopeValue(\"root\",{ref:u});return ea(e,me._`${v}.validate`,u,u.$async)}function f(v){let y=Hy(e,v);ea(e,y,v,v.$async)}function m(v){let y=t.scopeValue(\"schema\",s.code.source===!0?{ref:v,code:(0,me.stringify)(v)}:{ref:v}),x=t.name(\"valid\"),T=e.subschema({schema:v,dataTypes:[],schemaPath:me.nil,topSchemaRef:y,errSchemaPath:n},x);e.mergeEvaluated(T),e.ok(x)}}};function Hy(e,t){let{gen:n}=e;return t.validate?n.scopeValue(\"validate\",{ref:t.validate}):me._`${n.scopeValue(\"wrapper\",{ref:t})}.validate`}Xy.getValidate=Hy;function ea(e,t,n,o){let{gen:r,it:i}=e,{allErrors:a,schemaEnv:s,opts:c}=i,u=c.passContext?Ir.default.this:me.nil;if(o)l();else d();function l(){if(!s.$async)throw Error(\"async schema referenced by sync schema\");let v=r.let(\"valid\");r.try(()=>{if(r.code(me._`await ${(0,Ky.callValidateCode)(e,t,u)}`),m(t),!a)r.assign(v,!0)},(y)=>{if(r.if(me._`!(${y} instanceof ${i.ValidationError})`,()=>r.throw(y)),f(y),!a)r.assign(v,!1)}),e.ok(v)}function d(){e.result((0,Ky.callValidateCode)(e,t,u),()=>m(t),()=>f(t))}function f(v){let y=me._`${v}.errors`;r.assign(Ir.default.vErrors,me._`${Ir.default.vErrors} === null ? ${y} : ${Ir.default.vErrors}.concat(${y})`),r.assign(Ir.default.errors,me._`${Ir.default.vErrors}.length`)}function m(v){var y;if(!i.opts.unevaluated)return;let x=(y=n===null||n===void 0?void 0:n.validate)===null||y===void 0?void 0:y.evaluated;if(i.props!==!0)if(x&&!x.dynamicProps){if(x.props!==void 0)i.props=Qi.mergeEvaluated.props(r,x.props,i.props)}else{let T=r.var(\"props\",me._`${v}.evaluated.props`);i.props=Qi.mergeEvaluated.props(r,T,i.props,me.Name)}if(i.items!==!0)if(x&&!x.dynamicItems){if(x.items!==void 0)i.items=Qi.mergeEvaluated.items(r,x.items,i.items)}else{let T=r.var(\"items\",me._`${v}.evaluated.items`);i.items=Qi.mergeEvaluated.items(r,T,i.items,me.Name)}}}Xy.callRef=ea;Xy.default=DC});var vm=_(function(Qy){Object.defineProperty(Qy,\"__esModule\",{value:!0});var JC=By(),GC=ta(),MC=[\"$schema\",\"$id\",\"$defs\",\"$vocabulary\",{keyword:\"$comment\"},\"definitions\",JC.default,GC.default];Qy.default=MC});var t$=_(function(e$){Object.defineProperty(e$,\"__esModule\",{value:!0});var ra=j(),ut=ra.operators,na={maximum:{okStr:\"<=\",ok:ut.LTE,fail:ut.GT},minimum:{okStr:\">=\",ok:ut.GTE,fail:ut.LT},exclusiveMaximum:{okStr:\"<\",ok:ut.LT,fail:ut.GTE},exclusiveMinimum:{okStr:\">\",ok:ut.GT,fail:ut.LTE}},LC={message:({keyword:e,schemaCode:t})=>ra.str`must be ${na[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>ra._`{comparison: ${na[e].okStr}, limit: ${t}}`},VC={keyword:Object.keys(na),type:\"number\",schemaType:\"number\",$data:!0,error:LC,code(e){let{keyword:t,data:n,schemaCode:o}=e;e.fail$data(ra._`${n} ${na[t].fail} ${o} || isNaN(${n})`)}};e$.default=VC});var n$=_(function(r$){Object.defineProperty(r$,\"__esModule\",{value:!0});var Rn=j(),BC={message:({schemaCode:e})=>Rn.str`must be multiple of ${e}`,params:({schemaCode:e})=>Rn._`{multipleOf: ${e}}`},KC={keyword:\"multipleOf\",type:\"number\",schemaType:\"number\",$data:!0,error:BC,code(e){let{gen:t,data:n,schemaCode:o,it:r}=e,i=r.opts.multipleOfPrecision,a=t.let(\"res\"),s=i?Rn._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:Rn._`${a} !== parseInt(${a})`;e.fail$data(Rn._`(${o} === 0 || (${a} = ${n}/${o}, ${s}))`)}};r$.default=KC});var a$=_(function(i$){Object.defineProperty(i$,\"__esModule\",{value:!0});function o$(e){let t=e.length,n=0,o=0,r;while(o<t)if(n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t){if(r=e.charCodeAt(o),(r&64512)===56320)o++}return n}i$.default=o$;o$.code='require(\"ajv/dist/runtime/ucs2length\").default'});var c$=_(function(s$){Object.defineProperty(s$,\"__esModule\",{value:!0});var jt=j(),XC=J(),YC=a$(),QC={message({keyword:e,schemaCode:t}){let n=e===\"maxLength\"?\"more\":\"fewer\";return jt.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>jt._`{limit: ${e}}`},eE={keyword:[\"maxLength\",\"minLength\"],type:\"string\",schemaType:\"number\",$data:!0,error:QC,code(e){let{keyword:t,data:n,schemaCode:o,it:r}=e,i=t===\"maxLength\"?jt.operators.GT:jt.operators.LT,a=r.opts.unicode===!1?jt._`${n}.length`:jt._`${(0,XC.useFunc)(e.gen,YC.default)}(${n})`;e.fail$data(jt._`${a} ${i} ${o}`)}};s$.default=eE});var l$=_(function(u$){Object.defineProperty(u$,\"__esModule\",{value:!0});var rE=xe(),nE=J(),Tr=j(),oE={message:({schemaCode:e})=>Tr.str`must match pattern \"${e}\"`,params:({schemaCode:e})=>Tr._`{pattern: ${e}}`},iE={keyword:\"pattern\",type:\"string\",schemaType:\"string\",$data:!0,error:oE,code(e){let{gen:t,data:n,$data:o,schema:r,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?\"u\":\"\";if(o){let{regExp:c}=a.opts.code,u=c.code===\"new RegExp\"?Tr._`new RegExp`:(0,nE.useFunc)(t,c),l=t.let(\"valid\");t.try(()=>t.assign(l,Tr._`${u}(${i}, ${s}).test(${n})`),()=>t.assign(l,!1)),e.fail$data(Tr._`!${l}`)}else{let c=(0,rE.usePattern)(e,r);e.fail$data(Tr._`!${c}.test(${n})`)}}};u$.default=iE});var p$=_(function(d$){Object.defineProperty(d$,\"__esModule\",{value:!0});var jn=j(),sE={message({keyword:e,schemaCode:t}){let n=e===\"maxProperties\"?\"more\":\"fewer\";return jn.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>jn._`{limit: ${e}}`},cE={keyword:[\"maxProperties\",\"minProperties\"],type:\"object\",schemaType:\"number\",$data:!0,error:sE,code(e){let{keyword:t,data:n,schemaCode:o}=e,r=t===\"maxProperties\"?jn.operators.GT:jn.operators.LT;e.fail$data(jn._`Object.keys(${n}).length ${r} ${o}`)}};d$.default=cE});var f$=_(function(m$){Object.defineProperty(m$,\"__esModule\",{value:!0});var Un=xe(),Dn=j(),lE=J(),dE={message:({params:{missingProperty:e}})=>Dn.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Dn._`{missingProperty: ${e}}`},pE={keyword:\"required\",type:\"object\",schemaType:\"array\",$data:!0,error:dE,code(e){let{gen:t,schema:n,schemaCode:o,data:r,$data:i,it:a}=e,{opts:s}=a;if(!i&&n.length===0)return;let c=n.length>=s.loopRequired;if(a.allErrors)u();else l();if(s.strictRequired){let m=e.parentSchema.properties,{definedProperties:v}=e.it;for(let y of n)if((m===null||m===void 0?void 0:m[y])===void 0&&!v.has(y)){let x=a.schemaEnv.baseId+a.errSchemaPath,T=`required property \"${y}\" is not defined at \"${x}\" (strictRequired)`;(0,lE.checkStrictMode)(a,T,a.opts.strictRequired)}}function u(){if(c||i)e.block$data(Dn.nil,d);else for(let m of n)(0,Un.checkReportMissingProp)(e,m)}function l(){let m=t.let(\"missing\");if(c||i){let v=t.let(\"valid\",!0);e.block$data(v,()=>f(m,v)),e.ok(v)}else t.if((0,Un.checkMissingProp)(e,n,m)),(0,Un.reportMissingProp)(e,m),t.else()}function d(){t.forOf(\"prop\",o,(m)=>{e.setParams({missingProperty:m}),t.if((0,Un.noPropertyInData)(t,r,m,s.ownProperties),()=>e.error())})}function f(m,v){e.setParams({missingProperty:m}),t.forOf(m,o,()=>{t.assign(v,(0,Un.propertyInData)(t,r,m,s.ownProperties)),t.if((0,Dn.not)(v),()=>{e.error(),t.break()})},Dn.nil)}}};m$.default=pE});var g$=_(function(h$){Object.defineProperty(h$,\"__esModule\",{value:!0});var qn=j(),fE={message({keyword:e,schemaCode:t}){let n=e===\"maxItems\"?\"more\":\"fewer\";return qn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>qn._`{limit: ${e}}`},hE={keyword:[\"maxItems\",\"minItems\"],type:\"array\",schemaType:\"number\",$data:!0,error:fE,code(e){let{keyword:t,data:n,schemaCode:o}=e,r=t===\"maxItems\"?qn.operators.GT:qn.operators.LT;e.fail$data(qn._`${n}.length ${r} ${o}`)}};h$.default=hE});var oa=_(function(y$){Object.defineProperty(y$,\"__esModule\",{value:!0});var v$=em();v$.code='require(\"ajv/dist/runtime/equal\").default';y$.default=v$});var w$=_(function($$){Object.defineProperty($$,\"__esModule\",{value:!0});var ym=Sn(),Q=j(),yE=J(),$E=oa(),wE={message:({params:{i:e,j:t}})=>Q.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Q._`{i: ${e}, j: ${t}}`},bE={keyword:\"uniqueItems\",type:\"array\",schemaType:\"boolean\",$data:!0,error:wE,code(e){let{gen:t,data:n,$data:o,schema:r,parentSchema:i,schemaCode:a,it:s}=e;if(!o&&!r)return;let c=t.let(\"valid\"),u=i.items?(0,ym.getSchemaTypes)(i.items):[];e.block$data(c,l,Q._`${a} === false`),e.ok(c);function l(){let v=t.let(\"i\",Q._`${n}.length`),y=t.let(\"j\");e.setParams({i:v,j:y}),t.assign(c,!0),t.if(Q._`${v} > 1`,()=>(d()?f:m)(v,y))}function d(){return u.length>0&&!u.some((v)=>v===\"object\"||v===\"array\")}function f(v,y){let x=t.name(\"item\"),T=(0,ym.checkDataTypes)(u,x,s.opts.strictNumbers,ym.DataType.Wrong),G=t.const(\"indices\",Q._`{}`);t.for(Q._`;${v}--;`,()=>{if(t.let(x,Q._`${n}[${v}]`),t.if(T,Q._`continue`),u.length>1)t.if(Q._`typeof ${x} == \"string\"`,Q._`${x} += \"_\"`);t.if(Q._`typeof ${G}[${x}] == \"number\"`,()=>{t.assign(y,Q._`${G}[${x}]`),e.error(),t.assign(c,!1).break()}).code(Q._`${G}[${x}] = ${v}`)})}function m(v,y){let x=(0,yE.useFunc)(t,$E.default),T=t.name(\"outer\");t.label(T).for(Q._`;${v}--;`,()=>t.for(Q._`${y} = ${v}; ${y}--;`,()=>t.if(Q._`${x}(${n}[${v}], ${n}[${y}])`,()=>{e.error(),t.assign(c,!1).break(T)})))}}};$$.default=bE});var _$=_(function(b$){Object.defineProperty(b$,\"__esModule\",{value:!0});var $m=j(),kE=J(),xE=oa(),SE={message:\"must be equal to constant\",params:({schemaCode:e})=>$m._`{allowedValue: ${e}}`},IE={keyword:\"const\",$data:!0,error:SE,code(e){let{gen:t,data:n,$data:o,schemaCode:r,schema:i}=e;if(o||i&&typeof i==\"object\")e.fail$data($m._`!${(0,kE.useFunc)(t,xE.default)}(${n}, ${r})`);else e.fail($m._`${i} !== ${n}`)}};b$.default=IE});var x$=_(function(k$){Object.defineProperty(k$,\"__esModule\",{value:!0});var Nn=j(),PE=J(),CE=oa(),EE={message:\"must be equal to one of the allowed values\",params:({schemaCode:e})=>Nn._`{allowedValues: ${e}}`},OE={keyword:\"enum\",schemaType:\"array\",$data:!0,error:EE,code(e){let{gen:t,data:n,$data:o,schema:r,schemaCode:i,it:a}=e;if(!o&&r.length===0)throw Error(\"enum must have non-empty array\");let s=r.length>=a.opts.loopEnum,c,u=()=>c!==null&&c!==void 0?c:c=(0,PE.useFunc)(t,CE.default),l;if(s||o)l=t.let(\"valid\"),e.block$data(l,d);else{if(!Array.isArray(r))throw Error(\"ajv implementation error\");let m=t.const(\"vSchema\",i);l=(0,Nn.or)(...r.map((v,y)=>f(m,y)))}e.pass(l);function d(){t.assign(l,!1),t.forOf(\"v\",i,(m)=>t.if(Nn._`${u()}(${n}, ${m})`,()=>t.assign(l,!0).break()))}function f(m,v){let y=r[v];return typeof y===\"object\"&&y!==null?Nn._`${u()}(${n}, ${m}[${v}])`:Nn._`${n} === ${y}`}}};k$.default=OE});var wm=_(function(S$){Object.defineProperty(S$,\"__esModule\",{value:!0});var AE=t$(),RE=n$(),jE=c$(),UE=l$(),DE=p$(),qE=f$(),NE=g$(),JE=w$(),GE=_$(),ME=x$(),ZE=[AE.default,RE.default,jE.default,UE.default,DE.default,qE.default,NE.default,JE.default,{keyword:\"type\",schemaType:[\"string\",\"array\"]},{keyword:\"nullable\",schemaType:\"boolean\"},GE.default,ME.default];S$.default=ZE});var _m=_(function(T$){Object.defineProperty(T$,\"__esModule\",{value:!0});T$.validateAdditionalItems=void 0;var Ut=j(),bm=J(),VE={message:({params:{len:e}})=>Ut.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Ut._`{limit: ${e}}`},FE={keyword:\"additionalItems\",type:\"array\",schemaType:[\"boolean\",\"object\"],before:\"uniqueItems\",error:VE,code(e){let{parentSchema:t,it:n}=e,{items:o}=t;if(!Array.isArray(o)){(0,bm.checkStrictMode)(n,'\"additionalItems\" is ignored when \"items\" is not an array of schemas');return}I$(e,o)}};function I$(e,t){let{gen:n,schema:o,data:r,keyword:i,it:a}=e;a.items=!0;let s=n.const(\"len\",Ut._`${r}.length`);if(o===!1)e.setParams({len:t.length}),e.pass(Ut._`${s} <= ${t.length}`);else if(typeof o==\"object\"&&!(0,bm.alwaysValidSchema)(a,o)){let u=n.var(\"valid\",Ut._`${s} <= ${t.length}`);n.if((0,Ut.not)(u),()=>c(u)),e.ok(u)}function c(u){n.forRange(\"i\",t.length,s,(l)=>{if(e.subschema({keyword:i,dataProp:l,dataPropType:bm.Type.Num},u),!a.allErrors)n.if((0,Ut.not)(u),()=>n.break())})}}T$.validateAdditionalItems=I$;T$.default=FE});var km=_(function(O$){Object.defineProperty(O$,\"__esModule\",{value:!0});O$.validateTuple=void 0;var C$=j(),ia=J(),KE=xe(),WE={keyword:\"items\",type:\"array\",schemaType:[\"object\",\"array\",\"boolean\"],before:\"uniqueItems\",code(e){let{schema:t,it:n}=e;if(Array.isArray(t))return E$(e,\"additionalItems\",t);if(n.items=!0,(0,ia.alwaysValidSchema)(n,t))return;e.ok((0,KE.validateArray)(e))}};function E$(e,t,n=e.schema){let{gen:o,parentSchema:r,data:i,keyword:a,it:s}=e;if(l(r),s.opts.unevaluated&&n.length&&s.items!==!0)s.items=ia.mergeEvaluated.items(o,n.length,s.items);let c=o.name(\"valid\"),u=o.const(\"len\",C$._`${i}.length`);n.forEach((d,f)=>{if((0,ia.alwaysValidSchema)(s,d))return;o.if(C$._`${u} > ${f}`,()=>e.subschema({keyword:a,schemaProp:f,dataProp:f},c)),e.ok(c)});function l(d){let{opts:f,errSchemaPath:m}=s,v=n.length,y=v===d.minItems&&(v===d.maxItems||d[t]===!1);if(f.strictTuples&&!y){let x=`\"${a}\" is ${v}-tuple, but minItems or maxItems/${t} are not specified or different at path \"${m}\"`;(0,ia.checkStrictMode)(s,x,f.strictTuples)}}}O$.validateTuple=E$;O$.default=WE});var R$=_(function(A$){Object.defineProperty(A$,\"__esModule\",{value:!0});var XE=km(),YE={keyword:\"prefixItems\",type:\"array\",schemaType:[\"array\"],before:\"uniqueItems\",code:(e)=>(0,XE.validateTuple)(e,\"items\")};A$.default=YE});var D$=_(function(U$){Object.defineProperty(U$,\"__esModule\",{value:!0});var j$=j(),eO=J(),tO=xe(),rO=_m(),nO={message:({params:{len:e}})=>j$.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>j$._`{limit: ${e}}`},oO={keyword:\"items\",type:\"array\",schemaType:[\"object\",\"boolean\"],before:\"uniqueItems\",error:nO,code(e){let{schema:t,parentSchema:n,it:o}=e,{prefixItems:r}=n;if(o.items=!0,(0,eO.alwaysValidSchema)(o,t))return;if(r)(0,rO.validateAdditionalItems)(e,r);else e.ok((0,tO.validateArray)(e))}};U$.default=oO});var N$=_(function(q$){Object.defineProperty(q$,\"__esModule\",{value:!0});var Se=j(),aa=J(),aO={message:({params:{min:e,max:t}})=>t===void 0?Se.str`must contain at least ${e} valid item(s)`:Se.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?Se._`{minContains: ${e}}`:Se._`{minContains: ${e}, maxContains: ${t}}`},sO={keyword:\"contains\",type:\"array\",schemaType:[\"object\",\"boolean\"],before:\"uniqueItems\",trackErrors:!0,error:aO,code(e){let{gen:t,schema:n,parentSchema:o,data:r,it:i}=e,a,s,{minContains:c,maxContains:u}=o;if(i.opts.next)a=c===void 0?1:c,s=u;else a=1;let l=t.const(\"len\",Se._`${r}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,aa.checkStrictMode)(i,'\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored');return}if(s!==void 0&&a>s){(0,aa.checkStrictMode)(i,'\"minContains\" > \"maxContains\" is always invalid'),e.fail();return}if((0,aa.alwaysValidSchema)(i,n)){let y=Se._`${l} >= ${a}`;if(s!==void 0)y=Se._`${y} && ${l} <= ${s}`;e.pass(y);return}i.items=!0;let d=t.name(\"valid\");if(s===void 0&&a===1)m(d,()=>t.if(d,()=>t.break()));else if(a===0){if(t.let(d,!0),s!==void 0)t.if(Se._`${r}.length > 0`,f)}else t.let(d,!1),f();e.result(d,()=>e.reset());function f(){let y=t.name(\"_valid\"),x=t.let(\"count\",0);m(y,()=>t.if(y,()=>v(x)))}function m(y,x){t.forRange(\"i\",0,l,(T)=>{e.subschema({keyword:\"contains\",dataProp:T,dataPropType:aa.Type.Num,compositeRule:!0},y),x()})}function v(y){if(t.code(Se._`${y}++`),s===void 0)t.if(Se._`${y} >= ${a}`,()=>t.assign(d,!0).break());else if(t.if(Se._`${y} > ${s}`,()=>t.assign(d,!1).break()),a===1)t.assign(d,!0);else t.if(Se._`${y} >= ${a}`,()=>t.assign(d,!0))}}};q$.default=sO});var sa=_(function(M$){Object.defineProperty(M$,\"__esModule\",{value:!0});M$.validateSchemaDeps=M$.validatePropertyDeps=M$.error=void 0;var xm=j(),uO=J(),Jn=xe();M$.error={message:({params:{property:e,depsCount:t,deps:n}})=>{let o=t===1?\"property\":\"properties\";return xm.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:o}})=>xm._`{property: ${e},\n missingProperty: ${o},\n depsCount: ${t},\n deps: ${n}}`};var lO={keyword:\"dependencies\",type:\"object\",schemaType:\"object\",error:M$.error,code(e){let[t,n]=dO(e);J$(e,t),G$(e,n)}};function dO({schema:e}){let t={},n={};for(let o in e){if(o===\"__proto__\")continue;let r=Array.isArray(e[o])?t:n;r[o]=e[o]}return[t,n]}function J$(e,t=e.schema){let{gen:n,data:o,it:r}=e;if(Object.keys(t).length===0)return;let i=n.let(\"missing\");for(let a in t){let s=t[a];if(s.length===0)continue;let c=(0,Jn.propertyInData)(n,o,a,r.opts.ownProperties);if(e.setParams({property:a,depsCount:s.length,deps:s.join(\", \")}),r.allErrors)n.if(c,()=>{for(let u of s)(0,Jn.checkReportMissingProp)(e,u)});else n.if(xm._`${c} && (${(0,Jn.checkMissingProp)(e,s,i)})`),(0,Jn.reportMissingProp)(e,i),n.else()}}M$.validatePropertyDeps=J$;function G$(e,t=e.schema){let{gen:n,data:o,keyword:r,it:i}=e,a=n.name(\"valid\");for(let s in t){if((0,uO.alwaysValidSchema)(i,t[s]))continue;n.if((0,Jn.propertyInData)(n,o,s,i.opts.ownProperties),()=>{let c=e.subschema({keyword:r,schemaProp:s},a);e.mergeValidEvaluated(c,a)},()=>n.var(a,!0)),e.ok(a)}}M$.validateSchemaDeps=G$;M$.default=lO});var B$=_(function(F$){Object.defineProperty(F$,\"__esModule\",{value:!0});var V$=j(),fO=J(),hO={message:\"property name must be valid\",params:({params:e})=>V$._`{propertyName: ${e.propertyName}}`},gO={keyword:\"propertyNames\",type:\"object\",schemaType:[\"object\",\"boolean\"],error:hO,code(e){let{gen:t,schema:n,data:o,it:r}=e;if((0,fO.alwaysValidSchema)(r,n))return;let i=t.name(\"valid\");t.forIn(\"key\",o,(a)=>{e.setParams({propertyName:a}),e.subschema({keyword:\"propertyNames\",data:a,dataTypes:[\"string\"],propertyName:a,compositeRule:!0},i),t.if((0,V$.not)(i),()=>{if(e.error(!0),!r.allErrors)t.break()})}),e.ok(i)}};F$.default=gO});var Sm=_(function(K$){Object.defineProperty(K$,\"__esModule\",{value:!0});var ca=xe(),Oe=j(),yO=ke(),ua=J(),$O={message:\"must NOT have additional properties\",params:({params:e})=>Oe._`{additionalProperty: ${e.additionalProperty}}`},wO={keyword:\"additionalProperties\",type:[\"object\"],schemaType:[\"boolean\",\"object\"],allowUndefined:!0,trackErrors:!0,error:$O,code(e){let{gen:t,schema:n,parentSchema:o,data:r,errsCount:i,it:a}=e;if(!i)throw Error(\"ajv implementation error\");let{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!==\"all\"&&(0,ua.alwaysValidSchema)(a,n))return;let u=(0,ca.allSchemaProperties)(o.properties),l=(0,ca.allSchemaProperties)(o.patternProperties);d(),e.ok(Oe._`${i} === ${yO.default.errors}`);function d(){t.forIn(\"key\",r,(x)=>{if(!u.length&&!l.length)v(x);else t.if(f(x),()=>v(x))})}function f(x){let T;if(u.length>8){let G=(0,ua.schemaRefOrVal)(a,o.properties,\"properties\");T=(0,ca.isOwnProperty)(t,G,x)}else if(u.length)T=(0,Oe.or)(...u.map((G)=>Oe._`${x} === ${G}`));else T=Oe.nil;if(l.length)T=(0,Oe.or)(T,...l.map((G)=>Oe._`${(0,ca.usePattern)(e,G)}.test(${x})`));return(0,Oe.not)(T)}function m(x){t.code(Oe._`delete ${r}[${x}]`)}function v(x){if(c.removeAdditional===\"all\"||c.removeAdditional&&n===!1){m(x);return}if(n===!1){if(e.setParams({additionalProperty:x}),e.error(),!s)t.break();return}if(typeof n==\"object\"&&!(0,ua.alwaysValidSchema)(a,n)){let T=t.name(\"valid\");if(c.removeAdditional===\"failing\")y(x,T,!1),t.if((0,Oe.not)(T),()=>{e.reset(),m(x)});else if(y(x,T),!s)t.if((0,Oe.not)(T),()=>t.break())}}function y(x,T,G){let z={keyword:\"additionalProperties\",dataProp:x,dataPropType:ua.Type.Str};if(G===!1)Object.assign(z,{compositeRule:!0,createErrors:!1,allErrors:!1});e.subschema(z,T)}}};K$.default=wO});var Y$=_(function(X$){Object.defineProperty(X$,\"__esModule\",{value:!0});var _O=Ot(),W$=xe(),Im=J(),H$=Sm(),kO={keyword:\"properties\",type:\"object\",schemaType:\"object\",code(e){let{gen:t,schema:n,parentSchema:o,data:r,it:i}=e;if(i.opts.removeAdditional===\"all\"&&o.additionalProperties===void 0)H$.default.code(new _O.KeywordCxt(i,H$.default,\"additionalProperties\"));let a=(0,W$.allSchemaProperties)(n);for(let d of a)i.definedProperties.add(d);if(i.opts.unevaluated&&a.length&&i.props!==!0)i.props=Im.mergeEvaluated.props(t,(0,Im.toHash)(a),i.props);let s=a.filter((d)=>!(0,Im.alwaysValidSchema)(i,n[d]));if(s.length===0)return;let c=t.name(\"valid\");for(let d of s){if(u(d))l(d);else{if(t.if((0,W$.propertyInData)(t,r,d,i.opts.ownProperties)),l(d),!i.allErrors)t.else().var(c,!0);t.endIf()}e.it.definedProperties.add(d),e.ok(c)}function u(d){return i.opts.useDefaults&&!i.compositeRule&&n[d].default!==void 0}function l(d){e.subschema({keyword:\"properties\",schemaProp:d,dataProp:d},c)}}};X$.default=kO});var nw=_(function(rw){Object.defineProperty(rw,\"__esModule\",{value:!0});var Q$=xe(),la=j(),ew=J(),tw=J(),SO={keyword:\"patternProperties\",type:\"object\",schemaType:\"object\",code(e){let{gen:t,schema:n,data:o,parentSchema:r,it:i}=e,{opts:a}=i,s=(0,Q$.allSchemaProperties)(n),c=s.filter((y)=>(0,ew.alwaysValidSchema)(i,n[y]));if(s.length===0||c.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;let u=a.strictSchema&&!a.allowMatchingProperties&&r.properties,l=t.name(\"valid\");if(i.props!==!0&&!(i.props instanceof la.Name))i.props=(0,tw.evaluatedPropsToName)(t,i.props);let{props:d}=i;f();function f(){for(let y of s){if(u)m(y);if(i.allErrors)v(y);else t.var(l,!0),v(y),t.if(l)}}function m(y){for(let x in u)if(new RegExp(y).test(x))(0,ew.checkStrictMode)(i,`property ${x} matches pattern ${y} (use allowMatchingProperties)`)}function v(y){t.forIn(\"key\",o,(x)=>{t.if(la._`${(0,Q$.usePattern)(e,y)}.test(${x})`,()=>{let T=c.includes(y);if(!T)e.subschema({keyword:\"patternProperties\",schemaProp:y,dataProp:x,dataPropType:tw.Type.Str},l);if(i.opts.unevaluated&&d!==!0)t.assign(la._`${d}[${x}]`,!0);else if(!T&&!i.allErrors)t.if((0,la.not)(l),()=>t.break())})})}}};rw.default=SO});var iw=_(function(ow){Object.defineProperty(ow,\"__esModule\",{value:!0});var TO=J(),PO={keyword:\"not\",schemaType:[\"object\",\"boolean\"],trackErrors:!0,code(e){let{gen:t,schema:n,it:o}=e;if((0,TO.alwaysValidSchema)(o,n)){e.fail();return}let r=t.name(\"valid\");e.subschema({keyword:\"not\",compositeRule:!0,createErrors:!1,allErrors:!1},r),e.failResult(r,()=>e.reset(),()=>e.error())},error:{message:\"must NOT be valid\"}};ow.default=PO});var sw=_(function(aw){Object.defineProperty(aw,\"__esModule\",{value:!0});var EO=xe(),OO={keyword:\"anyOf\",schemaType:\"array\",trackErrors:!0,code:EO.validateUnion,error:{message:\"must match a schema in anyOf\"}};aw.default=OO});var uw=_(function(cw){Object.defineProperty(cw,\"__esModule\",{value:!0});var da=j(),AO=J(),RO={message:\"must match exactly one schema in oneOf\",params:({params:e})=>da._`{passingSchemas: ${e.passing}}`},jO={keyword:\"oneOf\",schemaType:\"array\",trackErrors:!0,error:RO,code(e){let{gen:t,schema:n,parentSchema:o,it:r}=e;if(!Array.isArray(n))throw Error(\"ajv implementation error\");if(r.opts.discriminator&&o.discriminator)return;let i=n,a=t.let(\"valid\",!1),s=t.let(\"passing\",null),c=t.name(\"_valid\");e.setParams({passing:s}),t.block(u),e.result(a,()=>e.reset(),()=>e.error(!0));function u(){i.forEach((l,d)=>{let f;if((0,AO.alwaysValidSchema)(r,l))t.var(c,!0);else f=e.subschema({keyword:\"oneOf\",schemaProp:d,compositeRule:!0},c);if(d>0)t.if(da._`${c} && ${a}`).assign(a,!1).assign(s,da._`[${s}, ${d}]`).else();t.if(c,()=>{if(t.assign(a,!0),t.assign(s,d),f)e.mergeEvaluated(f,da.Name)})})}}};cw.default=jO});var dw=_(function(lw){Object.defineProperty(lw,\"__esModule\",{value:!0});var DO=J(),qO={keyword:\"allOf\",schemaType:\"array\",code(e){let{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw Error(\"ajv implementation error\");let r=t.name(\"valid\");n.forEach((i,a)=>{if((0,DO.alwaysValidSchema)(o,i))return;let s=e.subschema({keyword:\"allOf\",schemaProp:a},r);e.ok(r),e.mergeEvaluated(s)})}};lw.default=qO});var hw=_(function(fw){Object.defineProperty(fw,\"__esModule\",{value:!0});var pa=j(),mw=J(),JO={message:({params:e})=>pa.str`must match \"${e.ifClause}\" schema`,params:({params:e})=>pa._`{failingKeyword: ${e.ifClause}}`},GO={keyword:\"if\",schemaType:[\"object\",\"boolean\"],trackErrors:!0,error:JO,code(e){let{gen:t,parentSchema:n,it:o}=e;if(n.then===void 0&&n.else===void 0)(0,mw.checkStrictMode)(o,'\"if\" without \"then\" and \"else\" is ignored');let r=pw(o,\"then\"),i=pw(o,\"else\");if(!r&&!i)return;let a=t.let(\"valid\",!0),s=t.name(\"_valid\");if(c(),e.reset(),r&&i){let l=t.let(\"ifClause\");e.setParams({ifClause:l}),t.if(s,u(\"then\",l),u(\"else\",l))}else if(r)t.if(s,u(\"then\"));else t.if((0,pa.not)(s),u(\"else\"));e.pass(a,()=>e.error(!0));function c(){let l=e.subschema({keyword:\"if\",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(l)}function u(l,d){return()=>{let f=e.subschema({keyword:l},s);if(t.assign(a,s),e.mergeValidEvaluated(f,a),d)t.assign(d,pa._`${l}`);else e.setParams({ifClause:l})}}}};function pw(e,t){let n=e.schema[t];return n!==void 0&&!(0,mw.alwaysValidSchema)(e,n)}fw.default=GO});var vw=_(function(gw){Object.defineProperty(gw,\"__esModule\",{value:!0});var ZO=J(),LO={keyword:[\"then\",\"else\"],schemaType:[\"object\",\"boolean\"],code({keyword:e,parentSchema:t,it:n}){if(t.if===void 0)(0,ZO.checkStrictMode)(n,`\"${e}\" without \"if\" is ignored`)}};gw.default=LO});var Tm=_(function(yw){Object.defineProperty(yw,\"__esModule\",{value:!0});var FO=_m(),BO=R$(),KO=km(),WO=D$(),HO=N$(),XO=sa(),YO=B$(),QO=Sm(),e1=Y$(),t1=nw(),r1=iw(),n1=sw(),o1=uw(),i1=dw(),a1=hw(),s1=vw();function c1(e=!1){let t=[r1.default,n1.default,o1.default,i1.default,a1.default,s1.default,YO.default,QO.default,XO.default,e1.default,t1.default];if(e)t.push(BO.default,WO.default);else t.push(FO.default,KO.default);return t.push(HO.default),t}yw.default=c1});var ww=_(function($w){Object.defineProperty($w,\"__esModule\",{value:!0});var X=j(),l1={message:({schemaCode:e})=>X.str`must match format \"${e}\"`,params:({schemaCode:e})=>X._`{format: ${e}}`},d1={keyword:\"format\",type:[\"number\",\"string\"],schemaType:\"string\",$data:!0,error:l1,code(e,t){let{gen:n,data:o,$data:r,schema:i,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:u,schemaEnv:l,self:d}=s;if(!c.validateFormats)return;if(r)f();else m();function f(){let v=n.scopeValue(\"formats\",{ref:d.formats,code:c.code.formats}),y=n.const(\"fDef\",X._`${v}[${a}]`),x=n.let(\"fType\"),T=n.let(\"format\");n.if(X._`typeof ${y} == \"object\" && !(${y} instanceof RegExp)`,()=>n.assign(x,X._`${y}.type || \"string\"`).assign(T,X._`${y}.validate`),()=>n.assign(x,X._`\"string\"`).assign(T,y)),e.fail$data((0,X.or)(G(),z()));function G(){if(c.strictSchema===!1)return X.nil;return X._`${a} && !${T}`}function z(){let O=l.$async?X._`(${y}.async ? await ${T}(${o}) : ${T}(${o}))`:X._`${T}(${o})`,P=X._`(typeof ${T} == \"function\" ? ${O} : ${T}.test(${o}))`;return X._`${T} && ${T} !== true && ${x} === ${t} && !${P}`}}function m(){let v=d.formats[i];if(!v){G();return}if(v===!0)return;let[y,x,T]=z(v);if(y===t)e.pass(O());function G(){if(c.strictSchema===!1){d.logger.warn(P());return}throw Error(P());function P(){return`unknown format \"${i}\" ignored in schema at path \"${u}\"`}}function z(P){let ve=P instanceof RegExp?(0,X.regexpCode)(P):c.code.formats?X._`${c.code.formats}${(0,X.getProperty)(i)}`:void 0,we=n.scopeValue(\"formats\",{key:i,ref:P,code:ve});if(typeof P==\"object\"&&!(P instanceof RegExp))return[P.type||\"string\",P.validate,X._`${we}.validate`];return[\"string\",P,we]}function O(){if(typeof v==\"object\"&&!(v instanceof RegExp)&&v.async){if(!l.$async)throw Error(\"async format in sync schema\");return X._`await ${T}(${o})`}return typeof x==\"function\"?X._`${T}(${o})`:X._`${T}.test(${o})`}}}};$w.default=d1});var Pm=_(function(bw){Object.defineProperty(bw,\"__esModule\",{value:!0});var m1=ww(),f1=[m1.default];bw.default=f1});var Cm=_(function(_w){Object.defineProperty(_w,\"__esModule\",{value:!0});_w.contentVocabulary=_w.metadataVocabulary=void 0;_w.metadataVocabulary=[\"title\",\"description\",\"default\",\"deprecated\",\"readOnly\",\"writeOnly\",\"examples\"];_w.contentVocabulary=[\"contentMediaType\",\"contentEncoding\",\"contentSchema\"]});var Em=_(function(Sw){Object.defineProperty(Sw,\"__esModule\",{value:!0});var v1=vm(),y1=wm(),$1=Tm(),w1=Pm(),xw=Cm(),b1=[v1.default,y1.default,(0,$1.default)(),w1.default,xw.metadataVocabulary,xw.contentVocabulary];Sw.default=b1});var Cw=_(function(Tw){Object.defineProperty(Tw,\"__esModule\",{value:!0});Tw.DiscrError=void 0;var Iw;(function(e){e.Tag=\"tag\",e.Mapping=\"mapping\"})(Iw||(Tw.DiscrError=Iw={}))});var ma=_(function(Ow){Object.defineProperty(Ow,\"__esModule\",{value:!0});var Pr=j(),Om=Cw(),Ew=En(),k1=zt(),x1=J(),S1={message:({params:{discrError:e,tagName:t}})=>e===Om.DiscrError.Tag?`tag \"${t}\" must be string`:`value of tag \"${t}\" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>Pr._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},I1={keyword:\"discriminator\",type:\"object\",schemaType:\"object\",error:S1,code(e){let{gen:t,data:n,schema:o,parentSchema:r,it:i}=e,{oneOf:a}=r;if(!i.opts.discriminator)throw Error(\"discriminator: requires discriminator option\");let s=o.propertyName;if(typeof s!=\"string\")throw Error(\"discriminator: requires propertyName\");if(o.mapping)throw Error(\"discriminator: mapping is not supported\");if(!a)throw Error(\"discriminator: requires oneOf keyword\");let c=t.let(\"valid\",!1),u=t.const(\"tag\",Pr._`${n}${(0,Pr.getProperty)(s)}`);t.if(Pr._`typeof ${u} == \"string\"`,()=>l(),()=>e.error(!1,{discrError:Om.DiscrError.Tag,tag:u,tagName:s})),e.ok(c);function l(){let m=f();t.if(!1);for(let v in m)t.elseIf(Pr._`${u} === ${v}`),t.assign(c,d(m[v]));t.else(),e.error(!1,{discrError:Om.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}function d(m){let v=t.name(\"valid\"),y=e.subschema({keyword:\"oneOf\",schemaProp:m},v);return e.mergeEvaluated(y,Pr.Name),v}function f(){var m;let v={},y=T(r),x=!0;for(let O=0;O<a.length;O++){let P=a[O];if((P===null||P===void 0?void 0:P.$ref)&&!(0,x1.schemaHasRulesButRef)(P,i.self.RULES)){let we=P.$ref;if(P=Ew.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,we),P instanceof Ew.SchemaEnv)P=P.schema;if(P===void 0)throw new k1.default(i.opts.uriResolver,i.baseId,we)}let ve=(m=P===null||P===void 0?void 0:P.properties)===null||m===void 0?void 0:m[s];if(typeof ve!=\"object\")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have \"properties/${s}\"`);x=x&&(y||T(P)),G(ve,O)}if(!x)throw Error(`discriminator: \"${s}\" must be required`);return v;function T({required:O}){return Array.isArray(O)&&O.includes(s)}function G(O,P){if(O.const)z(O.const,P);else if(O.enum)for(let ve of O.enum)z(ve,P);else throw Error(`discriminator: \"properties/${s}\" must have \"const\" or \"enum\"`)}function z(O,P){if(typeof O!=\"string\"||O in v)throw Error(`discriminator: \"${s}\" values must be unique strings`);v[O]=P}}}};Ow.default=I1});var zw=_(function(dN,P1){P1.exports={$schema:\"http://json-schema.org/draft-07/schema#\",$id:\"http://json-schema.org/draft-07/schema#\",title:\"Core schema meta-schema\",definitions:{schemaArray:{type:\"array\",minItems:1,items:{$ref:\"#\"}},nonNegativeInteger:{type:\"integer\",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:\"#/definitions/nonNegativeInteger\"},{default:0}]},simpleTypes:{enum:[\"array\",\"boolean\",\"integer\",\"null\",\"number\",\"object\",\"string\"]},stringArray:{type:\"array\",items:{type:\"string\"},uniqueItems:!0,default:[]}},type:[\"object\",\"boolean\"],properties:{$id:{type:\"string\",format:\"uri-reference\"},$schema:{type:\"string\",format:\"uri\"},$ref:{type:\"string\",format:\"uri-reference\"},$comment:{type:\"string\"},title:{type:\"string\"},description:{type:\"string\"},default:!0,readOnly:{type:\"boolean\",default:!1},examples:{type:\"array\",items:!0},multipleOf:{type:\"number\",exclusiveMinimum:0},maximum:{type:\"number\"},exclusiveMaximum:{type:\"number\"},minimum:{type:\"number\"},exclusiveMinimum:{type:\"number\"},maxLength:{$ref:\"#/definitions/nonNegativeInteger\"},minLength:{$ref:\"#/definitions/nonNegativeIntegerDefault0\"},pattern:{type:\"string\",format:\"regex\"},additionalItems:{$ref:\"#\"},items:{anyOf:[{$ref:\"#\"},{$ref:\"#/definitions/schemaArray\"}],default:!0},maxItems:{$ref:\"#/definitions/nonNegativeInteger\"},minItems:{$ref:\"#/definitions/nonNegativeIntegerDefault0\"},uniqueItems:{type:\"boolean\",default:!1},contains:{$ref:\"#\"},maxProperties:{$ref:\"#/definitions/nonNegativeInteger\"},minProperties:{$ref:\"#/definitions/nonNegativeIntegerDefault0\"},required:{$ref:\"#/definitions/stringArray\"},additionalProperties:{$ref:\"#\"},definitions:{type:\"object\",additionalProperties:{$ref:\"#\"},default:{}},properties:{type:\"object\",additionalProperties:{$ref:\"#\"},default:{}},patternProperties:{type:\"object\",additionalProperties:{$ref:\"#\"},propertyNames:{format:\"regex\"},default:{}},dependencies:{type:\"object\",additionalProperties:{anyOf:[{$ref:\"#\"},{$ref:\"#/definitions/stringArray\"}]}},propertyNames:{$ref:\"#\"},const:!0,enum:{type:\"array\",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:\"#/definitions/simpleTypes\"},{type:\"array\",items:{$ref:\"#/definitions/simpleTypes\"},minItems:1,uniqueItems:!0}]},format:{type:\"string\"},contentMediaType:{type:\"string\"},contentEncoding:{type:\"string\"},if:{$ref:\"#\"},then:{$ref:\"#\"},else:{$ref:\"#\"},allOf:{$ref:\"#/definitions/schemaArray\"},anyOf:{$ref:\"#/definitions/schemaArray\"},oneOf:{$ref:\"#/definitions/schemaArray\"},not:{$ref:\"#\"}},default:!0}});var Rw=_(function(fe,zm){Object.defineProperty(fe,\"__esModule\",{value:!0});fe.MissingRefError=fe.ValidationError=fe.CodeGen=fe.Name=fe.nil=fe.stringify=fe.str=fe._=fe.KeywordCxt=fe.Ajv=void 0;var C1=Yi(),E1=Em(),O1=ma(),Aw=zw(),z1=[\"/properties\"],fa=\"http://json-schema.org/draft-07/schema\";class Gn extends C1.default{_addVocabularies(){if(super._addVocabularies(),E1.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(O1.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(Aw,z1):Aw;this.addMetaSchema(e,fa,!1),this.refs[\"http://json-schema.org/schema\"]=fa}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fa)?fa:void 0)}}fe.Ajv=Gn;zm.exports=fe=Gn;zm.exports.Ajv=Gn;Object.defineProperty(fe,\"__esModule\",{value:!0});fe.default=Gn;var A1=Ot();Object.defineProperty(fe,\"KeywordCxt\",{enumerable:!0,get:function(){return A1.KeywordCxt}});var Cr=j();Object.defineProperty(fe,\"_\",{enumerable:!0,get:function(){return Cr._}});Object.defineProperty(fe,\"str\",{enumerable:!0,get:function(){return Cr.str}});Object.defineProperty(fe,\"stringify\",{enumerable:!0,get:function(){return Cr.stringify}});Object.defineProperty(fe,\"nil\",{enumerable:!0,get:function(){return Cr.nil}});Object.defineProperty(fe,\"Name\",{enumerable:!0,get:function(){return Cr.Name}});Object.defineProperty(fe,\"CodeGen\",{enumerable:!0,get:function(){return Cr.CodeGen}});var R1=xr();Object.defineProperty(fe,\"ValidationError\",{enumerable:!0,get:function(){return R1.default}});var j1=zt();Object.defineProperty(fe,\"MissingRefError\",{enumerable:!0,get:function(){return j1.default}})});var Rm=_(function(Dw){Object.defineProperty(Dw,\"__esModule\",{value:!0});Dw.dynamicAnchor=void 0;var Am=j(),q1=ke(),jw=En(),N1=ta(),J1={keyword:\"$dynamicAnchor\",schemaType:\"string\",code:(e)=>Uw(e,e.schema)};function Uw(e,t){let{gen:n,it:o}=e;o.schemaEnv.root.dynamicAnchors[t]=!0;let r=Am._`${q1.default.dynamicAnchors}${(0,Am.getProperty)(t)}`,i=o.errSchemaPath===\"#\"?o.validateName:G1(e);n.if(Am._`!${r}`,()=>n.assign(r,i))}Dw.dynamicAnchor=Uw;function G1(e){let{schemaEnv:t,schema:n,self:o}=e.it,{root:r,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:c}=o.opts,u=new jw.SchemaEnv({schema:n,schemaId:c,root:r,baseId:i,localRefs:a,meta:s});return jw.compileSchema.call(o,u),(0,N1.getValidate)(e,u)}Dw.default=J1});var jm=_(function(Mw){Object.defineProperty(Mw,\"__esModule\",{value:!0});Mw.dynamicRef=void 0;var Nw=j(),Z1=ke(),Jw=ta(),L1={keyword:\"$dynamicRef\",schemaType:\"string\",code:(e)=>Gw(e,e.schema)};function Gw(e,t){let{gen:n,keyword:o,it:r}=e;if(t[0]!==\"#\")throw Error(`\"${o}\" only supports hash fragment reference`);let i=t.slice(1);if(r.allErrors)a();else{let c=n.let(\"valid\",!1);a(c),e.ok(c)}function a(c){if(r.schemaEnv.root.dynamicAnchors[i]){let u=n.let(\"_v\",Nw._`${Z1.default.dynamicAnchors}${(0,Nw.getProperty)(i)}`);n.if(u,s(u,c),s(r.validateName,c))}else s(r.validateName,c)()}function s(c,u){return u?()=>n.block(()=>{(0,Jw.callRef)(e,c),n.let(u,!0)}):()=>(0,Jw.callRef)(e,c)}}Mw.dynamicRef=Gw;Mw.default=L1});var Vw=_(function(Lw){Object.defineProperty(Lw,\"__esModule\",{value:!0});var F1=Rm(),B1=J(),K1={keyword:\"$recursiveAnchor\",schemaType:\"boolean\",code(e){if(e.schema)(0,F1.dynamicAnchor)(e,\"\");else(0,B1.checkStrictMode)(e.it,\"$recursiveAnchor: false is ignored\")}};Lw.default=K1});var Bw=_(function(Fw){Object.defineProperty(Fw,\"__esModule\",{value:!0});var H1=jm(),X1={keyword:\"$recursiveRef\",schemaType:\"string\",code:(e)=>(0,H1.dynamicRef)(e,e.schema)};Fw.default=X1});var Um=_(function(Kw){Object.defineProperty(Kw,\"__esModule\",{value:!0});var Q1=Rm(),ez=jm(),tz=Vw(),rz=Bw(),nz=[Q1.default,ez.default,tz.default,rz.default];Kw.default=nz});var Xw=_(function(Hw){Object.defineProperty(Hw,\"__esModule\",{value:!0});var Ww=sa(),iz={keyword:\"dependentRequired\",type:\"object\",schemaType:\"object\",error:Ww.error,code:(e)=>(0,Ww.validatePropertyDeps)(e)};Hw.default=iz});var Qw=_(function(Yw){Object.defineProperty(Yw,\"__esModule\",{value:!0});var sz=sa(),cz={keyword:\"dependentSchemas\",type:\"object\",schemaType:\"object\",code:(e)=>(0,sz.validateSchemaDeps)(e)};Yw.default=cz});var tb=_(function(eb){Object.defineProperty(eb,\"__esModule\",{value:!0});var lz=J(),dz={keyword:[\"maxContains\",\"minContains\"],type:\"array\",schemaType:\"number\",code({keyword:e,parentSchema:t,it:n}){if(t.contains===void 0)(0,lz.checkStrictMode)(n,`\"${e}\" without \"contains\" is ignored`)}};eb.default=dz});var Dm=_(function(rb){Object.defineProperty(rb,\"__esModule\",{value:!0});var mz=Xw(),fz=Qw(),hz=tb(),gz=[mz.default,fz.default,hz.default];rb.default=gz});var ib=_(function(ob){Object.defineProperty(ob,\"__esModule\",{value:!0});var lt=j(),nb=J(),yz=ke(),$z={message:\"must NOT have unevaluated properties\",params:({params:e})=>lt._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},wz={keyword:\"unevaluatedProperties\",type:\"object\",schemaType:[\"boolean\",\"object\"],trackErrors:!0,error:$z,code(e){let{gen:t,schema:n,data:o,errsCount:r,it:i}=e;if(!r)throw Error(\"ajv implementation error\");let{allErrors:a,props:s}=i;if(s instanceof lt.Name)t.if(lt._`${s} !== true`,()=>t.forIn(\"key\",o,(d)=>t.if(u(s,d),()=>c(d))));else if(s!==!0)t.forIn(\"key\",o,(d)=>s===void 0?c(d):t.if(l(s,d),()=>c(d)));i.props=!0,e.ok(lt._`${r} === ${yz.default.errors}`);function c(d){if(n===!1){if(e.setParams({unevaluatedProperty:d}),e.error(),!a)t.break();return}if(!(0,nb.alwaysValidSchema)(i,n)){let f=t.name(\"valid\");if(e.subschema({keyword:\"unevaluatedProperties\",dataProp:d,dataPropType:nb.Type.Str},f),!a)t.if((0,lt.not)(f),()=>t.break())}}function u(d,f){return lt._`!${d} || !${d}[${f}]`}function l(d,f){let m=[];for(let v in d)if(d[v]===!0)m.push(lt._`${f} !== ${v}`);return(0,lt.and)(...m)}}};ob.default=wz});var cb=_(function(sb){Object.defineProperty(sb,\"__esModule\",{value:!0});var Dt=j(),ab=J(),_z={message:({params:{len:e}})=>Dt.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Dt._`{limit: ${e}}`},kz={keyword:\"unevaluatedItems\",type:\"array\",schemaType:[\"boolean\",\"object\"],error:_z,code(e){let{gen:t,schema:n,data:o,it:r}=e,i=r.items||0;if(i===!0)return;let a=t.const(\"len\",Dt._`${o}.length`);if(n===!1)e.setParams({len:i}),e.fail(Dt._`${a} > ${i}`);else if(typeof n==\"object\"&&!(0,ab.alwaysValidSchema)(r,n)){let c=t.var(\"valid\",Dt._`${a} <= ${i}`);t.if((0,Dt.not)(c),()=>s(c,i)),e.ok(c)}r.items=!0;function s(c,u){t.forRange(\"i\",u,a,(l)=>{if(e.subschema({keyword:\"unevaluatedItems\",dataProp:l,dataPropType:ab.Type.Num},c),!r.allErrors)t.if((0,Dt.not)(c),()=>t.break())})}}};sb.default=kz});var qm=_(function(ub){Object.defineProperty(ub,\"__esModule\",{value:!0});var Sz=ib(),Iz=cb(),Tz=[Sz.default,Iz.default];ub.default=Tz});var lb=_(function(zN,Cz){Cz.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/schema\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/core\":!0,\"https://json-schema.org/draft/2019-09/vocab/applicator\":!0,\"https://json-schema.org/draft/2019-09/vocab/validation\":!0,\"https://json-schema.org/draft/2019-09/vocab/meta-data\":!0,\"https://json-schema.org/draft/2019-09/vocab/format\":!1,\"https://json-schema.org/draft/2019-09/vocab/content\":!0},$recursiveAnchor:!0,title:\"Core and Validation specifications meta-schema\",allOf:[{$ref:\"meta/core\"},{$ref:\"meta/applicator\"},{$ref:\"meta/validation\"},{$ref:\"meta/meta-data\"},{$ref:\"meta/format\"},{$ref:\"meta/content\"}],type:[\"object\",\"boolean\"],properties:{definitions:{$comment:\"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.\",type:\"object\",additionalProperties:{$recursiveRef:\"#\"},default:{}},dependencies:{$comment:'\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"',type:\"object\",additionalProperties:{anyOf:[{$recursiveRef:\"#\"},{$ref:\"meta/validation#/$defs/stringArray\"}]}}}}});var db=_(function(AN,Ez){Ez.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/meta/applicator\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/applicator\":!0},$recursiveAnchor:!0,title:\"Applicator vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{additionalItems:{$recursiveRef:\"#\"},unevaluatedItems:{$recursiveRef:\"#\"},items:{anyOf:[{$recursiveRef:\"#\"},{$ref:\"#/$defs/schemaArray\"}]},contains:{$recursiveRef:\"#\"},additionalProperties:{$recursiveRef:\"#\"},unevaluatedProperties:{$recursiveRef:\"#\"},properties:{type:\"object\",additionalProperties:{$recursiveRef:\"#\"},default:{}},patternProperties:{type:\"object\",additionalProperties:{$recursiveRef:\"#\"},propertyNames:{format:\"regex\"},default:{}},dependentSchemas:{type:\"object\",additionalProperties:{$recursiveRef:\"#\"}},propertyNames:{$recursiveRef:\"#\"},if:{$recursiveRef:\"#\"},then:{$recursiveRef:\"#\"},else:{$recursiveRef:\"#\"},allOf:{$ref:\"#/$defs/schemaArray\"},anyOf:{$ref:\"#/$defs/schemaArray\"},oneOf:{$ref:\"#/$defs/schemaArray\"},not:{$recursiveRef:\"#\"}},$defs:{schemaArray:{type:\"array\",minItems:1,items:{$recursiveRef:\"#\"}}}}});var pb=_(function(RN,Oz){Oz.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/meta/content\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/content\":!0},$recursiveAnchor:!0,title:\"Content vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{contentMediaType:{type:\"string\"},contentEncoding:{type:\"string\"},contentSchema:{$recursiveRef:\"#\"}}}});var mb=_(function(jN,zz){zz.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/meta/core\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/core\":!0},$recursiveAnchor:!0,title:\"Core vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{$id:{type:\"string\",format:\"uri-reference\",$comment:\"Non-empty fragments not allowed.\",pattern:\"^[^#]*#?$\"},$schema:{type:\"string\",format:\"uri\"},$anchor:{type:\"string\",pattern:\"^[A-Za-z][-A-Za-z0-9.:_]*$\"},$ref:{type:\"string\",format:\"uri-reference\"},$recursiveRef:{type:\"string\",format:\"uri-reference\"},$recursiveAnchor:{type:\"boolean\",default:!1},$vocabulary:{type:\"object\",propertyNames:{type:\"string\",format:\"uri\"},additionalProperties:{type:\"boolean\"}},$comment:{type:\"string\"},$defs:{type:\"object\",additionalProperties:{$recursiveRef:\"#\"},default:{}}}}});var fb=_(function(UN,Az){Az.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/meta/format\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/format\":!0},$recursiveAnchor:!0,title:\"Format vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{format:{type:\"string\"}}}});var hb=_(function(DN,Rz){Rz.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/meta/meta-data\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/meta-data\":!0},$recursiveAnchor:!0,title:\"Meta-data vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{title:{type:\"string\"},description:{type:\"string\"},default:!0,deprecated:{type:\"boolean\",default:!1},readOnly:{type:\"boolean\",default:!1},writeOnly:{type:\"boolean\",default:!1},examples:{type:\"array\",items:!0}}}});var gb=_(function(qN,jz){jz.exports={$schema:\"https://json-schema.org/draft/2019-09/schema\",$id:\"https://json-schema.org/draft/2019-09/meta/validation\",$vocabulary:{\"https://json-schema.org/draft/2019-09/vocab/validation\":!0},$recursiveAnchor:!0,title:\"Validation vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{multipleOf:{type:\"number\",exclusiveMinimum:0},maximum:{type:\"number\"},exclusiveMaximum:{type:\"number\"},minimum:{type:\"number\"},exclusiveMinimum:{type:\"number\"},maxLength:{$ref:\"#/$defs/nonNegativeInteger\"},minLength:{$ref:\"#/$defs/nonNegativeIntegerDefault0\"},pattern:{type:\"string\",format:\"regex\"},maxItems:{$ref:\"#/$defs/nonNegativeInteger\"},minItems:{$ref:\"#/$defs/nonNegativeIntegerDefault0\"},uniqueItems:{type:\"boolean\",default:!1},maxContains:{$ref:\"#/$defs/nonNegativeInteger\"},minContains:{$ref:\"#/$defs/nonNegativeInteger\",default:1},maxProperties:{$ref:\"#/$defs/nonNegativeInteger\"},minProperties:{$ref:\"#/$defs/nonNegativeIntegerDefault0\"},required:{$ref:\"#/$defs/stringArray\"},dependentRequired:{type:\"object\",additionalProperties:{$ref:\"#/$defs/stringArray\"}},const:!0,enum:{type:\"array\",items:!0},type:{anyOf:[{$ref:\"#/$defs/simpleTypes\"},{type:\"array\",items:{$ref:\"#/$defs/simpleTypes\"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:\"integer\",minimum:0},nonNegativeIntegerDefault0:{$ref:\"#/$defs/nonNegativeInteger\",default:0},simpleTypes:{enum:[\"array\",\"boolean\",\"integer\",\"null\",\"number\",\"object\",\"string\"]},stringArray:{type:\"array\",items:{type:\"string\"},uniqueItems:!0,default:[]}}}});var yb=_(function(vb){Object.defineProperty(vb,\"__esModule\",{value:!0});var Uz=lb(),Dz=db(),qz=pb(),Nz=mb(),Jz=fb(),Gz=hb(),Mz=gb(),Zz=[\"/properties\"];function Lz(e){return[Uz,Dz,qz,Nz,t(this,Jz),Gz,t(this,Mz)].forEach((n)=>this.addMetaSchema(n,void 0,!1)),this;function t(n,o){return e?n.$dataMetaSchema(o,Zz):o}}vb.default=Lz});var $b=_(function(he,Jm){Object.defineProperty(he,\"__esModule\",{value:!0});he.MissingRefError=he.ValidationError=he.CodeGen=he.Name=he.nil=he.stringify=he.str=he._=he.KeywordCxt=he.Ajv2019=void 0;var Fz=Yi(),Bz=Em(),Kz=Um(),Wz=Dm(),Hz=qm(),Xz=ma(),Yz=yb(),Nm=\"https://json-schema.org/draft/2019-09/schema\";class Mn extends Fz.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){if(super._addVocabularies(),this.addVocabulary(Kz.default),Bz.default.forEach((e)=>this.addVocabulary(e)),this.addVocabulary(Wz.default),this.addVocabulary(Hz.default),this.opts.discriminator)this.addKeyword(Xz.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;if(!t)return;Yz.default.call(this,e),this.refs[\"http://json-schema.org/schema\"]=Nm}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Nm)?Nm:void 0)}}he.Ajv2019=Mn;Jm.exports=he=Mn;Jm.exports.Ajv2019=Mn;Object.defineProperty(he,\"__esModule\",{value:!0});he.default=Mn;var Qz=Ot();Object.defineProperty(he,\"KeywordCxt\",{enumerable:!0,get:function(){return Qz.KeywordCxt}});var Er=j();Object.defineProperty(he,\"_\",{enumerable:!0,get:function(){return Er._}});Object.defineProperty(he,\"str\",{enumerable:!0,get:function(){return Er.str}});Object.defineProperty(he,\"stringify\",{enumerable:!0,get:function(){return Er.stringify}});Object.defineProperty(he,\"nil\",{enumerable:!0,get:function(){return Er.nil}});Object.defineProperty(he,\"Name\",{enumerable:!0,get:function(){return Er.Name}});Object.defineProperty(he,\"CodeGen\",{enumerable:!0,get:function(){return Er.CodeGen}});var eA=xr();Object.defineProperty(he,\"ValidationError\",{enumerable:!0,get:function(){return eA.default}});var tA=zt();Object.defineProperty(he,\"MissingRefError\",{enumerable:!0,get:function(){return tA.default}})});var _b=_(function(bb){Object.defineProperty(bb,\"__esModule\",{value:!0});var oA=vm(),iA=wm(),aA=Tm(),sA=Um(),cA=Dm(),uA=qm(),lA=Pm(),wb=Cm(),dA=[sA.default,oA.default,iA.default,(0,aA.default)(!0),lA.default,wb.metadataVocabulary,wb.contentVocabulary,cA.default,uA.default];bb.default=dA});var kb=_(function(WN,mA){mA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/schema\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/core\":!0,\"https://json-schema.org/draft/2020-12/vocab/applicator\":!0,\"https://json-schema.org/draft/2020-12/vocab/unevaluated\":!0,\"https://json-schema.org/draft/2020-12/vocab/validation\":!0,\"https://json-schema.org/draft/2020-12/vocab/meta-data\":!0,\"https://json-schema.org/draft/2020-12/vocab/format-annotation\":!0,\"https://json-schema.org/draft/2020-12/vocab/content\":!0},$dynamicAnchor:\"meta\",title:\"Core and Validation specifications meta-schema\",allOf:[{$ref:\"meta/core\"},{$ref:\"meta/applicator\"},{$ref:\"meta/unevaluated\"},{$ref:\"meta/validation\"},{$ref:\"meta/meta-data\"},{$ref:\"meta/format-annotation\"},{$ref:\"meta/content\"}],type:[\"object\",\"boolean\"],$comment:\"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.\",properties:{definitions:{$comment:'\"definitions\" has been replaced by \"$defs\".',type:\"object\",additionalProperties:{$dynamicRef:\"#meta\"},deprecated:!0,default:{}},dependencies:{$comment:'\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.',type:\"object\",additionalProperties:{anyOf:[{$dynamicRef:\"#meta\"},{$ref:\"meta/validation#/$defs/stringArray\"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".',$ref:\"meta/core#/$defs/anchorString\",deprecated:!0},$recursiveRef:{$comment:'\"$recursiveRef\" has been replaced by \"$dynamicRef\".',$ref:\"meta/core#/$defs/uriReferenceString\",deprecated:!0}}}});var xb=_(function(HN,fA){fA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/applicator\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/applicator\":!0},$dynamicAnchor:\"meta\",title:\"Applicator vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{prefixItems:{$ref:\"#/$defs/schemaArray\"},items:{$dynamicRef:\"#meta\"},contains:{$dynamicRef:\"#meta\"},additionalProperties:{$dynamicRef:\"#meta\"},properties:{type:\"object\",additionalProperties:{$dynamicRef:\"#meta\"},default:{}},patternProperties:{type:\"object\",additionalProperties:{$dynamicRef:\"#meta\"},propertyNames:{format:\"regex\"},default:{}},dependentSchemas:{type:\"object\",additionalProperties:{$dynamicRef:\"#meta\"},default:{}},propertyNames:{$dynamicRef:\"#meta\"},if:{$dynamicRef:\"#meta\"},then:{$dynamicRef:\"#meta\"},else:{$dynamicRef:\"#meta\"},allOf:{$ref:\"#/$defs/schemaArray\"},anyOf:{$ref:\"#/$defs/schemaArray\"},oneOf:{$ref:\"#/$defs/schemaArray\"},not:{$dynamicRef:\"#meta\"}},$defs:{schemaArray:{type:\"array\",minItems:1,items:{$dynamicRef:\"#meta\"}}}}});var Sb=_(function(XN,hA){hA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/unevaluated\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/unevaluated\":!0},$dynamicAnchor:\"meta\",title:\"Unevaluated applicator vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{unevaluatedItems:{$dynamicRef:\"#meta\"},unevaluatedProperties:{$dynamicRef:\"#meta\"}}}});var Ib=_(function(YN,gA){gA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/content\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/content\":!0},$dynamicAnchor:\"meta\",title:\"Content vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{contentEncoding:{type:\"string\"},contentMediaType:{type:\"string\"},contentSchema:{$dynamicRef:\"#meta\"}}}});var Tb=_(function(QN,vA){vA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/core\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/core\":!0},$dynamicAnchor:\"meta\",title:\"Core vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{$id:{$ref:\"#/$defs/uriReferenceString\",$comment:\"Non-empty fragments not allowed.\",pattern:\"^[^#]*#?$\"},$schema:{$ref:\"#/$defs/uriString\"},$ref:{$ref:\"#/$defs/uriReferenceString\"},$anchor:{$ref:\"#/$defs/anchorString\"},$dynamicRef:{$ref:\"#/$defs/uriReferenceString\"},$dynamicAnchor:{$ref:\"#/$defs/anchorString\"},$vocabulary:{type:\"object\",propertyNames:{$ref:\"#/$defs/uriString\"},additionalProperties:{type:\"boolean\"}},$comment:{type:\"string\"},$defs:{type:\"object\",additionalProperties:{$dynamicRef:\"#meta\"}}},$defs:{anchorString:{type:\"string\",pattern:\"^[A-Za-z_][-A-Za-z0-9._]*$\"},uriString:{type:\"string\",format:\"uri\"},uriReferenceString:{type:\"string\",format:\"uri-reference\"}}}});var Pb=_(function(e4,yA){yA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/format-annotation\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/format-annotation\":!0},$dynamicAnchor:\"meta\",title:\"Format vocabulary meta-schema for annotation results\",type:[\"object\",\"boolean\"],properties:{format:{type:\"string\"}}}});var Cb=_(function(t4,$A){$A.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/meta-data\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/meta-data\":!0},$dynamicAnchor:\"meta\",title:\"Meta-data vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{title:{type:\"string\"},description:{type:\"string\"},default:!0,deprecated:{type:\"boolean\",default:!1},readOnly:{type:\"boolean\",default:!1},writeOnly:{type:\"boolean\",default:!1},examples:{type:\"array\",items:!0}}}});var Eb=_(function(r4,wA){wA.exports={$schema:\"https://json-schema.org/draft/2020-12/schema\",$id:\"https://json-schema.org/draft/2020-12/meta/validation\",$vocabulary:{\"https://json-schema.org/draft/2020-12/vocab/validation\":!0},$dynamicAnchor:\"meta\",title:\"Validation vocabulary meta-schema\",type:[\"object\",\"boolean\"],properties:{type:{anyOf:[{$ref:\"#/$defs/simpleTypes\"},{type:\"array\",items:{$ref:\"#/$defs/simpleTypes\"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:\"array\",items:!0},multipleOf:{type:\"number\",exclusiveMinimum:0},maximum:{type:\"number\"},exclusiveMaximum:{type:\"number\"},minimum:{type:\"number\"},exclusiveMinimum:{type:\"number\"},maxLength:{$ref:\"#/$defs/nonNegativeInteger\"},minLength:{$ref:\"#/$defs/nonNegativeIntegerDefault0\"},pattern:{type:\"string\",format:\"regex\"},maxItems:{$ref:\"#/$defs/nonNegativeInteger\"},minItems:{$ref:\"#/$defs/nonNegativeIntegerDefault0\"},uniqueItems:{type:\"boolean\",default:!1},maxContains:{$ref:\"#/$defs/nonNegativeInteger\"},minContains:{$ref:\"#/$defs/nonNegativeInteger\",default:1},maxProperties:{$ref:\"#/$defs/nonNegativeInteger\"},minProperties:{$ref:\"#/$defs/nonNegativeIntegerDefault0\"},required:{$ref:\"#/$defs/stringArray\"},dependentRequired:{type:\"object\",additionalProperties:{$ref:\"#/$defs/stringArray\"}}},$defs:{nonNegativeInteger:{type:\"integer\",minimum:0},nonNegativeIntegerDefault0:{$ref:\"#/$defs/nonNegativeInteger\",default:0},simpleTypes:{enum:[\"array\",\"boolean\",\"integer\",\"null\",\"number\",\"object\",\"string\"]},stringArray:{type:\"array\",items:{type:\"string\"},uniqueItems:!0,default:[]}}}});var zb=_(function(Ob){Object.defineProperty(Ob,\"__esModule\",{value:!0});var bA=kb(),_A=xb(),kA=Sb(),xA=Ib(),SA=Tb(),IA=Pb(),TA=Cb(),PA=Eb(),CA=[\"/properties\"];function EA(e){return[bA,_A,kA,xA,SA,t(this,IA),TA,t(this,PA)].forEach((n)=>this.addMetaSchema(n,void 0,!1)),this;function t(n,o){return e?n.$dataMetaSchema(o,CA):o}}Ob.default=EA});var Ab=_(function(ge,Mm){Object.defineProperty(ge,\"__esModule\",{value:!0});ge.MissingRefError=ge.ValidationError=ge.CodeGen=ge.Name=ge.nil=ge.stringify=ge.str=ge._=ge.KeywordCxt=ge.Ajv2020=void 0;var zA=Yi(),AA=_b(),RA=ma(),jA=zb(),Gm=\"https://json-schema.org/draft/2020-12/schema\";class Zn extends zA.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){if(super._addVocabularies(),AA.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(RA.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;if(!t)return;jA.default.call(this,e),this.refs[\"http://json-schema.org/schema\"]=Gm}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Gm)?Gm:void 0)}}ge.Ajv2020=Zn;Mm.exports=ge=Zn;Mm.exports.Ajv2020=Zn;Object.defineProperty(ge,\"__esModule\",{value:!0});ge.default=Zn;var UA=Ot();Object.defineProperty(ge,\"KeywordCxt\",{enumerable:!0,get:function(){return UA.KeywordCxt}});var Or=j();Object.defineProperty(ge,\"_\",{enumerable:!0,get:function(){return Or._}});Object.defineProperty(ge,\"str\",{enumerable:!0,get:function(){return Or.str}});Object.defineProperty(ge,\"stringify\",{enumerable:!0,get:function(){return Or.stringify}});Object.defineProperty(ge,\"nil\",{enumerable:!0,get:function(){return Or.nil}});Object.defineProperty(ge,\"Name\",{enumerable:!0,get:function(){return Or.Name}});Object.defineProperty(ge,\"CodeGen\",{enumerable:!0,get:function(){return Or.CodeGen}});var DA=xr();Object.defineProperty(ge,\"ValidationError\",{enumerable:!0,get:function(){return DA.default}});var qA=zt();Object.defineProperty(ge,\"MissingRefError\",{enumerable:!0,get:function(){return qA.default}})});import{randomUUID as bR}from\"node:crypto\";var g={};Ne(g,{$brand:()=>Ia,$input:()=>Gu,$output:()=>Ju,NEVER:()=>Sa,TimePrecision:()=>Fu,ZodAny:()=>Ud,ZodArray:()=>Jd,ZodBase64:()=>vi,ZodBase64URL:()=>yi,ZodBigInt:()=>vr,ZodBigIntFormat:()=>bi,ZodBoolean:()=>gr,ZodCIDRv4:()=>hi,ZodCIDRv6:()=>gi,ZodCUID:()=>ci,ZodCUID2:()=>ui,ZodCatch:()=>cp,ZodCodec:()=>vn,ZodCustom:()=>yn,ZodCustomStringFormat:()=>fr,ZodDate:()=>pn,ZodDefault:()=>rp,ZodDiscriminatedUnion:()=>Md,ZodE164:()=>$i,ZodEmail:()=>ii,ZodEmoji:()=>ai,ZodEnum:()=>pr,ZodError:()=>rS,ZodExactOptional:()=>Qd,ZodFile:()=>Xd,ZodFirstPartyTypeKind:()=>bp,ZodFunction:()=>yp,ZodGUID:()=>sn,ZodIPv4:()=>mi,ZodIPv6:()=>fi,ZodISODate:()=>Qo,ZodISODateTime:()=>Yo,ZodISODuration:()=>ti,ZodISOTime:()=>ei,ZodIntersection:()=>Zd,ZodIssueCode:()=>oS,ZodJWT:()=>wi,ZodKSUID:()=>pi,ZodLazy:()=>hp,ZodLiteral:()=>Hd,ZodMAC:()=>Cd,ZodMap:()=>Kd,ZodNaN:()=>lp,ZodNanoID:()=>si,ZodNever:()=>qd,ZodNonOptional:()=>Ti,ZodNull:()=>Rd,ZodNullable:()=>tp,ZodNumber:()=>hr,ZodNumberFormat:()=>It,ZodObject:()=>fn,ZodOptional:()=>Ii,ZodPipe:()=>gn,ZodPrefault:()=>op,ZodPreprocess:()=>dp,ZodPromise:()=>vp,ZodReadonly:()=>pp,ZodRealError:()=>le,ZodRecord:()=>dr,ZodSet:()=>Wd,ZodString:()=>mr,ZodStringFormat:()=>F,ZodSuccess:()=>sp,ZodSymbol:()=>zd,ZodTemplateLiteral:()=>fp,ZodTransform:()=>Yd,ZodTuple:()=>Vd,ZodType:()=>U,ZodULID:()=>li,ZodURL:()=>dn,ZodUUID:()=>Ue,ZodUndefined:()=>Ad,ZodUnion:()=>hn,ZodUnknown:()=>Dd,ZodVoid:()=>Nd,ZodXID:()=>di,ZodXor:()=>Gd,_ZodString:()=>oi,_default:()=>np,_function:()=>rg,any:()=>Ah,array:()=>mn,base64:()=>gh,base64url:()=>vh,bigint:()=>Ph,boolean:()=>Od,catch:()=>up,check:()=>ng,cidrv4:()=>fh,cidrv6:()=>hh,clone:()=>re,codec:()=>Yh,coerce:()=>_p,config:()=>H,core:()=>Me,cuid:()=>ah,cuid2:()=>sh,custom:()=>og,date:()=>jh,decode:()=>_d,decodeAsync:()=>xd,describe:()=>ig,discriminatedUnion:()=>Gh,e164:()=>yh,email:()=>Hf,emoji:()=>oh,encode:()=>bd,encodeAsync:()=>kd,endsWith:()=>tr,enum:()=>xi,exactOptional:()=>ep,file:()=>Kh,flattenError:()=>Zr,float32:()=>xh,float64:()=>Sh,formatError:()=>Lr,fromJSONSchema:()=>pg,function:()=>rg,getErrorMap:()=>aS,globalRegistry:()=>Y,gt:()=>Re,gte:()=>oe,guid:()=>Xf,hash:()=>kh,hex:()=>_h,hostname:()=>bh,httpUrl:()=>nh,includes:()=>Qt,instanceof:()=>sg,int:()=>ri,int32:()=>Ih,int64:()=>Ch,intersection:()=>Ld,invertCodec:()=>Qh,ipv4:()=>dh,ipv6:()=>mh,iso:()=>lr,json:()=>ug,jwt:()=>$h,keyof:()=>Uh,ksuid:()=>lh,lazy:()=>gp,length:()=>xt,literal:()=>Bh,locales:()=>tn,looseObject:()=>Nh,looseRecord:()=>Zh,lowercase:()=>Xt,lt:()=>Ae,lte:()=>$e,mac:()=>ph,map:()=>Lh,maxLength:()=>kt,maxSize:()=>Qe,meta:()=>ag,mime:()=>rr,minLength:()=>Ge,minSize:()=>je,multipleOf:()=>Ye,nan:()=>Xh,nanoid:()=>ih,nativeEnum:()=>Fh,negative:()=>Zo,never:()=>_i,nonnegative:()=>Vo,nonoptional:()=>ap,nonpositive:()=>Lo,normalize:()=>nr,null:()=>jd,nullable:()=>un,nullish:()=>Wh,number:()=>Ed,object:()=>Dh,optional:()=>cn,overwrite:()=>Ie,parse:()=>vd,parseAsync:()=>yd,partialRecord:()=>Mh,pipe:()=>ni,positive:()=>Mo,prefault:()=>ip,preprocess:()=>lg,prettifyError:()=>qa,promise:()=>tg,property:()=>Fo,readonly:()=>mp,record:()=>Bd,refine:()=>$p,regex:()=>Ht,regexes:()=>ye,registry:()=>bo,safeDecode:()=>Id,safeDecodeAsync:()=>Pd,safeEncode:()=>Sd,safeEncodeAsync:()=>Td,safeParse:()=>$d,safeParseAsync:()=>wd,set:()=>Vh,setErrorMap:()=>iS,size:()=>_t,slugify:()=>sr,startsWith:()=>er,strictObject:()=>qh,string:()=>an,stringFormat:()=>wh,stringbool:()=>cg,success:()=>Hh,superRefine:()=>wp,symbol:()=>Oh,templateLiteral:()=>eg,toJSONSchema:()=>Ho,toLowerCase:()=>ir,toUpperCase:()=>ar,transform:()=>Si,treeifyError:()=>Da,trim:()=>or,tuple:()=>Fd,uint32:()=>Th,uint64:()=>Eh,ulid:()=>ch,undefined:()=>zh,union:()=>ki,unknown:()=>St,uppercase:()=>Yt,url:()=>rh,util:()=>k,uuid:()=>Yf,uuidv4:()=>Qf,uuidv6:()=>eh,uuidv7:()=>th,void:()=>Rh,xid:()=>uh,xor:()=>Jh});var Me={};Ne(Me,{$ZodAny:()=>mc,$ZodArray:()=>yc,$ZodAsyncError:()=>ze,$ZodBase64:()=>nc,$ZodBase64URL:()=>oc,$ZodBigInt:()=>vo,$ZodBigIntFormat:()=>uc,$ZodBoolean:()=>Kr,$ZodCIDRv4:()=>ec,$ZodCIDRv6:()=>tc,$ZodCUID:()=>Ms,$ZodCUID2:()=>Zs,$ZodCatch:()=>Uc,$ZodCheck:()=>B,$ZodCheckBigIntFormat:()=>ys,$ZodCheckEndsWith:()=>Es,$ZodCheckGreaterThan:()=>uo,$ZodCheckIncludes:()=>Ps,$ZodCheckLengthEquals:()=>xs,$ZodCheckLessThan:()=>co,$ZodCheckLowerCase:()=>Is,$ZodCheckMaxLength:()=>_s,$ZodCheckMaxSize:()=>$s,$ZodCheckMimeType:()=>zs,$ZodCheckMinLength:()=>ks,$ZodCheckMinSize:()=>ws,$ZodCheckMultipleOf:()=>gs,$ZodCheckNumberFormat:()=>vs,$ZodCheckOverwrite:()=>As,$ZodCheckProperty:()=>Os,$ZodCheckRegex:()=>Ss,$ZodCheckSizeEquals:()=>bs,$ZodCheckStartsWith:()=>Cs,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>Ts,$ZodCodec:()=>Hr,$ZodCustom:()=>Lc,$ZodCustomStringFormat:()=>sc,$ZodDate:()=>vc,$ZodDefault:()=>zc,$ZodDiscriminatedUnion:()=>bc,$ZodE164:()=>ic,$ZodEmail:()=>qs,$ZodEmoji:()=>Js,$ZodEncodeError:()=>yt,$ZodEnum:()=>Ic,$ZodError:()=>Mr,$ZodExactOptional:()=>Ec,$ZodFile:()=>Pc,$ZodFunction:()=>Gc,$ZodGUID:()=>Us,$ZodIPv4:()=>Xs,$ZodIPv6:()=>Ys,$ZodISODate:()=>Ks,$ZodISODateTime:()=>Bs,$ZodISODuration:()=>Hs,$ZodISOTime:()=>Ws,$ZodIntersection:()=>_c,$ZodJWT:()=>ac,$ZodKSUID:()=>Fs,$ZodLazy:()=>Zc,$ZodLiteral:()=>Tc,$ZodMAC:()=>Qs,$ZodMap:()=>xc,$ZodNaN:()=>Dc,$ZodNanoID:()=>Gs,$ZodNever:()=>hc,$ZodNonOptional:()=>Rc,$ZodNull:()=>pc,$ZodNullable:()=>Oc,$ZodNumber:()=>go,$ZodNumberFormat:()=>cc,$ZodObject:()=>Jf,$ZodObjectJIT:()=>$c,$ZodOptional:()=>$o,$ZodPipe:()=>wo,$ZodPrefault:()=>Ac,$ZodPreprocess:()=>qc,$ZodPromise:()=>Mc,$ZodReadonly:()=>Nc,$ZodRealError:()=>ue,$ZodRecord:()=>kc,$ZodRegistry:()=>Mu,$ZodSet:()=>Sc,$ZodString:()=>bt,$ZodStringFormat:()=>V,$ZodSuccess:()=>jc,$ZodSymbol:()=>lc,$ZodTemplateLiteral:()=>Jc,$ZodTransform:()=>Cc,$ZodTuple:()=>yo,$ZodType:()=>A,$ZodULID:()=>Ls,$ZodURL:()=>Ns,$ZodUUID:()=>Ds,$ZodUndefined:()=>dc,$ZodUnion:()=>Wr,$ZodUnknown:()=>fc,$ZodVoid:()=>gc,$ZodXID:()=>Vs,$ZodXor:()=>wc,$brand:()=>Ia,$constructor:()=>p,$input:()=>Gu,$output:()=>Ju,Doc:()=>lo,JSONSchema:()=>Bf,JSONSchemaGenerator:()=>pd,NEVER:()=>Sa,TimePrecision:()=>Fu,_any:()=>ml,_array:()=>wl,_base64:()=>qo,_base64url:()=>No,_bigint:()=>al,_boolean:()=>ol,_catch:()=>Kx,_check:()=>Ff,_cidrv4:()=>Uo,_cidrv6:()=>Do,_coercedBigint:()=>sl,_coercedBoolean:()=>il,_coercedDate:()=>yl,_coercedNumber:()=>Yu,_coercedString:()=>Lu,_cuid:()=>Co,_cuid2:()=>Eo,_custom:()=>_l,_date:()=>vl,_decode:()=>eo,_decodeAsync:()=>ro,_default:()=>Vx,_discriminatedUnion:()=>Ax,_e164:()=>Jo,_email:()=>_o,_emoji:()=>To,_encode:()=>Qn,_encodeAsync:()=>to,_endsWith:()=>tr,_enum:()=>Nx,_file:()=>bl,_float32:()=>el,_float64:()=>tl,_gt:()=>Re,_gte:()=>oe,_guid:()=>rn,_includes:()=>Qt,_int:()=>Qu,_int32:()=>rl,_int64:()=>cl,_intersection:()=>Rx,_ipv4:()=>Ro,_ipv6:()=>jo,_isoDate:()=>Ku,_isoDateTime:()=>Bu,_isoDuration:()=>Hu,_isoTime:()=>Wu,_jwt:()=>Go,_ksuid:()=>Ao,_lazy:()=>Yx,_length:()=>xt,_literal:()=>Gx,_lowercase:()=>Xt,_lt:()=>Ae,_lte:()=>$e,_mac:()=>Vu,_map:()=>Dx,_max:()=>$e,_maxLength:()=>kt,_maxSize:()=>Qe,_mime:()=>rr,_min:()=>oe,_minLength:()=>Ge,_minSize:()=>je,_multipleOf:()=>Ye,_nan:()=>$l,_nanoid:()=>Po,_nativeEnum:()=>Jx,_negative:()=>Zo,_never:()=>hl,_nonnegative:()=>Vo,_nonoptional:()=>Fx,_nonpositive:()=>Lo,_normalize:()=>nr,_null:()=>pl,_nullable:()=>Lx,_number:()=>Xu,_optional:()=>Zx,_overwrite:()=>Ie,_parse:()=>Lt,_parseAsync:()=>Vt,_pipe:()=>Wx,_positive:()=>Mo,_promise:()=>Qx,_property:()=>Fo,_readonly:()=>Hx,_record:()=>Ux,_refine:()=>kl,_regex:()=>Ht,_safeDecode:()=>oo,_safeDecodeAsync:()=>ao,_safeEncode:()=>no,_safeEncodeAsync:()=>io,_safeParse:()=>Ft,_safeParseAsync:()=>Bt,_set:()=>qx,_size:()=>_t,_slugify:()=>sr,_startsWith:()=>er,_string:()=>Zu,_stringFormat:()=>cr,_stringbool:()=>Tl,_success:()=>Bx,_superRefine:()=>xl,_symbol:()=>ll,_templateLiteral:()=>Xx,_toLowerCase:()=>ir,_toUpperCase:()=>ar,_transform:()=>Mx,_trim:()=>or,_tuple:()=>jx,_uint32:()=>nl,_uint64:()=>ul,_ulid:()=>Oo,_undefined:()=>dl,_union:()=>Ox,_unknown:()=>fl,_uppercase:()=>Yt,_url:()=>nn,_uuid:()=>ko,_uuidv4:()=>xo,_uuidv6:()=>So,_uuidv7:()=>Io,_void:()=>gl,_xid:()=>zo,_xor:()=>zx,clone:()=>re,config:()=>H,createStandardJSONSchemaMethod:()=>ur,createToJSONSchemaMethod:()=>Pl,decode:()=>Q_,decodeAsync:()=>tk,describe:()=>Sl,encode:()=>Y_,encodeAsync:()=>ek,extractDefs:()=>tt,finalize:()=>rt,flattenError:()=>Zr,formatError:()=>Lr,globalConfig:()=>vt,globalRegistry:()=>Y,initializeContext:()=>et,isValidBase64:()=>rc,isValidBase64URL:()=>Uf,isValidJWT:()=>Df,locales:()=>tn,meta:()=>Il,parse:()=>Xn,parseAsync:()=>Yn,prettifyError:()=>qa,process:()=>L,regexes:()=>ye,registry:()=>bo,safeDecode:()=>nk,safeDecodeAsync:()=>ik,safeEncode:()=>rk,safeEncodeAsync:()=>ok,safeParse:()=>Na,safeParseAsync:()=>Ja,toDotPath:()=>hf,toJSONSchema:()=>Ho,treeifyError:()=>Da,util:()=>k,version:()=>Rs});var uf,Sa=Object.freeze({status:\"aborted\"});function p(e,t,n){function o(s,c){if(!s._zod)Object.defineProperty(s,\"_zod\",{value:{def:c,constr:a,traits:new Set},enumerable:!1});if(s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){let f=l[d];if(!(f in s))s[f]=u[f].bind(s)}}let r=n?.Parent??Object;class i extends r{}Object.defineProperty(i,\"name\",{value:e});function a(s){var c;let u=n?.Parent?new i:this;o(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(a,\"init\",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:(s)=>{if(n?.Parent&&s instanceof n.Parent)return!0;return s?._zod?.traits?.has(e)}}),Object.defineProperty(a,\"name\",{value:e}),a}var Ia=Symbol(\"zod_brand\");class ze extends Error{constructor(){super(\"Encountered Promise during synchronous parse. Use .parseAsync() instead.\")}}class yt extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name=\"ZodEncodeError\"}}(uf=globalThis).__zod_globalConfig??(uf.__zod_globalConfig={});var vt=globalThis.__zod_globalConfig;function H(e){if(e)Object.assign(vt,e);return vt}var k={};Ne(k,{BIGINT_FORMAT_RANGES:()=>ja,Class:()=>mf,NUMBER_FORMAT_RANGES:()=>Ra,aborted:()=>Xe,allowsEval:()=>Ea,assert:()=>E_,assertEqual:()=>I_,assertIs:()=>P_,assertNever:()=>C_,assertNotEqual:()=>T_,assignProp:()=>We,base64ToUint8Array:()=>df,base64urlToUint8Array:()=>B_,cached:()=>Mt,captureStackTrace:()=>Hn,cleanEnum:()=>F_,cleanRegex:()=>qr,clone:()=>re,cloneDef:()=>z_,createTransparentProxy:()=>q_,defineLazy:()=>N,esc:()=>Wn,escapeRegex:()=>be,explicitlyAborted:()=>Ua,extend:()=>G_,finalizeIssue:()=>ne,floatSafeRemainder:()=>Pa,getElementAtPath:()=>A_,getEnumValues:()=>Dr,getLengthableOrigin:()=>Gr,getParsedType:()=>D_,getSizableOrigin:()=>Jr,hexToUint8Array:()=>W_,isObject:()=>$t,isPlainObject:()=>He,issue:()=>Zt,joinValues:()=>h,jsonStringifyReplacer:()=>Gt,merge:()=>Z_,mergeDefs:()=>Je,normalizeParams:()=>S,nullish:()=>Ke,numKeys:()=>U_,objectClone:()=>O_,omit:()=>J_,optionalKeys:()=>Aa,parsedType:()=>b,partial:()=>L_,pick:()=>N_,prefixIssues:()=>ce,primitiveTypes:()=>za,promiseAllObject:()=>R_,propertyKeyTypes:()=>Nr,randomString:()=>j_,required:()=>V_,safeExtend:()=>M_,shallowClone:()=>Oa,slugify:()=>Ca,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>pf,uint8ArrayToBase64url:()=>K_,uint8ArrayToHex:()=>H_,unwrapMessage:()=>Ur});function I_(e){return e}function T_(e){return e}function P_(e){}function C_(e){throw Error(\"Unexpected value in exhaustive check\")}function E_(e){}function Dr(e){let t=Object.values(e).filter((o)=>typeof o===\"number\");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function h(e,t=\"|\"){return e.map((n)=>w(n)).join(t)}function Gt(e,t){if(typeof t===\"bigint\")return t.toString();return t}function Mt(e){return{get value(){{let n=e();return Object.defineProperty(this,\"value\",{value:n}),n}throw Error(\"cached value already set\")}}}function Ke(e){return e===null||e===void 0}function qr(e){let t=e.startsWith(\"^\")?1:0,n=e.endsWith(\"$\")?e.length-1:e.length;return e.slice(t,n)}function Pa(e,t){let n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);if(Math.abs(n-o)<r)return 0;return n-o}var lf=Symbol(\"evaluating\");function N(e,t,n){let o=void 0;Object.defineProperty(e,t,{get(){if(o===lf)return;if(o===void 0)o=lf,o=n();return o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function O_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function We(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Je(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function z_(e){return Je(e._zod.def)}function A_(e,t){if(!t)return e;return t.reduce((n,o)=>n?.[o],e)}function R_(e){let t=Object.keys(e),n=t.map((o)=>e[o]);return Promise.all(n).then((o)=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}function j_(e=10){let n=\"\";for(let o=0;o<e;o++)n+=\"abcdefghijklmnopqrstuvwxyz\"[Math.floor(Math.random()*26)];return n}function Wn(e){return JSON.stringify(e)}function Ca(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,\"\").replace(/[\\s_-]+/g,\"-\").replace(/^-+|-+$/g,\"\")}var Hn=\"captureStackTrace\"in Error?Error.captureStackTrace:(...e)=>{};function $t(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}var Ea=Mt(()=>{if(vt.jitless)return!1;if(typeof navigator<\"u\"&&navigator?.userAgent?.includes(\"Cloudflare\"))return!1;try{return new Function(\"\"),!0}catch(e){return!1}});function He(e){if($t(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!==\"function\")return!0;let n=t.prototype;if($t(n)===!1)return!1;if(Object.prototype.hasOwnProperty.call(n,\"isPrototypeOf\")===!1)return!1;return!0}function Oa(e){if(He(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}function U_(e){let t=0;for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n))t++;return t}var D_=(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\":if(Array.isArray(e))return\"array\";if(e===null)return\"null\";if(e.then&&typeof e.then===\"function\"&&e.catch&&typeof e.catch===\"function\")return\"promise\";if(typeof Map<\"u\"&&e instanceof Map)return\"map\";if(typeof Set<\"u\"&&e instanceof Set)return\"set\";if(typeof Date<\"u\"&&e instanceof Date)return\"date\";if(typeof File<\"u\"&&e instanceof File)return\"file\";return\"object\";default:throw Error(`Unknown data type: ${t}`)}},Nr=new Set([\"string\",\"number\",\"symbol\"]),za=new Set([\"string\",\"number\",\"bigint\",\"boolean\",\"symbol\",\"undefined\"]);function be(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function re(e,t,n){let o=new e._zod.constr(t??e._zod.def);if(!t||n?.parent)o._zod.parent=e;return o}function S(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 Error(\"Cannot specify both `message` and `error` params\");t.error=t.message}if(delete t.message,typeof t.error===\"string\")return{...t,error:()=>t.error};return t}function q_(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}function w(e){if(typeof e===\"bigint\")return e.toString()+\"n\";if(typeof e===\"string\")return`\"${e}\"`;return`${e}`}function Aa(e){return Object.keys(e).filter((t)=>e[t]._zod.optin===\"optional\"&&e[t]._zod.optout===\"optional\")}var Ra={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ja={int64:[BigInt(\"-9223372036854775808\"),BigInt(\"9223372036854775807\")],uint64:[BigInt(0),BigInt(\"18446744073709551615\")]};function N_(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw Error(\".pick() cannot be used on object schemas containing refinements\");let i=Je(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw Error(`Unrecognized key: \"${s}\"`);if(!t[s])continue;a[s]=n.shape[s]}return We(this,\"shape\",a),a},checks:[]});return re(e,i)}function J_(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw Error(\".omit() cannot be used on object schemas containing refinements\");let i=Je(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw Error(`Unrecognized key: \"${s}\"`);if(!t[s])continue;delete a[s]}return We(this,\"shape\",a),a},checks:[]});return re(e,i)}function G_(e,t){if(!He(t))throw Error(\"Invalid input to extend: expected a plain object\");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}let r=Je(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return We(this,\"shape\",i),i}});return re(e,r)}function M_(e,t){if(!He(t))throw Error(\"Invalid input to safeExtend: expected a plain object\");let n=Je(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return We(this,\"shape\",o),o}});return re(e,n)}function Z_(e,t){if(e._zod.def.checks?.length)throw Error(\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\");let n=Je(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return We(this,\"shape\",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return re(e,n)}function L_(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(\".partial() cannot be used on object schemas containing refinements\");let a=Je(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let u in n){if(!(u in s))throw Error(`Unrecognized key: \"${u}\"`);if(!n[u])continue;c[u]=e?new e({type:\"optional\",innerType:s[u]}):s[u]}else for(let u in s)c[u]=e?new e({type:\"optional\",innerType:s[u]}):s[u];return We(this,\"shape\",c),c},checks:[]});return re(t,a)}function V_(e,t,n){let o=Je(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let a in n){if(!(a in i))throw Error(`Unrecognized key: \"${a}\"`);if(!n[a])continue;i[a]=new e({type:\"nonoptional\",innerType:r[a]})}else for(let a in r)i[a]=new e({type:\"nonoptional\",innerType:r[a]});return We(this,\"shape\",i),i}});return re(t,o)}function Xe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ua(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ce(e,t){return t.map((n)=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ur(e){return typeof e===\"string\"?e:e?.message}function ne(e,t,n){let o=e.message?e.message:Ur(e.inst?._zod.def?.error?.(e))??Ur(t?.error?.(e))??Ur(n.customError?.(e))??Ur(n.localeError?.(e))??\"Invalid input\",{inst:r,continue:i,input:a,...s}=e;if(s.path??(s.path=[]),s.message=o,t?.reportInput)s.input=a;return s}function Jr(e){if(e instanceof Set)return\"set\";if(e instanceof Map)return\"map\";if(e instanceof File)return\"file\";return\"unknown\"}function Gr(e){if(Array.isArray(e))return\"array\";if(typeof e===\"string\")return\"string\";return\"unknown\"}function b(e){let t=typeof e;switch(t){case\"number\":return Number.isNaN(e)?\"nan\":\"number\";case\"object\":{if(e===null)return\"null\";if(Array.isArray(e))return\"array\";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&\"constructor\"in n&&n.constructor)return n.constructor.name}}return t}function Zt(...e){let[t,n,o]=e;if(typeof t===\"string\")return{message:t,code:\"custom\",input:n,inst:o};return{...t}}function F_(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map((t)=>t[1])}function df(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function pf(e){let t=\"\";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function B_(e){let t=e.replace(/-/g,\"+\").replace(/_/g,\"/\"),n=\"=\".repeat((4-t.length%4)%4);return df(t+n)}function K_(e){return pf(e).replace(/\\+/g,\"-\").replace(/\\//g,\"_\").replace(/=/g,\"\")}function W_(e){let t=e.replace(/^0x/,\"\");if(t.length%2!==0)throw Error(\"Invalid hex string length\");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}function H_(e){return Array.from(e).map((t)=>t.toString(16).padStart(2,\"0\")).join(\"\")}class mf{constructor(...e){}}var ff=(e,t)=>{e.name=\"$ZodError\",Object.defineProperty(e,\"_zod\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\"issues\",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Gt,2),Object.defineProperty(e,\"toString\",{value:()=>e.message,enumerable:!1})},Mr=p(\"$ZodError\",ff),ue=p(\"$ZodError\",ff,{Parent:Error});function Zr(e,t=(n)=>n.message){let n={},o=[];for(let r of e.issues)if(r.path.length>0)n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r));else o.push(t(r));return{formErrors:o,fieldErrors:n}}function Lr(e,t=(n)=>n.message){let n={_errors:[]},o=(r,i=[])=>{for(let a of r.issues)if(a.code===\"invalid_union\"&&a.errors.length)a.errors.map((s)=>o({issues:s},[...i,...a.path]));else if(a.code===\"invalid_key\")o({issues:a.issues},[...i,...a.path]);else if(a.code===\"invalid_element\")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(t(a));else{let c=n,u=0;while(u<s.length){let l=s[u];if(u!==s.length-1)c[l]=c[l]||{_errors:[]};else c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a));c=c[l],u++}}}};return o(e),n}function Da(e,t=(n)=>n.message){let n={errors:[]},o=(r,i=[])=>{var a,s;for(let c of r.issues)if(c.code===\"invalid_union\"&&c.errors.length)c.errors.map((u)=>o({issues:u},[...i,...c.path]));else if(c.code===\"invalid_key\")o({issues:c.issues},[...i,...c.path]);else if(c.code===\"invalid_element\")o({issues:c.issues},[...i,...c.path]);else{let u=[...i,...c.path];if(u.length===0){n.errors.push(t(c));continue}let l=n,d=0;while(d<u.length){let f=u[d],m=d===u.length-1;if(typeof f===\"string\")l.properties??(l.properties={}),(a=l.properties)[f]??(a[f]={errors:[]}),l=l.properties[f];else l.items??(l.items=[]),(s=l.items)[f]??(s[f]={errors:[]}),l=l.items[f];if(m)l.errors.push(t(c));d++}}};return o(e),n}function hf(e){let t=[],n=e.map((o)=>typeof o===\"object\"?o.key:o);for(let o of n)if(typeof o===\"number\")t.push(`[${o}]`);else if(typeof o===\"symbol\")t.push(`[${JSON.stringify(String(o))}]`);else if(/[^\\w$]/.test(o))t.push(`[${JSON.stringify(o)}]`);else{if(t.length)t.push(\".\");t.push(o)}return t.join(\"\")}function qa(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)if(t.push(`✖ ${o.message}`),o.path?.length)t.push(` → at ${hf(o.path)}`);return t.join(`\n`)}var Lt=(e)=>(t,n,o,r)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ze;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map((c)=>ne(c,i,H())));throw Hn(s,r?.callee),s}return a.value},Xn=Lt(ue),Vt=(e)=>async(t,n,o,r)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)a=await a;if(a.issues.length){let s=new(r?.Err??e)(a.issues.map((c)=>ne(c,i,H())));throw Hn(s,r?.callee),s}return a.value},Yn=Vt(ue),Ft=(e)=>(t,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new ze;return i.issues.length?{success:!1,error:new(e??Mr)(i.issues.map((a)=>ne(a,r,H())))}:{success:!0,data:i.value}},Na=Ft(ue),Bt=(e)=>async(t,n,o)=>{let r=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)i=await i;return i.issues.length?{success:!1,error:new e(i.issues.map((a)=>ne(a,r,H())))}:{success:!0,data:i.value}},Ja=Bt(ue),Qn=(e)=>(t,n,o)=>{let r=o?{...o,direction:\"backward\"}:{direction:\"backward\"};return Lt(e)(t,n,r)},Y_=Qn(ue),eo=(e)=>(t,n,o)=>Lt(e)(t,n,o),Q_=eo(ue),to=(e)=>async(t,n,o)=>{let r=o?{...o,direction:\"backward\"}:{direction:\"backward\"};return Vt(e)(t,n,r)},ek=to(ue),ro=(e)=>async(t,n,o)=>Vt(e)(t,n,o),tk=ro(ue),no=(e)=>(t,n,o)=>{let r=o?{...o,direction:\"backward\"}:{direction:\"backward\"};return Ft(e)(t,n,r)},rk=no(ue),oo=(e)=>(t,n,o)=>Ft(e)(t,n,o),nk=oo(ue),io=(e)=>async(t,n,o)=>{let r=o?{...o,direction:\"backward\"}:{direction:\"backward\"};return Bt(e)(t,n,r)},ok=io(ue),ao=(e)=>async(t,n,o)=>Bt(e)(t,n,o),ik=ao(ue);var ye={};Ne(ye,{base64:()=>rs,base64url:()=>so,bigint:()=>us,boolean:()=>ds,browserEmail:()=>mk,cidrv4:()=>es,cidrv6:()=>ts,cuid:()=>Ga,cuid2:()=>Ma,date:()=>is,datetime:()=>ss,domain:()=>gk,duration:()=>Ba,e164:()=>os,email:()=>Wa,emoji:()=>Ha,extendedDuration:()=>ak,guid:()=>Ka,hex:()=>vk,hostname:()=>hk,html5Email:()=>lk,httpProtocol:()=>ns,idnEmail:()=>pk,integer:()=>ls,ipv4:()=>Xa,ipv6:()=>Ya,ksuid:()=>Va,lowercase:()=>fs,mac:()=>Qa,md5_base64:()=>$k,md5_base64url:()=>wk,md5_hex:()=>yk,nanoid:()=>Fa,null:()=>ps,number:()=>Vr,rfc5322Email:()=>dk,sha1_base64:()=>_k,sha1_base64url:()=>kk,sha1_hex:()=>bk,sha256_base64:()=>Sk,sha256_base64url:()=>Ik,sha256_hex:()=>xk,sha384_base64:()=>Pk,sha384_base64url:()=>Ck,sha384_hex:()=>Tk,sha512_base64:()=>Ok,sha512_base64url:()=>zk,sha512_hex:()=>Ek,string:()=>cs,time:()=>as,ulid:()=>Za,undefined:()=>ms,unicodeEmail:()=>gf,uppercase:()=>hs,uuid:()=>wt,uuid4:()=>sk,uuid6:()=>ck,uuid7:()=>uk,xid:()=>La});var Ga=/^[cC][0-9a-z]{6,}$/,Ma=/^[0-9a-z]+$/,Za=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,La=/^[0-9a-vA-V]{20}$/,Va=/^[A-Za-z0-9]{27}$/,Fa=/^[a-zA-Z0-9_-]{21}$/,Ba=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,ak=/^[-+]?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)?)??$/,Ka=/^([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})$/,wt=(e)=>{if(!e)return/^([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)$/;return 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})$`)},sk=wt(4),ck=wt(6),uk=wt(7),Wa=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,lk=/^[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])?)*$/,dk=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,gf=/^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u,pk=gf,mk=/^[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])?)*$/,fk=\"^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$\";function Ha(){return new RegExp(fk,\"u\")}var Xa=/^(?:(?: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])$/,Ya=/^(([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}|:))$/,Qa=(e)=>{let t=be(e??\":\");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},es=/^((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])$/,ts=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,so=/^[A-Za-z0-9_-]*$/,hk=/^(?=.{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])?)*\\.?$/,gk=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,ns=/^https?$/,os=/^\\+[1-9]\\d{6,14}$/,vf=\"(?:(?:\\\\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])))\",is=new RegExp(`^${vf}$`);function yf(e){return typeof e.precision===\"number\"?e.precision===-1?\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d\":e.precision===0?\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d\":`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:\"(?:[01]\\\\d|2[0-3]):[0-5]\\\\d(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?\"}function as(e){return new RegExp(`^${yf(e)}$`)}function ss(e){let t=yf({precision:e.precision}),n=[\"Z\"];if(e.local)n.push(\"\");if(e.offset)n.push(\"([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)\");let o=`${t}(?:${n.join(\"|\")})`;return new RegExp(`^${vf}T(?:${o})$`)}var cs=(e)=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??\"\"}}`:\"[\\\\s\\\\S]*\";return new RegExp(`^${t}$`)},us=/^-?\\d+n?$/,ls=/^-?\\d+$/,Vr=/^-?\\d+(?:\\.\\d+)?$/,ds=/^(?:true|false)$/i,ps=/^null$/i;var ms=/^undefined$/i;var fs=/^[^A-Z]*$/,hs=/^[^a-z]*$/,vk=/^[0-9a-fA-F]*$/;function Fr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Br(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var yk=/^[0-9a-fA-F]{32}$/,$k=Fr(22,\"==\"),wk=Br(22),bk=/^[0-9a-fA-F]{40}$/,_k=Fr(27,\"=\"),kk=Br(27),xk=/^[0-9a-fA-F]{64}$/,Sk=Fr(43,\"=\"),Ik=Br(43),Tk=/^[0-9a-fA-F]{96}$/,Pk=Fr(64,\"\"),Ck=Br(64),Ek=/^[0-9a-fA-F]{128}$/,Ok=Fr(86,\"==\"),zk=Br(86);var B=p(\"$ZodCheck\",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),wf={number:\"number\",bigint:\"bigint\",object:\"date\"},co=p(\"$ZodCheckLessThan\",(e,t)=>{B.init(e,t);let n=wf[typeof t.value];e._zod.onattach.push((o)=>{let r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(t.value<i)if(t.inclusive)r.maximum=t.value;else r.exclusiveMaximum=t.value}),e._zod.check=(o)=>{if(t.inclusive?o.value<=t.value:o.value<t.value)return;o.issues.push({origin:n,code:\"too_big\",maximum:typeof t.value===\"object\"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),uo=p(\"$ZodCheckGreaterThan\",(e,t)=>{B.init(e,t);let n=wf[typeof t.value];e._zod.onattach.push((o)=>{let r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(t.value>i)if(t.inclusive)r.minimum=t.value;else r.exclusiveMinimum=t.value}),e._zod.check=(o)=>{if(t.inclusive?o.value>=t.value:o.value>t.value)return;o.issues.push({origin:n,code:\"too_small\",minimum:typeof t.value===\"object\"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),gs=p(\"$ZodCheckMultipleOf\",(e,t)=>{B.init(e,t),e._zod.onattach.push((n)=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=(n)=>{if(typeof n.value!==typeof t.value)throw Error(\"Cannot mix number and bigint in multiple_of check.\");if(typeof n.value===\"bigint\"?n.value%t.value===BigInt(0):Pa(n.value,t.value)===0)return;n.issues.push({origin:typeof n.value,code:\"not_multiple_of\",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),vs=p(\"$ZodCheckNumberFormat\",(e,t)=>{B.init(e,t),t.format=t.format||\"float64\";let n=t.format?.includes(\"int\"),o=n?\"int\":\"number\",[r,i]=Ra[t.format];e._zod.onattach.push((a)=>{let s=a._zod.bag;if(s.format=t.format,s.minimum=r,s.maximum=i,n)s.pattern=ls}),e._zod.check=(a)=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:\"invalid_type\",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){if(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:o,inclusive:!0,continue:!t.abort});else 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:o,inclusive:!0,continue:!t.abort});return}}if(s<r)a.issues.push({origin:\"number\",input:s,code:\"too_small\",minimum:r,inclusive:!0,inst:e,continue:!t.abort});if(s>i)a.issues.push({origin:\"number\",input:s,code:\"too_big\",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),ys=p(\"$ZodCheckBigIntFormat\",(e,t)=>{B.init(e,t);let[n,o]=ja[t.format];e._zod.onattach.push((r)=>{let i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=(r)=>{let i=r.value;if(i<n)r.issues.push({origin:\"bigint\",input:i,code:\"too_small\",minimum:n,inclusive:!0,inst:e,continue:!t.abort});if(i>o)r.issues.push({origin:\"bigint\",input:i,code:\"too_big\",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),$s=p(\"$ZodCheckMaxSize\",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=(o)=>{let r=o.value;return!Ke(r)&&r.size!==void 0}),e._zod.onattach.push((o)=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;if(t.maximum<r)o._zod.bag.maximum=t.maximum}),e._zod.check=(o)=>{let r=o.value;if(r.size<=t.maximum)return;o.issues.push({origin:Jr(r),code:\"too_big\",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ws=p(\"$ZodCheckMinSize\",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=(o)=>{let r=o.value;return!Ke(r)&&r.size!==void 0}),e._zod.onattach.push((o)=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(t.minimum>r)o._zod.bag.minimum=t.minimum}),e._zod.check=(o)=>{let r=o.value;if(r.size>=t.minimum)return;o.issues.push({origin:Jr(r),code:\"too_small\",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bs=p(\"$ZodCheckSizeEquals\",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=(o)=>{let r=o.value;return!Ke(r)&&r.size!==void 0}),e._zod.onattach.push((o)=>{let r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=(o)=>{let r=o.value,i=r.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Jr(r),...a?{code:\"too_big\",maximum:t.size}:{code:\"too_small\",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),_s=p(\"$ZodCheckMaxLength\",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=(o)=>{let r=o.value;return!Ke(r)&&r.length!==void 0}),e._zod.onattach.push((o)=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;if(t.maximum<r)o._zod.bag.maximum=t.maximum}),e._zod.check=(o)=>{let r=o.value;if(r.length<=t.maximum)return;let a=Gr(r);o.issues.push({origin:a,code:\"too_big\",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ks=p(\"$ZodCheckMinLength\",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=(o)=>{let r=o.value;return!Ke(r)&&r.length!==void 0}),e._zod.onattach.push((o)=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(t.minimum>r)o._zod.bag.minimum=t.minimum}),e._zod.check=(o)=>{let r=o.value;if(r.length>=t.minimum)return;let a=Gr(r);o.issues.push({origin:a,code:\"too_small\",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),xs=p(\"$ZodCheckLengthEquals\",(e,t)=>{var n;B.init(e,t),(n=e._zod.def).when??(n.when=(o)=>{let r=o.value;return!Ke(r)&&r.length!==void 0}),e._zod.onattach.push((o)=>{let r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=(o)=>{let r=o.value,i=r.length;if(i===t.length)return;let a=Gr(r),s=i>t.length;o.issues.push({origin:a,...s?{code:\"too_big\",maximum:t.length}:{code:\"too_small\",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Kt=p(\"$ZodCheckStringFormat\",(e,t)=>{var n,o;if(B.init(e,t),e._zod.onattach.push((r)=>{let i=r._zod.bag;if(i.format=t.format,t.pattern)i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern)}),t.pattern)(n=e._zod).check??(n.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:\"string\",code:\"invalid_format\",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(o=e._zod).check??(o.check=()=>{})}),Ss=p(\"$ZodCheckRegex\",(e,t)=>{Kt.init(e,t),e._zod.check=(n)=>{if(t.pattern.lastIndex=0,t.pattern.test(n.value))return;n.issues.push({origin:\"string\",code:\"invalid_format\",format:\"regex\",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Is=p(\"$ZodCheckLowerCase\",(e,t)=>{t.pattern??(t.pattern=fs),Kt.init(e,t)}),Ts=p(\"$ZodCheckUpperCase\",(e,t)=>{t.pattern??(t.pattern=hs),Kt.init(e,t)}),Ps=p(\"$ZodCheckIncludes\",(e,t)=>{B.init(e,t);let n=be(t.includes),o=new RegExp(typeof t.position===\"number\"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push((r)=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=(r)=>{if(r.value.includes(t.includes,t.position))return;r.issues.push({origin:\"string\",code:\"invalid_format\",format:\"includes\",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Cs=p(\"$ZodCheckStartsWith\",(e,t)=>{B.init(e,t);let n=new RegExp(`^${be(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push((o)=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=(o)=>{if(o.value.startsWith(t.prefix))return;o.issues.push({origin:\"string\",code:\"invalid_format\",format:\"starts_with\",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Es=p(\"$ZodCheckEndsWith\",(e,t)=>{B.init(e,t);let n=new RegExp(`.*${be(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push((o)=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=(o)=>{if(o.value.endsWith(t.suffix))return;o.issues.push({origin:\"string\",code:\"invalid_format\",format:\"ends_with\",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function $f(e,t,n){if(e.issues.length)t.issues.push(...ce(n,e.issues))}var Os=p(\"$ZodCheckProperty\",(e,t)=>{B.init(e,t),e._zod.check=(n)=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then((r)=>$f(r,n,t.property));$f(o,n,t.property);return}}),zs=p(\"$ZodCheckMimeType\",(e,t)=>{B.init(e,t);let n=new Set(t.mime);e._zod.onattach.push((o)=>{o._zod.bag.mime=t.mime}),e._zod.check=(o)=>{if(n.has(o.value.type))return;o.issues.push({code:\"invalid_value\",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),As=p(\"$ZodCheckOverwrite\",(e,t)=>{B.init(e,t),e._zod.check=(n)=>{n.value=t.tx(n.value)}});class lo{constructor(e=[]){if(this.content=[],this.indent=0,this)this.args=e}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e===\"function\"){e(this,{execution:\"sync\"}),e(this,{execution:\"async\"});return}let n=e.split(`\n`).filter((i)=>i),o=Math.min(...n.map((i)=>i.length-i.trimStart().length)),r=n.map((i)=>i.slice(o)).map((i)=>\" \".repeat(this.indent*2)+i);for(let i of r)this.content.push(i)}compile(){let e=Function,t=this?.args,o=[...(this?.content??[\"\"]).map((r)=>` ${r}`)];return new e(...t,o.join(`\n`))}}var Rs={major:4,minor:4,patch:3};var A=p(\"$ZodType\",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rs;let o=[...e._zod.def.checks??[]];if(e._zod.traits.has(\"$ZodCheck\"))o.unshift(e);for(let r of o)for(let i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(a,s,c)=>{let u=Xe(a),l;for(let d of s){if(d._zod.def.when){if(Ua(a))continue;if(!d._zod.def.when(a))continue}else if(u)continue;let f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new ze;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{if(await m,a.issues.length===f)return;if(!u)u=Xe(a,f)});else{if(a.issues.length===f)continue;if(!u)u=Xe(a,f)}}if(l)return l.then(()=>a);return a},i=(a,s,c)=>{if(Xe(a))return a.aborted=!0,a;let u=r(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new ze;return u.then((l)=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction===\"backward\"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});if(u instanceof Promise)return u.then((l)=>i(l,a,s));return i(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new ze;return c.then((u)=>r(u,o,s))}return r(c,o,s)}}N(e,\"~standard\",()=>({validate:(r)=>{try{let i=Na(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch(i){return Ja(e,r).then((a)=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:\"zod\",version:1}))}),bt=p(\"$ZodString\",(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cs(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch(r){}if(typeof n.value===\"string\")return n;return n.issues.push({expected:\"string\",code:\"invalid_type\",input:n.value,inst:e}),n}}),V=p(\"$ZodStringFormat\",(e,t)=>{Kt.init(e,t),bt.init(e,t)}),Us=p(\"$ZodGUID\",(e,t)=>{t.pattern??(t.pattern=Ka),V.init(e,t)}),Ds=p(\"$ZodUUID\",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw Error(`Invalid UUID version: \"${t.version}\"`);t.pattern??(t.pattern=wt(o))}else t.pattern??(t.pattern=wt());V.init(e,t)}),qs=p(\"$ZodEmail\",(e,t)=>{t.pattern??(t.pattern=Wa),V.init(e,t)}),Ns=p(\"$ZodURL\",(e,t)=>{V.init(e,t),e._zod.check=(n)=>{try{let o=n.value.trim();if(!t.normalize&&t.protocol?.source===ns.source){if(!/^https?:\\/\\//i.test(o)){n.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid URL format\",input:n.value,inst:e,continue:!t.abort});return}}let r=new URL(o);if(t.hostname){if(t.hostname.lastIndex=0,!t.hostname.test(r.hostname))n.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid hostname\",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})}if(t.protocol){if(t.protocol.lastIndex=0,!t.protocol.test(r.protocol.endsWith(\":\")?r.protocol.slice(0,-1):r.protocol))n.issues.push({code:\"invalid_format\",format:\"url\",note:\"Invalid protocol\",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})}if(t.normalize)n.value=r.href;else n.value=o;return}catch(o){n.issues.push({code:\"invalid_format\",format:\"url\",input:n.value,inst:e,continue:!t.abort})}}}),Js=p(\"$ZodEmoji\",(e,t)=>{t.pattern??(t.pattern=Ha()),V.init(e,t)}),Gs=p(\"$ZodNanoID\",(e,t)=>{t.pattern??(t.pattern=Fa),V.init(e,t)}),Ms=p(\"$ZodCUID\",(e,t)=>{t.pattern??(t.pattern=Ga),V.init(e,t)}),Zs=p(\"$ZodCUID2\",(e,t)=>{t.pattern??(t.pattern=Ma),V.init(e,t)}),Ls=p(\"$ZodULID\",(e,t)=>{t.pattern??(t.pattern=Za),V.init(e,t)}),Vs=p(\"$ZodXID\",(e,t)=>{t.pattern??(t.pattern=La),V.init(e,t)}),Fs=p(\"$ZodKSUID\",(e,t)=>{t.pattern??(t.pattern=Va),V.init(e,t)}),Bs=p(\"$ZodISODateTime\",(e,t)=>{t.pattern??(t.pattern=ss(t)),V.init(e,t)}),Ks=p(\"$ZodISODate\",(e,t)=>{t.pattern??(t.pattern=is),V.init(e,t)}),Ws=p(\"$ZodISOTime\",(e,t)=>{t.pattern??(t.pattern=as(t)),V.init(e,t)}),Hs=p(\"$ZodISODuration\",(e,t)=>{t.pattern??(t.pattern=Ba),V.init(e,t)}),Xs=p(\"$ZodIPv4\",(e,t)=>{t.pattern??(t.pattern=Xa),V.init(e,t),e._zod.bag.format=\"ipv4\"}),Ys=p(\"$ZodIPv6\",(e,t)=>{t.pattern??(t.pattern=Ya),V.init(e,t),e._zod.bag.format=\"ipv6\",e._zod.check=(n)=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:\"invalid_format\",format:\"ipv6\",input:n.value,inst:e,continue:!t.abort})}}}),Qs=p(\"$ZodMAC\",(e,t)=>{t.pattern??(t.pattern=Qa(t.delimiter)),V.init(e,t),e._zod.bag.format=\"mac\"}),ec=p(\"$ZodCIDRv4\",(e,t)=>{t.pattern??(t.pattern=es),V.init(e,t)}),tc=p(\"$ZodCIDRv6\",(e,t)=>{t.pattern??(t.pattern=ts),V.init(e,t),e._zod.check=(n)=>{let o=n.value.split(\"/\");try{if(o.length!==2)throw Error();let[r,i]=o;if(!i)throw Error();let a=Number(i);if(`${a}`!==i)throw Error();if(a<0||a>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:\"invalid_format\",format:\"cidrv6\",input:n.value,inst:e,continue:!t.abort})}}});function rc(e){if(e===\"\")return!0;if(/\\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var nc=p(\"$ZodBase64\",(e,t)=>{t.pattern??(t.pattern=rs),V.init(e,t),e._zod.bag.contentEncoding=\"base64\",e._zod.check=(n)=>{if(rc(n.value))return;n.issues.push({code:\"invalid_format\",format:\"base64\",input:n.value,inst:e,continue:!t.abort})}});function Uf(e){if(!so.test(e))return!1;let t=e.replace(/[-_]/g,(o)=>o===\"-\"?\"+\":\"/\"),n=t.padEnd(Math.ceil(t.length/4)*4,\"=\");return rc(n)}var oc=p(\"$ZodBase64URL\",(e,t)=>{t.pattern??(t.pattern=so),V.init(e,t),e._zod.bag.contentEncoding=\"base64url\",e._zod.check=(n)=>{if(Uf(n.value))return;n.issues.push({code:\"invalid_format\",format:\"base64url\",input:n.value,inst:e,continue:!t.abort})}}),ic=p(\"$ZodE164\",(e,t)=>{t.pattern??(t.pattern=os),V.init(e,t)});function Df(e,t=null){try{let n=e.split(\".\");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));if(\"typ\"in r&&r?.typ!==\"JWT\")return!1;if(!r.alg)return!1;if(t&&(!(\"alg\"in r)||r.alg!==t))return!1;return!0}catch{return!1}}var ac=p(\"$ZodJWT\",(e,t)=>{V.init(e,t),e._zod.check=(n)=>{if(Df(n.value,t.alg))return;n.issues.push({code:\"invalid_format\",format:\"jwt\",input:n.value,inst:e,continue:!t.abort})}}),sc=p(\"$ZodCustomStringFormat\",(e,t)=>{V.init(e,t),e._zod.check=(n)=>{if(t.fn(n.value))return;n.issues.push({code:\"invalid_format\",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),go=p(\"$ZodNumber\",(e,t)=>{A.init(e,t),e._zod.pattern=e._zod.bag.pattern??Vr,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch(a){}let r=n.value;if(typeof r===\"number\"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r===\"number\"?Number.isNaN(r)?\"NaN\":!Number.isFinite(r)?\"Infinity\":void 0:void 0;return n.issues.push({expected:\"number\",code:\"invalid_type\",input:r,inst:e,...i?{received:i}:{}}),n}}),cc=p(\"$ZodNumberFormat\",(e,t)=>{vs.init(e,t),go.init(e,t)}),Kr=p(\"$ZodBoolean\",(e,t)=>{A.init(e,t),e._zod.pattern=ds,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(i){}let r=n.value;if(typeof r===\"boolean\")return n;return n.issues.push({expected:\"boolean\",code:\"invalid_type\",input:r,inst:e}),n}}),vo=p(\"$ZodBigInt\",(e,t)=>{A.init(e,t),e._zod.pattern=us,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(r){}if(typeof n.value===\"bigint\")return n;return n.issues.push({expected:\"bigint\",code:\"invalid_type\",input:n.value,inst:e}),n}}),uc=p(\"$ZodBigIntFormat\",(e,t)=>{ys.init(e,t),vo.init(e,t)}),lc=p(\"$ZodSymbol\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(typeof r===\"symbol\")return n;return n.issues.push({expected:\"symbol\",code:\"invalid_type\",input:r,inst:e}),n}}),dc=p(\"$ZodUndefined\",(e,t)=>{A.init(e,t),e._zod.pattern=ms,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let r=n.value;if(typeof r>\"u\")return n;return n.issues.push({expected:\"undefined\",code:\"invalid_type\",input:r,inst:e}),n}}),pc=p(\"$ZodNull\",(e,t)=>{A.init(e,t),e._zod.pattern=ps,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let r=n.value;if(r===null)return n;return n.issues.push({expected:\"null\",code:\"invalid_type\",input:r,inst:e}),n}}),mc=p(\"$ZodAny\",(e,t)=>{A.init(e,t),e._zod.parse=(n)=>n}),fc=p(\"$ZodUnknown\",(e,t)=>{A.init(e,t),e._zod.parse=(n)=>n}),hc=p(\"$ZodNever\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:\"never\",code:\"invalid_type\",input:n.value,inst:e}),n)}),gc=p(\"$ZodVoid\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(typeof r>\"u\")return n;return n.issues.push({expected:\"void\",code:\"invalid_type\",input:r,inst:e}),n}}),vc=p(\"$ZodDate\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(s){}let r=n.value,i=r instanceof Date;if(i&&!Number.isNaN(r.getTime()))return n;return n.issues.push({expected:\"date\",code:\"invalid_type\",input:r,...i?{received:\"Invalid Date\"}:{},inst:e}),n}});function _f(e,t,n){if(e.issues.length)t.issues.push(...ce(n,e.issues));t.value[n]=e.value}var yc=p(\"$ZodArray\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:\"array\",code:\"invalid_type\",input:r,inst:e}),n;n.value=Array(r.length);let i=[];for(let a=0;a<r.length;a++){let s=r[a],c=t.element._zod.run({value:s,issues:[]},o);if(c instanceof Promise)i.push(c.then((u)=>_f(u,n,a)));else _f(c,n,a)}if(i.length)return Promise.all(i).then(()=>n);return n}});function ho(e,t,n,o,r,i){let a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...ce(n,e.issues))}if(!a&&!r){if(!e.issues.length)t.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:void 0,path:[n]});return}if(e.value===void 0){if(a)t.value[n]=void 0}else t.value[n]=e.value}function qf(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has(\"$ZodType\"))throw Error(`Invalid element at key \"${o}\": expected a Zod schema`);let n=Aa(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Nf(e,t,n,o,r,i){let a=[],s=r.keySet,c=r.catchall._zod,u=c.def.type,l=c.optin===\"optional\",d=c.optout===\"optional\";for(let f in t){if(f===\"__proto__\")continue;if(s.has(f))continue;if(u===\"never\"){a.push(f);continue}let m=c.run({value:t[f],issues:[]},o);if(m instanceof Promise)e.push(m.then((v)=>ho(v,n,f,t,l,d)));else ho(m,n,f,t,l,d)}if(a.length)n.issues.push({code:\"unrecognized_keys\",keys:a,input:t,inst:i});if(!e.length)return n;return Promise.all(e).then(()=>n)}var Jf=p(\"$ZodObject\",(e,t)=>{if(A.init(e,t),!Object.getOwnPropertyDescriptor(t,\"shape\")?.get){let s=t.shape;Object.defineProperty(t,\"shape\",{get:()=>{let c={...s};return Object.defineProperty(t,\"shape\",{value:c}),c}})}let o=Mt(()=>qf(t));N(e._zod,\"propValues\",()=>{let s=t.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let r=$t,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=o.value);let u=s.value;if(!r(u))return s.issues.push({expected:\"object\",code:\"invalid_type\",input:u,inst:e}),s;s.value={};let l=[],d=a.shape;for(let f of a.keys){let m=d[f],v=m._zod.optin===\"optional\",y=m._zod.optout===\"optional\",x=m._zod.run({value:u[f],issues:[]},c);if(x instanceof Promise)l.push(x.then((T)=>ho(T,s,f,u,v,y)));else ho(x,s,f,u,v,y)}if(!i)return l.length?Promise.all(l).then(()=>s):s;return Nf(l,u,s,c,o.value,e)}}),$c=p(\"$ZodObjectJIT\",(e,t)=>{Jf.init(e,t);let n=e._zod.parse,o=Mt(()=>qf(t)),r=(f)=>{let m=new lo([\"shape\",\"payload\",\"ctx\"]),v=o.value,y=(z)=>{let O=Wn(z);return`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`};m.write(\"const input = payload.value;\");let x=Object.create(null),T=0;for(let z of v.keys)x[z]=`key_${T++}`;m.write(\"const newResult = {};\");for(let z of v.keys){let O=x[z],P=Wn(z),ve=f[z],we=ve?._zod?.optin===\"optional\",Rr=ve?._zod?.optout===\"optional\";if(m.write(`const ${O} = ${y(z)};`),we&&Rr)m.write(`\n if (${O}.issues.length) {\n if (${P} in input) {\n payload.issues = payload.issues.concat(${O}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${P}, ...iss.path] : [${P}]\n })));\n }\n }\n \n if (${O}.value === undefined) {\n if (${P} in input) {\n newResult[${P}] = undefined;\n }\n } else {\n newResult[${P}] = ${O}.value;\n }\n \n `);else if(!we)m.write(`\n const ${O}_present = ${P} in input;\n if (${O}.issues.length) {\n payload.issues = payload.issues.concat(${O}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${P}, ...iss.path] : [${P}]\n })));\n }\n if (!${O}_present && !${O}.issues.length) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [${P}]\n });\n }\n\n if (${O}_present) {\n if (${O}.value === undefined) {\n newResult[${P}] = undefined;\n } else {\n newResult[${P}] = ${O}.value;\n }\n }\n\n `);else m.write(`\n if (${O}.issues.length) {\n payload.issues = payload.issues.concat(${O}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${P}, ...iss.path] : [${P}]\n })));\n }\n \n if (${O}.value === undefined) {\n if (${P} in input) {\n newResult[${P}] = undefined;\n }\n } else {\n newResult[${P}] = ${O}.value;\n }\n \n `)}m.write(\"payload.value = newResult;\"),m.write(\"return payload;\");let G=m.compile();return(z,O)=>G(f,z,O)},i,a=$t,s=!vt.jitless,u=s&&Ea.value,l=t.catchall,d;e._zod.parse=(f,m)=>{d??(d=o.value);let v=f.value;if(!a(v))return f.issues.push({expected:\"object\",code:\"invalid_type\",input:v,inst:e}),f;if(s&&u&&m?.async===!1&&m.jitless!==!0){if(!i)i=r(t.shape);if(f=i(f,m),!l)return f;return Nf([],v,f,m,d,e)}return n(f,m)}});function kf(e,t,n,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter((i)=>!Xe(i));if(r.length===1)return t.value=r[0].value,r[0];return t.issues.push({code:\"invalid_union\",input:t.value,inst:n,errors:e.map((i)=>i.issues.map((a)=>ne(a,o,H())))}),t}var Wr=p(\"$ZodUnion\",(e,t)=>{A.init(e,t),N(e._zod,\"optin\",()=>t.options.some((o)=>o._zod.optin===\"optional\")?\"optional\":void 0),N(e._zod,\"optout\",()=>t.options.some((o)=>o._zod.optout===\"optional\")?\"optional\":void 0),N(e._zod,\"values\",()=>{if(t.options.every((o)=>o._zod.values))return new Set(t.options.flatMap((o)=>Array.from(o._zod.values)));return}),N(e._zod,\"pattern\",()=>{if(t.options.every((o)=>o._zod.pattern)){let o=t.options.map((r)=>r._zod.pattern);return new RegExp(`^(${o.map((r)=>qr(r.source)).join(\"|\")})$`)}return});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},r);if(c instanceof Promise)a.push(c),i=!0;else{if(c.issues.length===0)return c;a.push(c)}}if(!i)return kf(a,o,e,r);return Promise.all(a).then((s)=>kf(s,o,e,r))}});function xf(e,t,n,o){let r=e.filter((i)=>i.issues.length===0);if(r.length===1)return t.value=r[0].value,t;if(r.length===0)t.issues.push({code:\"invalid_union\",input:t.value,inst:n,errors:e.map((i)=>i.issues.map((a)=>ne(a,o,H())))});else t.issues.push({code:\"invalid_union\",input:t.value,inst:n,errors:[],inclusive:!1});return t}var wc=p(\"$ZodXor\",(e,t)=>{Wr.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},r);if(c instanceof Promise)a.push(c),i=!0;else a.push(c)}if(!i)return xf(a,o,e,r);return Promise.all(a).then((s)=>xf(s,o,e,r))}}),bc=p(\"$ZodDiscriminatedUnion\",(e,t)=>{t.inclusive=!1,Wr.init(e,t);let n=e._zod.parse;N(e._zod,\"propValues\",()=>{let r={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(i)}\"`);for(let[s,c]of Object.entries(a)){if(!r[s])r[s]=new Set;for(let u of c)r[s].add(u)}}return r});let o=Mt(()=>{let r=t.options,i=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(a)}\"`);for(let c of s){if(i.has(c))throw Error(`Duplicate discriminator value \"${String(c)}\"`);i.set(c,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!$t(a))return r.issues.push({code:\"invalid_type\",expected:\"object\",input:a,inst:e}),r;let s=o.value.get(a?.[t.discriminator]);if(s)return s._zod.run(r,i);if(t.unionFallback||i.direction===\"backward\")return n(r,i);return r.issues.push({code:\"invalid_union\",errors:[],note:\"No matching discriminator\",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r}}),_c=p(\"$ZodIntersection\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);if(i instanceof Promise||a instanceof Promise)return Promise.all([i,a]).then(([c,u])=>Sf(n,c,u));return Sf(n,i,a)}});function js(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(He(e)&&He(t)){let n=Object.keys(t),o=Object.keys(e).filter((i)=>n.indexOf(i)!==-1),r={...e,...t};for(let i of o){let a=js(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t[o],a=js(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Sf(e,t,n){let o=new Map,r;for(let s of t.issues)if(s.code===\"unrecognized_keys\"){r??(r=s);for(let c of s.keys){if(!o.has(c))o.set(c,{});o.get(c).l=!0}}else e.issues.push(s);for(let s of n.issues)if(s.code===\"unrecognized_keys\")for(let c of s.keys){if(!o.has(c))o.set(c,{});o.get(c).r=!0}else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&r)e.issues.push({...r,keys:i});if(Xe(e))return e;let a=js(t.value,n.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var yo=p(\"$ZodTuple\",(e,t)=>{A.init(e,t);let n=t.items;e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:\"tuple\",code:\"invalid_type\"}),o;o.value=[];let a=[],s=If(n,\"optin\"),c=If(n,\"optout\");if(!t.rest){if(i.length<s)return o.issues.push({code:\"too_small\",minimum:s,inclusive:!0,input:i,inst:e,origin:\"array\"}),o;if(i.length>n.length)o.issues.push({code:\"too_big\",maximum:n.length,inclusive:!0,input:i,inst:e,origin:\"array\"})}let u=Array(n.length);for(let l=0;l<n.length;l++){let d=n[l]._zod.run({value:i[l],issues:[]},r);if(d instanceof Promise)a.push(d.then((f)=>{u[l]=f}));else u[l]=d}if(t.rest){let l=n.length-1,d=i.slice(n.length);for(let f of d){l++;let m=t.rest._zod.run({value:f,issues:[]},r);if(m instanceof Promise)a.push(m.then((v)=>Tf(v,o,l)));else Tf(m,o,l)}}if(a.length)return Promise.all(a).then(()=>Pf(u,o,n,i,c));return Pf(u,o,n,i,c)}});function If(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==\"optional\")return n+1;return 0}function Tf(e,t,n){if(e.issues.length)t.issues.push(...ce(n,e.issues));t.value[n]=e.value}function Pf(e,t,n,o,r){for(let i=0;i<n.length;i++){let a=e[i],s=i<o.length;if(a.issues.length){if(!s&&i>=r){t.value.length=i;break}t.issues.push(...ce(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length;i--)if(n[i]._zod.optout===\"optional\"&&t.value[i]===void 0)t.value.length=i;else break;return t}var kc=p(\"$ZodRecord\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!He(r))return n.issues.push({expected:\"record\",code:\"invalid_type\",input:r,inst:e}),n;let i=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let u of a)if(typeof u===\"string\"||typeof u===\"number\"||typeof u===\"symbol\"){s.add(typeof u===\"number\"?u.toString():u);let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw Error(\"Async schemas not supported in object keys currently\");if(l.issues.length){n.issues.push({code:\"invalid_key\",origin:\"record\",issues:l.issues.map((m)=>ne(m,o,H())),input:u,path:[u],inst:e});continue}let d=l.value,f=t.valueType._zod.run({value:r[u],issues:[]},o);if(f instanceof Promise)i.push(f.then((m)=>{if(m.issues.length)n.issues.push(...ce(u,m.issues));n.value[d]=m.value}));else{if(f.issues.length)n.issues.push(...ce(u,f.issues));n.value[d]=f.value}}let c;for(let u in r)if(!s.has(u))c=c??[],c.push(u);if(c&&c.length>0)n.issues.push({code:\"unrecognized_keys\",input:r,inst:e,keys:c})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s===\"__proto__\")continue;if(!Object.prototype.propertyIsEnumerable.call(r,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},o);if(c instanceof Promise)throw Error(\"Async schemas not supported in object keys currently\");if(typeof s===\"string\"&&Vr.test(s)&&c.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},o);if(d instanceof Promise)throw Error(\"Async schemas not supported in object keys currently\");if(d.issues.length===0)c=d}if(c.issues.length){if(t.mode===\"loose\")n.value[s]=r[s];else n.issues.push({code:\"invalid_key\",origin:\"record\",issues:c.issues.map((d)=>ne(d,o,H())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:r[s],issues:[]},o);if(l instanceof Promise)i.push(l.then((d)=>{if(d.issues.length)n.issues.push(...ce(s,d.issues));n.value[c.value]=d.value}));else{if(l.issues.length)n.issues.push(...ce(s,l.issues));n.value[c.value]=l.value}}}if(i.length)return Promise.all(i).then(()=>n);return n}}),xc=p(\"$ZodMap\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:\"map\",code:\"invalid_type\",input:r,inst:e}),n;let i=[];n.value=new Map;for(let[a,s]of r){let c=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);if(c instanceof Promise||u instanceof Promise)i.push(Promise.all([c,u]).then(([l,d])=>{Cf(l,d,n,a,r,e,o)}));else Cf(c,u,n,a,r,e,o)}if(i.length)return Promise.all(i).then(()=>n);return n}});function Cf(e,t,n,o,r,i,a){if(e.issues.length)if(Nr.has(typeof o))n.issues.push(...ce(o,e.issues));else n.issues.push({code:\"invalid_key\",origin:\"map\",input:r,inst:i,issues:e.issues.map((s)=>ne(s,a,H()))});if(t.issues.length)if(Nr.has(typeof o))n.issues.push(...ce(o,t.issues));else n.issues.push({origin:\"map\",code:\"invalid_element\",input:r,inst:i,key:o,issues:t.issues.map((s)=>ne(s,a,H()))});n.value.set(e.value,t.value)}var Sc=p(\"$ZodSet\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:\"set\",code:\"invalid_type\"}),n;let i=[];n.value=new Set;for(let a of r){let s=t.valueType._zod.run({value:a,issues:[]},o);if(s instanceof Promise)i.push(s.then((c)=>Ef(c,n)));else Ef(s,n)}if(i.length)return Promise.all(i).then(()=>n);return n}});function Ef(e,t){if(e.issues.length)t.issues.push(...e.issues);t.value.add(e.value)}var Ic=p(\"$ZodEnum\",(e,t)=>{A.init(e,t);let n=Dr(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter((r)=>Nr.has(typeof r)).map((r)=>typeof r===\"string\"?be(r):r.toString()).join(\"|\")})$`),e._zod.parse=(r,i)=>{let a=r.value;if(o.has(a))return r;return r.issues.push({code:\"invalid_value\",values:n,input:a,inst:e}),r}}),Tc=p(\"$ZodLiteral\",(e,t)=>{if(A.init(e,t),t.values.length===0)throw Error(\"Cannot create literal schema with no valid values\");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map((o)=>typeof o===\"string\"?be(o):o?be(o.toString()):String(o)).join(\"|\")})$`),e._zod.parse=(o,r)=>{let i=o.value;if(n.has(i))return o;return o.issues.push({code:\"invalid_value\",values:t.values,input:i,inst:e}),o}}),Pc=p(\"$ZodFile\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;if(r instanceof File)return n;return n.issues.push({expected:\"file\",code:\"invalid_type\",input:r,inst:e}),n}}),Cc=p(\"$ZodTransform\",(e,t)=>{A.init(e,t),e._zod.optin=\"optional\",e._zod.parse=(n,o)=>{if(o.direction===\"backward\")throw new yt(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then((a)=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new ze;return n.value=r,n.fallback=!0,n}});function Of(e,t){if(t===void 0&&(e.issues.length||e.fallback))return{issues:[],value:void 0};return e}var $o=p(\"$ZodOptional\",(e,t)=>{A.init(e,t),e._zod.optin=\"optional\",e._zod.optout=\"optional\",N(e._zod,\"values\",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),N(e._zod,\"pattern\",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${qr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin===\"optional\"){let r=n.value,i=t.innerType._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>Of(a,r));return Of(i,r)}if(n.value===void 0)return n;return t.innerType._zod.run(n,o)}}),Ec=p(\"$ZodExactOptional\",(e,t)=>{$o.init(e,t),N(e._zod,\"values\",()=>t.innerType._zod.values),N(e._zod,\"pattern\",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Oc=p(\"$ZodNullable\",(e,t)=>{A.init(e,t),N(e._zod,\"optin\",()=>t.innerType._zod.optin),N(e._zod,\"optout\",()=>t.innerType._zod.optout),N(e._zod,\"pattern\",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${qr(n.source)}|null)$`):void 0}),N(e._zod,\"values\",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>{if(n.value===null)return n;return t.innerType._zod.run(n,o)}}),zc=p(\"$ZodDefault\",(e,t)=>{A.init(e,t),e._zod.optin=\"optional\",N(e._zod,\"values\",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction===\"backward\")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,o);if(r instanceof Promise)return r.then((i)=>zf(i,t));return zf(r,t)}});function zf(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var Ac=p(\"$ZodPrefault\",(e,t)=>{A.init(e,t),e._zod.optin=\"optional\",N(e._zod,\"values\",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction===\"backward\")return t.innerType._zod.run(n,o);if(n.value===void 0)n.value=t.defaultValue;return t.innerType._zod.run(n,o)}}),Rc=p(\"$ZodNonOptional\",(e,t)=>{A.init(e,t),N(e._zod,\"values\",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter((o)=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let r=t.innerType._zod.run(n,o);if(r instanceof Promise)return r.then((i)=>Af(i,e));return Af(r,e)}});function Af(e,t){if(!e.issues.length&&e.value===void 0)e.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:e.value,inst:t});return e}var jc=p(\"$ZodSuccess\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{if(o.direction===\"backward\")throw new yt(\"ZodSuccess\");let r=t.innerType._zod.run(n,o);if(r instanceof Promise)return r.then((i)=>(n.value=i.issues.length===0,n));return n.value=r.issues.length===0,n}}),Uc=p(\"$ZodCatch\",(e,t)=>{A.init(e,t),e._zod.optin=\"optional\",N(e._zod,\"optout\",()=>t.innerType._zod.optout),N(e._zod,\"values\",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction===\"backward\")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);if(r instanceof Promise)return r.then((i)=>{if(n.value=i.value,i.issues.length)n.value=t.catchValue({...n,error:{issues:i.issues.map((a)=>ne(a,o,H()))},input:n.value}),n.issues=[],n.fallback=!0;return n});if(n.value=r.value,r.issues.length)n.value=t.catchValue({...n,error:{issues:r.issues.map((i)=>ne(i,o,H()))},input:n.value}),n.issues=[],n.fallback=!0;return n}}),Dc=p(\"$ZodNaN\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>{if(typeof n.value!==\"number\"||!Number.isNaN(n.value))return n.issues.push({input:n.value,inst:e,expected:\"nan\",code:\"invalid_type\"}),n;return n}}),wo=p(\"$ZodPipe\",(e,t)=>{A.init(e,t),N(e._zod,\"values\",()=>t.in._zod.values),N(e._zod,\"optin\",()=>t.in._zod.optin),N(e._zod,\"optout\",()=>t.out._zod.optout),N(e._zod,\"propValues\",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction===\"backward\"){let i=t.out._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>po(a,t.in,o));return po(i,t.in,o)}let r=t.in._zod.run(n,o);if(r instanceof Promise)return r.then((i)=>po(i,t.out,o));return po(r,t.out,o)}});function po(e,t,n){if(e.issues.length)return e.aborted=!0,e;return t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Hr=p(\"$ZodCodec\",(e,t)=>{A.init(e,t),N(e._zod,\"values\",()=>t.in._zod.values),N(e._zod,\"optin\",()=>t.in._zod.optin),N(e._zod,\"optout\",()=>t.out._zod.optout),N(e._zod,\"propValues\",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||\"forward\")===\"forward\"){let i=t.in._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>mo(a,t,o));return mo(i,t,o)}else{let i=t.out._zod.run(n,o);if(i instanceof Promise)return i.then((a)=>mo(a,t,o));return mo(i,t,o)}}});function mo(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||\"forward\")===\"forward\"){let r=t.transform(e.value,e);if(r instanceof Promise)return r.then((i)=>fo(e,i,t.out,n));return fo(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);if(r instanceof Promise)return r.then((i)=>fo(e,i,t.in,n));return fo(e,r,t.in,n)}}function fo(e,t,n,o){if(e.issues.length)return e.aborted=!0,e;return n._zod.run({value:t,issues:e.issues},o)}var qc=p(\"$ZodPreprocess\",(e,t)=>{wo.init(e,t)}),Nc=p(\"$ZodReadonly\",(e,t)=>{A.init(e,t),N(e._zod,\"propValues\",()=>t.innerType._zod.propValues),N(e._zod,\"values\",()=>t.innerType._zod.values),N(e._zod,\"optin\",()=>t.innerType?._zod?.optin),N(e._zod,\"optout\",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction===\"backward\")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);if(r instanceof Promise)return r.then(Rf);return Rf(r)}});function Rf(e){return e.value=Object.freeze(e.value),e}var Jc=p(\"$ZodTemplateLiteral\",(e,t)=>{A.init(e,t);let n=[];for(let o of t.parts)if(typeof o===\"object\"&&o!==null){if(!o._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith(\"^\")?1:0,a=r.endsWith(\"$\")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||za.has(typeof o))n.push(be(`${o}`));else throw Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join(\"\")}$`),e._zod.parse=(o,r)=>{if(typeof o.value!==\"string\")return o.issues.push({input:o.value,inst:e,expected:\"string\",code:\"invalid_type\"}),o;if(e._zod.pattern.lastIndex=0,!e._zod.pattern.test(o.value))return o.issues.push({input:o.value,inst:e,code:\"invalid_format\",format:t.format??\"template_literal\",pattern:e._zod.pattern.source}),o;return o}}),Gc=p(\"$ZodFunction\",(e,t)=>(A.init(e,t),e._def=t,e._zod.def=t,e.implement=(n)=>{if(typeof n!==\"function\")throw Error(\"implement() must be called with a function\");return function(...o){let r=e._def.input?Xn(e._def.input,o):o,i=Reflect.apply(n,this,r);if(e._def.output)return Xn(e._def.output,i);return i}},e.implementAsync=(n)=>{if(typeof n!==\"function\")throw Error(\"implementAsync() must be called with a function\");return async function(...o){let r=e._def.input?await Yn(e._def.input,o):o,i=await Reflect.apply(n,this,r);if(e._def.output)return await Yn(e._def.output,i);return i}},e._zod.parse=(n,o)=>{if(typeof n.value!==\"function\")return n.issues.push({code:\"invalid_type\",expected:\"function\",input:n.value,inst:e}),n;if(e._def.output&&e._def.output._zod.def.type===\"promise\")n.value=e.implementAsync(n.value);else n.value=e.implement(n.value);return n},e.input=(...n)=>{let o=e.constructor;if(Array.isArray(n[0]))return new o({type:\"function\",input:new yo({type:\"tuple\",items:n[0],rest:n[1]}),output:e._def.output});return new o({type:\"function\",input:n[0],output:e._def.output})},e.output=(n)=>new e.constructor({type:\"function\",input:e._def.input,output:n}),e)),Mc=p(\"$ZodPromise\",(e,t)=>{A.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then((r)=>t.innerType._zod.run({value:r,issues:[]},o))}),Zc=p(\"$ZodLazy\",(e,t)=>{A.init(e,t),N(e._zod,\"innerType\",()=>{let n=t;if(!n._cachedInner)n._cachedInner=t.getter();return n._cachedInner}),N(e._zod,\"pattern\",()=>e._zod.innerType?._zod?.pattern),N(e._zod,\"propValues\",()=>e._zod.innerType?._zod?.propValues),N(e._zod,\"optin\",()=>e._zod.innerType?._zod?.optin??void 0),N(e._zod,\"optout\",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Lc=p(\"$ZodCustom\",(e,t)=>{B.init(e,t),A.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=(n)=>{let o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then((i)=>jf(i,n,o,e));jf(r,n,o,e);return}});function jf(e,t,n,o){if(!e){let r={code:\"custom\",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};if(o._zod.def.params)r.params=o._zod.def.params;t.issues.push(Zt(r))}}var tn={};Ne(tn,{ar:()=>Vc,az:()=>Fc,be:()=>Bc,bg:()=>Kc,ca:()=>Wc,cs:()=>Hc,da:()=>Xc,de:()=>Yc,el:()=>Qc,en:()=>Xr,eo:()=>eu,es:()=>tu,fa:()=>ru,fi:()=>nu,fr:()=>ou,frCA:()=>iu,he:()=>au,hr:()=>su,hu:()=>cu,hy:()=>uu,id:()=>lu,is:()=>du,it:()=>pu,ja:()=>mu,ka:()=>fu,kh:()=>hu,km:()=>Yr,ko:()=>gu,lt:()=>vu,mk:()=>yu,ms:()=>$u,nl:()=>wu,no:()=>bu,ota:()=>_u,pl:()=>xu,ps:()=>ku,pt:()=>Su,ro:()=>Iu,ru:()=>Tu,sl:()=>Pu,sv:()=>Cu,ta:()=>Eu,th:()=>Ou,tr:()=>zu,ua:()=>Au,uk:()=>en,ur:()=>Ru,uz:()=>ju,vi:()=>Uu,yo:()=>Nu,zhCN:()=>Du,zhTW:()=>qu});var Rk=()=>{let e={string:{unit:\"حرف\",verb:\"أن يحوي\"},file:{unit:\"بايت\",verb:\"أن يحوي\"},array:{unit:\"عنصر\",verb:\"أن يحوي\"},set:{unit:\"عنصر\",verb:\"أن يحوي\"}};function t(r){return e[r]??null}let n={regex:\"مدخل\",email:\"بريد إلكتروني\",url:\"رابط\",emoji:\"إيموجي\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"تاريخ ووقت بمعيار ISO\",date:\"تاريخ بمعيار ISO\",time:\"وقت بمعيار ISO\",duration:\"مدة بمعيار ISO\",ipv4:\"عنوان IPv4\",ipv6:\"عنوان IPv6\",cidrv4:\"مدى عناوين بصيغة IPv4\",cidrv6:\"مدى عناوين بصيغة IPv6\",base64:\"نَص بترميز base64-encoded\",base64url:\"نَص بترميز base64url-encoded\",json_string:\"نَص على هيئة JSON\",e164:\"رقم هاتف بمعيار E.164\",jwt:\"JWT\",template_literal:\"مدخل\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${r.expected}، ولكن تم إدخال ${s}`;return`مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${s}`}case\"invalid_value\":if(r.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${w(r.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return` أكبر من اللازم: يفترض أن تكون ${r.origin??\"القيمة\"} ${i} ${r.maximum.toString()} ${a.unit??\"عنصر\"}`;return`أكبر من اللازم: يفترض أن تكون ${r.origin??\"القيمة\"} ${i} ${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${i} ${r.minimum.toString()} ${a.unit}`;return`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${i} ${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`نَص غير مقبول: يجب أن يبدأ بـ \"${r.prefix}\"`;if(i.format===\"ends_with\")return`نَص غير مقبول: يجب أن ينتهي بـ \"${i.suffix}\"`;if(i.format===\"includes\")return`نَص غير مقبول: يجب أن يتضمَّن \"${i.includes}\"`;if(i.format===\"regex\")return`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`;return`${n[i.format]??r.format} غير مقبول`}case\"not_multiple_of\":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case\"unrecognized_keys\":return`معرف${r.keys.length>1?\"ات\":\"\"} غريب${r.keys.length>1?\"ة\":\"\"}: ${h(r.keys,\"، \")}`;case\"invalid_key\":return`معرف غير مقبول في ${r.origin}`;case\"invalid_union\":return\"مدخل غير مقبول\";case\"invalid_element\":return`مدخل غير مقبول في ${r.origin}`;default:return\"مدخل غير مقبول\"}}};function Vc(){return{localeError:Rk()}}var jk=()=>{let e={string:{unit:\"simvol\",verb:\"olmalıdır\"},file:{unit:\"bayt\",verb:\"olmalıdır\"},array:{unit:\"element\",verb:\"olmalıdır\"},set:{unit:\"element\",verb:\"olmalıdır\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"email address\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datetime\",date:\"ISO date\",time:\"ISO time\",duration:\"ISO duration\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded string\",base64url:\"base64url-encoded string\",json_string:\"JSON string\",e164:\"E.164 number\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Yanlış dəyər: gözlənilən instanceof ${r.expected}, daxil olan ${s}`;return`Yanlış dəyər: gözlənilən ${i}, daxil olan ${s}`}case\"invalid_value\":if(r.values.length===1)return`Yanlış dəyər: gözlənilən ${w(r.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Çox böyük: gözlənilən ${r.origin??\"dəyər\"} ${i}${r.maximum.toString()} ${a.unit??\"element\"}`;return`Çox böyük: gözlənilən ${r.origin??\"dəyər\"} ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Çox kiçik: gözlənilən ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`;return`Çox kiçik: gözlənilən ${r.origin} ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Yanlış mətn: \"${i.prefix}\" ilə başlamalıdır`;if(i.format===\"ends_with\")return`Yanlış mətn: \"${i.suffix}\" ilə bitməlidir`;if(i.format===\"includes\")return`Yanlış mətn: \"${i.includes}\" daxil olmalıdır`;if(i.format===\"regex\")return`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case\"unrecognized_keys\":return`Tanınmayan açar${r.keys.length>1?\"lar\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`${r.origin} daxilində yanlış açar`;case\"invalid_union\":return\"Yanlış dəyər\";case\"invalid_element\":return`${r.origin} daxilində yanlış dəyər`;default:return\"Yanlış dəyər\"}}};function Fc(){return{localeError:jk()}}function Gf(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;if(a>=11&&a<=19)return o;if(i===1)return t;if(i>=2&&i<=4)return n;return o}var Uk=()=>{let e={string:{unit:{one:\"сімвал\",few:\"сімвалы\",many:\"сімвалаў\"},verb:\"мець\"},array:{unit:{one:\"элемент\",few:\"элементы\",many:\"элементаў\"},verb:\"мець\"},set:{unit:{one:\"элемент\",few:\"элементы\",many:\"элементаў\"},verb:\"мець\"},file:{unit:{one:\"байт\",few:\"байты\",many:\"байтаў\"},verb:\"мець\"}};function t(r){return e[r]??null}let n={regex:\"увод\",email:\"email адрас\",url:\"URL\",emoji:\"эмодзі\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO дата і час\",date:\"ISO дата\",time:\"ISO час\",duration:\"ISO працягласць\",ipv4:\"IPv4 адрас\",ipv6:\"IPv6 адрас\",cidrv4:\"IPv4 дыяпазон\",cidrv6:\"IPv6 дыяпазон\",base64:\"радок у фармаце base64\",base64url:\"радок у фармаце base64url\",json_string:\"JSON радок\",e164:\"нумар E.164\",jwt:\"JWT\",template_literal:\"увод\"},o={nan:\"NaN\",number:\"лік\",array:\"масіў\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Няправільны ўвод: чакаўся instanceof ${r.expected}, атрымана ${s}`;return`Няправільны ўвод: чакаўся ${i}, атрымана ${s}`}case\"invalid_value\":if(r.values.length===1)return`Няправільны ўвод: чакалася ${w(r.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a){let s=Number(r.maximum),c=Gf(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??\"значэнне\"} павінна ${a.verb} ${i}${r.maximum.toString()} ${c}`}return`Занадта вялікі: чакалася, што ${r.origin??\"значэнне\"} павінна быць ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a){let s=Number(r.minimum),c=Gf(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${a.verb} ${i}${r.minimum.toString()} ${c}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Няправільны радок: павінен пачынацца з \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Няправільны радок: павінен заканчвацца на \"${i.suffix}\"`;if(i.format===\"includes\")return`Няправільны радок: павінен змяшчаць \"${i.includes}\"`;if(i.format===\"regex\")return`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`;return`Няправільны ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case\"unrecognized_keys\":return`Нераспазнаны ${r.keys.length>1?\"ключы\":\"ключ\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Няправільны ключ у ${r.origin}`;case\"invalid_union\":return\"Няправільны ўвод\";case\"invalid_element\":return`Няправільнае значэнне ў ${r.origin}`;default:return\"Няправільны ўвод\"}}};function Bc(){return{localeError:Uk()}}var Dk=()=>{let e={string:{unit:\"символа\",verb:\"да съдържа\"},file:{unit:\"байта\",verb:\"да съдържа\"},array:{unit:\"елемента\",verb:\"да съдържа\"},set:{unit:\"елемента\",verb:\"да съдържа\"}};function t(r){return e[r]??null}let n={regex:\"вход\",email:\"имейл адрес\",url:\"URL\",emoji:\"емоджи\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO време\",date:\"ISO дата\",time:\"ISO време\",duration:\"ISO продължителност\",ipv4:\"IPv4 адрес\",ipv6:\"IPv6 адрес\",cidrv4:\"IPv4 диапазон\",cidrv6:\"IPv6 диапазон\",base64:\"base64-кодиран низ\",base64url:\"base64url-кодиран низ\",json_string:\"JSON низ\",e164:\"E.164 номер\",jwt:\"JWT\",template_literal:\"вход\"},o={nan:\"NaN\",number:\"число\",array:\"масив\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Невалиден вход: очакван instanceof ${r.expected}, получен ${s}`;return`Невалиден вход: очакван ${i}, получен ${s}`}case\"invalid_value\":if(r.values.length===1)return`Невалиден вход: очакван ${w(r.values[0])}`;return`Невалидна опция: очаквано едно от ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Твърде голямо: очаква се ${r.origin??\"стойност\"} да съдържа ${i}${r.maximum.toString()} ${a.unit??\"елемента\"}`;return`Твърде голямо: очаква се ${r.origin??\"стойност\"} да бъде ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Твърде малко: очаква се ${r.origin} да съдържа ${i}${r.minimum.toString()} ${a.unit}`;return`Твърде малко: очаква се ${r.origin} да бъде ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Невалиден низ: трябва да започва с \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Невалиден низ: трябва да завършва с \"${i.suffix}\"`;if(i.format===\"includes\")return`Невалиден низ: трябва да включва \"${i.includes}\"`;if(i.format===\"regex\")return`Невалиден низ: трябва да съвпада с ${i.pattern}`;let a=\"Невалиден\";if(i.format===\"emoji\")a=\"Невалидно\";if(i.format===\"datetime\")a=\"Невалидно\";if(i.format===\"date\")a=\"Невалидна\";if(i.format===\"time\")a=\"Невалидно\";if(i.format===\"duration\")a=\"Невалидна\";return`${a} ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Невалидно число: трябва да бъде кратно на ${r.divisor}`;case\"unrecognized_keys\":return`Неразпознат${r.keys.length>1?\"и\":\"\"} ключ${r.keys.length>1?\"ове\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Невалиден ключ в ${r.origin}`;case\"invalid_union\":return\"Невалиден вход\";case\"invalid_element\":return`Невалидна стойност в ${r.origin}`;default:return\"Невалиден вход\"}}};function Kc(){return{localeError:Dk()}}var qk=()=>{let e={string:{unit:\"caràcters\",verb:\"contenir\"},file:{unit:\"bytes\",verb:\"contenir\"},array:{unit:\"elements\",verb:\"contenir\"},set:{unit:\"elements\",verb:\"contenir\"}};function t(r){return e[r]??null}let n={regex:\"entrada\",email:\"adreça electrònica\",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ça IPv4\",ipv6:\"adreça IPv6\",cidrv4:\"rang IPv4\",cidrv6:\"rang IPv6\",base64:\"cadena codificada en base64\",base64url:\"cadena codificada en base64url\",json_string:\"cadena JSON\",e164:\"número E.164\",jwt:\"JWT\",template_literal:\"entrada\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Tipus invàlid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`;return`Tipus invàlid: s'esperava ${i}, s'ha rebut ${s}`}case\"invalid_value\":if(r.values.length===1)return`Valor invàlid: s'esperava ${w(r.values[0])}`;return`Opció invàlida: s'esperava una de ${h(r.values,\" o \")}`;case\"too_big\":{let i=r.inclusive?\"com a màxim\":\"menys de\",a=t(r.origin);if(a)return`Massa gran: s'esperava que ${r.origin??\"el valor\"} contingués ${i} ${r.maximum.toString()} ${a.unit??\"elements\"}`;return`Massa gran: s'esperava que ${r.origin??\"el valor\"} fos ${i} ${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\"com a mínim\":\"més de\",a=t(r.origin);if(a)return`Massa petit: s'esperava que ${r.origin} contingués ${i} ${r.minimum.toString()} ${a.unit}`;return`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Format invàlid: ha de començar amb \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Format invàlid: ha d'acabar amb \"${i.suffix}\"`;if(i.format===\"includes\")return`Format invàlid: ha d'incloure \"${i.includes}\"`;if(i.format===\"regex\")return`Format invàlid: ha de coincidir amb el patró ${i.pattern}`;return`Format invàlid per a ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case\"unrecognized_keys\":return`Clau${r.keys.length>1?\"s\":\"\"} no reconeguda${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Clau invàlida a ${r.origin}`;case\"invalid_union\":return\"Entrada invàlida\";case\"invalid_element\":return`Element invàlid a ${r.origin}`;default:return\"Entrada invàlida\"}}};function Wc(){return{localeError:qk()}}var Nk=()=>{let e={string:{unit:\"znaků\",verb:\"mít\"},file:{unit:\"bajtů\",verb:\"mít\"},array:{unit:\"prvků\",verb:\"mít\"},set:{unit:\"prvků\",verb:\"mít\"}};function t(r){return e[r]??null}let n={regex:\"regulární výraz\",email:\"e-mailová 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 čas ve formátu ISO\",date:\"datum ve formátu ISO\",time:\"čas ve formátu ISO\",duration:\"doba trvání ISO\",ipv4:\"IPv4 adresa\",ipv6:\"IPv6 adresa\",cidrv4:\"rozsah IPv4\",cidrv6:\"rozsah IPv6\",base64:\"řetězec zakódovaný ve formátu base64\",base64url:\"řetězec zakódovaný ve formátu base64url\",json_string:\"řetězec ve formátu JSON\",e164:\"číslo E.164\",jwt:\"JWT\",template_literal:\"vstup\"},o={nan:\"NaN\",number:\"číslo\",string:\"řetězec\",function:\"funkce\",array:\"pole\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Neplatný vstup: očekáváno instanceof ${r.expected}, obdrženo ${s}`;return`Neplatný vstup: očekáváno ${i}, obdrženo ${s}`}case\"invalid_value\":if(r.values.length===1)return`Neplatný vstup: očekáváno ${w(r.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Hodnota je příliš velká: ${r.origin??\"hodnota\"} musí mít ${i}${r.maximum.toString()} ${a.unit??\"prvků\"}`;return`Hodnota je příliš velká: ${r.origin??\"hodnota\"} musí být ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Hodnota je příliš malá: ${r.origin??\"hodnota\"} musí mít ${i}${r.minimum.toString()} ${a.unit??\"prvků\"}`;return`Hodnota je příliš malá: ${r.origin??\"hodnota\"} musí být ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Neplatný řetězec: musí začínat na \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Neplatný řetězec: musí končit na \"${i.suffix}\"`;if(i.format===\"includes\")return`Neplatný řetězec: musí obsahovat \"${i.includes}\"`;if(i.format===\"regex\")return`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`;return`Neplatný formát ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Neplatné číslo: musí být násobkem ${r.divisor}`;case\"unrecognized_keys\":return`Neznámé klíče: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Neplatný klíč v ${r.origin}`;case\"invalid_union\":return\"Neplatný vstup\";case\"invalid_element\":return`Neplatná hodnota v ${r.origin}`;default:return\"Neplatný vstup\"}}};function Hc(){return{localeError:Nk()}}var Jk=()=>{let e={string:{unit:\"tegn\",verb:\"havde\"},file:{unit:\"bytes\",verb:\"havde\"},array:{unit:\"elementer\",verb:\"indeholdt\"},set:{unit:\"elementer\",verb:\"indeholdt\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"e-mailadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkeslæt\",date:\"ISO-dato\",time:\"ISO-klokkeslæt\",duration:\"ISO-varighed\",ipv4:\"IPv4-område\",ipv6:\"IPv6-område\",cidrv4:\"IPv4-spektrum\",cidrv6:\"IPv6-spektrum\",base64:\"base64-kodet streng\",base64url:\"base64url-kodet streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\",string:\"streng\",number:\"tal\",boolean:\"boolean\",array:\"liste\",object:\"objekt\",set:\"sæt\",file:\"fil\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`;return`Ugyldigt input: forventede ${i}, fik ${s}`}case\"invalid_value\":if(r.values.length===1)return`Ugyldig værdi: forventede ${w(r.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin),s=o[r.origin]??r.origin;if(a)return`For stor: forventede ${s??\"value\"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??\"elementer\"}`;return`For stor: forventede ${s??\"value\"} havde ${i} ${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin),s=o[r.origin]??r.origin;if(a)return`For lille: forventede ${s} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`;return`For lille: forventede ${s} havde ${i} ${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ugyldig streng: skal starte med \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Ugyldig streng: skal ende med \"${i.suffix}\"`;if(i.format===\"includes\")return`Ugyldig streng: skal indeholde \"${i.includes}\"`;if(i.format===\"regex\")return`Ugyldig streng: skal matche mønsteret ${i.pattern}`;return`Ugyldig ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Ugyldigt tal: skal være deleligt med ${r.divisor}`;case\"unrecognized_keys\":return`${r.keys.length>1?\"Ukendte nøgler\":\"Ukendt nøgle\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Ugyldig nøgle i ${r.origin}`;case\"invalid_union\":return\"Ugyldigt input: matcher ingen af de tilladte typer\";case\"invalid_element\":return`Ugyldig værdi i ${r.origin}`;default:return\"Ugyldigt input\"}}};function Xc(){return{localeError:Jk()}}var Gk=()=>{let e={string:{unit:\"Zeichen\",verb:\"zu haben\"},file:{unit:\"Bytes\",verb:\"zu haben\"},array:{unit:\"Elemente\",verb:\"zu haben\"},set:{unit:\"Elemente\",verb:\"zu haben\"}};function t(r){return e[r]??null}let n={regex:\"Eingabe\",email:\"E-Mail-Adresse\",url:\"URL\",emoji:\"Emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-Datum und -Uhrzeit\",date:\"ISO-Datum\",time:\"ISO-Uhrzeit\",duration:\"ISO-Dauer\",ipv4:\"IPv4-Adresse\",ipv6:\"IPv6-Adresse\",cidrv4:\"IPv4-Bereich\",cidrv6:\"IPv6-Bereich\",base64:\"Base64-codierter String\",base64url:\"Base64-URL-codierter String\",json_string:\"JSON-String\",e164:\"E.164-Nummer\",jwt:\"JWT\",template_literal:\"Eingabe\"},o={nan:\"NaN\",number:\"Zahl\",array:\"Array\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Ungültige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`;return`Ungültige Eingabe: erwartet ${i}, erhalten ${s}`}case\"invalid_value\":if(r.values.length===1)return`Ungültige Eingabe: erwartet ${w(r.values[0])}`;return`Ungültige Option: erwartet eine von ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Zu groß: erwartet, dass ${r.origin??\"Wert\"} ${i}${r.maximum.toString()} ${a.unit??\"Elemente\"} hat`;return`Zu groß: erwartet, dass ${r.origin??\"Wert\"} ${i}${r.maximum.toString()} ist`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`;return`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ungültiger String: muss mit \"${i.prefix}\" beginnen`;if(i.format===\"ends_with\")return`Ungültiger String: muss mit \"${i.suffix}\" enden`;if(i.format===\"includes\")return`Ungültiger String: muss \"${i.includes}\" enthalten`;if(i.format===\"regex\")return`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`;return`Ungültig: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case\"unrecognized_keys\":return`${r.keys.length>1?\"Unbekannte Schlüssel\":\"Unbekannter Schlüssel\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Ungültiger Schlüssel in ${r.origin}`;case\"invalid_union\":return\"Ungültige Eingabe\";case\"invalid_element\":return`Ungültiger Wert in ${r.origin}`;default:return\"Ungültige Eingabe\"}}};function Yc(){return{localeError:Gk()}}var Mk=()=>{let e={string:{unit:\"χαρακτήρες\",verb:\"να έχει\"},file:{unit:\"bytes\",verb:\"να έχει\"},array:{unit:\"στοιχεία\",verb:\"να έχει\"},set:{unit:\"στοιχεία\",verb:\"να έχει\"},map:{unit:\"καταχωρήσεις\",verb:\"να έχει\"}};function t(r){return e[r]??null}let n={regex:\"είσοδος\",email:\"διεύθυνση 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 ημερομηνία και ώρα\",date:\"ISO ημερομηνία\",time:\"ISO ώρα\",duration:\"ISO διάρκεια\",ipv4:\"διεύθυνση IPv4\",ipv6:\"διεύθυνση IPv6\",mac:\"διεύθυνση MAC\",cidrv4:\"εύρος IPv4\",cidrv6:\"εύρος IPv6\",base64:\"συμβολοσειρά κωδικοποιημένη σε base64\",base64url:\"συμβολοσειρά κωδικοποιημένη σε base64url\",json_string:\"συμβολοσειρά JSON\",e164:\"αριθμός E.164\",jwt:\"JWT\",template_literal:\"είσοδος\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(typeof r.expected===\"string\"&&/^[A-Z]/.test(r.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${r.expected}, λήφθηκε ${s}`;return`Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${s}`}case\"invalid_value\":if(r.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${w(r.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Πολύ μεγάλο: αναμενόταν ${r.origin??\"τιμή\"} να έχει ${i}${r.maximum.toString()} ${a.unit??\"στοιχεία\"}`;return`Πολύ μεγάλο: αναμενόταν ${r.origin??\"τιμή\"} να είναι ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Πολύ μικρό: αναμενόταν ${r.origin} να έχει ${i}${r.minimum.toString()} ${a.unit}`;return`Πολύ μικρό: αναμενόταν ${r.origin} να είναι ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \"${i.suffix}\"`;if(i.format===\"includes\")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \"${i.includes}\"`;if(i.format===\"regex\")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${i.pattern}`;return`Μη έγκυρο: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${r.divisor}`;case\"unrecognized_keys\":return`Άγνωστ${r.keys.length>1?\"α\":\"ο\"} κλειδ${r.keys.length>1?\"ιά\":\"ί\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Μη έγκυρο κλειδί στο ${r.origin}`;case\"invalid_union\":return\"Μη έγκυρη είσοδος\";case\"invalid_element\":return`Μη έγκυρη τιμή στο ${r.origin}`;default:return\"Μη έγκυρη είσοδος\"}}};function Qc(){return{localeError:Mk()}}var Zk=()=>{let e={string:{unit:\"characters\",verb:\"to have\"},file:{unit:\"bytes\",verb:\"to have\"},array:{unit:\"items\",verb:\"to have\"},set:{unit:\"items\",verb:\"to have\"},map:{unit:\"entries\",verb:\"to have\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"email address\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datetime\",date:\"ISO date\",time:\"ISO time\",duration:\"ISO duration\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",mac:\"MAC address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded string\",base64url:\"base64url-encoded string\",json_string:\"JSON string\",e164:\"E.164 number\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case\"invalid_value\":if(r.values.length===1)return`Invalid input: expected ${w(r.values[0])}`;return`Invalid option: expected one of ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Too big: expected ${r.origin??\"value\"} to have ${i}${r.maximum.toString()} ${a.unit??\"elements\"}`;return`Too big: expected ${r.origin??\"value\"} to be ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.unit}`;return`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Invalid string: must start with \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Invalid string: must end with \"${i.suffix}\"`;if(i.format===\"includes\")return`Invalid string: must include \"${i.includes}\"`;if(i.format===\"regex\")return`Invalid string: must match pattern ${i.pattern}`;return`Invalid ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Invalid number: must be a multiple of ${r.divisor}`;case\"unrecognized_keys\":return`Unrecognized key${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Invalid key in ${r.origin}`;case\"invalid_union\":if(r.options&&Array.isArray(r.options)&&r.options.length>0)return`Invalid discriminator value. Expected ${r.options.map((a)=>`'${a}'`).join(\" | \")}`;return\"Invalid input\";case\"invalid_element\":return`Invalid value in ${r.origin}`;default:return\"Invalid input\"}}};function Xr(){return{localeError:Zk()}}var Lk=()=>{let e={string:{unit:\"karaktrojn\",verb:\"havi\"},file:{unit:\"bajtojn\",verb:\"havi\"},array:{unit:\"elementojn\",verb:\"havi\"},set:{unit:\"elementojn\",verb:\"havi\"}};function t(r){return e[r]??null}let n={regex:\"enigo\",email:\"retadreso\",url:\"URL\",emoji:\"emoĝio\",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ŭro\",ipv4:\"IPv4-adreso\",ipv6:\"IPv6-adreso\",cidrv4:\"IPv4-rango\",cidrv6:\"IPv6-rango\",base64:\"64-ume kodita karaktraro\",base64url:\"URL-64-ume kodita karaktraro\",json_string:\"JSON-karaktraro\",e164:\"E.164-nombro\",jwt:\"JWT\",template_literal:\"enigo\"},o={nan:\"NaN\",number:\"nombro\",array:\"tabelo\",null:\"senvalora\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Nevalida enigo: atendiĝis instanceof ${r.expected}, riceviĝis ${s}`;return`Nevalida enigo: atendiĝis ${i}, riceviĝis ${s}`}case\"invalid_value\":if(r.values.length===1)return`Nevalida enigo: atendiĝis ${w(r.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Tro granda: atendiĝis ke ${r.origin??\"valoro\"} havu ${i}${r.maximum.toString()} ${a.unit??\"elementojn\"}`;return`Tro granda: atendiĝis ke ${r.origin??\"valoro\"} havu ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Tro malgranda: atendiĝis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`;return`Tro malgranda: atendiĝis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Nevalida karaktraro: devas komenciĝi per \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Nevalida karaktraro: devas finiĝi per \"${i.suffix}\"`;if(i.format===\"includes\")return`Nevalida karaktraro: devas inkluzivi \"${i.includes}\"`;if(i.format===\"regex\")return`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`;return`Nevalida ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case\"unrecognized_keys\":return`Nekonata${r.keys.length>1?\"j\":\"\"} ŝlosilo${r.keys.length>1?\"j\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Nevalida ŝlosilo en ${r.origin}`;case\"invalid_union\":return\"Nevalida enigo\";case\"invalid_element\":return`Nevalida valoro en ${r.origin}`;default:return\"Nevalida enigo\"}}};function eu(){return{localeError:Lk()}}var Vk=()=>{let e={string:{unit:\"caracteres\",verb:\"tener\"},file:{unit:\"bytes\",verb:\"tener\"},array:{unit:\"elementos\",verb:\"tener\"},set:{unit:\"elementos\",verb:\"tener\"}};function t(r){return e[r]??null}let n={regex:\"entrada\",email:\"dirección de correo electrónico\",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ón ISO\",ipv4:\"dirección IPv4\",ipv6:\"dirección IPv6\",cidrv4:\"rango IPv4\",cidrv6:\"rango IPv6\",base64:\"cadena codificada en base64\",base64url:\"URL codificada en base64\",json_string:\"cadena JSON\",e164:\"número E.164\",jwt:\"JWT\",template_literal:\"entrada\"},o={nan:\"NaN\",string:\"texto\",number:\"número\",boolean:\"booleano\",array:\"arreglo\",object:\"objeto\",set:\"conjunto\",file:\"archivo\",date:\"fecha\",bigint:\"número grande\",symbol:\"símbolo\",undefined:\"indefinido\",null:\"nulo\",function:\"función\",map:\"mapa\",record:\"registro\",tuple:\"tupla\",enum:\"enumeración\",union:\"unión\",literal:\"literal\",promise:\"promesa\",void:\"vacío\",never:\"nunca\",unknown:\"desconocido\",any:\"cualquiera\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Entrada inválida: se esperaba instanceof ${r.expected}, recibido ${s}`;return`Entrada inválida: se esperaba ${i}, recibido ${s}`}case\"invalid_value\":if(r.values.length===1)return`Entrada inválida: se esperaba ${w(r.values[0])}`;return`Opción inválida: se esperaba una de ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin),s=o[r.origin]??r.origin;if(a)return`Demasiado grande: se esperaba que ${s??\"valor\"} tuviera ${i}${r.maximum.toString()} ${a.unit??\"elementos\"}`;return`Demasiado grande: se esperaba que ${s??\"valor\"} fuera ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin),s=o[r.origin]??r.origin;if(a)return`Demasiado pequeño: se esperaba que ${s} tuviera ${i}${r.minimum.toString()} ${a.unit}`;return`Demasiado pequeño: se esperaba que ${s} fuera ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Cadena inválida: debe comenzar con \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Cadena inválida: debe terminar en \"${i.suffix}\"`;if(i.format===\"includes\")return`Cadena inválida: debe incluir \"${i.includes}\"`;if(i.format===\"regex\")return`Cadena inválida: debe coincidir con el patrón ${i.pattern}`;return`Inválido ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Número inválido: debe ser múltiplo de ${r.divisor}`;case\"unrecognized_keys\":return`Llave${r.keys.length>1?\"s\":\"\"} desconocida${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Llave inválida en ${o[r.origin]??r.origin}`;case\"invalid_union\":return\"Entrada inválida\";case\"invalid_element\":return`Valor inválido en ${o[r.origin]??r.origin}`;default:return\"Entrada inválida\"}}};function tu(){return{localeError:Vk()}}var Fk=()=>{let e={string:{unit:\"کاراکتر\",verb:\"داشته باشد\"},file:{unit:\"بایت\",verb:\"داشته باشد\"},array:{unit:\"آیتم\",verb:\"داشته باشد\"},set:{unit:\"آیتم\",verb:\"داشته باشد\"}};function t(r){return e[r]??null}let n={regex:\"ورودی\",email:\"آدرس ایمیل\",url:\"URL\",emoji:\"ایموجی\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"تاریخ و زمان ایزو\",date:\"تاریخ ایزو\",time:\"زمان ایزو\",duration:\"مدت زمان ایزو\",ipv4:\"IPv4 آدرس\",ipv6:\"IPv6 آدرس\",cidrv4:\"IPv4 دامنه\",cidrv6:\"IPv6 دامنه\",base64:\"base64-encoded رشته\",base64url:\"base64url-encoded رشته\",json_string:\"JSON رشته\",e164:\"E.164 عدد\",jwt:\"JWT\",template_literal:\"ورودی\"},o={nan:\"NaN\",number:\"عدد\",array:\"آرایه\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`ورودی نامعتبر: میبایست instanceof ${r.expected} میبود، ${s} دریافت شد`;return`ورودی نامعتبر: میبایست ${i} میبود، ${s} دریافت شد`}case\"invalid_value\":if(r.values.length===1)return`ورودی نامعتبر: میبایست ${w(r.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${h(r.values,\"|\")} میبود`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`خیلی بزرگ: ${r.origin??\"مقدار\"} باید ${i}${r.maximum.toString()} ${a.unit??\"عنصر\"} باشد`;return`خیلی بزرگ: ${r.origin??\"مقدار\"} باید ${i}${r.maximum.toString()} باشد`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`خیلی کوچک: ${r.origin} باید ${i}${r.minimum.toString()} ${a.unit} باشد`;return`خیلی کوچک: ${r.origin} باید ${i}${r.minimum.toString()} باشد`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`رشته نامعتبر: باید با \"${i.prefix}\" شروع شود`;if(i.format===\"ends_with\")return`رشته نامعتبر: باید با \"${i.suffix}\" تمام شود`;if(i.format===\"includes\")return`رشته نامعتبر: باید شامل \"${i.includes}\" باشد`;if(i.format===\"regex\")return`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`;return`${n[i.format]??r.format} نامعتبر`}case\"not_multiple_of\":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case\"unrecognized_keys\":return`کلید${r.keys.length>1?\"های\":\"\"} ناشناس: ${h(r.keys,\", \")}`;case\"invalid_key\":return`کلید ناشناس در ${r.origin}`;case\"invalid_union\":return\"ورودی نامعتبر\";case\"invalid_element\":return`مقدار نامعتبر در ${r.origin}`;default:return\"ورودی نامعتبر\"}}};function ru(){return{localeError:Fk()}}var Bk=()=>{let e={string:{unit:\"merkkiä\",subject:\"merkkijonon\"},file:{unit:\"tavua\",subject:\"tiedoston\"},array:{unit:\"alkiota\",subject:\"listan\"},set:{unit:\"alkiota\",subject:\"joukon\"},number:{unit:\"\",subject:\"luvun\"},bigint:{unit:\"\",subject:\"suuren kokonaisluvun\"},int:{unit:\"\",subject:\"kokonaisluvun\"},date:{unit:\"\",subject:\"päivämäärän\"}};function t(r){return e[r]??null}let n={regex:\"säännöllinen lauseke\",email:\"sähköpostiosoite\",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äivämäärä\",time:\"ISO-aika\",duration:\"ISO-kesto\",ipv4:\"IPv4-osoite\",ipv6:\"IPv6-osoite\",cidrv4:\"IPv4-alue\",cidrv6:\"IPv6-alue\",base64:\"base64-koodattu merkkijono\",base64url:\"base64url-koodattu merkkijono\",json_string:\"JSON-merkkijono\",e164:\"E.164-luku\",jwt:\"JWT\",template_literal:\"templaattimerkkijono\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`;return`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case\"invalid_value\":if(r.values.length===1)return`Virheellinen syöte: täytyy olla ${w(r.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Liian suuri: ${a.subject} täytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim();return`Liian suuri: arvon täytyy olla ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Liian pieni: ${a.subject} täytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim();return`Liian pieni: arvon täytyy olla ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Virheellinen syöte: täytyy alkaa \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Virheellinen syöte: täytyy loppua \"${i.suffix}\"`;if(i.format===\"includes\")return`Virheellinen syöte: täytyy sisältää \"${i.includes}\"`;if(i.format===\"regex\")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`;return`Virheellinen ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case\"unrecognized_keys\":return`${r.keys.length>1?\"Tuntemattomat avaimet\":\"Tuntematon avain\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return\"Virheellinen avain tietueessa\";case\"invalid_union\":return\"Virheellinen unioni\";case\"invalid_element\":return\"Virheellinen arvo joukossa\";default:return\"Virheellinen syöte\"}}};function nu(){return{localeError:Bk()}}var Kk=()=>{let e={string:{unit:\"caractères\",verb:\"avoir\"},file:{unit:\"octets\",verb:\"avoir\"},array:{unit:\"éléments\",verb:\"avoir\"},set:{unit:\"éléments\",verb:\"avoir\"}};function t(r){return e[r]??null}let n={regex:\"entrée\",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ée ISO\",ipv4:\"adresse IPv4\",ipv6:\"adresse IPv6\",cidrv4:\"plage IPv4\",cidrv6:\"plage IPv6\",base64:\"chaîne encodée en base64\",base64url:\"chaîne encodée en base64url\",json_string:\"chaîne JSON\",e164:\"numéro E.164\",jwt:\"JWT\",template_literal:\"entrée\"},o={string:\"chaîne\",number:\"nombre\",int:\"entier\",boolean:\"booléen\",bigint:\"grand entier\",symbol:\"symbole\",undefined:\"indéfini\",null:\"null\",never:\"jamais\",void:\"vide\",date:\"date\",array:\"tableau\",object:\"objet\",tuple:\"tuple\",record:\"enregistrement\",map:\"carte\",set:\"ensemble\",file:\"fichier\",nonoptional:\"non-optionnel\",nan:\"NaN\",function:\"fonction\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Entrée invalide : instanceof ${r.expected} attendu, ${s} reçu`;return`Entrée invalide : ${i} attendu, ${s} reçu`}case\"invalid_value\":if(r.values.length===1)return`Entrée invalide : ${w(r.values[0])} attendu`;return`Option invalide : une valeur parmi ${h(r.values,\"|\")} attendue`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Trop grand : ${o[r.origin]??\"valeur\"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??\"élément(s)\"}`;return`Trop grand : ${o[r.origin]??\"valeur\"} doit être ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Trop petit : ${o[r.origin]??\"valeur\"} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`;return`Trop petit : ${o[r.origin]??\"valeur\"} doit être ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Chaîne invalide : doit commencer par \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Chaîne invalide : doit se terminer par \"${i.suffix}\"`;if(i.format===\"includes\")return`Chaîne invalide : doit inclure \"${i.includes}\"`;if(i.format===\"regex\")return`Chaîne invalide : doit correspondre au modèle ${i.pattern}`;return`${n[i.format]??r.format} invalide`}case\"not_multiple_of\":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case\"unrecognized_keys\":return`Clé${r.keys.length>1?\"s\":\"\"} non reconnue${r.keys.length>1?\"s\":\"\"} : ${h(r.keys,\", \")}`;case\"invalid_key\":return`Clé invalide dans ${r.origin}`;case\"invalid_union\":return\"Entrée invalide\";case\"invalid_element\":return`Valeur invalide dans ${r.origin}`;default:return\"Entrée invalide\"}}};function ou(){return{localeError:Kk()}}var Wk=()=>{let e={string:{unit:\"caractères\",verb:\"avoir\"},file:{unit:\"octets\",verb:\"avoir\"},array:{unit:\"éléments\",verb:\"avoir\"},set:{unit:\"éléments\",verb:\"avoir\"}};function t(r){return e[r]??null}let n={regex:\"entrée\",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ée ISO\",ipv4:\"adresse IPv4\",ipv6:\"adresse IPv6\",cidrv4:\"plage IPv4\",cidrv6:\"plage IPv6\",base64:\"chaîne encodée en base64\",base64url:\"chaîne encodée en base64url\",json_string:\"chaîne JSON\",e164:\"numéro E.164\",jwt:\"JWT\",template_literal:\"entrée\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Entrée invalide : attendu instanceof ${r.expected}, reçu ${s}`;return`Entrée invalide : attendu ${i}, reçu ${s}`}case\"invalid_value\":if(r.values.length===1)return`Entrée invalide : attendu ${w(r.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"≤\":\"<\",a=t(r.origin);if(a)return`Trop grand : attendu que ${r.origin??\"la valeur\"} ait ${i}${r.maximum.toString()} ${a.unit}`;return`Trop grand : attendu que ${r.origin??\"la valeur\"} soit ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\"≥\":\">\",a=t(r.origin);if(a)return`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`;return`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Chaîne invalide : doit commencer par \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Chaîne invalide : doit se terminer par \"${i.suffix}\"`;if(i.format===\"includes\")return`Chaîne invalide : doit inclure \"${i.includes}\"`;if(i.format===\"regex\")return`Chaîne invalide : doit correspondre au motif ${i.pattern}`;return`${n[i.format]??r.format} invalide`}case\"not_multiple_of\":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case\"unrecognized_keys\":return`Clé${r.keys.length>1?\"s\":\"\"} non reconnue${r.keys.length>1?\"s\":\"\"} : ${h(r.keys,\", \")}`;case\"invalid_key\":return`Clé invalide dans ${r.origin}`;case\"invalid_union\":return\"Entrée invalide\";case\"invalid_element\":return`Valeur invalide dans ${r.origin}`;default:return\"Entrée invalide\"}}};function iu(){return{localeError:Wk()}}var Hk=()=>{let e={string:{label:\"מחרוזת\",gender:\"f\"},number:{label:\"מספר\",gender:\"m\"},boolean:{label:\"ערך בוליאני\",gender:\"m\"},bigint:{label:\"BigInt\",gender:\"m\"},date:{label:\"תאריך\",gender:\"m\"},array:{label:\"מערך\",gender:\"m\"},object:{label:\"אובייקט\",gender:\"m\"},null:{label:\"ערך ריק (null)\",gender:\"m\"},undefined:{label:\"ערך לא מוגדר (undefined)\",gender:\"m\"},symbol:{label:\"סימבול (Symbol)\",gender:\"m\"},function:{label:\"פונקציה\",gender:\"f\"},map:{label:\"מפה (Map)\",gender:\"f\"},set:{label:\"קבוצה (Set)\",gender:\"f\"},file:{label:\"קובץ\",gender:\"m\"},promise:{label:\"Promise\",gender:\"m\"},NaN:{label:\"NaN\",gender:\"m\"},unknown:{label:\"ערך לא ידוע\",gender:\"m\"},value:{label:\"ערך\",gender:\"m\"}},t={string:{unit:\"תווים\",shortLabel:\"קצר\",longLabel:\"ארוך\"},file:{unit:\"בייטים\",shortLabel:\"קטן\",longLabel:\"גדול\"},array:{unit:\"פריטים\",shortLabel:\"קטן\",longLabel:\"גדול\"},set:{unit:\"פריטים\",shortLabel:\"קטן\",longLabel:\"גדול\"},number:{unit:\"\",shortLabel:\"קטן\",longLabel:\"גדול\"}},n=(u)=>u?e[u]:void 0,o=(u)=>{let l=n(u);if(l)return l.label;return u??e.unknown.label},r=(u)=>`ה${o(u)}`,i=(u)=>(n(u)?.gender??\"m\")===\"f\"?\"צריכה להיות\":\"צריך להיות\",a=(u)=>{if(!u)return null;return t[u]??null},s={regex:{label:\"קלט\",gender:\"m\"},email:{label:\"כתובת אימייל\",gender:\"f\"},url:{label:\"כתובת רשת\",gender:\"f\"},emoji:{label:\"אימוג'י\",gender:\"m\"},uuid:{label:\"UUID\",gender:\"m\"},nanoid:{label:\"nanoid\",gender:\"m\"},guid:{label:\"GUID\",gender:\"m\"},cuid:{label:\"cuid\",gender:\"m\"},cuid2:{label:\"cuid2\",gender:\"m\"},ulid:{label:\"ULID\",gender:\"m\"},xid:{label:\"XID\",gender:\"m\"},ksuid:{label:\"KSUID\",gender:\"m\"},datetime:{label:\"תאריך וזמן ISO\",gender:\"m\"},date:{label:\"תאריך ISO\",gender:\"m\"},time:{label:\"זמן ISO\",gender:\"m\"},duration:{label:\"משך זמן ISO\",gender:\"m\"},ipv4:{label:\"כתובת IPv4\",gender:\"f\"},ipv6:{label:\"כתובת IPv6\",gender:\"f\"},cidrv4:{label:\"טווח IPv4\",gender:\"m\"},cidrv6:{label:\"טווח IPv6\",gender:\"m\"},base64:{label:\"מחרוזת בבסיס 64\",gender:\"f\"},base64url:{label:\"מחרוזת בבסיס 64 לכתובות רשת\",gender:\"f\"},json_string:{label:\"מחרוזת JSON\",gender:\"f\"},e164:{label:\"מספר E.164\",gender:\"m\"},jwt:{label:\"JWT\",gender:\"m\"},ends_with:{label:\"קלט\",gender:\"m\"},includes:{label:\"קלט\",gender:\"m\"},lowercase:{label:\"קלט\",gender:\"m\"},starts_with:{label:\"קלט\",gender:\"m\"},uppercase:{label:\"קלט\",gender:\"m\"}},c={nan:\"NaN\"};return(u)=>{switch(u.code){case\"invalid_type\":{let l=u.expected,d=c[l??\"\"]??o(l),f=b(u.input),m=c[f]??e[f]?.label??f;if(/^[A-Z]/.test(u.expected))return`קלט לא תקין: צריך להיות instanceof ${u.expected}, התקבל ${m}`;return`קלט לא תקין: צריך להיות ${d}, התקבל ${m}`}case\"invalid_value\":{if(u.values.length===1)return`ערך לא תקין: הערך חייב להיות ${w(u.values[0])}`;let l=u.values.map((m)=>w(m));if(u.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${l[0]} או ${l[1]}`;let d=l[l.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${l.slice(0,-1).join(\", \")} או ${d}`}case\"too_big\":{let l=a(u.origin),d=r(u.origin??\"value\");if(u.origin===\"string\")return`${l?.longLabel??\"ארוך\"} מדי: ${d} צריכה להכיל ${u.maximum.toString()} ${l?.unit??\"\"} ${u.inclusive?\"או פחות\":\"לכל היותר\"}`.trim();if(u.origin===\"number\"){let v=u.inclusive?`קטן או שווה ל-${u.maximum}`:`קטן מ-${u.maximum}`;return`גדול מדי: ${d} צריך להיות ${v}`}if(u.origin===\"array\"||u.origin===\"set\"){let v=u.origin===\"set\"?\"צריכה\":\"צריך\",y=u.inclusive?`${u.maximum} ${l?.unit??\"\"} או פחות`:`פחות מ-${u.maximum} ${l?.unit??\"\"}`;return`גדול מדי: ${d} ${v} להכיל ${y}`.trim()}let f=u.inclusive?\"<=\":\"<\",m=i(u.origin??\"value\");if(l?.unit)return`${l.longLabel} מדי: ${d} ${m} ${f}${u.maximum.toString()} ${l.unit}`;return`${l?.longLabel??\"גדול\"} מדי: ${d} ${m} ${f}${u.maximum.toString()}`}case\"too_small\":{let l=a(u.origin),d=r(u.origin??\"value\");if(u.origin===\"string\")return`${l?.shortLabel??\"קצר\"} מדי: ${d} צריכה להכיל ${u.minimum.toString()} ${l?.unit??\"\"} ${u.inclusive?\"או יותר\":\"לפחות\"}`.trim();if(u.origin===\"number\"){let v=u.inclusive?`גדול או שווה ל-${u.minimum}`:`גדול מ-${u.minimum}`;return`קטן מדי: ${d} צריך להיות ${v}`}if(u.origin===\"array\"||u.origin===\"set\"){let v=u.origin===\"set\"?\"צריכה\":\"צריך\";if(u.minimum===1&&u.inclusive){let x=u.origin===\"set\"?\"לפחות פריט אחד\":\"לפחות פריט אחד\";return`קטן מדי: ${d} ${v} להכיל ${x}`}let y=u.inclusive?`${u.minimum} ${l?.unit??\"\"} או יותר`:`יותר מ-${u.minimum} ${l?.unit??\"\"}`;return`קטן מדי: ${d} ${v} להכיל ${y}`.trim()}let f=u.inclusive?\">=\":\">\",m=i(u.origin??\"value\");if(l?.unit)return`${l.shortLabel} מדי: ${d} ${m} ${f}${u.minimum.toString()} ${l.unit}`;return`${l?.shortLabel??\"קטן\"} מדי: ${d} ${m} ${f}${u.minimum.toString()}`}case\"invalid_format\":{let l=u;if(l.format===\"starts_with\")return`המחרוזת חייבת להתחיל ב \"${l.prefix}\"`;if(l.format===\"ends_with\")return`המחרוזת חייבת להסתיים ב \"${l.suffix}\"`;if(l.format===\"includes\")return`המחרוזת חייבת לכלול \"${l.includes}\"`;if(l.format===\"regex\")return`המחרוזת חייבת להתאים לתבנית ${l.pattern}`;let d=s[l.format],f=d?.label??l.format,v=(d?.gender??\"m\")===\"f\"?\"תקינה\":\"תקין\";return`${f} לא ${v}`}case\"not_multiple_of\":return`מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`;case\"unrecognized_keys\":return`מפתח${u.keys.length>1?\"ות\":\"\"} לא מזוה${u.keys.length>1?\"ים\":\"ה\"}: ${h(u.keys,\", \")}`;case\"invalid_key\":return\"שדה לא תקין באובייקט\";case\"invalid_union\":return\"קלט לא תקין\";case\"invalid_element\":return`ערך לא תקין ב${r(u.origin??\"array\")}`;default:return\"קלט לא תקין\"}}};function au(){return{localeError:Hk()}}var Xk=()=>{let e={string:{unit:\"znakova\",verb:\"imati\"},file:{unit:\"bajtova\",verb:\"imati\"},array:{unit:\"stavki\",verb:\"imati\"},set:{unit:\"stavki\",verb:\"imati\"}};function t(r){return e[r]??null}let n={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\",cidrv4:\"IPv4 raspon\",cidrv6:\"IPv6 raspon\",base64:\"base64 kodirani tekst\",base64url:\"base64url kodirani tekst\",json_string:\"JSON tekst\",e164:\"E.164 broj\",jwt:\"JWT\",template_literal:\"unos\"},o={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(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Neispravan unos: očekuje se instanceof ${r.expected}, a primljeno je ${s}`;return`Neispravan unos: očekuje se ${i}, a primljeno je ${s}`}case\"invalid_value\":if(r.values.length===1)return`Neispravna vrijednost: očekivano ${w(r.values[0])}`;return`Neispravna opcija: očekivano jedno od ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin),s=o[r.origin]??r.origin;if(a)return`Preveliko: očekivano da ${s??\"vrijednost\"} ima ${i}${r.maximum.toString()} ${a.unit??\"elemenata\"}`;return`Preveliko: očekivano da ${s??\"vrijednost\"} bude ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin),s=o[r.origin]??r.origin;if(a)return`Premalo: očekivano da ${s} ima ${i}${r.minimum.toString()} ${a.unit}`;return`Premalo: očekivano da ${s} bude ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Neispravan tekst: mora započinjati s \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Neispravan tekst: mora završavati s \"${i.suffix}\"`;if(i.format===\"includes\")return`Neispravan tekst: mora sadržavati \"${i.includes}\"`;if(i.format===\"regex\")return`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`;return`Neispravna ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Neispravan broj: mora biti višekratnik od ${r.divisor}`;case\"unrecognized_keys\":return`Neprepoznat${r.keys.length>1?\"i ključevi\":\" ključ\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Neispravan ključ u ${o[r.origin]??r.origin}`;case\"invalid_union\":return\"Neispravan unos\";case\"invalid_element\":return`Neispravna vrijednost u ${o[r.origin]??r.origin}`;default:return\"Neispravan unos\"}}};function su(){return{localeError:Xk()}}var Yk=()=>{let e={string:{unit:\"karakter\",verb:\"legyen\"},file:{unit:\"byte\",verb:\"legyen\"},array:{unit:\"elem\",verb:\"legyen\"},set:{unit:\"elem\",verb:\"legyen\"}};function t(r){return e[r]??null}let n={regex:\"bemenet\",email:\"email cím\",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őbélyeg\",date:\"ISO dátum\",time:\"ISO idő\",duration:\"ISO időintervallum\",ipv4:\"IPv4 cím\",ipv6:\"IPv6 cím\",cidrv4:\"IPv4 tartomány\",cidrv6:\"IPv6 tartomány\",base64:\"base64-kódolt string\",base64url:\"base64url-kódolt string\",json_string:\"JSON string\",e164:\"E.164 szám\",jwt:\"JWT\",template_literal:\"bemenet\"},o={nan:\"NaN\",number:\"szám\",array:\"tömb\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Érvénytelen bemenet: a várt érték instanceof ${r.expected}, a kapott érték ${s}`;return`Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${s}`}case\"invalid_value\":if(r.values.length===1)return`Érvénytelen bemenet: a várt érték ${w(r.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Túl nagy: ${r.origin??\"érték\"} mérete túl nagy ${i}${r.maximum.toString()} ${a.unit??\"elem\"}`;return`Túl nagy: a bemeneti érték ${r.origin??\"érték\"} túl nagy: ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${i}${r.minimum.toString()} ${a.unit}`;return`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Érvénytelen string: \"${i.prefix}\" értékkel kell kezdődnie`;if(i.format===\"ends_with\")return`Érvénytelen string: \"${i.suffix}\" értékkel kell végződnie`;if(i.format===\"includes\")return`Érvénytelen string: \"${i.includes}\" értéket kell tartalmaznia`;if(i.format===\"regex\")return`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`;return`Érvénytelen ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case\"unrecognized_keys\":return`Ismeretlen kulcs${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Érvénytelen kulcs ${r.origin}`;case\"invalid_union\":return\"Érvénytelen bemenet\";case\"invalid_element\":return`Érvénytelen érték: ${r.origin}`;default:return\"Érvénytelen bemenet\"}}};function cu(){return{localeError:Yk()}}function Mf(e,t,n){return Math.abs(e)===1?t:n}function Wt(e){if(!e)return\"\";let t=[\"ա\",\"ե\",\"ը\",\"ի\",\"ո\",\"ու\",\"օ\"],n=e[e.length-1];return e+(t.includes(n)?\"ն\":\"ը\")}var Qk=()=>{let e={string:{unit:{one:\"նշան\",many:\"նշաններ\"},verb:\"ունենալ\"},file:{unit:{one:\"բայթ\",many:\"բայթեր\"},verb:\"ունենալ\"},array:{unit:{one:\"տարր\",many:\"տարրեր\"},verb:\"ունենալ\"},set:{unit:{one:\"տարր\",many:\"տարրեր\"},verb:\"ունենալ\"}};function t(r){return e[r]??null}let n={regex:\"մուտք\",email:\"էլ. հասցե\",url:\"URL\",emoji:\"էմոջի\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO ամսաթիվ և ժամ\",date:\"ISO ամսաթիվ\",time:\"ISO ժամ\",duration:\"ISO տևողություն\",ipv4:\"IPv4 հասցե\",ipv6:\"IPv6 հասցե\",cidrv4:\"IPv4 միջակայք\",cidrv6:\"IPv6 միջակայք\",base64:\"base64 ձևաչափով տող\",base64url:\"base64url ձևաչափով տող\",json_string:\"JSON տող\",e164:\"E.164 համար\",jwt:\"JWT\",template_literal:\"մուտք\"},o={nan:\"NaN\",number:\"թիվ\",array:\"զանգված\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${r.expected}, ստացվել է ${s}`;return`Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${s}`}case\"invalid_value\":if(r.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${w(r.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a){let s=Number(r.maximum),c=Mf(s,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Wt(r.origin??\"արժեք\")} կունենա ${i}${r.maximum.toString()} ${c}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Wt(r.origin??\"արժեք\")} լինի ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a){let s=Number(r.minimum),c=Mf(s,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Wt(r.origin)} կունենա ${i}${r.minimum.toString()} ${c}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Wt(r.origin)} լինի ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Սխալ տող․ պետք է սկսվի \"${i.prefix}\"-ով`;if(i.format===\"ends_with\")return`Սխալ տող․ պետք է ավարտվի \"${i.suffix}\"-ով`;if(i.format===\"includes\")return`Սխալ տող․ պետք է պարունակի \"${i.includes}\"`;if(i.format===\"regex\")return`Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին`;return`Սխալ ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${r.divisor}-ի`;case\"unrecognized_keys\":return`Չճանաչված բանալի${r.keys.length>1?\"ներ\":\"\"}. ${h(r.keys,\", \")}`;case\"invalid_key\":return`Սխալ բանալի ${Wt(r.origin)}-ում`;case\"invalid_union\":return\"Սխալ մուտքագրում\";case\"invalid_element\":return`Սխալ արժեք ${Wt(r.origin)}-ում`;default:return\"Սխալ մուտքագրում\"}}};function uu(){return{localeError:Qk()}}var ex=()=>{let e={string:{unit:\"karakter\",verb:\"memiliki\"},file:{unit:\"byte\",verb:\"memiliki\"},array:{unit:\"item\",verb:\"memiliki\"},set:{unit:\"item\",verb:\"memiliki\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"alamat email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"tanggal dan waktu format ISO\",date:\"tanggal format ISO\",time:\"jam format ISO\",duration:\"durasi format ISO\",ipv4:\"alamat IPv4\",ipv6:\"alamat IPv6\",cidrv4:\"rentang alamat IPv4\",cidrv6:\"rentang alamat IPv6\",base64:\"string dengan enkode base64\",base64url:\"string dengan enkode base64url\",json_string:\"string JSON\",e164:\"angka E.164\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`;return`Input tidak valid: diharapkan ${i}, diterima ${s}`}case\"invalid_value\":if(r.values.length===1)return`Input tidak valid: diharapkan ${w(r.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Terlalu besar: diharapkan ${r.origin??\"value\"} memiliki ${i}${r.maximum.toString()} ${a.unit??\"elemen\"}`;return`Terlalu besar: diharapkan ${r.origin??\"value\"} menjadi ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`;return`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`String tidak valid: harus dimulai dengan \"${i.prefix}\"`;if(i.format===\"ends_with\")return`String tidak valid: harus berakhir dengan \"${i.suffix}\"`;if(i.format===\"includes\")return`String tidak valid: harus menyertakan \"${i.includes}\"`;if(i.format===\"regex\")return`String tidak valid: harus sesuai pola ${i.pattern}`;return`${n[i.format]??r.format} tidak valid`}case\"not_multiple_of\":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case\"unrecognized_keys\":return`Kunci tidak dikenali ${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Kunci tidak valid di ${r.origin}`;case\"invalid_union\":return\"Input tidak valid\";case\"invalid_element\":return`Nilai tidak valid di ${r.origin}`;default:return\"Input tidak valid\"}}};function lu(){return{localeError:ex()}}var tx=()=>{let e={string:{unit:\"stafi\",verb:\"að hafa\"},file:{unit:\"bæti\",verb:\"að hafa\"},array:{unit:\"hluti\",verb:\"að hafa\"},set:{unit:\"hluti\",verb:\"að hafa\"}};function t(r){return e[r]??null}let n={regex:\"gildi\",email:\"netfang\",url:\"vefslóð\",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ími\",date:\"ISO dagsetning\",time:\"ISO tími\",duration:\"ISO tímalengd\",ipv4:\"IPv4 address\",ipv6:\"IPv6 address\",cidrv4:\"IPv4 range\",cidrv6:\"IPv6 range\",base64:\"base64-encoded strengur\",base64url:\"base64url-encoded strengur\",json_string:\"JSON strengur\",e164:\"E.164 tölugildi\",jwt:\"JWT\",template_literal:\"gildi\"},o={nan:\"NaN\",number:\"númer\",array:\"fylki\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${r.expected}`;return`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${i}`}case\"invalid_value\":if(r.values.length===1)return`Rangt gildi: gert ráð fyrir ${w(r.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Of stórt: gert er ráð fyrir að ${r.origin??\"gildi\"} hafi ${i}${r.maximum.toString()} ${a.unit??\"hluti\"}`;return`Of stórt: gert er ráð fyrir að ${r.origin??\"gildi\"} sé ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Of lítið: gert er ráð fyrir að ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`;return`Of lítið: gert er ráð fyrir að ${r.origin} sé ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ógildur strengur: verður að byrja á \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Ógildur strengur: verður að enda á \"${i.suffix}\"`;if(i.format===\"includes\")return`Ógildur strengur: verður að innihalda \"${i.includes}\"`;if(i.format===\"regex\")return`Ógildur strengur: verður að fylgja mynstri ${i.pattern}`;return`Rangt ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Röng tala: verður að vera margfeldi af ${r.divisor}`;case\"unrecognized_keys\":return`Óþekkt ${r.keys.length>1?\"ir lyklar\":\"ur lykill\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Rangur lykill í ${r.origin}`;case\"invalid_union\":return\"Rangt gildi\";case\"invalid_element\":return`Rangt gildi í ${r.origin}`;default:return\"Rangt gildi\"}}};function du(){return{localeError:tx()}}var rx=()=>{let e={string:{unit:\"caratteri\",verb:\"avere\"},file:{unit:\"byte\",verb:\"avere\"},array:{unit:\"elementi\",verb:\"avere\"},set:{unit:\"elementi\",verb:\"avere\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"indirizzo email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data e ora ISO\",date:\"data ISO\",time:\"ora ISO\",duration:\"durata ISO\",ipv4:\"indirizzo IPv4\",ipv6:\"indirizzo IPv6\",cidrv4:\"intervallo IPv4\",cidrv6:\"intervallo IPv6\",base64:\"stringa codificata in base64\",base64url:\"URL codificata in base64\",json_string:\"stringa JSON\",e164:\"numero E.164\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\",number:\"numero\",array:\"vettore\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`;return`Input non valido: atteso ${i}, ricevuto ${s}`}case\"invalid_value\":if(r.values.length===1)return`Input non valido: atteso ${w(r.values[0])}`;return`Opzione non valida: atteso uno tra ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Troppo grande: ${r.origin??\"valore\"} deve avere ${i}${r.maximum.toString()} ${a.unit??\"elementi\"}`;return`Troppo grande: ${r.origin??\"valore\"} deve essere ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`;return`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Stringa non valida: deve iniziare con \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Stringa non valida: deve terminare con \"${i.suffix}\"`;if(i.format===\"includes\")return`Stringa non valida: deve includere \"${i.includes}\"`;if(i.format===\"regex\")return`Stringa non valida: deve corrispondere al pattern ${i.pattern}`;return`Input non valido: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case\"unrecognized_keys\":return`Chiav${r.keys.length>1?\"i\":\"e\"} non riconosciut${r.keys.length>1?\"e\":\"a\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Chiave non valida in ${r.origin}`;case\"invalid_union\":return\"Input non valido\";case\"invalid_element\":return`Valore non valido in ${r.origin}`;default:return\"Input non valido\"}}};function pu(){return{localeError:rx()}}var nx=()=>{let e={string:{unit:\"文字\",verb:\"である\"},file:{unit:\"バイト\",verb:\"である\"},array:{unit:\"要素\",verb:\"である\"},set:{unit:\"要素\",verb:\"である\"}};function t(r){return e[r]??null}let n={regex:\"入力値\",email:\"メールアドレス\",url:\"URL\",emoji:\"絵文字\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO日時\",date:\"ISO日付\",time:\"ISO時刻\",duration:\"ISO期間\",ipv4:\"IPv4アドレス\",ipv6:\"IPv6アドレス\",cidrv4:\"IPv4範囲\",cidrv6:\"IPv6範囲\",base64:\"base64エンコード文字列\",base64url:\"base64urlエンコード文字列\",json_string:\"JSON文字列\",e164:\"E.164番号\",jwt:\"JWT\",template_literal:\"入力値\"},o={nan:\"NaN\",number:\"数値\",array:\"配列\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`無効な入力: instanceof ${r.expected}が期待されましたが、${s}が入力されました`;return`無効な入力: ${i}が期待されましたが、${s}が入力されました`}case\"invalid_value\":if(r.values.length===1)return`無効な入力: ${w(r.values[0])}が期待されました`;return`無効な選択: ${h(r.values,\"、\")}のいずれかである必要があります`;case\"too_big\":{let i=r.inclusive?\"以下である\":\"より小さい\",a=t(r.origin);if(a)return`大きすぎる値: ${r.origin??\"値\"}は${r.maximum.toString()}${a.unit??\"要素\"}${i}必要があります`;return`大きすぎる値: ${r.origin??\"値\"}は${r.maximum.toString()}${i}必要があります`}case\"too_small\":{let i=r.inclusive?\"以上である\":\"より大きい\",a=t(r.origin);if(a)return`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a.unit}${i}必要があります`;return`小さすぎる値: ${r.origin}は${r.minimum.toString()}${i}必要があります`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`無効な文字列: \"${i.prefix}\"で始まる必要があります`;if(i.format===\"ends_with\")return`無効な文字列: \"${i.suffix}\"で終わる必要があります`;if(i.format===\"includes\")return`無効な文字列: \"${i.includes}\"を含む必要があります`;if(i.format===\"regex\")return`無効な文字列: パターン${i.pattern}に一致する必要があります`;return`無効な${n[i.format]??r.format}`}case\"not_multiple_of\":return`無効な数値: ${r.divisor}の倍数である必要があります`;case\"unrecognized_keys\":return`認識されていないキー${r.keys.length>1?\"群\":\"\"}: ${h(r.keys,\"、\")}`;case\"invalid_key\":return`${r.origin}内の無効なキー`;case\"invalid_union\":return\"無効な入力\";case\"invalid_element\":return`${r.origin}内の無効な値`;default:return\"無効な入力\"}}};function mu(){return{localeError:nx()}}var ox=()=>{let e={string:{unit:\"სიმბოლო\",verb:\"უნდა შეიცავდეს\"},file:{unit:\"ბაიტი\",verb:\"უნდა შეიცავდეს\"},array:{unit:\"ელემენტი\",verb:\"უნდა შეიცავდეს\"},set:{unit:\"ელემენტი\",verb:\"უნდა შეიცავდეს\"}};function t(r){return e[r]??null}let n={regex:\"შეყვანა\",email:\"ელ-ფოსტის მისამართი\",url:\"URL\",emoji:\"ემოჯი\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"თარიღი-დრო\",date:\"თარიღი\",time:\"დრო\",duration:\"ხანგრძლივობა\",ipv4:\"IPv4 მისამართი\",ipv6:\"IPv6 მისამართი\",cidrv4:\"IPv4 დიაპაზონი\",cidrv6:\"IPv6 დიაპაზონი\",base64:\"base64-კოდირებული ველი\",base64url:\"base64url-კოდირებული ველი\",json_string:\"JSON ველი\",e164:\"E.164 ნომერი\",jwt:\"JWT\",template_literal:\"შეყვანა\"},o={nan:\"NaN\",number:\"რიცხვი\",string:\"ველი\",boolean:\"ბულეანი\",function:\"ფუნქცია\",array:\"მასივი\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${r.expected}, მიღებული ${s}`;return`არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${s}`}case\"invalid_value\":if(r.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${w(r.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${h(r.values,\"|\")}-დან`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`ზედმეტად დიდი: მოსალოდნელი ${r.origin??\"მნიშვნელობა\"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${r.origin??\"მნიშვნელობა\"} იყოს ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`ზედმეტად პატარა: მოსალოდნელი ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${r.origin} იყოს ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`არასწორი ველი: უნდა იწყებოდეს \"${i.prefix}\"-ით`;if(i.format===\"ends_with\")return`არასწორი ველი: უნდა მთავრდებოდეს \"${i.suffix}\"-ით`;if(i.format===\"includes\")return`არასწორი ველი: უნდა შეიცავდეს \"${i.includes}\"-ს`;if(i.format===\"regex\")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}`;return`არასწორი ${n[i.format]??r.format}`}case\"not_multiple_of\":return`არასწორი რიცხვი: უნდა იყოს ${r.divisor}-ის ჯერადი`;case\"unrecognized_keys\":return`უცნობი გასაღებ${r.keys.length>1?\"ები\":\"ი\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`არასწორი გასაღები ${r.origin}-ში`;case\"invalid_union\":return\"არასწორი შეყვანა\";case\"invalid_element\":return`არასწორი მნიშვნელობა ${r.origin}-ში`;default:return\"არასწორი შეყვანა\"}}};function fu(){return{localeError:ox()}}var ix=()=>{let e={string:{unit:\"តួអក្សរ\",verb:\"គួរមាន\"},file:{unit:\"បៃ\",verb:\"គួរមាន\"},array:{unit:\"ធាតុ\",verb:\"គួរមាន\"},set:{unit:\"ធាតុ\",verb:\"គួរមាន\"}};function t(r){return e[r]??null}let n={regex:\"ទិន្នន័យបញ្ចូល\",email:\"អាសយដ្ឋានអ៊ីមែល\",url:\"URL\",emoji:\"សញ្ញាអារម្មណ៍\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"កាលបរិច្ឆេទ និងម៉ោង ISO\",date:\"កាលបរិច្ឆេទ ISO\",time:\"ម៉ោង ISO\",duration:\"រយៈពេល ISO\",ipv4:\"អាសយដ្ឋាន IPv4\",ipv6:\"អាសយដ្ឋាន IPv6\",cidrv4:\"ដែនអាសយដ្ឋាន IPv4\",cidrv6:\"ដែនអាសយដ្ឋាន IPv6\",base64:\"ខ្សែអក្សរអ៊ិកូដ base64\",base64url:\"ខ្សែអក្សរអ៊ិកូដ base64url\",json_string:\"ខ្សែអក្សរ JSON\",e164:\"លេខ E.164\",jwt:\"JWT\",template_literal:\"ទិន្នន័យបញ្ចូល\"},o={nan:\"NaN\",number:\"លេខ\",array:\"អារេ (Array)\",null:\"គ្មានតម្លៃ (null)\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${r.expected} ប៉ុន្តែទទួលបាន ${s}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${s}`}case\"invalid_value\":if(r.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${w(r.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`ធំពេក៖ ត្រូវការ ${r.origin??\"តម្លៃ\"} ${i} ${r.maximum.toString()} ${a.unit??\"ធាតុ\"}`;return`ធំពេក៖ ត្រូវការ ${r.origin??\"តម្លៃ\"} ${i} ${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`តូចពេក៖ ត្រូវការ ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`;return`តូចពេក៖ ត្រូវការ ${r.origin} ${i} ${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \"${i.prefix}\"`;if(i.format===\"ends_with\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \"${i.suffix}\"`;if(i.format===\"includes\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \"${i.includes}\"`;if(i.format===\"regex\")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`;return`មិនត្រឹមត្រូវ៖ ${n[i.format]??r.format}`}case\"not_multiple_of\":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case\"unrecognized_keys\":return`រកឃើញសោមិនស្គាល់៖ ${h(r.keys,\", \")}`;case\"invalid_key\":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case\"invalid_union\":return\"ទិន្នន័យមិនត្រឹមត្រូវ\";case\"invalid_element\":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return\"ទិន្នន័យមិនត្រឹមត្រូវ\"}}};function Yr(){return{localeError:ix()}}function hu(){return Yr()}var ax=()=>{let e={string:{unit:\"문자\",verb:\"to have\"},file:{unit:\"바이트\",verb:\"to have\"},array:{unit:\"개\",verb:\"to have\"},set:{unit:\"개\",verb:\"to have\"}};function t(r){return e[r]??null}let n={regex:\"입력\",email:\"이메일 주소\",url:\"URL\",emoji:\"이모지\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO 날짜시간\",date:\"ISO 날짜\",time:\"ISO 시간\",duration:\"ISO 기간\",ipv4:\"IPv4 주소\",ipv6:\"IPv6 주소\",cidrv4:\"IPv4 범위\",cidrv6:\"IPv6 범위\",base64:\"base64 인코딩 문자열\",base64url:\"base64url 인코딩 문자열\",json_string:\"JSON 문자열\",e164:\"E.164 번호\",jwt:\"JWT\",template_literal:\"입력\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`잘못된 입력: 예상 타입은 instanceof ${r.expected}, 받은 타입은 ${s}입니다`;return`잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${s}입니다`}case\"invalid_value\":if(r.values.length===1)return`잘못된 입력: 값은 ${w(r.values[0])} 이어야 합니다`;return`잘못된 옵션: ${h(r.values,\"또는 \")} 중 하나여야 합니다`;case\"too_big\":{let i=r.inclusive?\"이하\":\"미만\",a=i===\"미만\"?\"이어야 합니다\":\"여야 합니다\",s=t(r.origin),c=s?.unit??\"요소\";if(s)return`${r.origin??\"값\"}이 너무 큽니다: ${r.maximum.toString()}${c} ${i}${a}`;return`${r.origin??\"값\"}이 너무 큽니다: ${r.maximum.toString()} ${i}${a}`}case\"too_small\":{let i=r.inclusive?\"이상\":\"초과\",a=i===\"이상\"?\"이어야 합니다\":\"여야 합니다\",s=t(r.origin),c=s?.unit??\"요소\";if(s)return`${r.origin??\"값\"}이 너무 작습니다: ${r.minimum.toString()}${c} ${i}${a}`;return`${r.origin??\"값\"}이 너무 작습니다: ${r.minimum.toString()} ${i}${a}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`잘못된 문자열: \"${i.prefix}\"(으)로 시작해야 합니다`;if(i.format===\"ends_with\")return`잘못된 문자열: \"${i.suffix}\"(으)로 끝나야 합니다`;if(i.format===\"includes\")return`잘못된 문자열: \"${i.includes}\"을(를) 포함해야 합니다`;if(i.format===\"regex\")return`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${n[i.format]??r.format}`}case\"not_multiple_of\":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case\"unrecognized_keys\":return`인식할 수 없는 키: ${h(r.keys,\", \")}`;case\"invalid_key\":return`잘못된 키: ${r.origin}`;case\"invalid_union\":return\"잘못된 입력\";case\"invalid_element\":return`잘못된 값: ${r.origin}`;default:return\"잘못된 입력\"}}};function gu(){return{localeError:ax()}}var Qr=(e)=>e.charAt(0).toUpperCase()+e.slice(1);function Zf(e){let t=Math.abs(e),n=t%10,o=t%100;if(o>=11&&o<=19||n===0)return\"many\";if(n===1)return\"one\";return\"few\"}var sx=()=>{let e={string:{unit:{one:\"simbolis\",few:\"simboliai\",many:\"simbolių\"},verb:{smaller:{inclusive:\"turi būti ne ilgesnė kaip\",notInclusive:\"turi būti trumpesnė kaip\"},bigger:{inclusive:\"turi būti ne trumpesnė kaip\",notInclusive:\"turi būti ilgesnė kaip\"}}},file:{unit:{one:\"baitas\",few:\"baitai\",many:\"baitų\"},verb:{smaller:{inclusive:\"turi būti ne didesnis kaip\",notInclusive:\"turi būti mažesnis kaip\"},bigger:{inclusive:\"turi būti ne mažesnis kaip\",notInclusive:\"turi būti didesnis kaip\"}}},array:{unit:{one:\"elementą\",few:\"elementus\",many:\"elementų\"},verb:{smaller:{inclusive:\"turi turėti ne daugiau kaip\",notInclusive:\"turi turėti mažiau kaip\"},bigger:{inclusive:\"turi turėti ne mažiau kaip\",notInclusive:\"turi turėti daugiau kaip\"}}},set:{unit:{one:\"elementą\",few:\"elementus\",many:\"elementų\"},verb:{smaller:{inclusive:\"turi turėti ne daugiau kaip\",notInclusive:\"turi turėti mažiau kaip\"},bigger:{inclusive:\"turi turėti ne mažiau kaip\",notInclusive:\"turi turėti daugiau kaip\"}}}};function t(r,i,a,s){let c=e[r]??null;if(c===null)return c;return{unit:c.unit[i],verb:c.verb[s][a?\"inclusive\":\"notInclusive\"]}}let n={regex:\"įvestis\",email:\"el. pašto 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ė\",ipv4:\"IPv4 adresas\",ipv6:\"IPv6 adresas\",cidrv4:\"IPv4 tinklo prefiksas (CIDR)\",cidrv6:\"IPv6 tinklo prefiksas (CIDR)\",base64:\"base64 užkoduota eilutė\",base64url:\"base64url užkoduota eilutė\",json_string:\"JSON eilutė\",e164:\"E.164 numeris\",jwt:\"JWT\",template_literal:\"įvestis\"},o={nan:\"NaN\",number:\"skaičius\",bigint:\"sveikasis skaičius\",string:\"eilutė\",boolean:\"loginė reikšmė\",undefined:\"neapibrėžta reikšmė\",function:\"funkcija\",symbol:\"simbolis\",array:\"masyvas\",object:\"objektas\",null:\"nulinė reikšmė\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Gautas tipas ${s}, o tikėtasi - instanceof ${r.expected}`;return`Gautas tipas ${s}, o tikėtasi - ${i}`}case\"invalid_value\":if(r.values.length===1)return`Privalo būti ${w(r.values[0])}`;return`Privalo būti vienas iš ${h(r.values,\"|\")} pasirinkimų`;case\"too_big\":{let i=o[r.origin]??r.origin,a=t(r.origin,Zf(Number(r.maximum)),r.inclusive??!1,\"smaller\");if(a?.verb)return`${Qr(i??r.origin??\"reikšmė\")} ${a.verb} ${r.maximum.toString()} ${a.unit??\"elementų\"}`;let s=r.inclusive?\"ne didesnis kaip\":\"mažesnis kaip\";return`${Qr(i??r.origin??\"reikšmė\")} turi būti ${s} ${r.maximum.toString()} ${a?.unit}`}case\"too_small\":{let i=o[r.origin]??r.origin,a=t(r.origin,Zf(Number(r.minimum)),r.inclusive??!1,\"bigger\");if(a?.verb)return`${Qr(i??r.origin??\"reikšmė\")} ${a.verb} ${r.minimum.toString()} ${a.unit??\"elementų\"}`;let s=r.inclusive?\"ne mažesnis kaip\":\"didesnis kaip\";return`${Qr(i??r.origin??\"reikšmė\")} turi būti ${s} ${r.minimum.toString()} ${a?.unit}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Eilutė privalo prasidėti \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Eilutė privalo pasibaigti \"${i.suffix}\"`;if(i.format===\"includes\")return`Eilutė privalo įtraukti \"${i.includes}\"`;if(i.format===\"regex\")return`Eilutė privalo atitikti ${i.pattern}`;return`Neteisingas ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Skaičius privalo būti ${r.divisor} kartotinis.`;case\"unrecognized_keys\":return`Neatpažint${r.keys.length>1?\"i\":\"as\"} rakt${r.keys.length>1?\"ai\":\"as\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return\"Rastas klaidingas raktas\";case\"invalid_union\":return\"Klaidinga įvestis\";case\"invalid_element\":{let i=o[r.origin]??r.origin;return`${Qr(i??r.origin??\"reikšmė\")} turi klaidingą įvestį`}default:return\"Klaidinga įvestis\"}}};function vu(){return{localeError:sx()}}var cx=()=>{let e={string:{unit:\"знаци\",verb:\"да имаат\"},file:{unit:\"бајти\",verb:\"да имаат\"},array:{unit:\"ставки\",verb:\"да имаат\"},set:{unit:\"ставки\",verb:\"да имаат\"}};function t(r){return e[r]??null}let n={regex:\"внес\",email:\"адреса на е-пошта\",url:\"URL\",emoji:\"емоџи\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO датум и време\",date:\"ISO датум\",time:\"ISO време\",duration:\"ISO времетраење\",ipv4:\"IPv4 адреса\",ipv6:\"IPv6 адреса\",cidrv4:\"IPv4 опсег\",cidrv6:\"IPv6 опсег\",base64:\"base64-енкодирана низа\",base64url:\"base64url-енкодирана низа\",json_string:\"JSON низа\",e164:\"E.164 број\",jwt:\"JWT\",template_literal:\"внес\"},o={nan:\"NaN\",number:\"број\",array:\"низа\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Грешен внес: се очекува instanceof ${r.expected}, примено ${s}`;return`Грешен внес: се очекува ${i}, примено ${s}`}case\"invalid_value\":if(r.values.length===1)return`Invalid input: expected ${w(r.values[0])}`;return`Грешана опција: се очекува една ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Премногу голем: се очекува ${r.origin??\"вредноста\"} да има ${i}${r.maximum.toString()} ${a.unit??\"елементи\"}`;return`Премногу голем: се очекува ${r.origin??\"вредноста\"} да биде ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Премногу мал: се очекува ${r.origin} да има ${i}${r.minimum.toString()} ${a.unit}`;return`Премногу мал: се очекува ${r.origin} да биде ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Неважечка низа: мора да започнува со \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Неважечка низа: мора да завршува со \"${i.suffix}\"`;if(i.format===\"includes\")return`Неважечка низа: мора да вклучува \"${i.includes}\"`;if(i.format===\"regex\")return`Неважечка низа: мора да одгоара на патернот ${i.pattern}`;return`Invalid ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Грешен број: мора да биде делив со ${r.divisor}`;case\"unrecognized_keys\":return`${r.keys.length>1?\"Непрепознаени клучеви\":\"Непрепознаен клуч\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Грешен клуч во ${r.origin}`;case\"invalid_union\":return\"Грешен внес\";case\"invalid_element\":return`Грешна вредност во ${r.origin}`;default:return\"Грешен внес\"}}};function yu(){return{localeError:cx()}}var ux=()=>{let e={string:{unit:\"aksara\",verb:\"mempunyai\"},file:{unit:\"bait\",verb:\"mempunyai\"},array:{unit:\"elemen\",verb:\"mempunyai\"},set:{unit:\"elemen\",verb:\"mempunyai\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"alamat e-mel\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"tarikh masa ISO\",date:\"tarikh ISO\",time:\"masa ISO\",duration:\"tempoh ISO\",ipv4:\"alamat IPv4\",ipv6:\"alamat IPv6\",cidrv4:\"julat IPv4\",cidrv6:\"julat IPv6\",base64:\"string dikodkan base64\",base64url:\"string dikodkan base64url\",json_string:\"string JSON\",e164:\"nombor E.164\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\",number:\"nombor\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`;return`Input tidak sah: dijangka ${i}, diterima ${s}`}case\"invalid_value\":if(r.values.length===1)return`Input tidak sah: dijangka ${w(r.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Terlalu besar: dijangka ${r.origin??\"nilai\"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??\"elemen\"}`;return`Terlalu besar: dijangka ${r.origin??\"nilai\"} adalah ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`;return`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`String tidak sah: mesti bermula dengan \"${i.prefix}\"`;if(i.format===\"ends_with\")return`String tidak sah: mesti berakhir dengan \"${i.suffix}\"`;if(i.format===\"includes\")return`String tidak sah: mesti mengandungi \"${i.includes}\"`;if(i.format===\"regex\")return`String tidak sah: mesti sepadan dengan corak ${i.pattern}`;return`${n[i.format]??r.format} tidak sah`}case\"not_multiple_of\":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case\"unrecognized_keys\":return`Kunci tidak dikenali: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Kunci tidak sah dalam ${r.origin}`;case\"invalid_union\":return\"Input tidak sah\";case\"invalid_element\":return`Nilai tidak sah dalam ${r.origin}`;default:return\"Input tidak sah\"}}};function $u(){return{localeError:ux()}}var lx=()=>{let e={string:{unit:\"tekens\",verb:\"heeft\"},file:{unit:\"bytes\",verb:\"heeft\"},array:{unit:\"elementen\",verb:\"heeft\"},set:{unit:\"elementen\",verb:\"heeft\"}};function t(r){return e[r]??null}let n={regex:\"invoer\",email:\"emailadres\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO datum en tijd\",date:\"ISO datum\",time:\"ISO tijd\",duration:\"ISO duur\",ipv4:\"IPv4-adres\",ipv6:\"IPv6-adres\",cidrv4:\"IPv4-bereik\",cidrv6:\"IPv6-bereik\",base64:\"base64-gecodeerde tekst\",base64url:\"base64 URL-gecodeerde tekst\",json_string:\"JSON string\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"invoer\"},o={nan:\"NaN\",number:\"getal\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`;return`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case\"invalid_value\":if(r.values.length===1)return`Ongeldige invoer: verwacht ${w(r.values[0])}`;return`Ongeldige optie: verwacht één van ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin),s=r.origin===\"date\"?\"laat\":r.origin===\"string\"?\"lang\":\"groot\";if(a)return`Te ${s}: verwacht dat ${r.origin??\"waarde\"} ${i}${r.maximum.toString()} ${a.unit??\"elementen\"} ${a.verb}`;return`Te ${s}: verwacht dat ${r.origin??\"waarde\"} ${i}${r.maximum.toString()} is`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin),s=r.origin===\"date\"?\"vroeg\":r.origin===\"string\"?\"kort\":\"klein\";if(a)return`Te ${s}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`;return`Te ${s}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ongeldige tekst: moet met \"${i.prefix}\" beginnen`;if(i.format===\"ends_with\")return`Ongeldige tekst: moet op \"${i.suffix}\" eindigen`;if(i.format===\"includes\")return`Ongeldige tekst: moet \"${i.includes}\" bevatten`;if(i.format===\"regex\")return`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`;return`Ongeldig: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case\"unrecognized_keys\":return`Onbekende key${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Ongeldige key in ${r.origin}`;case\"invalid_union\":return\"Ongeldige invoer\";case\"invalid_element\":return`Ongeldige waarde in ${r.origin}`;default:return\"Ongeldige invoer\"}}};function wu(){return{localeError:lx()}}var dx=()=>{let e={string:{unit:\"tegn\",verb:\"å ha\"},file:{unit:\"bytes\",verb:\"å ha\"},array:{unit:\"elementer\",verb:\"å inneholde\"},set:{unit:\"elementer\",verb:\"å inneholde\"}};function t(r){return e[r]??null}let n={regex:\"input\",email:\"e-postadresse\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO dato- og klokkeslett\",date:\"ISO-dato\",time:\"ISO-klokkeslett\",duration:\"ISO-varighet\",ipv4:\"IPv4-område\",ipv6:\"IPv6-område\",cidrv4:\"IPv4-spekter\",cidrv6:\"IPv6-spekter\",base64:\"base64-enkodet streng\",base64url:\"base64url-enkodet streng\",json_string:\"JSON-streng\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\",number:\"tall\",array:\"liste\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`;return`Ugyldig input: forventet ${i}, fikk ${s}`}case\"invalid_value\":if(r.values.length===1)return`Ugyldig verdi: forventet ${w(r.values[0])}`;return`Ugyldig valg: forventet en av ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`For stor(t): forventet ${r.origin??\"value\"} til å ha ${i}${r.maximum.toString()} ${a.unit??\"elementer\"}`;return`For stor(t): forventet ${r.origin??\"value\"} til å ha ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`For lite(n): forventet ${r.origin} til å ha ${i}${r.minimum.toString()} ${a.unit}`;return`For lite(n): forventet ${r.origin} til å ha ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ugyldig streng: må starte med \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Ugyldig streng: må ende med \"${i.suffix}\"`;if(i.format===\"includes\")return`Ugyldig streng: må inneholde \"${i.includes}\"`;if(i.format===\"regex\")return`Ugyldig streng: må matche mønsteret ${i.pattern}`;return`Ugyldig ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case\"unrecognized_keys\":return`${r.keys.length>1?\"Ukjente nøkler\":\"Ukjent nøkkel\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Ugyldig nøkkel i ${r.origin}`;case\"invalid_union\":return\"Ugyldig input\";case\"invalid_element\":return`Ugyldig verdi i ${r.origin}`;default:return\"Ugyldig input\"}}};function bu(){return{localeError:dx()}}var px=()=>{let e={string:{unit:\"harf\",verb:\"olmalıdır\"},file:{unit:\"bayt\",verb:\"olmalıdır\"},array:{unit:\"unsur\",verb:\"olmalıdır\"},set:{unit:\"unsur\",verb:\"olmalıdır\"}};function t(r){return e[r]??null}let n={regex:\"giren\",email:\"epostagâh\",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âmı\",date:\"ISO tarihi\",time:\"ISO zamanı\",duration:\"ISO müddeti\",ipv4:\"IPv4 nişânı\",ipv6:\"IPv6 nişânı\",cidrv4:\"IPv4 menzili\",cidrv6:\"IPv6 menzili\",base64:\"base64-şifreli metin\",base64url:\"base64url-şifreli metin\",json_string:\"JSON metin\",e164:\"E.164 sayısı\",jwt:\"JWT\",template_literal:\"giren\"},o={nan:\"NaN\",number:\"numara\",array:\"saf\",null:\"gayb\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Fâsit giren: umulan instanceof ${r.expected}, alınan ${s}`;return`Fâsit giren: umulan ${i}, alınan ${s}`}case\"invalid_value\":if(r.values.length===1)return`Fâsit giren: umulan ${w(r.values[0])}`;return`Fâsit tercih: mûteberler ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Fazla büyük: ${r.origin??\"value\"}, ${i}${r.maximum.toString()} ${a.unit??\"elements\"} sahip olmalıydı.`;return`Fazla büyük: ${r.origin??\"value\"}, ${i}${r.maximum.toString()} olmalıydı.`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Fazla küçük: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmalıydı.`;return`Fazla küçük: ${r.origin}, ${i}${r.minimum.toString()} olmalıydı.`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Fâsit metin: \"${i.prefix}\" ile başlamalı.`;if(i.format===\"ends_with\")return`Fâsit metin: \"${i.suffix}\" ile bitmeli.`;if(i.format===\"includes\")return`Fâsit metin: \"${i.includes}\" ihtivâ etmeli.`;if(i.format===\"regex\")return`Fâsit metin: ${i.pattern} nakşına uymalı.`;return`Fâsit ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case\"unrecognized_keys\":return`Tanınmayan anahtar ${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`${r.origin} için tanınmayan anahtar var.`;case\"invalid_union\":return\"Giren tanınamadı.\";case\"invalid_element\":return`${r.origin} için tanınmayan kıymet var.`;default:return\"Kıymet tanınamadı.\"}}};function _u(){return{localeError:px()}}var mx=()=>{let e={string:{unit:\"توکي\",verb:\"ولري\"},file:{unit:\"بایټس\",verb:\"ولري\"},array:{unit:\"توکي\",verb:\"ولري\"},set:{unit:\"توکي\",verb:\"ولري\"}};function t(r){return e[r]??null}let n={regex:\"ورودي\",email:\"بریښنالیک\",url:\"یو آر ال\",emoji:\"ایموجي\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"نیټه او وخت\",date:\"نېټه\",time:\"وخت\",duration:\"موده\",ipv4:\"د IPv4 پته\",ipv6:\"د IPv6 پته\",cidrv4:\"د IPv4 ساحه\",cidrv6:\"د IPv6 ساحه\",base64:\"base64-encoded متن\",base64url:\"base64url-encoded متن\",json_string:\"JSON متن\",e164:\"د E.164 شمېره\",jwt:\"JWT\",template_literal:\"ورودي\"},o={nan:\"NaN\",number:\"عدد\",array:\"ارې\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`ناسم ورودي: باید instanceof ${r.expected} وای, مګر ${s} ترلاسه شو`;return`ناسم ورودي: باید ${i} وای, مګر ${s} ترلاسه شو`}case\"invalid_value\":if(r.values.length===1)return`ناسم ورودي: باید ${w(r.values[0])} وای`;return`ناسم انتخاب: باید یو له ${h(r.values,\"|\")} څخه وای`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`ډیر لوی: ${r.origin??\"ارزښت\"} باید ${i}${r.maximum.toString()} ${a.unit??\"عنصرونه\"} ولري`;return`ډیر لوی: ${r.origin??\"ارزښت\"} باید ${i}${r.maximum.toString()} وي`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`ډیر کوچنی: ${r.origin} باید ${i}${r.minimum.toString()} ${a.unit} ولري`;return`ډیر کوچنی: ${r.origin} باید ${i}${r.minimum.toString()} وي`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`ناسم متن: باید د \"${i.prefix}\" سره پیل شي`;if(i.format===\"ends_with\")return`ناسم متن: باید د \"${i.suffix}\" سره پای ته ورسيږي`;if(i.format===\"includes\")return`ناسم متن: باید \"${i.includes}\" ولري`;if(i.format===\"regex\")return`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`;return`${n[i.format]??r.format} ناسم دی`}case\"not_multiple_of\":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case\"unrecognized_keys\":return`ناسم ${r.keys.length>1?\"کلیډونه\":\"کلیډ\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`ناسم کلیډ په ${r.origin} کې`;case\"invalid_union\":return\"ناسمه ورودي\";case\"invalid_element\":return`ناسم عنصر په ${r.origin} کې`;default:return\"ناسمه ورودي\"}}};function ku(){return{localeError:mx()}}var fx=()=>{let e={string:{unit:\"znaków\",verb:\"mieć\"},file:{unit:\"bajtów\",verb:\"mieć\"},array:{unit:\"elementów\",verb:\"mieć\"},set:{unit:\"elementów\",verb:\"mieć\"}};function t(r){return e[r]??null}let n={regex:\"wyrażenie\",email:\"adres email\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data i godzina w formacie ISO\",date:\"data w formacie ISO\",time:\"godzina w formacie ISO\",duration:\"czas trwania ISO\",ipv4:\"adres IPv4\",ipv6:\"adres IPv6\",cidrv4:\"zakres IPv4\",cidrv6:\"zakres IPv6\",base64:\"ciąg znaków zakodowany w formacie base64\",base64url:\"ciąg znaków zakodowany w formacie base64url\",json_string:\"ciąg znaków w formacie JSON\",e164:\"liczba E.164\",jwt:\"JWT\",template_literal:\"wejście\"},o={nan:\"NaN\",number:\"liczba\",array:\"tablica\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${s}`}case\"invalid_value\":if(r.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${w(r.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Za duża wartość: oczekiwano, że ${r.origin??\"wartość\"} będzie mieć ${i}${r.maximum.toString()} ${a.unit??\"elementów\"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??\"wartość\"} będzie wynosić ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Za mała wartość: oczekiwano, że ${r.origin??\"wartość\"} będzie mieć ${i}${r.minimum.toString()} ${a.unit??\"elementów\"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??\"wartość\"} będzie wynosić ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Nieprawidłowy ciąg znaków: musi zaczynać się od \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Nieprawidłowy ciąg znaków: musi kończyć się na \"${i.suffix}\"`;if(i.format===\"includes\")return`Nieprawidłowy ciąg znaków: musi zawierać \"${i.includes}\"`;if(i.format===\"regex\")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`;return`Nieprawidłow(y/a/e) ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case\"unrecognized_keys\":return`Nierozpoznane klucze${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Nieprawidłowy klucz w ${r.origin}`;case\"invalid_union\":return\"Nieprawidłowe dane wejściowe\";case\"invalid_element\":return`Nieprawidłowa wartość w ${r.origin}`;default:return\"Nieprawidłowe dane wejściowe\"}}};function xu(){return{localeError:fx()}}var hx=()=>{let e={string:{unit:\"caracteres\",verb:\"ter\"},file:{unit:\"bytes\",verb:\"ter\"},array:{unit:\"itens\",verb:\"ter\"},set:{unit:\"itens\",verb:\"ter\"}};function t(r){return e[r]??null}let n={regex:\"padrão\",email:\"endereço de e-mail\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"data e hora ISO\",date:\"data ISO\",time:\"hora ISO\",duration:\"duração ISO\",ipv4:\"endereço IPv4\",ipv6:\"endereço IPv6\",cidrv4:\"faixa de IPv4\",cidrv6:\"faixa de IPv6\",base64:\"texto codificado em base64\",base64url:\"URL codificada em base64\",json_string:\"texto JSON\",e164:\"número E.164\",jwt:\"JWT\",template_literal:\"entrada\"},o={nan:\"NaN\",number:\"número\",null:\"nulo\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Tipo inválido: esperado instanceof ${r.expected}, recebido ${s}`;return`Tipo inválido: esperado ${i}, recebido ${s}`}case\"invalid_value\":if(r.values.length===1)return`Entrada inválida: esperado ${w(r.values[0])}`;return`Opção inválida: esperada uma das ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Muito grande: esperado que ${r.origin??\"valor\"} tivesse ${i}${r.maximum.toString()} ${a.unit??\"elementos\"}`;return`Muito grande: esperado que ${r.origin??\"valor\"} fosse ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.unit}`;return`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Texto inválido: deve começar com \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Texto inválido: deve terminar com \"${i.suffix}\"`;if(i.format===\"includes\")return`Texto inválido: deve incluir \"${i.includes}\"`;if(i.format===\"regex\")return`Texto inválido: deve corresponder ao padrão ${i.pattern}`;return`${n[i.format]??r.format} inválido`}case\"not_multiple_of\":return`Número inválido: deve ser múltiplo de ${r.divisor}`;case\"unrecognized_keys\":return`Chave${r.keys.length>1?\"s\":\"\"} desconhecida${r.keys.length>1?\"s\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Chave inválida em ${r.origin}`;case\"invalid_union\":return\"Entrada inválida\";case\"invalid_element\":return`Valor inválido em ${r.origin}`;default:return\"Campo inválido\"}}};function Su(){return{localeError:hx()}}var gx=()=>{let e={string:{unit:\"caractere\",verb:\"să aibă\"},file:{unit:\"octeți\",verb:\"să aibă\"},array:{unit:\"elemente\",verb:\"să aibă\"},set:{unit:\"elemente\",verb:\"să aibă\"},map:{unit:\"intrări\",verb:\"să aibă\"}};function t(r){return e[r]??null}let n={regex:\"intrare\",email:\"adresă 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ă și oră ISO\",date:\"dată ISO\",time:\"oră ISO\",duration:\"durată ISO\",ipv4:\"adresă IPv4\",ipv6:\"adresă IPv6\",mac:\"adresă MAC\",cidrv4:\"interval IPv4\",cidrv6:\"interval IPv6\",base64:\"șir codat base64\",base64url:\"șir codat base64url\",json_string:\"șir JSON\",e164:\"număr E.164\",jwt:\"JWT\",template_literal:\"intrare\"},o={nan:\"NaN\",string:\"șir\",number:\"număr\",boolean:\"boolean\",function:\"funcție\",array:\"matrice\",object:\"obiect\",undefined:\"nedefinit\",symbol:\"simbol\",bigint:\"număr mare\",void:\"void\",never:\"never\",map:\"hartă\",set:\"set\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;return`Intrare invalidă: așteptat ${i}, primit ${s}`}case\"invalid_value\":if(r.values.length===1)return`Intrare invalidă: așteptat ${w(r.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Prea mare: așteptat ca ${r.origin??\"valoarea\"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??\"elemente\"}`;return`Prea mare: așteptat ca ${r.origin??\"valoarea\"} să fie ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Prea mic: așteptat ca ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`;return`Prea mic: așteptat ca ${r.origin} să fie ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Șir invalid: trebuie să înceapă cu \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Șir invalid: trebuie să se termine cu \"${i.suffix}\"`;if(i.format===\"includes\")return`Șir invalid: trebuie să includă \"${i.includes}\"`;if(i.format===\"regex\")return`Șir invalid: trebuie să se potrivească cu modelul ${i.pattern}`;return`Format invalid: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Număr invalid: trebuie să fie multiplu de ${r.divisor}`;case\"unrecognized_keys\":return`Chei nerecunoscute: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Cheie invalidă în ${r.origin}`;case\"invalid_union\":return\"Intrare invalidă\";case\"invalid_element\":return`Valoare invalidă în ${r.origin}`;default:return\"Intrare invalidă\"}}};function Iu(){return{localeError:gx()}}function Lf(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;if(a>=11&&a<=19)return o;if(i===1)return t;if(i>=2&&i<=4)return n;return o}var vx=()=>{let e={string:{unit:{one:\"символ\",few:\"символа\",many:\"символов\"},verb:\"иметь\"},file:{unit:{one:\"байт\",few:\"байта\",many:\"байт\"},verb:\"иметь\"},array:{unit:{one:\"элемент\",few:\"элемента\",many:\"элементов\"},verb:\"иметь\"},set:{unit:{one:\"элемент\",few:\"элемента\",many:\"элементов\"},verb:\"иметь\"}};function t(r){return e[r]??null}let n={regex:\"ввод\",email:\"email адрес\",url:\"URL\",emoji:\"эмодзи\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO дата и время\",date:\"ISO дата\",time:\"ISO время\",duration:\"ISO длительность\",ipv4:\"IPv4 адрес\",ipv6:\"IPv6 адрес\",cidrv4:\"IPv4 диапазон\",cidrv6:\"IPv6 диапазон\",base64:\"строка в формате base64\",base64url:\"строка в формате base64url\",json_string:\"JSON строка\",e164:\"номер E.164\",jwt:\"JWT\",template_literal:\"ввод\"},o={nan:\"NaN\",number:\"число\",array:\"массив\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Неверный ввод: ожидалось instanceof ${r.expected}, получено ${s}`;return`Неверный ввод: ожидалось ${i}, получено ${s}`}case\"invalid_value\":if(r.values.length===1)return`Неверный ввод: ожидалось ${w(r.values[0])}`;return`Неверный вариант: ожидалось одно из ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a){let s=Number(r.maximum),c=Lf(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??\"значение\"} будет иметь ${i}${r.maximum.toString()} ${c}`}return`Слишком большое значение: ожидалось, что ${r.origin??\"значение\"} будет ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a){let s=Number(r.minimum),c=Lf(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${i}${r.minimum.toString()} ${c}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Неверная строка: должна начинаться с \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Неверная строка: должна заканчиваться на \"${i.suffix}\"`;if(i.format===\"includes\")return`Неверная строка: должна содержать \"${i.includes}\"`;if(i.format===\"regex\")return`Неверная строка: должна соответствовать шаблону ${i.pattern}`;return`Неверный ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Неверное число: должно быть кратным ${r.divisor}`;case\"unrecognized_keys\":return`Нераспознанн${r.keys.length>1?\"ые\":\"ый\"} ключ${r.keys.length>1?\"и\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Неверный ключ в ${r.origin}`;case\"invalid_union\":return\"Неверные входные данные\";case\"invalid_element\":return`Неверное значение в ${r.origin}`;default:return\"Неверные входные данные\"}}};function Tu(){return{localeError:vx()}}var yx=()=>{let e={string:{unit:\"znakov\",verb:\"imeti\"},file:{unit:\"bajtov\",verb:\"imeti\"},array:{unit:\"elementov\",verb:\"imeti\"},set:{unit:\"elementov\",verb:\"imeti\"}};function t(r){return e[r]??null}let n={regex:\"vnos\",email:\"e-poštni 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 čas\",date:\"ISO datum\",time:\"ISO čas\",duration:\"ISO trajanje\",ipv4:\"IPv4 naslov\",ipv6:\"IPv6 naslov\",cidrv4:\"obseg IPv4\",cidrv6:\"obseg IPv6\",base64:\"base64 kodiran niz\",base64url:\"base64url kodiran niz\",json_string:\"JSON niz\",e164:\"E.164 številka\",jwt:\"JWT\",template_literal:\"vnos\"},o={nan:\"NaN\",number:\"število\",array:\"tabela\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Neveljaven vnos: pričakovano instanceof ${r.expected}, prejeto ${s}`;return`Neveljaven vnos: pričakovano ${i}, prejeto ${s}`}case\"invalid_value\":if(r.values.length===1)return`Neveljaven vnos: pričakovano ${w(r.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Preveliko: pričakovano, da bo ${r.origin??\"vrednost\"} imelo ${i}${r.maximum.toString()} ${a.unit??\"elementov\"}`;return`Preveliko: pričakovano, da bo ${r.origin??\"vrednost\"} ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Premajhno: pričakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`;return`Premajhno: pričakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Neveljaven niz: mora se začeti z \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Neveljaven niz: mora se končati z \"${i.suffix}\"`;if(i.format===\"includes\")return`Neveljaven niz: mora vsebovati \"${i.includes}\"`;if(i.format===\"regex\")return`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`;return`Neveljaven ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case\"unrecognized_keys\":return`Neprepoznan${r.keys.length>1?\"i ključi\":\" ključ\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Neveljaven ključ v ${r.origin}`;case\"invalid_union\":return\"Neveljaven vnos\";case\"invalid_element\":return`Neveljavna vrednost v ${r.origin}`;default:return\"Neveljaven vnos\"}}};function Pu(){return{localeError:yx()}}var $x=()=>{let e={string:{unit:\"tecken\",verb:\"att ha\"},file:{unit:\"bytes\",verb:\"att ha\"},array:{unit:\"objekt\",verb:\"att innehålla\"},set:{unit:\"objekt\",verb:\"att innehålla\"}};function t(r){return e[r]??null}let n={regex:\"reguljärt uttryck\",email:\"e-postadress\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO-datum och tid\",date:\"ISO-datum\",time:\"ISO-tid\",duration:\"ISO-varaktighet\",ipv4:\"IPv4-intervall\",ipv6:\"IPv6-intervall\",cidrv4:\"IPv4-spektrum\",cidrv6:\"IPv6-spektrum\",base64:\"base64-kodad sträng\",base64url:\"base64url-kodad sträng\",json_string:\"JSON-sträng\",e164:\"E.164-nummer\",jwt:\"JWT\",template_literal:\"mall-literal\"},o={nan:\"NaN\",number:\"antal\",array:\"lista\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Ogiltig inmatning: förväntat instanceof ${r.expected}, fick ${s}`;return`Ogiltig inmatning: förväntat ${i}, fick ${s}`}case\"invalid_value\":if(r.values.length===1)return`Ogiltig inmatning: förväntat ${w(r.values[0])}`;return`Ogiltigt val: förväntade en av ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`För stor(t): förväntade ${r.origin??\"värdet\"} att ha ${i}${r.maximum.toString()} ${a.unit??\"element\"}`;return`För stor(t): förväntat ${r.origin??\"värdet\"} att ha ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`För lite(t): förväntade ${r.origin??\"värdet\"} att ha ${i}${r.minimum.toString()} ${a.unit}`;return`För lite(t): förväntade ${r.origin??\"värdet\"} att ha ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ogiltig sträng: måste börja med \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Ogiltig sträng: måste sluta med \"${i.suffix}\"`;if(i.format===\"includes\")return`Ogiltig sträng: måste innehålla \"${i.includes}\"`;if(i.format===\"regex\")return`Ogiltig sträng: måste matcha mönstret \"${i.pattern}\"`;return`Ogiltig(t) ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case\"unrecognized_keys\":return`${r.keys.length>1?\"Okända nycklar\":\"Okänd nyckel\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Ogiltig nyckel i ${r.origin??\"värdet\"}`;case\"invalid_union\":return\"Ogiltig input\";case\"invalid_element\":return`Ogiltigt värde i ${r.origin??\"värdet\"}`;default:return\"Ogiltig input\"}}};function Cu(){return{localeError:$x()}}var wx=()=>{let e={string:{unit:\"எழுத்துக்கள்\",verb:\"கொண்டிருக்க வேண்டும்\"},file:{unit:\"பைட்டுகள்\",verb:\"கொண்டிருக்க வேண்டும்\"},array:{unit:\"உறுப்புகள்\",verb:\"கொண்டிருக்க வேண்டும்\"},set:{unit:\"உறுப்புகள்\",verb:\"கொண்டிருக்க வேண்டும்\"}};function t(r){return e[r]??null}let n={regex:\"உள்ளீடு\",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 தேதி நேரம்\",date:\"ISO தேதி\",time:\"ISO நேரம்\",duration:\"ISO கால அளவு\",ipv4:\"IPv4 முகவரி\",ipv6:\"IPv6 முகவரி\",cidrv4:\"IPv4 வரம்பு\",cidrv6:\"IPv6 வரம்பு\",base64:\"base64-encoded சரம்\",base64url:\"base64url-encoded சரம்\",json_string:\"JSON சரம்\",e164:\"E.164 எண்\",jwt:\"JWT\",template_literal:\"input\"},o={nan:\"NaN\",number:\"எண்\",array:\"அணி\",null:\"வெறுமை\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${r.expected}, பெறப்பட்டது ${s}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${s}`}case\"invalid_value\":if(r.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${w(r.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${h(r.values,\"|\")} இல் ஒன்று`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??\"மதிப்பு\"} ${i}${r.maximum.toString()} ${a.unit??\"உறுப்புகள்\"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??\"மதிப்பு\"} ${i}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${i}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`தவறான சரம்: \"${i.prefix}\" இல் தொடங்க வேண்டும்`;if(i.format===\"ends_with\")return`தவறான சரம்: \"${i.suffix}\" இல் முடிவடைய வேண்டும்`;if(i.format===\"includes\")return`தவறான சரம்: \"${i.includes}\" ஐ உள்ளடக்க வேண்டும்`;if(i.format===\"regex\")return`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${n[i.format]??r.format}`}case\"not_multiple_of\":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case\"unrecognized_keys\":return`அடையாளம் தெரியாத விசை${r.keys.length>1?\"கள்\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`${r.origin} இல் தவறான விசை`;case\"invalid_union\":return\"தவறான உள்ளீடு\";case\"invalid_element\":return`${r.origin} இல் தவறான மதிப்பு`;default:return\"தவறான உள்ளீடு\"}}};function Eu(){return{localeError:wx()}}var bx=()=>{let e={string:{unit:\"ตัวอักษร\",verb:\"ควรมี\"},file:{unit:\"ไบต์\",verb:\"ควรมี\"},array:{unit:\"รายการ\",verb:\"ควรมี\"},set:{unit:\"รายการ\",verb:\"ควรมี\"}};function t(r){return e[r]??null}let n={regex:\"ข้อมูลที่ป้อน\",email:\"ที่อยู่อีเมล\",url:\"URL\",emoji:\"อิโมจิ\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"วันที่เวลาแบบ ISO\",date:\"วันที่แบบ ISO\",time:\"เวลาแบบ ISO\",duration:\"ช่วงเวลาแบบ ISO\",ipv4:\"ที่อยู่ IPv4\",ipv6:\"ที่อยู่ IPv6\",cidrv4:\"ช่วง IP แบบ IPv4\",cidrv6:\"ช่วง IP แบบ IPv6\",base64:\"ข้อความแบบ Base64\",base64url:\"ข้อความแบบ Base64 สำหรับ URL\",json_string:\"ข้อความแบบ JSON\",e164:\"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)\",jwt:\"โทเคน JWT\",template_literal:\"ข้อมูลที่ป้อน\"},o={nan:\"NaN\",number:\"ตัวเลข\",array:\"อาร์เรย์ (Array)\",null:\"ไม่มีค่า (null)\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${r.expected} แต่ได้รับ ${s}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${s}`}case\"invalid_value\":if(r.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${w(r.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"ไม่เกิน\":\"น้อยกว่า\",a=t(r.origin);if(a)return`เกินกำหนด: ${r.origin??\"ค่า\"} ควรมี${i} ${r.maximum.toString()} ${a.unit??\"รายการ\"}`;return`เกินกำหนด: ${r.origin??\"ค่า\"} ควรมี${i} ${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\"อย่างน้อย\":\"มากกว่า\",a=t(r.origin);if(a)return`น้อยกว่ากำหนด: ${r.origin} ควรมี${i} ${r.minimum.toString()} ${a.unit}`;return`น้อยกว่ากำหนด: ${r.origin} ควรมี${i} ${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \"${i.prefix}\"`;if(i.format===\"ends_with\")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \"${i.suffix}\"`;if(i.format===\"includes\")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี \"${i.includes}\" อยู่ในข้อความ`;if(i.format===\"regex\")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`;return`รูปแบบไม่ถูกต้อง: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case\"unrecognized_keys\":return`พบคีย์ที่ไม่รู้จัก: ${h(r.keys,\", \")}`;case\"invalid_key\":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case\"invalid_union\":return\"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้\";case\"invalid_element\":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return\"ข้อมูลไม่ถูกต้อง\"}}};function Ou(){return{localeError:bx()}}var _x=()=>{let e={string:{unit:\"karakter\",verb:\"olmalı\"},file:{unit:\"bayt\",verb:\"olmalı\"},array:{unit:\"öğe\",verb:\"olmalı\"},set:{unit:\"öğe\",verb:\"olmalı\"}};function t(r){return e[r]??null}let n={regex:\"girdi\",email:\"e-posta adresi\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO tarih ve saat\",date:\"ISO tarih\",time:\"ISO saat\",duration:\"ISO süre\",ipv4:\"IPv4 adresi\",ipv6:\"IPv6 adresi\",cidrv4:\"IPv4 aralığı\",cidrv6:\"IPv6 aralığı\",base64:\"base64 ile şifrelenmiş metin\",base64url:\"base64url ile şifrelenmiş metin\",json_string:\"JSON dizesi\",e164:\"E.164 sayısı\",jwt:\"JWT\",template_literal:\"Şablon dizesi\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Geçersiz değer: beklenen instanceof ${r.expected}, alınan ${s}`;return`Geçersiz değer: beklenen ${i}, alınan ${s}`}case\"invalid_value\":if(r.values.length===1)return`Geçersiz değer: beklenen ${w(r.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Çok büyük: beklenen ${r.origin??\"değer\"} ${i}${r.maximum.toString()} ${a.unit??\"öğe\"}`;return`Çok büyük: beklenen ${r.origin??\"değer\"} ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Çok küçük: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`;return`Çok küçük: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Geçersiz metin: \"${i.prefix}\" ile başlamalı`;if(i.format===\"ends_with\")return`Geçersiz metin: \"${i.suffix}\" ile bitmeli`;if(i.format===\"includes\")return`Geçersiz metin: \"${i.includes}\" içermeli`;if(i.format===\"regex\")return`Geçersiz metin: ${i.pattern} desenine uymalı`;return`Geçersiz ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Geçersiz sayı: ${r.divisor} ile tam bölünebilmeli`;case\"unrecognized_keys\":return`Tanınmayan anahtar${r.keys.length>1?\"lar\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`${r.origin} içinde geçersiz anahtar`;case\"invalid_union\":return\"Geçersiz değer\";case\"invalid_element\":return`${r.origin} içinde geçersiz değer`;default:return\"Geçersiz değer\"}}};function zu(){return{localeError:_x()}}var kx=()=>{let e={string:{unit:\"символів\",verb:\"матиме\"},file:{unit:\"байтів\",verb:\"матиме\"},array:{unit:\"елементів\",verb:\"матиме\"},set:{unit:\"елементів\",verb:\"матиме\"}};function t(r){return e[r]??null}let n={regex:\"вхідні дані\",email:\"адреса електронної пошти\",url:\"URL\",emoji:\"емодзі\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"дата та час ISO\",date:\"дата ISO\",time:\"час ISO\",duration:\"тривалість ISO\",ipv4:\"адреса IPv4\",ipv6:\"адреса IPv6\",cidrv4:\"діапазон IPv4\",cidrv6:\"діапазон IPv6\",base64:\"рядок у кодуванні base64\",base64url:\"рядок у кодуванні base64url\",json_string:\"рядок JSON\",e164:\"номер E.164\",jwt:\"JWT\",template_literal:\"вхідні дані\"},o={nan:\"NaN\",number:\"число\",array:\"масив\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Неправильні вхідні дані: очікується instanceof ${r.expected}, отримано ${s}`;return`Неправильні вхідні дані: очікується ${i}, отримано ${s}`}case\"invalid_value\":if(r.values.length===1)return`Неправильні вхідні дані: очікується ${w(r.values[0])}`;return`Неправильна опція: очікується одне з ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Занадто велике: очікується, що ${r.origin??\"значення\"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??\"елементів\"}`;return`Занадто велике: очікується, що ${r.origin??\"значення\"} буде ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Занадто мале: очікується, що ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`;return`Занадто мале: очікується, що ${r.origin} буде ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Неправильний рядок: повинен починатися з \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Неправильний рядок: повинен закінчуватися на \"${i.suffix}\"`;if(i.format===\"includes\")return`Неправильний рядок: повинен містити \"${i.includes}\"`;if(i.format===\"regex\")return`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`;return`Неправильний ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Неправильне число: повинно бути кратним ${r.divisor}`;case\"unrecognized_keys\":return`Нерозпізнаний ключ${r.keys.length>1?\"і\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Неправильний ключ у ${r.origin}`;case\"invalid_union\":return\"Неправильні вхідні дані\";case\"invalid_element\":return`Неправильне значення у ${r.origin}`;default:return\"Неправильні вхідні дані\"}}};function en(){return{localeError:kx()}}function Au(){return en()}var xx=()=>{let e={string:{unit:\"حروف\",verb:\"ہونا\"},file:{unit:\"بائٹس\",verb:\"ہونا\"},array:{unit:\"آئٹمز\",verb:\"ہونا\"},set:{unit:\"آئٹمز\",verb:\"ہونا\"}};function t(r){return e[r]??null}let n={regex:\"ان پٹ\",email:\"ای میل ایڈریس\",url:\"یو آر ایل\",emoji:\"ایموجی\",uuid:\"یو یو آئی ڈی\",uuidv4:\"یو یو آئی ڈی وی 4\",uuidv6:\"یو یو آئی ڈی وی 6\",nanoid:\"نینو آئی ڈی\",guid:\"جی یو آئی ڈی\",cuid:\"سی یو آئی ڈی\",cuid2:\"سی یو آئی ڈی 2\",ulid:\"یو ایل آئی ڈی\",xid:\"ایکس آئی ڈی\",ksuid:\"کے ایس یو آئی ڈی\",datetime:\"آئی ایس او ڈیٹ ٹائم\",date:\"آئی ایس او تاریخ\",time:\"آئی ایس او وقت\",duration:\"آئی ایس او مدت\",ipv4:\"آئی پی وی 4 ایڈریس\",ipv6:\"آئی پی وی 6 ایڈریس\",cidrv4:\"آئی پی وی 4 رینج\",cidrv6:\"آئی پی وی 6 رینج\",base64:\"بیس 64 ان کوڈڈ سٹرنگ\",base64url:\"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ\",json_string:\"جے ایس او این سٹرنگ\",e164:\"ای 164 نمبر\",jwt:\"جے ڈبلیو ٹی\",template_literal:\"ان پٹ\"},o={nan:\"NaN\",number:\"نمبر\",array:\"آرے\",null:\"نل\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`غلط ان پٹ: instanceof ${r.expected} متوقع تھا، ${s} موصول ہوا`;return`غلط ان پٹ: ${i} متوقع تھا، ${s} موصول ہوا`}case\"invalid_value\":if(r.values.length===1)return`غلط ان پٹ: ${w(r.values[0])} متوقع تھا`;return`غلط آپشن: ${h(r.values,\"|\")} میں سے ایک متوقع تھا`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`بہت بڑا: ${r.origin??\"ویلیو\"} کے ${i}${r.maximum.toString()} ${a.unit??\"عناصر\"} ہونے متوقع تھے`;return`بہت بڑا: ${r.origin??\"ویلیو\"} کا ${i}${r.maximum.toString()} ہونا متوقع تھا`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`بہت چھوٹا: ${r.origin} کے ${i}${r.minimum.toString()} ${a.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${r.origin} کا ${i}${r.minimum.toString()} ہونا متوقع تھا`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`غلط سٹرنگ: \"${i.prefix}\" سے شروع ہونا چاہیے`;if(i.format===\"ends_with\")return`غلط سٹرنگ: \"${i.suffix}\" پر ختم ہونا چاہیے`;if(i.format===\"includes\")return`غلط سٹرنگ: \"${i.includes}\" شامل ہونا چاہیے`;if(i.format===\"regex\")return`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`;return`غلط ${n[i.format]??r.format}`}case\"not_multiple_of\":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case\"unrecognized_keys\":return`غیر تسلیم شدہ کی${r.keys.length>1?\"ز\":\"\"}: ${h(r.keys,\"، \")}`;case\"invalid_key\":return`${r.origin} میں غلط کی`;case\"invalid_union\":return\"غلط ان پٹ\";case\"invalid_element\":return`${r.origin} میں غلط ویلیو`;default:return\"غلط ان پٹ\"}}};function Ru(){return{localeError:xx()}}var Sx=()=>{let e={string:{unit:\"belgi\",verb:\"bo‘lishi kerak\"},file:{unit:\"bayt\",verb:\"bo‘lishi kerak\"},array:{unit:\"element\",verb:\"bo‘lishi kerak\"},set:{unit:\"element\",verb:\"bo‘lishi kerak\"},map:{unit:\"yozuv\",verb:\"bo‘lishi kerak\"}};function t(r){return e[r]??null}let n={regex:\"kirish\",email:\"elektron pochta manzili\",url:\"URL\",emoji:\"emoji\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO sana va vaqti\",date:\"ISO sana\",time:\"ISO vaqt\",duration:\"ISO davomiylik\",ipv4:\"IPv4 manzil\",ipv6:\"IPv6 manzil\",mac:\"MAC manzil\",cidrv4:\"IPv4 diapazon\",cidrv6:\"IPv6 diapazon\",base64:\"base64 kodlangan satr\",base64url:\"base64url kodlangan satr\",json_string:\"JSON satr\",e164:\"E.164 raqam\",jwt:\"JWT\",template_literal:\"kirish\"},o={nan:\"NaN\",number:\"raqam\",array:\"massiv\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`;return`Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case\"invalid_value\":if(r.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${w(r.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Juda katta: kutilgan ${r.origin??\"qiymat\"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`;return`Juda katta: kutilgan ${r.origin??\"qiymat\"} ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`;return`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Noto‘g‘ri satr: \"${i.prefix}\" bilan boshlanishi kerak`;if(i.format===\"ends_with\")return`Noto‘g‘ri satr: \"${i.suffix}\" bilan tugashi kerak`;if(i.format===\"includes\")return`Noto‘g‘ri satr: \"${i.includes}\" ni o‘z ichiga olishi kerak`;if(i.format===\"regex\")return`Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Noto‘g‘ri raqam: ${r.divisor} ning karralisi bo‘lishi kerak`;case\"unrecognized_keys\":return`Noma’lum kalit${r.keys.length>1?\"lar\":\"\"}: ${h(r.keys,\", \")}`;case\"invalid_key\":return`${r.origin} dagi kalit noto‘g‘ri`;case\"invalid_union\":return\"Noto‘g‘ri kirish\";case\"invalid_element\":return`${r.origin} da noto‘g‘ri qiymat`;default:return\"Noto‘g‘ri kirish\"}}};function ju(){return{localeError:Sx()}}var Ix=()=>{let e={string:{unit:\"ký tự\",verb:\"có\"},file:{unit:\"byte\",verb:\"có\"},array:{unit:\"phần tử\",verb:\"có\"},set:{unit:\"phần tử\",verb:\"có\"}};function t(r){return e[r]??null}let n={regex:\"đầu vào\",email:\"địa chỉ 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ày giờ ISO\",date:\"ngày ISO\",time:\"giờ ISO\",duration:\"khoảng thời gian ISO\",ipv4:\"địa chỉ IPv4\",ipv6:\"địa chỉ IPv6\",cidrv4:\"dải IPv4\",cidrv6:\"dải IPv6\",base64:\"chuỗi mã hóa base64\",base64url:\"chuỗi mã hóa base64url\",json_string:\"chuỗi JSON\",e164:\"số E.164\",jwt:\"JWT\",template_literal:\"đầu vào\"},o={nan:\"NaN\",number:\"số\",array:\"mảng\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${r.expected}, nhận được ${s}`;return`Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${s}`}case\"invalid_value\":if(r.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${w(r.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Quá lớn: mong đợi ${r.origin??\"giá trị\"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??\"phần tử\"}`;return`Quá lớn: mong đợi ${r.origin??\"giá trị\"} ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Quá nhỏ: mong đợi ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`;return`Quá nhỏ: mong đợi ${r.origin} ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Chuỗi không hợp lệ: phải bắt đầu bằng \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Chuỗi không hợp lệ: phải kết thúc bằng \"${i.suffix}\"`;if(i.format===\"includes\")return`Chuỗi không hợp lệ: phải bao gồm \"${i.includes}\"`;if(i.format===\"regex\")return`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`;return`${n[i.format]??r.format} không hợp lệ`}case\"not_multiple_of\":return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case\"unrecognized_keys\":return`Khóa không được nhận dạng: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Khóa không hợp lệ trong ${r.origin}`;case\"invalid_union\":return\"Đầu vào không hợp lệ\";case\"invalid_element\":return`Giá trị không hợp lệ trong ${r.origin}`;default:return\"Đầu vào không hợp lệ\"}}};function Uu(){return{localeError:Ix()}}var Tx=()=>{let e={string:{unit:\"字符\",verb:\"包含\"},file:{unit:\"字节\",verb:\"包含\"},array:{unit:\"项\",verb:\"包含\"},set:{unit:\"项\",verb:\"包含\"}};function t(r){return e[r]??null}let n={regex:\"输入\",email:\"电子邮件\",url:\"URL\",emoji:\"表情符号\",uuid:\"UUID\",uuidv4:\"UUIDv4\",uuidv6:\"UUIDv6\",nanoid:\"nanoid\",guid:\"GUID\",cuid:\"cuid\",cuid2:\"cuid2\",ulid:\"ULID\",xid:\"XID\",ksuid:\"KSUID\",datetime:\"ISO日期时间\",date:\"ISO日期\",time:\"ISO时间\",duration:\"ISO时长\",ipv4:\"IPv4地址\",ipv6:\"IPv6地址\",cidrv4:\"IPv4网段\",cidrv6:\"IPv6网段\",base64:\"base64编码字符串\",base64url:\"base64url编码字符串\",json_string:\"JSON字符串\",e164:\"E.164号码\",jwt:\"JWT\",template_literal:\"输入\"},o={nan:\"NaN\",number:\"数字\",array:\"数组\",null:\"空值(null)\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`无效输入:期望 instanceof ${r.expected},实际接收 ${s}`;return`无效输入:期望 ${i},实际接收 ${s}`}case\"invalid_value\":if(r.values.length===1)return`无效输入:期望 ${w(r.values[0])}`;return`无效选项:期望以下之一 ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`数值过大:期望 ${r.origin??\"值\"} ${i}${r.maximum.toString()} ${a.unit??\"个元素\"}`;return`数值过大:期望 ${r.origin??\"值\"} ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`数值过小:期望 ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`;return`数值过小:期望 ${r.origin} ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`无效字符串:必须以 \"${i.prefix}\" 开头`;if(i.format===\"ends_with\")return`无效字符串:必须以 \"${i.suffix}\" 结尾`;if(i.format===\"includes\")return`无效字符串:必须包含 \"${i.includes}\"`;if(i.format===\"regex\")return`无效字符串:必须满足正则表达式 ${i.pattern}`;return`无效${n[i.format]??r.format}`}case\"not_multiple_of\":return`无效数字:必须是 ${r.divisor} 的倍数`;case\"unrecognized_keys\":return`出现未知的键(key): ${h(r.keys,\", \")}`;case\"invalid_key\":return`${r.origin} 中的键(key)无效`;case\"invalid_union\":return\"无效输入\";case\"invalid_element\":return`${r.origin} 中包含无效值(value)`;default:return\"无效输入\"}}};function Du(){return{localeError:Tx()}}var Px=()=>{let e={string:{unit:\"字元\",verb:\"擁有\"},file:{unit:\"位元組\",verb:\"擁有\"},array:{unit:\"項目\",verb:\"擁有\"},set:{unit:\"項目\",verb:\"擁有\"}};function t(r){return e[r]??null}let n={regex:\"輸入\",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 日期時間\",date:\"ISO 日期\",time:\"ISO 時間\",duration:\"ISO 期間\",ipv4:\"IPv4 位址\",ipv6:\"IPv6 位址\",cidrv4:\"IPv4 範圍\",cidrv6:\"IPv6 範圍\",base64:\"base64 編碼字串\",base64url:\"base64url 編碼字串\",json_string:\"JSON 字串\",e164:\"E.164 數值\",jwt:\"JWT\",template_literal:\"輸入\"},o={nan:\"NaN\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`無效的輸入值:預期為 instanceof ${r.expected},但收到 ${s}`;return`無效的輸入值:預期為 ${i},但收到 ${s}`}case\"invalid_value\":if(r.values.length===1)return`無效的輸入值:預期為 ${w(r.values[0])}`;return`無效的選項:預期為以下其中之一 ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`數值過大:預期 ${r.origin??\"值\"} 應為 ${i}${r.maximum.toString()} ${a.unit??\"個元素\"}`;return`數值過大:預期 ${r.origin??\"值\"} 應為 ${i}${r.maximum.toString()}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`數值過小:預期 ${r.origin} 應為 ${i}${r.minimum.toString()} ${a.unit}`;return`數值過小:預期 ${r.origin} 應為 ${i}${r.minimum.toString()}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`無效的字串:必須以 \"${i.prefix}\" 開頭`;if(i.format===\"ends_with\")return`無效的字串:必須以 \"${i.suffix}\" 結尾`;if(i.format===\"includes\")return`無效的字串:必須包含 \"${i.includes}\"`;if(i.format===\"regex\")return`無效的字串:必須符合格式 ${i.pattern}`;return`無效的 ${n[i.format]??r.format}`}case\"not_multiple_of\":return`無效的數字:必須為 ${r.divisor} 的倍數`;case\"unrecognized_keys\":return`無法識別的鍵值${r.keys.length>1?\"們\":\"\"}:${h(r.keys,\"、\")}`;case\"invalid_key\":return`${r.origin} 中有無效的鍵值`;case\"invalid_union\":return\"無效的輸入值\";case\"invalid_element\":return`${r.origin} 中有無效的值`;default:return\"無效的輸入值\"}}};function qu(){return{localeError:Px()}}var Cx=()=>{let e={string:{unit:\"àmi\",verb:\"ní\"},file:{unit:\"bytes\",verb:\"ní\"},array:{unit:\"nkan\",verb:\"ní\"},set:{unit:\"nkan\",verb:\"ní\"}};function t(r){return e[r]??null}let n={regex:\"ẹ̀rọ ìbáwọlé\",email:\"àdírẹ́sì ìmẹ́lì\",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:\"àkókò ISO\",date:\"ọjọ́ ISO\",time:\"àkókò ISO\",duration:\"àkókò tó pé ISO\",ipv4:\"àdírẹ́sì IPv4\",ipv6:\"àdírẹ́sì IPv6\",cidrv4:\"àgbègbè IPv4\",cidrv6:\"àgbègbè IPv6\",base64:\"ọ̀rọ̀ tí a kọ́ ní base64\",base64url:\"ọ̀rọ̀ base64url\",json_string:\"ọ̀rọ̀ JSON\",e164:\"nọ́mbà E.164\",jwt:\"JWT\",template_literal:\"ẹ̀rọ ìbáwọlé\"},o={nan:\"NaN\",number:\"nọ́mbà\",array:\"akopọ\"};return(r)=>{switch(r.code){case\"invalid_type\":{let i=o[r.expected]??r.expected,a=b(r.input),s=o[a]??a;if(/^[A-Z]/.test(r.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${r.expected}, àmọ̀ a rí ${s}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${s}`}case\"invalid_value\":if(r.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${w(r.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${h(r.values,\"|\")}`;case\"too_big\":{let i=r.inclusive?\"<=\":\"<\",a=t(r.origin);if(a)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${r.origin??\"iye\"} ${a.verb} ${i}${r.maximum} ${a.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${i}${r.maximum}`}case\"too_small\":{let i=r.inclusive?\">=\":\">\",a=t(r.origin);if(a)return`Kéré ju: a ní láti jẹ́ pé ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`;return`Kéré ju: a ní láti jẹ́ ${i}${r.minimum}`}case\"invalid_format\":{let i=r;if(i.format===\"starts_with\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \"${i.prefix}\"`;if(i.format===\"ends_with\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \"${i.suffix}\"`;if(i.format===\"includes\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \"${i.includes}\"`;if(i.format===\"regex\")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}`;return`Aṣìṣe: ${n[i.format]??r.format}`}case\"not_multiple_of\":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${r.divisor}`;case\"unrecognized_keys\":return`Bọtìnì àìmọ̀: ${h(r.keys,\", \")}`;case\"invalid_key\":return`Bọtìnì aṣìṣe nínú ${r.origin}`;case\"invalid_union\":return\"Ìbáwọlé aṣìṣe\";case\"invalid_element\":return`Iye aṣìṣe nínú ${r.origin}`;default:return\"Ìbáwọlé aṣìṣe\"}}};function Nu(){return{localeError:Cx()}}var Vf,Ju=Symbol(\"ZodOutput\"),Gu=Symbol(\"ZodInput\");class Mu{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n===\"object\"&&\"id\"in n)this._idmap.set(n.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);if(t&&typeof t===\"object\"&&\"id\"in t)this._idmap.delete(t.id);return this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let o={...n,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function bo(){return new Mu}(Vf=globalThis).__zod_globalRegistry??(Vf.__zod_globalRegistry=bo());var Y=globalThis.__zod_globalRegistry;function Zu(e,t){return new e({type:\"string\",...S(t)})}function Lu(e,t){return new e({type:\"string\",coerce:!0,...S(t)})}function _o(e,t){return new e({type:\"string\",format:\"email\",check:\"string_format\",abort:!1,...S(t)})}function rn(e,t){return new e({type:\"string\",format:\"guid\",check:\"string_format\",abort:!1,...S(t)})}function ko(e,t){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,...S(t)})}function xo(e,t){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v4\",...S(t)})}function So(e,t){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v6\",...S(t)})}function Io(e,t){return new e({type:\"string\",format:\"uuid\",check:\"string_format\",abort:!1,version:\"v7\",...S(t)})}function nn(e,t){return new e({type:\"string\",format:\"url\",check:\"string_format\",abort:!1,...S(t)})}function To(e,t){return new e({type:\"string\",format:\"emoji\",check:\"string_format\",abort:!1,...S(t)})}function Po(e,t){return new e({type:\"string\",format:\"nanoid\",check:\"string_format\",abort:!1,...S(t)})}function Co(e,t){return new e({type:\"string\",format:\"cuid\",check:\"string_format\",abort:!1,...S(t)})}function Eo(e,t){return new e({type:\"string\",format:\"cuid2\",check:\"string_format\",abort:!1,...S(t)})}function Oo(e,t){return new e({type:\"string\",format:\"ulid\",check:\"string_format\",abort:!1,...S(t)})}function zo(e,t){return new e({type:\"string\",format:\"xid\",check:\"string_format\",abort:!1,...S(t)})}function Ao(e,t){return new e({type:\"string\",format:\"ksuid\",check:\"string_format\",abort:!1,...S(t)})}function Ro(e,t){return new e({type:\"string\",format:\"ipv4\",check:\"string_format\",abort:!1,...S(t)})}function jo(e,t){return new e({type:\"string\",format:\"ipv6\",check:\"string_format\",abort:!1,...S(t)})}function Vu(e,t){return new e({type:\"string\",format:\"mac\",check:\"string_format\",abort:!1,...S(t)})}function Uo(e,t){return new e({type:\"string\",format:\"cidrv4\",check:\"string_format\",abort:!1,...S(t)})}function Do(e,t){return new e({type:\"string\",format:\"cidrv6\",check:\"string_format\",abort:!1,...S(t)})}function qo(e,t){return new e({type:\"string\",format:\"base64\",check:\"string_format\",abort:!1,...S(t)})}function No(e,t){return new e({type:\"string\",format:\"base64url\",check:\"string_format\",abort:!1,...S(t)})}function Jo(e,t){return new e({type:\"string\",format:\"e164\",check:\"string_format\",abort:!1,...S(t)})}function Go(e,t){return new e({type:\"string\",format:\"jwt\",check:\"string_format\",abort:!1,...S(t)})}var Fu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Bu(e,t){return new e({type:\"string\",format:\"datetime\",check:\"string_format\",offset:!1,local:!1,precision:null,...S(t)})}function Ku(e,t){return new e({type:\"string\",format:\"date\",check:\"string_format\",...S(t)})}function Wu(e,t){return new e({type:\"string\",format:\"time\",check:\"string_format\",precision:null,...S(t)})}function Hu(e,t){return new e({type:\"string\",format:\"duration\",check:\"string_format\",...S(t)})}function Xu(e,t){return new e({type:\"number\",checks:[],...S(t)})}function Yu(e,t){return new e({type:\"number\",coerce:!0,checks:[],...S(t)})}function Qu(e,t){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"safeint\",...S(t)})}function el(e,t){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"float32\",...S(t)})}function tl(e,t){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"float64\",...S(t)})}function rl(e,t){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"int32\",...S(t)})}function nl(e,t){return new e({type:\"number\",check:\"number_format\",abort:!1,format:\"uint32\",...S(t)})}function ol(e,t){return new e({type:\"boolean\",...S(t)})}function il(e,t){return new e({type:\"boolean\",coerce:!0,...S(t)})}function al(e,t){return new e({type:\"bigint\",...S(t)})}function sl(e,t){return new e({type:\"bigint\",coerce:!0,...S(t)})}function cl(e,t){return new e({type:\"bigint\",check:\"bigint_format\",abort:!1,format:\"int64\",...S(t)})}function ul(e,t){return new e({type:\"bigint\",check:\"bigint_format\",abort:!1,format:\"uint64\",...S(t)})}function ll(e,t){return new e({type:\"symbol\",...S(t)})}function dl(e,t){return new e({type:\"undefined\",...S(t)})}function pl(e,t){return new e({type:\"null\",...S(t)})}function ml(e){return new e({type:\"any\"})}function fl(e){return new e({type:\"unknown\"})}function hl(e,t){return new e({type:\"never\",...S(t)})}function gl(e,t){return new e({type:\"void\",...S(t)})}function vl(e,t){return new e({type:\"date\",...S(t)})}function yl(e,t){return new e({type:\"date\",coerce:!0,...S(t)})}function $l(e,t){return new e({type:\"nan\",...S(t)})}function Ae(e,t){return new co({check:\"less_than\",...S(t),value:e,inclusive:!1})}function $e(e,t){return new co({check:\"less_than\",...S(t),value:e,inclusive:!0})}function Re(e,t){return new uo({check:\"greater_than\",...S(t),value:e,inclusive:!1})}function oe(e,t){return new uo({check:\"greater_than\",...S(t),value:e,inclusive:!0})}function Mo(e){return Re(0,e)}function Zo(e){return Ae(0,e)}function Lo(e){return $e(0,e)}function Vo(e){return oe(0,e)}function Ye(e,t){return new gs({check:\"multiple_of\",...S(t),value:e})}function Qe(e,t){return new $s({check:\"max_size\",...S(t),maximum:e})}function je(e,t){return new ws({check:\"min_size\",...S(t),minimum:e})}function _t(e,t){return new bs({check:\"size_equals\",...S(t),size:e})}function kt(e,t){return new _s({check:\"max_length\",...S(t),maximum:e})}function Ge(e,t){return new ks({check:\"min_length\",...S(t),minimum:e})}function xt(e,t){return new xs({check:\"length_equals\",...S(t),length:e})}function Ht(e,t){return new Ss({check:\"string_format\",format:\"regex\",...S(t),pattern:e})}function Xt(e){return new Is({check:\"string_format\",format:\"lowercase\",...S(e)})}function Yt(e){return new Ts({check:\"string_format\",format:\"uppercase\",...S(e)})}function Qt(e,t){return new Ps({check:\"string_format\",format:\"includes\",...S(t),includes:e})}function er(e,t){return new Cs({check:\"string_format\",format:\"starts_with\",...S(t),prefix:e})}function tr(e,t){return new Es({check:\"string_format\",format:\"ends_with\",...S(t),suffix:e})}function Fo(e,t,n){return new Os({check:\"property\",property:e,schema:t,...S(n)})}function rr(e,t){return new zs({check:\"mime_type\",mime:e,...S(t)})}function Ie(e){return new As({check:\"overwrite\",tx:e})}function nr(e){return Ie((t)=>t.normalize(e))}function or(){return Ie((e)=>e.trim())}function ir(){return Ie((e)=>e.toLowerCase())}function ar(){return Ie((e)=>e.toUpperCase())}function sr(){return Ie((e)=>Ca(e))}function wl(e,t,n){return new e({type:\"array\",element:t,...S(n)})}function Ox(e,t,n){return new e({type:\"union\",options:t,...S(n)})}function zx(e,t,n){return new e({type:\"union\",options:t,inclusive:!1,...S(n)})}function Ax(e,t,n,o){return new e({type:\"union\",options:n,discriminator:t,...S(o)})}function Rx(e,t,n){return new e({type:\"intersection\",left:t,right:n})}function jx(e,t,n,o){let r=n instanceof A;return new e({type:\"tuple\",items:t,rest:r?n:null,...S(r?o:n)})}function Ux(e,t,n,o){return new e({type:\"record\",keyType:t,valueType:n,...S(o)})}function Dx(e,t,n,o){return new e({type:\"map\",keyType:t,valueType:n,...S(o)})}function qx(e,t,n){return new e({type:\"set\",valueType:t,...S(n)})}function Nx(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map((r)=>[r,r])):t;return new e({type:\"enum\",entries:o,...S(n)})}function Jx(e,t,n){return new e({type:\"enum\",entries:t,...S(n)})}function Gx(e,t,n){return new e({type:\"literal\",values:Array.isArray(t)?t:[t],...S(n)})}function bl(e,t){return new e({type:\"file\",...S(t)})}function Mx(e,t){return new e({type:\"transform\",transform:t})}function Zx(e,t){return new e({type:\"optional\",innerType:t})}function Lx(e,t){return new e({type:\"nullable\",innerType:t})}function Vx(e,t,n){return new e({type:\"default\",innerType:t,get defaultValue(){return typeof n===\"function\"?n():Oa(n)}})}function Fx(e,t,n){return new e({type:\"nonoptional\",innerType:t,...S(n)})}function Bx(e,t){return new e({type:\"success\",innerType:t})}function Kx(e,t,n){return new e({type:\"catch\",innerType:t,catchValue:typeof n===\"function\"?n:()=>n})}function Wx(e,t,n){return new e({type:\"pipe\",in:t,out:n})}function Hx(e,t){return new e({type:\"readonly\",innerType:t})}function Xx(e,t,n){return new e({type:\"template_literal\",parts:t,...S(n)})}function Yx(e,t){return new e({type:\"lazy\",getter:t})}function Qx(e,t){return new e({type:\"promise\",innerType:t})}function _l(e,t,n){let o=S(n);return o.abort??(o.abort=!0),new e({type:\"custom\",check:\"custom\",fn:t,...o})}function kl(e,t,n){return new e({type:\"custom\",check:\"custom\",fn:t,...S(n)})}function xl(e,t){let n=Ff((o)=>(o.addIssue=(r)=>{if(typeof r===\"string\")o.issues.push(Zt(r,o.value,n._zod.def));else{let i=r;if(i.fatal)i.continue=!1;i.code??(i.code=\"custom\"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Zt(i))}},e(o.value,o)),t);return n}function Ff(e,t){let n=new B({check:\"custom\",...S(t)});return n._zod.check=e,n}function Sl(e){let t=new B({check:\"describe\"});return t._zod.onattach=[(n)=>{let o=Y.get(n)??{};Y.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function Il(e){let t=new B({check:\"meta\"});return t._zod.onattach=[(n)=>{let o=Y.get(n)??{};Y.add(n,{...o,...e})}],t._zod.check=()=>{},t}function Tl(e,t){let n=S(t),o=n.truthy??[\"true\",\"1\",\"yes\",\"on\",\"y\",\"enabled\"],r=n.falsy??[\"false\",\"0\",\"no\",\"off\",\"n\",\"disabled\"];if(n.case!==\"sensitive\")o=o.map((m)=>typeof m===\"string\"?m.toLowerCase():m),r=r.map((m)=>typeof m===\"string\"?m.toLowerCase():m);let i=new Set(o),a=new Set(r),s=e.Codec??Hr,c=e.Boolean??Kr,l=new(e.String??bt)({type:\"string\",error:n.error}),d=new c({type:\"boolean\",error:n.error}),f=new s({type:\"pipe\",in:l,out:d,transform:(m,v)=>{let y=m;if(n.case!==\"sensitive\")y=y.toLowerCase();if(i.has(y))return!0;else if(a.has(y))return!1;else return v.issues.push({code:\"invalid_value\",expected:\"stringbool\",values:[...i,...a],input:v.value,inst:f,continue:!1}),{}},reverseTransform:(m,v)=>{if(m===!0)return o[0]||\"true\";else return r[0]||\"false\"},error:n.error});return f}function cr(e,t,n,o={}){let r=S(o),i={...S(o),check:\"string_format\",type:\"string\",format:t,fn:typeof n===\"function\"?n:(s)=>n.test(s),...r};if(n instanceof RegExp)i.pattern=n;return new e(i)}function et(e){let t=e?.target??\"draft-2020-12\";if(t===\"draft-4\")t=\"draft-04\";if(t===\"draft-7\")t=\"draft-07\";return{processors:e.processors??{},metadataRegistry:e?.metadata??Y,target:t,unrepresentable:e?.unrepresentable??\"throw\",override:e?.override??(()=>{}),io:e?.io??\"output\",counter:0,seen:new Map,cycles:e?.cycles??\"ref\",reused:e?.reused??\"inline\",external:e?.external??void 0}}function L(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i){if(i.count++,n.schemaPath.includes(e))i.cycle=n.path;return i.schema}let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let f=a.schema,m=t.processors[r.type];if(!m)throw Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);m(e,t,f,l)}let d=e._zod.parent;if(d){if(!a.ref)a.ref=d;L(d,t,l),t.seen.get(d).isParent=!0}}let c=t.metadataRegistry.get(e);if(c)Object.assign(a.schema,c);if(t.io===\"input\"&&ie(e))delete a.schema.examples,delete a.schema.default;if(t.io===\"input\"&&\"_prefault\"in a.schema)(o=a.schema).default??(o.default=a.schema._prefault);return delete a.schema._prefault,t.seen.get(e).schema}function tt(e,t){let n=e.seen.get(t);if(!n)throw Error(\"Unprocessed schema. This is a bug in Zod.\");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==a[0])throw Error(`Duplicate schema id \"${s}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let r=(a)=>{let s=e.target===\"draft-2020-12\"?\"$defs\":\"definitions\";if(e.external){let d=e.external.registry.get(a[0])?.id,f=e.external.uri??((v)=>v);if(d)return{ref:f(d)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f(\"__shared\")}#/${s}/${m}`}}if(a[1]===n)return{ref:\"#\"};let u=`${\"#\"}/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},i=(a)=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=r(a);if(s.def={...s.schema},u)s.defId=u;let l=s.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles===\"throw\")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw 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]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1){if(e.reused===\"ref\"){i(a);continue}}}}function rt(e,t){let n=e.seen.get(t);if(!n)throw Error(\"Unprocessed schema. This is a bug in Zod.\");let o=(s)=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){o(d);let m=e.seen.get(d),v=m.schema;if(v.$ref&&(e.target===\"draft-07\"||e.target===\"draft-04\"||e.target===\"openapi-3.0\"))u.allOf=u.allOf??[],u.allOf.push(v);else Object.assign(u,v);if(Object.assign(u,l),s._zod.parent===d)for(let x in u){if(x===\"$ref\"||x===\"allOf\")continue;if(!(x in l))delete u[x]}if(v.$ref&&m.def)for(let x in u){if(x===\"$ref\"||x===\"allOf\")continue;if(x in m.def&&JSON.stringify(u[x])===JSON.stringify(m.def[x]))delete u[x]}}let f=s._zod.parent;if(f&&f!==d){o(f);let m=e.seen.get(f);if(m?.schema.$ref){if(u.$ref=m.schema.$ref,m.def)for(let v in u){if(v===\"$ref\"||v===\"allOf\")continue;if(v in m.def&&JSON.stringify(u[v])===JSON.stringify(m.def[v]))delete u[v]}}}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[0]);let r={};if(e.target===\"draft-2020-12\")r.$schema=\"https://json-schema.org/draft/2020-12/schema\";else if(e.target===\"draft-07\")r.$schema=\"http://json-schema.org/draft-07/schema#\";else if(e.target===\"draft-04\")r.$schema=\"http://json-schema.org/draft-04/schema#\";else if(e.target===\"openapi-3.0\");if(e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw Error(\"Schema is missing an `id` property\");r.$id=e.external.uri(s)}Object.assign(r,n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;if(i!==void 0&&r.id===i)delete r.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];if(c.def&&c.defId){if(c.def.id===c.defId)delete c.def.id;a[c.defId]=c.def}}if(e.external);else if(Object.keys(a).length>0)if(e.target===\"draft-2020-12\")r.$defs=a;else r.definitions=a;try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,\"~standard\",{value:{...t[\"~standard\"],jsonSchema:{input:ur(t,\"input\",e.processors),output:ur(t,\"output\",e.processors)}},enumerable:!1,writable:!1}),s}catch(s){throw Error(\"Error converting schema to JSON.\")}}function ie(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type===\"transform\")return!0;if(o.type===\"array\")return ie(o.element,n);if(o.type===\"set\")return ie(o.valueType,n);if(o.type===\"lazy\")return ie(o.getter(),n);if(o.type===\"promise\"||o.type===\"optional\"||o.type===\"nonoptional\"||o.type===\"nullable\"||o.type===\"readonly\"||o.type===\"default\"||o.type===\"prefault\")return ie(o.innerType,n);if(o.type===\"intersection\")return ie(o.left,n)||ie(o.right,n);if(o.type===\"record\"||o.type===\"map\")return ie(o.keyType,n)||ie(o.valueType,n);if(o.type===\"pipe\"){if(e._zod.traits.has(\"$ZodCodec\"))return!0;return ie(o.in,n)||ie(o.out,n)}if(o.type===\"object\"){for(let r in o.shape)if(ie(o.shape[r],n))return!0;return!1}if(o.type===\"union\"){for(let r of o.options)if(ie(r,n))return!0;return!1}if(o.type===\"tuple\"){for(let r of o.items)if(ie(r,n))return!0;if(o.rest&&ie(o.rest,n))return!0;return!1}return!1}var Pl=(e,t={})=>(n)=>{let o=et({...n,processors:t});return L(e,o),tt(o,e),rt(o,e)},ur=(e,t,n={})=>(o)=>{let{libraryOptions:r,target:i}=o??{},a=et({...r??{},target:i,io:t,processors:n});return L(e,a),tt(a,e),rt(a,e)};var eS={guid:\"uuid\",url:\"uri\",datetime:\"date-time\",json_string:\"json-string\",regex:\"\"},Cl=(e,t,n,o)=>{let r=n;r.type=\"string\";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i===\"number\")r.minLength=i;if(typeof a===\"number\")r.maxLength=a;if(s){if(r.format=eS[s]??s,r.format===\"\")delete r.format;if(s===\"time\")delete r.format}if(u)r.contentEncoding=u;if(c&&c.size>0){let l=[...c];if(l.length===1)r.pattern=l[0].source;else if(l.length>1)r.allOf=[...l.map((d)=>({...t.target===\"draft-07\"||t.target===\"draft-04\"||t.target===\"openapi-3.0\"?{type:\"string\"}:{},pattern:d.source}))]}},El=(e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;if(typeof s===\"string\"&&s.includes(\"int\"))r.type=\"integer\";else r.type=\"number\";let d=typeof l===\"number\"&&l>=(i??Number.NEGATIVE_INFINITY),f=typeof u===\"number\"&&u<=(a??Number.POSITIVE_INFINITY),m=t.target===\"draft-04\"||t.target===\"openapi-3.0\";if(d)if(m)r.minimum=l,r.exclusiveMinimum=!0;else r.exclusiveMinimum=l;else if(typeof i===\"number\")r.minimum=i;if(f)if(m)r.maximum=u,r.exclusiveMaximum=!0;else r.exclusiveMaximum=u;else if(typeof a===\"number\")r.maximum=a;if(typeof c===\"number\")r.multipleOf=c},Ol=(e,t,n,o)=>{n.type=\"boolean\"},zl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"BigInt cannot be represented in JSON Schema\")},Al=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Symbols cannot be represented in JSON Schema\")},Rl=(e,t,n,o)=>{if(t.target===\"openapi-3.0\")n.type=\"string\",n.nullable=!0,n.enum=[null];else n.type=\"null\"},jl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Undefined cannot be represented in JSON Schema\")},Ul=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Void cannot be represented in JSON Schema\")},Dl=(e,t,n,o)=>{n.not={}},ql=(e,t,n,o)=>{},Nl=(e,t,n,o)=>{},Jl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Date cannot be represented in JSON Schema\")},Gl=(e,t,n,o)=>{let r=e._zod.def,i=Dr(r.entries);if(i.every((a)=>typeof a===\"number\"))n.type=\"number\";if(i.every((a)=>typeof a===\"string\"))n.type=\"string\";n.enum=i},Ml=(e,t,n,o)=>{let r=e._zod.def,i=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable===\"throw\")throw Error(\"Literal `undefined` cannot be represented in JSON Schema\")}else if(typeof a===\"bigint\")if(t.unrepresentable===\"throw\")throw Error(\"BigInt literals cannot be represented in JSON Schema\");else i.push(Number(a));else i.push(a);if(i.length===0);else if(i.length===1){let a=i[0];if(n.type=a===null?\"null\":typeof a,t.target===\"draft-04\"||t.target===\"openapi-3.0\")n.enum=[a];else n.const=a}else{if(i.every((a)=>typeof a===\"number\"))n.type=\"number\";if(i.every((a)=>typeof a===\"string\"))n.type=\"string\";if(i.every((a)=>typeof a===\"boolean\"))n.type=\"boolean\";if(i.every((a)=>a===null))n.type=\"null\";n.enum=i}},Zl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"NaN cannot be represented in JSON Schema\")},Ll=(e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw Error(\"Pattern not found in template literal\");r.type=\"string\",r.pattern=i.source},Vl=(e,t,n,o)=>{let r=n,i={type:\"string\",format:\"binary\",contentEncoding:\"binary\"},{minimum:a,maximum:s,mime:c}=e._zod.bag;if(a!==void 0)i.minLength=a;if(s!==void 0)i.maxLength=s;if(c)if(c.length===1)i.contentMediaType=c[0],Object.assign(r,i);else Object.assign(r,i),r.anyOf=c.map((u)=>({contentMediaType:u}));else Object.assign(r,i)},Fl=(e,t,n,o)=>{n.type=\"boolean\"},Bl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Custom types cannot be represented in JSON Schema\")},Kl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Function types cannot be represented in JSON Schema\")},Wl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Transforms cannot be represented in JSON Schema\")},Hl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Map cannot be represented in JSON Schema\")},Xl=(e,t,n,o)=>{if(t.unrepresentable===\"throw\")throw Error(\"Set cannot be represented in JSON Schema\")},Yl=(e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;if(typeof a===\"number\")r.minItems=a;if(typeof s===\"number\")r.maxItems=s;r.type=\"array\",r.items=L(i.element,t,{...o,path:[...o.path,\"items\"]})},Ql=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type=\"object\",r.properties={};let a=i.shape;for(let u in a)r.properties[u]=L(a[u],t,{...o,path:[...o.path,\"properties\",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter((u)=>{let l=i.shape[u]._zod;if(t.io===\"input\")return l.optin===void 0;else return l.optout===void 0}));if(c.size>0)r.required=Array.from(c);if(i.catchall?._zod.def.type===\"never\")r.additionalProperties=!1;else if(!i.catchall){if(t.io===\"output\")r.additionalProperties=!1}else if(i.catchall)r.additionalProperties=L(i.catchall,t,{...o,path:[...o.path,\"additionalProperties\"]})},Ko=(e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((s,c)=>L(s,t,{...o,path:[...o.path,i?\"oneOf\":\"anyOf\",c]}));if(i)n.oneOf=a;else n.anyOf=a},ed=(e,t,n,o)=>{let r=e._zod.def,i=L(r.left,t,{...o,path:[...o.path,\"allOf\",0]}),a=L(r.right,t,{...o,path:[...o.path,\"allOf\",1]}),s=(u)=>(\"allOf\"in u)&&Object.keys(u).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=c},td=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type=\"array\";let a=t.target===\"draft-2020-12\"?\"prefixItems\":\"items\",s=t.target===\"draft-2020-12\"?\"items\":t.target===\"openapi-3.0\"?\"items\":\"additionalItems\",c=i.items.map((f,m)=>L(f,t,{...o,path:[...o.path,a,m]})),u=i.rest?L(i.rest,t,{...o,path:[...o.path,s,...t.target===\"openapi-3.0\"?[i.items.length]:[]]}):null;if(t.target===\"draft-2020-12\"){if(r.prefixItems=c,u)r.items=u}else if(t.target===\"openapi-3.0\"){if(r.items={anyOf:c},u)r.items.anyOf.push(u);if(r.minItems=c.length,!u)r.maxItems=c.length}else if(r.items=c,u)r.additionalItems=u;let{minimum:l,maximum:d}=e._zod.bag;if(typeof l===\"number\")r.minItems=l;if(typeof d===\"number\")r.maxItems=d},rd=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type=\"object\";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode===\"loose\"&&c&&c.size>0){let l=L(i.valueType,t,{...o,path:[...o.path,\"patternProperties\",\"*\"]});r.patternProperties={};for(let d of c)r.patternProperties[d.source]=l}else{if(t.target===\"draft-07\"||t.target===\"draft-2020-12\")r.propertyNames=L(i.keyType,t,{...o,path:[...o.path,\"propertyNames\"]});r.additionalProperties=L(i.valueType,t,{...o,path:[...o.path,\"additionalProperties\"]})}let u=a._zod.values;if(u){let l=[...u].filter((d)=>typeof d===\"string\"||typeof d===\"number\");if(l.length>0)r.required=l}},nd=(e,t,n,o)=>{let r=e._zod.def,i=L(r.innerType,t,o),a=t.seen.get(e);if(t.target===\"openapi-3.0\")a.ref=r.innerType,n.nullable=!0;else n.anyOf=[i,{type:\"null\"}]},od=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},id=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},ad=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);if(i.ref=r.innerType,t.io===\"input\")n._prefault=JSON.parse(JSON.stringify(r.defaultValue))},sd=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw Error(\"Dynamic catch values are not supported in JSON Schema\")}n.default=a},cd=(e,t,n,o)=>{let r=e._zod.def,i=r.in._zod.traits.has(\"$ZodTransform\"),a=t.io===\"input\"?i?r.out:r.in:r.out;L(a,t,o);let s=t.seen.get(e);s.ref=a},ud=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},ld=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},Wo=(e,t,n,o)=>{let r=e._zod.def;L(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},dd=(e,t,n,o)=>{let r=e._zod.innerType;L(r,t,o);let i=t.seen.get(e);i.ref=r},Bo={string:Cl,number:El,boolean:Ol,bigint:zl,symbol:Al,null:Rl,undefined:jl,void:Ul,never:Dl,any:ql,unknown:Nl,date:Jl,enum:Gl,literal:Ml,nan:Zl,template_literal:Ll,file:Vl,success:Fl,custom:Bl,function:Kl,transform:Wl,map:Hl,set:Xl,array:Yl,object:Ql,union:Ko,intersection:ed,tuple:td,record:rd,nullable:nd,nonoptional:od,default:id,prefault:ad,catch:sd,pipe:cd,readonly:ud,promise:ld,optional:Wo,lazy:dd};function Ho(e,t){if(\"_idmap\"in e){let o=e,r=et({...t,processors:Bo}),i={};for(let c of o._idmap.entries()){let[u,l]=c;L(l,r)}let a={},s={registry:o,uri:t?.uri,defs:i};r.external=s;for(let c of o._idmap.entries()){let[u,l]=c;tt(r,l),a[u]=rt(r,l)}if(Object.keys(i).length>0){let c=r.target===\"draft-2020-12\"?\"$defs\":\"definitions\";a.__shared={[c]:i}}return{schemas:a}}let n=et({...t,processors:Bo});return L(e,n),tt(n,e),rt(n,e)}class pd{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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??\"draft-2020-12\";if(t===\"draft-4\")t=\"draft-04\";if(t===\"draft-7\")t=\"draft-07\";this.ctx=et({processors:Bo,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return L(e,this.ctx,t)}emit(e,t){if(t){if(t.cycles)this.ctx.cycles=t.cycles;if(t.reused)this.ctx.reused=t.reused;if(t.external)this.ctx.external=t.external}tt(this.ctx,e);let n=rt(this.ctx,e),{\"~standard\":o,...r}=n;return r}}var Bf={};var on={};Ne(on,{ZodAny:()=>Ud,ZodArray:()=>Jd,ZodBase64:()=>vi,ZodBase64URL:()=>yi,ZodBigInt:()=>vr,ZodBigIntFormat:()=>bi,ZodBoolean:()=>gr,ZodCIDRv4:()=>hi,ZodCIDRv6:()=>gi,ZodCUID:()=>ci,ZodCUID2:()=>ui,ZodCatch:()=>cp,ZodCodec:()=>vn,ZodCustom:()=>yn,ZodCustomStringFormat:()=>fr,ZodDate:()=>pn,ZodDefault:()=>rp,ZodDiscriminatedUnion:()=>Md,ZodE164:()=>$i,ZodEmail:()=>ii,ZodEmoji:()=>ai,ZodEnum:()=>pr,ZodExactOptional:()=>Qd,ZodFile:()=>Xd,ZodFunction:()=>yp,ZodGUID:()=>sn,ZodIPv4:()=>mi,ZodIPv6:()=>fi,ZodIntersection:()=>Zd,ZodJWT:()=>wi,ZodKSUID:()=>pi,ZodLazy:()=>hp,ZodLiteral:()=>Hd,ZodMAC:()=>Cd,ZodMap:()=>Kd,ZodNaN:()=>lp,ZodNanoID:()=>si,ZodNever:()=>qd,ZodNonOptional:()=>Ti,ZodNull:()=>Rd,ZodNullable:()=>tp,ZodNumber:()=>hr,ZodNumberFormat:()=>It,ZodObject:()=>fn,ZodOptional:()=>Ii,ZodPipe:()=>gn,ZodPrefault:()=>op,ZodPreprocess:()=>dp,ZodPromise:()=>vp,ZodReadonly:()=>pp,ZodRecord:()=>dr,ZodSet:()=>Wd,ZodString:()=>mr,ZodStringFormat:()=>F,ZodSuccess:()=>sp,ZodSymbol:()=>zd,ZodTemplateLiteral:()=>fp,ZodTransform:()=>Yd,ZodTuple:()=>Vd,ZodType:()=>U,ZodULID:()=>li,ZodURL:()=>dn,ZodUUID:()=>Ue,ZodUndefined:()=>Ad,ZodUnion:()=>hn,ZodUnknown:()=>Dd,ZodVoid:()=>Nd,ZodXID:()=>di,ZodXor:()=>Gd,_ZodString:()=>oi,_default:()=>np,_function:()=>rg,any:()=>Ah,array:()=>mn,base64:()=>gh,base64url:()=>vh,bigint:()=>Ph,boolean:()=>Od,catch:()=>up,check:()=>ng,cidrv4:()=>fh,cidrv6:()=>hh,codec:()=>Yh,cuid:()=>ah,cuid2:()=>sh,custom:()=>og,date:()=>jh,describe:()=>ig,discriminatedUnion:()=>Gh,e164:()=>yh,email:()=>Hf,emoji:()=>oh,enum:()=>xi,exactOptional:()=>ep,file:()=>Kh,float32:()=>xh,float64:()=>Sh,function:()=>rg,guid:()=>Xf,hash:()=>kh,hex:()=>_h,hostname:()=>bh,httpUrl:()=>nh,instanceof:()=>sg,int:()=>ri,int32:()=>Ih,int64:()=>Ch,intersection:()=>Ld,invertCodec:()=>Qh,ipv4:()=>dh,ipv6:()=>mh,json:()=>ug,jwt:()=>$h,keyof:()=>Uh,ksuid:()=>lh,lazy:()=>gp,literal:()=>Bh,looseObject:()=>Nh,looseRecord:()=>Zh,mac:()=>ph,map:()=>Lh,meta:()=>ag,nan:()=>Xh,nanoid:()=>ih,nativeEnum:()=>Fh,never:()=>_i,nonoptional:()=>ap,null:()=>jd,nullable:()=>un,nullish:()=>Wh,number:()=>Ed,object:()=>Dh,optional:()=>cn,partialRecord:()=>Mh,pipe:()=>ni,prefault:()=>ip,preprocess:()=>lg,promise:()=>tg,readonly:()=>mp,record:()=>Bd,refine:()=>$p,set:()=>Vh,strictObject:()=>qh,string:()=>an,stringFormat:()=>wh,stringbool:()=>cg,success:()=>Hh,superRefine:()=>wp,symbol:()=>Oh,templateLiteral:()=>eg,transform:()=>Si,tuple:()=>Fd,uint32:()=>Th,uint64:()=>Eh,ulid:()=>ch,undefined:()=>zh,union:()=>ki,unknown:()=>St,url:()=>rh,uuid:()=>Yf,uuidv4:()=>Qf,uuidv6:()=>eh,uuidv7:()=>th,void:()=>Rh,xid:()=>uh,xor:()=>Jh});var Xo={};Ne(Xo,{endsWith:()=>tr,gt:()=>Re,gte:()=>oe,includes:()=>Qt,length:()=>xt,lowercase:()=>Xt,lt:()=>Ae,lte:()=>$e,maxLength:()=>kt,maxSize:()=>Qe,mime:()=>rr,minLength:()=>Ge,minSize:()=>je,multipleOf:()=>Ye,negative:()=>Zo,nonnegative:()=>Vo,nonpositive:()=>Lo,normalize:()=>nr,overwrite:()=>Ie,positive:()=>Mo,property:()=>Fo,regex:()=>Ht,size:()=>_t,slugify:()=>sr,startsWith:()=>er,toLowerCase:()=>ir,toUpperCase:()=>ar,trim:()=>or,uppercase:()=>Yt});var lr={};Ne(lr,{ZodISODate:()=>Qo,ZodISODateTime:()=>Yo,ZodISODuration:()=>ti,ZodISOTime:()=>ei,date:()=>fd,datetime:()=>md,duration:()=>gd,time:()=>hd});var Yo=p(\"ZodISODateTime\",(e,t)=>{Bs.init(e,t),F.init(e,t)});function md(e){return Bu(Yo,e)}var Qo=p(\"ZodISODate\",(e,t)=>{Ks.init(e,t),F.init(e,t)});function fd(e){return Ku(Qo,e)}var ei=p(\"ZodISOTime\",(e,t)=>{Ws.init(e,t),F.init(e,t)});function hd(e){return Wu(ei,e)}var ti=p(\"ZodISODuration\",(e,t)=>{Hs.init(e,t),F.init(e,t)});function gd(e){return Hu(ti,e)}var Kf=(e,t)=>{Mr.init(e,t),e.name=\"ZodError\",Object.defineProperties(e,{format:{value:(n)=>Lr(e,n)},flatten:{value:(n)=>Zr(e,n)},addIssue:{value:(n)=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Gt,2)}},addIssues:{value:(n)=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Gt,2)}},isEmpty:{get(){return e.issues.length===0}}})},rS=p(\"ZodError\",Kf),le=p(\"ZodError\",Kf,{Parent:Error});var vd=Lt(le),yd=Vt(le),$d=Ft(le),wd=Bt(le),bd=Qn(le),_d=eo(le),kd=to(le),xd=ro(le),Sd=no(le),Id=oo(le),Td=io(le),Pd=ao(le);var Wf=new WeakMap;function ln(e,t,n){let o=Object.getPrototypeOf(e),r=Wf.get(o);if(!r)r=new Set,Wf.set(o,r);if(r.has(t))return;r.add(t);for(let i in n){let a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}var U=p(\"ZodType\",(e,t)=>(A.init(e,t),Object.assign(e[\"~standard\"],{jsonSchema:{input:ur(e,\"input\"),output:ur(e,\"output\")}}),e.toJSONSchema=Pl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,\"_def\",{value:t}),e.parse=(n,o)=>vd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>$d(e,n,o),e.parseAsync=async(n,o)=>yd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>wd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>bd(e,n,o),e.decode=(n,o)=>_d(e,n,o),e.encodeAsync=async(n,o)=>kd(e,n,o),e.decodeAsync=async(n,o)=>xd(e,n,o),e.safeEncode=(n,o)=>Sd(e,n,o),e.safeDecode=(n,o)=>Id(e,n,o),e.safeEncodeAsync=async(n,o)=>Td(e,n,o),e.safeDecodeAsync=async(n,o)=>Pd(e,n,o),ln(e,\"ZodType\",{check(...n){let o=this.def;return this.clone(k.mergeDefs(o,{checks:[...o.checks??[],...n.map((r)=>typeof r===\"function\"?{_zod:{check:r,def:{check:\"custom\"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return re(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check($p(n,o))},superRefine(n,o){return this.check(wp(n,o))},overwrite(n){return this.check(Ie(n))},optional(){return cn(this)},exactOptional(){return ep(this)},nullable(){return un(this)},nullish(){return cn(un(this))},nonoptional(n){return ap(this,n)},array(){return mn(this)},or(n){return ki([this,n])},and(n){return Ld(this,n)},transform(n){return ni(this,Si(n))},default(n){return np(this,n)},prefault(n){return ip(this,n)},catch(n){return up(this,n)},pipe(n){return ni(this,n)},readonly(){return mp(this)},describe(n){let o=this.clone();return Y.add(o,{description:n}),o},meta(...n){if(n.length===0)return Y.get(this);let o=this.clone();return Y.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,\"description\",{get(){return Y.get(e)?.description},configurable:!0}),e)),oi=p(\"_ZodString\",(e,t)=>{bt.init(e,t),U.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Cl(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ln(e,\"_ZodString\",{regex(...o){return this.check(Ht(...o))},includes(...o){return this.check(Qt(...o))},startsWith(...o){return this.check(er(...o))},endsWith(...o){return this.check(tr(...o))},min(...o){return this.check(Ge(...o))},max(...o){return this.check(kt(...o))},length(...o){return this.check(xt(...o))},nonempty(...o){return this.check(Ge(1,...o))},lowercase(o){return this.check(Xt(o))},uppercase(o){return this.check(Yt(o))},trim(){return this.check(or())},normalize(...o){return this.check(nr(...o))},toLowerCase(){return this.check(ir())},toUpperCase(){return this.check(ar())},slugify(){return this.check(sr())}})}),mr=p(\"ZodString\",(e,t)=>{bt.init(e,t),oi.init(e,t),e.email=(n)=>e.check(_o(ii,n)),e.url=(n)=>e.check(nn(dn,n)),e.jwt=(n)=>e.check(Go(wi,n)),e.emoji=(n)=>e.check(To(ai,n)),e.guid=(n)=>e.check(rn(sn,n)),e.uuid=(n)=>e.check(ko(Ue,n)),e.uuidv4=(n)=>e.check(xo(Ue,n)),e.uuidv6=(n)=>e.check(So(Ue,n)),e.uuidv7=(n)=>e.check(Io(Ue,n)),e.nanoid=(n)=>e.check(Po(si,n)),e.guid=(n)=>e.check(rn(sn,n)),e.cuid=(n)=>e.check(Co(ci,n)),e.cuid2=(n)=>e.check(Eo(ui,n)),e.ulid=(n)=>e.check(Oo(li,n)),e.base64=(n)=>e.check(qo(vi,n)),e.base64url=(n)=>e.check(No(yi,n)),e.xid=(n)=>e.check(zo(di,n)),e.ksuid=(n)=>e.check(Ao(pi,n)),e.ipv4=(n)=>e.check(Ro(mi,n)),e.ipv6=(n)=>e.check(jo(fi,n)),e.cidrv4=(n)=>e.check(Uo(hi,n)),e.cidrv6=(n)=>e.check(Do(gi,n)),e.e164=(n)=>e.check(Jo($i,n)),e.datetime=(n)=>e.check(md(n)),e.date=(n)=>e.check(fd(n)),e.time=(n)=>e.check(hd(n)),e.duration=(n)=>e.check(gd(n))});function an(e){return Zu(mr,e)}var F=p(\"ZodStringFormat\",(e,t)=>{V.init(e,t),oi.init(e,t)}),ii=p(\"ZodEmail\",(e,t)=>{qs.init(e,t),F.init(e,t)});function Hf(e){return _o(ii,e)}var sn=p(\"ZodGUID\",(e,t)=>{Us.init(e,t),F.init(e,t)});function Xf(e){return rn(sn,e)}var Ue=p(\"ZodUUID\",(e,t)=>{Ds.init(e,t),F.init(e,t)});function Yf(e){return ko(Ue,e)}function Qf(e){return xo(Ue,e)}function eh(e){return So(Ue,e)}function th(e){return Io(Ue,e)}var dn=p(\"ZodURL\",(e,t)=>{Ns.init(e,t),F.init(e,t)});function rh(e){return nn(dn,e)}function nh(e){return nn(dn,{protocol:ye.httpProtocol,hostname:ye.domain,...k.normalizeParams(e)})}var ai=p(\"ZodEmoji\",(e,t)=>{Js.init(e,t),F.init(e,t)});function oh(e){return To(ai,e)}var si=p(\"ZodNanoID\",(e,t)=>{Gs.init(e,t),F.init(e,t)});function ih(e){return Po(si,e)}var ci=p(\"ZodCUID\",(e,t)=>{Ms.init(e,t),F.init(e,t)});function ah(e){return Co(ci,e)}var ui=p(\"ZodCUID2\",(e,t)=>{Zs.init(e,t),F.init(e,t)});function sh(e){return Eo(ui,e)}var li=p(\"ZodULID\",(e,t)=>{Ls.init(e,t),F.init(e,t)});function ch(e){return Oo(li,e)}var di=p(\"ZodXID\",(e,t)=>{Vs.init(e,t),F.init(e,t)});function uh(e){return zo(di,e)}var pi=p(\"ZodKSUID\",(e,t)=>{Fs.init(e,t),F.init(e,t)});function lh(e){return Ao(pi,e)}var mi=p(\"ZodIPv4\",(e,t)=>{Xs.init(e,t),F.init(e,t)});function dh(e){return Ro(mi,e)}var Cd=p(\"ZodMAC\",(e,t)=>{Qs.init(e,t),F.init(e,t)});function ph(e){return Vu(Cd,e)}var fi=p(\"ZodIPv6\",(e,t)=>{Ys.init(e,t),F.init(e,t)});function mh(e){return jo(fi,e)}var hi=p(\"ZodCIDRv4\",(e,t)=>{ec.init(e,t),F.init(e,t)});function fh(e){return Uo(hi,e)}var gi=p(\"ZodCIDRv6\",(e,t)=>{tc.init(e,t),F.init(e,t)});function hh(e){return Do(gi,e)}var vi=p(\"ZodBase64\",(e,t)=>{nc.init(e,t),F.init(e,t)});function gh(e){return qo(vi,e)}var yi=p(\"ZodBase64URL\",(e,t)=>{oc.init(e,t),F.init(e,t)});function vh(e){return No(yi,e)}var $i=p(\"ZodE164\",(e,t)=>{ic.init(e,t),F.init(e,t)});function yh(e){return Jo($i,e)}var wi=p(\"ZodJWT\",(e,t)=>{ac.init(e,t),F.init(e,t)});function $h(e){return Go(wi,e)}var fr=p(\"ZodCustomStringFormat\",(e,t)=>{sc.init(e,t),F.init(e,t)});function wh(e,t,n={}){return cr(fr,e,t,n)}function bh(e){return cr(fr,\"hostname\",ye.hostname,e)}function _h(e){return cr(fr,\"hex\",ye.hex,e)}function kh(e,t){let n=t?.enc??\"hex\",o=`${e}_${n}`,r=ye[o];if(!r)throw Error(`Unrecognized hash format: ${o}`);return cr(fr,o,r,t)}var hr=p(\"ZodNumber\",(e,t)=>{go.init(e,t),U.init(e,t),e._zod.processJSONSchema=(o,r,i)=>El(e,o,r,i),ln(e,\"ZodNumber\",{gt(o,r){return this.check(Re(o,r))},gte(o,r){return this.check(oe(o,r))},min(o,r){return this.check(oe(o,r))},lt(o,r){return this.check(Ae(o,r))},lte(o,r){return this.check($e(o,r))},max(o,r){return this.check($e(o,r))},int(o){return this.check(ri(o))},safe(o){return this.check(ri(o))},positive(o){return this.check(Re(0,o))},nonnegative(o){return this.check(oe(0,o))},negative(o){return this.check(Ae(0,o))},nonpositive(o){return this.check($e(0,o))},multipleOf(o,r){return this.check(Ye(o,r))},step(o,r){return this.check(Ye(o,r))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??\"\").includes(\"int\")||Number.isSafeInteger(n.multipleOf??0.5),e.isFinite=!0,e.format=n.format??null});function Ed(e){return Xu(hr,e)}var It=p(\"ZodNumberFormat\",(e,t)=>{cc.init(e,t),hr.init(e,t)});function ri(e){return Qu(It,e)}function xh(e){return el(It,e)}function Sh(e){return tl(It,e)}function Ih(e){return rl(It,e)}function Th(e){return nl(It,e)}var gr=p(\"ZodBoolean\",(e,t)=>{Kr.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ol(e,n,o,r)});function Od(e){return ol(gr,e)}var vr=p(\"ZodBigInt\",(e,t)=>{vo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(o,r,i)=>zl(e,o,r,i),e.gte=(o,r)=>e.check(oe(o,r)),e.min=(o,r)=>e.check(oe(o,r)),e.gt=(o,r)=>e.check(Re(o,r)),e.gte=(o,r)=>e.check(oe(o,r)),e.min=(o,r)=>e.check(oe(o,r)),e.lt=(o,r)=>e.check(Ae(o,r)),e.lte=(o,r)=>e.check($e(o,r)),e.max=(o,r)=>e.check($e(o,r)),e.positive=(o)=>e.check(Re(BigInt(0),o)),e.negative=(o)=>e.check(Ae(BigInt(0),o)),e.nonpositive=(o)=>e.check($e(BigInt(0),o)),e.nonnegative=(o)=>e.check(oe(BigInt(0),o)),e.multipleOf=(o,r)=>e.check(Ye(o,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Ph(e){return al(vr,e)}var bi=p(\"ZodBigIntFormat\",(e,t)=>{uc.init(e,t),vr.init(e,t)});function Ch(e){return cl(bi,e)}function Eh(e){return ul(bi,e)}var zd=p(\"ZodSymbol\",(e,t)=>{lc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Al(e,n,o,r)});function Oh(e){return ll(zd,e)}var Ad=p(\"ZodUndefined\",(e,t)=>{dc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jl(e,n,o,r)});function zh(e){return dl(Ad,e)}var Rd=p(\"ZodNull\",(e,t)=>{pc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Rl(e,n,o,r)});function jd(e){return pl(Rd,e)}var Ud=p(\"ZodAny\",(e,t)=>{mc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ql(e,n,o,r)});function Ah(){return ml(Ud)}var Dd=p(\"ZodUnknown\",(e,t)=>{fc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Nl(e,n,o,r)});function St(){return fl(Dd)}var qd=p(\"ZodNever\",(e,t)=>{hc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dl(e,n,o,r)});function _i(e){return hl(qd,e)}var Nd=p(\"ZodVoid\",(e,t)=>{gc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ul(e,n,o,r)});function Rh(e){return gl(Nd,e)}var pn=p(\"ZodDate\",(e,t)=>{vc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Jl(e,o,r,i),e.min=(o,r)=>e.check(oe(o,r)),e.max=(o,r)=>e.check($e(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function jh(e){return vl(pn,e)}var Jd=p(\"ZodArray\",(e,t)=>{yc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yl(e,n,o,r),e.element=t.element,ln(e,\"ZodArray\",{min(n,o){return this.check(Ge(n,o))},nonempty(n){return this.check(Ge(1,n))},max(n,o){return this.check(kt(n,o))},length(n,o){return this.check(xt(n,o))},unwrap(){return this.element}})});function mn(e,t){return wl(Jd,e,t)}function Uh(e){let t=e._zod.def.shape;return xi(Object.keys(t))}var fn=p(\"ZodObject\",(e,t)=>{$c.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ql(e,n,o,r),k.defineLazy(e,\"shape\",()=>t.shape),ln(e,\"ZodObject\",{keyof(){return xi(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:St()})},loose(){return this.clone({...this._zod.def,catchall:St()})},strict(){return this.clone({...this._zod.def,catchall:_i()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return k.extend(this,n)},safeExtend(n){return k.safeExtend(this,n)},merge(n){return k.merge(this,n)},pick(n){return k.pick(this,n)},omit(n){return k.omit(this,n)},partial(...n){return k.partial(Ii,this,n[0])},required(...n){return k.required(Ti,this,n[0])}})});function Dh(e,t){let n={type:\"object\",shape:e??{},...k.normalizeParams(t)};return new fn(n)}function qh(e,t){return new fn({type:\"object\",shape:e,catchall:_i(),...k.normalizeParams(t)})}function Nh(e,t){return new fn({type:\"object\",shape:e,catchall:St(),...k.normalizeParams(t)})}var hn=p(\"ZodUnion\",(e,t)=>{Wr.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ko(e,n,o,r),e.options=t.options});function ki(e,t){return new hn({type:\"union\",options:e,...k.normalizeParams(t)})}var Gd=p(\"ZodXor\",(e,t)=>{hn.init(e,t),wc.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ko(e,n,o,r),e.options=t.options});function Jh(e,t){return new Gd({type:\"union\",options:e,inclusive:!1,...k.normalizeParams(t)})}var Md=p(\"ZodDiscriminatedUnion\",(e,t)=>{hn.init(e,t),bc.init(e,t)});function Gh(e,t,n){return new Md({type:\"union\",options:t,discriminator:e,...k.normalizeParams(n)})}var Zd=p(\"ZodIntersection\",(e,t)=>{_c.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ed(e,n,o,r)});function Ld(e,t){return new Zd({type:\"intersection\",left:e,right:t})}var Vd=p(\"ZodTuple\",(e,t)=>{yo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o,r),e.rest=(n)=>e.clone({...e._zod.def,rest:n})});function Fd(e,t,n){let o=t instanceof A,r=o?n:t;return new Vd({type:\"tuple\",items:e,rest:o?t:null,...k.normalizeParams(r)})}var dr=p(\"ZodRecord\",(e,t)=>{kc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Bd(e,t,n){if(!t||!t._zod)return new dr({type:\"record\",keyType:an(),valueType:e,...k.normalizeParams(t)});return new dr({type:\"record\",keyType:e,valueType:t,...k.normalizeParams(n)})}function Mh(e,t,n){let o=re(e);return o._zod.values=void 0,new dr({type:\"record\",keyType:o,valueType:t,...k.normalizeParams(n)})}function Zh(e,t,n){return new dr({type:\"record\",keyType:e,valueType:t,mode:\"loose\",...k.normalizeParams(n)})}var Kd=p(\"ZodMap\",(e,t)=>{xc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hl(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(je(...n)),e.nonempty=(n)=>e.check(je(1,n)),e.max=(...n)=>e.check(Qe(...n)),e.size=(...n)=>e.check(_t(...n))});function Lh(e,t,n){return new Kd({type:\"map\",keyType:e,valueType:t,...k.normalizeParams(n)})}var Wd=p(\"ZodSet\",(e,t)=>{Sc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xl(e,n,o,r),e.min=(...n)=>e.check(je(...n)),e.nonempty=(n)=>e.check(je(1,n)),e.max=(...n)=>e.check(Qe(...n)),e.size=(...n)=>e.check(_t(...n))});function Vh(e,t){return new Wd({type:\"set\",valueType:e,...k.normalizeParams(t)})}var pr=p(\"ZodEnum\",(e,t)=>{Ic.init(e,t),U.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Gl(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let a of o)if(n.has(a))i[a]=t.entries[a];else throw Error(`Key ${a} not found in enum`);return new pr({...t,checks:[],...k.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let a of o)if(n.has(a))delete i[a];else throw Error(`Key ${a} not found in enum`);return new pr({...t,checks:[],...k.normalizeParams(r),entries:i})}});function xi(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map((o)=>[o,o])):e;return new pr({type:\"enum\",entries:n,...k.normalizeParams(t)})}function Fh(e,t){return new pr({type:\"enum\",entries:e,...k.normalizeParams(t)})}var Hd=p(\"ZodLiteral\",(e,t)=>{Tc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ml(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,\"value\",{get(){if(t.values.length>1)throw Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");return t.values[0]}})});function Bh(e,t){return new Hd({type:\"literal\",values:Array.isArray(e)?e:[e],...k.normalizeParams(t)})}var Xd=p(\"ZodFile\",(e,t)=>{Pc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vl(e,n,o,r),e.min=(n,o)=>e.check(je(n,o)),e.max=(n,o)=>e.check(Qe(n,o)),e.mime=(n,o)=>e.check(rr(Array.isArray(n)?n:[n],o))});function Kh(e){return bl(Xd,e)}var Yd=p(\"ZodTransform\",(e,t)=>{Cc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wl(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction===\"backward\")throw new yt(e.constructor.name);n.addIssue=(i)=>{if(typeof i===\"string\")n.issues.push(k.issue(i,n.value,t));else{let a=i;if(a.fatal)a.continue=!1;a.code??(a.code=\"custom\"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(k.issue(a))}};let r=t.transform(n.value,n);if(r instanceof Promise)return r.then((i)=>(n.value=i,n.fallback=!0,n));return n.value=r,n.fallback=!0,n}});function Si(e){return new Yd({type:\"transform\",transform:e})}var Ii=p(\"ZodOptional\",(e,t)=>{$o.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wo(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function cn(e){return new Ii({type:\"optional\",innerType:e})}var Qd=p(\"ZodExactOptional\",(e,t)=>{Ec.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wo(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ep(e){return new Qd({type:\"optional\",innerType:e})}var tp=p(\"ZodNullable\",(e,t)=>{Oc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function un(e){return new tp({type:\"nullable\",innerType:e})}function Wh(e){return cn(un(e))}var rp=p(\"ZodDefault\",(e,t)=>{zc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>id(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function np(e,t){return new rp({type:\"default\",innerType:e,get defaultValue(){return typeof t===\"function\"?t():k.shallowClone(t)}})}var op=p(\"ZodPrefault\",(e,t)=>{Ac.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ip(e,t){return new op({type:\"prefault\",innerType:e,get defaultValue(){return typeof t===\"function\"?t():k.shallowClone(t)}})}var Ti=p(\"ZodNonOptional\",(e,t)=>{Rc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>od(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ap(e,t){return new Ti({type:\"nonoptional\",innerType:e,...k.normalizeParams(t)})}var sp=p(\"ZodSuccess\",(e,t)=>{jc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fl(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Hh(e){return new sp({type:\"success\",innerType:e})}var cp=p(\"ZodCatch\",(e,t)=>{Uc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function up(e,t){return new cp({type:\"catch\",innerType:e,catchValue:typeof t===\"function\"?t:()=>t})}var lp=p(\"ZodNaN\",(e,t)=>{Dc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zl(e,n,o,r)});function Xh(e){return $l(lp,e)}var gn=p(\"ZodPipe\",(e,t)=>{wo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.in=t.in,e.out=t.out});function ni(e,t){return new gn({type:\"pipe\",in:e,out:t})}var vn=p(\"ZodCodec\",(e,t)=>{gn.init(e,t),Hr.init(e,t)});function Yh(e,t,n){return new vn({type:\"pipe\",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Qh(e){let t=e._zod.def;return new vn({type:\"pipe\",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var dp=p(\"ZodPreprocess\",(e,t)=>{gn.init(e,t),qc.init(e,t)}),pp=p(\"ZodReadonly\",(e,t)=>{Nc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function mp(e){return new pp({type:\"readonly\",innerType:e})}var fp=p(\"ZodTemplateLiteral\",(e,t)=>{Jc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ll(e,n,o,r)});function eg(e,t){return new fp({type:\"template_literal\",parts:e,...k.normalizeParams(t)})}var hp=p(\"ZodLazy\",(e,t)=>{Zc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function gp(e){return new hp({type:\"lazy\",getter:e})}var vp=p(\"ZodPromise\",(e,t)=>{Mc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function tg(e){return new vp({type:\"promise\",innerType:e})}var yp=p(\"ZodFunction\",(e,t)=>{Gc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kl(e,n,o,r)});function rg(e){return new yp({type:\"function\",input:Array.isArray(e?.input)?Fd(e?.input):e?.input??mn(St()),output:e?.output??St()})}var yn=p(\"ZodCustom\",(e,t)=>{Lc.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Bl(e,n,o,r)});function ng(e){let t=new B({check:\"custom\"});return t._zod.check=e,t}function og(e,t){return _l(yn,e??(()=>!0),t)}function $p(e,t={}){return kl(yn,e,t)}function wp(e,t){return xl(e,t)}var ig=Sl,ag=Il;function sg(e,t={}){let n=new yn({type:\"custom\",check:\"custom\",fn:(o)=>o instanceof e,abort:!0,...k.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=(o)=>{if(!(o.value instanceof e))o.issues.push({code:\"invalid_type\",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var cg=(...e)=>Tl({Codec:vn,Boolean:gr,String:mr},...e);function ug(e){let t=gp(()=>ki([an(e),Ed(),Od(),jd(),mn(t),Bd(an(),t)]));return t}function lg(e,t){return new dp({type:\"pipe\",in:Si(e),out:t})}var oS={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 iS(e){H({customError:e})}function aS(){return H().customError}var bp;(function(e){})(bp||(bp={}));var I={...on,...Xo,iso:lr},sS=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 cS(e,t){let n=e.$schema;if(n===\"https://json-schema.org/draft/2020-12/schema\")return\"draft-2020-12\";if(n===\"http://json-schema.org/draft-07/schema#\")return\"draft-7\";if(n===\"http://json-schema.org/draft-04/schema#\")return\"draft-4\";return t??\"draft-2020-12\"}function uS(e,t){if(!e.startsWith(\"#\"))throw Error(\"External $ref is not supported, only local refs (#/...) are allowed\");let n=e.slice(1).split(\"/\").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version===\"draft-2020-12\"?\"$defs\":\"definitions\";if(n[0]===o){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function dg(e,t){if(e.not!==void 0){if(typeof e.not===\"object\"&&Object.keys(e.not).length===0)return I.never();throw Error(\"not is not supported in Zod (except { not: {} } for never)\")}if(e.unevaluatedItems!==void 0)throw Error(\"unevaluatedItems is not supported\");if(e.unevaluatedProperties!==void 0)throw Error(\"unevaluatedProperties is not supported\");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(\"Conditional schemas (if/then/else) are not supported\");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(\"dependentSchemas and dependentRequired are not supported\");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return I.lazy(()=>{if(!t.refs.has(r))throw Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=uS(r,t),a=ee(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version===\"openapi-3.0\"&&e.nullable===!0&&r.length===1&&r[0]===null)return I.null();if(r.length===0)return I.never();if(r.length===1)return I.literal(r[0]);if(r.every((a)=>typeof a===\"string\"))return I.enum(r);let i=r.map((a)=>I.literal(a));if(i.length<2)return i[0];return I.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return I.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map((i)=>{let a={...e,type:i};return dg(a,t)});if(r.length===0)return I.never();if(r.length===1)return r[0];return I.union(r)}if(!n)return I.any();let o;switch(n){case\"string\":{let r=I.string();if(e.format){let i=e.format;if(i===\"email\")r=r.check(I.email());else if(i===\"uri\"||i===\"uri-reference\")r=r.check(I.url());else if(i===\"uuid\"||i===\"guid\")r=r.check(I.uuid());else if(i===\"date-time\")r=r.check(I.iso.datetime());else if(i===\"date\")r=r.check(I.iso.date());else if(i===\"time\")r=r.check(I.iso.time());else if(i===\"duration\")r=r.check(I.iso.duration());else if(i===\"ipv4\")r=r.check(I.ipv4());else if(i===\"ipv6\")r=r.check(I.ipv6());else if(i===\"mac\")r=r.check(I.mac());else if(i===\"cidr\")r=r.check(I.cidrv4());else if(i===\"cidr-v6\")r=r.check(I.cidrv6());else if(i===\"base64\")r=r.check(I.base64());else if(i===\"base64url\")r=r.check(I.base64url());else if(i===\"e164\")r=r.check(I.e164());else if(i===\"jwt\")r=r.check(I.jwt());else if(i===\"emoji\")r=r.check(I.emoji());else if(i===\"nanoid\")r=r.check(I.nanoid());else if(i===\"cuid\")r=r.check(I.cuid());else if(i===\"cuid2\")r=r.check(I.cuid2());else if(i===\"ulid\")r=r.check(I.ulid());else if(i===\"xid\")r=r.check(I.xid());else if(i===\"ksuid\")r=r.check(I.ksuid())}if(typeof e.minLength===\"number\")r=r.min(e.minLength);if(typeof e.maxLength===\"number\")r=r.max(e.maxLength);if(e.pattern)r=r.regex(new RegExp(e.pattern));o=r;break}case\"number\":case\"integer\":{let r=n===\"integer\"?I.number().int():I.number();if(typeof e.minimum===\"number\")r=r.min(e.minimum);if(typeof e.maximum===\"number\")r=r.max(e.maximum);if(typeof e.exclusiveMinimum===\"number\")r=r.gt(e.exclusiveMinimum);else if(e.exclusiveMinimum===!0&&typeof e.minimum===\"number\")r=r.gt(e.minimum);if(typeof e.exclusiveMaximum===\"number\")r=r.lt(e.exclusiveMaximum);else if(e.exclusiveMaximum===!0&&typeof e.maximum===\"number\")r=r.lt(e.maximum);if(typeof e.multipleOf===\"number\")r=r.multipleOf(e.multipleOf);o=r;break}case\"boolean\":{o=I.boolean();break}case\"null\":{o=I.null();break}case\"object\":{let r={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let l=ee(u,t);r[c]=a.has(c)?l:l.optional()}if(e.propertyNames){let c=ee(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties===\"object\"?ee(e.additionalProperties,t):I.any();if(Object.keys(r).length===0){o=I.record(c,u);break}let l=I.object(r).passthrough(),d=I.looseRecord(c,u);o=I.intersection(l,d);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let f of u){let m=ee(c[f],t),v=I.string().regex(new RegExp(f));l.push(I.looseRecord(v,m))}let d=[];if(Object.keys(r).length>0)d.push(I.object(r).passthrough());if(d.push(...l),d.length===0)o=I.object({}).passthrough();else if(d.length===1)o=d[0];else{let f=I.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)f=I.intersection(f,d[m]);o=f}break}let s=I.object(r);if(e.additionalProperties===!1)o=s.strict();else if(typeof e.additionalProperties===\"object\")o=s.catchall(ee(e.additionalProperties,t));else o=s.passthrough();break}case\"array\":{let{prefixItems:r,items:i}=e;if(r&&Array.isArray(r)){let a=r.map((c)=>ee(c,t)),s=i&&typeof i===\"object\"&&!Array.isArray(i)?ee(i,t):void 0;if(s)o=I.tuple(a).rest(s);else o=I.tuple(a);if(typeof e.minItems===\"number\")o=o.check(I.minLength(e.minItems));if(typeof e.maxItems===\"number\")o=o.check(I.maxLength(e.maxItems))}else if(Array.isArray(i)){let a=i.map((c)=>ee(c,t)),s=e.additionalItems&&typeof e.additionalItems===\"object\"?ee(e.additionalItems,t):void 0;if(s)o=I.tuple(a).rest(s);else o=I.tuple(a);if(typeof e.minItems===\"number\")o=o.check(I.minLength(e.minItems));if(typeof e.maxItems===\"number\")o=o.check(I.maxLength(e.maxItems))}else if(i!==void 0){let a=ee(i,t),s=I.array(a);if(typeof e.minItems===\"number\")s=s.min(e.minItems);if(typeof e.maxItems===\"number\")s=s.max(e.maxItems);o=s}else o=I.array(I.any());break}default:throw Error(`Unsupported type: ${n}`)}return o}function ee(e,t){if(typeof e===\"boolean\")return e?I.any():I.never();let n=dg(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map((u)=>ee(u,t)),c=I.union(s);n=o?I.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map((u)=>ee(u,t)),c=I.xor(s);n=o?I.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:I.any();else{let s=o?n:ee(e.allOf[0],t),c=o?0:1;for(let u=c;u<e.allOf.length;u++)s=I.intersection(s,ee(e.allOf[u],t));n=s}if(e.nullable===!0&&t.version===\"openapi-3.0\")n=I.nullable(n);if(e.readOnly===!0)n=I.readonly(n);if(e.default!==void 0)n=n.default(e.default);let r={},i=[\"$id\",\"id\",\"$comment\",\"$anchor\",\"$vocabulary\",\"$dynamicRef\",\"$dynamicAnchor\"];for(let s of i)if(s in e)r[s]=e[s];let a=[\"contentEncoding\",\"contentMediaType\",\"contentSchema\"];for(let s of a)if(s in e)r[s]=e[s];for(let s of Object.keys(e))if(!sS.has(s))r[s]=e[s];if(Object.keys(r).length>0)t.registry.add(n,r);if(e.description)n=n.describe(e.description);return n}function pg(e,t){if(typeof e===\"boolean\")return e?I.any():I.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(\"fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas\")}let o=cS(n,t?.defaultTarget),r=n.$defs||n.definitions||{},i={version:o,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Y};return ee(n,i)}var _p={};Ne(_p,{bigint:()=>mS,boolean:()=>pS,date:()=>fS,number:()=>dS,string:()=>lS});function lS(e){return Lu(mr,e)}function dS(e){return Yu(hr,e)}function pS(e){return il(gr,e)}function mS(e){return sl(vr,e)}function fS(e){return yl(pn,e)}H(Xr());class mg extends Error{code=\"site_session_path_unsupported\";constructor(){super(\"Unsupported Site session API path\");this.name=\"SiteSessionPathError\"}}function fg(e,t,n=\"GET\",o){let r=e.split(\"?\")[0];if(!(r===\"/v1/workspaces/site-host\"||r.startsWith(\"/v1/workspaces/site-host/\"))&&r!==\"/v1/config/client\"||/[%\\\\#\\u0000-\\u0020\\u007f]/u.test(r)||r.split(\"/\").some((u)=>u===\".\"||u===\"..\"))throw new mg;let s=e.replace(\"/workspaces/site-host\",`/workspaces/${encodeURIComponent(t)}`),c=new URL(s,\"http://site.invalid\");if(c.searchParams.get(\"originSiteId\")===\"current\"&&t!==\"site-host\")return c.searchParams.set(\"originSiteId\",o??\"00000000-0000-0000-0000-000000000000\"),c.pathname+c.search;return s}function hg(e){let t=new Headers(e),n=(t.get(\"connection\")??\"\").split(\",\").map((o)=>o.trim().toLowerCase());for(let o of[...t.keys()])if(n.includes(o)||/^(authorization|proxy-authorization|cookie|cookie2|host|origin|referer|connection|keep-alive|proxy-connection|te|trailer|transfer-encoding|upgrade|content-length|accept-encoding|forwarded|x-api-key)$/i.test(o)||/^(sec-|x-forwarded-|x-opengeni-(access-key|external-actor|site-|managed-actor))/i.test(o))t.delete(o);return t}var kp=1,vg=1,yg=4096,$g=16777216,hS=8,gS=1024,xp=1;var _e=g.string().regex(/^[0-9a-f]{64}$/u),vS=g.string().min(1).max(256).regex(/^[A-Za-z0-9_-]+$/u),wg=g.string().min(1).max(512).regex(/^[^\\u0000-\\u001f\\u007f]+$/u),yS=g.string().min(1).max(128).regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/u).refine((e)=>![\"__proto__\",\"prototype\",\"constructor\"].includes(e),{message:\"unsafe Codemode namespace segment\"}),Tt=g.record(g.string().max(512),g.json()),$n=g.object({serverId:vS,toolName:wg}).strict(),Sp=$n,bg=g.object({src:g.string().min(1).max(8192),mimeType:g.string().min(1).max(128).optional(),sizes:g.array(g.string().min(1).max(64)).max(16).optional(),theme:g.enum([\"light\",\"dark\"]).optional()}).strict(),$S=g.object({title:g.string().max(512).optional(),readOnlyHint:g.boolean().optional(),destructiveHint:g.boolean().optional(),idempotentHint:g.boolean().optional(),openWorldHint:g.boolean().optional()}).loose(),gg=Tt,_g=g.object({identity:$n,modelName:wg,codemodePath:g.array(yS).min(2).max(hS),title:g.string().min(1).max(512).optional(),description:g.string().max(32768).optional(),inputSchema:gg,outputSchema:gg.optional(),annotations:$S.optional(),icons:g.array(bg).max(16).optional(),source:g.enum([\"opengeni\",\"files\",\"docs\",\"mcp\",\"codex_apps\",\"interaction\"]),approval:g.enum([\"none\",\"human\",\"policy\"])}).strict(),Ip=_g,wS=g.object({version:g.literal(vg),accountId:g.string().uuid(),workspaceId:g.string().uuid(),generation:g.number().int().positive(),digest:_e,createdAt:g.string().datetime({offset:!0}),entries:g.array(Ip).max(yg)}).strict().superRefine((e,t)=>{let n=new Set,o=new Set,r=new Set;for(let[i,a]of e.entries.entries()){let s=`${a.identity.serverId}\\x00${a.identity.toolName}`,c=a.codemodePath.join(\".\");if(n.has(s))t.addIssue({code:\"custom\",path:[\"entries\",i,\"identity\"],message:\"duplicate tool identity\"});if(o.has(a.modelName))t.addIssue({code:\"custom\",path:[\"entries\",i,\"modelName\"],message:\"duplicate model tool name\"});if(r.has(c))t.addIssue({code:\"custom\",path:[\"entries\",i,\"codemodePath\"],message:\"duplicate tool path\"});n.add(s),o.add(a.modelName),r.add(c)}}),ID=g.object({kind:g.enum([\"model\",\"codemode\",\"http\",\"mcp\",\"browser\"]),subjectId:g.string().min(1).max(1024)}).strict(),Tp=g.object({version:g.literal(kp),accountId:g.string().uuid(),workspaceId:g.string().uuid(),sessionId:g.string().uuid(),turnId:g.string().uuid(),attemptId:g.string().uuid(),executionGeneration:g.number().int().positive(),generation:g.number().int().positive(),digest:_e,createdAt:g.string().datetime({offset:!0}),entries:g.array(_g).max(yg)}).strict().superRefine((e,t)=>{let n=new Set,o=new Set,r=new Set;for(let[i,a]of e.entries.entries()){let s=`${a.identity.serverId}\\x00${a.identity.toolName}`,c=a.codemodePath.join(\".\");if(n.has(s))t.addIssue({code:\"custom\",path:[\"entries\",i,\"identity\"],message:\"duplicate tool identity\"});if(o.has(a.modelName))t.addIssue({code:\"custom\",path:[\"entries\",i,\"modelName\"],message:\"duplicate model tool name\"});if(r.has(c))t.addIssue({code:\"custom\",path:[\"entries\",i,\"codemodePath\"],message:\"duplicate Codemode tool path\"});n.add(s),o.add(a.modelName),r.add(c)}}),Pi=g.object({kind:g.enum([\"model\",\"codemode\"]),subjectId:g.string().min(1).max(1024)}).strict(),Pp=g.object({operationId:g.string().uuid(),catalogDigest:_e,identity:$n,arguments:Tt,caller:Pi}).strict(),wn=g.record(g.string().max(256),g.json()).optional(),nt=g.record(g.string().max(512),g.json()).optional(),bS=g.object({type:g.literal(\"text\"),text:g.string(),annotations:wn,_meta:nt}).loose(),_S=g.object({type:g.literal(\"image\"),data:g.string(),mimeType:g.string().min(1).max(128),annotations:wn,_meta:nt}).loose(),kS=g.object({type:g.literal(\"audio\"),data:g.string(),mimeType:g.string().min(1).max(128),annotations:wn,_meta:nt}).loose(),xS=g.object({type:g.literal(\"resource_link\"),name:g.string().min(1).max(1024),title:g.string().max(1024).optional(),uri:g.string().min(1).max(16384),description:g.string().max(32768).optional(),mimeType:g.string().max(128).optional(),size:g.number().int().nonnegative().optional(),icons:g.array(bg).max(16).optional(),annotations:wn,_meta:nt}).loose(),SS=g.object({uri:g.string().min(1).max(16384),mimeType:g.string().max(128).optional(),text:g.string(),_meta:nt}).loose(),IS=g.object({uri:g.string().min(1).max(16384),mimeType:g.string().max(128).optional(),blob:g.string(),_meta:nt}).loose(),TS=g.object({type:g.literal(\"resource\"),resource:g.union([SS,IS]),annotations:wn,_meta:nt}).loose(),PS=g.discriminatedUnion(\"type\",[bS,_S,kS,xS,TS]),Ci=g.object({content:g.array(PS).max(gS),structuredContent:Tt.optional(),isError:g.boolean().optional(),_meta:nt}).loose(),Cp=Ci,kg=g.object({operationId:g.string().uuid().optional(),catalogDigest:_e,identity:Sp,arguments:Tt,siteArtifactId:g.string().uuid().optional(),siteVersionId:g.string().uuid().optional(),approvalToken:g.string().regex(/^ogta_[A-Za-z0-9_-]{43}$/u).optional()}).strict().superRefine(CS),TD=g.object({operationId:g.string().uuid(),catalogDigest:_e,identity:Sp,arguments:Tt}).strict(),PD=g.object({operationId:g.string().uuid(),catalogDigest:_e,identity:Sp,approvalToken:g.string().regex(/^ogta_[A-Za-z0-9_-]{43}$/u),expiresAt:g.string().datetime({offset:!0})}).strict(),CD=g.object({operationId:g.string().uuid(),catalogDigest:_e,result:Cp}).strict(),ED=g.object({catalogDigest:_e,moduleSpecifier:g.string().min(1).max(512),source:g.string().max(16777216)}).strict();function CS(e,t){if(e.siteArtifactId===void 0===(e.siteVersionId===void 0))return;t.addIssue({code:\"custom\",message:\"siteArtifactId and siteVersionId must be provided together\",path:[e.siteArtifactId===void 0?\"siteArtifactId\":\"siteVersionId\"]})}var ES=g.enum([\"queued\",\"running\",\"completed\",\"failed\",\"outcome_unknown\",\"cancelled\"]),Ep=g.object({version:g.literal(xp),operationId:g.string().uuid(),accountId:g.string().uuid(),workspaceId:g.string().uuid(),sessionId:g.string().uuid(),turnId:g.string().uuid(),attemptId:g.string().uuid(),executionGeneration:g.number().int().positive(),catalogDigest:_e,requestDigest:_e,identity:$n,arguments:Tt,caller:Pi.refine((e)=>e.kind===\"codemode\",{message:\"Codemode operation caller must be codemode\"}),state:ES,result:Ci.nullable(),errorCode:g.string().min(1).max(128).nullable(),errorMessage:g.string().min(1).max(4096).nullable(),createdAt:g.string().datetime({offset:!0}),claimedAt:g.string().datetime({offset:!0}).nullable(),executionStartedAt:g.string().datetime({offset:!0}).nullable(),completedAt:g.string().datetime({offset:!0}).nullable(),updatedAt:g.string().datetime({offset:!0})}).strict(),OD=g.object({operationId:g.string().uuid(),catalogDigest:_e,identity:$n,arguments:Tt}).strict(),xg=g.object({operation:Ep,dispatch:g.enum([\"accepted\",\"already_running\",\"terminal\",\"unavailable\",\"rejected\"])}).strict(),Op=g.object({version:g.literal(xp),operationId:g.string().uuid(),catalogDigest:_e}).strict(),zp=g.object({version:g.literal(xp),operationId:g.string().uuid(),status:g.enum([\"accepted\",\"already_running\",\"terminal\",\"unavailable\",\"rejected\"])}).strict();var OS=\"tool_result_spilled\",zS=\"application/json\";var AS=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,RS=g.object({type:g.literal(OS),sandboxPath:g.string().min(1).max(4096).nullable(),fileId:g.string().regex(AS),byteSize:g.number().int().positive().safe(),mediaType:g.literal(zS)}).strict();function Sg(e){return RS.safeParse(e).success}var Nb=xa(Rw(),1),Jb=xa($b(),1),Gb=xa(Ab(),1);import{createHash as XA,randomUUID as YA}from\"node:crypto\";import{createHash as GA}from\"node:crypto\";class ha extends Error{code=\"catalog_stale\";constructor(){super(\"Tool catalog is stale for the active gateway\");this.name=\"ToolGatewayCatalogStaleError\"}}class Fe extends Error{code=\"tool_not_found\";constructor(){super(\"Tool is not present in the active gateway catalog\");this.name=\"ToolGatewayToolNotFoundError\"}}class Ln extends Error{code=\"approval_required\";constructor(){super(\"Tool requires human approval\");this.name=\"ToolGatewayApprovalRequiredError\"}}class Zm extends Error{code=\"catalog_integrity_failed\";constructor(){super(\"Tool catalog digest does not match its authoritative content\");this.name=\"ToolGatewayCatalogIntegrityError\"}}class Lm extends Error{code=\"catalog_too_large\";constructor(){super(\"Tool catalog exceeds the maximum serialized size\");this.name=\"ToolGatewayCatalogTooLargeError\"}}class dt extends Error{code=\"tool_path_collision\";constructor(e,t){super(t===\"extends_leaf\"?`Tool path ${e.join(\".\")} extends a tool leaf`:`Tool path ${e.join(\".\")} collides`);this.name=\"ToolGatewayPathCollisionError\"}}class ga extends Error{code=\"invalid_tool_arguments\";constructor(){super(\"Tool arguments do not match the gateway catalog input schema\");this.name=\"ToolGatewayInputValidationError\"}}class va extends Error{code=\"invalid_tool_result\";constructor(){super(\"Tool result does not match the gateway catalog output schema\");this.name=\"ToolGatewayOutputValidationError\"}}function pt(e){return GA(\"sha256\").update(JSON.stringify(Vm(e)),\"utf8\").digest(\"hex\")}function mt(e,t){return e<t?-1:e>t?1:0}function Vm(e){if(Array.isArray(e))return e.map(Vm);if(e!==null&&typeof e===\"object\")return Object.fromEntries(Object.entries(e).sort(([t],[n])=>mt(t,n)).map(([t,n])=>[t,Vm(n)]));return e}function $a(e,t){let n=jb();for(let o of e.entries)MA(n,o);return[`// Generated by ${t.generatedBy}. Do not edit.`,`// ${t.catalogDigestLabel??\"Tool catalog digest\"}: ${e.digest}`,`import type { ${t.callOptionsType}, ${t.fallbackResultType} } from ${JSON.stringify(t.moduleSpecifier)};`,\"\",`declare module ${JSON.stringify(t.moduleSpecifier)} {`,` interface ${t.interfaceName} {`,...Ub(n,4,t),\" }\",\"}\",\"\",\"export {};\",\"\"].join(`\n`)}function Fm(e){return qe(e,e,new Set,0)}function jb(){return{children:new Map,entry:null}}function MA(e,t){let n=e;for(let[o,r]of t.codemodePath.entries()){if(n.entry)throw new dt(t.codemodePath,\"extends_leaf\");let i=n.children.get(r);if(!i)i=jb(),n.children.set(r,i);if(n=i,o===t.codemodePath.length-1){if(n.entry||n.children.size>0)throw new dt(t.codemodePath,\"collision\");n.entry=t}}}function Ub(e,t,n){let o=[];for(let[r,i]of[...e.children].sort(([a],[s])=>mt(a,s))){if(i.entry){let a=i.entry,s=Fm(a.inputSchema),c=a.outputSchema?Fm(a.outputSchema):n.fallbackResultType,u=WA(a.description??a.title);if(u)o.push(...HA(u,t));o.push(`${qt(t)}readonly ${r}: (`),o.push(`${qt(t+2)}argumentsValue${ZA(a.inputSchema)?\"?\":\"\"}: ${s},`),o.push(`${qt(t+2)}options?: ${n.callOptionsType},`),o.push(`${qt(t)}) => Promise<${c}>;`);continue}o.push(`${qt(t)}readonly ${r}: {`),o.push(...Ub(i,t+2,n)),o.push(`${qt(t)}};`)}return o}function ZA(e){if(!Nt(e))return!1;return(Array.isArray(e.required)?e.required.filter((n)=>typeof n===\"string\"):[]).length===0&&(e.type===\"object\"||Nt(e.properties))}function qe(e,t,n,o){if(o>48||e===!0)return\"unknown\";if(e===!1)return\"never\";if(!Nt(e))return\"unknown\";if(typeof e.$ref===\"string\"){if(!e.$ref.startsWith(\"#/\")||n.has(e.$ref))return\"unknown\";let s=KA(t,e.$ref);if(s===void 0)return\"unknown\";let c=new Set(n);return c.add(e.$ref),qe(s,t,c,o+1)}if(Object.hasOwn(e,\"const\"))return ya(e.const);if(Array.isArray(e.enum))return Vn(e.enum.map(ya));let r=[];if(Array.isArray(e.oneOf))r.push(Vn(e.oneOf.map((s)=>qe(s,t,n,o+1))));if(Array.isArray(e.anyOf))r.push(Vn(e.anyOf.map((s)=>qe(s,t,n,o+1))));if(Array.isArray(e.allOf))r.push(Rb(e.allOf.map((s)=>qe(s,t,n,o+1))));if(r.length>0){let s=Rb(r);return e.nullable===!0?Vn([s,\"null\"]):s}let a=(Array.isArray(e.type)?e.type.filter((s)=>typeof s===\"string\"):typeof e.type===\"string\"?[e.type]:BA(e)).map((s)=>LA(s,e,t,n,o+1));if(e.nullable===!0)a.push(\"null\");return Vn(a.length>0?a:[\"unknown\"])}function LA(e,t,n,o,r){if(e===\"null\"||e===\"boolean\"||e===\"string\")return e;if(e===\"integer\"||e===\"number\")return\"number\";if(e===\"array\")return VA(t,n,o,r);if(e!==\"object\")return\"unknown\";return FA(t,n,o,r)}function VA(e,t,n,o){if(Array.isArray(e.prefixItems)){let i=e.prefixItems.map((s)=>qe(s,t,n,o+1));if(e.items===!1)return`readonly [${i.join(\", \")}]`;let a=e.items===void 0||e.items===!0?\"unknown\":qe(e.items,t,n,o+1);return`readonly [${i.join(\", \")}${i.length>0?\", \":\"\"}...${a}[]]`}return`readonly (${e.items===void 0||e.items===!0?\"unknown\":qe(e.items,t,n,o+1)})[]`}function FA(e,t,n,o){let r=Nt(e.properties)?e.properties:{},i=new Set(Array.isArray(e.required)?e.required.filter((c)=>typeof c===\"string\"):[]),a=Object.entries(r).sort(([c],[u])=>mt(c,u)),s=a.map(([c,u])=>`readonly ${Bm(c)}${i.has(c)?\"\":\"?\"}: ${qe(u,t,n,o+1)}`);for(let c of[...i].filter((u)=>!Object.hasOwn(r,u)).sort(mt))s.push(`readonly ${Bm(c)}: unknown`);if(e.additionalProperties!==!1){if(a.length===0&&e.additionalProperties!==void 0&&e.additionalProperties!==!0)return`Readonly<Record<string, ${qe(e.additionalProperties,t,n,o+1)}>>`;s.push(\"readonly [key: string]: unknown\")}return s.length===0?\"Record<string, never>\":`{ ${s.join(\"; \")} }`}function BA(e){if(Nt(e.properties)||Object.hasOwn(e,\"additionalProperties\"))return[\"object\"];if(Object.hasOwn(e,\"items\")||Array.isArray(e.prefixItems))return[\"array\"];return[]}function KA(e,t){let n=e;for(let o of t.slice(2).split(\"/\")){if(!Nt(n))return;let r=o.replace(/~1/gu,\"/\").replace(/~0/gu,\"~\");if(!Object.hasOwn(n,r))return;n=n[r]}return n}function ya(e){if(e===null||typeof e===\"string\"||typeof e===\"number\"||typeof e===\"boolean\")return JSON.stringify(e);if(Array.isArray(e))return`readonly [${e.map(ya).join(\", \")}]`;if(Nt(e))return`{ ${Object.entries(e).sort(([t],[n])=>mt(t,n)).map(([t,n])=>`readonly ${Bm(t)}: ${ya(n)}`).join(\"; \")} }`;return\"unknown\"}function Vn(e){let t=[...new Set(e)];if(t.includes(\"unknown\"))return\"unknown\";if(t.length===0)return\"never\";return t.length===1?t[0]:t.map(Db).join(\" | \")}function Rb(e){let t=[...new Set(e.filter((n)=>n!==\"unknown\"))];return t.length===0?\"unknown\":t.length===1?t[0]:t.map(Db).join(\" & \")}function Db(e){return/[|&]/u.test(e)?`(${e})`:e}function Bm(e){return/^[A-Za-z_$][A-Za-z0-9_$]*$/u.test(e)?e:JSON.stringify(e)}function WA(e){if(!e)return null;let t=e.replace(/\\s+/gu,\" \").trim().replace(/\\*\\//gu,\"*\\\\/\");if(!t)return null;return t.length<=512?t:`${t.slice(0,509)}...`}function HA(e,t){return[`${qt(t)}/** ${e} */`]}function qt(e){return\" \".repeat(e)}function Nt(e){return e!==null&&typeof e===\"object\"&&!Array.isArray(e)}class Mb{definitions;entries;constructor(e){this.definitions=e;this.entries=e.map(({entry:t})=>t)}create(e){return new Zb(e.catalogDigest,this.definitions,e.authorize,e.requireApproval,e.confirmModelApproval)}}class Zb{catalogDigest;authorize;requireApproval;confirmModelApproval;byIdentity=new Map;byModelName=new Map;constructor(e,t,n,o,r){this.catalogDigest=e;this.authorize=n;this.requireApproval=o;this.confirmModelApproval=r;for(let i of t)this.byIdentity.set(Km(i.entry.identity),i),this.byModelName.set(i.entry.modelName,i)}async call(e,t={}){return await(await this.prepareCallWithModelApproval(e,t,!1)).execute()}async prepareCall(e,t={}){return await this.prepareCallWithModelApproval(e,t,!1)}async prepareCallWithModelApproval(e,t,n){let o=kg.parse({operationId:e.operationId,catalogDigest:e.catalogDigest,identity:e.identity,arguments:e.arguments}),r=o.operationId??e.operationId,i=e.caller;if(o.catalogDigest!==this.catalogDigest)throw new ha;let a=this.byIdentity.get(Km(o.identity));if(!a)throw new Fe;if(this.requireApproval?.(a.entry,i,t))throw new Ln;if(!a.validateInput(o.arguments))throw new ga;if(i.kind===\"model\"&&a.entry.approval===\"human\"&&!n)throw new Ln;let s={operationId:r,catalogDigest:o.catalogDigest,identity:o.identity,arguments:o.arguments,caller:i};if(await this.authorize?.({call:s,entry:a.entry}),a.entry.approval===\"human\")await a.preflightCall?.({call:s,entry:a.entry,context:t});let c=await a.lifecycle?.prepare({call:s,entry:a.entry,context:t});return{call:s,entry:a.entry,approvalAuthorityDigest:a.approvalAuthorityDigest??pt({version:1,catalogDigest:this.catalogDigest,identity:a.entry.identity}),execute:async()=>{await c?.begin?.();let u;try{if(u=Cp.parse(await a.execute(o.arguments,{operationId:r,caller:i,...t.sourceCallId===void 0?{}:{sourceCallId:t.sourceCallId},...t.transportMeta===void 0?{}:{transportMeta:t.transportMeta},...t.signal===void 0?{}:{signal:t.signal}})),!u.isError&&a.validateOutput){if(!(u.structuredContent!==void 0&&a.validateOutput(u.structuredContent))&&!Sg(u.structuredContent))throw new va}}catch(l){throw await c?.complete?.({outcome:\"failed\",error:l}),l}return await c?.complete?.({outcome:\"completed\",result:u}),u}}}async callModel(e){let t=this.byModelName.get(e.modelName);if(!t)throw new Fe;let n={operationId:e.operationId??YA(),catalogDigest:this.catalogDigest,identity:t.entry.identity,arguments:e.arguments,caller:{kind:\"model\",subjectId:e.subjectId}},o={...e.sourceCallId===void 0?{}:{sourceCallId:e.sourceCallId},...e.transportMeta===void 0?{}:{transportMeta:e.transportMeta},...e.signal===void 0?{}:{signal:e.signal}},r=t.entry.approval===\"human\"&&this.confirmModelApproval?.({entry:t.entry,modelName:e.modelName,subjectId:e.subjectId})===!0;return await(await this.prepareCallWithModelApproval(n,o,r)).execute()}}function Lb(e){let t=tR(e),n=eR(),o=e.map((r,i)=>{let{execute:a,approvalAuthorityDigest:s,requiresProviderPreflight:c,preflightCall:u,lifecycle:l,codemodePath:d,...f}=r;if(s!==void 0&&!/^[0-9a-f]{64}$/u.test(s))throw Error(\"Tool gateway approval authority digest must be lowercase SHA-256 hex\");let m=Ip.parse({...f,codemodePath:t[i]});return{entry:m,execute:a,approvalAuthorityDigest:s,preflightCall:u,lifecycle:l,validateInput:qb(n,m.inputSchema),validateOutput:m.outputSchema?qb(n,m.outputSchema):null}});return new Mb(o)}var QA=512,Jt=new Map;function eR(){let e={allErrors:!1,coerceTypes:!1,strict:!1,useDefaults:!1,validateFormats:!1};return{draft7:new Nb.default(e),draft2019:new Jb.default(e),draft2020:new Gb.default(e)}}function qb(e,t){let n=typeof t.$schema===\"string\"?t.$schema:\"\",o=n.includes(\"2020-12\")?\"2020-12\":n.includes(\"2019-09\")?\"2019-09\":\"draft7\",r=`${o}:${pt(t)}`,i=Jt.get(r);if(i)return Jt.delete(r),Jt.set(r,i),i;let a=o===\"2020-12\"?e.draft2020.compile(t):o===\"2019-09\"?e.draft2019.compile(t):e.draft7.compile(t);while(Jt.size>=QA){let s=Jt.keys().next().value;if(s===void 0)break;Jt.delete(s)}return Jt.set(r,a),a}function tR(e){let t=e.map((r)=>r.codemodePath?.length?[...r.codemodePath]:[r.identity.serverId,r.identity.toolName]),o=t.map((r)=>r.map(oR)).map((r,i)=>{if(t[i].every((u,l)=>u===r[l]))return r;let s=`_${iR(e[i].identity)}`,c=r.at(-1);return[...r.slice(0,-1),`${c.slice(0,128-s.length)}${s}`]});return rR(o),o}function rR(e){let t={children:new Map,leaf:!1},n=[...e].sort(nR);for(let o of n){let r=t;for(let[i,a]of o.entries()){if(r.leaf)throw new dt(o,\"extends_leaf\");let s=r.children.get(a);if(!s)s={children:new Map,leaf:!1},r.children.set(a,s);if(r=s,i===o.length-1){if(r.leaf||r.children.size>0)throw new dt(o,\"collision\");r.leaf=!0}}}}function nR(e,t){let n=Math.min(e.length,t.length);for(let o=0;o<n;o+=1){let r=mt(e[o],t[o]);if(r!==0)return r}return e.length-t.length}function oR(e){let t=e.replace(/[^A-Za-z0-9_$]/gu,\"_\");if(!/^[A-Za-z_$]/u.test(t))t=`_${t}`;if([\"__proto__\",\"prototype\",\"constructor\"].includes(t))t=`_${t}`;return t.slice(0,128)||\"_\"}function iR(e){return XA(\"sha256\").update(Km(e),\"utf8\").digest(\"hex\").slice(0,10)}function Km(e){return`${e.serverId}\\x00${e.toolName}`}import{readFile as aR}from\"node:fs/promises\";var zr={url:\"OPENGENI_CODEMODE_URL\",token:\"OPENGENI_CODEMODE_TOKEN\",tokenFile:\"OPENGENI_CODEMODE_TOKEN_FILE\"},Wm=null;function ft(e=process.env){let t=Hm(e,zr.url),n=e[zr.token]!==void 0,o=n?void 0:Hm(e,zr.tokenFile),r=`${t}\\x00${n?\"direct\":`file:${o}`}`;if(e===process.env&&Wm?.key===r)return Wm.client;let i=new Xm({baseUrl:t,token:n?async()=>Hm(e,zr.token):async()=>await cR(o)});if(e===process.env)Wm={key:r,client:i};return i}function sR(e=()=>ft()){let t=(n)=>new Proxy(async(o={},r={})=>await(await e()).callPathValue(n,o,r),{get(o,r){if(r===\"then\")return;if(r===Symbol.toStringTag)return\"CodemodeTool\";if(typeof r!==\"string\")return;return t([...n,r])},set(){return!1}});return new Proxy(Object.create(null),{get(n,o){if(o===\"then\")return;if(o===Symbol.toStringTag)return\"CodemodeTools\";if(typeof o!==\"string\")return;return t([o])},set(){return!1}})}var O4=sR();async function cR(e){let t;try{t=(await aR(e,\"utf8\")).trim()}catch{throw Error(`${zr.tokenFile} is not readable`)}if(!t)throw Error(`${zr.tokenFile} is empty`);return t}function Hm(e,t){let n=e[t]?.trim();if(!n)throw Error(`${t} is required`);return n}import{randomBytes as Fb}from\"node:crypto\";class Ym extends Error{result;code;retryable;constructor(e){let t=uR(e);super(t.message);this.result=e;this.name=\"CodemodeToolExecutionError\",this.code=t.code,this.retryable=t.retryable}}function Vb(e=()=>ft()){return typeof e===\"function\"?e:()=>e}async function E(e,t,n,o){let r=await(await e()).callPath(t,n,o);if(r.isError)throw new Ym(r);if(!r.structuredContent)throw Error(`Codemode tool ${t.join(\".\")} returned no structured content`);return r.structuredContent}function uR(e){let n=e.structuredContent?.error;return{code:typeof n?.code===\"string\"?n.code:\"tool_error\",message:typeof n?.message===\"string\"?n.message:\"Codemode tool failed\",retryable:n?.retryable===!0}}var ht={list:[\"artifacts\",\"list\"],create:[\"artifacts\",\"create\"],import:[\"artifacts\",\"import\"],get:[\"artifacts\",\"get\"],inspect:[\"artifacts\",\"inspect\"],apply:[\"artifacts\",\"apply\"],export:[\"artifacts\",\"export\"],exportStatus:[\"artifacts\",\"exportStatus\"]},lR=Object.freeze({stable:fR,document:hR});class Qm{client;ids=lR;constructor(e){this.client=e}async list(e={},t={}){return(await E(this.client,ht.list,e,t)).artifacts}async create(e,t,n={}){let o=await E(this.client,ht.create,{modality:e,title:t},n);return new Fn(this.client,o.id,o)}async import(e,t,n,o={}){let r=await E(this.client,ht.import,{fileId:e,modality:t,title:n},o);return new Fn(this.client,r.id,r)}use(e){return typeof e===\"string\"?new Fn(this.client,e):new Fn(this.client,e.id,e)}}var dR=Object.freeze({paragraph:\"p\",table:\"dt\",\"page-break\":\"pb\",section:\"sec\",header:\"hdr\",footer:\"ftr\",comment:\"dc\",\"tracked-change\":\"chg\"}),pR=0xffffffffffffffffn,mR=BigInt(Number.MAX_SAFE_INTEGER)-1n;function fR(){let e=Fb(16);if(e.subarray(0,8).every((t)=>t===0))e[0]=1;if(e.subarray(8,16).every((t)=>t===0))e[8]=1;return e.toString(\"hex\")}function hR(e,t){let n=gR(t),o=Fb(7);o[0]=(o[0]??0)&31;let r=0n;for(let i of o)r=r<<8n|BigInt(i);if(r===0n)r=1n;if(r>mR)throw Error(\"Generated document id counter exceeds the canonical limit\");return`${dR[e]}/${n.toString(16).padStart(16,\"0\")}${r.toString(16).padStart(16,\"0\")}`}function gR(e){if(typeof e===\"number\"&&(!Number.isSafeInteger(e)||e<0)||typeof e===\"string\"&&!/^(?:0|[1-9][0-9]*)$/u.test(e))throw TypeError(\"Document id namespace must be an unsigned decimal integer\");let t=BigInt(e);if(t<0n||t>pR)throw RangeError(\"Document id namespace is outside the uint64 range\");return t}class Fn{client;id;metadata;constructor(e,t,n=null){this.client=e;this.id=t;this.metadata=n}async get(e={}){let t=await E(this.client,ht.get,{artifactId:this.id},e);return this.metadata=t,t}async inspect(e,t={}){let n=(await this.currentMetadata(t)).modality,o=await E(this.client,ht.inspect,{artifactId:this.id,modality:n,request:e},t);return this.metadata=o.artifact,o}async apply(e,t={}){let n=await this.currentMetadata(t),o=await E(this.client,ht.apply,{artifactId:this.id,modality:n.modality,expectedHeadSequence:n.headSequence,expectedStateHash:n.stateHash,commands:e},t);return this.metadata=o.artifact,o}async export(e,t={},n={}){let o=await E(this.client,ht.export,{artifactId:this.id,format:e,options:t},n);return this.metadata=o.artifact,new Bb(this.client,o.artifact.id,o.versionId,o.jobId,o.sourceHeadSequence,o.sourceStateHash)}async currentMetadata(e){return this.metadata??await this.get(e)}}class Bb{client;artifactId;versionId;jobId;sourceHeadSequence;sourceStateHash;constructor(e,t,n,o,r,i){this.client=e;this.artifactId=t;this.versionId=n;this.jobId=o;this.sourceHeadSequence=r;this.sourceStateHash=i}async status(e={}){return await E(this.client,ht.exportStatus,{artifactId:this.artifactId,versionId:this.versionId,jobId:this.jobId},e)}}var q={discover:[\"interaction\",\"discover\"],browserOpen:[\"interaction\",\"browser\",\"open\"],browserTabs:[\"interaction\",\"browser\",\"tabs\"],browserObserve:[\"interaction\",\"browser\",\"observe\"],browserAct:[\"interaction\",\"browser\",\"act\"],browserClipboard:[\"interaction\",\"browser\",\"clipboard\"],browserDebug:[\"interaction\",\"browser\",\"debug\"],browserAuth:[\"interaction\",\"browser\",\"auth\"],requestHuman:[\"interaction\",\"requestHuman\"],browserIdentity:[\"interaction\",\"browser\",\"identity\"],browserPublish:[\"interaction\",\"browser\",\"publish\"],browserLifecycle:[\"interaction\",\"browser\",\"lifecycle\"],computerOpen:[\"interaction\",\"computer\",\"open\"],computerTargets:[\"interaction\",\"computer\",\"targets\"],computerObserve:[\"interaction\",\"computer\",\"observe\"],computerClipboard:[\"interaction\",\"computer\",\"clipboard\"],computerAct:[\"interaction\",\"computer\",\"act\"],computerLifecycle:[\"interaction\",\"computer\",\"lifecycle\"]};class Kb{browsers;computers;artifacts;auth;constructor(e=()=>ft()){let t=Vb(e);this.browsers=new Wb(t),this.computers=new r_(t),this.artifacts=new Qm(t),this.auth=new e_(t)}async discover(e={},t={}){return await E(this.browsers.client,q.discover,e,t)}async requestHuman(e,t={}){return await E(this.browsers.client,q.requestHuman,e,t)}}class Wb{client;identities;constructor(e){this.client=e;this.identities=new Hb(e)}async list(e={},t={}){return(await E(this.client,q.discover,e,t)).browsers}async open(e={},t={}){let n=await E(this.client,q.browserOpen,e,t);return new ef(this.client,n.session.id)}use(e){return new ef(this.client,e)}}class Hb{client;constructor(e){this.client=e}async list(e={},t={}){return(await E(this.client,q.browserIdentity,{operation:\"list\",...e},t)).result}async get(e,t={}){return(await E(this.client,q.browserIdentity,{operation:\"get\",identityId:e},t)).result}async create(e,t={}){return(await E(this.client,q.browserIdentity,{operation:\"create\",name:e},t)).result}async revisions(e,t={}){return(await E(this.client,q.browserIdentity,{operation:\"revisions\",identityId:e},t)).result}async update(e,t,n={}){return(await E(this.client,q.browserIdentity,{operation:\"update\",identityId:e,...t},n)).result}}class ef{client;id;tabs;auth;clipboard;constructor(e,t){this.client=e;this.id=t;this.tabs=new Yb(e,t),this.auth=new t_(e,t),this.clipboard=new Xb(e,t,this.tabs)}async refresh(e={}){return(await E(this.client,q.browserOpen,{browserSessionId:this.id},e)).session}async observe(e,t={}){return await this.tabs.use(await this.tabs.resolveId(e,t)).observe(t)}async act(e,t={},n={}){let o=await this.tabs.resolveId(t.targetId,n);return await this.tabs.use(o).act(e,t,n)}async diagnostics(e,t={},n={}){return await E(this.client,q.browserDebug,{browserSessionId:this.id,targetId:await this.tabs.resolveId(e,n),...t},n)}async publish(e,t={}){return await E(this.client,q.browserPublish,{browserSessionId:this.id,...e},t)}async suspend(e={}){return await this.lifecycle(\"suspend\",e)}async resume(e={}){return await this.lifecycle(\"resume\",e)}async end(e={}){return await this.lifecycle(\"end\",e)}async lifecycle(e,t){return await E(this.client,q.browserLifecycle,{browserSessionId:this.id,action:e},t)}}class Xb{client;browserSessionId;tabs;constructor(e,t,n){this.client=e;this.browserSessionId=t;this.tabs=n}async read(e={}){return await E(this.client,q.browserClipboard,{browserSessionId:this.browserSessionId},e)}async write(e,t={},n={}){return await this.act({type:\"clipboard\",operation:\"write\",text:e},t,n)}async clear(e={},t={}){return await this.act({type:\"clipboard\",operation:\"clear\"},e,t)}async copy(e={},t={}){let{targetId:n,expectedTargetGeneration:o,expectedDocumentGeneration:r,expectedFrameId:i,...a}=e;return await this.act({type:\"clipboard\",operation:\"copy\",...a},{targetId:n,expectedTargetGeneration:o,expectedDocumentGeneration:r,expectedFrameId:i},t)}async paste(e={},t={}){let{targetId:n,expectedTargetGeneration:o,expectedDocumentGeneration:r,expectedFrameId:i,...a}=e;return await this.act({type:\"clipboard\",operation:\"paste\",...a},{targetId:n,expectedTargetGeneration:o,expectedDocumentGeneration:r,expectedFrameId:i},t)}async act(e,t,n){let{targetId:o,...r}=t;return await this.tabs.use(await this.tabs.resolveId(o,n)).act(e,r,n)}}class Yb{client;browserSessionId;constructor(e,t){this.client=e;this.browserSessionId=t}async list(e={}){return await E(this.client,q.browserTabs,{operation:\"list\",browserSessionId:this.browserSessionId},e)}async selected(e={}){return this.use(await this.resolveId(void 0,e))}use(e){return new Qb(this.client,this.browserSessionId,e)}async open(e,t={}){let n=await this.list(t),o=await E(this.client,q.browserTabs,{operation:\"open\",browserSessionId:this.browserSessionId,...e?{url:e}:{}},t),r=new Set(n.targets.map((a)=>a.id)),i=o.targets.find((a)=>!r.has(a.id))??o.targets.find((a)=>a.selected);if(!i)throw Error(\"Browser opened no discoverable tab\");return this.use(i.id)}async select(e,t={}){if(!(await E(this.client,q.browserTabs,{operation:\"select\",browserSessionId:this.browserSessionId,targetId:e},t)).targets.some((o)=>o.id===e&&o.selected))throw Error(\"Browser did not select the requested tab\");return this.use(e)}async close(e,t={}){return await E(this.client,q.browserTabs,{operation:\"close\",browserSessionId:this.browserSessionId,targetId:e},t)}async resolveId(e,t){let n=await this.list(t);if(e){if(!n.targets.some((r)=>r.id===e))throw Error(`Browser tab is unavailable: ${e}`);return e}let o=n.targets.filter((r)=>r.selected);if(o.length===1)return o[0].id;if(n.targets.length===1)return n.targets[0].id;if(n.targets.length===0)throw Error(\"Browser has no tabs\");throw Error(\"Browser target is ambiguous; select an exact tab\")}}class Qb{client;browserSessionId;id;constructor(e,t,n){this.client=e;this.browserSessionId=t;this.id=n}async observe(e={}){return await E(this.client,q.browserObserve,{browserSessionId:this.browserSessionId,targetId:this.id},e)}async act(e,t={},n={}){return await E(this.client,q.browserAct,{browserSessionId:this.browserSessionId,targetId:this.id,action:e,...t},n)}async navigate(e,t={}){return await this.act({type:\"navigate\",url:e},{},t)}async setPermission(e,t,n={},o={}){return await this.act({type:\"permission\",permission:e,setting:t},n,o)}async requestHuman(e,t={},n={}){let o=await this.observe(n);return await E(this.client,q.requestHuman,{operation:\"request\",resourceKind:\"browser_session\",resourceId:this.browserSessionId,targetId:this.id,expectedControllerGeneration:o.target.controllerGeneration,expectedTargetGeneration:o.target.targetGeneration,expectedDocumentGeneration:o.target.documentGeneration,kind:t.kind??\"other\",reason:e,...t.authRunId?{authRunId:t.authRunId}:{},...t.expiresInSeconds===void 0?{}:{expiresInSeconds:t.expiresInSeconds}},n)}getByRole(e,t={}){return new gt(this,{kind:\"role\",role:e,...t})}getByText(e){return new gt(this,{kind:\"text\",text:e})}getByLabel(e){return new gt(this,{kind:\"label\",text:e})}getByPlaceholder(e){return new gt(this,{kind:\"placeholder\",text:e})}getByTestId(e){return new gt(this,{kind:\"test_id\",value:e})}locator(e){return new gt(this,{kind:\"css\",selector:e})}ref(e){return new gt(this,{kind:\"ref\",ref:e})}}class gt{tab;locator;constructor(e,t){this.tab=e;this.locator=t}async click(e={},t={}){return await this.tab.act({type:\"click\",locator:this.locator,...e},{},t)}async doubleClick(e={}){return await this.tab.act({type:\"double_click\",locator:this.locator},{},e)}async hover(e={}){return await this.tab.act({type:\"hover\",locator:this.locator},{},e)}async fill(e,t={}){return await this.tab.act({type:\"fill\",locator:this.locator,value:e},{},t)}async type(e,t={}){return await this.tab.act({type:\"type\",locator:this.locator,text:e},{},t)}async press(e,t={}){return await this.tab.act({type:\"press\",locator:this.locator,key:e},{},t)}async select(e,t={}){return await this.tab.act({type:\"select\",locator:this.locator,values:e},{},t)}async check(e=!0,t={}){return await this.tab.act({type:\"check\",locator:this.locator,checked:e},{},t)}}class e_{client;constructor(e){this.client=e}async listConnections(e={},t={}){return(await E(this.client,q.browserAuth,{operation:\"list_connections\",...e},t)).result}async getConnection(e,t={}){return(await E(this.client,q.browserAuth,{operation:\"get_connection\",siteAuthConnectionId:e},t)).result}async listRuns(e={},t={}){return(await E(this.client,q.browserAuth,{operation:\"list_runs\",...e},t)).result}async getRun(e,t={}){return(await E(this.client,q.browserAuth,{operation:\"get_run\",authRunId:e},t)).result}use(e,t){return new rf(this.client,e,t)}}class t_{client;browserSessionId;constructor(e,t){this.client=e;this.browserSessionId=t}async listRuns(e={},t={}){return(await E(this.client,q.browserAuth,{operation:\"list_runs\",browserSessionId:this.browserSessionId,...e},t)).result}async start(e,t={}){let n=await E(this.client,q.browserAuth,{operation:\"start\",browserSessionId:this.browserSessionId,...e},t);return this.use(n.result.run.id)}use(e){return new rf(this.client,this.browserSessionId,e)}}class rf{client;browserSessionId;id;constructor(e,t,n){this.client=e;this.browserSessionId=t;this.id=n}async get(e={}){let t=await E(this.client,q.browserAuth,{operation:\"get_run\",authRunId:this.id},e);if(t.result.browserSessionId!==this.browserSessionId)throw Error(\"Auth run belongs to another BrowserSession\");return t.result}async report(e,t={}){return(await E(this.client,q.browserAuth,{operation:\"report\",browserSessionId:this.browserSessionId,authRunId:this.id,...e},t)).result}async protectedFill(e,t={}){return(await E(this.client,q.browserAuth,{operation:\"protected_fill\",browserSessionId:this.browserSessionId,authRunId:this.id,...e},t)).result}async advanceExternal(e,t={}){return(await E(this.client,q.browserAuth,{operation:\"advance_external\",browserSessionId:this.browserSessionId,authRunId:this.id,...e},t)).result}async verify(e,t={}){return(await E(this.client,q.browserAuth,{operation:\"verify\",browserSessionId:this.browserSessionId,authRunId:this.id,...e},t)).result}}class r_{client;constructor(e){this.client=e}async list(e={},t={}){return(await E(this.client,q.discover,e,t)).computers}async open(e={},t={}){let n=await E(this.client,q.computerOpen,e,t);return new tf(this.client,n.session.id)}use(e){return new tf(this.client,e)}}class tf{client;id;targets;apps;clipboard;constructor(e,t){this.client=e;this.id=t;this.targets=new o_(e,t),this.apps=this.targets,this.clipboard=new n_(e,t,this.targets)}async refresh(e={}){return(await E(this.client,q.computerOpen,{computerSessionId:this.id},e)).session}async observe(e,t={}){return await this.targets.use(await this.targets.resolveId(e,t)).observe(t)}async act(e,t={},n={}){return await this.targets.use(await this.targets.resolveId(t.targetId,n)).act(e,t,n)}async launch(e,t={}){let n=await this.targets.resolveId(void 0,t);return await this.targets.use(n).act({type:\"launch\",applicationId:e},{},t),await this.targets.list(t)}async end(e={}){return await E(this.client,q.computerLifecycle,{computerSessionId:this.id,action:\"end\"},e)}}class n_{client;computerSessionId;targets;constructor(e,t,n){this.client=e;this.computerSessionId=t;this.targets=n}async read(e={}){return await E(this.client,q.computerClipboard,{computerSessionId:this.computerSessionId},e)}async write(e,t={},n={}){return await this.mutate({type:\"clipboard\",operation:\"write\",text:e},t,n)}async clear(e={},t={}){return await this.mutate({type:\"clipboard\",operation:\"clear\"},e,t)}async copy(e={},t={}){return await this.mutate({type:\"clipboard\",operation:\"copy\"},e,t)}async paste(e={},t={}){return await this.mutate({type:\"clipboard\",operation:\"paste\"},e,t)}async mutate(e,t,n){let o=await this.targets.resolveSeatId(t.targetId,n);return await this.targets.use(o).act(e,{},n)}}class o_{client;computerSessionId;constructor(e,t){this.client=e;this.computerSessionId=t}async list(e={}){return await E(this.client,q.computerTargets,{computerSessionId:this.computerSessionId},e)}use(e){return new i_(this.client,this.computerSessionId,e)}async focused(e={}){return this.use(await this.resolveId(void 0,e))}async resolveId(e,t){let n=await this.list(t);if(e){if(!n.targets.some((r)=>r.id===e))throw Error(`Computer target is unavailable: ${e}`);return e}let o=n.targets.filter((r)=>r.focused);if(o.length===1)return o[0].id;if(n.targets.length===1)return n.targets[0].id;if(n.targets.length===0)throw Error(\"Computer has no app, window, or screen targets\");throw Error(\"Computer target is ambiguous; select an exact app or window\")}async resolveSeatId(e,t){if(e)return await this.resolveId(e,t);let o=(await this.list(t)).targets.filter((r)=>r.kind===\"screen\");if(o.length===1)return o[0].id;return await this.resolveId(void 0,t)}}class i_{client;computerSessionId;id;constructor(e,t,n){this.client=e;this.computerSessionId=t;this.id=n}async observe(e={}){return await E(this.client,q.computerObserve,{computerSessionId:this.computerSessionId,targetId:this.id},e)}async act(e,t={},n={}){return await E(this.client,q.computerAct,{computerSessionId:this.computerSessionId,targetId:this.id,action:e,...t},n)}async requestHuman(e,t={},n={}){let o=await this.observe(n);return await E(this.client,q.requestHuman,{operation:\"request\",resourceKind:\"computer_session\",resourceId:this.computerSessionId,targetId:this.id,expectedControllerGeneration:o.target.controllerGeneration,expectedTargetGeneration:o.target.targetGeneration,expectedDocumentGeneration:null,kind:t.kind??\"other\",reason:e,...t.expiresInSeconds===void 0?{}:{expiresInSeconds:t.expiresInSeconds}},n)}getByRole(e,t={}){return new Ar(this,{kind:\"role\",role:e,...t})}getByText(e,t){return new Ar(this,{kind:\"text\",text:e,...t?{exact:t}:{}})}getByLabel(e,t){return new Ar(this,{kind:\"label\",text:e,...t?{exact:t}:{}})}getByIdentifier(e){return new Ar(this,{kind:\"identifier\",value:e})}ref(e){return new Ar(this,{kind:\"ref\",ref:e})}}class Ar{target;locator;constructor(e,t){this.target=e;this.locator=t}async invoke(e={}){return await this.semantic(\"invoke\",void 0,e)}async focus(e={}){return await this.semantic(\"focus\",void 0,e)}async setValue(e,t={}){return await this.semantic(\"set_value\",e,t)}async select(e={}){return await this.semantic(\"select\",void 0,e)}async expand(e={}){return await this.semantic(\"expand\",void 0,e)}async collapse(e={}){return await this.semantic(\"collapse\",void 0,e)}async semantic(e,t,n){return await this.target.act({type:\"semantic\",locator:this.locator,action:e,...t===void 0?{}:{value:t}},{},n)}}function vR(e=()=>ft()){return new Kb(e)}var G4=vR();function F4(e,t={}){let n=wa(e);return $a({digest:n.digest,entries:n.entries},{moduleSpecifier:t.moduleSpecifier??\"@opengeni/codemode\",interfaceName:\"CodemodeGeneratedTools\",callOptionsType:\"CodemodeCallOptions\",fallbackResultType:\"CodemodeToolResult\",generatedBy:\"@opengeni/codemode via @opengeni/tool-gateway\",catalogDigestLabel:\"Attempt catalog digest\"})}import{randomUUID as yR}from\"node:crypto\";var nf='(()=>{var At=Object.defineProperty;var Pt=(e)=>e;function qt(e,t){this[e]=Pt.bind(null,t)}var Ot=(e,t)=>{for(var n in t)At(e,n,{get:t[n],enumerable:!0,configurable:!0,set:qt.bind(t,n)})};var me=(e,t)=>()=>(e&&(t=e(e=0)),t);function Tt(e){if(!e)return null;try{let t=JSON.parse(e);if(!t||typeof t!==\"object\"||Array.isArray(t))return null;let n=t,s=n.error&&typeof n.error===\"object\"&&!Array.isArray(n.error)?n.error:n,r=re(s.code),i=re(s.message),o=Re(s.requestId),a=typeof s.retryable===\"boolean\"?s.retryable:void 0,c=typeof s.outcomeUnknown===\"boolean\"?s.outcomeUnknown:void 0,l=Et(s.details);if(!r&&!i&&!o&&a===void 0&&c===void 0&&!l)return null;return{code:r,message:i,requestId:o,retryable:a,outcomeUnknown:c,details:l}}catch{return null}}function Et(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return;let t=Object.entries(e).slice(0,16),n={};for(let[s,r]of t){if(!/^[a-zA-Z][\\\\w.-]{0,63}$/.test(s))continue;if(typeof r===\"string\"){let i=re(r);if(i!==void 0)n[s]=i}else if(typeof r===\"number\"||typeof r===\"boolean\"||r===null)n[s]=r}return Object.keys(n).length>0?n:void 0}function re(e){if(typeof e!==\"string\")return;let t=new TextEncoder().encode(e);return t.byteLength<=512?e:new TextDecoder().decode(t.slice(0,512))}function Gt(e){return e===408||e===409||e===425||e===429||e>=500}function Re(e){if(typeof e!==\"string\"||e.length>128||!/^[\\\\w.:-]+$/.test(e))return;return e}function P(e){return e instanceof DOMException&&e.name===\"AbortError\"||e instanceof Error&&e.name===\"AbortError\"}function q(e){if(e instanceof y)return e.retryable;return e instanceof TypeError}var y,K,ie,H,I;var G=me(()=>{y=class y extends Error{status;code;retryable;correlationId;outcomeUnknown;body;details;constructor(e,t,n={}){let s=Tt(t),r=s?.requestId??Re(n.correlationId),i=e>=502&&e<=504,o=n.mutation!==void 0,a=s?.message??(o?\"Request failed.\":t||\"(empty body)\"),c=n.displayMessage??(i&&o?s?.message??\"OpenGeni is temporarily unavailable — retry.\":`OpenGeni API ${e}: ${a}`);super(r?`${c} Reference: ${r}.`:c);this.name=\"OpenGeniApiError\",this.status=e,this.code=n.code??s?.code??(i&&o?\"upstream_unavailable\":void 0),this.retryable=n.retryable??s?.retryable??Gt(e),this.correlationId=r,this.outcomeUnknown=n.outcomeUnknown??s?.outcomeUnknown??(i&&!!n.mutation&&!s),this.body=!o||s?t:\"\",this.details=s?.details}};K=class K extends Error{code=\"secure_context_required\";retryable=!1;reason;constructor(e){super(e===\"insecure_context\"?\"Couldn’t attach this file because OpenGeni is open over HTTP. Attachments require a secure HTTPS connection. Open the secure site or configure HTTPS for this deployment.\":\"Couldn’t attach this file because secure browser cryptography is unavailable. Attachments require HTTPS and Web Crypto support. Open a secure site in a supported browser or configure HTTPS for this deployment.\");this.name=\"OpenGeniSecureContextRequiredError\",this.reason=e}};ie=class ie extends y{};H=class H extends Error{expected;actual;constructor(e,t){super(`OpenGeni API contract mismatch: client expects ${e}, API serves ${t}`);this.name=\"OpenGeniApiContractMismatchError\",this.expected=e,this.actual=t}};I=class I extends Error{constructor(e){super(e);this.name=\"OpenGeniStreamError\"}}});var he={};Ot(he,{OpenGeniToolCallError:()=>oe,OpenGeniToolReapprovalRequiredError:()=>Y,OpenGeniToolsClient:()=>Q});class Q{transport;constructor(e){this.transport=e}forWorkspace(e){let t=Bt(e,\"workspaceId\"),n=null,s=new Map,r=async(d={})=>{if(n&&!d.refresh)return n;let p=await this.transport.requestJson(\"GET\",`/v1/workspaces/${encodeURIComponent(t)}/tools/catalog`,void 0,{},d.signal?{signal:d.signal}:{});return n=p,p},i=async(d,p,u)=>{if(u.approvalToken&&!u.operationId)throw TypeError(\"operationId is required when using an approval token\");let g=u.operationId??crypto.randomUUID(),b=await r({...u.refreshCatalog===void 0?{}:{refresh:u.refreshCatalog},...u.signal?{signal:u.signal}:{}}),m=async(w)=>{let h=d(w),A=u.approvalToken?s.get(u.approvalToken):void 0;if(A&&(A.operationId!==g||A.catalogDigest!==w.digest||!Mt(A.identity,h)))throw new Y(g,A.catalogDigest,w.digest,h);let F={operationId:g,catalogDigest:w.digest,identity:h,arguments:p,...u.approvalToken?{approvalToken:u.approvalToken}:{}},E;try{E=await this.transport.requestJson(\"POST\",`/v1/workspaces/${encodeURIComponent(t)}/tools/calls`,F,{},u.signal?{signal:u.signal}:{})}catch(ge){if(X(ge))n=null;else if(u.approvalToken)s.delete(u.approvalToken);throw ge}if(u.approvalToken)s.delete(u.approvalToken);if(E.catalogDigest!==w.digest)n=null;if(E.result.isError)throw new oe(E.result);return be(w,h)?.outputSchema&&E.result.structuredContent!==void 0?E.result.structuredContent:E.result};try{return await m(b)}catch(w){if(!X(w))throw w}let f=await r({refresh:!0,...u.signal?{signal:u.signal}:{}}),R=d(f);if(u.approvalToken&&f.digest!==b.digest)throw new Y(g,b.digest,f.digest,R);return await m(f)},o=async(d,p={},u={})=>await i((g)=>we(g,d),p,u),a=async(d,p={},u={})=>{let g=u.operationId??crypto.randomUUID(),b=async(R)=>{let w={operationId:g,catalogDigest:R.digest,identity:we(R,d),arguments:p};try{let h=await this.transport.requestJson(\"POST\",`/v1/workspaces/${encodeURIComponent(t)}/tools/approvals`,w,{},u.signal?{signal:u.signal}:{});return s.set(h.approvalToken,{operationId:h.operationId,catalogDigest:h.catalogDigest,identity:h.identity}),h}catch(h){if(X(h))n=null;throw h}},m=await r(u.signal?{signal:u.signal}:{});try{return await b(m)}catch(R){if(!X(R))throw R}let f=await r({refresh:!0,...u.signal?{signal:u.signal}:{}});return await b(f)},c=async(d,p={},u={})=>await i((g)=>$t(g,d).identity,p,u),l=(d)=>new Proxy(async(p={},u={})=>await c(d,p,u),{get:(p,u)=>{if(u===\"then\")return;if(typeof u!==\"string\")return;return l([...d,u])}});return new Proxy(Object.create(null),{get:(d,p)=>{if(p===\"then\")return;if(p===\"$catalog\")return r;if(p===\"$call\")return o;if(p===\"$approve\")return a;if(p===\"$declarations\")return async(u={})=>await this.transport.requestJson(\"GET\",`/v1/workspaces/${encodeURIComponent(t)}/tools/declarations`,void 0,{},u.signal?{signal:u.signal}:{});if(typeof p!==\"string\")return;return l([p])}})}}function be(e,t){return e.entries.find((n)=>n.identity.serverId===t.serverId&&n.identity.toolName===t.toolName)}function Mt(e,t){return e.serverId===t.serverId&&e.toolName===t.toolName}function we(e,t){let n=be(e,t);if(!n)throw Error(`Tool is not present in the workspace catalog: ${t.serverId}/${t.toolName}`);return n.identity}function $t(e,t){let n=e.entries.find((s)=>s.codemodePath.length===t.length&&s.codemodePath.every((r,i)=>r===t[i]));if(!n)throw Error(`Tool is not present in the workspace catalog: ${t.join(\".\")}`);return n}function X(e){return e instanceof y&&e.status===409&&e.details?.code===\"catalog_stale\"||typeof e===\"object\"&&e!==null&&\"code\"in e&&e.code===\"catalog_stale\"}function Bt(e,t){let n=e.trim();if(!n)throw TypeError(`${t} is required`);return n}var oe,Y;var ae=me(()=>{G();oe=class oe extends Error{result;code;retryable;outcomeUnknown;constructor(e){let t=e.structuredContent;super(typeof t?.error?.message===\"string\"?t.error.message:\"OpenGeni tool call failed\");this.result=e;this.name=\"OpenGeniToolCallError\",this.code=typeof t?.error?.code===\"string\"?t.error.code:\"tool_error\",this.retryable=t?.error?.retryable===!0,this.outcomeUnknown=t?.error?.outcomeUnknown===!0}};Y=class Y extends Error{operationId;previousCatalogDigest;catalogDigest;identity;code=\"tool_reapproval_required\";retryable=!1;constructor(e,t,n,s){super(\"The workspace tool catalog changed after approval. Request a new approval for the refreshed tool identity and retry with the same operation ID.\");this.operationId=e;this.previousCatalogDigest=t;this.catalogDigest=n;this.identity=s;this.name=\"OpenGeniToolReapprovalRequiredError\"}}});class ye extends Error{code=\"site_session_path_unsupported\";constructor(){super(\"Unsupported Site session API path\");this.name=\"SiteSessionPathError\"}}function z(e,t,n=\"GET\",s){let r=e.split(\"?\")[0];if(!(r===\"/v1/workspaces/site-host\"||r.startsWith(\"/v1/workspaces/site-host/\"))&&r!==\"/v1/config/client\"||/[%\\\\\\\\#\\\\u0000-\\\\u0020\\\\u007f]/u.test(r)||r.split(\"/\").some((l)=>l===\".\"||l===\"..\"))throw new ye;let a=e.replace(\"/workspaces/site-host\",`/workspaces/${encodeURIComponent(t)}`),c=new URL(a,\"http://site.invalid\");if(c.searchParams.get(\"originSiteId\")===\"current\"&&t!==\"site-host\")return c.searchParams.set(\"originSiteId\",s??\"00000000-0000-0000-0000-000000000000\"),c.pathname+c.search;return a}var _t=\"opengeni.site.http\",j=\"site-host\";async function fe(e,t,n){let s=new Request(t,n),r=new URL(s.url),i=`${r.pathname}${r.search}`;z(i,j,s.method);let o=new MessageChannel,a=crypto.randomUUID(),c=s.body?await s.text():void 0;return await new Promise((l,d)=>{let p,u=!1,g=()=>{u=!0,s.signal.removeEventListener(\"abort\",b),o.port1.close()},b=()=>{if(u)return;e.postMessage({type:\"opengeni.site.cancel\",version:2,requestId:a});let m=s.signal.reason??new DOMException(\"Cancelled\",\"AbortError\");p?.error(m),d(m),g()};if(o.port1.onmessage=(m)=>{let f=m.data;if(f.error){let R=Error(f.error);p?.error(R),d(R),g()}else if(f.status){let R=f.body?new ReadableStream({start(w){p=w},pull(){o.port1.postMessage(\"pull\")},cancel(){p=void 0,b()}}):null;if(l(new Response(R,{status:f.status,headers:f.headers})),!f.body)g()}else if(f.done)p?.close(),g();else if(f.chunk)p?.enqueue(f.chunk)},s.signal.aborted){b();return}s.signal.addEventListener(\"abort\",b,{once:!0}),e.postMessage({type:_t,requestId:a,path:i,method:s.method,headers:[...s.headers],...c===void 0?{}:{body:c}},[o.port2])})}ae();G();G();async function*O(e){let t=e.getReader(),n=new TextDecoder,s=\"\",r,i,o=null,a=()=>{let l=o===null?null:{...r!==void 0?{id:r}:{},...i!==void 0?{event:i}:{},data:o.join(`\\n`)};return r=void 0,i=void 0,o=null,l},c=(l)=>{if(l===\"\")return a();if(l.startsWith(\":\"))return null;let d=l.indexOf(\":\"),p=d===-1?l:l.slice(0,d),u=d===-1?\"\":l.slice(d+1);if(u.startsWith(\" \"))u=u.slice(1);if(p===\"data\")(o??=[]).push(u);else if(p===\"event\")i=u;else if(p===\"id\")r=u;return null};try{while(!0){let{done:l,value:d}=await t.read();if(l)break;s+=n.decode(d,{stream:!0});let p=s.indexOf(`\\n`);while(p!==-1){let u=s.slice(0,p);if(s=s.slice(p+1),u.endsWith(\"\\\\r\"))u=u.slice(0,-1);let g=c(u);if(g)yield g;p=s.indexOf(`\\n`)}}}finally{await t.cancel().catch(()=>{}),t.releaseLock()}}var Ut=Symbol.for(\"@opengeni/sdk/session-event-stream-covered-through\");async function*ve(e,t={}){let n=t.signal,s=t.reconnect??!0,r=t.reconnectDelayMs??500,i=t.maxReconnectDelayMs??1e4,o=t.reconnectJitterRatio??0.2,a=t.beforeLiveTimeoutMs??15000,c=t.heartbeatTimeoutMs??45000,l=t.maxReconnectAttempts??Number.POSITIVE_INFINITY,d=t.after??0,p=0,u=r,g=!1;while(!0){if(n?.aborted)break;t.onStateChange?.(g||p>0?\"reconnecting\":\"connecting\");let b=d;try{let m=await e.openStream(d,n);g=!0,p=0,u=r;try{t.onOpen?.()}catch{}await _(t.beforeLive,a,n),t.onStateChange?.(\"live\");for await(let f of O(M(m,c,n))){if(n?.aborted)return;let R=Lt(f.data);if(!R)continue;let w=Wt(f.id,R.sequence);if(Ft(R,w),w<=d)continue;if(R.sequence>d+1){for await(let h of Dt(e,d,R.sequence-1))if(d=h.sequence,yield h,n?.aborted)return}d=w,yield R}if(!s)return;if(d===b)await Se(C(r,o),n);continue}catch(m){if(n?.aborted||P(m))return;if(!s||!q(m))throw m;if(p+=1,p>l)throw new I(`event stream gave up after ${l} consecutive failed reconnect attempts: ${m instanceof Error?m.message:String(m)}`)}await Se(C(u,o),n),u=Math.min(Math.max(u*2,r),i)}}async function _(e,t,n){if(!e)return;let s,r,i=new Promise((o,a)=>{if(s=setTimeout(()=>a(TypeError(`stream reconciliation timed out after ${t}ms`)),t),n)r=()=>a(new DOMException(\"Aborted\",\"AbortError\")),n.addEventListener(\"abort\",r,{once:!0})});try{await Promise.race([Promise.resolve().then(e),i])}finally{if(s!==void 0)clearTimeout(s);if(n&&r)n.removeEventListener(\"abort\",r)}}function C(e,t){if(e<=0||t<=0)return e;let n=Math.min(t,1),s=e*n;return Math.max(0,e-s+Math.random()*s*2)}function M(e,t,n){if(!Number.isSafeInteger(t)||t<=0)throw RangeError(\"stream heartbeat timeout must be a positive safe integer\");let s=e.getReader();return new ReadableStream({pull:async(r)=>{let i,o;try{let a=await Promise.race([s.read(),new Promise((c,l)=>{if(i=setTimeout(()=>l(TypeError(`event stream heartbeat timed out after ${t}ms`)),t),n)o=()=>l(new DOMException(\"Aborted\",\"AbortError\")),n.addEventListener(\"abort\",o,{once:!0})})]);if(a.done)r.close();else r.enqueue(a.value)}catch(a){s.cancel(a).catch(()=>{}),r.error(a)}finally{if(i!==void 0)clearTimeout(i);if(n&&o)n.removeEventListener(\"abort\",o)}},cancel:async(r)=>{await s.cancel(r)}})}async function*Dt(e,t,n){let s=t;while(s<n){let i=(await e.listEvents(s,Math.min(500,n-s))).filter((o)=>o.sequence>s&&o.sequence<=n).sort((o,a)=>o.sequence-a.sequence);if(i.length===0)throw new I(`event replay backfill stalled: expected sequences ${s+1}..${n} but the replay endpoint returned none of them`);for(let o of i){if(o.sequence!==s+1)throw new I(`event replay backfill is missing sequence ${s+1} (replay endpoint skipped to ${o.sequence}); refusing to deliver with a gap`);s=o.sequence,yield o}}}function Lt(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!==\"object\"||t===null||typeof t.sequence!==\"number\"||typeof t.type!==\"string\"||typeof t.id!==\"string\")return null;return t}function Wt(e,t){if(e===void 0||!/^\\\\d+$/.test(e))return t;let n=Number(e);return Number.isSafeInteger(n)&&n>=t?n:t}function Ft(e,t){Object.defineProperty(e,Ut,{value:t,enumerable:!1,configurable:!1,writable:!1})}async function Se(e,t){if(t?.aborted||e<=0)return;await new Promise((n)=>{let s=setTimeout(r,e);function r(){clearTimeout(s),t?.removeEventListener(\"abort\",r),n()}t?.addEventListener(\"abort\",r,{once:!0})})}G();async function*Ie(e,t={}){let n=t.signal,s=t.reconnect??!0,r=t.reconnectDelayMs??500,i=t.maxReconnectDelayMs??1e4,o=t.reconnectJitterRatio??0.2,a=t.beforeLiveTimeoutMs??15000,c=t.heartbeatTimeoutMs??45000,l=t.maxReconnectAttempts??Number.POSITIVE_INFINITY,d=t.after??0,p=0,u=r,g=!1;for(;;){if(n?.aborted)return;t.onStateChange?.(g||p>0?\"reconnecting\":\"connecting\");let b=d;try{let m=await e.openStream(d,n);g=!0,p=0,u=r,await _(t.beforeLive,a,n),t.onStateChange?.(\"live\");for await(let f of O(M(m,c,n))){if(n?.aborted)return;let R=zt(f.data);if(!R||R.sequence<=d)continue;d=R.sequence,yield R}if(!s)return;if(d===b)await ke(C(r,o),n);continue}catch(m){if(n?.aborted||P(m))return;if(!s||!q(m))throw m;if(p+=1,p>l)throw new I(`workspace control stream gave up after ${l} reconnect attempts: ${m instanceof Error?m.message:String(m)}`)}await ke(C(u,o),n),u=Math.min(Math.max(u*2,r),i)}}function zt(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!==\"object\"||t===null||t.type!==\"workspace.control.changed\"||typeof t.id!==\"string\"||typeof t.sequence!==\"number\")return null;return t}async function ke(e,t){if(t?.aborted||e<=0)return;await new Promise((n)=>{let s=setTimeout(r,e);function r(){clearTimeout(s),t?.removeEventListener(\"abort\",r),n()}t?.addEventListener(\"abort\",r,{once:!0})})}G();async function*xe(e,t={}){let n=t.signal,s=t.reconnect??!0,r=t.reconnectDelayMs??500,i=t.maxReconnectDelayMs??1e4,o=t.reconnectJitterRatio??0.2,a=t.beforeLiveTimeoutMs??15000,c=t.heartbeatTimeoutMs??45000,l=t.maxReconnectAttempts??Number.POSITIVE_INFINITY,d=t.after??0,p=0,u=r,g=!1;for(;;){if(n?.aborted)return;t.onStateChange?.(g||p>0?\"reconnecting\":\"connecting\");let b=d;try{let m=await e.openStream(d,n);g=!0,p=0,u=r,await _(t.beforeLive,a,n),t.onStateChange?.(\"live\");for await(let f of O(M(m,c,n))){if(n?.aborted)return;let R=Jt(f.data);if(!R||R.sequence<=d)continue;d=R.sequence,yield R}if(!s)return;if(d===b)await Ce(C(r,o),n);continue}catch(m){if(n?.aborted||P(m))return;if(!s||!q(m))throw m;if(p+=1,p>l)throw new I(`workspace interaction stream gave up after ${l} reconnect attempts: ${m instanceof Error?m.message:String(m)}`)}await Ce(C(u,o),n),u=Math.min(Math.max(u*2,r),i)}}function Jt(e){let t;try{t=JSON.parse(e)}catch{return null}if(!Vt(t)||t.type!==\"workspace.interaction.changed\"||typeof t.workspaceId!==\"string\"||typeof t.sequence!==\"number\"||!Number.isSafeInteger(t.sequence)||t.sequence<0||t.revision!==t.sequence||typeof t.occurredAt!==\"string\")return null;return t}function Vt(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}async function Ce(e,t){if(t?.aborted||e<=0)return;await new Promise((n)=>{let s=setTimeout(r,e);function r(){clearTimeout(s),t?.removeEventListener(\"abort\",r),n()}t?.addEventListener(\"abort\",r,{once:!0})})}G();async function*Pe(e,t={}){let n=t.signal,s=t.reconnect??!0,r=t.reconnectDelayMs??500,i=t.maxReconnectDelayMs??1e4,o=t.reconnectJitterRatio??0.2,a=t.beforeLiveTimeoutMs??15000,c=t.heartbeatTimeoutMs??45000,l=t.maxReconnectAttempts??Number.POSITIVE_INFINITY,d=t.controlAfter??0,p=t.interactionAfter??0,u=0,g=r,b=!1;for(;;){if(n?.aborted)return;t.onStateChange?.(b||u>0?\"reconnecting\":\"connecting\");let m=`${d}:${p}`;try{let f=await e.openStream(d,p,n);b=!0,u=0,g=r,await _(t.beforeLive,a,n),t.onStateChange?.(\"live\");for await(let R of O(M(f,c,n))){if(n?.aborted)return;let w=Nt(R.data);if(!w)continue;if(w.type===\"workspace.control.changed\"){if(w.sequence<=d)continue;d=w.sequence}else{if(w.sequence<=p)continue;p=w.sequence}yield w}if(!s)return;if(`${d}:${p}`===m)await Ae(C(r,o),n);continue}catch(f){if(n?.aborted||P(f))return;if(!s||!q(f))throw f;if(u+=1,u>l)throw new I(`workspace live stream gave up after ${l} reconnect attempts: ${f instanceof Error?f.message:String(f)}`)}await Ae(C(g,o),n),g=Math.min(Math.max(g*2,r),i)}}function Nt(e){let t;try{t=JSON.parse(e)}catch{return null}if(!Kt(t)||typeof t.sequence!==\"number\")return null;if(t.type===\"workspace.control.changed\"&&typeof t.id===\"string\"&&Number.isSafeInteger(t.sequence))return t;if(t.type===\"workspace.interaction.changed\"&&typeof t.workspaceId===\"string\"&&Number.isSafeInteger(t.sequence)&&t.sequence>=0&&t.revision===t.sequence&&typeof t.occurredAt===\"string\")return t;return null}function Kt(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}async function Ae(e,t){if(t?.aborted||e<=0)return;await new Promise((n)=>{let s=setTimeout(r,e);function r(){clearTimeout(s),t?.removeEventListener(\"abort\",r),n()}t?.addEventListener(\"abort\",r,{once:!0})})}var qe=32768,Ht=1e8;class ce{attachedBrowsers;authRuns;browsers;computers;identities;interventions;networkRoutes;siteAuthConnections;constructor(e){this.attachedBrowsers=new Le(e),this.authRuns=new $e(e),this.browsers=new Je(e),this.computers=new Xe(e),this.identities=new Fe(e),this.interventions=new Ue(e),this.networkRoutes=new Ee(e),this.siteAuthConnections=new _e(e)}}class Ee{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listNetworkRoutes(e,t)}route(e,t){return new Ge(this.transport,e,t)}async create(e,t,n={}){let s=await this.transport.createNetworkRoute(e,t,n);return this.route(e,s.route.id)}}class Ge{transport;workspaceId;id;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n}async get(e={}){return await this.transport.getNetworkRoute(this.workspaceId,this.id,e)}async update(e,t={}){return await this.transport.updateNetworkRoute(this.workspaceId,this.id,e,t)}}class _e{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listSiteAuthConnections(e,t)}connection(e,t){return new Me(this.transport,e,t)}async create(e,t,n={}){let s=await this.transport.createSiteAuthConnection(e,t,n);return this.connection(e,s.connection.id)}}class Me{transport;workspaceId;id;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n}async get(e={}){return await this.transport.getSiteAuthConnection(this.workspaceId,this.id,e)}async update(e,t={}){return await this.transport.updateSiteAuthConnection(this.workspaceId,this.id,e,t)}}class $e{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listAuthRuns(e,t)}async get(e,t,n={}){return await this.transport.getAuthRun(e,t,n)}run(e,t,n){return new ue(this.transport,e,t,n)}}class Be{transport;workspaceId;browserSessionId;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.browserSessionId=n}async list(e={}){return await this.transport.listAuthRuns(this.workspaceId,{...e,browserSessionId:this.browserSessionId})}run(e){return new ue(this.transport,this.workspaceId,this.browserSessionId,e)}async start(e,t={}){let n=await this.transport.startBrowserAuthRun(this.workspaceId,this.browserSessionId,e,t);return this.run(n.run.id)}}class ue{transport;workspaceId;browserSessionId;id;constructor(e,t,n,s){this.transport=e;this.workspaceId=t;this.browserSessionId=n;this.id=s}async get(e={}){let t=await this.transport.getAuthRun(this.workspaceId,this.id,e);if(t.browserSessionId!==this.browserSessionId)throw Error(\"AuthRun belongs to another BrowserSession\");return t}async report(e,t={}){return await this.transport.reportBrowserAuthRun(this.workspaceId,this.browserSessionId,this.id,e,t)}async protectedFill(e,t={}){return await this.transport.protectedBrowserAuthFill(this.workspaceId,this.browserSessionId,this.id,e,t)}async advanceExternal(e,t={}){return await this.transport.advanceExternalBrowserAuthRun(this.workspaceId,this.browserSessionId,this.id,e,t)}async openExternalFlow(e,t={}){return await this.transport.openExternalBrowserAuthFlow(this.workspaceId,this.browserSessionId,this.id,e,t)}async verify(e,t={}){return await this.transport.verifyBrowserAuthRun(this.workspaceId,this.browserSessionId,this.id,e,t)}}class Ue{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listInteractionInterventions(e,t)}intervention(e,t){return new De(this.transport,e,t)}async create(e,t,n={}){let s=await this.transport.createInteractionIntervention(e,t,n);return this.intervention(e,s.intervention.id)}}class De{transport;workspaceId;id;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n}async get(e={}){return await this.transport.getInteractionIntervention(this.workspaceId,this.id,e)}async resolve(e,t={}){return await this.transport.resolveInteractionIntervention(this.workspaceId,this.id,e,t)}}class Le{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listAttachedBrowsers(e,t)}device(e,t){return new We(this.transport,e,t)}}class We{transport;workspaceId;id;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n}async get(e={}){return await this.transport.getAttachedBrowser(this.workspaceId,this.id,e)}}class Fe{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listBrowserIdentities(e,t)}identity(e,t){return new ze(this.transport,e,t)}async create(e,t,n={}){let s=await this.transport.createBrowserIdentity(e,t,n);return this.identity(e,s.identity.id)}}class ze{transport;workspaceId;id;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n}async get(e={}){return await this.transport.getBrowserIdentity(this.workspaceId,this.id,e)}async revisions(e={}){return await this.transport.listBrowserRevisions(this.workspaceId,this.id,e)}async update(e,t={}){return await this.transport.updateBrowserIdentity(this.workspaceId,this.id,e,t)}}class Je{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listBrowserSessions(e,t)}session(e,t){return new Ve(this.transport,e,t)}async open(e,t,n={}){let s=await this.transport.createBrowserSession(e,t,n);return this.session(e,s.session.id)}async currentOrOpen(e){let t=e.signal?{signal:e.signal}:{},n=await this.list(e.workspaceId,t),s=Xt(n.sessions,e.associationSessionId);if(s){let r=this.session(e.workspaceId,s.id);if(s.lifecycle===\"suspended\")await r.resume({operationId:e.operationId??crypto.randomUUID()},t);return r}return await this.open(e.workspaceId,{operationId:e.operationId??crypto.randomUUID(),sessionId:e.associationSessionId,...e.name!==void 0?{name:e.name}:{},...e.initialUrl!==void 0?{initialUrl:e.initialUrl}:{},...e.headless!==void 0?{headless:e.headless}:{},...e.placement!==void 0?{placement:e.placement}:{},...e.identityId!==void 0?{identityId:e.identityId}:{},...e.baseRevisionId!==void 0?{baseRevisionId:e.baseRevisionId}:{},...e.networkRouteId!==void 0?{networkRouteId:e.networkRouteId}:{},...e.linkedComputerSessionId!==void 0?{linkedComputerSessionId:e.linkedComputerSessionId}:{}},t)}}class Ve{transport;workspaceId;id;auth;clipboard;downloads;tabs;targets;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n;this.auth=new Be(e,t,n),this.clipboard=new Ne(e,t,n),this.downloads=new Ke(e,t,n),this.tabs=new je(e,t,n),this.targets=this.tabs}async get(e={}){return await this.transport.getBrowserSession(this.workspaceId,this.id,e)}async observe(e,t={}){return await this.transport.observeBrowserTarget(this.workspaceId,this.id,e,t)}async act(e,t={}){return await this.transport.actInBrowser(this.workspaceId,this.id,e,t)}async receipt(e,t={}){return await this.transport.getBrowserActionReceipt(this.workspaceId,this.id,e,t)}async diagnostics(e,t={}){return await this.transport.listBrowserDiagnostics(this.workspaceId,this.id,e,t)}async attach(e,t={}){return await this.transport.attachBrowserSession(this.workspaceId,this.id,e,t)}async heartbeat(e={}){return await this.transport.heartbeatBrowserSession(this.workspaceId,this.id,e)}async publishRevision(e,t={}){return await this.transport.publishBrowserRevision(this.workspaceId,this.id,e,t)}async suspend(e={operationId:crypto.randomUUID()},t={}){return await this.transport.suspendBrowserSession(this.workspaceId,this.id,e,t)}async resume(e={operationId:crypto.randomUUID()},t={}){return await this.transport.resumeBrowserSession(this.workspaceId,this.id,e,t)}async end(e={operationId:crypto.randomUUID()},t={}){return await this.transport.endBrowserSession(this.workspaceId,this.id,e,t)}}class Ne{transport;workspaceId;browserSessionId;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.browserSessionId=n}async read(e={}){let t=await this.transport.readBrowserClipboard(this.workspaceId,this.browserSessionId,e);if(t.browserSessionId!==this.browserSessionId)throw Error(\"Browser clipboard belongs to another BrowserSession\");return t}}class Ke{transport;workspaceId;browserSessionId;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.browserSessionId=n}async list(e={}){return await this.transport.listBrowserDownloads(this.workspaceId,this.browserSessionId,e)}download(e){return new He(this.transport,this.workspaceId,this.browserSessionId,e)}}class He{transport;workspaceId;browserSessionId;id;constructor(e,t,n,s){this.transport=e;this.workspaceId=t;this.browserSessionId=n;this.id=s}async get(e={}){let t=await this.transport.getBrowserDownload(this.workspaceId,this.browserSessionId,this.id,e);if(t.browserSessionId!==this.browserSessionId)throw Error(\"BrowserDownload belongs to another BrowserSession\");return t}async saveToWorkspace(e,t={}){let{operationId:n=crypto.randomUUID(),overwrite:s=!1,...r}=t,i=await this.transport.saveBrowserDownload(this.workspaceId,this.browserSessionId,this.id,{operationId:n,destinationPath:e,overwrite:s},r);if(i.download.id!==this.id||i.download.browserSessionId!==this.browserSessionId)throw Error(\"BrowserDownload save returned another resource\");return i}}class je{transport;workspaceId;browserSessionId;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.browserSessionId=n}async list(e={}){return await this.transport.listBrowserTargets(this.workspaceId,this.browserSessionId,e)}async open(e,t={}){return await this.transport.openBrowserTarget(this.workspaceId,this.browserSessionId,e===void 0?{}:{url:e},t)}async select(e,t={}){return await this.transport.selectBrowserTarget(this.workspaceId,this.browserSessionId,e,t)}async close(e,t={}){return await this.transport.closeBrowserTarget(this.workspaceId,this.browserSessionId,e,t)}}class Xe{transport;constructor(e){this.transport=e}async list(e,t={}){return await this.transport.listComputerSessions(e,t)}session(e,t){return new Ye(this.transport,e,t)}async open(e,t,n={}){let s=await this.transport.createComputerSession(e,t,n);return this.session(e,s.session.id)}async currentOrOpen(e){let t=e.signal?{signal:e.signal}:{},n=await this.list(e.workspaceId,t),s=Yt(n.sessions,e.associationSessionId);if(s)return this.session(e.workspaceId,s.id);return await this.open(e.workspaceId,{operationId:e.operationId??crypto.randomUUID(),sessionId:e.associationSessionId,...e.name!==void 0?{name:e.name}:{},...e.placement!==void 0?{placement:e.placement}:{}},t)}}class Ye{transport;workspaceId;id;targets;apps;clipboard;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.id=n;this.targets=new Ze(e,t,n),this.apps=this.targets,this.clipboard=new Qe(e,t,n)}async get(e={}){return await this.transport.getComputerSession(this.workspaceId,this.id,e)}async observe(e,t={}){return await this.transport.observeComputerTarget(this.workspaceId,this.id,e,t)}async capture(e,t={}){return await this.transport.captureComputerTarget(this.workspaceId,this.id,e,t)}async act(e,t={}){return await this.transport.actInComputer(this.workspaceId,this.id,e,t)}async receipt(e,t={}){return await this.transport.getComputerActionReceipt(this.workspaceId,this.id,e,t)}async attach(e,t={}){return await this.transport.attachComputerSession(this.workspaceId,this.id,e,t)}async heartbeat(e={}){return await this.transport.heartbeatComputerSession(this.workspaceId,this.id,e)}async end(e={operationId:crypto.randomUUID()},t={}){return await this.transport.endComputerSession(this.workspaceId,this.id,e,t)}}class Qe{transport;workspaceId;computerSessionId;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.computerSessionId=n}async read(e={}){let t=await this.transport.readComputerClipboard(this.workspaceId,this.computerSessionId,e);if(t.computerSessionId!==this.computerSessionId)throw Error(\"Computer clipboard belongs to another ComputerSession\");return t}}class Ze{transport;workspaceId;computerSessionId;constructor(e,t,n){this.transport=e;this.workspaceId=t;this.computerSessionId=n}async list(e={}){return await this.transport.listComputerTargets(this.workspaceId,this.computerSessionId,e)}}function jt(e){if(!tn(e))throw Error(\"computer frame metadata is invalid\");let t=new Set([\"frameId\",\"computerSessionId\",\"controllerGeneration\",\"targetId\",\"targetGeneration\",\"sequence\",\"mediaType\",\"width\",\"height\",\"capturedAt\",\"sha256\"]);if(Object.keys(e).some((r)=>!t.has(r)))throw Error(\"computer frame metadata contains unknown fields\");let n=[\"frameId\",\"computerSessionId\",\"controllerGeneration\",\"targetId\",\"targetGeneration\",\"mediaType\",\"capturedAt\",\"sha256\"];for(let r of n){let i=e[r],o=r===\"targetId\"?512:r===\"capturedAt\"?128:256;if(typeof i!==\"string\"||i.length<1||Zt(i)>o)throw Error(\"computer frame metadata is invalid\")}let s=e;if(!Number.isSafeInteger(s.sequence)||s.sequence<0||!Number.isSafeInteger(s.width)||!Number.isSafeInteger(s.height))throw Error(\"computer frame metadata integers are invalid\");if(Qt(s.width,s.height),s.mediaType!==\"image/jpeg\"&&s.mediaType!==\"image/png\")throw Error(\"computer frame media type is invalid\");if(!en(s.computerSessionId))throw Error(\"computer frame session id is invalid\");if(!/^[A-Za-z0-9][A-Za-z0-9._:-]*$/u.test(s.controllerGeneration))throw Error(\"computer frame controller generation is invalid\");if(!Number.isFinite(new Date(s.capturedAt).valueOf()))throw Error(\"computer frame timestamp is invalid\");if(!/^[0-9a-f]{64}$/u.test(s.sha256))throw Error(\"computer frame digest is invalid\");return s}function et(e){if(!e||e.length>32768||!/^[A-Za-z0-9_-]+$/u.test(e))throw Error(\"computer frame metadata header is invalid\");let t=e.replace(/-/gu,\"+\").replace(/_/gu,\"/\"),n=t.padEnd(Math.ceil(t.length/4)*4,\"=\"),s;try{s=atob(n)}catch{throw Error(\"computer frame metadata header is invalid\")}let r=Uint8Array.from(s,(o)=>o.charCodeAt(0)),i;try{i=JSON.parse(new TextDecoder(\"utf-8\",{fatal:!0}).decode(r))}catch{throw Error(\"computer frame metadata header is invalid\")}return jt(i)}function Xt(e,t){let n=e.filter((s)=>![\"ending\",\"ended\",\"failed\",\"lost\"].includes(s.lifecycle)&&s.associations.some((r)=>r.sessionId===t));return n.sort((s,r)=>Oe(r,t)-Oe(s,t)),n[0]??null}function Yt(e,t){let n=e.filter((s)=>[\"starting\",\"active\",\"restoring\"].includes(s.lifecycle)&&s.associations.some((r)=>r.sessionId===t));return n.sort((s,r)=>Te(r,t)-Te(s,t)),n[0]??null}function Oe(e,t){let n=e.associations.filter((r)=>r.sessionId===t).map((r)=>Date.parse(r.lastUsedAt)).filter(Number.isFinite).reduce((r,i)=>Math.max(r,i),0),s=Date.parse(e.lastUsedAt);return Math.max(n,Number.isFinite(s)?s:0)}function Te(e,t){let n=e.associations.filter((r)=>r.sessionId===t).map((r)=>Date.parse(r.lastUsedAt)).filter(Number.isFinite).reduce((r,i)=>Math.max(r,i),0),s=Date.parse(e.lastUsedAt);return Math.max(n,Number.isFinite(s)?s:0)}function Qt(e,t){if(!Number.isSafeInteger(e)||!Number.isSafeInteger(t)||e<1||t<1||e>qe||t>qe||e*t>Ht)throw Error(\"browser image dimensions exceed their bounded envelope\")}function Zt(e){return new TextEncoder().encode(e).byteLength}function en(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(e)}function tn(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}var U=\"2026-09-plugins-and-skills-v1\",de=\"x-opengeni-api-contract\",Z=\"x-opengeni-correlation-id\";var ee=1048576,tt=33554432;var nt=536870912;var ne=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,st=/^[0-9a-f]{64}$/,rt=/^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:Z|[+-]\\\\d{2}:\\\\d{2})$/,it=/^\\\\/v1\\\\/workspaces\\\\/([0-9a-f-]+)\\\\/artifacts\\\\/([0-9a-f-]+)\\\\/content$/;function ot(e,t){if(!B(e,sn))return null;let n=e;if(n.available!==!0||n.kind!==\"file\"||typeof n.artifactId!==\"string\"||!ne.test(n.artifactId)||typeof n.contentType!==\"string\"||!/^[a-z0-9][a-z0-9!#$&^_.+-]{0,62}\\\\/[a-z0-9][a-z0-9!#$&^_.+-]{0,62}$/.test(n.contentType)||!te(n.originalBytes,1,26214399)||typeof n.sha256!==\"string\"||!st.test(n.sha256)||typeof n.retainedAt!==\"string\"||n.retainedAt.length>64||!rt.test(n.retainedAt)||!Number.isFinite(Date.parse(n.retainedAt))||!B(n.retention,ct)||!B(n.retrieval,ut))return null;let s=n.retention;if(s.policy!==\"workspace_file\"||s.expiresAt!==null)return null;let r=n.retrieval;if(r.method!==\"GET\"||r.acceptRanges!==\"bytes\"||r.maxRangeBytes!==1048576||typeof r.path!==\"string\"||r.path.length>256)return null;let i=it.exec(r.path);if(!i||!ne.test(i[1]??\"\")||i[2]!==n.artifactId||t!==void 0&&i[1]!==t)return null;return e}function at(e,t){if(!B(e,nn))return null;let n=e;if(n.available!==!0||n.kind!==\"generated_image\"||typeof n.artifactId!==\"string\"||!ne.test(n.artifactId)||![\"image/png\",\"image/jpeg\",\"image/webp\"].includes(String(n.contentType))||!te(n.originalBytes,1,67108864)||typeof n.sha256!==\"string\"||!st.test(n.sha256)||typeof n.retainedAt!==\"string\"||n.retainedAt.length>64||!rt.test(n.retainedAt)||!Number.isFinite(Date.parse(n.retainedAt))||!B(n.dimensions,rn)||!B(n.retention,ct)||!B(n.retrieval,ut))return null;let s=n.dimensions;if(!te(s.width,1,16384)||!te(s.height,1,16384)||Number(s.width)*Number(s.height)>67108864)return null;let r=n.retention;if(r.policy!==\"workspace_file\"||r.expiresAt!==null)return null;let i=n.retrieval;if(i.method!==\"GET\"||i.acceptRanges!==\"bytes\"||i.maxRangeBytes!==1048576||typeof i.path!==\"string\"||i.path.length>256)return null;let o=it.exec(i.path);if(!o||!ne.test(o[1]??\"\")||o[2]!==n.artifactId||t!==void 0&&o[1]!==t)return null;return e}var nn=new Set([\"available\",\"artifactId\",\"kind\",\"contentType\",\"originalBytes\",\"sha256\",\"retainedAt\",\"dimensions\",\"retention\",\"retrieval\"]),sn=new Set([\"available\",\"artifactId\",\"kind\",\"contentType\",\"originalBytes\",\"sha256\",\"retainedAt\",\"retention\",\"retrieval\"]),rn=new Set([\"width\",\"height\"]),ct=new Set([\"policy\",\"expiresAt\"]),ut=new Set([\"method\",\"path\",\"acceptRanges\",\"maxRangeBytes\"]);function B(e,t){return e!==null&&typeof e===\"object\"&&!Array.isArray(e)&&Object.keys(e).length===t.size&&Object.keys(e).every((n)=>t.has(n))}function te(e,t,n){return Number.isSafeInteger(e)&&Number(e)>=t&&Number(e)<=n}function dt(e){let{limit:t,parentSessionId:n,scopeSubjectId:s}=e;return{...e.originSiteId?{originSiteId:e.originSiteId}:{},...t===void 0?{}:{limit:String(t)},...n===void 0?{}:{parentSessionId:n??\"null\"},...s===void 0?{}:{scopeSubjectId:s}}}function lt(e){return e.originSiteId!==void 0||e.channelId!==void 0||e.createdBy!==void 0||e.updatedFrom!==void 0||e.updatedBefore!==void 0||e.createdFrom!==void 0||e.createdBefore!==void 0}function pt(e,t){let n,s,r=new Promise((i,o)=>{n=i,s=o});return{controller:new AbortController,consumers:0,generation:e,promise:r,resolve:n,reject:s,started:!1,listeners:new Set(t?[t]:[])}}function gt(e){if(Object.prototype.hasOwnProperty.call(e,\"tools\"))throw TypeError(\"Message-level tools are not supported; update the session tool policy before sending.\")}function mt(e){if(!(\"agentConfig\"in e)||!e.agentConfig?.machineTarget)return e;let{workingDir:t,...n}=e.agentConfig.machineTarget;if(t===void 0)return e;let s=t.trim();return{...e,agentConfig:{...e.agentConfig,machineTarget:{...n,...s?{workingDir:s}:{}}}}}function on(e){return{forWorkspace(t){let n=t.trim();if(!n)throw TypeError(\"workspaceId is required\");let s,r=()=>s??=Promise.resolve().then(() => (ae(),he)).then(({OpenGeniToolsClient:o})=>new o(e).forWorkspace(n)),i=(o)=>new Proxy(async(...a)=>{let c=await r();for(let l of o)c=c[l];if(typeof c!==\"function\")throw TypeError(\"OpenGeni tool path is not callable\");return await Reflect.apply(c,void 0,a)},{get:(a,c)=>{if(c===\"then\")return;if(typeof c!==\"string\")return;return i([...o,c])}});return new Proxy(Object.create(null),{get:(o,a)=>{if(a===\"then\")return;if(typeof a!==\"string\")return;return i([a])}})}}}class le{externalActorHeader;baseUrl;options;fetchImpl;sessionCommandTimeoutMs;active=new Map;generations=new Map;queued=new Map;interaction;tools;constructor(e){this.baseUrl=e.baseUrl.replace(/\\\\/+$/,\"\"),this.options=e,this.fetchImpl=e.fetch??((n,s)=>fetch(n,s));let t=e.sessionCommandTimeoutMs??15000;if(!Number.isFinite(t)||t<=0)throw RangeError(\"sessionCommandTimeoutMs must be a finite positive number\");this.sessionCommandTimeoutMs=t,this.interaction=new ce(this),this.tools=on(this)}async transcribeAudio(e,t){let n=crypto.randomUUID(),s=new FormData,r=dn(t.mimeType),i=t.audio instanceof File?t.audio:t.audio instanceof Uint8Array?new File([Uint8Array.from(t.audio)],r,{type:t.mimeType}):new File([t.audio],r,{type:t.mimeType||t.audio.type});if(s.append(\"audio\",i,r),s.append(\"mimeType\",t.mimeType),t.durationSeconds!==void 0)s.append(\"durationSeconds\",String(t.durationSeconds));let o;try{o=await this.fetchImpl(this.url(`/v1/workspaces/${e}/transcriptions`),{method:\"POST\",headers:{...this.headers(n),Accept:\"application/json\"},body:s,...t.signal?{signal:t.signal}:{}})}catch(c){if(t.signal?.aborted)throw c;throw D(n)}if(v(o),!o.ok)throw await S(o,{method:\"POST\",correlationId:n});await N(o,{method:\"POST\",correlationId:n});let a;try{a=await o.json()}catch{throw new y(o.status,\"Invalid transcription response.\",{code:\"invalid_response\",mutation:!0,correlationId:n})}if(!an(a))throw new y(o.status,\"Invalid transcription response.\",{code:\"invalid_response\",mutation:!0,correlationId:n});return a}async createTranscriptionRecording(e,t){return J(await this.requestJson(\"POST\",`/v1/workspaces/${e}/transcription-recordings`,{recordingId:t.recordingId,mimeType:t.mimeType},{},t.signal?{signal:t.signal}:{}))}async getTranscriptionRecording(e,t,n={}){return J(await this.requestJson(\"GET\",`/v1/workspaces/${e}/transcription-recordings/${t}`,void 0,{},n.signal?{signal:n.signal}:{}))}async listTranscriptionRecordings(e,t={}){let n=await this.requestJson(\"GET\",`/v1/workspaces/${e}/transcription-recordings`,void 0,{},t.signal?{signal:t.signal}:{});if(!un(n))throw new y(502,\"Invalid transcription recording list response.\",{code:\"invalid_response\"});return n}async uploadTranscriptionRecordingChunk(e,t,n,s){let r=crypto.randomUUID(),i;try{i=await this.fetchImpl(this.url(`/v1/workspaces/${e}/transcription-recordings/${t}/chunks/${n}`),{method:\"PUT\",headers:{...this.headers(r),Accept:\"application/json\",\"Content-Type\":s.mimeType,\"x-opengeni-chunk-sha256\":s.sha256,\"x-opengeni-chunk-start-milliseconds\":String(s.startMilliseconds),\"x-opengeni-chunk-duration-milliseconds\":String(s.durationMilliseconds)},body:s.audio instanceof Uint8Array?Uint8Array.from(s.audio):s.audio,...s.signal?{signal:s.signal}:{}})}catch(a){if(s.signal?.aborted)throw a;throw D(r)}if(v(i),!i.ok)throw await S(i,{method:\"PUT\",correlationId:r});await N(i,{method:\"PUT\",correlationId:r});let o=await i.json().catch(()=>null);if(!cn(o))throw new y(i.status,\"Invalid transcription chunk response.\",{code:\"invalid_response\",mutation:!0,correlationId:r});return o}async finalizeTranscriptionRecording(e,t,n){return J(await this.requestJson(\"POST\",`/v1/workspaces/${e}/transcription-recordings/${t}/finalize`,{chunkCount:n.chunkCount,totalBytes:n.totalBytes,totalDurationMilliseconds:n.totalDurationMilliseconds},{},n.signal?{signal:n.signal}:{}))}async processNextTranscriptionRecordingSegment(e,t,n={}){return J(await this.requestJson(\"POST\",`/v1/workspaces/${e}/transcription-recordings/${t}/process-next`,{},{},n.signal?{signal:n.signal}:{}))}async discardTranscriptionRecording(e,t,n={}){return J(await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/transcription-recordings/${t}`,void 0,{},n.signal?{signal:n.signal}:{}))}async createSession(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${encodeURIComponent(e)}/sessions`,t)}async getNewSessionDraft(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/new-session-draft`,void 0,{},t)}async saveNewSessionDraft(e,t){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/new-session-draft`,t)}async createFeedback(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/feedback`,t)}async listOwnFeedback(e,t={}){let n=new URLSearchParams;if(t.sessionId)n.set(\"sessionId\",t.sessionId);if(t.limit!==void 0)n.set(\"limit\",String(t.limit));if(t.includeTurns!==void 0)n.set(\"includeTurns\",String(t.includeTurns));return this.requestJson(\"GET\",`/v1/workspaces/${e}/feedback${n.size?`?${n}`:\"\"}`)}async getSession(e,t,n={}){let s=`/v1/workspaces/${e}/sessions/${t}`;return await this.sharedRead(s,(r)=>this.requestJson(\"GET\",s,void 0,{},{signal:r}),n)}async getSessionModelContext(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/model-context`)}async updateSession(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/sessions/${t}`,n)}async updateSessionVariableSets(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/variable-sets`,n)}async getSessionTenancyCreateCapabilities(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/session-tenancy/capabilities`)}async updateSessionVisibility(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/visibility`,n)}async forkSession(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/forks`,n)}async updateSessionToolPolicy(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/tool-policy`,n)}async updateSessionMcpApprovalPolicy(e,t,n,s){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/sessions/${t}/mcp-servers/${encodeURIComponent(n)}/approval-policy`,s)}async searchSessionMessages(e,t,n={}){return this.requestJson(\"GET\",`/v1/workspaces/${e}/session-message-search`,void 0,{query:t.query,...t.sessionId!==void 0?{sessionId:t.sessionId}:{},...t.groupBy!==void 0?{groupBy:t.groupBy}:{},...t.archiveStatus!==void 0?{archiveStatus:t.archiveStatus}:{},...t.limit!==void 0?{limit:String(t.limit)}:{},...t.cursor!==void 0?{cursor:t.cursor}:{}},n)}async listSessions(e,t={}){if(t.search?.trim()||t.originSiteId){let n=await this.listSessionPage(e,t);return[...n.pinned,...n.sessions]}return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions`,void 0,dt(t))}async listSessionBackgroundCommands(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/background-commands`,void 0,{},n)}async cancelSessionBackgroundCommand(e,t,n){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/sessions/${t}/background-commands/${n}`)}async listSessionPage(e,t={}){let n=t.search?.trim(),s;try{s=await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions`,void 0,{view:\"page\",...dt(t),...t.cursor!==void 0?{cursor:t.cursor}:{},...n?{search:n}:{},...t.channelId!==void 0?{channelId:t.channelId??\"null\"}:{},...t.createdBy?{createdByKind:t.createdBy.kind,createdBySubjectId:t.createdBy.subjectId}:{},...t.updatedFrom?{updatedFrom:t.updatedFrom}:{},...t.updatedBefore?{updatedBefore:t.updatedBefore}:{},...t.createdFrom?{createdFrom:t.createdFrom}:{},...t.createdBefore?{createdBefore:t.createdBefore}:{},...t.pinsOnly?{pinsOnly:\"true\"}:{},...t.archivedOnly?{archivedOnly:\"true\"}:{},...t.sortBy?{sortBy:t.sortBy}:{},...t.archiveStatus?{archiveStatus:t.archiveStatus}:{}},{signal:t.signal})}catch(r){if(r instanceof y&&r.status===410)throw new ie(r.status,r.body,{...r.code?{code:r.code}:{},retryable:r.retryable,...r.correlationId?{correlationId:r.correlationId}:{},outcomeUnknown:r.outcomeUnknown,displayMessage:\"The session list changed — refresh and try again.\"});throw r}if(t.sortBy!==void 0&&(Array.isArray(s)||s.sortBy!==t.sortBy)||t.archiveStatus!==void 0&&(Array.isArray(s)||s.archiveStatus!==t.archiveStatus))throw Error(\"The connected OpenGeni API does not support the requested session sorting/archive filter\");if(Array.isArray(s)){if(t.cursor)throw Error(\"The connected OpenGeni API does not support stable session-page cursors\");if(n)throw Error(\"The connected OpenGeni API does not support session search\");if(t.pinsOnly)throw Error(\"The connected OpenGeni API does not support pins-only session lists\");if(t.archivedOnly)throw Error(\"The connected OpenGeni API does not support archived session lists\");if(lt(t))throw Error(\"The connected OpenGeni API does not support filtered session lists\");return{pinned:[],sessions:s,nextCursor:null}}if(lt(t)&&s.filtersApplied!==!0)throw Error(\"The connected OpenGeni API does not support filtered session lists\");if(t.originSiteId&&(!s.originSiteId||t.originSiteId!==\"current\"&&s.originSiteId!==t.originSiteId))throw Error(\"The connected OpenGeni API does not support Site-filtered session lists\");return s}async listAgentTopology(e,t={}){let n=t.query?.trim()||t.search?.trim();if(n&&t.subject)throw TypeError(\"listAgentTopology query cannot be combined with an exact subject\");return await this.requestJson(\"GET\",`/v1/workspaces/${e}/agent-topology`,void 0,{...t.limit!==void 0?{limit:String(t.limit)}:{},...t.parentSessionId===void 0?{}:{parentSessionId:t.parentSessionId??\"null\"},...t.rootSessionId?{rootSessionId:t.rootSessionId}:{},...t.cursor?{cursor:t.cursor}:{},...n?{query:n}:{},...t.statuses?.length?{statuses:t.statuses.join(\",\")}:{},...t.activeOnly!==void 0?{activeOnly:t.activeOnly?\"true\":\"false\"}:{},...t.recentHours!==void 0?{recentHours:String(t.recentHours)}:{},...t.subject?{subjectNamespace:t.subject.namespace,subjectType:t.subject.type,subjectKey:t.subject.canonicalKey}:{},...t.claimLimit!==void 0?{claimLimit:String(t.claimLimit)}:{}})}async updateSessionPin(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/pin`,n)}async updateSessionAttention(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/attention`,n)}async updateSessionArchive(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/archive`,n)}async deleteSession(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/sessions/${t}`)}async getSessionLineage(e,t,n={}){let s=`/v1/workspaces/${e}/sessions/${t}/lineage`;return await this.sharedRead(s,(r)=>this.requestJson(\"GET\",s,void 0,{},{signal:r}),n)}sharedRead(e,t,n={}){if(n.signal?.aborted)return Promise.reject(n.signal.reason??new DOMException(\"Request aborted\",\"AbortError\"));let s=this.active.get(e);if(s){if(!n.fresh)return this.observeRead(s,n.onRequestStart),this.consumeSharedRead(e,s,n.signal);let c=s.generation+1,l=this.queued.get(e);if(l&&l.generation>=c)return this.observeRead(l,n.onRequestStart),this.consumeSharedRead(e,l,n.signal);let d=l?.promise??s.promise;return this.queueRead(e,d,c,t,n)}let r=this.queued.get(e);if(r&&(!n.fresh||!r.started))return this.observeRead(r,n.onRequestStart),this.consumeSharedRead(e,r,n.signal);if(r)return this.queueRead(e,r.promise,r.generation+1,t,n);let i=(this.generations.get(e)??0)+1,o=pt(i,n.onRequestStart),a=this.consumeSharedRead(e,o,n.signal);return this.launchRead(e,o,t),a}queueRead(e,t,n,s,r){let i=pt(n,r.onRequestStart),o=this.consumeSharedRead(e,i,r.signal);this.queued.set(e,i);let a=()=>this.launchRead(e,i,s);t.then(a,a);let c=()=>{if(this.queued.get(e)!==i)return;if(this.queued.delete(e),!this.active.has(e))this.generations.delete(e)};return i.promise.then(c,c),o}launchRead(e,t,n){if(t.controller.signal.aborted)return;t.started=!0,this.generations.set(e,t.generation),this.active.set(e,t);try{t.stamp=this.options.beginSharedRead?.()}catch{}for(let i of t.listeners)try{i(t.stamp)}catch{}t.listeners.clear();let s=()=>{if(this.active.get(e)!==t)return;if(this.active.delete(e),!this.queued.has(e))this.generations.delete(e)},r;try{r=n(t.controller.signal)}catch(i){s(),t.reject(i);return}r.then((i)=>{s(),t.resolve(i)},(i)=>{s(),t.reject(i)})}consumeSharedRead(e,t,n){t.consumers+=1;let s=!1,r=()=>{if(s)return;if(s=!0,t.consumers-=1,!n?.aborted||t.consumers>0)return;let o=n.reason;if(t.controller.abort(o),this.active.get(e)===t)this.active.delete(e);if(this.queued.get(e)===t)this.queued.delete(e);if(!this.active.has(e)&&!this.queued.has(e))this.generations.delete(e);t.reject(o)};return n?.addEventListener(\"abort\",r,{once:!0}),V(t.promise,n).finally(()=>{n?.removeEventListener(\"abort\",r),r()})}observeRead(e,t){if(!t)return;if(!e.started){e.listeners.add(t);return}if(e.stamp===void 0)return;try{t(e.stamp)}catch{}}async negotiateCodexRealtimeWebrtc(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/realtime/webrtc`,n,{},{signal:s.signal})}async negotiateGatewayRealtime(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/realtime/gateway`,n,{},{signal:s.signal})}async negotiateXaiSubscriptionRealtime(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/realtime/supergrok`,n,{},{signal:s.signal})}async activateCodexRealtimeConnection(e,t,n,s,r,i={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/realtime/${n}/connections/${s}/activate`,r,{},{signal:i.signal})}async beginSessionRealtime(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/realtime`,n)}async heartbeatSessionRealtime(e,t,n,s){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/sessions/${t}/realtime/${n}/heartbeat`,s)}async syncSessionRealtimeLedger(e,t,n,s){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/realtime/${n}/sync`,s)}async endSessionRealtime(e,t,n,s){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/sessions/${t}/realtime/${n}`,s)}async listTurns(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/turns`,void 0,{...n.limit!==void 0?{limit:String(n.limit)}:{},...n.latestStarted?{latestStarted:\"1\"}:{}},{signal:n.signal})}async getLatestStartedTurn(e,t,n={}){return(await this.listTurns(e,t,{latestStarted:!0,signal:n.signal}))[0]??null}async listMachines(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/machines`,void 0,{...t.sessionId!==void 0?{sessionId:t.sessionId}:{}},{signal:t.signal})}async updateMachineAgent(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/machines/${t}/update`)}async updateMachineOperationPolicy(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/machines/${t}/operation-policy`,n)}async machineMetricsSeries(e,t,n={}){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/machines/${t}/metrics/series`,void 0,{...n.window!==void 0?{window:n.window}:{}})).samples}async removeEnrollment(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/enrollments/${t}/revoke`,n)}async lookupDeviceEnrollment(e){return await this.requestJson(\"POST\",\"/v1/enrollments/device/lookup\",{userCode:e})}async approveDeviceEnrollment(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/enrollments/device/approve`,{userCode:t.userCode,allowScreenControl:t.allowScreenControl??!1,...t.scope?{scope:t.scope}:{}})}async denyDeviceEnrollment(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/enrollments/device/deny`,{userCode:t.userCode})}async mintEnrollToken(e,t={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/enrollments/token`,{allowScreenControl:t.allowScreenControl??!1})}async swapActiveSandbox(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/active-sandbox`,n)}async listScheduledTasks(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/scheduled-tasks`,void 0,{...t.offset!==void 0?{offset:String(t.offset)}:{},...t.sessionId?{sessionId:t.sessionId}:{},...t.limit!==void 0?{limit:String(t.limit)}:{}})}async getScheduledTask(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/scheduled-tasks/${t}`)}async listEvents(e,t,n={}){return(await this.listEventPage(e,t,n)).events}async listEventPage(e,t,n={}){if(n.latest&&[\"includeTypes\",\"excludeTypes\",\"includeClasses\",\"excludeClasses\"].some((h)=>Object.prototype.hasOwnProperty.call(n,h)))throw TypeError(\"latest cannot be combined with event filters\");if(n.resultMode===\"compact\"&&!n.latest)throw TypeError(\"resultMode=compact requires latest\");let s=n.resultMode===\"compact\"?null:n,r=crypto.randomUUID(),i=await this.fetchImpl(this.url(`/v1/workspaces/${e}/sessions/${t}/events`,{...s?.after!==void 0?{after:String(s.after)}:{},...s?.before!==void 0?{before:String(s.before)}:{},...s?.limit!==void 0?{limit:String(s.limit)}:{},...s?.compact?{compact:\"1\"}:{},...n.mode?{mode:n.mode}:{},...s?.direction?{direction:s.direction}:{},...n.payloadMode?{payloadMode:n.payloadMode}:{},...n.resultMode?{resultMode:n.resultMode}:{},...s?.includeTypes?.length?{includeTypes:s.includeTypes.join(\",\")}:{},...s?.excludeTypes?.length?{excludeTypes:s.excludeTypes.join(\",\")}:{},...s?.includeClasses?.length?{includeClasses:s.includeClasses.join(\",\")}:{},...s?.excludeClasses?.length?{excludeClasses:s.excludeClasses.join(\",\")}:{},...n.latest?{latest:n.latest}:{}}),{method:\"GET\",headers:{...this.headers(r),Accept:\"application/json\"}});if(v(i),!i.ok)throw await S(i,{method:\"GET\",correlationId:r});await N(i,{method:\"GET\",correlationId:r});let o=await i.json();if(n.resultMode===\"compact\")return o;let a=o,c=(h)=>{let A=i.headers.get(h);if(A===null)return null;let F=Number(A);return Number.isSafeInteger(F)&&F>=0?F:null},l=i.headers.get(\"X-OpenGeni-Event-Mode\")===\"forensic\"?\"forensic\":\"monitoring\",d=i.headers.get(\"X-OpenGeni-Event-Direction\")===\"after\"?\"after\":\"before\",p=i.headers.get(\"X-OpenGeni-Payload-Mode\"),u=p===\"none\"||p===\"full\"?p:\"summary\",g=c(\"X-OpenGeni-Covered-First\"),b=c(\"X-OpenGeni-Covered-Last\"),m=c(\"X-OpenGeni-Page-Bytes\")??new TextEncoder().encode(JSON.stringify(a)).byteLength,f=c(\"X-OpenGeni-Page-Max-Bytes\")??1048576,R=i.headers.get(\"X-OpenGeni-Truncated-By\"),w=R===\"count\"||R===\"bytes\"||R===\"http_bytes\"?R:null;return{events:a,mode:l,payloadMode:u,direction:d,bytes:m,maxBytes:f,truncated:i.headers.get(\"X-OpenGeni-Page-Truncated\")===\"true\",hasMore:i.headers.get(\"X-OpenGeni-Has-More\")===\"true\",truncatedBy:w,coveredSequence:g===null||b===null?null:{first:g,last:b},nextAfter:c(\"X-OpenGeni-Next-After\"),nextBefore:c(\"X-OpenGeni-Next-Before\"),forensicExact:i.headers.get(\"X-OpenGeni-Forensic-Exact\")===\"true\"}}async getLatestEventResult(e,t,n={latest:\"terminal\"}){return await this.listEventPage(e,t,{...n,resultMode:\"compact\"})}async sendEvent(e,t,n){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/events`,n)}async sendMessage(e,t,n){let s=typeof n===\"string\"?{text:n}:n;gt(s);let{clientEventId:r,...i}=s;return await this.sendEvent(e,t,{type:\"user.message\",...r!==void 0?{clientEventId:r}:{},payload:i})}async pauseSession(e,t,n={}){return await this.controlSession(e,t,{action:\"pause\",clientEventId:n.clientEventId??crypto.randomUUID(),...n.reason?{reason:n.reason}:{},...n.expectedControlEtag?{expectedControlEtag:n.expectedControlEtag}:{}})}async sendApprovalDecision(e,t,n){let{clientEventId:s,...r}=n;return await this.sendEvent(e,t,{type:\"user.approvalDecision\",...s!==void 0?{clientEventId:s}:{},payload:r})}async listHumanInputRequests(e,t,n={}){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/human-input-requests`,void 0,n.status?{status:n.status}:void 0)).requests}async getHumanInputRequest(e,t,n){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/human-input-requests/${n}`)}async submitHumanInputResponse(e,t,n,s,r={}){return await this.sendEvent(e,t,{type:\"user.humanInputResponse\",...r.clientEventId?{clientEventId:r.clientEventId}:{},payload:{requestId:n,response:s}})}streamEvents(e,t,n={}){return ve(this.eventStreamTransport(e,t),n)}eventStreamTransport(e,t){return{openStream:async(n,s)=>await this.openEventStream(e,t,{after:n,...s?{signal:s}:{}}),listEvents:async(n,s)=>await this.listEvents(e,t,{after:n,limit:s})}}async openEventStream(e,t,n={}){let s=this.url(`/v1/workspaces/${e}/sessions/${t}/events/stream`,{after:String(n.after??0)}),r=crypto.randomUUID(),i=await this.fetchImpl(s,{method:\"GET\",headers:{...this.headers(r),Accept:\"text/event-stream\"},...n.signal?{signal:n.signal}:{}});if(v(i),!i.ok)throw await S(i,{method:\"GET\",correlationId:r});if(!i.body)throw new y(i.status,\"SSE response did not include a readable body\");return i.body}async getQueue(e,t){let n=`/v1/workspaces/${e}/sessions/${t}/queue`;return await this.sharedRead(n,()=>this.requestSessionCommand(\"GET\",n))}async moveQueueItem(e,t,n,s){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/queue/${n}/move`,s)}async editQueueItem(e,t,n,s){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/queue/${n}/edit`,s)}async steerQueueItem(e,t,n,s){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/queue/${n}/steer`,s)}async deleteQueueItem(e,t,n,s){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/queue/${n}/delete`,s)}async getComposerDraft(e,t,n={}){return await this.requestSessionCommand(\"GET\",`/v1/workspaces/${e}/sessions/${t}/composer-draft`,void 0,n)}async saveComposerDraft(e,t,n){return await this.requestSessionCommand(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/composer-draft`,n)}async submitComposerDraft(e,t,n){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/composer-draft/submit`,n)}async getSandboxRecovery(e,t){return this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/sandbox-recovery`)}async recoverSandbox(e,t,n){return this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/sandbox-recovery`,n)}async retrySession(e,t,n){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/retry`,n)}async controlSession(e,t,n){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/control`,n)}async resumeSession(e,t,n={}){return await this.controlSession(e,t,{action:\"resume\",clientEventId:n.clientEventId??crypto.randomUUID(),...n.reason?{reason:n.reason}:{},...n.expectedControlEtag?{expectedControlEtag:n.expectedControlEtag}:{}})}async cancelSession(e,t,n={}){return await this.controlSession(e,t,{action:\"cancel\",clientEventId:n.clientEventId??crypto.randomUUID(),...n.reason?{reason:n.reason}:{},...n.expectedControlEtag?{expectedControlEtag:n.expectedControlEtag}:{}})}async setWorkspacePauseTimer(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/pause-timer`,t)}async setWorkspaceInferenceState(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/inference-control`,t)}async listWorkspaceControlEvents(e,t={}){return(await this.listWorkspaceControlEventPage(e,t)).events}async listWorkspaceControlEventPage(e,t={}){let n=crypto.randomUUID(),s=await this.fetchImpl(this.url(`/v1/workspaces/${e}/control-events`,{...t.after!==void 0?{after:String(t.after)}:{},...t.limit!==void 0?{limit:String(t.limit)}:{}}),{method:\"GET\",headers:{...this.headers(n),Accept:\"application/json\"}});if(v(s),!s.ok)throw await S(s,{method:\"GET\",correlationId:n});await N(s,{method:\"GET\",correlationId:n});let r=await s.json(),i=s.headers.get(\"X-OpenGeni-Page-Bytes\"),o=s.headers.get(\"X-OpenGeni-Next-After\"),a=i===null?Number.NaN:Number(i),c=o===null?null:Number(o);return{events:r,bytes:Number.isSafeInteger(a)&&a>=0?a:new TextEncoder().encode(JSON.stringify(r)).byteLength,truncated:s.headers.get(\"X-OpenGeni-Page-Truncated\")===\"true\",nextAfter:c!==null&&Number.isSafeInteger(c)&&c>=0?c:null}}streamWorkspaceControlEvents(e,t={}){return Ie(this.workspaceControlStreamTransport(e),t)}streamWorkspaceLiveEvents(e,t={}){return Pe(this.workspaceLiveStreamTransport(e),t)}workspaceLiveStreamTransport(e){return{openStream:async(t,n,s)=>await this.openWorkspaceLiveEventStream(e,{controlAfter:t,interactionAfter:n,...s?{signal:s}:{}})}}async openWorkspaceLiveEventStream(e,t={}){let n=crypto.randomUUID(),s=await this.fetchImpl(this.url(`/v1/workspaces/${e}/live-events/stream`,{controlAfter:String(t.controlAfter??0),interactionAfter:String(t.interactionAfter??0)}),{method:\"GET\",headers:{...this.headers(n),Accept:\"text/event-stream\"},...t.signal?{signal:t.signal}:{}});if(v(s),!s.ok)throw await S(s,{method:\"GET\",correlationId:n});if(!s.body)throw new y(s.status,\"SSE response did not include a readable body\");return s.body}workspaceControlStreamTransport(e){return{openStream:async(t,n)=>await this.openWorkspaceControlEventStream(e,{after:t,...n?{signal:n}:{}})}}async openWorkspaceControlEventStream(e,t={}){let n=crypto.randomUUID(),s=await this.fetchImpl(this.url(`/v1/workspaces/${e}/control-events/stream`,{after:String(t.after??0)}),{method:\"GET\",headers:{...this.headers(n),Accept:\"text/event-stream\"},...t.signal?{signal:t.signal}:{}});if(v(s),!s.ok)throw await S(s,{method:\"GET\",correlationId:n});if(!s.body)throw new y(s.status,\"SSE response did not include a readable body\");return s.body}async steerMessage(e,t,n){let s=typeof n===\"string\"?{text:n}:n;return gt(s),await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/sessions/${t}/steer`,s)}async getGoal(e,t,n={}){let s=`/v1/workspaces/${e}/sessions/${t}/goal`;return await this.sharedRead(s,(r)=>this.requestJson(\"GET\",s,void 0,{},{signal:r}),n)}async updateGoal(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/sessions/${t}/goal`,n)}async listGoalRevisions(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/goal/revisions`)}async listGoalRevisionPage(e,t,n={}){let s=new URLSearchParams;if(n.limit!==void 0)s.set(\"limit\",String(n.limit));if(n.before!==void 0)s.set(\"before\",n.before);let r=s.size>0?`?${s.toString()}`:\"\";return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/goal/revisions/page${r}`)}async rejectGoalRevision(e,t,n,s){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/goal/revisions/${n}/reject`,s)}async rollbackGoalRevision(e,t,n,s){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/goal/revisions/${n}/rollback`,s)}async applyGoalRevision(e,t,n,s){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/goal/revisions/${n}/apply`,s)}async deleteGoal(e,t){await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/sessions/${t}/goal`)}async pauseGoal(e,t,n={}){return await this.updateGoal(e,t,{status:\"paused\",...n.rationale!==void 0?{rationale:n.rationale}:{}})}async resumeGoal(e,t){return await this.updateGoal(e,t,{status:\"active\"})}async clearSessionContext(e,t){await this.requestVoid(\"POST\",`/v1/workspaces/${e}/sessions/${t}/context/clear`,{confirm:!0})}async compactSessionContext(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/context/compact`,{})}async fsList(e,t,n={},s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/list`,n,{},s)}async fsListBatch(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/list-batch`,n,{},s)}async fsRead(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/read`,n,{},s)}async publishSandboxFileArtifact(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/artifacts/publish`,n,{},s)}async fsWrite(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/write`,n)}async fsDelete(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/delete`,n)}async fsMove(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/move`,n)}async fsMkdir(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/fs/mkdir`,n)}async gitStatus(e,t,n={},s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/git/status`,n,{},s)}async gitDiff(e,t,n={},s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/git/diff`,n,{},s)}async gitReadBatch(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/git/read-batch`,n,{},s)}async gitLog(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/git/log`,n)}async gitShow(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/git/show`,n)}async getWorkspaceCapture(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/workspace/capture`,void 0,{},n)}async getWorkspaceCaptureFile(e,t,n,s,r={}){let i={path:n};if(s!==void 0)i.revision=String(s);return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/workspace/capture/file`,void 0,i,r)}async terminalExec(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/terminal/exec`,n)}async terminalPtyOpen(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/terminal/pty`,n)}async terminalPtyWrite(e,t,n){await this.requestVoid(\"POST\",`/v1/workspaces/${e}/sessions/${t}/terminal/pty/write`,n)}async terminalPtyResize(e,t,n){await this.requestVoid(\"POST\",`/v1/workspaces/${e}/sessions/${t}/terminal/pty/resize`,n)}async terminalPtyClose(e,t,n){await this.requestVoid(\"POST\",`/v1/workspaces/${e}/sessions/${t}/terminal/pty/close`,n)}async getStreamCapabilities(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/stream-capabilities`,void 0,{},n)}async acknowledgeStream(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/stream-capabilities/acknowledge`,n)}async attachViewer(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/viewers`,n)}async heartbeatViewer(e,t,n,s){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/viewers/${n}/heartbeat`,s)}async detachViewer(e,t,n){await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/sessions/${t}/viewers/${n}`)}streamWorkspaceInteractionRevisions(e,t={}){return xe(this.workspaceInteractionRevisionStreamTransport(e),t)}workspaceInteractionRevisionStreamTransport(e){return{openStream:async(t,n)=>await this.openWorkspaceInteractionRevisionStream(e,{after:t,...n?{signal:n}:{}})}}async openWorkspaceInteractionRevisionStream(e,t={}){let n=crypto.randomUUID(),s=await this.fetchImpl(this.url(`/v1/workspaces/${e}/interaction-events/stream`,{after:String(t.after??0)}),{method:\"GET\",headers:{...this.headers(n),Accept:\"text/event-stream\"},...t.signal?{signal:t.signal}:{}});if(v(s),!s.ok)throw await S(s,{method:\"GET\",correlationId:n});if(!s.body)throw new y(s.status,\"SSE response did not include a readable body\");return s.body}async listNetworkRoutes(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/network-routes`,void 0,t.includeArchived?{includeArchived:\"true\"}:{},t)}async getNetworkRoute(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/network-routes/${encodeURIComponent(t)}`,void 0,{},n)}async createNetworkRoute(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/network-routes`,t,{},n)}async updateNetworkRoute(e,t,n,s={}){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/network-routes/${encodeURIComponent(t)}`,n,{},s)}async listSiteAuthConnections(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/site-auth-connections`,void 0,t.includeArchived?{includeArchived:\"true\"}:{},t)}async getSiteAuthConnection(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/site-auth-connections/${encodeURIComponent(t)}`,void 0,{},n)}async createSiteAuthConnection(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/site-auth-connections`,t,{},n)}async updateSiteAuthConnection(e,t,n,s={}){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/site-auth-connections/${encodeURIComponent(t)}`,n,{},s)}async listAuthRuns(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/auth-runs`,void 0,{...t.browserSessionId?{browserSessionId:t.browserSessionId}:{},...t.siteAuthConnectionId?{siteAuthConnectionId:t.siteAuthConnectionId}:{},...t.includeSettled?{includeSettled:\"true\"}:{}},t)}async getAuthRun(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/auth-runs/${encodeURIComponent(t)}`,void 0,{},n)}async startBrowserAuthRun(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/auth-runs`,n,{},s)}async reportBrowserAuthRun(e,t,n,s,r={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/auth-runs/${encodeURIComponent(n)}/report`,s,{},r)}async protectedBrowserAuthFill(e,t,n,s,r={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/auth-runs/${encodeURIComponent(n)}/protected-fill`,s,{},r)}async advanceExternalBrowserAuthRun(e,t,n,s,r={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/auth-runs/${encodeURIComponent(n)}/external-auth`,s,{},r)}async openExternalBrowserAuthFlow(e,t,n,s,r={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/auth-runs/${encodeURIComponent(n)}/external-auth/interactive`,s,{},r)}async verifyBrowserAuthRun(e,t,n,s,r={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/auth-runs/${encodeURIComponent(n)}/verify`,s,{},r)}async listInteractionInterventions(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/interaction-interventions`,void 0,{...t.resourceKind?{resourceKind:t.resourceKind}:{},...t.resourceId?{resourceId:t.resourceId}:{},...t.includeSettled?{includeSettled:\"true\"}:{}},t)}async getInteractionIntervention(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/interaction-interventions/${encodeURIComponent(t)}`,void 0,{},n)}async createInteractionIntervention(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/interaction-interventions`,t,{},n)}async resolveInteractionIntervention(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/interaction-interventions/${encodeURIComponent(t)}/resolve`,n,{},s)}async listAttachedBrowsers(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/attached-browsers`,void 0,t.includeDisconnected?{includeDisconnected:\"true\"}:{},t)}async getAttachedBrowser(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/attached-browsers/${encodeURIComponent(t)}`,void 0,{},n)}async listBrowserIdentities(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-identities`,void 0,t.includeArchived?{includeArchived:\"true\"}:{},t)}async getBrowserIdentity(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-identities/${encodeURIComponent(t)}`,void 0,{},n)}async createBrowserIdentity(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-identities`,t,{},n)}async updateBrowserIdentity(e,t,n,s={}){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/browser-identities/${encodeURIComponent(t)}`,n,{},s)}async listBrowserRevisions(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-identities/${encodeURIComponent(t)}/revisions`,void 0,{},n)}async listBrowserSessions(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions`,void 0,{},t)}async getBrowserSession(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}`,void 0,{},n)}async readBrowserClipboard(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/clipboard`,void 0,{},n)}async listBrowserDownloads(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/downloads`,void 0,{},n)}async getBrowserDownload(e,t,n,s={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/downloads/${encodeURIComponent(n)}`,void 0,{},s)}async saveBrowserDownload(e,t,n,s,r={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/downloads/${encodeURIComponent(n)}/save`,s,{},r)}async createBrowserSession(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions`,t,{},n)}async listBrowserTargets(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/targets`,void 0,{},n)}async openBrowserTarget(e,t,n={},s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/targets`,n,{},s)}async selectBrowserTarget(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/targets/${encodeURIComponent(n)}/select`,{},{},s)}async closeBrowserTarget(e,t,n,s={}){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/targets/${encodeURIComponent(n)}`,void 0,{},s)}async observeBrowserTarget(e,t,n,s={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/targets/${encodeURIComponent(n)}/observation`,void 0,{},s)}async actInBrowser(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/actions`,n,{},s)}async getBrowserActionReceipt(e,t,n,s={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/operations/${encodeURIComponent(n)}`,void 0,{},s)}async listBrowserDiagnostics(e,t,n,s={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/targets/${encodeURIComponent(n)}/diagnostics`,void 0,{...s.kinds?.length?{kinds:s.kinds.join(\",\")}:{},...s.after!==void 0?{after:String(s.after)}:{},...s.limit!==void 0?{limit:String(s.limit)}:{}},s.signal?{signal:s.signal}:{})}async attachBrowserSession(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/attachments`,n,{},s)}async heartbeatBrowserSession(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/heartbeat`,{},{},n)}async publishBrowserRevision(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/revisions`,n,{},s)}async suspendBrowserSession(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/suspend`,n,{},s)}async resumeBrowserSession(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/resume`,n,{},s)}async endBrowserSession(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/browser-sessions/${encodeURIComponent(t)}/end`,n,{},s)}async listComputerSessions(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/computer-sessions`,void 0,{},t)}async getComputerSession(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}`,void 0,{},n)}async readComputerClipboard(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/clipboard`,void 0,{},n)}async createComputerSession(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/computer-sessions`,t,{},n)}async listComputerTargets(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/targets`,void 0,{},n)}async observeComputerTarget(e,t,n,s={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/targets/${encodeURIComponent(n)}/observation`,void 0,{},s)}async captureComputerTarget(e,t,n,s={}){let r=await this.requestResponse(\"GET\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/targets/${encodeURIComponent(n)}/screenshot`,{},s),i=r.headers.get(\"content-type\")?.split(\";\",1)[0]?.trim().toLowerCase();if(i!==\"image/jpeg\"&&i!==\"image/png\")throw await x(r,\"computer frame media type is invalid\"),new y(502,\"computer frame media type is invalid\");let o=r.headers.get(\"x-opengeni-computer-frame\");if(!o||o.length>32768)throw await x(r,\"computer frame metadata is invalid\"),new y(502,\"computer frame metadata is invalid\");let a;try{a=et(o)}catch{throw await x(r,\"computer frame metadata is invalid\"),new y(502,\"computer frame metadata is invalid\")}let c=await se(r,262144,null);if(yn(a,{computerSessionId:t,targetId:n,mediaType:i,sha256:await Rt(c)}))throw new y(502,\"computer frame evidence does not match its request\");return{...a,data:c}}async actInComputer(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/actions`,n,{},s)}async getComputerActionReceipt(e,t,n,s={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/operations/${encodeURIComponent(n)}`,void 0,{},s)}async attachComputerSession(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/attachments`,n,{},s)}async heartbeatComputerSession(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/heartbeat`,{},{},n)}async endComputerSession(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/computer-sessions/${encodeURIComponent(t)}/end`,n,{},s)}async getClientConfig(e={}){let t=await this.requestJson(\"GET\",\"/v1/config/client\",void 0,{},e);if(t.apiContractRevision!==U)throw new H(U,String(t.apiContractRevision||\"(missing)\"));return t}async getWorkspaceModelCatalog(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/model-catalog`,void 0,{},t)}async listWorkspaceGatewayCustomModels(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/gateway-custom-models`)}async createWorkspaceGatewayCustomModel(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/gateway-custom-models`,t)}async deleteWorkspaceGatewayCustomModel(e,t,n){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(t))throw TypeError(\"customModelId must be a UUID\");await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/gateway-custom-models/${encodeURIComponent(t)}`,n)}async listWorkspaceOpenRouterCustomModels(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/openrouter-custom-models`)}async createWorkspaceOpenRouterCustomModel(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/openrouter-custom-models`,t)}async deleteWorkspaceOpenRouterCustomModel(e,t,n){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(t))throw TypeError(\"customModelId must be a UUID\");await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/openrouter-custom-models/${encodeURIComponent(t)}`,n)}async getOrganizationModelProviderConnection(e,t){return await this.requestJson(\"GET\",`/v1/organizations/${e}/model-providers/${t}`)}async upsertOrganizationModelProviderConnection(e,t,n){return await this.requestJson(\"PUT\",`/v1/organizations/${e}/model-providers/${t}`,n)}async revokeOrganizationModelProviderConnection(e,t,n){return await this.requestJson(\"DELETE\",`/v1/organizations/${e}/model-providers/${t}`,n)}async listOrganizationProviderCustomModels(e,t){return await this.requestJson(\"GET\",`/v1/organizations/${e}/model-providers/${t}/custom-models`)}async createOrganizationProviderCustomModel(e,t,n){return await this.requestJson(\"POST\",`/v1/organizations/${e}/model-providers/${t}/custom-models`,n)}async deleteOrganizationProviderCustomModel(e,t,n,s){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(n))throw TypeError(\"customModelId must be a UUID\");return await this.requestJson(\"DELETE\",`/v1/organizations/${e}/model-providers/${t}/custom-models/${encodeURIComponent(n)}`,s)}async getWorkspaceModelAccessPolicy(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/model-policy`)}async updateWorkspaceModelAccessPolicy(e,t){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/model-policy`,t)}async getWorkspaceRealtimeModelCatalog(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/realtime-model-catalog`,void 0,{},t)}async getAccessContext(){return await this.requestJson(\"GET\",\"/v1/access/me\")}async listOrganizationMemberships(){return await this.requestJson(\"GET\",\"/v1/organization-memberships\")}async listUserResourceAuthorities(e,t){let n=new URLSearchParams({scope:\"user\",resourceKind:t.resourceKind});if(t.cursor)n.set(\"cursor\",t.cursor);if(t.limit!==void 0)n.set(\"limit\",String(t.limit));return await this.requestJson(\"GET\",`/v1/workspaces/${e}/user-resource-authorities?${n.toString()}`)}async revokeUserResourceGrant(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/user-resource-authorities/grants/${t}?scope=user`)}async createOrganization(e){return await this.requestJson(\"POST\",\"/v1/organizations\",e)}async createAdditionalOrganization(e){return await this.requestJson(\"POST\",\"/v1/organizations/additional\",e)}async listOrganizationInvitations(e={}){let t=new URLSearchParams;if(e.cursor)t.set(\"cursor\",e.cursor);if(e.limit!==void 0)t.set(\"limit\",String(e.limit));let n=t.size>0?`?${t.toString()}`:\"\";return await this.requestJson(\"GET\",`/v1/organization-invitations${n}`)}async listOrganizationInvitationsForOrganization(e,t={}){let n=new URLSearchParams;if(t.cursor)n.set(\"cursor\",t.cursor);if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.size>0?`?${n.toString()}`:\"\";return await this.requestJson(\"GET\",`/v1/organizations/${e}/invitations${s}`)}async createOrganizationInvitation(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/invitations`,t)}async acceptOrganizationInvitation(e,t){return await this.requestJson(\"POST\",`/v1/organization-invitations/${e}/accept`,t)}async revokeOrganizationInvitation(e,t,n){return await this.requestJson(\"POST\",`/v1/organizations/${e}/invitations/${t}/revoke`,n)}async listOrganizationAdministrationMembers(e){return await this.requestJson(\"GET\",`/v1/organizations/${e}/members`)}async listOrganizationMembers(e){return await this.listOrganizationAdministrationMembers(e)}async getOrganizationAdministrationOverview(e){return await this.requestJson(\"GET\",`/v1/organizations/${e}/overview`)}async createOrganizationWorkspace(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/workspaces`,t)}async updateOrganizationWorkspace(e,t,n){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/workspaces/${t}`,n)}async updateOrganizationWorkspaceSettings(e,t,n){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/workspaces/${t}/settings`,n)}async deleteOrganizationWorkspace(e,t){await this.requestVoid(\"DELETE\",`/v1/organizations/${e}/workspaces/${t}`)}async putOrganizationWorkspaceMember(e,t,n,s){return await this.requestJson(\"PUT\",`/v1/organizations/${e}/workspaces/${t}/members/${n}`,s)}async revokeOrganizationWorkspaceMember(e,t,n,s){return await this.requestJson(\"POST\",`/v1/organizations/${e}/workspaces/${t}/members/${n}/revoke`,s)}async updateOrganizationName(e,t){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}`,t)}async updateOrganizationMember(e,t,n){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/members/${t}`,n)}async getOrganizationRetentionPolicy(e){return await this.requestJson(\"GET\",`/v1/organizations/${e}/retention-policy`)}async updateOrganizationRetentionPolicy(e,t){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/retention-policy`,t)}async getOrganizationRecovery(e){return await this.requestJson(\"GET\",`/v1/organizations/${e}/recovery`)}async configureOrganizationRecoveryPolicy(e,t){return await this.requestJson(\"PUT\",`/v1/organizations/${e}/recovery/policy`,t)}async acceptOrganizationRecoveryCustody(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/recovery/policy/accept`,t)}async disableOrganizationRecoveryPolicy(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/recovery/policy/disable`,t)}async startOrganizationRecoveryOperation(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/recovery/operations`,t)}async approveOrganizationRecoveryOperation(e,t,n){return await this.requestJson(\"POST\",`/v1/organizations/${e}/recovery/operations/${t}/approve`,n)}async cancelOrganizationRecoveryOperation(e,t,n){return await this.requestJson(\"POST\",`/v1/organizations/${e}/recovery/operations/${t}/cancel`,n)}async executeOrganizationRecoveryOperation(e,t,n){return await this.requestJson(\"POST\",`/v1/organizations/${e}/recovery/operations/${t}/execute`,n)}async searchPublicSkills(e,t){return this.requestJson(\"GET\",`/v1/workspaces/${encodeURIComponent(e)}/skills/search?q=${encodeURIComponent(t)}`)}async listWorkspaces(){return await this.requestJson(\"GET\",\"/v1/workspaces\")}connectTransport(){let e=(t)=>`/v1/workspaces/${encodeURIComponent(t)}/connect`;return{catalog:(t,n)=>this.requestJson(\"GET\",`${e(t)}/catalog`,void 0,void 0,n),accounts:(t,n)=>this.requestJson(\"GET\",`${e(t)}/accounts`,void 0,void 0,n),pending:(t,n)=>this.requestJson(\"GET\",`${e(t)}/attempts`,void 0,void 0,n),begin:(t,n,s)=>this.requestJson(\"POST\",`${e(t)}/attempts`,n,void 0,s),get:(t,n,s)=>this.requestJson(\"GET\",`${e(t)}/attempts/${encodeURIComponent(n)}`,void 0,void 0,s),advance:(t,n,s,r)=>this.requestJson(\"POST\",`${e(t)}/attempts/${encodeURIComponent(n)}/advance`,s,void 0,r),cancel:(t,n,s,r)=>this.requestJson(\"POST\",`${e(t)}/attempts/${encodeURIComponent(n)}/cancel`,s,void 0,r),disconnect:async(t,n,s)=>{if(n.startsWith(\"social:\")){let o=n.slice(7);if(!/^[0-9a-f-]{36}$/i.test(o))throw Error(\"Invalid social account ID\");await this.disconnectSocialConnection(t,o);return}if(n.startsWith(\"lens-registration:\")){let o=n.slice(18);if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(o))throw Error(\"Invalid Lens registration ID\");await this.requestJson(\"DELETE\",`/v1/workspaces/${encodeURIComponent(t)}/pr-review/registrations/${o}`,void 0,void 0,s);return}if(n.startsWith(\"github-installation:\")){let o=n.slice(20);if(!/^[1-9][0-9]*$/.test(o)||!Number.isSafeInteger(Number(o)))throw Error(\"Invalid GitHub installation ID\");await this.requestJson(\"DELETE\",`/v1/workspaces/${encodeURIComponent(t)}/github/installations/${o}`,void 0,void 0,s);return}let r=s?.expectedVersion;if(r!==void 0&&(!Number.isSafeInteger(r)||r<1))throw Error(\"invalid expected connection version\");let i=r===void 0?\"\":`?expectedVersion=${r}`;await this.requestJson(\"DELETE\",`/v1/workspaces/${encodeURIComponent(t)}/connections/${encodeURIComponent(n)}${i}`,void 0,void 0,s)}}}async browseAtlassianSources(e,t){return this.requestJson(\"GET\",`/v1/workspaces/${e}/connections/atlassian/${t}/browse`)}async saveAtlassianSources(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/atlassian/${t}/source`,n)}async setAtlassianLifecycle(e,t,n){return this.requestJson(\"PATCH\",`/v1/workspaces/${e}/connections/atlassian/${t}/lifecycle`,n)}async beginConnect(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/connect/attempts`,t)}async createWorkspace(e){return await this.requestJson(\"POST\",\"/v1/workspaces\",e)}async ensureWorkspace(e){return await this.requestJson(\"PUT\",\"/v1/workspaces/external\",e)}async getWorkspace(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}`)}async getWorkspaceState(e,t={}){let n=new URLSearchParams;if(t.attemptId)n.set(\"attemptId\",t.attemptId);let s=n.size>0?`?${n.toString()}`:\"\";return await this.requestJson(\"GET\",`/v1/workspaces/${e}/workspace-state${s}`)}async exportWorkspaceState(e,t={}){let n=new URLSearchParams;if(t.attemptId)n.set(\"attemptId\",t.attemptId);let s=n.size>0?`?${n.toString()}`:\"\";return await this.requestJson(\"GET\",`/v1/workspaces/${e}/workspace-state/export${s}`)}async updateWorkspace(e,t){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}`,t)}async listWorkspaceInstructionPolicies(e,t={}){let n=new URLSearchParams;if(t.kind!==void 0)n.set(\"kind\",t.kind);if(t.scope!==void 0)n.set(\"scope\",t.scope);if(t.roleKey!==void 0)n.set(\"roleKey\",t.roleKey);if(t.afterRevision!==void 0)n.set(\"afterRevision\",String(t.afterRevision));if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.toString();return await this.requestJson(\"GET\",`/v1/workspaces/${e}/instruction-policies${s?`?${s}`:\"\"}`)}async getWorkspaceLearningHistory(e,t={}){let n=new URLSearchParams;if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.toString();return await this.requestJson(\"GET\",`/v1/workspaces/${e}/learning${s?`?${s}`:\"\"}`)}async undoGovernedLearningActivation(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/learning/activations/${encodeURIComponent(t)}/undo`,n)}async getWorkspaceInstructionPolicyRevision(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/instruction-policies/${encodeURIComponent(t)}`)}async createWorkspaceInstructionPolicyDraft(e,t,n={}){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/instruction-policies/drafts`,t,n)}async listWorkspaceInstructionPolicyOnboardingProposals(e,t={}){let n=new URLSearchParams;if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.toString();return await this.requestJson(\"GET\",`/v1/workspaces/${e}/instruction-policies/onboarding-proposals${s?`?${s}`:\"\"}`)}async createWorkspaceInstructionPolicyOnboardingProposal(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/instruction-policies/onboarding-proposals`,t)}async importLegacyWorkspaceInstructionPolicyDraft(e,t={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/instruction-policies/import-legacy`,t)}async diffWorkspaceInstructionPolicyRevisions(e,t){let n=new URLSearchParams({fromRevisionId:t.fromRevisionId,toRevisionId:t.toRevisionId});return await this.requestJson(\"GET\",`/v1/workspaces/${e}/instruction-policies/diff?${n}`)}async activateWorkspaceInstructionPolicyRevision(e,t,n,s={}){return await this.requestSessionCommand(\"POST\",`/v1/workspaces/${e}/instruction-policies/${encodeURIComponent(t)}/activate`,n,s)}async rollbackWorkspaceInstructionPolicyRevision(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/instruction-policies/rollback`,t)}async listCompanyProfile(e,t={}){let n=new URLSearchParams;if(t.afterRevision!==void 0)n.set(\"afterRevision\",String(t.afterRevision));if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.toString();return await this.requestJson(\"GET\",`/v1/workspaces/${e}/company-profile${s?`?${s}`:\"\"}`)}async getCompanyProfileRevision(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/company-profile/revisions/${encodeURIComponent(t)}`)}async getCompanyProfileAgentPolicy(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/company-profile/agent-policy`)}async updateCompanyProfileAgentPolicy(e,t){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/company-profile/agent-policy`,t)}async updateCompanyProfile(e,t){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/company-profile`,t)}async diffCompanyProfileRevisions(e,t){let n=new URLSearchParams(t);return await this.requestJson(\"GET\",`/v1/workspaces/${e}/company-profile/diff?${n}`)}async activateCompanyProfileRevision(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/company-profile/revisions/${encodeURIComponent(t)}/activate`,n)}async rollbackCompanyProfile(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/company-profile/rollback`,t)}async listPreferenceRegistry(e,t={}){let n=new URLSearchParams;if(t.scope)n.set(\"scope\",t.scope);if(t.status)n.set(\"status\",t.status);if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.toString();return await this.requestJson(\"GET\",`/v1/workspaces/${e}/preferences${s?`?${s}`:\"\"}`)}async getPreferenceRegistry(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}`)}async createPreferenceRegistryProposal(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/proposals`,t)}async activatePreferenceRegistryRevision(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}/activate`,n)}async correctPreferenceRegistry(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}/correct`,n)}async changePreferenceRegistryScope(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}/scope`,n)}async deactivatePreferenceRegistry(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}/deactivate`,n)}async supersedePreferenceRegistry(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}/supersede`,n)}async rejectPreferenceRegistryProposal(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/${encodeURIComponent(t)}/reject`,n)}async getPreferenceRegistrySummary(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/preferences/summary`)}async getPreferenceRegistryFullContent(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/preferences/full-content`,{retrievalHandle:t})}async deleteWorkspace(e){await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}`)}async listWorkspaceMembers(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/members`)).members}async listWorkspaceMemberCandidates(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/member-candidates`)).members}async addWorkspaceMember(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/members`,t)}async updateWorkspaceMember(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/members/${encodeURIComponent(t)}`,n)}async removeWorkspaceMember(e,t){await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/members/${encodeURIComponent(t)}`)}async prepareSlackUserLinkAccess(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/slack/user-link-intents`,t)}async getSlackUserLinkAccess(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/slack/user-link-intents/${t}`)}async requestSlackUserLinkWorkspaceAccess(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/slack/user-link-intents/${t}/request-access`,n)}async cancelSlackUserLinkAccess(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/slack/user-link-intents/${t}/cancel`,n)}async listSlackUserLinkAccessRequests(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/members/access-requests/slack`)).requests}async approveSlackUserLinkAccessRequest(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/members/access-requests/slack/${t}/approve`,n)}async denySlackUserLinkAccessRequest(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/members/access-requests/slack/${t}/deny`,n)}async createScheduledTask(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/scheduled-tasks`,mt(t))}async updateScheduledTask(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/scheduled-tasks/${t}`,mt(n))}async pauseScheduledTask(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/scheduled-tasks/${t}/pause`)}async resumeScheduledTask(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/scheduled-tasks/${t}/resume`)}async triggerScheduledTask(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/scheduled-tasks/${t}/trigger`,n.triggerId?{triggerId:n.triggerId}:void 0)}async deleteScheduledTask(e,t){await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/scheduled-tasks/${t}`)}async listScheduledTaskRuns(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/scheduled-tasks/${t}/runs`,void 0,{...n.limit!==void 0?{limit:String(n.limit)}:{}})}async listVariableSets(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/variable-sets`)}async resolveVariableSetAttachments(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/variable-sets/resolve-attachments`,t)}async createVariableSet(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/variable-sets`,t)}async getVariableSet(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/variable-sets/${t}`)}async getVariableSetVariable(e,t,n){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/variable-sets/${t}/variables/${encodeURIComponent(n)}`)}async updateVariableSet(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/variable-sets/${t}`,n)}async deleteVariableSet(e,t){await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/variable-sets/${t}`)}async setVariableSetVariable(e,t,n,s){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/variable-sets/${t}/variables/${encodeURIComponent(n)}`,{value:s})}async deleteVariableSetVariable(e,t,n){await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/variable-sets/${t}/variables/${encodeURIComponent(n)}`)}async listChannels(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/channels`)}async createChannel(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/channels`,t)}async updateChannel(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/channels/${t}`,n)}async reorderChannels(e,t){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/channels/order`,t)}async deleteChannel(e,t){await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/channels/${t}`)}async updateSessionChannel(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/sessions/${t}/channel`,n)}async listRigs(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/rigs`)}async createRig(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/rigs`,t)}async getRig(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/rigs/${t}`)}async updateRig(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/rigs/${t}`,n)}async deleteRig(e,t){await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/rigs/${t}`)}async listRigVersions(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/rigs/${t}/versions`)}async activateRigVersion(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/rigs/${t}/versions/${n}/activate`)}async listRigChanges(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/rigs/${t}/changes`)}async proposeRigChange(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/rigs/${t}/changes`,n)}async getRigChange(e,t,n){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/rigs/${t}/changes/${n}`)}async verifyRigChange(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/rigs/${t}/changes/${n}/verify`)}async promoteRigChange(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/rigs/${t}/changes/${n}/promote`)}async verifyRig(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/rigs/${t}/verify`)}async listEnvironments(e){return await this.listVariableSets(e)}async createEnvironment(e,t){return await this.createVariableSet(e,t)}async getEnvironment(e,t){return await this.getVariableSet(e,t)}async updateEnvironment(e,t,n){return await this.updateVariableSet(e,t,n)}async deleteEnvironment(e,t){await this.deleteVariableSet(e,t)}async setEnvironmentVariable(e,t,n,s){return await this.setVariableSetVariable(e,t,n,s)}async deleteEnvironmentVariable(e,t,n){await this.deleteVariableSetVariable(e,t,n)}async beginFileUpload(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/files/uploads`,t,{},n)}async completeFileUpload(e,t,n={}){return(await this.requestJson(\"POST\",`/v1/workspaces/${e}/files/uploads/${t}/complete`,void 0,{},n)).file}async uploadFile(e,t){if(t.timeoutMs!==void 0&&(!Number.isFinite(t.timeoutMs)||t.timeoutMs<=0))throw Error(\"File upload timeout must be a positive number\");gn();let n=async(l,d)=>{let p=new AbortController,u,g=new Promise((b,m)=>{u=setTimeout(()=>{p.abort(),m(Error(\"File upload timed out. Retry the upload.\"))},l)});try{return await Promise.race([d(p.signal),g])}finally{if(u!==void 0)clearTimeout(u)}},s=t.data instanceof Uint8Array?new Blob([t.data.slice()]):t.data instanceof ArrayBuffer?t.data.slice(0):t.data,r=typeof s===\"string\"?new TextEncoder().encode(s).byteLength:s instanceof Blob?s.size:s.byteLength,i=t.sha256??await mn(s),o=await n(30000,async(l)=>await this.beginFileUpload(e,{filename:t.filename,contentType:t.contentType,...t.scope?{scope:t.scope}:{},sizeBytes:r,sha256:i},{signal:l})),a=t.timeoutMs??Math.max(120000,Math.ceil(r/262144)*1000),c=await n(a,async(l)=>await this.fetchImpl(o.putUrl,{method:\"PUT\",credentials:\"omit\",headers:{...o.requiredHeaders},body:s,signal:l}));if(!c.ok)throw await S(c,{method:\"PUT\"});return await n(30000,async(l)=>await this.completeFileUpload(e,o.uploadId,{signal:l}))}async listFiles(e,t={}){let n=new URLSearchParams;if(t.scope)n.set(\"scope\",t.scope);if(t.limit!==void 0)n.set(\"limit\",String(t.limit));if(t.cursor)n.set(\"cursor\",t.cursor);return this.requestJson(\"GET\",`/v1/workspaces/${e}/files${n.size?`?${n}`:\"\"}`)}async getFile(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/files/${t}${n.sessionId?`?sessionId=${encodeURIComponent(n.sessionId)}`:\"\"}`,void 0,{},n)}async getRetainedArtifact(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/artifacts/${t}`)}async getRetainedArtifactContent(e,t,n={}){return await this.getRetainedArtifactContentAtPath(`/v1/workspaces/${e}/artifacts/${t}/content`,n)}async getSessionRetainedArtifact(e,t,n){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/artifacts/${n}`)}async getSessionRetainedArtifactContent(e,t,n,s={}){return await this.getRetainedArtifactContentAtPath(`/v1/workspaces/${e}/sessions/${t}/artifacts/${n}/content`,s)}async downloadRetainedArtifact(e,t,n={}){ft(e,t);let s=await this.downloadRetainedArtifactBytes(t,n);return{artifact:t,bytes:s}}async createRetainedArtifactDownloadUrl(e,t,n={}){ft(e,t);let s=await this.createFileDownloadUrl(e,t.artifactId,n);return bt(s),s}async downloadRetainedScreenshot(e,t,n,s={}){let r=await this.getSessionRetainedArtifact(e,t,n);if(!r.available)return{metadata:r,bytes:null};if(r.kind!==\"computer_screenshot\"||r.contentType!==\"image/png\"||!r.dimensions||r.originalBytes<=0||r.originalBytes>tt)throw new y(502,\"retained screenshot metadata is invalid\");let i=await this.downloadRetainedArtifactBytes(r,s);return{metadata:r,bytes:i}}async downloadRetainedArtifactBytes(e,t){let n=t.maxRetries??2;if(!Number.isInteger(n)||n<0||n>3)throw RangeError(\"retained artifact maxRetries must be an integer from 0 to 3\");let s=new Uint8Array(e.originalBytes),r=Math.min(e.retrieval.maxRangeBytes,ee);if(!Number.isSafeInteger(r)||r<=0)throw new y(502,\"retained artifact range metadata is invalid\");for(let i=0;i<s.byteLength;i+=r){t.signal?.throwIfAborted();let o=Math.min(i+r,s.byteLength)-1,a=null;for(let l=0;l<=n;l+=1)try{a=await this.getRetainedArtifactContentAtPath(e.retrieval.path,{range:`bytes=${i}-${o}`,...t.signal?{signal:t.signal}:{}});break}catch(d){if(t.signal?.throwIfAborted(),l>=n||d instanceof y&&d.status>=400&&d.status<500)throw d}if(!a)throw new y(502,\"retained artifact range retry exhausted\");let c=o-i+1;if(a.status!==206||a.contentType!==e.contentType||a.contentLength!==c||a.contentRange!==`bytes ${i}-${o}/${e.originalBytes}`)throw new y(502,\"retained artifact range response is invalid\");s.set(a.bytes,i)}if(await Rt(s)!==e.sha256)throw new y(502,\"retained artifact checksum mismatch\");return s}async getRetainedArtifactContentAtPath(e,t){if(t.range&&(t.range.length>128||/[^\\\\x20-\\\\x7e]/.test(t.range)))throw RangeError(\"retained artifact range must be at most 128 printable ASCII bytes\");let n=crypto.randomUUID(),s=await this.fetchImpl(this.url(e),{method:\"GET\",headers:{...this.headers(n),Accept:\"application/octet-stream\",...t.range?{Range:t.range}:{}},...t.signal?{signal:t.signal}:{}});try{v(s)}catch(o){throw await x(s,\"retained artifact API contract mismatch\"),o}if(!s.ok)throw await S(s,{method:\"GET\",correlationId:n});if(s.status!==200&&s.status!==206)throw await x(s,\"unexpected retained artifact response status\"),new y(s.status,\"unexpected retained artifact response status\");if(s.headers.get(\"accept-ranges\")!==\"bytes\")throw await x(s,\"retained artifact response omitted byte-range support\"),new y(502,\"retained artifact response omitted byte-range support\");let r;try{r=fn(s.headers.get(\"content-length\"))}catch(o){throw await x(s,\"invalid retained artifact content-length\"),o}let i=await se(s,ee,r);return{bytes:i,status:s.status,contentType:s.headers.get(\"content-type\")??\"application/octet-stream\",contentLength:i.byteLength,contentRange:s.headers.get(\"content-range\"),acceptRanges:\"bytes\"}}async createFileDownloadUrl(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/files/${t}/download-url${n.sessionId?`?sessionId=${encodeURIComponent(n.sessionId)}`:\"\"}`,void 0,{},n)}async getVideoGenerationSettings(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/video-generation`,void 0,{},t)}async updateVideoGenerationPolicy(e,t,n={}){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/video-generation/policy`,t,{},n)}async getVideoGenerationOperation(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/video-generation/operations/${t}`,void 0,{},n)}async createVideoArtifactPlaybackSource(e,t,n={}){let s=await this.requestJson(\"POST\",`/v1/workspaces/${e}/artifacts/${t}/playback-source`,void 0,{},n);return Rn(s,t),s}async createDocumentBase(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/document-bases`,t)}async getDocumentBase(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/document-bases/${t}`)}async addDocument(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/document-bases/${t}/documents`,n)}async listDocuments(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/document-bases/${t}/documents`)}async getDocumentOriginalFile(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/documents/${t}/original-file`)}async createKnowledgeDrop(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/drops`,t)}async moveDocument(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/documents/${t}/move`,n)}async deleteDocument(e,t,n){await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/document-bases/${t}/documents/${n}`)}async listKnowledgeEntries(e,t={}){return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries/search`,t)}async getKnowledgeEntry(e,t,n={}){let s=new URLSearchParams;if(n.revisionId!==void 0)s.set(\"revisionId\",n.revisionId);if(n.view!==void 0)s.set(\"view\",n.view);let r=s.toString();return this.requestJson(\"GET\",`/v1/workspaces/${e}/knowledge/entries/${t}${r?`?${r}`:\"\"}`)}async createKnowledgeFileDownloadUrl(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries/${t}/file/download-url`,n?{revisionId:n}:{})}async saveKnowledgeEntry(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries`,t)}async reviewKnowledgeEntry(e,t){let{entryId:n,...s}=t;return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries/${n}/review`,s)}async listKnowledgeReviewBatches(e,t={}){let n=new URLSearchParams;for(let[s,r]of Object.entries(t))if(r!==void 0)n.set(s,String(r));return this.requestJson(\"GET\",`/v1/workspaces/${e}/knowledge/review-groups?${n}`)}async reviewKnowledgeEntries(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries/review`,t)}async listKnowledgeEntryHistory(e,t,n){return this.requestJson(\"GET\",`/v1/workspaces/${e}/knowledge/entries/${t}/history${n?`?beforeRevision=${n}`:\"\"}`)}async restoreKnowledgeEntry(e,t){let{entryId:n,...s}=t;return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries/${n}/restore`,s)}async archiveKnowledgeEntry(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/knowledge/entries/${t}/archive`,n)}async getAgentLearningSettings(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/agent-learning/read`,{scope:t,source:n})}async saveAgentLearningSettings(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/agent-learning`,t)}async listAgentLearningOverrides(e,t){return this.requestJson(\"GET\",`/v1/workspaces/${e}/agent-learning/overrides?scope=${t}`)}async reviewAgentInstruction(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/agent-learning/instructions/review`,t)}async listAgentInstructionReviews(e,t){return this.requestJson(\"GET\",`/v1/workspaces/${e}/agent-learning/instructions/reviews${t?`?cursor=${encodeURIComponent(t)}`:\"\"}`)}async updateWorkspaceSettings(e,t){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/settings`,t)}async setWorkspaceDefaultRig(e,t){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/default-rig`,t)}async listCapabilities(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/capabilities`)}async createCapability(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/capabilities`,t)}async getConnectorToolPermissions(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/capabilities/${encodeURIComponent(t)}/tool-permissions`,void 0,{},n)}async updateConnectorToolPermissions(e,t,n,s={}){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/capabilities/${encodeURIComponent(t)}/tool-permissions`,n,{},s)}async enableCapability(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/capabilities/${encodeURIComponent(t)}/enable`,n)}async disableCapability(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/capabilities/${encodeURIComponent(t)}/disable`)}async listArtifactCatalog(e,t={}){let n=new URLSearchParams;for(let r of[\"sourceSessionId\",\"q\",\"kind\",\"sort\",\"status\",\"limit\",\"cursor\"])if(t[r]!==void 0)n.set(r,String(t[r]));let s=n.size?`?${n.toString()}`:\"\";return this.requestJson(\"GET\",`/v1/workspaces/${encodeURIComponent(e)}/artifact-catalog${s}`,void 0,void 0,t)}async listWorkspaceArtifacts(e,t={}){let n=new URLSearchParams;if(t.limit!==void 0)n.set(\"limit\",String(t.limit));if(t.cursor)n.set(\"cursor\",t.cursor);if(t.status)n.set(\"status\",t.status);if(t.sourceSessionId)n.set(\"sourceSessionId\",t.sourceSessionId);let s=n.size>0?`?${n.toString()}`:\"\";return await this.requestJson(\"GET\",`/v1/workspaces/${encodeURIComponent(e)}/published-artifacts${s}`,void 0,void 0,t)}async getWorkspaceArtifact(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${encodeURIComponent(e)}/published-artifacts/${encodeURIComponent(t)}`,void 0,void 0,n)}async getWorkspaceArtifactHtml(e,t,n){return(await this.requestResponse(\"GET\",`/v1/workspaces/${encodeURIComponent(e)}/published-artifacts/${encodeURIComponent(t)}/html`,{versionId:n.versionId},n)).text()}async rollbackWorkspaceArtifact(e,t,n,s={}){return await this.requestJson(\"POST\",`/v1/workspaces/${encodeURIComponent(e)}/published-artifacts/${encodeURIComponent(t)}/rollback`,n,void 0,s)}async setWorkspaceArtifactStatus(e,t,n,s={}){return await this.requestJson(\"PATCH\",`/v1/workspaces/${encodeURIComponent(e)}/published-artifacts/${encodeURIComponent(t)}/status`,n,void 0,s)}async discoverMcpCapabilities(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/capabilities/discovery/mcp-registry`,void 0,{...t.query!==void 0?{query:t.query}:{},...t.limit!==void 0?{limit:String(t.limit)}:{}})}async discoverPlugins(e,t={}){return this.requestJson(\"GET\",\"/v1/workspaces/\"+e+\"/capabilities/discovery/plugins\",void 0,{...t.id?{id:t.id}:{},...t.query?{query:t.query}:{},...t.provider?{provider:t.provider}:{},...t.offset!==void 0?{offset:String(t.offset)}:{}})}async inspectMcpAuthentication(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/capabilities/discovery/mcp-auth`,{url:t})}async listApiIntegrations(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations`)}async listIntegrationDefinitions(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/definitions`)}async previewApiIntegration(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/preview`,t)}async startApiIntegrationOAuth(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/oauth/start`,t)}async installApiIntegration(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/install`,t)}async previewApiIntegrationUninstall(e,t,n){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/uninstall-preview`)}async uninstallApiIntegration(e,t,n,s){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}`,s)}async listIntegrationFacets(e,t,n){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/facets`)}async configureIntegrationFacet(e,t,n,s,r){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/facets/${encodeURIComponent(s)}`,r)}async browseGoogleDriveFacetSource(e,t,n,s,r={}){let i=new URLSearchParams;if(r.parentId)i.set(\"parentId\",r.parentId);if(r.pageToken)i.set(\"pageToken\",r.pageToken);let o=i.size>0?`?${i}`:\"\";return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/facets/${encodeURIComponent(s)}/browse${o}`)}async saveGoogleDriveFacetSource(e,t,n,s,r){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/facets/${encodeURIComponent(s)}/source`,r)}async pauseIntegrationFacet(e,t,n,s,r){return await this.mutateIntegrationFacetLifecycle(e,t,n,s,\"pause\",r)}async resumeIntegrationFacet(e,t,n,s,r){return await this.mutateIntegrationFacetLifecycle(e,t,n,s,\"resume\",r)}async removeIntegrationFacet(e,t,n,s,r){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/facets/${encodeURIComponent(s)}`,r)}async mutateIntegrationFacetLifecycle(e,t,n,s,r,i){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/integrations/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}/facets/${encodeURIComponent(s)}/${r}`,i)}async previewPlugin(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/plugins/preview`,t)}async getInstalledPluginDetails(e,t){return this.requestJson(\"GET\",`/v1/workspaces/${e}/plugins/details`,void 0,{pluginKey:t})}async listInstalledPlugins(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/plugins`)}async installPlugin(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/plugins/install`,t)}async previewPluginUninstall(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/plugins/${encodeURIComponent(t)}/uninstall-preview`)}async uninstallPlugin(e,t,n){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/plugins/${encodeURIComponent(t)}`,n)}async previewSkillImport(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/preview`,t)}async installSkill(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/install`,t)}async listInstalledSkills(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/skills`)}async listWorkspaceSkills(e,t={}){let n=new URLSearchParams;if(t.cursor!==void 0)n.set(\"cursor\",t.cursor);if(t.limit!==void 0)n.set(\"limit\",String(t.limit));let s=n.size?`?${n.toString()}`:\"\";return this.requestJson(\"GET\",`/v1/workspaces/${e}/skills/content${s}`)}async readWorkspaceSkill(e,t,n){let s=n?`?revisionId=${encodeURIComponent(n)}`:\"\";return this.requestJson(\"GET\",`/v1/workspaces/${e}/skills/content/${encodeURIComponent(t)}${s}`)}async saveWorkspaceSkill(e,t){return this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/content/save`,t)}async approveWorkspaceSkill(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/content/${encodeURIComponent(t)}/approve`,n)}async restoreWorkspaceSkill(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/content/${encodeURIComponent(t)}/restore`,n)}async rejectWorkspaceSkill(e,t,n){return this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/content/${encodeURIComponent(t)}/reject`,n)}async installLibrarySkill(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/skills/library/${encodeURIComponent(t)}/install`,n)}async previewSkillUninstall(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/skills/${encodeURIComponent(t)}/uninstall-preview`)}async uninstallSkill(e,t,n){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/skills/${encodeURIComponent(t)}`,n)}async listOwnConnectionAccounts(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/connections/accounts`)).connections}async listConnections(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/connections`)).connections}async personalGitHubStatus(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/connections/github`)}async startPersonalGitHubOAuth(e,t={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/github/oauth/start`,t)}async reconnectPersonalGitHub(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/${t}/github/reconnect`,n)}async disconnectPersonalGitHub(e,t,n){return(await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/connections/${t}`,n)).connection}async listPersonalGitHubRepositories(e,t,n={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/connections/${t}/github/repositories`,void 0,{...n.cursor!==void 0?{cursor:String(n.cursor)}:{},...n.limit!==void 0?{limit:String(n.limit)}:{}})}async replacePersonalGitHubRepositorySelections(e,t,n){return await this.requestJson(\"PUT\",`/v1/workspaces/${e}/connections/${t}/github/repositories`,n)}async verifyPersonalGitHubRepositorySelections(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/${t}/github/repositories/verify`,n)}async listSlackInstallationBindings(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/connections/slack-bot/bindings`)).bindings}async createConnection(e,t){return(await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections`,t)).connection}async installFikenConnection(e,t){return(await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/fiken/install`,t)).connection}async startFikenOAuth(e,t={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/fiken/oauth/start`,t)}async startOpenGeniSlackBotInstall(e,t={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/slack-bot/install`,t)}async listOpenGeniSlackReactionChannels(e,t,n){let s=new URLSearchParams({connectionId:t});if(n)s.set(\"cursor\",n);return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/slack/reaction-channels?${s}`)}async listOpenGeniSlackChannelRoutes(e,t){let n=new URLSearchParams({connectionId:t});return await this.requestJson(\"GET\",`/v1/workspaces/${e}/integrations/slack/channel-routes?${n}`)}async updateOpenGeniSlackChannelRoutes(e,t){await this.requestJson(\"PUT\",`/v1/workspaces/${e}/integrations/slack/channel-routes`,t)}async updateConnection(e,t,n){return(await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/connections/${t}`,n)).connection}async deleteConnection(e,t){return(await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/connections/${t}`)).connection}async disconnectGoogleDriveConnection(e,t,n){return(await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/connections/${t}`,n)).connection}async transitionGoogleDriveLifecycle(e,t,n){return(await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/connections/google-drive/${t}/lifecycle`,n)).connection}async startConnectionOAuth(e,t,n={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/connections/oauth/start`,t,{},n)}async startSocialOAuth(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/social/oauth/start`,t)}async listSocialConnections(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/social/connections`)}async disconnectSocialConnection(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/social/connections/${t}`)}catalogAssetUrl(e){return e?`${this.baseUrl}/v1/${e}`:null}async downloadCatalogAsset(e,t={}){if(!/^catalog-assets\\\\/[a-zA-Z0-9_./-]+$/.test(e)||e.split(\"/\").some((i)=>!i||i===\".\"||i===\"..\"))throw TypeError(\"A catalog asset path is required\");let n=await this.requestResponse(\"GET\",`/v1/${e}`,{},t),s=n.headers.get(\"content-type\")?.split(\";\")[0]??\"\";if(!s.startsWith(\"image/\"))throw await n.body?.cancel(),Error(\"The catalog asset is not an image\");let r=await se(n,2000000,null);return new Blob([Uint8Array.from(r)],{type:s})}async getGitHubApp(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/github/app`,void 0,t.returnPath?{returnPath:t.returnPath}:void 0)}githubConnectUrl(e,t){return this.url(`/v1/workspaces/${e}/github/connect`,{state:t})}async listGitHubRepositories(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/github/repositories`)}async getGitHubActionPolicies(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/github/action-policies`)}async updateGitHubActionPolicy(e,t){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/github/action-policies`,t)}async syncGitHubRepositories(e){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/github/repositories/sync`)}async unlinkGitHubInstallation(e,t){await this.requestVoid(\"DELETE\",`/v1/workspaces/${e}/github/installations/${t}`)}async createGitHubAppManifest(e,t={}){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/github/app-manifest`,t)}async listApiKeys(e){return(await this.requestJson(\"GET\",`/v1/workspaces/${e}/api-keys`)).apiKeys}async createApiKey(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/api-keys`,t)}async deleteApiKey(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/api-keys/${t}`)}async listOrganizationApiKeys(e){return(await this.requestJson(\"GET\",`/v1/organizations/${e}/api-keys`)).apiKeys}async createOrganizationApiKey(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/api-keys`,t)}async deleteOrganizationApiKey(e,t){return await this.requestJson(\"DELETE\",`/v1/organizations/${e}/api-keys/${t}`)}async listOrganizationSessions(e,t={}){return await this.requestJson(\"GET\",`/v1/organizations/${e}/sessions`,void 0,{...t.limit===void 0?{}:{limit:String(t.limit)},...t.cursor===void 0?{}:{cursor:t.cursor},...t.scopeSubjectId?{scopeSubjectId:t.scopeSubjectId}:{},...t.status===void 0?{}:{status:t.status}},{signal:t.signal})}async*iterateOrganizationSessions(e,t={}){let n;do{let s=await this.listOrganizationSessions(e,{...t,...n===void 0?{}:{cursor:n}});for(let r of s.sessions)yield r;n=s.nextCursor??void 0}while(n!==void 0)}async getBilling(e={}){return await this.requestJson(\"GET\",\"/v1/billing\",void 0,{...e.accountId!==void 0?{accountId:e.accountId}:{}})}async getOrganizationUsageSummary(e,t={}){return await this.requestJson(\"GET\",\"/v1/billing/usage-summary\",void 0,{accountId:e.accountId,period:e.period??\"month\"},t)}async getOrganizationUsageWorkspacePage(e,t={}){return await this.requestJson(\"GET\",\"/v1/billing/usage-workspaces\",void 0,{accountId:e.accountId,period:e.period??\"month\",until:e.until,...e.afterWorkspaceId?{afterWorkspaceId:e.afterWorkspaceId}:{}},t)}async getBillingUsage(e={}){return await this.requestJson(\"GET\",\"/v1/billing/usage\",void 0,{...e.accountId!==void 0?{accountId:e.accountId}:{},...e.workspaceId!==void 0?{workspaceId:e.workspaceId}:{}})}async getWorkspaceInsights(e,t={}){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/insights`,void 0,{range:t.range??\"week\",...t.provider!==void 0?{provider:t.provider}:{},...t.model!==void 0?{model:t.model}:{}},{signal:t.signal})}async getBillingEntitlements(e={}){return await this.requestJson(\"GET\",\"/v1/billing/entitlements\",void 0,{...e.accountId!==void 0?{accountId:e.accountId}:{}})}async createBillingCheckout(e){return await this.requestJson(\"POST\",\"/v1/billing/checkout\",e)}async createBillingPortalSession(e={}){return await this.requestJson(\"POST\",\"/v1/billing/portal\",e)}headers(e){let t=typeof this.options.headers===\"function\"?this.options.headers():this.options.headers,n={...this.options.apiKey?{Authorization:`Bearer ${this.options.apiKey}`}:{},...t,[de]:U,...e?{[Z]:e}:{}};if(this.externalActorHeader){for(let s of Object.keys(n))if(s.toLowerCase()===\"x-opengeni-external-actor\")delete n[s];n[\"x-opengeni-external-actor\"]=this.externalActorHeader}return n}url(e,t={}){let n=new URLSearchParams(t).toString();return`${this.baseUrl}${e}${n?`?${n}`:\"\"}`}async codexStatus(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/codex/status`)}async codexConnectStart(e){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/codex/connect/start`)}async codexConnectPoll(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/codex/connect/poll`,{state:t})}async codexUsage(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/codex/usage`)}async codexAccountUsage(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/codex/accounts/${t}/usage`)}async refreshCodexUsage(e){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/codex/usage/refresh`)}async codexOverview(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/codex/overview`)}async codexDisconnect(e){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/codex`)}async listCodexAccounts(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/codex/accounts`)}async listSessionCodexAccounts(e,t){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/sessions/${t}/codex-accounts`)}async activateCodexAccount(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/codex/accounts/${t}/activate`)}async designateCodexAppsAccount(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/codex/apps`,{accountId:t,expectedVersion:n})}async clearCodexAppsAccount(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/codex/apps`,{expectedVersion:t})}async setCodexRotationSettings(e,t){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/codex/settings`,t)}async setCodexAccountAllocator(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/codex/accounts/${t}/allocator`,n)}async disconnectCodexAccount(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/codex/accounts/${t}`)}async renameCodexAccount(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/codex/accounts/${t}`,{label:n})}async pinSessionCodexAccount(e,t,n){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/sessions/${t}/codex-account`,{target:n})}async getModelConnectionAccess(e){return await this.requestJson(\"GET\",`/v1/${e.scope}/${encodeURIComponent(e.scopeId)}/model-connections/${e.kind}/${encodeURIComponent(e.connectionId)}/access`)}async updateModelConnectionAccess(e,t){return await this.requestJson(\"PUT\",`/v1/${e.scope}/${encodeURIComponent(e.scopeId)}/model-connections/${e.kind}/${encodeURIComponent(e.connectionId)}/access`,t)}async listOrganizationSuperGrokAccounts(e){return await this.requestJson(\"GET\",`/v1/organizations/${e}/supergrok/accounts`)}async organizationSupergrokConnectStart(e){return await this.requestJson(\"POST\",`/v1/organizations/${e}/supergrok/connect/start`,{})}async organizationSupergrokConnectPoll(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/supergrok/connect/poll`,{state:t})}async activateOrganizationSuperGrokAccount(e,t){return await this.requestJson(\"POST\",`/v1/organizations/${e}/supergrok/accounts/${t}/activate`,{})}async setOrganizationSuperGrokRotationSettings(e,t){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/supergrok/settings`,t)}async setOrganizationSuperGrokAccountAllocator(e,t,n){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/supergrok/accounts/${t}/allocator`,n)}async renameOrganizationSuperGrokAccount(e,t,n){return await this.requestJson(\"PATCH\",`/v1/organizations/${e}/supergrok/accounts/${t}`,{label:n})}async disconnectOrganizationSuperGrokAccount(e,t){return await this.requestJson(\"DELETE\",`/v1/organizations/${e}/supergrok/accounts/${t}`,{})}async supergrokStatus(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/supergrok/status`)}async supergrokConnectStart(e,t=\"workspace\"){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/supergrok/connect/start`,{scope:t})}async supergrokConnectPoll(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/supergrok/connect/poll`,{state:t})}async listSuperGrokAccounts(e){return await this.requestJson(\"GET\",`/v1/workspaces/${e}/supergrok/accounts`)}async activateSuperGrokAccount(e,t){return await this.requestJson(\"POST\",`/v1/workspaces/${e}/supergrok/accounts/${t}/activate`,{})}async setSuperGrokRotationSettings(e,t){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/supergrok/settings`,t)}async setSuperGrokAccountAllocator(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/supergrok/accounts/${t}/allocator`,n)}async renameSuperGrokAccount(e,t,n){return await this.requestJson(\"PATCH\",`/v1/workspaces/${e}/supergrok/accounts/${t}`,{label:n})}async disconnectSuperGrokAccount(e,t){return await this.requestJson(\"DELETE\",`/v1/workspaces/${e}/supergrok/accounts/${t}`,{})}async requestSessionCommand(e,t,n,s={}){return await this.requestJson(e,t,n,{},{signal:s.signal,timeoutMs:s.timeoutMs??this.sessionCommandTimeoutMs})}async requestJson(e,t,n,s={},r={}){let i=crypto.randomUUID(),o=ln(r);try{if(o.signal?.aborted)throw o.signal.reason??new DOMException(\"Request aborted\",\"AbortError\");let a;try{a=await V(this.fetchImpl(this.url(t,s),{method:e,headers:{...this.headers(i),Accept:\"application/json\",...n!==void 0?{\"Content-Type\":\"application/json\"}:{}},...n!==void 0?{body:JSON.stringify(n)}:{},...o.signal?{signal:o.signal}:{}}),o.signal)}catch(c){if(r.signal?.aborted)throw c;if(L(e))throw D(i);throw c}v(a);try{if(!a.ok)throw await V(S(a,{method:e,correlationId:i}),o.signal);return await V(N(a,{method:e,correlationId:i}),o.signal),await V(a.json(),o.signal)}catch(c){if(r.signal?.aborted)throw c;if(c instanceof y)throw c;if(L(e))throw D(i);throw c}}finally{o.dispose()}}async requestResponse(e,t,n={},s={}){let r=crypto.randomUUID(),i;try{i=await this.fetchImpl(this.url(t,n),{method:e,headers:{...this.headers(r),Accept:\"application/octet-stream\"},...s.signal?{signal:s.signal}:{}})}catch(o){if(L(e))throw D(r);throw o}if(v(i),!i.ok)throw await S(i,{method:e,correlationId:r});return i}async requestVoid(e,t,n){let s=crypto.randomUUID(),r;try{r=await this.fetchImpl(this.url(t),{method:e,headers:{...this.headers(s),Accept:\"application/json\",...n!==void 0?{\"Content-Type\":\"application/json\"}:{}},...n!==void 0?{body:JSON.stringify(n)}:{}})}catch(i){if(L(e))throw D(s);throw i}if(v(r),!r.ok)throw await S(r,{method:e,correlationId:s})}}function v(e){let t=e.headers.get(de);if(t&&t!==U)throw new H(U,t)}function an(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return!1;let t=e;return typeof t.text===\"string\"&&Array.isArray(t.languages)&&t.languages.every((n)=>typeof n===\"string\")}function cn(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return!1;let t=e;if(!pe({recording:t.recording,segments:[]}))return!1;if(!t.chunk||typeof t.chunk!==\"object\"||Array.isArray(t.chunk))return!1;let n=t.chunk;return typeof n.chunkNumber===\"number\"&&typeof n.byteLength===\"number\"&&typeof n.sha256===\"string\"&&typeof n.startMilliseconds===\"number\"&&typeof n.durationMilliseconds===\"number\"&&typeof n.deduplicated===\"boolean\"}function pe(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return!1;let t=e;if(!t.recording||typeof t.recording!==\"object\"||Array.isArray(t.recording))return!1;let n=t.recording;return typeof n.id===\"string\"&&typeof n.workspaceId===\"string\"&&typeof n.mimeType===\"string\"&&typeof n.state===\"string\"&&typeof n.nextChunkNumber===\"number\"&&typeof n.chunkCount===\"number\"&&typeof n.totalBytes===\"number\"&&typeof n.totalDurationMilliseconds===\"number\"&&typeof n.segmentCount===\"number\"&&typeof n.completedSegmentCount===\"number\"&&(n.transcriptText===null||typeof n.transcriptText===\"string\")&&Array.isArray(n.languages)&&(n.errorCode===null||typeof n.errorCode===\"string\")&&typeof n.retryable===\"boolean\"&&typeof n.objectsCleaned===\"boolean\"&&typeof n.createdAt===\"string\"&&typeof n.updatedAt===\"string\"&&typeof n.expiresAt===\"string\"&&(t.retryAfterMilliseconds===void 0||typeof t.retryAfterMilliseconds===\"number\"&&Number.isInteger(t.retryAfterMilliseconds)&&t.retryAfterMilliseconds>0&&t.retryAfterMilliseconds<=60000)&&Array.isArray(t.segments)}function J(e){if(pe(e))return e;throw new y(502,\"Invalid transcription recording response.\",{code:\"invalid_response\"})}function un(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return!1;let t=e.recordings;return Array.isArray(t)&&t.length<=50&&t.every((n)=>pe({recording:n,segments:[]}))}function dn(e){switch(e.trim().toLowerCase().split(\";\")[0]??\"audio/webm\"){case\"audio/mp4\":case\"audio/m4a\":return\"audio.mp4\";case\"audio/ogg\":return\"audio.ogg\";case\"audio/mpeg\":case\"audio/mp3\":return\"audio.mp3\";case\"audio/wav\":case\"audio/x-wav\":return\"audio.wav\";case\"audio/webm\":default:return\"audio.webm\"}}var yt=16384;function ln(e){let t=e.timeoutMs??0;if(t<=0)return{signal:e.signal,dispose:()=>{return}};let n=new AbortController,s=()=>n.abort(e.signal?.reason);if(e.signal?.aborted)s();else e.signal?.addEventListener(\"abort\",s,{once:!0});let r=setTimeout(()=>n.abort(new DOMException(\"Request timed out\",\"TimeoutError\")),t);return{signal:n.signal,dispose:()=>{clearTimeout(r),e.signal?.removeEventListener(\"abort\",s)}}}async function V(e,t){if(!t)return await e;if(t.aborted)throw t.reason??new DOMException(\"Request aborted\",\"AbortError\");return await new Promise((n,s)=>{let r=()=>{i(),s(t.reason??new DOMException(\"Request aborted\",\"AbortError\"))},i=()=>t.removeEventListener(\"abort\",r);t.addEventListener(\"abort\",r,{once:!0}),e.then((o)=>{i(),n(o)},(o)=>{i(),s(o)})})}async function S(e,t){return new y(e.status,await pn(e),{correlationId:e.headers.get(Z)??t.correlationId,mutation:L(t.method)})}async function N(e,t){if(wt(e.headers.get(\"content-type\")))return;throw await x(e,\"unexpected non-JSON API response\"),new y(502,\"\",{code:\"upstream_unavailable\",retryable:!0,correlationId:e.headers.get(Z)??t.correlationId,outcomeUnknown:L(t.method),displayMessage:\"OpenGeni is temporarily unavailable — retry.\"})}async function pn(e){if(!wt(e.headers.get(\"content-type\")))return await x(e,\"discarding API error body\"),\"\";if(Number(e.headers.get(\"content-length\"))>yt)return await x(e,\"discarding API error body\"),\"\";try{return new TextDecoder().decode(await se(e,yt,null))}catch{return\"\"}}function wt(e){return/^(application\\\\/json|[^;]+\\\\+json)\\\\s*(;|$)/i.test(e??\"\")}function L(e){return e!==\"GET\"&&e!==\"HEAD\"&&e!==\"OPTIONS\"}function D(e){return new y(0,\"\",{code:\"network_error\",retryable:!0,correlationId:e,outcomeUnknown:!0,mutation:!0,displayMessage:\"OpenGeni could not confirm the request — reconcile before retrying.\"})}function gn(){let e=typeof window<\"u\"?window.isSecureContext:typeof globalThis.isSecureContext===\"boolean\"?globalThis.isSecureContext:void 0;if(e===void 0)return;if(!e)throw new K(\"insecure_context\");if(typeof globalThis.crypto>\"u\"||typeof globalThis.crypto.subtle?.digest!==\"function\")throw new K(\"web_crypto_unavailable\")}async function mn(e){let t=typeof e===\"string\"?new TextEncoder().encode(e):e instanceof Blob?new Uint8Array(await e.arrayBuffer()):new Uint8Array(e),n=await globalThis.crypto.subtle.digest(\"SHA-256\",t);return[...new Uint8Array(n)].map((s)=>s.toString(16).padStart(2,\"0\")).join(\"\")}async function Rt(e){let t=Uint8Array.from(e),n=await globalThis.crypto.subtle.digest(\"SHA-256\",t.buffer);return[...new Uint8Array(n)].map((s)=>s.toString(16).padStart(2,\"0\")).join(\"\")}function yn(e,t){if(e.computerSessionId!==t.computerSessionId)return\"frame_session_mismatch\";if(e.targetId!==t.targetId)return\"frame_target_mismatch\";if(e.mediaType!==t.mediaType)return\"frame_media_mismatch\";if(e.sha256!==t.sha256)return\"frame_digest_mismatch\";return null}async function x(e,t){await e.body?.cancel(t).catch(()=>{return})}function ft(e,t){if(!at(t,e)&&!ot(t,e))throw new y(502,\"retained workspace artifact receipt is invalid\")}function bt(e){if(!e||typeof e.url!==\"string\"||typeof e.expiresAt!==\"string\"||!Number.isFinite(Date.parse(e.expiresAt)))throw new y(502,\"retained artifact download URL is invalid\");let t;try{t=new URL(e.url)}catch{throw new y(502,\"retained artifact download URL is invalid\")}if(![\"http:\",\"https:\"].includes(t.protocol)||t.username||t.password)throw new y(502,\"retained artifact download URL is unsafe\")}function Rn(e,t){if(!e||e.schemaVersion!==1||e.artifactId!==t||e.contentType!==\"video/mp4\"||e.acceptRanges!==\"bytes\"||!Number.isSafeInteger(e.sizeBytes)||e.sizeBytes<=0||e.sizeBytes>nt||!/^[0-9a-f]{64}$/.test(e.sha256))throw new y(502,\"generated-video playback source is invalid\");bt({url:e.url,expiresAt:e.expiresAt})}function fn(e){if(e===null)return null;if(!/^\\\\d+$/.test(e))throw new y(502,\"invalid retained artifact content-length\");let t=Number(e);if(!Number.isSafeInteger(t)||t>ee)throw new y(502,\"retained artifact response exceeds the SDK byte limit\");return t}async function se(e,t,n){if(!e.body){if(n!==null&&n!==0)throw new y(502,\"retained artifact response length mismatch\");return new Uint8Array}let s=e.body.getReader(),r=[],i=0;try{while(!0){let{done:c,value:l}=await s.read();if(c)break;if(i+=l.byteLength,i>t)throw await s.cancel(\"retained artifact response exceeded the SDK byte limit\").catch(()=>{return}),new y(502,\"retained artifact response exceeds the SDK byte limit\");r.push(l)}}finally{s.releaseLock()}if(n!==null&&i!==n)throw new y(502,\"retained artifact response length mismatch\");let o=new Uint8Array(i),a=0;for(let c of r)o.set(c,a),a+=c.byteLength;return o}var W=2,wn=\"opengeni.site.connect\",vt=\"opengeni.site.ready\",bn=\"opengeni.site.request\",hn=\"opengeni.site.response\",Sn=\"opengeni.site.cancel\",kt=\"__opengeniSiteBridgeBootstrapV2\",vn=\"/__opengeni/site-tools\";class k extends Error{code;retryable;outcomeUnknown;constructor(e,t,n=!1,s=!1){super(t);this.code=e;this.retryable=n;this.outcomeUnknown=s;this.name=\"OpenGeniSiteBridgeError\"}}function It(e={}){let t=kn(e)?new Ct(e):new xt(e);return{client:new le({baseUrl:\"https://site.opengeni.invalid\",fetch:(n,s)=>t.fetch(n,s)}),workspaceId:j,tools:new Q(t).forWorkspace(\"site-host\"),close:()=>t.close()}}class Ct{fetchImpl;basePath;constructor(e){this.fetchImpl=e.fetch??globalThis.fetch.bind(globalThis);let t=e.localCodemodePath;this.basePath=(typeof t===\"string\"?t:vn).replace(/\\\\/+$/u,\"\")}close(){}async fetch(e,t){let n=new Request(e,t),s=new URL(n.url),r=`${s.pathname}${s.search}`;return z(r,j,n.method),this.fetchImpl(`${this.basePath}/sdk${r}`,{method:n.method,headers:n.headers,signal:n.signal,...n.body?{body:await n.text()}:{}})}async requestJson(e,t,n,s,r={}){let i=In(e,t),o=await this.fetchImpl(`${this.basePath}${i}`,{method:e,...r.signal?{signal:r.signal}:{},...n===void 0?{}:{headers:{\"content-type\":\"application/json\"},body:JSON.stringify(n)}}),a=await o.json();if(o.ok)return a;let c=T(a)&&T(a.error)?a.error:{};throw new k(typeof c.code===\"string\"?c.code:\"local_codemode_error\",typeof c.message===\"string\"?c.message:`Local Site tool request failed with HTTP ${o.status}`,c.retryable===!0,c.outcomeUnknown===!0)}}function kn(e){if(e.localCodemodePath===!1||e.bootstrapPort)return!1;if(typeof e.localCodemodePath===\"string\")return!0;let t=e.siteWindow??globalThis.window;return Boolean(t&&t.parent===t)}function In(e,t){if(e===\"GET\"&&t.endsWith(\"/tools/catalog\"))return\"/catalog\";if(e===\"GET\"&&t.endsWith(\"/tools/declarations\"))return\"/declarations\";if(e===\"POST\"&&t.endsWith(\"/tools/calls\"))return\"/calls\";throw new k(\"unsupported_request\",\"Unsupported Site tool request\")}function Cn(e){return{...e.operationId===void 0?{}:{operationId:e.operationId},catalogDigest:e.catalogDigest,identity:e.identity,arguments:e.arguments}}class xt{options;bootstrap;port=null;connecting=null;closed=!1;constructor(e){this.options=e,this.bootstrap=xn(e)}async fetch(e,t){return fe(await this.connect(),e,t)}async requestJson(e,t,n,s,r={}){if(e===\"GET\"&&t.endsWith(\"/tools/catalog\"))return await this.request({method:\"catalog\"},r);if(e===\"GET\"&&t.endsWith(\"/tools/declarations\"))return await this.request({method:\"declarations\"},r);if(e===\"POST\"&&t.endsWith(\"/tools/calls\")){if(!T(n))throw TypeError(\"Site tool call payload is required\");return await this.request({method:\"call\",payload:Cn(n)},r)}throw new k(\"unsupported_request\",\"Unsupported Site bridge request\")}close(){if(this.closed)return;this.closed=!0,this.bootstrap.close(),this.port?.close(),this.port=null}async request(e,t){let n=await this.connect(),s=crypto.randomUUID(),r=St(t.timeoutMs??this.options.requestTimeoutMs??120000,\"requestTimeoutMs\");return await new Promise((i,o)=>{let a=setTimeout(()=>{d(),ht(n,s),o(e.method===\"call\"?new k(\"timeout\",\"Site tool request timed out after execution may have started\",!1,!0):new k(\"timeout\",\"Site tool request timed out\",!0))},r),c=()=>{d(),ht(n,s),o(t.signal?.reason??new DOMException(\"Request aborted\",\"AbortError\"))},l=(p)=>{let u=p.data;if(!T(u)||u.type!==hn||u.version!==W||u.requestId!==s||typeof u.ok!==\"boolean\")return;if(d(),u.ok){i(u.value);return}let g=T(u.error)?u.error:{};o(new k(typeof g.code===\"string\"?g.code:\"bridge_error\",typeof g.message===\"string\"?g.message:\"Site tool request failed\",g.retryable===!0,g.outcomeUnknown===!0))},d=()=>{clearTimeout(a),t.signal?.removeEventListener(\"abort\",c),n.removeEventListener(\"message\",l)};if(t.signal?.aborted){c();return}t.signal?.addEventListener(\"abort\",c,{once:!0}),n.addEventListener(\"message\",l),n.postMessage({type:bn,version:W,requestId:s,...e})})}async connect(){if(this.closed)throw new k(\"closed\",\"Site bridge is closed\");if(this.port)return this.port;if(this.connecting)return await this.connecting;let e=(this.options.createMessageChannel??(()=>new MessageChannel))(),t=St(this.options.connectTimeoutMs??1e4,\"connectTimeoutMs\");return this.connecting=new Promise((n,s)=>{let r=!0,i=setTimeout(()=>{a(),e.port1.close(),s(new k(\"host_timeout\",\"OpenGeni Site host did not respond\"))},t),o=(c)=>{let l=c.data;if(!T(l)||l.type!==vt||l.version!==W)return;a(),this.port=e.port1,n(e.port1)},a=()=>{r=!1,clearTimeout(i),e.port1.removeEventListener(\"message\",o)};e.port1.addEventListener(\"message\",o),e.port1.start(),this.bootstrap.port().then((c)=>{if(!r)return;if(this.closed)throw new k(\"closed\",\"Site bridge is closed\");c.postMessage({type:wn,version:W},[e.port2])}).catch((c)=>{a(),e.port1.close(),s(c)})}).finally(()=>{this.connecting=null}),await this.connecting}}function xn(e){if(e.bootstrapPort)return{port:async()=>e.bootstrapPort,close:()=>e.bootstrapPort?.close()};let t=e.siteWindow??globalThis.window,n=e.parentWindow??t?.parent;if(!t||!n||n===t)return{port:async()=>{throw new k(\"host_unavailable\",\"OpenGeni Site client must run inside a hosted iframe\")},close:()=>{return}};let s=An(t);if(s)return{port:async()=>s,close:()=>{return}};let r=null,i=null,o=(d)=>{if(d.source!==n||!qn(d.data)||d.ports.length!==1)return;c(),r=d.ports[0],r.start(),Pn(t,r),a?.(r)},a=null,c=()=>t.removeEventListener(\"message\",o),l=new Promise((d,p)=>{a=d,i=p,t.addEventListener(\"message\",o)});return l.catch(()=>{return}),{port:async()=>await l,close:()=>{c(),i?.(new k(\"closed\",\"Site bridge is closed\")),a=null,i=null}}}function An(e){let t=e[kt];if(!T(t))return null;let n=t.port;return n&&typeof n.postMessage===\"function\"&&typeof n.addEventListener===\"function\"&&typeof n.start===\"function\"?n:null}function Pn(e,t){try{Object.defineProperty(e,kt,{configurable:!0,value:{port:t}})}catch{}}function qn(e){return T(e)&&e.type===vt&&e.version===W}function ht(e,t){e.postMessage({type:Sn,version:W,requestId:t})}function St(e,t){if(!Number.isFinite(e)||e<=0)throw RangeError(`${t} must be positive`);return e}function T(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}Object.defineProperty(globalThis,\"createOpenGeniSiteClient\",{configurable:!0,value:It});})();\\n';var a_=\"/__opengeni/site-tools/client.js\";var Bn=\"/__opengeni/site-tools\";function o6(e=()=>ft()){let t=typeof e===\"function\"?e:()=>e;return async(n)=>{try{let o=new URL(n.url).pathname;if(o===a_){if(n.method!==\"GET\"&&n.method!==\"HEAD\")return new Response(\"Method not allowed\",{status:405,headers:{allow:\"GET, HEAD\"}});return new Response(n.method===\"HEAD\"?null:nf,{headers:{\"content-type\":\"text/javascript; charset=utf-8\",\"cache-control\":\"no-cache\"}})}let r=await t();if(o.startsWith(`${Bn}/sdk/`)){let i=o.slice(`${Bn}/sdk`.length)+new URL(n.url).search,a=await r.sessionRequest(i,{method:n.method,signal:n.signal,headers:hg(n.headers),...n.body?{body:await n.text()}:{}}),s=new Headers(a.headers);return s.delete(\"content-encoding\"),s.delete(\"content-length\"),s.delete(\"transfer-encoding\"),new Response(a.body,{status:a.status,statusText:a.statusText,headers:s})}if(n.method===\"GET\"&&o===`${Bn}/catalog`){let i=await r.catalog({signal:n.signal});return Response.json($R(i))}if(n.method===\"GET\"&&o===`${Bn}/declarations`){let i=await r.catalog({signal:n.signal});return Response.json({catalogDigest:i.digest,moduleSpecifier:\"@opengeni/sdk\",source:$a({digest:i.digest,entries:i.entries},{moduleSpecifier:\"@opengeni/sdk\",interfaceName:\"OpenGeniGeneratedTools\",callOptionsType:\"OpenGeniToolCallOptions\",fallbackResultType:\"ToolGatewayResult\",generatedBy:\"@opengeni/codemode local Site preview\",catalogDigestLabel:\"Attempt catalog digest\"})})}if(n.method===\"POST\"&&o===`${Bn}/calls`){let i=await n.json();if(!wR(i))return Kn(400,\"invalid_request\",\"Invalid Site tool call\");let a=await r.catalog({signal:n.signal});if(i.catalogDigest!==a.digest)return Kn(409,\"catalog_stale\",\"The local Site tool catalog changed\",!0);let s=i.operationId??yR(),c=await r.call(i.identity,i.arguments,{operationId:s,signal:n.signal});return Response.json({operationId:s,catalogDigest:a.digest,result:c})}return Kn(404,\"not_found\",\"Local Site tool endpoint not found\")}catch(o){if(o instanceof Be)return Kn(o.status&&o.status>=400&&o.status<=599?o.status:502,o.remoteCode??o.code,o.message,o.retryable===!0,o.outcomeUnknown===!0);return Kn(500,\"local_codemode_error\",o instanceof Error?o.message:\"Local Site tool request failed\")}}}function $R(e){return{version:e.version,generation:e.generation,digest:e.digest,createdAt:e.createdAt,entries:e.entries}}function wR(e){if(!of(e)||typeof e.catalogDigest!==\"string\")return!1;if(e.operationId!==void 0&&typeof e.operationId!==\"string\")return!1;return of(e.identity)&&typeof e.identity.serverId===\"string\"&&typeof e.identity.toolName===\"string\"&&of(e.arguments)}function Kn(e,t,n,o=!1,r=!1){return Response.json({error:{code:t,message:n,retryable:o,...r?{outcomeUnknown:!0}:{}}},{status:e})}function of(e){return typeof e===\"object\"&&e!==null&&!Array.isArray(e)}class Be extends Error{status;code=\"codemode_transport_error\";remoteCode;retryable;outcomeUnknown;details;constructor(e,t=null,n={}){super(e);this.status=t;this.name=\"CodemodeTransportError\",this.remoteCode=n.code??null,this.retryable=n.retryable??null,this.outcomeUnknown=n.outcomeUnknown??null,this.details=n.details??null}}class u_ extends Error{operation;code;constructor(e,t){super(e.errorMessage??`Codemode operation ${e.state}`);this.operation=e;this.code=t;this.name=\"CodemodeOperationError\"}}class l_ extends Error{result;code;retryable;constructor(e){let t=SR(e);super(t.message);this.result=e;this.name=\"CodemodeToolCallError\",this.code=t.code,this.retryable=t.retryable}}class d_ extends Error{code=\"invalid_tool_result\";constructor(e){super(e);this.name=\"CodemodeToolContractError\"}}class Xm{options;baseUrl;fetchImpl;pollIntervalMs;timeoutMs;catalogSnapshot=null;constructor(e){this.options=e;if(this.baseUrl=e.baseUrl.replace(/\\/+$/u,\"\"),!/^https?:\\/\\//u.test(this.baseUrl))throw Error(\"Codemode baseUrl must be an absolute HTTP(S) URL\");this.fetchImpl=e.fetch??globalThis.fetch.bind(globalThis),this.pollIntervalMs=af(e.pollIntervalMs??500,50,30000),this.timeoutMs=af(e.timeoutMs??600000,1000,3600000)}async catalog(e={}){if(this.catalogSnapshot&&!e.refresh)return this.catalogSnapshot;let t=await this.request(\"/catalog\",{method:\"GET\",...e.signal?{signal:e.signal}:{}}),n=wa(await t.json());return this.catalogSnapshot=n,n}async tools(e={}){return xR(await this.catalog(e),this)}async call(e,t={},n={}){return(await this.callResolved((o)=>o.entries.find((r)=>r.identity.serverId===e.serverId&&r.identity.toolName===e.toolName)??null,t,n)).result}async callResolved(e,t,n){let o=await this.catalog(n.signal?{signal:n.signal}:{}),r=e(o);if(!r)throw new Fe;let i=n.operationId??bR(),a=Date.now()+af(n.timeoutMs??this.timeoutMs,1000,3600000),s=!1,c=!1,u=null,l=0;while(!0){if(h_(n.signal),Date.now()>=a)throw new Be(`Codemode operation ${i} did not settle before the client deadline`);if(!s||(u?.state===\"queued\"||u?.state===\"running\")&&Date.now()>=l){s=!0,l=Date.now()+2000;try{u=await this.submit(i,o.digest,r.identity,t,n.signal)}catch(f){if(u===null&&!c&&f instanceof Be&&f.remoteCode===\"codemode_catalog_stale\"){if(c=!0,o=await this.catalog({refresh:!0,...n.signal?{signal:n.signal}:{}}),r=e(o),!r)throw new Fe;s=!1,l=0;continue}if(n.signal?.aborted)throw f;if(u===null&&!_R(f))throw f;let m;try{m=await this.read(i,n.signal)}catch(v){if(n.signal?.aborted)throw v;throw new Be(`Codemode operation ${i} could not be reconciled after its submission response failed`,null,{code:\"codemode_operation_recovery_unavailable\",retryable:!0,outcomeUnknown:!0,details:{operationId:i}})}kR(m,{operationId:i,catalog:o,identity:r.identity,arguments:t}),u=m}}else u=await this.read(i,n.signal);if(u.state===\"completed\")return{result:Ci.parse(u.result),entry:r};if([\"failed\",\"outcome_unknown\",\"cancelled\"].includes(u.state))throw new u_(u,u.errorCode??`codemode_${u.state}`);await TR(this.pollIntervalMs,n.signal)}}async callPath(e,t={},n={}){if(e.length<2||e.some((o)=>o.length===0))throw new Fe;return(await this.callResolved((o)=>c_(o,e),t,n)).result}async callPathValue(e,t={},n={}){if(e.length<2||e.some((i)=>i.length===0))throw new Fe;let{result:o,entry:r}=await this.callResolved((i)=>c_(i,e),t,n);if(!r.outputSchema)return o;if(o.isError)throw new l_(o);if(!o.structuredContent)throw new d_(`Codemode tool ${e.join(\".\")} declared outputSchema but returned no structured content`);return o.structuredContent}async submit(e,t,n,o,r){let i=await this.request(\"/calls\",{method:\"POST\",...r?{signal:r}:{},headers:{\"content-type\":\"application/json\"},body:JSON.stringify({operationId:e,catalogDigest:t,identity:n,arguments:o})});return xg.parse(await i.json()).operation}async read(e,t){let n=await this.request(`/calls/${e}`,{method:\"GET\",...t?{signal:t}:{}});return Ep.parse(await n.json())}async sessionRequest(e,t){return fg(e,\"site-host\",t.method??\"GET\"),this.request(`/sdk${e}`,t,!1)}async request(e,t,n=!0){let o=typeof this.options.token===\"function\"?await this.options.token():this.options.token,r=await this.fetchImpl(`${this.baseUrl}${e}`,{...t,headers:{...Object.fromEntries(new Headers(t.headers).entries()),authorization:`Bearer ${o}`}});if(!r.ok&&n){let i=`Codemode request failed with HTTP ${r.status}`,a={};try{let s=IR(await r.json());if(s?.message)i=s.message;if(s)a={...s.code?{code:s.code}:{},...s.retryable===void 0?{}:{retryable:s.retryable},...s.outcomeUnknown===void 0?{}:{outcomeUnknown:s.outcomeUnknown},...s.details?{details:s.details}:{}}}catch{}throw new Be(i,r.status,a)}return r}}function _R(e){return!(e instanceof Be)||e.outcomeUnknown===!0}function kR(e,t){if(e.operationId===t.operationId&&e.accountId===t.catalog.accountId&&e.workspaceId===t.catalog.workspaceId&&e.sessionId===t.catalog.sessionId&&e.turnId===t.catalog.turnId&&e.attemptId===t.catalog.attemptId&&e.executionGeneration===t.catalog.executionGeneration&&e.catalogDigest===t.catalog.digest&&e.identity.serverId===t.identity.serverId&&e.identity.toolName===t.identity.toolName&&pt(e.arguments)===pt(t.arguments))return;throw new Be(\"Codemode operation id is already bound to a different request\",409,{code:\"codemode_operation_conflict\",retryable:!1,outcomeUnknown:!1})}function xR(e,t){let n=wa(e),o=Object.create(null);for(let r of n.entries){let i=o;for(let c of r.codemodePath.slice(0,-1)){let u=i[c];if(typeof u===\"function\")throw Error(\"Codemode path collides with a tool\");if(!u)u=Object.create(null),i[c]=u;i=u}let a=r.codemodePath.at(-1),s=async(c={},u={})=>await t.callPathValue(r.codemodePath,c,u);Object.defineProperty(s,\"entry\",{value:r,enumerable:!1}),i[a]=s}return o}class p_{catalog;gateway;constructor(e,t){this.catalog=e;this.gateway=t}async call(e,t={}){return await(await this.prepareCall(e,t)).execute()}async prepareCall(e,t={}){let n=Pp.parse(e);return await this.gateway.prepareCall(n,t)}async callModel(e){return await this.gateway.callModel(e)}}function d6(e){let t=(e.createdAt??new Date).toISOString(),n=Lb(e.definitions.map((i)=>({...i,execute:async(a,s)=>await i.execute(a,{...s,caller:Pi.parse(s.caller)})}))),o={version:kp,...e.scope,generation:e.generation,createdAt:t,entries:[...n.entries]},r=Tp.parse({...o,digest:m_(o)});return f_(r),new p_(r,n.create({catalogDigest:r.digest,requireApproval:(i,a)=>a.kind===\"codemode\"&&i.approval===\"human\",...e.confirmModelApproval?{confirmModelApproval:({entry:i,subjectId:a})=>e.confirmModelApproval({modelName:i.modelName,subjectId:a})}:{},...e.authorize?{authorize:async({call:i,entry:a})=>await e.authorize({call:Pp.parse(i),entry:a})}:{}}))}function m_(e){let{createdAt:t,...n}=e;return pt(n)}function p6(e){return pt(e)}function m6(e,t){if(!s_.test(e)||!s_.test(t))throw Error(\"Codemode dispatch subject requires UUID workspace and attempt ids\");return`codemode.${e}.${t}.dispatch`}function f6(e){return new TextEncoder().encode(JSON.stringify(Op.parse(e)))}function h6(e){return Op.parse(JSON.parse(new TextDecoder().decode(e)))}function g6(e){return new TextEncoder().encode(JSON.stringify(zp.parse(e)))}function v6(e){return zp.parse(JSON.parse(new TextDecoder().decode(e)))}function wa(e){let t=Tp.parse(e);f_(t);let{digest:n,...o}=t;if(m_(o)!==n)throw new Zm;return t}function f_(e){if(new TextEncoder().encode(JSON.stringify(e)).byteLength>$g)throw new Lm}var s_=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;function af(e,t,n){if(!Number.isFinite(e))return t;return Math.max(t,Math.min(n,Math.floor(e)))}function h_(e){if(e?.aborted)throw e.reason??new DOMException(\"Aborted\",\"AbortError\")}function SR(e){let n=e.structuredContent?.error;return{code:typeof n?.code===\"string\"?n.code:\"tool_error\",message:typeof n?.message===\"string\"?n.message:\"Codemode tool failed\",retryable:n?.retryable===!0}}function c_(e,t){let n=e.entries.filter((o)=>o.codemodePath.length===t.length&&o.codemodePath.every((r,i)=>r===t[i]));return n.length===1?n[0]:null}function IR(e){if(!e||typeof e!==\"object\"||Array.isArray(e))return null;let t=e,n=t.error&&typeof t.error===\"object\"&&!Array.isArray(t.error)?t.error:t,o=n.details&&typeof n.details===\"object\"&&!Array.isArray(n.details)?n.details:void 0,r=o?.code,i=typeof r===\"string\"&&/^[a-z0-9_]{1,128}$/u.test(r)?r:void 0,a=typeof n.message===\"string\"?n.message:void 0,s=typeof n.retryable===\"boolean\"?n.retryable:void 0,c=typeof n.outcomeUnknown===\"boolean\"?n.outcomeUnknown:void 0;return a||i||s!==void 0||c!==void 0||o?{...a?{message:a}:{},...i?{code:i}:{},...s===void 0?{}:{retryable:s},...c===void 0?{}:{outcomeUnknown:c},...o?{details:o}:{}}:null}async function TR(e,t){if(!t){await new Promise((n)=>setTimeout(n,e));return}h_(t),await new Promise((n,o)=>{let r=setTimeout(()=>{t.removeEventListener(\"abort\",i),n()},e),i=()=>{clearTimeout(r),o(t.reason??new DOMException(\"Aborted\",\"AbortError\"))};t.addEventListener(\"abort\",i,{once:!0})})}export{Ln as AttemptToolApprovalRequiredError,Zm as AttemptToolCatalogIntegrityError,ha as AttemptToolCatalogStaleError,Lm as AttemptToolCatalogTooLargeError,p_ as AttemptToolEnvironment,ga as AttemptToolInputValidationError,Fe as AttemptToolNotFoundError,va as AttemptToolOutputValidationError,dt as AttemptToolPathCollisionError,zr as CODEMODE_ENVIRONMENT,Bn as CODEMODE_SITE_LOCAL_PATH,Fn as CodemodeArtifact,Qm as CodemodeArtifactCollection,Bb as CodemodeArtifactExport,e_ as CodemodeAuth,rf as CodemodeAuthRun,ef as CodemodeBrowser,t_ as CodemodeBrowserAuth,Xb as CodemodeBrowserClipboard,Wb as CodemodeBrowserCollection,Hb as CodemodeBrowserIdentityCollection,gt as CodemodeBrowserLocator,Qb as CodemodeBrowserTab,Yb as CodemodeBrowserTabCollection,Xm as CodemodeClient,tf as CodemodeComputer,n_ as CodemodeComputerClipboard,r_ as CodemodeComputerCollection,Ar as CodemodeComputerLocator,i_ as CodemodeComputerTarget,o_ as CodemodeComputerTargetCollection,u_ as CodemodeOperationError,l_ as CodemodeToolCallError,d_ as CodemodeToolContractError,Ym as CodemodeToolExecutionError,Be as CodemodeTransportError,Kb as OpenGeniCodemode,E as callStructured,lR as codemodeArtifactIds,Vb as codemodeClientProvider,m6 as codemodeDispatchSubject,xR as compileCodemodeTools,d6 as createAttemptToolEnvironment,o6 as createCodemodeSiteRequestHandler,sR as createCodemodeTools,vR as createOpenGeniCodemode,v6 as decodeCodemodeDispatchAck,h6 as decodeCodemodeDispatchRequest,m_ as digestAttemptToolCatalog,p6 as digestCodemodeOperationRequest,g6 as encodeCodemodeDispatchAck,f6 as encodeCodemodeDispatchRequest,ft as environmentCodemodeClient,F4 as generateCodemodeDeclarations,Fm as jsonSchemaToTypeScript,G4 as openGeni,wa as parseVerifiedAttemptToolCatalog,O4 as tools};\n","package.json":"{\"type\":\"commonjs\"}\n"}}
|