(self.webpackChunkui=self.webpackChunkui||[]).push([[27],Array(61).concat([(e,t,n)=>{"use strict";function r(e){return e}function i(e){return e}function o(e){}function a(e){throw new Error}function s(e){}function u(e){const t=Object.values(e).filter((e=>"number"==typeof e));return Object.entries(e).filter((([e,n])=>-1===t.indexOf(+e))).map((([e,t])=>t))}function c(e,t="|"){return e.map((e=>L(e))).join(t)}function l(e,t){return"bigint"==typeof t?t.toString():t}function d(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function p(e){return null==e}function f(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function m(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(r)){const e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}const o=n>i?n:i;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}n.r(t),n.d(t,{BIGINT_FORMAT_RANGES:()=>V,Class:()=>ne,NUMBER_FORMAT_RANGES:()=>F,aborted:()=>W,allowsEval:()=>O,assert:()=>s,assertEqual:()=>r,assertIs:()=>o,assertNever:()=>a,assertNotEqual:()=>i,assignProp:()=>g,cached:()=>d,captureStackTrace:()=>w,cleanEnum:()=>te,cleanRegex:()=>f,clone:()=>R,cloneDef:()=>_,createTransparentProxy:()=>z,defineLazy:()=>v,esc:()=>T,escapeRegex:()=>P,extend:()=>G,finalizeIssue:()=>H,floatSafeRemainder:()=>m,getElementAtPath:()=>I,getEnumValues:()=>u,getLengthableOrigin:()=>X,getParsedType:()=>A,getSizableOrigin:()=>Q,isObject:()=>N,isPlainObject:()=>S,issue:()=>ee,joinValues:()=>c,jsonStringifyReplacer:()=>l,merge:()=>J,mergeDefs:()=>b,normalizeParams:()=>U,nullish:()=>p,numKeys:()=>D,objectClone:()=>y,omit:()=>Z,optionalKeys:()=>C,partial:()=>B,pick:()=>M,prefixIssues:()=>q,primitiveTypes:()=>j,promiseAllObject:()=>$,propertyKeyTypes:()=>x,randomString:()=>E,required:()=>K,shallowClone:()=>k,stringifyPrimitive:()=>L,unwrapMessage:()=>Y});const h=Symbol("evaluating");function v(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==h)return void 0===r&&(r=h,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function y(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function g(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function b(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function _(e){return b(e._zod.def)}function I(e,t){return t?t.reduce(((e,t)=>e?.[t]),e):e}function $(e){const t=Object.keys(e),n=t.map((t=>e[t]));return Promise.all(n).then((e=>{const n={};for(let r=0;r{};function N(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const O=d((()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}}));function S(e){if(!1===N(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==N(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function k(e){return S(e)?{...e}:e}function D(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const A=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":"undefined"!=typeof Map&&e instanceof Map?"map":"undefined"!=typeof Set&&e instanceof Set?"set":"undefined"!=typeof Date&&e instanceof Date?"date":"undefined"!=typeof File&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},x=new Set(["string","number","symbol"]),j=new Set(["string","number","bigint","boolean","symbol","undefined"]);function P(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function R(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function U(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function z(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,o)=>(t??(t=e()),Reflect.set(t,r,i,o)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})}function L(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function C(e){return Object.keys(e).filter((t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout))}const F={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},V={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function M(e,t){const n=e._zod.def;return R(e,b(e._zod.def,{get shape(){const e={};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return g(this,"shape",e),e},checks:[]}))}function Z(e,t){const n=e._zod.def,r=b(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return g(this,"shape",r),r},checks:[]});return R(e,r)}function G(e,t){if(!S(t))throw new Error("Invalid input to extend: expected a plain object");const n=b(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return g(this,"shape",n),n},checks:[]});return R(e,n)}function J(e,t){const n=b(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return g(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return R(e,n)}function B(e,t,n){const r=b(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(const t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return g(this,"shape",i),i},checks:[]});return R(t,r)}function K(e,t,n){const r=b(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in i))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(const t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return g(this,"shape",i),i},checks:[]});return R(t,r)}function W(e,t=0){for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t}))}function Y(e){return"string"==typeof e?e:e?.message}function H(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=Y(e.inst?._zod.def?.error?.(e))??Y(t?.error?.(e))??Y(n.customError?.(e))??Y(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Q(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function X(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ee(...e){const[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function te(e){return Object.entries(e).filter((([e,t])=>Number.isNaN(Number.parseInt(e,10)))).map((e=>e[1]))}class ne{constructor(...e){}}},,,,,,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>o,c:()=>i,d:()=>r,e:()=>u,f:()=>s});const r=Object.freeze({status:"aborted"});function i(e,t,n){function r(n,r){var i;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r);for(const e in a.prototype)e in n||Object.defineProperty(n,e,{value:a.prototype[e].bind(n)});n._zod.constr=a,n._zod.def=r}const i=n?.Parent??Object;class o extends i{}function a(e){var t;const i=n?.Parent?new o:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(const e of i._zod.deferred)e();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const o=Symbol("zod_brand");class a extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const s={};function u(e){return e&&Object.assign(s,e),s}},,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var r=n(278);e.exports=Function.prototype.bind||r},,,,,,,,,,,,,,,,,e=>{"use strict";e.exports=TypeError},(e,t,n)=>{"use strict";var r=n(273);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},,(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>s,c:()=>u,d:()=>l,e:()=>i,f:()=>o,g:()=>c});class r extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}r.code="ERR_JOSE_GENERIC";class i extends r{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}i.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class o extends r{constructor(e,t,n="unspecified",r="unspecified"){super(e,{cause:{claim:n,reason:r,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}o.code="ERR_JWT_EXPIRED";class a extends r{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}a.code="ERR_JOSE_ALG_NOT_ALLOWED";class s extends r{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}s.code="ERR_JOSE_NOT_SUPPORTED",class extends r{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}.code="ERR_JWE_DECRYPTION_FAILED",class extends r{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}.code="ERR_JWE_INVALID";class u extends r{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}u.code="ERR_JWS_INVALID";class c extends r{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}c.code="ERR_JWT_INVALID",class extends r{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}.code="ERR_JWK_INVALID",class extends r{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}.code="ERR_JWKS_INVALID",class extends r{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}.code="ERR_JWKS_NO_MATCHING_KEY",Symbol.asyncIterator,class extends r{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",class extends r{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}.code="ERR_JWKS_TIMEOUT";class l extends r{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}l.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"},(e,t,n)=>{"use strict";n.d(t,{a:()=>r,b:()=>i});const r=crypto,i=e=>e instanceof CryptoKey},,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var r=n(86),i=n(103),o=n(126),a=n(171);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(r,o,e)}},e=>{"use strict";e.exports=Function.prototype.call},e=>{"use strict";e.exports=Function.prototype.apply},,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{base64:()=>S,base64url:()=>k,bigint:()=>C,boolean:()=>M,browserEmail:()=>I,cidrv4:()=>N,cidrv6:()=>O,cuid:()=>r,cuid2:()=>i,date:()=>P,datetime:()=>z,domain:()=>A,duration:()=>c,e164:()=>x,email:()=>v,emoji:()=>E,extendedDuration:()=>l,guid:()=>d,hostname:()=>D,html5Email:()=>y,idnEmail:()=>_,integer:()=>F,ipv4:()=>T,ipv6:()=>w,ksuid:()=>s,lowercase:()=>J,nanoid:()=>u,null:()=>Z,number:()=>V,rfc5322Email:()=>g,string:()=>L,time:()=>U,ulid:()=>o,undefined:()=>G,unicodeEmail:()=>b,uppercase:()=>B,uuid:()=>p,uuid4:()=>f,uuid6:()=>m,uuid7:()=>h,xid:()=>a});const r=/^[cC][^\s-]{8,}$/,i=/^[0-9a-z]+$/,o=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,a=/^[0-9a-vA-V]{20}$/,s=/^[A-Za-z0-9]{27}$/,u=/^[a-zA-Z0-9_-]{21}$/,c=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,l=/^[-+]?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)?)??$/,d=/^([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})$/,p=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,f=p(4),m=p(6),h=p(7),v=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,y=/^[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])?)*$/,g=/^(([^<>()\[\]\\.,;:\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,}))$/,b=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,_=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,I=/^[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])?)*$/,$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function E(){return new RegExp($,"u")}const T=/^(?:(?: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])$/,w=/^(([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})$/,N=/^((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])$/,O=/^(([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])$/,S=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,k=/^[A-Za-z0-9_-]*$/,D=/^(?=.{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])?)*\.?$/,A=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,x=/^\+(?:[0-9]){6,14}[0-9]$/,j="(?:(?:\\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])))",P=new RegExp(`^${j}$`);function R(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function U(e){return new RegExp(`^${R(e)}$`)}function z(e){const t=R({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${j}T(?:${r})$`)}const L=e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`),C=/^\d+n?$/,F=/^\d+$/,V=/^-?\d+(?:\.\d+)?/i,M=/true|false/i,Z=/null/i,G=/undefined/i,J=/^[^A-Z]*$/,B=/^[^a-z]*$/},(e,t,n)=>{"use strict";n.d(t,{$:()=>Se,A:()=>w,B:()=>O,C:()=>N,D:()=>ae,E:()=>L,F:()=>E,G:()=>ze,H:()=>ye,I:()=>pe,J:()=>De,K:()=>g,L:()=>Y,M:()=>Ne,N:()=>$e,O:()=>K,P:()=>V,Q:()=>F,R:()=>ne,S:()=>Ie,T:()=>Ae,U:()=>we,V:()=>Ue,W:()=>je,X:()=>de,Y:()=>me,Z:()=>p,_:()=>d,a:()=>W,ab:()=>J,b:()=>ee,bb:()=>Re,c:()=>R,cb:()=>be,d:()=>j,db:()=>ce,e:()=>G,eb:()=>l,f:()=>Z,fb:()=>I,g:()=>M,gb:()=>v,h:()=>D,hb:()=>m,i:()=>A,ib:()=>B,j:()=>b,jb:()=>ie,k:()=>_,kb:()=>q,l:()=>ke,lb:()=>H,m:()=>C,mb:()=>$,n:()=>Le,nb:()=>u.clone,o:()=>Q,ob:()=>P,p:()=>Ee,pb:()=>x,q:()=>oe,qb:()=>z,r:()=>h,s:()=>y,t:()=>ve,u:()=>U,v:()=>ge,w:()=>f,x:()=>S,y:()=>k,z:()=>T});var r=n(132),i=n(69),o=n(288),a=n(180),s=n(130),u=n(61),c=n(289);const l=i.c("$ZodType",((e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=c.a;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push((()=>{e._zod.run=e._zod.parse}));else{const t=(e,t,n)=>{let r,o=u.aborted(e);for(const a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(o)continue;const t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new i.a;if(r||s instanceof Promise)r=(r??Promise.resolve()).then((async()=>{await s,e.issues.length!==t&&(o||(o=u.aborted(e,t)))}));else{if(e.issues.length===t)continue;o||(o=u.aborted(e,t))}}return r?r.then((()=>e)):e};e._zod.run=(n,o)=>{const a=e._zod.parse(n,o);if(a instanceof Promise){if(!1===o.async)throw new i.a;return a.then((e=>t(e,r,o)))}return t(a,r,o)}}e["~standard"]={validate:t=>{try{const n=(0,a.h)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,a.g)(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),d=i.c("$ZodString",((e,t)=>{l.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??s.string(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(r){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}})),p=i.c("$ZodStringFormat",((e,t)=>{r.t.init(e,t),d.init(e,t)})),f=i.c("$ZodGUID",((e,t)=>{t.pattern??(t.pattern=s.guid),p.init(e,t)})),m=i.c("$ZodUUID",((e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=s.uuid(e))}else t.pattern??(t.pattern=s.uuid());p.init(e,t)})),h=i.c("$ZodEmail",((e,t)=>{t.pattern??(t.pattern=s.email),p.init(e,t)})),v=i.c("$ZodURL",((e,t)=>{p.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:s.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=i.href:n.value=r)}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}})),y=i.c("$ZodEmoji",((e,t)=>{t.pattern??(t.pattern=s.emoji()),p.init(e,t)})),g=i.c("$ZodNanoID",((e,t)=>{t.pattern??(t.pattern=s.nanoid),p.init(e,t)})),b=i.c("$ZodCUID",((e,t)=>{t.pattern??(t.pattern=s.cuid),p.init(e,t)})),_=i.c("$ZodCUID2",((e,t)=>{t.pattern??(t.pattern=s.cuid2),p.init(e,t)})),I=i.c("$ZodULID",((e,t)=>{t.pattern??(t.pattern=s.ulid),p.init(e,t)})),$=i.c("$ZodXID",((e,t)=>{t.pattern??(t.pattern=s.xid),p.init(e,t)})),E=i.c("$ZodKSUID",((e,t)=>{t.pattern??(t.pattern=s.ksuid),p.init(e,t)})),T=i.c("$ZodISODateTime",((e,t)=>{t.pattern??(t.pattern=s.datetime(t)),p.init(e,t)})),w=i.c("$ZodISODate",((e,t)=>{t.pattern??(t.pattern=s.date),p.init(e,t)})),N=i.c("$ZodISOTime",((e,t)=>{t.pattern??(t.pattern=s.time(t)),p.init(e,t)})),O=i.c("$ZodISODuration",((e,t)=>{t.pattern??(t.pattern=s.duration),p.init(e,t)})),S=i.c("$ZodIPv4",((e,t)=>{t.pattern??(t.pattern=s.ipv4),p.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.format="ipv4"}))})),k=i.c("$ZodIPv6",((e,t)=>{t.pattern??(t.pattern=s.ipv6),p.init(e,t),e._zod.onattach.push((e=>{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})}}})),D=i.c("$ZodCIDRv4",((e,t)=>{t.pattern??(t.pattern=s.cidrv4),p.init(e,t)})),A=i.c("$ZodCIDRv6",((e,t)=>{t.pattern??(t.pattern=s.cidrv6),p.init(e,t),e._zod.check=n=>{const[r,i]=n.value.split("/");try{if(!i)throw new Error;const e=Number(i);if(`${e}`!==i)throw new Error;if(e<0||e>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}}));function x(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const j=i.c("$ZodBase64",((e,t)=>{t.pattern??(t.pattern=s.base64),p.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.contentEncoding="base64"})),e._zod.check=n=>{x(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}));function P(e){if(!s.base64url.test(e))return!1;const t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return x(t.padEnd(4*Math.ceil(t.length/4),"="))}const R=i.c("$ZodBase64URL",((e,t)=>{t.pattern??(t.pattern=s.base64url),p.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.contentEncoding="base64url"})),e._zod.check=n=>{P(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}})),U=i.c("$ZodE164",((e,t)=>{t.pattern??(t.pattern=s.e164),p.init(e,t)}));function z(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const L=i.c("$ZodJWT",((e,t)=>{p.init(e,t),e._zod.check=n=>{z(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}})),C=i.c("$ZodCustomStringFormat",((e,t)=>{p.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}})),F=i.c("$ZodNumber",((e,t)=>{l.init(e,t),e._zod.pattern=e._zod.bag.pattern??s.number,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}})),V=i.c("$ZodNumber",((e,t)=>{r.n.init(e,t),F.init(e,t)})),M=i.c("$ZodBoolean",((e,t)=>{l.init(e,t),e._zod.pattern=s.boolean,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}})),Z=i.c("$ZodBigInt",((e,t)=>{l.init(e,t),e._zod.pattern=s.bigint,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}})),G=i.c("$ZodBigInt",((e,t)=>{r.a.init(e,t),Z.init(e,t)})),J=i.c("$ZodSymbol",((e,t)=>{l.init(e,t),e._zod.parse=(t,n)=>{const r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}})),B=i.c("$ZodUndefined",((e,t)=>{l.init(e,t),e._zod.pattern=s.undefined,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{const r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}})),K=i.c("$ZodNull",((e,t)=>{l.init(e,t),e._zod.pattern=s.null,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}})),W=i.c("$ZodAny",((e,t)=>{l.init(e,t),e._zod.parse=e=>e})),q=i.c("$ZodUnknown",((e,t)=>{l.init(e,t),e._zod.parse=e=>e})),Y=i.c("$ZodNever",((e,t)=>{l.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)})),H=i.c("$ZodVoid",((e,t)=>{l.init(e,t),e._zod.parse=(t,n)=>{const r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}})),Q=i.c("$ZodDate",((e,t)=>{l.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}const i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}}));function X(e,t,n){e.issues.length&&t.issues.push(...u.prefixIssues(n,e.issues)),t.value[n]=e.value}const ee=i.c("$ZodArray",((e,t)=>{l.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let e=0;eX(t,n,e)))):X(s,n,e)}return o.length?Promise.all(o).then((()=>n)):n}}));function te(e,t,n,r){e.issues.length&&t.issues.push(...u.prefixIssues(n,e.issues)),void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const ne=i.c("$ZodObject",((e,t)=>{l.init(e,t);const n=u.cached((()=>{const e=Object.keys(t.shape);for(const n of e)if(!t.shape[n]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=u.optionalKeys(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}));let r;u.defineLazy(e._zod,"propValues",(()=>{const e=t.shape,n={};for(const t in e){const r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(const e of r.values)n[t].add(e)}}return n}));const a=u.isObject,s=!i.f.jitless,c=u.allowsEval,d=s&&c.value,p=t.catchall;let f;e._zod.parse=(i,c)=>{f??(f=n.value);const l=i.value;if(!a(l))return i.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),i;const m=[];if(s&&d&&!1===c?.async&&!0!==c.jitless)r||(r=(e=>{const t=new o.a(["shape","payload","ctx"]),r=n.value,i=e=>{const t=u.esc(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const a=Object.create(null);let s=0;for(const e of r.keys)a[e]="key_"+s++;t.write("const newResult = {}");for(const e of r.keys){const n=a[e],r=u.esc(e);t.write(`const ${n} = ${i(e)};`),t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${r}, ...iss.path] : [${r}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${r} in input) {\n newResult[${r}] = undefined;\n }\n } else {\n newResult[${r}] = ${n}.value;\n }\n `)}t.write("payload.value = newResult;"),t.write("return payload;");const c=t.compile();return(t,n)=>c(e,t,n)})(t.shape)),i=r(i,c);else{i.value={};const e=f.shape;for(const t of f.keys){const n=e[t]._zod.run({value:l[t],issues:[]},c);n instanceof Promise?m.push(n.then((e=>te(e,i,t,l)))):te(n,i,t,l)}}if(!p)return m.length?Promise.all(m).then((()=>i)):i;const h=[],v=f.keySet,y=p._zod,g=y.def.type;for(const e of Object.keys(l)){if(v.has(e))continue;if("never"===g){h.push(e);continue}const t=y.run({value:l[e],issues:[]},c);t instanceof Promise?m.push(t.then((t=>te(t,i,e,l)))):te(t,i,e,l)}return h.length&&i.issues.push({code:"unrecognized_keys",keys:h,input:l,inst:e}),m.length?Promise.all(m).then((()=>i)):i}}));function re(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const o=e.filter((e=>!u.aborted(e)));return 1===o.length?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map((e=>e.issues.map((e=>u.finalizeIssue(e,r,i.e())))))}),t)}const ie=i.c("$ZodUnion",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"optin",(()=>t.options.some((e=>"optional"===e._zod.optin))?"optional":void 0)),u.defineLazy(e._zod,"optout",(()=>t.options.some((e=>"optional"===e._zod.optout))?"optional":void 0)),u.defineLazy(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),u.defineLazy(e._zod,"pattern",(()=>{if(t.options.every((e=>e._zod.pattern))){const e=t.options.map((e=>e._zod.pattern));return new RegExp(`^(${e.map((e=>u.cleanRegex(e.source))).join("|")})$`)}}));const n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:i.value,issues:[]},o);if(t instanceof Promise)s.push(t),a=!0;else{if(0===t.issues.length)return t;s.push(t)}}return a?Promise.all(s).then((t=>re(t,i,e,o))):re(s,i,e,o)}})),oe=i.c("$ZodDiscriminatedUnion",((e,t)=>{ie.init(e,t);const n=e._zod.parse;u.defineLazy(e._zod,"propValues",(()=>{const e={};for(const n of t.options){const r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(const[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(const r of n)e[t].add(r)}}return e}));const r=u.cached((()=>{const e=t.options,n=new Map;for(const r of e){const e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const t of e){if(n.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n}));e._zod.parse=(i,o)=>{const a=i.value;if(!u.isObject(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}})),ae=i.c("$ZodIntersection",((e,t)=>{l.init(e,t),e._zod.parse=(e,n)=>{const r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then((([t,n])=>ue(e,t,n))):ue(e,i,o)}}));function se(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(u.isPlainObject(e)&&u.isPlainObject(t)){const n=Object.keys(t),r=Object.keys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const n of r){const r=se(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r{l.init(e,t);const n=t.items,r=n.length-[...n].reverse().findIndex((e=>"optional"!==e._zod.optin));e._zod.parse=(i,o)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const s=[];if(!t.rest){const t=a.length>n.length,o=a.length=a.length&&u>=r)continue;const t=e._zod.run({value:a[u],issues:[]},o);t instanceof Promise?s.push(t.then((e=>le(e,i,u)))):le(t,i,u)}if(t.rest){const e=a.slice(n.length);for(const n of e){u++;const e=t.rest._zod.run({value:n,issues:[]},o);e instanceof Promise?s.push(e.then((e=>le(e,i,u)))):le(e,i,u)}}return s.length?Promise.all(s).then((()=>i)):i}}));function le(e,t,n){e.issues.length&&t.issues.push(...u.prefixIssues(n,e.issues)),t.value[n]=e.value}const de=i.c("$ZodRecord",((e,t)=>{l.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!u.isPlainObject(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[];if(t.keyType._zod.values){const i=t.keyType._zod.values;n.value={};for(const e of i)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){const i=t.valueType._zod.run({value:o[e],issues:[]},r);i instanceof Promise?a.push(i.then((t=>{t.issues.length&&n.issues.push(...u.prefixIssues(e,t.issues)),n.value[e]=t.value}))):(i.issues.length&&n.issues.push(...u.prefixIssues(e,i.issues)),n.value[e]=i.value)}let s;for(const e in o)i.has(e)||(s=s??[],s.push(e));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const s of Reflect.ownKeys(o)){if("__proto__"===s)continue;const c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map((e=>u.finalizeIssue(e,r,i.e()))),input:s,path:[s],inst:e}),n.value[c.value]=c.value;continue}const l=t.valueType._zod.run({value:o[s],issues:[]},r);l instanceof Promise?a.push(l.then((e=>{e.issues.length&&n.issues.push(...u.prefixIssues(s,e.issues)),n.value[c.value]=e.value}))):(l.issues.length&&n.issues.push(...u.prefixIssues(s,l.issues)),n.value[c.value]=l.value)}}return a.length?Promise.all(a).then((()=>n)):n}})),pe=i.c("$ZodMap",((e,t)=>{l.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;const o=[];n.value=new Map;for(const[a,s]of i){const u=t.keyType._zod.run({value:a,issues:[]},r),c=t.valueType._zod.run({value:s,issues:[]},r);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then((([t,o])=>{fe(t,o,n,a,i,e,r)}))):fe(u,c,n,a,i,e,r)}return o.length?Promise.all(o).then((()=>n)):n}}));function fe(e,t,n,r,o,a,s){e.issues.length&&(u.propertyKeyTypes.has(typeof r)?n.issues.push(...u.prefixIssues(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:a,issues:e.issues.map((e=>u.finalizeIssue(e,s,i.e())))})),t.issues.length&&(u.propertyKeyTypes.has(typeof r)?n.issues.push(...u.prefixIssues(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:a,key:r,issues:t.issues.map((e=>u.finalizeIssue(e,s,i.e())))})),n.value.set(e.value,t.value)}const me=i.c("$ZodSet",((e,t)=>{l.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;const o=[];n.value=new Set;for(const e of i){const i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?o.push(i.then((e=>he(e,n)))):he(i,n)}return o.length?Promise.all(o).then((()=>n)):n}}));function he(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const ve=i.c("$ZodEnum",((e,t)=>{l.init(e,t);const n=u.getEnumValues(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter((e=>u.propertyKeyTypes.has(typeof e))).map((e=>"string"==typeof e?u.escapeRegex(e):e.toString())).join("|")})$`),e._zod.parse=(t,i)=>{const o=t.value;return r.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}})),ye=i.c("$ZodLiteral",((e,t)=>{if(l.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map((e=>"string"==typeof e?u.escapeRegex(e):e?u.escapeRegex(e.toString()):String(e))).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}})),ge=i.c("$ZodFile",((e,t)=>{l.init(e,t),e._zod.parse=(t,n)=>{const r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}})),be=i.c("$ZodTransform",((e,t)=>{l.init(e,t),e._zod.parse=(e,n)=>{const r=t.transform(e.value,e);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then((t=>(e.value=t,e)));if(r instanceof Promise)throw new i.a;return e.value=r,e}}));function _e(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const Ie=i.c("$ZodOptional",((e,t)=>{l.init(e,t),e._zod.optin="optional",e._zod.optout="optional",u.defineLazy(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),u.defineLazy(e._zod,"pattern",(()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${u.cleanRegex(e.source)})?$`):void 0})),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((t=>_e(t,e.value))):_e(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}})),$e=i.c("$ZodNullable",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"optin",(()=>t.innerType._zod.optin)),u.defineLazy(e._zod,"optout",(()=>t.innerType._zod.optout)),u.defineLazy(e._zod,"pattern",(()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${u.cleanRegex(e.source)}|null)$`):void 0})),u.defineLazy(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0)),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)})),Ee=i.c("$ZodDefault",((e,t)=>{l.init(e,t),e._zod.optin="optional",u.defineLazy(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{if(void 0===e.value)return e.value=t.defaultValue,e;const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((e=>Te(e,t))):Te(r,t)}}));function Te(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const we=i.c("$ZodPrefault",((e,t)=>{l.init(e,t),e._zod.optin="optional",u.defineLazy(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))})),Ne=i.c("$ZodNonOptional",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"values",(()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter((e=>void 0!==e))):void 0})),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then((t=>Oe(t,e))):Oe(i,e)}}));function Oe(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Se=i.c("$ZodSuccess",((e,t)=>{l.init(e,t),e._zod.parse=(e,n)=>{const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((t=>(e.value=0===t.issues.length,e))):(e.value=0===r.issues.length,e)}})),ke=i.c("$ZodCatch",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"optin",(()=>t.innerType._zod.optin)),u.defineLazy(e._zod,"optout",(()=>t.innerType._zod.optout)),u.defineLazy(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>u.finalizeIssue(e,n,i.e())))},input:e.value}),e.issues=[]),e))):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>u.finalizeIssue(e,n,i.e())))},input:e.value}),e.issues=[]),e)}})),De=i.c("$ZodNaN",((e,t)=>{l.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)})),Ae=i.c("$ZodPipe",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"values",(()=>t.in._zod.values)),u.defineLazy(e._zod,"optin",(()=>t.in._zod.optin)),u.defineLazy(e._zod,"optout",(()=>t.out._zod.optout)),u.defineLazy(e._zod,"propValues",(()=>t.in._zod.propValues)),e._zod.parse=(e,n)=>{const r=t.in._zod.run(e,n);return r instanceof Promise?r.then((e=>xe(e,t,n))):xe(r,t,n)}}));function xe(e,t,n){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const je=i.c("$ZodReadonly",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"propValues",(()=>t.innerType._zod.propValues)),u.defineLazy(e._zod,"values",(()=>t.innerType._zod.values)),u.defineLazy(e._zod,"optin",(()=>t.innerType._zod.optin)),u.defineLazy(e._zod,"optout",(()=>t.innerType._zod.optout)),e._zod.parse=(e,n)=>{const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Pe):Pe(r)}}));function Pe(e){return e.value=Object.freeze(e.value),e}const Re=i.c("$ZodTemplateLiteral",((e,t)=>{l.init(e,t);const n=[];for(const e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);const t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${e._zod.traits}`);const r=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,i))}else{if(null!==e&&!u.primitiveTypes.has(typeof e))throw new Error(`Invalid template literal part: ${e}`);n.push(u.escapeRegex(`${e}`))}e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>"string"!=typeof n.value?(n.issues.push({input:n.value,inst:e,expected:"template_literal",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)})),Ue=i.c("$ZodPromise",((e,t)=>{l.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then((e=>t.innerType._zod.run({value:e,issues:[]},n)))})),ze=i.c("$ZodLazy",((e,t)=>{l.init(e,t),u.defineLazy(e._zod,"innerType",(()=>t.getter())),u.defineLazy(e._zod,"pattern",(()=>e._zod.innerType._zod.pattern)),u.defineLazy(e._zod,"propValues",(()=>e._zod.innerType._zod.propValues)),u.defineLazy(e._zod,"optin",(()=>e._zod.innerType._zod.optin??void 0)),u.defineLazy(e._zod,"optout",(()=>e._zod.innerType._zod.optout??void 0)),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)})),Le=i.c("$ZodCustom",((e,t)=>{r.v.init(e,t),l.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then((t=>Ce(t,n,r,e)));Ce(i,n,r,e)}}));function Ce(e,t,n,r){if(!e){const e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(u.issue(e))}}},(e,t,n)=>{"use strict";n.d(t,{a:()=>p,b:()=>w,c:()=>c,d:()=>E,e:()=>g,f:()=>u,g:()=>I,h:()=>v,i:()=>f,j:()=>S,k:()=>y,l:()=>m,m:()=>l,n:()=>d,o:()=>k,p:()=>O,q:()=>_,r:()=>h,s:()=>T,t:()=>b,u:()=>$,v:()=>a});var r=n(69),i=n(130),o=n(61);const a=r.c("$ZodCheck",((e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])})),s={number:"number",bigint:"bigint",object:"date"},u=r.c("$ZodCheckLessThan",((e,t)=>{a.init(e,t);const n=s[typeof t.value];e._zod.onattach.push((e=>{const n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{a.init(e,t);const n=s[typeof t.value];e._zod.onattach.push((e=>{const n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)})),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}})),l=r.c("$ZodCheckMultipleOf",((e,t)=>{a.init(e,t),e._zod.onattach.push((e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)})),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===o.floatSafeRemainder(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}})),d=r.c("$ZodCheckNumberFormat",((e,t)=>{a.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[s,u]=o.NUMBER_FORMAT_RANGES[t.format];e._zod.onattach.push((e=>{const r=e._zod.bag;r.format=t.format,r.minimum=s,r.maximum=u,n&&(r.pattern=i.integer)})),e._zod.check=i=>{const o=i.value;if(n){if(!Number.isInteger(o))return void i.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});if(!Number.isSafeInteger(o))return void(o>0?i.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):i.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}))}ou&&i.issues.push({origin:"number",input:o,code:"too_big",maximum:u,inst:e})}})),p=r.c("$ZodCheckBigIntFormat",((e,t)=>{a.init(e,t);const[n,r]=o.BIGINT_FORMAT_RANGES[t.format];e._zod.onattach.push((e=>{const i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r})),e._zod.check=i=>{const o=i.value;or&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inst:e})}})),f=r.c("$ZodCheckMaxSize",((e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!o.nullish(t)&&void 0!==t.size}),e._zod.onattach.push((e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const r=n.value;r.size<=t.maximum||n.issues.push({origin:o.getSizableOrigin(r),code:"too_big",maximum:t.maximum,input:r,inst:e,continue:!t.abort})}})),m=r.c("$ZodCheckMinSize",((e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!o.nullish(t)&&void 0!==t.size}),e._zod.onattach.push((e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=n=>{const r=n.value;r.size>=t.minimum||n.issues.push({origin:o.getSizableOrigin(r),code:"too_small",minimum:t.minimum,input:r,inst:e,continue:!t.abort})}})),h=r.c("$ZodCheckSizeEquals",((e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!o.nullish(t)&&void 0!==t.size}),e._zod.onattach.push((e=>{const n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size})),e._zod.check=n=>{const r=n.value,i=r.size;if(i===t.size)return;const a=i>t.size;n.issues.push({origin:o.getSizableOrigin(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}})),v=r.c("$ZodCheckMaxLength",((e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!o.nullish(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const r=n.value;if(r.length<=t.maximum)return;const i=o.getLengthableOrigin(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),y=r.c("$ZodCheckMinLength",((e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!o.nullish(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const i=o.getLengthableOrigin(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),g=r.c("$ZodCheckLengthEquals",((e,t)=>{var n;a.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!o.nullish(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length})),e._zod.check=n=>{const r=n.value,i=r.length;if(i===t.length)return;const a=o.getLengthableOrigin(r),s=i>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}})),b=r.c("$ZodCheckStringFormat",((e,t)=>{var n,r;a.init(e,t),e._zod.onattach.push((e=>{const n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))})),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})})),_=r.c("$ZodCheckRegex",((e,t)=>{b.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}})),I=r.c("$ZodCheckLowerCase",((e,t)=>{t.pattern??(t.pattern=i.lowercase),b.init(e,t)})),$=r.c("$ZodCheckUpperCase",((e,t)=>{t.pattern??(t.pattern=i.uppercase),b.init(e,t)})),E=r.c("$ZodCheckIncludes",((e,t)=>{a.init(e,t);const n=o.escapeRegex(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)})),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}})),T=r.c("$ZodCheckStartsWith",((e,t)=>{a.init(e,t);const n=new RegExp(`^${o.escapeRegex(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)})),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}})),w=r.c("$ZodCheckEndsWith",((e,t)=>{a.init(e,t);const n=new RegExp(`.*${o.escapeRegex(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)})),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}));function N(e,t,n){e.issues.length&&t.issues.push(...o.prefixIssues(n,e.issues))}const O=r.c("$ZodCheckProperty",((e,t)=>{a.init(e,t),e._zod.check=e=>{const n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then((n=>N(n,e,t.property)));N(n,e,t.property)}})),S=r.c("$ZodCheckMimeType",((e,t)=>{a.init(e,t);const n=new Set(t.mime);e._zod.onattach.push((e=>{e._zod.bag.mime=t.mime})),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}})),k=r.c("$ZodCheckOverwrite",((e,t)=>{a.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}))},,(e,t,n)=>{"use strict";n.d(t,{a:()=>ft});var r={};n.r(r),n.d(r,{ar:()=>y,az:()=>b,be:()=>$,ca:()=>T,cs:()=>N,da:()=>S,de:()=>D,en:()=>x,eo:()=>P,es:()=>U,fa:()=>L,fi:()=>F,fr:()=>M,frCA:()=>G,he:()=>B,hu:()=>W,id:()=>Y,is:()=>Q,it:()=>ee,ja:()=>ne,kh:()=>ie,ko:()=>ae,mk:()=>ue,ms:()=>le,nl:()=>pe,no:()=>me,ota:()=>ve,pl:()=>_e,ps:()=>ge,pt:()=>$e,ru:()=>we,sl:()=>Oe,sv:()=>ke,ta:()=>Ae,th:()=>je,tr:()=>Re,ua:()=>ze,ur:()=>Ce,vi:()=>Ve,yo:()=>Ke,zhCN:()=>Ze,zhTW:()=>Je});var i={};n.r(i);var o={};n.r(o),n.d(o,{$ZodAny:()=>d.a,$ZodArray:()=>d.b,$ZodAsyncError:()=>u.a,$ZodBase64:()=>d.d,$ZodBase64URL:()=>d.c,$ZodBigInt:()=>d.f,$ZodBigIntFormat:()=>d.e,$ZodBoolean:()=>d.g,$ZodCIDRv4:()=>d.h,$ZodCIDRv6:()=>d.i,$ZodCUID:()=>d.j,$ZodCUID2:()=>d.k,$ZodCatch:()=>d.l,$ZodCheck:()=>p.v,$ZodCheckBigIntFormat:()=>p.a,$ZodCheckEndsWith:()=>p.b,$ZodCheckGreaterThan:()=>p.c,$ZodCheckIncludes:()=>p.d,$ZodCheckLengthEquals:()=>p.e,$ZodCheckLessThan:()=>p.f,$ZodCheckLowerCase:()=>p.g,$ZodCheckMaxLength:()=>p.h,$ZodCheckMaxSize:()=>p.i,$ZodCheckMimeType:()=>p.j,$ZodCheckMinLength:()=>p.k,$ZodCheckMinSize:()=>p.l,$ZodCheckMultipleOf:()=>p.m,$ZodCheckNumberFormat:()=>p.n,$ZodCheckOverwrite:()=>p.o,$ZodCheckProperty:()=>p.p,$ZodCheckRegex:()=>p.q,$ZodCheckSizeEquals:()=>p.r,$ZodCheckStartsWith:()=>p.s,$ZodCheckStringFormat:()=>p.t,$ZodCheckUpperCase:()=>p.u,$ZodCustom:()=>d.n,$ZodCustomStringFormat:()=>d.m,$ZodDate:()=>d.o,$ZodDefault:()=>d.p,$ZodDiscriminatedUnion:()=>d.q,$ZodE164:()=>d.u,$ZodEmail:()=>d.r,$ZodEmoji:()=>d.s,$ZodEnum:()=>d.t,$ZodError:()=>l.a,$ZodFile:()=>d.v,$ZodFunction:()=>He,$ZodGUID:()=>d.w,$ZodIPv4:()=>d.x,$ZodIPv6:()=>d.y,$ZodISODate:()=>d.A,$ZodISODateTime:()=>d.z,$ZodISODuration:()=>d.B,$ZodISOTime:()=>d.C,$ZodIntersection:()=>d.D,$ZodJWT:()=>d.E,$ZodKSUID:()=>d.F,$ZodLazy:()=>d.G,$ZodLiteral:()=>d.H,$ZodMap:()=>d.I,$ZodNaN:()=>d.J,$ZodNanoID:()=>d.K,$ZodNever:()=>d.L,$ZodNonOptional:()=>d.M,$ZodNull:()=>d.O,$ZodNullable:()=>d.N,$ZodNumber:()=>d.Q,$ZodNumberFormat:()=>d.P,$ZodObject:()=>d.R,$ZodOptional:()=>d.S,$ZodPipe:()=>d.T,$ZodPrefault:()=>d.U,$ZodPromise:()=>d.V,$ZodReadonly:()=>d.W,$ZodRealError:()=>l.b,$ZodRecord:()=>d.X,$ZodRegistry:()=>We.a,$ZodSet:()=>d.Y,$ZodString:()=>d._,$ZodStringFormat:()=>d.Z,$ZodSuccess:()=>d.$,$ZodSymbol:()=>d.ab,$ZodTemplateLiteral:()=>d.bb,$ZodTransform:()=>d.cb,$ZodTuple:()=>d.db,$ZodType:()=>d.eb,$ZodULID:()=>d.fb,$ZodURL:()=>d.gb,$ZodUUID:()=>d.hb,$ZodUndefined:()=>d.ib,$ZodUnion:()=>d.jb,$ZodUnknown:()=>d.kb,$ZodVoid:()=>d.lb,$ZodXID:()=>d.mb,$brand:()=>u.b,$constructor:()=>u.c,$input:()=>We.b,$output:()=>We.c,Doc:()=>qe.a,JSONSchema:()=>i,JSONSchemaGenerator:()=>Xe.a,NEVER:()=>u.d,TimePrecision:()=>Ye.a,_any:()=>Ye.b,_array:()=>Ye.c,_base64:()=>Ye.e,_base64url:()=>Ye.d,_bigint:()=>Ye.f,_boolean:()=>Ye.g,_catch:()=>Ye.h,_check:()=>Ye.i,_cidrv4:()=>Ye.j,_cidrv6:()=>Ye.k,_coercedBigint:()=>Ye.l,_coercedBoolean:()=>Ye.m,_coercedDate:()=>Ye.n,_coercedNumber:()=>Ye.o,_coercedString:()=>Ye.p,_cuid:()=>Ye.q,_cuid2:()=>Ye.r,_custom:()=>Ye.s,_date:()=>Ye.t,_default:()=>Ye.u,_discriminatedUnion:()=>Ye.v,_e164:()=>Ye.A,_email:()=>Ye.w,_emoji:()=>Ye.x,_endsWith:()=>Ye.y,_enum:()=>Ye.z,_file:()=>Ye.B,_float32:()=>Ye.C,_float64:()=>Ye.D,_gt:()=>Ye.F,_gte:()=>Ye.E,_guid:()=>Ye.G,_includes:()=>Ye.H,_int:()=>Ye.J,_int32:()=>Ye.K,_int64:()=>Ye.L,_intersection:()=>Ye.I,_ipv4:()=>Ye.M,_ipv6:()=>Ye.N,_isoDate:()=>Ye.P,_isoDateTime:()=>Ye.O,_isoDuration:()=>Ye.Q,_isoTime:()=>Ye.R,_jwt:()=>Ye.S,_ksuid:()=>Ye.T,_lazy:()=>Ye.U,_length:()=>Ye.V,_literal:()=>Ye.W,_lowercase:()=>Ye.X,_lt:()=>Ye.Z,_lte:()=>Ye.Y,_map:()=>Ye._,_max:()=>Ye.bb,_maxLength:()=>Ye.$,_maxSize:()=>Ye.ab,_mime:()=>Ye.cb,_min:()=>Ye.fb,_minLength:()=>Ye.db,_minSize:()=>Ye.eb,_multipleOf:()=>Ye.gb,_nan:()=>Ye.ib,_nanoid:()=>Ye.hb,_nativeEnum:()=>Ye.jb,_negative:()=>Ye.kb,_never:()=>Ye.lb,_nonnegative:()=>Ye.mb,_nonoptional:()=>Ye.nb,_nonpositive:()=>Ye.ob,_normalize:()=>Ye.pb,_null:()=>Ye.rb,_nullable:()=>Ye.qb,_number:()=>Ye.sb,_optional:()=>Ye.tb,_overwrite:()=>Ye.ub,_parse:()=>c.b,_parseAsync:()=>c.a,_pipe:()=>Ye.vb,_positive:()=>Ye.wb,_promise:()=>Ye.xb,_property:()=>Ye.yb,_readonly:()=>Ye.zb,_record:()=>Ye.Ab,_refine:()=>Ye.Bb,_regex:()=>Ye.Cb,_safeParse:()=>c.d,_safeParseAsync:()=>c.c,_set:()=>Ye.Db,_size:()=>Ye.Eb,_startsWith:()=>Ye.Fb,_string:()=>Ye.Ib,_stringFormat:()=>Ye.Gb,_stringbool:()=>Ye.Hb,_success:()=>Ye.Jb,_superRefine:()=>Ye.Kb,_symbol:()=>Ye.Lb,_templateLiteral:()=>Ye.Mb,_toLowerCase:()=>Ye.Nb,_toUpperCase:()=>Ye.Ob,_transform:()=>Ye.Pb,_trim:()=>Ye.Qb,_tuple:()=>Ye.Rb,_uint32:()=>Ye.Sb,_uint64:()=>Ye.Tb,_ulid:()=>Ye.Ub,_undefined:()=>Ye.Vb,_union:()=>Ye.Wb,_unknown:()=>Ye.Xb,_uppercase:()=>Ye.Yb,_url:()=>Ye.Zb,_uuid:()=>Ye.bc,_uuidv4:()=>Ye._b,_uuidv6:()=>Ye.$b,_uuidv7:()=>Ye.ac,_void:()=>Ye.cc,_xid:()=>Ye.dc,clone:()=>d.nb,config:()=>u.e,flattenError:()=>l.c,formatError:()=>l.d,function:()=>Qe,globalConfig:()=>u.f,globalRegistry:()=>We.d,isValidBase64:()=>d.pb,isValidBase64URL:()=>d.ob,isValidJWT:()=>d.qb,locales:()=>r,parse:()=>c.f,parseAsync:()=>c.e,prettifyError:()=>l.e,regexes:()=>h,registry:()=>We.e,safeParse:()=>c.h,safeParseAsync:()=>c.g,toDotPath:()=>l.f,toJSONSchema:()=>Xe.b,treeifyError:()=>l.g,util:()=>m,version:()=>f.a});var a={};n.r(a),n.d(a,{bigint:()=>dt,boolean:()=>lt,date:()=>pt,number:()=>ct,string:()=>ut});var s={};n.r(s),n.d(s,{$brand:()=>u.b,$input:()=>We.b,$output:()=>We.c,NEVER:()=>u.d,TimePrecision:()=>Ye.a,ZodAny:()=>et.a,ZodArray:()=>et.b,ZodBase64:()=>et.d,ZodBase64URL:()=>et.c,ZodBigInt:()=>et.f,ZodBigIntFormat:()=>et.e,ZodBoolean:()=>et.g,ZodCIDRv4:()=>et.h,ZodCIDRv6:()=>et.i,ZodCUID:()=>et.j,ZodCUID2:()=>et.k,ZodCatch:()=>et.l,ZodCustom:()=>et.n,ZodCustomStringFormat:()=>et.m,ZodDate:()=>et.o,ZodDefault:()=>et.p,ZodDiscriminatedUnion:()=>et.q,ZodE164:()=>et.u,ZodEmail:()=>et.r,ZodEmoji:()=>et.s,ZodEnum:()=>et.t,ZodError:()=>tt.a,ZodFile:()=>et.v,ZodFirstPartyTypeKind:()=>at,ZodGUID:()=>et.w,ZodIPv4:()=>et.x,ZodIPv6:()=>et.y,ZodISODate:()=>st.ZodISODate,ZodISODateTime:()=>st.ZodISODateTime,ZodISODuration:()=>st.ZodISODuration,ZodISOTime:()=>st.ZodISOTime,ZodIntersection:()=>et.z,ZodIssueCode:()=>rt,ZodJWT:()=>et.A,ZodKSUID:()=>et.B,ZodLazy:()=>et.C,ZodLiteral:()=>et.D,ZodMap:()=>et.E,ZodNaN:()=>et.F,ZodNanoID:()=>et.G,ZodNever:()=>et.H,ZodNonOptional:()=>et.I,ZodNull:()=>et.K,ZodNullable:()=>et.J,ZodNumber:()=>et.M,ZodNumberFormat:()=>et.L,ZodObject:()=>et.N,ZodOptional:()=>et.O,ZodPipe:()=>et.P,ZodPrefault:()=>et.Q,ZodPromise:()=>et.R,ZodReadonly:()=>et.S,ZodRealError:()=>tt.b,ZodRecord:()=>et.T,ZodSet:()=>et.U,ZodString:()=>et.W,ZodStringFormat:()=>et.V,ZodSuccess:()=>et.X,ZodSymbol:()=>et.Y,ZodTemplateLiteral:()=>et.Z,ZodTransform:()=>et._,ZodTuple:()=>et.$,ZodType:()=>et.ab,ZodULID:()=>et.bb,ZodURL:()=>et.cb,ZodUUID:()=>et.db,ZodUndefined:()=>et.eb,ZodUnion:()=>et.fb,ZodUnknown:()=>et.gb,ZodVoid:()=>et.hb,ZodXID:()=>et.ib,_ZodString:()=>et.jb,_default:()=>et.kb,any:()=>et.lb,array:()=>et.mb,base64:()=>et.ob,base64url:()=>et.nb,bigint:()=>et.pb,boolean:()=>et.qb,catch:()=>et.rb,check:()=>et.sb,cidrv4:()=>et.tb,cidrv6:()=>et.ub,clone:()=>m.clone,coerce:()=>a,config:()=>u.e,core:()=>o,cuid:()=>et.vb,cuid2:()=>et.wb,custom:()=>et.xb,date:()=>et.yb,discriminatedUnion:()=>et.zb,e164:()=>et.Db,email:()=>et.Ab,emoji:()=>et.Bb,endsWith:()=>Ye.y,enum:()=>et.Cb,file:()=>et.Eb,flattenError:()=>l.c,float32:()=>et.Fb,float64:()=>et.Gb,formatError:()=>l.d,function:()=>Qe,getErrorMap:()=>ot,globalRegistry:()=>We.d,gt:()=>Ye.F,gte:()=>Ye.E,guid:()=>et.Hb,hostname:()=>et.Ib,includes:()=>Ye.H,instanceof:()=>et.Jb,int:()=>et.Lb,int32:()=>et.Mb,int64:()=>et.Nb,intersection:()=>et.Kb,ipv4:()=>et.Ob,ipv6:()=>et.Pb,iso:()=>st,json:()=>et.Qb,jwt:()=>et.Rb,keyof:()=>et.Sb,ksuid:()=>et.Tb,lazy:()=>et.Ub,length:()=>Ye.V,literal:()=>et.Vb,locales:()=>r,looseObject:()=>et.Wb,lowercase:()=>Ye.X,lt:()=>Ye.Z,lte:()=>Ye.Y,map:()=>et.Xb,maxLength:()=>Ye.$,maxSize:()=>Ye.ab,mime:()=>Ye.cb,minLength:()=>Ye.db,minSize:()=>Ye.eb,multipleOf:()=>Ye.gb,nan:()=>et.Zb,nanoid:()=>et.Yb,nativeEnum:()=>et._b,negative:()=>Ye.kb,never:()=>et.$b,nonnegative:()=>Ye.mb,nonoptional:()=>et.ac,nonpositive:()=>Ye.ob,normalize:()=>Ye.pb,null:()=>et.dc,nullable:()=>et.bc,nullish:()=>et.cc,number:()=>et.ec,object:()=>et.fc,optional:()=>et.gc,overwrite:()=>Ye.ub,parse:()=>nt.b,parseAsync:()=>nt.a,partialRecord:()=>et.hc,pipe:()=>et.ic,positive:()=>Ye.wb,prefault:()=>et.jc,preprocess:()=>et.kc,prettifyError:()=>l.e,promise:()=>et.lc,property:()=>Ye.yb,readonly:()=>et.mc,record:()=>et.nc,refine:()=>et.oc,regex:()=>Ye.Cb,regexes:()=>h,registry:()=>We.e,safeParse:()=>nt.d,safeParseAsync:()=>nt.c,set:()=>et.pc,setErrorMap:()=>it,size:()=>Ye.Eb,startsWith:()=>Ye.Fb,strictObject:()=>et.qc,string:()=>et.tc,stringFormat:()=>et.rc,stringbool:()=>et.sc,success:()=>et.uc,superRefine:()=>et.vc,symbol:()=>et.wc,templateLiteral:()=>et.xc,toJSONSchema:()=>Xe.b,toLowerCase:()=>Ye.Nb,toUpperCase:()=>Ye.Ob,transform:()=>et.yc,treeifyError:()=>l.g,trim:()=>Ye.Qb,tuple:()=>et.zc,uint32:()=>et.Ac,uint64:()=>et.Bc,ulid:()=>et.Cc,undefined:()=>et.Dc,union:()=>et.Ec,unknown:()=>et.Fc,uppercase:()=>Ye.Yb,url:()=>et.Gc,uuid:()=>et.Kc,uuidv4:()=>et.Hc,uuidv6:()=>et.Ic,uuidv7:()=>et.Jc,void:()=>et.Lc,xid:()=>et.Mc});var u=n(69),c=n(180),l=n(142),d=n(131),p=n(132),f=n(289),m=n(61),h=n(130);const v=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}const 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:"مدخل"};return e=>{switch(e.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${e.expected}، ولكن تم إدخال ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`مدخلات غير مقبولة: يفترض إدخال ${m.stringifyPrimitive(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()} ${r.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${m.joinValues(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}};function y(){return{localeError:v()}}const g=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${e.expected}, daxil olan ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Yanlış dəyər: gözlənilən ${m.stringifyPrimitive(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()} ${r.unit??"element"}`:`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${e.keys.length>1?"lar":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış açar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}};function b(){return{localeError:g()}}function _(e,t,n,r){const i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:1===o?t:o>=2&&o<=4?n:r}const I=()=>{const 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(t){return e[t]??null}const 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:"увод"};return e=>{switch(e.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${e.expected}, атрымана ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"лік";case"object":if(Array.isArray(e))return"масіў";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Няправільны ўвод: чакалася ${m.stringifyPrimitive(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);if(r){const t=_(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);if(r){const t=_(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:"ends_with"===t.format?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:"includes"===t.format?`Няправільны радок: павінен змяшчаць "${t.includes}"`:"regex"===t.format?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}};function $(){return{localeError:I()}}const E=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Tipus invàlid: s'esperava ${e.expected}, s'ha rebut ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Valor invàlid: s'esperava ${m.stringifyPrimitive(e.values[0])}`:`Opció invàlida: s'esperava una de ${m.joinValues(e.values," o ")}`;case"too_big":{const n=e.inclusive?"com a màxim":"menys de",r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${n} ${e.maximum.toString()} ${r.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"com a mínim":"més de",r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${e.origin}`}}};function T(){return{localeError:E()}}const w=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Neplatný vstup: očekáváno ${e.expected}, obdrženo ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":if(Array.isArray(e))return"pole";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Neplatný vstup: očekáváno ${m.stringifyPrimitive(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${n}${e.maximum.toString()} ${r.unit??"prvků"}`:`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${n}${e.minimum.toString()} ${r.unit??"prvků"}`:`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${e.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${e.origin}`}}};function N(){return{localeError:w()}}const O=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function n(t){return e[t]??null}function r(e){return t[e]??e}const i={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"};return e=>{switch(e.code){case"invalid_type":return`Ugyldigt input: forventede ${r(e.expected)}, fik ${r((e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tal";case"object":return Array.isArray(e)?"liste":null===e?"null":Object.getPrototypeOf(e)!==Object.prototype&&e.constructor?e.constructor.name:"objekt"}return t})(e.input))}`;case"invalid_value":return 1===e.values.length?`Ugyldig værdi: forventede ${m.stringifyPrimitive(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${m.joinValues(e.values,"|")}`;case"too_big":{const t=e.inclusive?"<=":"<",i=n(e.origin),o=r(e.origin);return i?`For stor: forventede ${o??"value"} ${i.verb} ${t} ${e.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${o??"value"} havde ${t} ${e.maximum.toString()}`}case"too_small":{const t=e.inclusive?">=":">",i=n(e.origin),o=r(e.origin);return i?`For lille: forventede ${o} ${i.verb} ${t} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${o} havde ${t} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: skal starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: skal ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: skal indeholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${i[t.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${e.origin}`;default:return"Ugyldigt input"}}};function S(){return{localeError:O()}}const k=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${e.expected}, erhalten ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Zahl";case"object":if(Array.isArray(e))return"Array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ungültige Eingabe: erwartet ${m.stringifyPrimitive(e.values[0])}`:`Ungültige Option: erwartet eine von ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ${r.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ist`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${e.origin}`}}};function D(){return{localeError:k()}}const A=()=>{const 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"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Invalid input: expected ${e.expected}, received ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Invalid input: expected ${m.stringifyPrimitive(e.values[0])}`:`Invalid option: expected one of ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Too big: expected ${e.origin??"value"} to have ${n}${e.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}};function x(){return{localeError:A()}}const j=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${e.expected}, riceviĝis ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":if(Array.isArray(e))return"tabelo";if(null===e)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Nevalida enigo: atendiĝis ${m.stringifyPrimitive(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${n}${e.maximum.toString()} ${r.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}};function P(){return{localeError:j()}}const R=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: se esperaba ${e.expected}, recibido ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"arreglo";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: se esperaba ${m.stringifyPrimitive(e.values[0])}`:`Opción inválida: se esperaba una de ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Demasiado grande: se esperaba que ${e.origin??"valor"} tuviera ${n}${e.maximum.toString()} ${r.unit??"elementos"}`:`Demasiado grande: se esperaba que ${e.origin??"valor"} fuera ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Demasiado pequeño: se esperaba que ${e.origin} tuviera ${n}${e.minimum.toString()} ${r.unit}`:`Demasiado pequeño: se esperaba que ${e.origin} fuera ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Cadena inválida: debe comenzar con "${t.prefix}"`:"ends_with"===t.format?`Cadena inválida: debe terminar en "${t.suffix}"`:"includes"===t.format?`Cadena inválida: debe incluir "${t.includes}"`:"regex"===t.format?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Llave inválida en ${e.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inválido en ${e.origin}`}}};function U(){return{localeError:R()}}const z=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}const 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:"ورودی"};return e=>{switch(e.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${e.expected} می‌بود، ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"آرایه";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} دریافت شد`;case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: می‌بایست ${m.stringifyPrimitive(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${m.joinValues(e.values,"|")} می‌بود`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} ${r.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} باشد`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case"invalid_format":{const t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}};function L(){return{localeError:z()}}const C=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${e.expected}, oli ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Virheellinen syöte: täytyy olla ${m.stringifyPrimitive(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${m.joinValues(e.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 F(){return{localeError:C()}}const V=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Entrée invalide : ${e.expected} attendu, ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombre";case"object":if(Array.isArray(e))return"tableau";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} reçu`;case"invalid_value":return 1===e.values.length?`Entrée invalide : ${m.stringifyPrimitive(e.values[0])} attendu`:`Option invalide : une valeur parmi ${m.joinValues(e.values,"|")} attendue`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Trop grand : ${e.origin??"valeur"} doit ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"élément(s)"}`:`Trop grand : ${e.origin??"valeur"} doit être ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Trop petit : ${e.origin} doit ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : ${e.origin} doit être ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function M(){return{localeError:V()}}const Z=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Entrée invalide : attendu ${e.expected}, reçu ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrée invalide : attendu ${m.stringifyPrimitive(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"≤":"<",r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"≥":">",r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function G(){return{localeError:Z()}}const J=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(t){return e[t]??null}const 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:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return e=>{switch(e.code){case"invalid_type":return`קלט לא תקין: צריך ${e.expected}, התקבל ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`קלט לא תקין: צריך ${m.stringifyPrimitive(e.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`גדול מדי: ${e.origin??"value"} צריך להיות ${n}${e.maximum.toString()} ${r.unit??"elements"}`:`גדול מדי: ${e.origin??"value"} צריך להיות ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`קטן מדי: ${e.origin} צריך להיות ${n}${e.minimum.toString()} ${r.unit}`:`קטן מדי: ${e.origin} צריך להיות ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`מחרוזת לא תקינה: חייבת להתחיל ב"${t.prefix}"`:"ends_with"===t.format?`מחרוזת לא תקינה: חייבת להסתיים ב "${t.suffix}"`:"includes"===t.format?`מחרוזת לא תקינה: חייבת לכלול "${t.includes}"`:"regex"===t.format?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${t.pattern}`:`${n[t.format]??e.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${e.divisor}`;case"unrecognized_keys":return`מפתח${e.keys.length>1?"ות":""} לא מזוה${e.keys.length>1?"ים":"ה"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${e.origin}`;case"invalid_union":default:return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${e.origin}`}}};function B(){return{localeError:J()}}const K=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${e.expected}, a kapott érték ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"szám";case"object":if(Array.isArray(e))return"tömb";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Érvénytelen bemenet: a várt érték ${m.stringifyPrimitive(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??"elem"}`:`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${e.origin}`}}};function W(){return{localeError:K()}}const q=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Input tidak valid: diharapkan ${e.expected}, diterima ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input tidak valid: diharapkan ${m.stringifyPrimitive(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${n}${e.maximum.toString()} ${r.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}};function Y(){return{localeError:q()}}const H=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":if(Array.isArray(e))return"fylki";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} þar sem á að vera ${e.expected}`;case"invalid_value":return 1===e.values.length?`Rangt gildi: gert ráð fyrir ${m.stringifyPrimitive(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} hafi ${n}${e.maximum.toString()} ${r.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} sé ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ógildur strengur: verður að byrja á "${t.prefix}"`:"ends_with"===t.format?`Ógildur strengur: verður að enda á "${t.suffix}"`:"includes"===t.format?`Ógildur strengur: verður að innihalda "${t.includes}"`:"regex"===t.format?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`Óþekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${e.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${e.origin}`}}};function Q(){return{localeError:H()}}const X=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Input non valido: atteso ${e.expected}, ricevuto ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numero";case"object":if(Array.isArray(e))return"vettore";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input non valido: atteso ${m.stringifyPrimitive(e.values[0])}`:`Opzione non valida: atteso uno tra ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Troppo grande: ${e.origin??"valore"} deve avere ${n}${e.maximum.toString()} ${r.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}};function ee(){return{localeError:X()}}const te=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}const 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:"入力値"};return e=>{switch(e.code){case"invalid_type":return`無効な入力: ${e.expected}が期待されましたが、${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"数値";case"object":if(Array.isArray(e))return"配列";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}が入力されました`;case"invalid_value":return 1===e.values.length?`無効な入力: ${m.stringifyPrimitive(e.values[0])}が期待されました`:`無効な選択: ${m.joinValues(e.values,"、")}のいずれかである必要があります`;case"too_big":{const n=e.inclusive?"以下である":"より小さい",r=t(e.origin);return r?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${r.unit??"要素"}${n}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${n}必要があります`}case"too_small":{const n=e.inclusive?"以上である":"より大きい",r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${m.joinValues(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}};function ne(){return{localeError:te()}}const re=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}const 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:"ទិន្នន័យបញ្ចូល"};return e=>{switch(e.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e.expected} ប៉ុន្តែទទួលបាន ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":if(Array.isArray(e))return"អារេ (Array)";if(null===e)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${m.stringifyPrimitive(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()} ${r.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}};function ie(){return{localeError:re()}}const oe=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}const 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:"입력"};return e=>{switch(e.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${e.expected}, 받은 타입은 ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}입니다`;case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${m.stringifyPrimitive(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${m.joinValues(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const n=e.inclusive?"이하":"미만",r="미만"===n?"이어야 합니다":"여야 합니다",i=t(e.origin),o=i?.unit??"요소";return i?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${o} ${n}${r}`:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case"too_small":{const n=e.inclusive?"이상":"초과",r="이상"===n?"이어야 합니다":"여야 합니다",i=t(e.origin),o=i?.unit??"요소";return i?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${o} ${n}${r}`:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}};function ae(){return{localeError:oe()}}const se=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}const 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:"внес"};return e=>{switch(e.code){case"invalid_type":return`Грешен внес: се очекува ${e.expected}, примено ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"број";case"object":if(Array.isArray(e))return"низа";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Invalid input: expected ${m.stringifyPrimitive(e.values[0])}`:`Грешана опција: се очекува една ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${n}${e.maximum.toString()} ${r.unit??"елементи"}`:`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}};function ue(){return{localeError:se()}}const ce=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Input tidak sah: dijangka ${e.expected}, diterima ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombor";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input tidak sah: dijangka ${m.stringifyPrimitive(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??"nilai"} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}};function le(){return{localeError:ce()}}const de=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Ongeldige invoer: verwacht ${e.expected}, ontving ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"getal";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ongeldige invoer: verwacht ${m.stringifyPrimitive(e.values[0])}`:`Ongeldige optie: verwacht één van ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Te lang: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} ${r.unit??"elementen"} bevat`:`Te lang: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} is`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Te kort: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} bevat`:`Te kort: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:"ends_with"===t.format?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:"includes"===t.format?`Ongeldige tekst: moet "${t.includes}" bevatten`:"regex"===t.format?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}};function pe(){return{localeError:de()}}const fe=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Ugyldig input: forventet ${e.expected}, fikk ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tall";case"object":if(Array.isArray(e))return"liste";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ugyldig verdi: forventet ${m.stringifyPrimitive(e.values[0])}`:`Ugyldig valg: forventet en av ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()} ${r.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}};function me(){return{localeError:fe()}}const he=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Fâsit giren: umulan ${e.expected}, alınan ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numara";case"object":if(Array.isArray(e))return"saf";if(null===e)return"gayb";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Fâsit giren: umulan ${m.stringifyPrimitive(e.values[0])}`:`Fâsit tercih: mûteberler ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} ${r.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} olmalıydı.`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function ve(){return{localeError:he()}}const ye=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}const 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:"ورودي"};return e=>{switch(e.code){case"invalid_type":return`ناسم ورودي: باید ${e.expected} وای, مګر ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"ارې";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} ترلاسه شو`;case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${m.stringifyPrimitive(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${m.joinValues(e.values,"|")} څخه وای`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} ${r.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} وي`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}};function ge(){return{localeError:ye()}}const be=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${e.expected}, otrzymano ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"liczba";case"object":if(Array.isArray(e))return"tablica";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Nieprawidłowe dane wejściowe: oczekiwano ${m.stringifyPrimitive(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.maximum.toString()} ${r.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.minimum.toString()} ${r.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}};function _e(){return{localeError:be()}}const Ie=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Tipo inválido: esperado ${e.expected}, recebido ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"array";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: esperado ${m.stringifyPrimitive(e.values[0])}`:`Opção inválida: esperada uma das ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${n}${e.maximum.toString()} ${r.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Chave inválida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${e.origin}`;default:return"Campo inválido"}}};function $e(){return{localeError:Ie()}}function Ee(e,t,n,r){const i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:1===o?t:o>=2&&o<=4?n:r}const Te=()=>{const 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(t){return e[t]??null}const 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:"ввод"};return e=>{switch(e.code){case"invalid_type":return`Неверный ввод: ожидалось ${e.expected}, получено ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"массив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Неверный ввод: ожидалось ${m.stringifyPrimitive(e.values[0])}`:`Неверный вариант: ожидалось одно из ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);if(r){const t=Ee(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);if(r){const t=Ee(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}};function we(){return{localeError:Te()}}const Ne=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${e.expected}, prejeto ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"število";case"object":if(Array.isArray(e))return"tabela";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Neveljaven vnos: pričakovano ${m.stringifyPrimitive(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${n}${e.maximum.toString()} ${r.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}};function Oe(){return{localeError:Ne()}}const Se=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${e.expected}, fick ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"antal";case"object":if(Array.isArray(e))return"lista";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ogiltig inmatning: förväntat ${m.stringifyPrimitive(e.values[0])}`:`Ogiltigt val: förväntade en av ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()} ${r.unit??"element"}`:`För stor(t): förväntat ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${e.origin??"värdet"}`}}};function ke(){return{localeError:Se()}}const De=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${e.expected}, பெறப்பட்டது ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"எண் அல்லாதது":"எண்";case"object":if(Array.isArray(e))return"அணி";if(null===e)return"வெறுமை";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${m.stringifyPrimitive(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${m.joinValues(e.values,"|")} இல் ஒன்று`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ${r.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}};function Ae(){return{localeError:De()}}const xe=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}const 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:"ข้อมูลที่ป้อน"};return e=>{switch(e.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${e.expected} แต่ได้รับ ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":if(Array.isArray(e))return"อาร์เรย์ (Array)";if(null===e)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ค่าไม่ถูกต้อง: ควรเป็น ${m.stringifyPrimitive(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"ไม่เกิน":"น้อยกว่า",r=t(e.origin);return r?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()} ${r.unit??"รายการ"}`:`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"อย่างน้อย":"มากกว่า",r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function je(){return{localeError:xe()}}const Pe=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Geçersiz değer: beklenen ${e.expected}, alınan ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Geçersiz değer: beklenen ${m.stringifyPrimitive(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??"değer"} ${n}${e.maximum.toString()} ${r.unit??"öğe"}`:`Çok büyük: beklenen ${e.origin??"değer"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} içinde geçersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} içinde geçersiz değer`}}};function Re(){return{localeError:Pe()}}const Ue=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}const 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:"вхідні дані"};return e=>{switch(e.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${e.expected}, отримано ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"масив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Неправильні вхідні дані: очікується ${m.stringifyPrimitive(e.values[0])}`:`Неправильна опція: очікується одне з ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??"значення"} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"елементів"}`:`Занадто велике: очікується, що ${e.origin??"значення"} буде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}};function ze(){return{localeError:Ue()}}const Le=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}const 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:"ان پٹ"};return e=>{switch(e.code){case"invalid_type":return`غلط ان پٹ: ${e.expected} متوقع تھا، ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"نمبر";case"object":if(Array.isArray(e))return"آرے";if(null===e)return"نل";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} موصول ہوا`;case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${m.stringifyPrimitive(e.values[0])} متوقع تھا`:`غلط آپشن: ${m.joinValues(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`بہت بڑا: ${e.origin??"ویلیو"} کے ${n}${e.maximum.toString()} ${r.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${m.joinValues(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}};function Ce(){return{localeError:Le()}}const Fe=()=>{const 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(t){return e[t]??null}const 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"};return e=>{switch(e.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${e.expected}, nhận được ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"số";case"object":if(Array.isArray(e))return"mảng";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Đầu vào không hợp lệ: mong đợi ${m.stringifyPrimitive(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"phần tử"}`:`Quá lớn: mong đợi ${e.origin??"giá trị"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.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 ${e.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${e.origin}`}}};function Ve(){return{localeError:Fe()}}const Me=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}const 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:"输入"};return e=>{switch(e.code){case"invalid_type":return`无效输入:期望 ${e.expected},实际接收 ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"非数字(NaN)":"数字";case"object":if(Array.isArray(e))return"数组";if(null===e)return"空值(null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`无效输入:期望 ${m.stringifyPrimitive(e.values[0])}`:`无效选项:期望以下之一 ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()} ${r.unit??"个元素"}`:`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}};function Ze(){return{localeError:Me()}}const Ge=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}const 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:"輸入"};return e=>{switch(e.code){case"invalid_type":return`無效的輸入值:預期為 ${e.expected},但收到 ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`無效的輸入值:預期為 ${m.stringifyPrimitive(e.values[0])}`:`無效的選項:預期為以下其中之一 ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()} ${r.unit??"個元素"}`:`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${m.joinValues(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}};function Je(){return{localeError:Ge()}}const Be=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(t){return e[t]??null}const 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é"};return e=>{switch(e.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${e.expected}, àmọ̀ a rí ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nọ́mbà";case"object":if(Array.isArray(e))return"akopọ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ìbáwọlé aṣìṣe: a ní láti fi ${m.stringifyPrimitive(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${m.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??"iye"} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:"ends_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:"includes"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:"regex"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${m.joinValues(e.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${e.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${e.origin}`}}};function Ke(){return{localeError:Be()}}var We=n(141),qe=n(288),Ye=n(135);class He{constructor(e){this._def=e,this.def=e}implement(e){if("function"!=typeof e)throw new Error("implement() must be called with a function");const t=(...n)=>{const r=this._def.input?(0,c.f)(this._def.input,n,void 0,{callee:t}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...r);return this._def.output?(0,c.f)(this._def.output,i,void 0,{callee:t}):i};return t}implementAsync(e){if("function"!=typeof e)throw new Error("implement() must be called with a function");const t=async(...n)=>{const r=this._def.input?await(0,c.e)(this._def.input,n,void 0,{callee:t}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...r);return this._def.output?(0,c.e)(this._def.output,i,void 0,{callee:t}):i};return t}input(...e){const t=this.constructor;return Array.isArray(e[0])?new t({type:"function",input:new d.db({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new t({type:"function",input:e[0],output:this._def.output})}output(e){return new(0,this.constructor)({type:"function",input:this._def.input,output:e})}}function Qe(e){return new He({type:"function",input:Array.isArray(e?.input)?(0,Ye.Rb)(d.db,e?.input):e?.input??(0,Ye.c)(d.b,(0,Ye.Xb)(d.kb)),output:e?.output??(0,Ye.Xb)(d.kb)})}var Xe=n(249),et=n(179),tt=n(291),nt=n(290);const rt={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 it(e){u.e({customError:e})}function ot(){return u.e().customError}var at;at||(at={});var st=n(190);function ut(e){return Ye.p(et.W,e)}function ct(e){return Ye.o(et.M,e)}function lt(e){return Ye.m(et.g,e)}function dt(e){return Ye.l(et.f,e)}function pt(e){return Ye.n(et.o,e)}(0,u.e)(x());const ft=s},(e,t,n)=>{"use strict";n.d(t,{$:()=>ve,$b:()=>p,A:()=>S,Ab:()=>ze,B:()=>Ze,Bb:()=>rt,C:()=>L,Cb:()=>be,D:()=>C,Db:()=>Ce,E:()=>se,Eb:()=>he,F:()=>ae,Fb:()=>Ee,G:()=>c,Gb:()=>st,H:()=>$e,Hb:()=>at,I:()=>Re,Ib:()=>a,J:()=>z,Jb:()=>qe,K:()=>F,Kb:()=>it,L:()=>B,Lb:()=>W,M:()=>$,Mb:()=>Xe,N:()=>E,Nb:()=>De,O:()=>A,Ob:()=>Ae,P:()=>x,Pb:()=>Ge,Q:()=>P,Qb:()=>ke,R:()=>j,Rb:()=>Ue,S:()=>k,Sb:()=>V,T:()=>I,Tb:()=>K,U:()=>et,Ub:()=>b,V:()=>ge,Vb:()=>q,W:()=>Me,Wb:()=>je,X:()=>_e,Xb:()=>Q,Y:()=>oe,Yb:()=>Ie,Z:()=>ie,Zb:()=>m,_:()=>Le,_b:()=>d,a:()=>D,ab:()=>fe,ac:()=>f,b:()=>H,bb:()=>oe,bc:()=>l,c:()=>xe,cb:()=>Ne,cc:()=>ee,d:()=>O,db:()=>ye,dc:()=>_,e:()=>N,eb:()=>me,f:()=>G,fb:()=>se,g:()=>M,gb:()=>pe,h:()=>Ye,hb:()=>v,i:()=>ot,ib:()=>re,j:()=>T,jb:()=>Ve,k:()=>w,kb:()=>ce,l:()=>J,lb:()=>X,m:()=>Z,mb:()=>de,n:()=>ne,nb:()=>We,o:()=>U,ob:()=>le,p:()=>s,pb:()=>Se,q:()=>y,qb:()=>Be,r:()=>g,rb:()=>Y,s:()=>nt,sb:()=>R,t:()=>te,tb:()=>Je,u:()=>Ke,ub:()=>Oe,v:()=>Pe,vb:()=>He,w:()=>u,wb:()=>ue,x:()=>h,xb:()=>tt,y:()=>Te,yb:()=>we,z:()=>Fe,zb:()=>Qe});var r=n(132),i=n(131),o=n(61);function a(e,t){return new e({type:"string",...o.normalizeParams(t)})}function s(e,t){return new e({type:"string",coerce:!0,...o.normalizeParams(t)})}function u(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...o.normalizeParams(t)})}function c(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function l(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function d(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...o.normalizeParams(t)})}function p(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...o.normalizeParams(t)})}function f(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...o.normalizeParams(t)})}function m(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...o.normalizeParams(t)})}function h(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...o.normalizeParams(t)})}function v(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function y(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function g(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...o.normalizeParams(t)})}function b(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function _(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function I(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...o.normalizeParams(t)})}function $(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...o.normalizeParams(t)})}function E(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...o.normalizeParams(t)})}function T(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...o.normalizeParams(t)})}function w(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...o.normalizeParams(t)})}function N(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...o.normalizeParams(t)})}function O(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...o.normalizeParams(t)})}function S(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...o.normalizeParams(t)})}function k(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...o.normalizeParams(t)})}const D={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function A(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...o.normalizeParams(t)})}function x(e,t){return new e({type:"string",format:"date",check:"string_format",...o.normalizeParams(t)})}function j(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...o.normalizeParams(t)})}function P(e,t){return new e({type:"string",format:"duration",check:"string_format",...o.normalizeParams(t)})}function R(e,t){return new e({type:"number",checks:[],...o.normalizeParams(t)})}function U(e,t){return new e({type:"number",coerce:!0,checks:[],...o.normalizeParams(t)})}function z(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...o.normalizeParams(t)})}function L(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...o.normalizeParams(t)})}function C(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...o.normalizeParams(t)})}function F(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...o.normalizeParams(t)})}function V(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...o.normalizeParams(t)})}function M(e,t){return new e({type:"boolean",...o.normalizeParams(t)})}function Z(e,t){return new e({type:"boolean",coerce:!0,...o.normalizeParams(t)})}function G(e,t){return new e({type:"bigint",...o.normalizeParams(t)})}function J(e,t){return new e({type:"bigint",coerce:!0,...o.normalizeParams(t)})}function B(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...o.normalizeParams(t)})}function K(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...o.normalizeParams(t)})}function W(e,t){return new e({type:"symbol",...o.normalizeParams(t)})}function q(e,t){return new e({type:"undefined",...o.normalizeParams(t)})}function Y(e,t){return new e({type:"null",...o.normalizeParams(t)})}function H(e){return new e({type:"any"})}function Q(e){return new e({type:"unknown"})}function X(e,t){return new e({type:"never",...o.normalizeParams(t)})}function ee(e,t){return new e({type:"void",...o.normalizeParams(t)})}function te(e,t){return new e({type:"date",...o.normalizeParams(t)})}function ne(e,t){return new e({type:"date",coerce:!0,...o.normalizeParams(t)})}function re(e,t){return new e({type:"nan",...o.normalizeParams(t)})}function ie(e,t){return new r.f({check:"less_than",...o.normalizeParams(t),value:e,inclusive:!1})}function oe(e,t){return new r.f({check:"less_than",...o.normalizeParams(t),value:e,inclusive:!0})}function ae(e,t){return new r.c({check:"greater_than",...o.normalizeParams(t),value:e,inclusive:!1})}function se(e,t){return new r.c({check:"greater_than",...o.normalizeParams(t),value:e,inclusive:!0})}function ue(e){return ae(0,e)}function ce(e){return ie(0,e)}function le(e){return oe(0,e)}function de(e){return se(0,e)}function pe(e,t){return new r.m({check:"multiple_of",...o.normalizeParams(t),value:e})}function fe(e,t){return new r.i({check:"max_size",...o.normalizeParams(t),maximum:e})}function me(e,t){return new r.l({check:"min_size",...o.normalizeParams(t),minimum:e})}function he(e,t){return new r.r({check:"size_equals",...o.normalizeParams(t),size:e})}function ve(e,t){return new r.h({check:"max_length",...o.normalizeParams(t),maximum:e})}function ye(e,t){return new r.k({check:"min_length",...o.normalizeParams(t),minimum:e})}function ge(e,t){return new r.e({check:"length_equals",...o.normalizeParams(t),length:e})}function be(e,t){return new r.q({check:"string_format",format:"regex",...o.normalizeParams(t),pattern:e})}function _e(e){return new r.g({check:"string_format",format:"lowercase",...o.normalizeParams(e)})}function Ie(e){return new r.u({check:"string_format",format:"uppercase",...o.normalizeParams(e)})}function $e(e,t){return new r.d({check:"string_format",format:"includes",...o.normalizeParams(t),includes:e})}function Ee(e,t){return new r.s({check:"string_format",format:"starts_with",...o.normalizeParams(t),prefix:e})}function Te(e,t){return new r.b({check:"string_format",format:"ends_with",...o.normalizeParams(t),suffix:e})}function we(e,t,n){return new r.p({check:"property",property:e,schema:t,...o.normalizeParams(n)})}function Ne(e,t){return new r.j({check:"mime_type",mime:e,...o.normalizeParams(t)})}function Oe(e){return new r.o({check:"overwrite",tx:e})}function Se(e){return Oe((t=>t.normalize(e)))}function ke(){return Oe((e=>e.trim()))}function De(){return Oe((e=>e.toLowerCase()))}function Ae(){return Oe((e=>e.toUpperCase()))}function xe(e,t,n){return new e({type:"array",element:t,...o.normalizeParams(n)})}function je(e,t,n){return new e({type:"union",options:t,...o.normalizeParams(n)})}function Pe(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...o.normalizeParams(r)})}function Re(e,t,n){return new e({type:"intersection",left:t,right:n})}function Ue(e,t,n,r){const a=n instanceof i.eb,s=a?r:n;return new e({type:"tuple",items:t,rest:a?n:null,...o.normalizeParams(s)})}function ze(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...o.normalizeParams(r)})}function Le(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...o.normalizeParams(r)})}function Ce(e,t,n){return new e({type:"set",valueType:t,...o.normalizeParams(n)})}function Fe(e,t,n){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map((e=>[e,e]))):t,...o.normalizeParams(n)})}function Ve(e,t,n){return new e({type:"enum",entries:t,...o.normalizeParams(n)})}function Me(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...o.normalizeParams(n)})}function Ze(e,t){return new e({type:"file",...o.normalizeParams(t)})}function Ge(e,t){return new e({type:"transform",transform:t})}function Je(e,t){return new e({type:"optional",innerType:t})}function Be(e,t){return new e({type:"nullable",innerType:t})}function Ke(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():o.shallowClone(n)}})}function We(e,t,n){return new e({type:"nonoptional",innerType:t,...o.normalizeParams(n)})}function qe(e,t){return new e({type:"success",innerType:t})}function Ye(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})}function He(e,t,n){return new e({type:"pipe",in:t,out:n})}function Qe(e,t){return new e({type:"readonly",innerType:t})}function Xe(e,t,n){return new e({type:"template_literal",parts:t,...o.normalizeParams(n)})}function et(e,t){return new e({type:"lazy",getter:t})}function tt(e,t){return new e({type:"promise",innerType:t})}function nt(e,t,n){const r=o.normalizeParams(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function rt(e,t,n){return new e({type:"custom",check:"custom",fn:t,...o.normalizeParams(n)})}function it(e){const t=ot((n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(o.issue(e,n.value,t._zod.def));else{const r=e;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(o.issue(r))}},e(n.value,n))));return t}function ot(e,t){const n=new r.v({check:"custom",...o.normalizeParams(t)});return n._zod.check=e,n}function at(e,t){const n=o.normalizeParams(t);let r=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map((e=>"string"==typeof e?e.toLowerCase():e)),a=a.map((e=>"string"==typeof e?e.toLowerCase():e)));const s=new Set(r),u=new Set(a),c=e.Pipe??i.T,l=e.Boolean??i.g,d=e.String??i._,p=new(e.Transform??i.cb)({type:"transform",transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!s.has(r)||!u.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...u],input:t.value,inst:p,continue:!1}),{})},error:n.error}),f=new c({type:"pipe",in:new d({type:"string",error:n.error}),out:p,error:n.error});return new c({type:"pipe",in:f,out:new l({type:"boolean",error:n.error}),error:n.error})}function st(e,t,n,r={}){const i=o.normalizeParams(r),a={...o.normalizeParams(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}},,,,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>i,c:()=>r,d:()=>s,e:()=>a});const r=Symbol("ZodOutput"),i=Symbol("ZodInput");class o{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function a(){return new o}const s=a()},(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>s,c:()=>u,d:()=>c,e:()=>p,f:()=>d,g:()=>l});var r=n(69),i=n(61);const o=(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,i.jsonStringifyReplacer,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},a=(0,r.c)("$ZodError",o),s=(0,r.c)("$ZodError",o,{Parent:Error});function u(e,t=e=>e.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function c(e,t){const n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(const t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map((e=>i({issues:e})));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i{var o,a;for(const s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map((e=>i({issues:e},s.path)));else if("invalid_key"===s.code)i({issues:s.issues},s.path);else if("invalid_element"===s.code)i({issues:s.issues},s.path);else{const e=[...t,...s.path];if(0===e.length){r.errors.push(n(s));continue}let i=r,u=0;for(;u"object"==typeof e?e.key:e));for(const e of n)"number"==typeof e?t.push(`[${e}]`):"symbol"==typeof e?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push("."),t.push(e));return t.join("")}function p(e){const t=[],n=[...e.issues].sort(((e,t)=>(e.path??[]).length-(t.path??[]).length));for(const e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${d(e.path)}`);return t.join("\n")}},,,,,,function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toQueryString=u,t.executeGraphQLRequest=async function e(t,n,r,i,o){s.default.incrementDoRequest();const c=u(r),l=await n(c,i,o),{retryGQLRequest:d}=await(0,a.handleResponse)(c,l);return d?(s.default.incrementRetry(),e(t,n,c,i,o)):l.data},t.createInflightRequest=function(e,t,n){const r=e[t];return r?(s.default.incrementInflightReturned(),r):e[t]=n().finally((()=>{delete e[t]}))},t.inflightRequestKey=function(e,t){return`${e}\0${t?(0,i.default)(t):""}`},t.executePaginatedRequest=async function({request:e,query:t,variables:n,extractData:r,options:i}){let o="",a=[];for(;;){const s={...n};o&&(s.after=o);const u=await e(t,s,i);if(!u)return u;const c=r(u);if(!c)return u;const{nodes:l,pageInfo:d}=c;if(!d.hasNextPage)return Object.assign(l,[...a,...l]),u;if(a=[...a,...l],"string"!=typeof d.endCursor)throw new Error(`pageInfo.endCursor is not type string got: (${typeof d.endCursor})`);o=d.endCursor||""}};const i=r(n(253)),o=n(347),a=n(348),s=r(n(350));function u(e){return"string"!=typeof e?(0,o.print)(e):e}},,,,,,,,,,,,,,,,(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_API_VERSION=void 0,t.DEFAULT_API_VERSION="2026-04"},e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},(e,t,n)=>{"use strict";var r,i=n(167),o=n(260),a=n(261),s=n(262),u=n(263),c=n(168),l=n(103),d=n(264),p=n(265),f=n(266),m=n(267),h=n(268),v=n(269),y=n(270),g=n(271),b=Function,_=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},I=n(104),$=n(105),E=function(){throw new l},T=I?function(){try{return E}catch(e){try{return I(arguments,"callee").get}catch(e){return E}}}():E,w=n(274)(),N=n(276),O=n(170),S=n(169),k=n(127),D=n(126),A={},x="undefined"!=typeof Uint8Array&&N?N(Uint8Array):r,j={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&N?N([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":A,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&N?N(N([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&w&&N?N((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&w&&N?N((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&N?N(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":T,"%TypedArray%":x,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":k,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":O,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":h,"%Math.pow%":v,"%Math.round%":y,"%Math.sign%":g,"%Reflect.getPrototypeOf%":S};if(N)try{null.error}catch(e){var P=N(N(e));j["%Error.prototype%"]=P}var R=function e(t){var n;if("%AsyncFunction%"===t)n=_("async function () {}");else if("%GeneratorFunction%"===t)n=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=_("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&N&&(n=N(i.prototype))}return j[t]=n,n},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},z=n(86),L=n(280),C=z.call(D,Array.prototype.concat),F=z.call(k,Array.prototype.splice),V=z.call(D,String.prototype.replace),M=z.call(D,String.prototype.slice),Z=z.call(D,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,B=function(e,t){var n,r=e;if(L(U,r)&&(r="%"+(n=U[r])[0]+"%"),L(j,r)){var i=j[r];if(i===A&&(i=R(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===Z(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=M(e,0,1),n=M(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,G,(function(e,t,n,i){r[r.length]=n?V(i,J,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=B("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],F(n,C([0,1],u)));for(var d=1,p=!0;d=n.length){var v=I(a,f);a=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[f]}else p=L(a,f),a=a[f];p&&!s&&(j[o]=a)}}return a}},e=>{"use strict";e.exports=Object},e=>{"use strict";e.exports=SyntaxError},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},(e,t,n)=>{"use strict";var r=n(167);e.exports=r.getPrototypeOf||null},(e,t,n)=>{"use strict";var r=n(86),i=n(127),o=n(126),a=n(279);e.exports=a||r.call(o,i)},,,,,,,,(e,t,n)=>{"use strict";n.d(t,{$:()=>He,$b:()=>je,A:()=>ne,Ab:()=>g,Ac:()=>me,B:()=>F,Bb:()=>k,Bc:()=>Ie,C:()=>Lt,Cb:()=>st,Cc:()=>z,D:()=>ct,Db:()=>te,Dc:()=>we,E:()=>nt,Eb:()=>pt,Ec:()=>Be,F:()=>Dt,Fb:()=>de,Fc:()=>Ae,G:()=>D,Gb:()=>pe,Gc:()=>O,H:()=>xe,Hb:()=>_,Hc:()=>E,I:()=>Tt,Ib:()=>ae,Ic:()=>T,J:()=>yt,Jb:()=>Kt,Jc:()=>w,K:()=>Ne,Kb:()=>Ye,Kc:()=>$,L:()=>ce,Lb:()=>le,Lc:()=>Re,M:()=>se,Mb:()=>fe,Mc:()=>C,N:()=>Ve,Nb:()=>_e,O:()=>ht,Ob:()=>Z,P:()=>xt,Pb:()=>J,Q:()=>$t,Qb:()=>qt,R:()=>Ft,Rb:()=>re,S:()=>Pt,Sb:()=>Fe,T:()=>Xe,Tb:()=>V,U:()=>it,Ub:()=>Ct,V:()=>v,Vb:()=>lt,W:()=>m,Wb:()=>Ge,X:()=>Nt,Xb:()=>rt,Y:()=>$e,Yb:()=>A,Z:()=>Ut,Zb:()=>At,_:()=>ft,_b:()=>ut,a:()=>Se,ab:()=>p,ac:()=>wt,b:()=>Le,bb:()=>U,bc:()=>gt,c:()=>Q,cb:()=>N,cc:()=>bt,d:()=>Y,db:()=>I,dc:()=>Oe,e:()=>be,eb:()=>Te,ec:()=>ue,f:()=>ye,fb:()=>Je,fc:()=>Me,g:()=>he,gb:()=>De,gc:()=>vt,h:()=>B,hb:()=>Pe,hc:()=>tt,i:()=>W,ib:()=>L,ic:()=>jt,j:()=>x,jb:()=>f,jc:()=>Et,k:()=>P,kb:()=>It,kc:()=>Yt,l:()=>St,lb:()=>ke,lc:()=>Vt,m:()=>ie,mb:()=>Ce,mc:()=>Rt,n:()=>Mt,nb:()=>X,nc:()=>et,o:()=>Ue,ob:()=>H,oc:()=>Jt,p:()=>_t,pb:()=>ge,pc:()=>ot,q:()=>Ke,qb:()=>ve,qc:()=>Ze,r:()=>y,rb:()=>kt,rc:()=>oe,s:()=>S,sb:()=>Zt,sc:()=>Wt,t:()=>at,tb:()=>K,tc:()=>h,u:()=>ee,ub:()=>q,uc:()=>Ot,v:()=>dt,vb:()=>j,vc:()=>Bt,w:()=>b,wb:()=>R,wc:()=>Ee,x:()=>M,xb:()=>Gt,xc:()=>zt,y:()=>G,yb:()=>ze,yc:()=>mt,z:()=>qe,zb:()=>We,zc:()=>Qe});var r=n(69),i=n(131),o=n(61),a=n(141),s=n(135),u=n(130),c=n(132),l=n(190),d=n(290);const p=r.c("ZodType",((e,t)=>(i.eb.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]}),e.clone=(t,n)=>o.clone(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>d.b(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>d.d(e,t,n),e.parseAsync=async(t,n)=>d.a(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>d.c(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(Jt(t,n)),e.superRefine=t=>e.check(Bt(t)),e.overwrite=t=>e.check(s.ub(t)),e.optional=()=>vt(e),e.nullable=()=>gt(e),e.nullish=()=>vt(gt(e)),e.nonoptional=t=>wt(e,t),e.array=()=>Ce(e),e.or=t=>Be([e,t]),e.and=t=>Ye(e,t),e.transform=t=>jt(e,mt(t)),e.default=t=>It(e,t),e.prefault=t=>Et(e,t),e.catch=t=>kt(e,t),e.pipe=t=>jt(e,t),e.readonly=()=>Rt(e),e.describe=t=>{const n=e.clone();return a.d.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>a.d.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return a.d.get(e);const n=e.clone();return a.d.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),f=r.c("_ZodString",((e,t)=>{i._.init(e,t),p.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(s.Cb(...t)),e.includes=(...t)=>e.check(s.H(...t)),e.startsWith=(...t)=>e.check(s.Fb(...t)),e.endsWith=(...t)=>e.check(s.y(...t)),e.min=(...t)=>e.check(s.db(...t)),e.max=(...t)=>e.check(s.$(...t)),e.length=(...t)=>e.check(s.V(...t)),e.nonempty=(...t)=>e.check(s.db(1,...t)),e.lowercase=t=>e.check(s.X(t)),e.uppercase=t=>e.check(s.Yb(t)),e.trim=()=>e.check(s.Qb()),e.normalize=(...t)=>e.check(s.pb(...t)),e.toLowerCase=()=>e.check(s.Nb()),e.toUpperCase=()=>e.check(s.Ob())})),m=r.c("ZodString",((e,t)=>{i._.init(e,t),f.init(e,t),e.email=t=>e.check(s.w(y,t)),e.url=t=>e.check(s.Zb(N,t)),e.jwt=t=>e.check(s.S(ne,t)),e.emoji=t=>e.check(s.x(S,t)),e.guid=t=>e.check(s.G(b,t)),e.uuid=t=>e.check(s.bc(I,t)),e.uuidv4=t=>e.check(s._b(I,t)),e.uuidv6=t=>e.check(s.$b(I,t)),e.uuidv7=t=>e.check(s.ac(I,t)),e.nanoid=t=>e.check(s.hb(D,t)),e.guid=t=>e.check(s.G(b,t)),e.cuid=t=>e.check(s.q(x,t)),e.cuid2=t=>e.check(s.r(P,t)),e.ulid=t=>e.check(s.Ub(U,t)),e.base64=t=>e.check(s.e(Y,t)),e.base64url=t=>e.check(s.d(Q,t)),e.xid=t=>e.check(s.dc(L,t)),e.ksuid=t=>e.check(s.T(F,t)),e.ipv4=t=>e.check(s.M(M,t)),e.ipv6=t=>e.check(s.N(G,t)),e.cidrv4=t=>e.check(s.j(B,t)),e.cidrv6=t=>e.check(s.k(W,t)),e.e164=t=>e.check(s.A(ee,t)),e.datetime=t=>e.check(l.datetime(t)),e.date=t=>e.check(l.date(t)),e.time=t=>e.check(l.time(t)),e.duration=t=>e.check(l.duration(t))}));function h(e){return s.Ib(m,e)}const v=r.c("ZodStringFormat",((e,t)=>{i.Z.init(e,t),f.init(e,t)})),y=r.c("ZodEmail",((e,t)=>{i.r.init(e,t),v.init(e,t)}));function g(e){return s.w(y,e)}const b=r.c("ZodGUID",((e,t)=>{i.w.init(e,t),v.init(e,t)}));function _(e){return s.G(b,e)}const I=r.c("ZodUUID",((e,t)=>{i.hb.init(e,t),v.init(e,t)}));function $(e){return s.bc(I,e)}function E(e){return s._b(I,e)}function T(e){return s.$b(I,e)}function w(e){return s.ac(I,e)}const N=r.c("ZodURL",((e,t)=>{i.gb.init(e,t),v.init(e,t)}));function O(e){return s.Zb(N,e)}const S=r.c("ZodEmoji",((e,t)=>{i.s.init(e,t),v.init(e,t)}));function k(e){return s.x(S,e)}const D=r.c("ZodNanoID",((e,t)=>{i.K.init(e,t),v.init(e,t)}));function A(e){return s.hb(D,e)}const x=r.c("ZodCUID",((e,t)=>{i.j.init(e,t),v.init(e,t)}));function j(e){return s.q(x,e)}const P=r.c("ZodCUID2",((e,t)=>{i.k.init(e,t),v.init(e,t)}));function R(e){return s.r(P,e)}const U=r.c("ZodULID",((e,t)=>{i.fb.init(e,t),v.init(e,t)}));function z(e){return s.Ub(U,e)}const L=r.c("ZodXID",((e,t)=>{i.mb.init(e,t),v.init(e,t)}));function C(e){return s.dc(L,e)}const F=r.c("ZodKSUID",((e,t)=>{i.F.init(e,t),v.init(e,t)}));function V(e){return s.T(F,e)}const M=r.c("ZodIPv4",((e,t)=>{i.x.init(e,t),v.init(e,t)}));function Z(e){return s.M(M,e)}const G=r.c("ZodIPv6",((e,t)=>{i.y.init(e,t),v.init(e,t)}));function J(e){return s.N(G,e)}const B=r.c("ZodCIDRv4",((e,t)=>{i.h.init(e,t),v.init(e,t)}));function K(e){return s.j(B,e)}const W=r.c("ZodCIDRv6",((e,t)=>{i.i.init(e,t),v.init(e,t)}));function q(e){return s.k(W,e)}const Y=r.c("ZodBase64",((e,t)=>{i.d.init(e,t),v.init(e,t)}));function H(e){return s.e(Y,e)}const Q=r.c("ZodBase64URL",((e,t)=>{i.c.init(e,t),v.init(e,t)}));function X(e){return s.d(Q,e)}const ee=r.c("ZodE164",((e,t)=>{i.u.init(e,t),v.init(e,t)}));function te(e){return s.A(ee,e)}const ne=r.c("ZodJWT",((e,t)=>{i.E.init(e,t),v.init(e,t)}));function re(e){return s.S(ne,e)}const ie=r.c("ZodCustomStringFormat",((e,t)=>{i.m.init(e,t),v.init(e,t)}));function oe(e,t,n={}){return s.Gb(ie,e,t,n)}function ae(e){return s.Gb(ie,"hostname",u.hostname,e)}const se=r.c("ZodNumber",((e,t)=>{i.Q.init(e,t),p.init(e,t),e.gt=(t,n)=>e.check(s.F(t,n)),e.gte=(t,n)=>e.check(s.E(t,n)),e.min=(t,n)=>e.check(s.E(t,n)),e.lt=(t,n)=>e.check(s.Z(t,n)),e.lte=(t,n)=>e.check(s.Y(t,n)),e.max=(t,n)=>e.check(s.Y(t,n)),e.int=t=>e.check(le(t)),e.safe=t=>e.check(le(t)),e.positive=t=>e.check(s.F(0,t)),e.nonnegative=t=>e.check(s.E(0,t)),e.negative=t=>e.check(s.Z(0,t)),e.nonpositive=t=>e.check(s.Y(0,t)),e.multipleOf=(t,n)=>e.check(s.gb(t,n)),e.step=(t,n)=>e.check(s.gb(t,n)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}));function ue(e){return s.sb(se,e)}const ce=r.c("ZodNumberFormat",((e,t)=>{i.P.init(e,t),se.init(e,t)}));function le(e){return s.J(ce,e)}function de(e){return s.C(ce,e)}function pe(e){return s.D(ce,e)}function fe(e){return s.K(ce,e)}function me(e){return s.Sb(ce,e)}const he=r.c("ZodBoolean",((e,t)=>{i.g.init(e,t),p.init(e,t)}));function ve(e){return s.g(he,e)}const ye=r.c("ZodBigInt",((e,t)=>{i.f.init(e,t),p.init(e,t),e.gte=(t,n)=>e.check(s.E(t,n)),e.min=(t,n)=>e.check(s.E(t,n)),e.gt=(t,n)=>e.check(s.F(t,n)),e.gte=(t,n)=>e.check(s.E(t,n)),e.min=(t,n)=>e.check(s.E(t,n)),e.lt=(t,n)=>e.check(s.Z(t,n)),e.lte=(t,n)=>e.check(s.Y(t,n)),e.max=(t,n)=>e.check(s.Y(t,n)),e.positive=t=>e.check(s.F(BigInt(0),t)),e.negative=t=>e.check(s.Z(BigInt(0),t)),e.nonpositive=t=>e.check(s.Y(BigInt(0),t)),e.nonnegative=t=>e.check(s.E(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(s.gb(t,n));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}));function ge(e){return s.f(ye,e)}const be=r.c("ZodBigIntFormat",((e,t)=>{i.e.init(e,t),ye.init(e,t)}));function _e(e){return s.L(be,e)}function Ie(e){return s.Tb(be,e)}const $e=r.c("ZodSymbol",((e,t)=>{i.ab.init(e,t),p.init(e,t)}));function Ee(e){return s.Lb($e,e)}const Te=r.c("ZodUndefined",((e,t)=>{i.ib.init(e,t),p.init(e,t)}));function we(e){return s.Vb(Te,e)}const Ne=r.c("ZodNull",((e,t)=>{i.O.init(e,t),p.init(e,t)}));function Oe(e){return s.rb(Ne,e)}const Se=r.c("ZodAny",((e,t)=>{i.a.init(e,t),p.init(e,t)}));function ke(){return s.b(Se)}const De=r.c("ZodUnknown",((e,t)=>{i.kb.init(e,t),p.init(e,t)}));function Ae(){return s.Xb(De)}const xe=r.c("ZodNever",((e,t)=>{i.L.init(e,t),p.init(e,t)}));function je(e){return s.lb(xe,e)}const Pe=r.c("ZodVoid",((e,t)=>{i.lb.init(e,t),p.init(e,t)}));function Re(e){return s.cc(Pe,e)}const Ue=r.c("ZodDate",((e,t)=>{i.o.init(e,t),p.init(e,t),e.min=(t,n)=>e.check(s.E(t,n)),e.max=(t,n)=>e.check(s.Y(t,n));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}));function ze(e){return s.t(Ue,e)}const Le=r.c("ZodArray",((e,t)=>{i.b.init(e,t),p.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(s.db(t,n)),e.nonempty=t=>e.check(s.db(1,t)),e.max=(t,n)=>e.check(s.$(t,n)),e.length=(t,n)=>e.check(s.V(t,n)),e.unwrap=()=>e.element}));function Ce(e,t){return s.c(Le,e,t)}function Fe(e){const t=e._zod.def.shape;return st(Object.keys(t))}const Ve=r.c("ZodObject",((e,t)=>{i.R.init(e,t),p.init(e,t),o.defineLazy(e,"shape",(()=>t.shape)),e.keyof=()=>st(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ae()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ae()}),e.strict=()=>e.clone({...e._zod.def,catchall:je()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>o.extend(e,t),e.merge=t=>o.merge(e,t),e.pick=t=>o.pick(e,t),e.omit=t=>o.omit(e,t),e.partial=(...t)=>o.partial(ht,e,t[0]),e.required=(...t)=>o.required(Tt,e,t[0])}));function Me(e,t){const n={type:"object",get shape(){return o.assignProp(this,"shape",e?o.objectClone(e):{}),this.shape},...o.normalizeParams(t)};return new Ve(n)}function Ze(e,t){return new Ve({type:"object",get shape(){return o.assignProp(this,"shape",o.objectClone(e)),this.shape},catchall:je(),...o.normalizeParams(t)})}function Ge(e,t){return new Ve({type:"object",get shape(){return o.assignProp(this,"shape",o.objectClone(e)),this.shape},catchall:Ae(),...o.normalizeParams(t)})}const Je=r.c("ZodUnion",((e,t)=>{i.jb.init(e,t),p.init(e,t),e.options=t.options}));function Be(e,t){return new Je({type:"union",options:e,...o.normalizeParams(t)})}const Ke=r.c("ZodDiscriminatedUnion",((e,t)=>{Je.init(e,t),i.q.init(e,t)}));function We(e,t,n){return new Ke({type:"union",options:t,discriminator:e,...o.normalizeParams(n)})}const qe=r.c("ZodIntersection",((e,t)=>{i.D.init(e,t),p.init(e,t)}));function Ye(e,t){return new qe({type:"intersection",left:e,right:t})}const He=r.c("ZodTuple",((e,t)=>{i.db.init(e,t),p.init(e,t),e.rest=t=>e.clone({...e._zod.def,rest:t})}));function Qe(e,t,n){const r=t instanceof i.eb,a=r?n:t;return new He({type:"tuple",items:e,rest:r?t:null,...o.normalizeParams(a)})}const Xe=r.c("ZodRecord",((e,t)=>{i.X.init(e,t),p.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType}));function et(e,t,n){return new Xe({type:"record",keyType:e,valueType:t,...o.normalizeParams(n)})}function tt(e,t,n){const r=o.clone(e);return r._zod.values=void 0,new Xe({type:"record",keyType:r,valueType:t,...o.normalizeParams(n)})}const nt=r.c("ZodMap",((e,t)=>{i.I.init(e,t),p.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType}));function rt(e,t,n){return new nt({type:"map",keyType:e,valueType:t,...o.normalizeParams(n)})}const it=r.c("ZodSet",((e,t)=>{i.Y.init(e,t),p.init(e,t),e.min=(...t)=>e.check(s.eb(...t)),e.nonempty=t=>e.check(s.eb(1,t)),e.max=(...t)=>e.check(s.ab(...t)),e.size=(...t)=>e.check(s.Eb(...t))}));function ot(e,t){return new it({type:"set",valueType:e,...o.normalizeParams(t)})}const at=r.c("ZodEnum",((e,t)=>{i.t.init(e,t),p.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{const i={};for(const r of e){if(!n.has(r))throw new Error(`Key ${r} not found in enum`);i[r]=t.entries[r]}return new at({...t,checks:[],...o.normalizeParams(r),entries:i})},e.exclude=(e,r)=>{const i={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete i[t]}return new at({...t,checks:[],...o.normalizeParams(r),entries:i})}}));function st(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e;return new at({type:"enum",entries:n,...o.normalizeParams(t)})}function ut(e,t){return new at({type:"enum",entries:e,...o.normalizeParams(t)})}const ct=r.c("ZodLiteral",((e,t)=>{i.H.init(e,t),p.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}));function lt(e,t){return new ct({type:"literal",values:Array.isArray(e)?e:[e],...o.normalizeParams(t)})}const dt=r.c("ZodFile",((e,t)=>{i.v.init(e,t),p.init(e,t),e.min=(t,n)=>e.check(s.eb(t,n)),e.max=(t,n)=>e.check(s.ab(t,n)),e.mime=(t,n)=>e.check(s.cb(Array.isArray(t)?t:[t],n))}));function pt(e){return s.B(dt,e)}const ft=r.c("ZodTransform",((e,t)=>{i.cb.init(e,t),p.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{if("string"==typeof r)n.issues.push(o.issue(r,n.value,t));else{const t=r;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(o.issue(t))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then((e=>(n.value=e,n))):(n.value=i,n)}}));function mt(e){return new ft({type:"transform",transform:e})}const ht=r.c("ZodOptional",((e,t)=>{i.S.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function vt(e){return new ht({type:"optional",innerType:e})}const yt=r.c("ZodNullable",((e,t)=>{i.N.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function gt(e){return new yt({type:"nullable",innerType:e})}function bt(e){return vt(gt(e))}const _t=r.c("ZodDefault",((e,t)=>{i.p.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}));function It(e,t){return new _t({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():o.shallowClone(t)}})}const $t=r.c("ZodPrefault",((e,t)=>{i.U.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function Et(e,t){return new $t({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():o.shallowClone(t)}})}const Tt=r.c("ZodNonOptional",((e,t)=>{i.M.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function wt(e,t){return new Tt({type:"nonoptional",innerType:e,...o.normalizeParams(t)})}const Nt=r.c("ZodSuccess",((e,t)=>{i.$.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function Ot(e){return new Nt({type:"success",innerType:e})}const St=r.c("ZodCatch",((e,t)=>{i.l.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}));function kt(e,t){return new St({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}const Dt=r.c("ZodNaN",((e,t)=>{i.J.init(e,t),p.init(e,t)}));function At(e){return s.ib(Dt,e)}const xt=r.c("ZodPipe",((e,t)=>{i.T.init(e,t),p.init(e,t),e.in=t.in,e.out=t.out}));function jt(e,t){return new xt({type:"pipe",in:e,out:t})}const Pt=r.c("ZodReadonly",((e,t)=>{i.W.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function Rt(e){return new Pt({type:"readonly",innerType:e})}const Ut=r.c("ZodTemplateLiteral",((e,t)=>{i.bb.init(e,t),p.init(e,t)}));function zt(e,t){return new Ut({type:"template_literal",parts:e,...o.normalizeParams(t)})}const Lt=r.c("ZodLazy",((e,t)=>{i.G.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.getter()}));function Ct(e){return new Lt({type:"lazy",getter:e})}const Ft=r.c("ZodPromise",((e,t)=>{i.V.init(e,t),p.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function Vt(e){return new Ft({type:"promise",innerType:e})}const Mt=r.c("ZodCustom",((e,t)=>{i.n.init(e,t),p.init(e,t)}));function Zt(e){const t=new c.v({check:"custom"});return t._zod.check=e,t}function Gt(e,t){return s.s(Mt,e??(()=>!0),t)}function Jt(e,t={}){return s.Bb(Mt,e,t)}function Bt(e){return s.Kb(e)}function Kt(e,t={error:`Input not instance of ${e.name}`}){const n=new Mt({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...o.normalizeParams(t)});return n._zod.bag.Class=e,n}const Wt=(...e)=>s.Hb({Pipe:xt,Boolean:he,String:m,Transform:ft},...e);function qt(e){const t=Ct((()=>Be([h(e),ue(),ve(),Oe(),Ce(t),et(h(),t)])));return t}function Yt(e,t){return jt(mt(e),t)}},(e,t,n)=>{"use strict";n.d(t,{a:()=>u,b:()=>a,c:()=>p,d:()=>l,e:()=>c,f:()=>s,g:()=>f,h:()=>d});var r=n(69),i=n(142),o=n(61);const a=e=>(t,n,i,a)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},s);if(u instanceof Promise)throw new r.a;if(u.issues.length){const t=new(a?.Err??e)(u.issues.map((e=>o.finalizeIssue(e,s,r.e()))));throw o.captureStackTrace(t,a?.callee),t}return u.value},s=a(i.b),u=e=>async(t,n,i,a)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let u=t._zod.run({value:n,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const t=new(a?.Err??e)(u.issues.map((e=>o.finalizeIssue(e,s,r.e()))));throw o.captureStackTrace(t,a?.callee),t}return u.value},c=u(i.b),l=e=>(t,n,a)=>{const s=a?{...a,async:!1}:{async:!1},u=t._zod.run({value:n,issues:[]},s);if(u instanceof Promise)throw new r.a;return u.issues.length?{success:!1,error:new(e??i.a)(u.issues.map((e=>o.finalizeIssue(e,s,r.e()))))}:{success:!0,data:u.value}},d=l(i.b),p=e=>async(t,n,i)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map((e=>o.finalizeIssue(e,a,r.e()))))}:{success:!0,data:s.value}},f=p(i.b)},,,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>i});var r=n(186);const i=e=>(e=>{let t=e;"string"==typeof t&&(t=r.c.encode(t));const n=[];for(let e=0;e{let t=e;t instanceof Uint8Array&&(t=r.b.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e{"use strict";n.d(t,{a:()=>o,b:()=>i,c:()=>r});const r=new TextEncoder,i=new TextDecoder;function o(...e){const t=e.reduce(((e,{length:t})=>e+t),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}},(e,t,n)=>{"use strict";n.d(t,{a:()=>i,b:()=>o,c:()=>a,d:()=>s});var r=n(188);function i(e){return(0,r.a)(e)&&"string"==typeof e.kty}function o(e){return"oct"!==e.kty&&"string"==typeof e.d}function a(e){return"oct"!==e.kty&&void 0===e.d}function s(e){return i(e)&&"oct"===e.kty&&"string"==typeof e.k}},(e,t,n)=>{"use strict";function r(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}n.d(t,{a:()=>r})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_API_VERSION=void 0,i(n(343),t);var o=n(164);Object.defineProperty(t,"DEFAULT_API_VERSION",{enumerable:!0,get:function(){return o.DEFAULT_API_VERSION}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ZodISODate:()=>c,ZodISODateTime:()=>s,ZodISODuration:()=>f,ZodISOTime:()=>d,date:()=>l,datetime:()=>u,duration:()=>m,time:()=>p});var r=n(69),i=n(131),o=n(135),a=n(179);const s=r.c("ZodISODateTime",((e,t)=>{i.z.init(e,t),a.V.init(e,t)}));function u(e){return o.O(s,e)}const c=r.c("ZodISODate",((e,t)=>{i.A.init(e,t),a.V.init(e,t)}));function l(e){return o.P(c,e)}const d=r.c("ZodISOTime",((e,t)=>{i.C.init(e,t),a.V.init(e,t)}));function p(e){return o.R(d,e)}const f=r.c("ZodISODuration",((e,t)=>{i.B.init(e,t),a.V.init(e,t)}));function m(e){return o.Q(f,e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var r=n(259),i=n(105),o=n(125),a=n(283);e.exports=function(e){var t=o(arguments),n=1+e.length-(arguments.length-1);return r(t,n>0?n:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>a});var r=n(141),i=n(61);class o{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??r.d,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var n;const r=e._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(e);if(a)return a.count++,t.schemaPath.includes(e)&&(a.cycle=t.path),a.schema;const u={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,u);const c=e._zod.toJSONSchema?.();if(c)u.schema=c;else{const n={...t,schemaPath:[...t.schemaPath,e],path:t.path},a=e._zod.parent;if(a)u.ref=a,this.process(a,n),this.seen.get(a).isParent=!0;else{const t=u.schema;switch(r.type){case"string":{const n=t;n.type="string";const{minimum:r,maximum:i,format:a,patterns:s,contentEncoding:c}=e._zod.bag;if("number"==typeof r&&(n.minLength=r),"number"==typeof i&&(n.maxLength=i),a&&(n.format=o[a]??a,""===n.format&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){const e=[...s];1===e.length?n.pattern=e[0].source:e.length>1&&(u.schema.allOf=[...e.map((e=>({..."draft-7"===this.target||"draft-4"===this.target?{type:"string"}:{},pattern:e.source})))])}break}case"number":{const n=t,{minimum:r,maximum:i,format:o,multipleOf:a,exclusiveMaximum:s,exclusiveMinimum:u}=e._zod.bag;"string"==typeof o&&o.includes("int")?n.type="integer":n.type="number","number"==typeof u&&("draft-4"===this.target?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u),"number"==typeof r&&(n.minimum=r,"number"==typeof u&&"draft-4"!==this.target&&(u>=r?delete n.minimum:delete n.exclusiveMinimum)),"number"==typeof s&&("draft-4"===this.target?(n.maximum=s,n.exclusiveMaximum=!0):n.exclusiveMaximum=s),"number"==typeof i&&(n.maximum=i,"number"==typeof s&&"draft-4"!==this.target&&(s<=i?delete n.maximum:delete n.exclusiveMaximum)),"number"==typeof a&&(n.multipleOf=a);break}case"boolean":case"success":t.type="boolean";break;case"bigint":if("throw"===this.unrepresentable)throw new Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if("throw"===this.unrepresentable)throw new Error("Symbols cannot be represented in JSON Schema");break;case"null":t.type="null";break;case"any":case"unknown":break;case"undefined":if("throw"===this.unrepresentable)throw new Error("Undefined cannot be represented in JSON Schema");break;case"void":if("throw"===this.unrepresentable)throw new Error("Void cannot be represented in JSON Schema");break;case"never":t.not={};break;case"date":if("throw"===this.unrepresentable)throw new Error("Date cannot be represented in JSON Schema");break;case"array":{const i=t,{minimum:o,maximum:a}=e._zod.bag;"number"==typeof o&&(i.minItems=o),"number"==typeof a&&(i.maxItems=a),i.type="array",i.items=this.process(r.element,{...n,path:[...n.path,"items"]});break}case"object":{const e=t;e.type="object",e.properties={};const i=r.shape;for(const t in i)e.properties[t]=this.process(i[t],{...n,path:[...n.path,"properties",t]});const o=new Set(Object.keys(i)),a=new Set([...o].filter((e=>{const t=r.shape[e]._zod;return"input"===this.io?void 0===t.optin:void 0===t.optout})));a.size>0&&(e.required=Array.from(a)),"never"===r.catchall?._zod.def.type?e.additionalProperties=!1:r.catchall?r.catchall&&(e.additionalProperties=this.process(r.catchall,{...n,path:[...n.path,"additionalProperties"]})):"output"===this.io&&(e.additionalProperties=!1);break}case"union":t.anyOf=r.options.map(((e,t)=>this.process(e,{...n,path:[...n.path,"anyOf",t]})));break;case"intersection":{const e=t,i=this.process(r.left,{...n,path:[...n.path,"allOf",0]}),o=this.process(r.right,{...n,path:[...n.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length,s=[...a(i)?i.allOf:[i],...a(o)?o.allOf:[o]];e.allOf=s;break}case"tuple":{const i=t;i.type="array";const o=r.items.map(((e,t)=>this.process(e,{...n,path:[...n.path,"prefixItems",t]})));if("draft-2020-12"===this.target?i.prefixItems=o:i.items=o,r.rest){const e=this.process(r.rest,{...n,path:[...n.path,"items"]});"draft-2020-12"===this.target?i.items=e:i.additionalItems=e}r.rest&&(i.items=this.process(r.rest,{...n,path:[...n.path,"items"]}));const{minimum:a,maximum:s}=e._zod.bag;"number"==typeof a&&(i.minItems=a),"number"==typeof s&&(i.maxItems=s);break}case"record":{const e=t;e.type="object","draft-4"!==this.target&&(e.propertyNames=this.process(r.keyType,{...n,path:[...n.path,"propertyNames"]})),e.additionalProperties=this.process(r.valueType,{...n,path:[...n.path,"additionalProperties"]});break}case"map":if("throw"===this.unrepresentable)throw new Error("Map cannot be represented in JSON Schema");break;case"set":if("throw"===this.unrepresentable)throw new Error("Set cannot be represented in JSON Schema");break;case"enum":{const e=t,n=(0,i.getEnumValues)(r.entries);n.every((e=>"number"==typeof e))&&(e.type="number"),n.every((e=>"string"==typeof e))&&(e.type="string"),e.enum=n;break}case"literal":{const e=t,n=[];for(const e of r.values)if(void 0===e){if("throw"===this.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===this.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(e))}else n.push(e);if(0===n.length);else if(1===n.length){const t=n[0];e.type=null===t?"null":typeof t,"draft-4"===this.target?e.enum=[t]:e.const=t}else n.every((e=>"number"==typeof e))&&(e.type="number"),n.every((e=>"string"==typeof e))&&(e.type="string"),n.every((e=>"boolean"==typeof e))&&(e.type="string"),n.every((e=>null===e))&&(e.type="null"),e.enum=n;break}case"file":{const n=t,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:o,mime:a}=e._zod.bag;void 0!==i&&(r.minLength=i),void 0!==o&&(r.maxLength=o),a?1===a.length?(r.contentMediaType=a[0],Object.assign(n,r)):n.anyOf=a.map((e=>({...r,contentMediaType:e}))):Object.assign(n,r);break}case"transform":if("throw"===this.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema");break;case"nullable":{const e=this.process(r.innerType,n);t.anyOf=[e,{type:"null"}];break}case"nonoptional":case"promise":case"optional":this.process(r.innerType,n),u.ref=r.innerType;break;case"default":this.process(r.innerType,n),u.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue));break;case"prefault":this.process(r.innerType,n),u.ref=r.innerType,"input"===this.io&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break;case"catch":{let e;this.process(r.innerType,n),u.ref=r.innerType;try{e=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=e;break}case"nan":if("throw"===this.unrepresentable)throw new Error("NaN cannot be represented in JSON Schema");break;case"template_literal":{const n=t,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=r.source;break}case"pipe":{const e="input"===this.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;this.process(e,n),u.ref=e;break}case"readonly":this.process(r.innerType,n),u.ref=r.innerType,t.readOnly=!0;break;case"lazy":{const t=e._zod.innerType;this.process(t,n),u.ref=t;break}case"custom":if("throw"===this.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")}}}const l=this.metadataRegistry.get(e);return l&&Object.assign(u.schema,l),"input"===this.io&&s(e)&&(delete u.schema.examples,delete u.schema.default),"input"===this.io&&u.schema._prefault&&((n=u.schema).default??(n.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(e).schema}emit(e,t){const n={cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0},r=this.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=e=>{const t="draft-2020-12"===this.target?"$defs":"definitions";if(n.external){const r=n.external.registry.get(e[0])?.id,i=n.external.uri??(e=>e);if(r)return{ref:i(r)};const o=e[1].defId??e[1].schema.id??"schema"+this.counter++;return e[1].defId=o,{defId:o,ref:`${i("__shared")}#/${t}/${o}`}}if(e[1]===r)return{ref:"#"};const i=`#/${t}/`,o=e[1].schema.id??"__schema"+this.counter++;return{defId:o,ref:i+o}},o=e=>{if(e[1].schema.$ref)return;const t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);const o=t.schema;for(const e in o)delete o[e];o.$ref=n};if("throw"===n.cycles)for(const e of this.seen.entries()){const t=e[1];if(t.cycle)throw new Error(`Cycle detected: #/${t.cycle?.join("/")}/\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const t of this.seen.entries()){const r=t[1];if(e===t[0]){o(t);continue}if(n.external){const r=n.external.registry.get(t[0])?.id;if(e!==t[0]&&r){o(t);continue}}const i=this.metadataRegistry.get(t[0])?.id;(i||r.cycle||r.count>1&&"ref"===n.reused)&&o(t)}const a=(e,t)=>{const n=this.seen.get(e),r=n.def??n.schema,i={...r};if(null===n.ref)return;const o=n.ref;if(n.ref=null,o){a(o,t);const e=this.seen.get(o).schema;!e.$ref||"draft-7"!==t.target&&"draft-4"!==t.target?(Object.assign(r,e),Object.assign(r,i)):(r.allOf=r.allOf??[],r.allOf.push(e))}n.isParent||this.override({zodSchema:e,jsonSchema:r,path:n.path??[]})};for(const e of[...this.seen.entries()].reverse())a(e[0],{target:this.target});const s={};if("draft-2020-12"===this.target?s.$schema="https://json-schema.org/draft/2020-12/schema":"draft-7"===this.target?s.$schema="http://json-schema.org/draft-07/schema#":"draft-4"===this.target?s.$schema="http://json-schema.org/draft-04/schema#":console.warn(`Invalid target: ${this.target}`),n.external?.uri){const t=n.external.registry.get(e)?.id;if(!t)throw new Error("Schema is missing an `id` property");s.$id=n.external.uri(t)}Object.assign(s,r.def);const u=n.external?.defs??{};for(const e of this.seen.entries()){const t=e[1];t.def&&t.defId&&(u[t.defId]=t.def)}n.external||Object.keys(u).length>0&&("draft-2020-12"===this.target?s.$defs=u:s.definitions=u);try{return JSON.parse(JSON.stringify(s))}catch(e){throw new Error("Error converting schema to JSON.")}}}function a(e,t){if(e instanceof r.a){const n=new o(t),r={};for(const t of e._idmap.entries()){const[e,r]=t;n.process(r)}const i={},a={registry:e,uri:t?.uri,defs:r};for(const r of e._idmap.entries()){const[e,o]=r;i[e]=n.emit(o,{...t,external:a})}if(Object.keys(r).length>0){const e="draft-2020-12"===n.target?"$defs":"definitions";i.__shared={[e]:r}}return{schemas:i}}const n=new o(t);return n.process(e),n.emit(e,t)}function s(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":return!1;case"array":return s(r.element,n);case"object":for(const e in r.shape)if(s(r.shape[e],n))return!0;return!1;case"union":for(const e of r.options)if(s(e,n))return!0;return!1;case"intersection":return s(r.left,n)||s(r.right,n);case"tuple":for(const e of r.items)if(s(e,n))return!0;return!(!r.rest||!s(r.rest,n));case"record":case"map":return s(r.keyType,n)||s(r.valueType,n);case"set":return s(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return s(r.innerType,n);case"lazy":return s(r.getter(),n);case"transform":return!0;case"pipe":return s(r.in,n)||s(r.out,n)}throw new Error(`Unknown schema type: ${r.type}`)}},,,,(e,t,n)=>{"use strict";var r=("undefined"!=typeof JSON?JSON:n(346)).stringify,i=n(256),o=n(257),a=n(225),s=n(284),u=s("Array.prototype.join"),c=s("Array.prototype.indexOf"),l=s("Array.prototype.splice"),d=s("Array.prototype.sort"),p=function(e,t){for(var n="",r=0;r1?arguments[1]:void 0,n=t&&t.space||"";"number"==typeof n&&(n=p(n," "));var s=!!t&&"boolean"==typeof t.cycles&&t.cycles,m=t&&t.replacer?a(t.replacer):f;if(t&&void 0!==t.collapseEmpty&&"boolean"!=typeof t.collapseEmpty)throw new TypeError("`collapseEmpty` must be a boolean, if provided");var h=!!t&&t.collapseEmpty,v="function"==typeof t?t:t&&t.cmp,y=v&&function(e){var t=v.length>2&&function(t){return e[t]};return function(n,r){return v({key:n,value:e[n]},{key:r,value:e[r]},t?{__proto__:null,get:t}:void 0)}},g=[];return function e(t,a,f,v){var b=n?"\n"+p(v,n):"",_=n?": ":":";if(f&&f.toJSON&&"function"==typeof f.toJSON&&(f=f.toJSON()),void 0!==(f=m(t,a,f))){if("object"!=typeof f||null===f)return r(f);var I=function(e,t){return h&&0===e.length?t:("[]"===t?"[":"{")+u(e,",")+b+("[]"===t?"]":"}")};if(i(f)){for(var $=[],E=0;E{"use strict";var t,n,r,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function o(e){throw{name:"SyntaxError",message:e,at:t,text:r}}function a(e){return e&&e!==n&&o("Expected '"+e+"' instead of '"+n+"'"),n=r.charAt(t),t+=1,n}function s(){var e,t="";for("-"===n&&(t="-",a("-"));n>="0"&&n<="9";)t+=n,a();if("."===n)for(t+=".";a()&&n>="0"&&n<="9";)t+=n;if("e"===n||"E"===n)for(t+=n,a(),"-"!==n&&"+"!==n||(t+=n,a());n>="0"&&n<="9";)t+=n,a();return e=Number(t),isFinite(e)||o("Bad number"),e}function u(){var e,t,r,s="";if('"'===n)for(;a();){if('"'===n)return a(),s;if("\\"===n)if(a(),"u"===n){for(r=0,t=0;t<4&&(e=parseInt(a(),16),isFinite(e));t+=1)r=16*r+e;s+=String.fromCharCode(r)}else{if("string"!=typeof i[n])break;s+=i[n]}else s+=n}o("Bad string")}function c(){for(;n&&n<=" ";)a()}function l(){switch(c(),n){case"{":return function(){var e,t={};if("{"===n){if(a("{"),c(),"}"===n)return a("}"),t;for(;n;){if(e=u(),c(),a(":"),Object.prototype.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=l(),c(),"}"===n)return a("}"),t;a(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===n){if(a("["),c(),"]"===n)return a("]"),e;for(;n;){if(e.push(l()),c(),"]"===n)return a("]"),e;a(","),c()}}o("Bad array")}();case'"':return u();case"-":return s();default:return n>="0"&&n<="9"?s():function(){switch(n){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:o("Unexpected '"+n+"'")}}()}}e.exports=function(e,i){var a;return r=e,t=0,n=" ",a=l(),c(),n&&o("Syntax error"),"function"==typeof i?function e(t,n){var r,o,a=t[n];if(a&&"object"==typeof a)for(r in l)Object.prototype.hasOwnProperty.call(a,r)&&(void 0===(o=e(a,r))?delete a[r]:a[r]=o);return i.call(t,n,a)}({"":a},""):a}},e=>{"use strict";var t,n,r,i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function s(e,i){var o,u,c,l,d,p=t,f=i[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),"function"==typeof r&&(f=r.call(i,e,f)),typeof f){case"string":return a(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(t+=n,d=[],"[object Array]"===Object.prototype.toString.apply(f)){for(l=f.length,o=0;o{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(165),o=Object.keys,a=o?function(e){return o(e)}:n(258),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(165),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var m=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var v=0;v{"use strict";var r=n(166),i=n(281),o=n(282)(),a=n(104),s=n(103),u=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},e=>{"use strict";e.exports=Error},e=>{"use strict";e.exports=EvalError},e=>{"use strict";e.exports=RangeError},e=>{"use strict";e.exports=ReferenceError},e=>{"use strict";e.exports=URIError},e=>{"use strict";e.exports=Math.abs},e=>{"use strict";e.exports=Math.floor},e=>{"use strict";e.exports=Math.max},e=>{"use strict";e.exports=Math.min},e=>{"use strict";e.exports=Math.pow},e=>{"use strict";e.exports=Math.round},(e,t,n)=>{"use strict";var r=n(272);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(275);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,n)=>{"use strict";var r=n(169),i=n(170),o=n(277);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},(e,t,n)=>{"use strict";var r,i=n(125),o=n(104);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(86);e.exports=o.call(r,i)},(e,t,n)=>{"use strict";var r=n(105),i=n(168),o=n(103),a=n(104);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===u&&d?d.writable:!u});else{if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},(e,t,n)=>{"use strict";var r=n(105),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},(e,t,n)=>{"use strict";var r=n(86),i=n(127),o=n(171);e.exports=function(){return o(r,i,arguments)}},(e,t,n)=>{"use strict";var r=n(166),i=n(125),o=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i([n]):n}},,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>r});class r{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter((e=>e)),n=Math.min(...t.map((e=>e.length-e.trimStart().length))),r=t.map((e=>e.slice(n))).map((e=>" ".repeat(2*this.indent)+e));for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map((e=>` ${e}`))].join("\n"))}}},(e,t,n)=>{"use strict";n.d(t,{a:()=>r});const r={major:4,minor:0,patch:17}},(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>o,c:()=>u,d:()=>s});var r=n(180),i=n(291);const o=r.b(i.b),a=r.a(i.b),s=r.d(i.b),u=r.c(i.b)},(e,t,n)=>{"use strict";n.d(t,{a:()=>s,b:()=>u});var r=n(142),i=n(69),o=n(61);const a=(e,t)=>{r.a.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>r.d(e,t)},flatten:{value:t=>r.c(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,o.jsonStringifyReplacer,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,o.jsonStringifyReplacer,2)}},isEmpty:{get:()=>0===e.issues.length}})},s=i.c("ZodError",a),u=i.c("ZodError",a,{Parent:Error})},,,,,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(107);function i(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new r.b(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},(e,t,n)=>{"use strict";n.d(t,{a:()=>r});const r=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}}},(e,t,n)=>{"use strict";n.d(t,{a:()=>b});var r=n(108);function i(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function o(e,t){return e.name===t}function a(e){return parseInt(e.name.slice(4),10)}function s(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!o(e.algorithm,"HMAC"))throw i("HMAC");const n=parseInt(t.slice(2),10);if(a(e.algorithm.hash)!==n)throw i(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!o(e.algorithm,"RSASSA-PKCS1-v1_5"))throw i("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(a(e.algorithm.hash)!==n)throw i(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!o(e.algorithm,"RSA-PSS"))throw i("RSA-PSS");const n=parseInt(t.slice(2),10);if(a(e.algorithm.hash)!==n)throw i(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw i("Ed25519 or Ed448");break;case"Ed25519":if(!o(e.algorithm,"Ed25519"))throw i("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!o(e.algorithm,"ECDSA"))throw i("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw i(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(e,t){if(t.length&&!t.some((t=>e.usages.includes(t)))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}(e,n)}var u=n(421),c=n(422),l=n(187),d=n(185),p=n(301);const f=e=>(0,d.a)(e);let m,h;const v=e=>"KeyObject"===e?.[Symbol.toStringTag],y=async(e,t,n,r,i=!1)=>{let o=e.get(t);if(o?.[r])return o[r];const a=await(0,p.a)({...n,alg:r});return i&&Object.freeze(t),o?o[r]=a:e.set(t,{[r]:a}),a},g={normalizePublicKey:(e,t)=>{if(v(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?f(n.k):(h||(h=new WeakMap),y(h,e,n,t))}return(0,l.a)(e)?e.k?(0,d.a)(e.k):(h||(h=new WeakMap),y(h,e,e,t,!0)):e},normalizePrivateKey:(e,t)=>{if(v(e)){let n=e.export({format:"jwk"});return n.k?f(n.k):(m||(m=new WeakMap),y(m,e,n,t))}return(0,l.a)(e)?e.k?(0,d.a)(e.k):(m||(m=new WeakMap),y(m,e,e,t,!0)):e}};async function b(e,t,n){if("sign"===n&&(t=await g.normalizePrivateKey(t,e)),"verify"===n&&(t=await g.normalizePublicKey(t,e)),(0,r.b)(t))return s(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError((0,u.a)(t,...c.b));return r.a.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError((0,u.a)(t,...c.b,"Uint8Array","JSON Web Key"))}},(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(108),i=n(107);const o=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new i.b('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new i.b('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},n=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new i.b('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new i.b('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),o=[t,e.ext??!1,e.key_ops??n],a={...e};return delete a.alg,delete a.use,r.a.subtle.importKey("jwk",a,...o)}},(e,t,n)=>{"use strict";n.d(t,{a:()=>r});const r=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0}},(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var r=n(421),i=n(422),o=n(187);const a=e=>e?.[Symbol.toStringTag],s=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0};function u(e,t,n,u){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?((e,t,n,u)=>{if(!(t instanceof Uint8Array)){if(u&&o.a(t)){if(o.d(t)&&s(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!(0,i.a)(t))throw new TypeError((0,r.b)(e,t,...i.b,"Uint8Array",u?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${a(t)} instances for symmetric algorithms must be of type "secret"`)}})(t,n,u,e):((e,t,n,u)=>{if(u&&o.a(t))switch(n){case"sign":if(o.b(t)&&s(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(o.c(t)&&s(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!(0,i.a)(t))throw new TypeError((0,r.b)(e,t,...i.b,u?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${a(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${a(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${a(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${a(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${a(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,u,e)}u.bind(void 0,!1);const c=u.bind(void 0,!0)},(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(107);const i=function(e,t,n,i,o){if(void 0!==o.crit&&void 0===i?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.crit.some((e=>"string"!=typeof e||0===e.length)))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;a=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of i.crit){if(!a.has(t))throw new r.b(`Extension Header Parameter "${t}" is not recognized`);if(void 0===o[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(a.get(t)&&void 0===i[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(i.crit)}},(e,t,n)=>{"use strict";n.d(t,{a:()=>r});const r=e=>Math.floor(e.getTime()/1e3)},(e,t,n)=>{"use strict";n.d(t,{a:()=>i});const r=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,i=e=>{const t=r.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let i;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(3600*n);break;case"day":case"days":case"d":i=Math.round(86400*n);break;case"week":case"weeks":case"w":i=Math.round(604800*n);break;default:i=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-i:i}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAdminClient=function(e){return new r.AdminClient({...e,shopifyDomain:o(e.shopifyDomain)})},t.createPrivateStorefrontClient=function(e){return new i.StorefrontClient({...e,privateClient:!0,shopifyDomain:o(e.shopifyDomain)})},t.createPublicStorefrontClient=function(e){return new i.StorefrontClient({...e,privateClient:!1,shopifyDomain:o(e.shopifyDomain)})};const r=n(344),i=n(351);function o(e){return e.endsWith(".myshopify.com")?e:`${e}.myshopify.com`}},(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminClient=void 0;const r=n(345),i=n(164),o=n(148);t.AdminClient=class{__client_version__;client;inFlightCache={};constructor({accessToken:e,shopifyDomain:t,apiVersion:n=i.DEFAULT_API_VERSION,retries:o=3}){this.__client_version__=n,this.client=(0,r.createAdminApiClient)({apiVersion:n,storeDomain:t,accessToken:e,retries:o})}async request(e,t,n){const r=(0,o.toQueryString)(e),i=(0,o.inflightRequestKey)(r,t);return(0,o.createInflightRequest)(this.inFlightCache,i,(()=>(0,o.executeGraphQLRequest)("admin-client",((e,t,n)=>this.client.request(e,{...n,variables:t})),r,t,n)))}async paginatedRequest(e,t,n,r){return(0,o.executePaginatedRequest)({request:(e,t,n)=>this.request(e,t,n),query:e,variables:t,extractData:n,options:r})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createAdminApiClient:()=>p,createAdminRestApiClient:()=>m});var r=n(223);const i="application/json",o="1.1.1",a="X-Shopify-Access-Token",s="Admin API Client",u=[429,500,503],c=1e3;function l(e){if(!e)throw new Error(`${s}: an access token must be provided`)}function d(e=!1){if("undefined"!=typeof window&&!e)throw new Error(`${s}: this client should not be used in the browser`)}function p({storeDomain:e,apiVersion:t,accessToken:n,userAgentPrefix:u,retries:c=0,customFetchApi:p,logger:f,isTesting:m}){const h=(0,r.e)(),v=(0,r.g)({client:s,storeDomain:e}),y={client:s,currentSupportedApiVersions:h,logger:f};d(m),(0,r.f)({client:s,currentSupportedApiVersions:h,apiVersion:t,logger:f}),l(n);const g=function(e,t,n){return i=>{i&&(0,r.f)({...n,apiVersion:i});const o=(i??t).trim();return`${e}/admin/api/${o}/graphql.json`}}(v,t,y),b={storeDomain:v,apiVersion:t,accessToken:n,headers:{"Content-Type":i,Accept:i,[a]:n,"User-Agent":`${u?`${u} | `:""}${s} v${o}`},apiUrl:g(),userAgentPrefix:u},_=(0,r.a)({headers:b.headers,url:b.apiUrl,retries:c,customFetchApi:p,logger:f}),I=(0,r.c)(b),$=function(e,t){return n=>n?t(n):e.apiUrl}(b,g),E=(0,r.b)({getHeaders:I,getApiUrl:$}),T={config:b,getHeaders:I,getApiUrl:$,fetch:(...e)=>_.fetch(...E(...e)),request:(...e)=>_.request(...E(...e))};return Object.freeze(T)}var f;function m({storeDomain:e,apiVersion:t,accessToken:n,userAgentPrefix:p,logger:m,customFetchApi:v=fetch,retries:y=0,scheme:g="https",defaultRetryTime:b=c,formatPaths:_=!0,isTesting:I}){const $=(0,r.e)(),E=(0,r.g)({client:s,storeDomain:e}).replace("https://",`${g}://`),T={client:s,currentSupportedApiVersions:$,logger:m};d(I),(0,r.f)({client:s,currentSupportedApiVersions:$,apiVersion:t,logger:m}),l(n),(0,r.h)({client:s,retries:y});const w=function(e,t,n,i=!0){return(o,a,s)=>{function u(e,t,n){Array.isArray(n)?n.forEach((n=>u(e,`${t}[]`,n))):"object"!=typeof n?e.append(t,String(n)):Object.entries(n).forEach((([n,r])=>u(e,`${t}[${n}]`,r)))}s&&(0,r.f)({...n,apiVersion:s});const c=(s??t).trim();let l=o.replace(/^\//,"");i&&(l.startsWith("admin")||(l=`admin/api/${c}/${l}`),l.endsWith(".json")||(l=`${l}.json`));const d=new URLSearchParams;if(a)for(const[e,t]of Object.entries(a))u(d,e,t);const p=d.toString()?`?${d.toString()}`:"";return`${e}/${l}${p}`}}(E,t,T,_),N=function(e){return t=>{e&&e(t)}}(m),O=(0,r.d)({customFetchApi:v,clientLogger:N,defaultRetryWaitTime:b,client:s,retriableCodes:u}),S=async(e,{method:t,data:u,headers:c,searchParams:l,retries:d=0,apiVersion:f})=>{(0,r.h)({client:s,retries:d});const m=w(e,l??{},f),v=h(c??{}),g=[...v["user-agent"]?[v["user-agent"]]:[],...p?[p]:[],`${s} v${o}`].join(" | "),b=h({"Content-Type":i,...v,Accept:i,[a]:n,"User-Agent":g}),_=u&&"string"!=typeof u?JSON.stringify(u):u;return O([m,{method:t,headers:b,..._?{body:_}:void 0}],1,d??y)};return{get:(e,t)=>S(e,{method:f.Get,...t}),put:(e,t)=>S(e,{method:f.Put,...t}),post:(e,t)=>S(e,{method:f.Post,...t}),delete:(e,t)=>S(e,{method:f.Delete,...t})}}function h(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=Array.isArray(r)?r.join(", "):String(r);return t}!function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(f||(f={}))},(e,t,n)=>{"use strict";t.parse=n(254),t.stringify=n(255)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>Ue,BreakingChangeType:()=>pa,DEFAULT_DEPRECATION_REASON:()=>_n,DangerousChangeType:()=>fa,DirectiveLocation:()=>w,ExecutableDefinitionsRule:()=>Tr,FieldsOnCorrectTypeRule:()=>wr,FragmentsOnCompositeTypesRule:()=>Nr,GRAPHQL_MAX_INT:()=>on,GRAPHQL_MIN_INT:()=>an,GraphQLBoolean:()=>ln,GraphQLDeprecatedDirective:()=>In,GraphQLDirective:()=>yn,GraphQLEnumType:()=>qt,GraphQLError:()=>m,GraphQLFloat:()=>un,GraphQLID:()=>dn,GraphQLIncludeDirective:()=>gn,GraphQLInputObjectType:()=>Qt,GraphQLInt:()=>sn,GraphQLInterfaceType:()=>Bt,GraphQLList:()=>wt,GraphQLNonNull:()=>Nt,GraphQLObjectType:()=>Lt,GraphQLOneOfDirective:()=>En,GraphQLScalarType:()=>zt,GraphQLSchema:()=>Jn,GraphQLSkipDirective:()=>bn,GraphQLSpecifiedByDirective:()=>$n,GraphQLString:()=>cn,GraphQLUnionType:()=>Kt,Kind:()=>N,KnownArgumentNamesRule:()=>Or,KnownDirectivesRule:()=>kr,KnownFragmentNamesRule:()=>Dr,KnownTypeNamesRule:()=>Ar,Lexer:()=>z,Location:()=>b,LoneAnonymousOperationRule:()=>jr,LoneSchemaDefinitionRule:()=>Pr,MaxIntrospectionDepthRule:()=>Ur,NoDeprecatedCustomRule:()=>So,NoFragmentCyclesRule:()=>zr,NoSchemaIntrospectionCustomRule:()=>ko,NoUndefinedVariablesRule:()=>Lr,NoUnusedFragmentsRule:()=>Cr,NoUnusedVariablesRule:()=>Fr,OperationTypeNode:()=>T,OverlappingFieldsCanBeMergedRule:()=>Zr,PossibleFragmentSpreadsRule:()=>ti,PossibleTypeExtensionsRule:()=>ni,ProvidedRequiredArgumentsRule:()=>ii,ScalarLeafsRule:()=>si,SchemaMetaFieldDef:()=>Ln,SingleFieldSubscriptionsRule:()=>wi,Source:()=>ce,Token:()=>_,TokenKind:()=>O,TypeInfo:()=>lr,TypeKind:()=>Un,TypeMetaFieldDef:()=>Cn,TypeNameMetaFieldDef:()=>Fn,UniqueArgumentDefinitionNamesRule:()=>Oi,UniqueArgumentNamesRule:()=>Si,UniqueDirectiveNamesRule:()=>ki,UniqueDirectivesPerLocationRule:()=>Di,UniqueEnumValueNamesRule:()=>Ai,UniqueFieldDefinitionNamesRule:()=>xi,UniqueFragmentNamesRule:()=>Pi,UniqueInputFieldNamesRule:()=>Ri,UniqueOperationNamesRule:()=>Ui,UniqueOperationTypesRule:()=>zi,UniqueTypeNamesRule:()=>Li,UniqueVariableNamesRule:()=>Ci,ValidationContext:()=>Yi,ValuesOfCorrectTypeRule:()=>Fi,VariablesAreInputTypesRule:()=>Mi,VariablesInAllowedPositionRule:()=>Zi,__Directive:()=>Dn,__DirectiveLocation:()=>An,__EnumValue:()=>Rn,__Field:()=>jn,__InputValue:()=>Pn,__Schema:()=>kn,__Type:()=>xn,__TypeKind:()=>zn,assertAbstractType:()=>Tt,assertCompositeType:()=>$t,assertDirective:()=>vn,assertEnumType:()=>ut,assertEnumValueName:()=>Ye,assertInputObjectType:()=>lt,assertInputType:()=>vt,assertInterfaceType:()=>it,assertLeafType:()=>_t,assertListType:()=>pt,assertName:()=>qe,assertNamedType:()=>jt,assertNonNullType:()=>mt,assertNullableType:()=>Dt,assertObjectType:()=>nt,assertOutputType:()=>gt,assertScalarType:()=>et,assertSchema:()=>Gn,assertType:()=>Qe,assertUnionType:()=>at,assertValidName:()=>la,assertValidSchema:()=>Wn,assertWrappingType:()=>St,astFromValue:()=>On,buildASTSchema:()=>Fo,buildClientSchema:()=>Po,buildSchema:()=>Vo,coerceInputValue:()=>di,concatAST:()=>oa,createSourceEventStream:()=>Oo,defaultFieldResolver:()=>_o,defaultTypeResolver:()=>bo,doTypesOverlap:()=>rn,execute:()=>oo,executeSync:()=>ao,extendSchema:()=>Ro,findBreakingChanges:()=>ma,findDangerousChanges:()=>ha,formatError:()=>y,getArgumentValues:()=>gi,getDirectiveValues:()=>bi,getEnterLeaveForKind:()=>Ce,getIntrospectionQuery:()=>Do,getLocation:()=>l,getNamedType:()=>Pt,getNullableType:()=>At,getOperationAST:()=>Ao,getOperationRootType:()=>xo,getVariableValues:()=>yi,getVisitFn:()=>Fe,graphql:()=>$o,graphqlSync:()=>Eo,introspectionFromSchema:()=>jo,introspectionTypes:()=>Vn,isAbstractType:()=>Et,isCompositeType:()=>It,isConstValueNode:()=>yr,isDefinitionNode:()=>fr,isDirective:()=>hn,isEnumType:()=>st,isEqualType:()=>tn,isExecutableDefinitionNode:()=>mr,isInputObjectType:()=>ct,isInputType:()=>ht,isInterfaceType:()=>rt,isIntrospectionType:()=>Mn,isLeafType:()=>bt,isListType:()=>dt,isNamedType:()=>xt,isNonNullType:()=>ft,isNullableType:()=>kt,isObjectType:()=>tt,isOutputType:()=>yt,isRequiredArgument:()=>Jt,isRequiredInputField:()=>en,isScalarType:()=>Xe,isSchema:()=>Zn,isSchemaCoordinateNode:()=>Er,isSelectionNode:()=>hr,isSpecifiedDirective:()=>wn,isSpecifiedScalarType:()=>fn,isType:()=>He,isTypeDefinitionNode:()=>_r,isTypeExtensionNode:()=>$r,isTypeNode:()=>gr,isTypeSubTypeOf:()=>nn,isTypeSystemDefinitionNode:()=>br,isTypeSystemExtensionNode:()=>Ir,isUnionType:()=>ot,isValidNameError:()=>da,isValueNode:()=>vr,isWrappingType:()=>Ot,lexicographicSortSchema:()=>Mo,locatedError:()=>no,parse:()=>de,parseConstValue:()=>fe,parseSchemaCoordinate:()=>he,parseType:()=>me,parseValue:()=>pe,print:()=>Ve,printError:()=>v,printIntrospectionSchema:()=>Ko,printLocation:()=>d,printSchema:()=>Bo,printSourceLocation:()=>p,printType:()=>Ho,recommendedRules:()=>Ji,resolveASTSchemaCoordinate:()=>Aa,resolveObjMapThunk:()=>Ut,resolveReadonlyArrayThunk:()=>Rt,resolveSchemaCoordinate:()=>Da,responsePathAsArray:()=>li,separateOperations:()=>aa,specifiedDirectives:()=>Tn,specifiedRules:()=>Bi,specifiedScalarTypes:()=>pn,stripIgnoredCharacters:()=>ca,subscribe:()=>No,syntaxError:()=>g,typeFromAST:()=>cr,validate:()=>Qi,validateSchema:()=>Kn,valueFromAST:()=>mi,valueFromASTUntyped:()=>We,version:()=>r,versionInfo:()=>i,visit:()=>ze,visitInParallel:()=>Le,visitWithTypeInfo:()=>pr});const r="16.14.2",i=Object.freeze({major:16,minor:14,patch:2,preReleaseTag:null});function o(e,t){if(!Boolean(e))throw new Error(t)}function a(e){return"function"==typeof(null==e?void 0:e.then)}function s(e){return"object"==typeof e&&null!==e}function u(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const c=/\r\n|[\n\r]/g;function l(e,t){let n=0,r=1;for(const i of e.body.matchAll(c)){if("number"==typeof i.index||u(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function d(e){return p(e.source,l(e.source,e.start))}function p(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,c=`${e.name}:${a}:${u}\n`,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+f([[a-1+" |",l[i-1]],[`${a} |`,d],["|","^".padStart(u)],[`${a+1} |`,l[i+1]]])}function f(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class m extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:u,path:c,originalError:d,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=h(Array.isArray(o)?o:o?[o]:void 0);const f=h(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=u?u:null==f?void 0:f.map((e=>e.start)),this.locations=u&&a?u.map((e=>l(a,e))):null==f?void 0:f.map((e=>l(e.source,e.start)));const v=s(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!=p?p:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,m):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+d(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+p(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function h(e){return void 0===e||0===e.length?void 0:e}function v(e){return e.toString()}function y(e){return e.toJSON()}function g(e,t,n){return new m(`Syntax Error: ${n}`,{source:e,positions:[t]})}class b{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class _{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const I={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},$=new Set(Object.keys(I));function E(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&$.has(t)}var T,w,N,O;function S(e){return 9===e||32===e}function k(e){return e>=48&&e<=57}function D(e){return e>=97&&e<=122||e>=65&&e<=90}function A(e){return D(e)||95===e}function x(e){return D(e)||k(e)||95===e}function j(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function P(e){let t=0;for(;t1&&r.slice(1).every((e=>0===e.length||S(e.charCodeAt(0)))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=s||u,l=!(null!=t&&t.minimize)&&(!i||e.length>70||c||o||a);let d="";const p=i&&S(e.charCodeAt(0));return(l&&!p||o)&&(d+="\n"),d+=n,(l||c)&&(d+="\n"),'"""'+d+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(T||(T={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(w||(w={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(N||(N={})),function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(O||(O={}));class z{constructor(e){const t=new _(O.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==O.EOF)do{if(e.next)e=e.next;else{const t=J(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===O.COMMENT);return e}}function L(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.DOT||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}function C(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function F(e,t){return V(e.charCodeAt(t))&&M(e.charCodeAt(t+1))}function V(e){return e>=55296&&e<=56319}function M(e){return e>=56320&&e<=57343}function Z(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return O.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new _(t,n,r,o,a,i)}function J(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw g(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const u=[];for(;ooe)return"[Array]";const n=Math.min(ie,e.length),r=e.length-n,i=[];for(let r=0;r1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>oe)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+se(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const ue=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=ae(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class ce{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||o(!1,`Body must be a string. Received: ${ae(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function le(e){return ue(e,ce)}function de(e,t){const n=new ve(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function pe(e,t){const n=new ve(e,t);n.expectToken(O.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(O.EOF),r}function fe(e,t){const n=new ve(e,t);n.expectToken(O.SOF);const r=n.parseConstValueLiteral();return n.expectToken(O.EOF),r}function me(e,t){const n=new ve(e,t);n.expectToken(O.SOF);const r=n.parseTypeReference();return n.expectToken(O.EOF),r}function he(e){const t=le(e)?e:new ce(e),n=new re(t),r=new ve(e,{lexer:n});r.expectToken(O.SOF);const i=r.parseSchemaCoordinate();return r.expectToken(O.EOF),i}class ve{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=le(e)?e:new ce(e);this._lexer=new z(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(O.NAME);return this.node(e,{kind:N.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:N.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF)})}parseDefinition(){if(this.peek(O.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===O.BRACE_L)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===O.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(O.BRACE_L))return this.node(e,{kind:N.OPERATION_DEFINITION,operation:T.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(O.NAME)&&(r=this.parseName()),this.node(e,{kind:N.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(O.NAME);switch(e.value){case"query":return T.QUERY;case"mutation":return T.MUTATION;case"subscription":return T.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:N.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(O.DOLLAR),this.node(e,{kind:N.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:N.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R)})}parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(O.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:N.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(t,{kind:N.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(O.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?this.node(e,{kind:N.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:N.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:N.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:N.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this.advanceLexer(),this.node(t,{kind:N.INT,value:t.value});case O.FLOAT:return this.advanceLexer(),this.node(t,{kind:N.FLOAT,value:t.value});case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:N.BOOLEAN,value:!0});case"false":return this.node(t,{kind:N.BOOLEAN,value:!1});case"null":return this.node(t,{kind:N.NULL});default:return this.node(t,{kind:N.ENUM,value:t.value})}case O.DOLLAR:if(e){if(this.expectToken(O.DOLLAR),this._lexer.token.kind===O.NAME){const e=this._lexer.token.value;throw g(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:N.STRING,value:e.value,block:e.kind===O.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:N.LIST,values:this.any(O.BRACKET_L,(()=>this.parseValueLiteral(e)),O.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:N.OBJECT,fields:this.any(O.BRACE_L,(()=>this.parseObjectField(e)),O.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(t,{kind:N.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(O.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(O.AT),this.node(t,{kind:N.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(O.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(O.BRACKET_R),t=this.node(e,{kind:N.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(O.BANG)?this.node(e,{kind:N.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:N.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return this.node(e,{kind:N.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);const n=this.parseNamedType();return this.node(e,{kind:N.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:N.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:N.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(O.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:N.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(O.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:N.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:N.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:N.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:N.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:N.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw g(this._lexer.source,this._lexer.token.start,`${ye(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:N.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:N.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:N.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:N.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(O.AT);const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:N.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:N.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(w,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(O.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(O.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(O.PAREN_L)&&(i=this.parseName(),this.expectToken(O.COLON),this.expectToken(O.PAREN_R)),t?i?this.node(e,{kind:N.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:N.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:N.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:N.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:N.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new b(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw g(this._lexer.source,t.start,`Expected ${ge(e)}, found ${ye(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==O.NAME||t.value!==e)throw g(this._lexer.source,t.start,`Expected "${e}", found ${ye(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${ye(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==O.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ye(e){const t=e.value;return ge(e.kind)+(null!=t?` "${t}"`:"")}function ge(e){return L(e)?`"${e}"`:e}const be=5;function _e(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,be),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function Ie(e){return e}function $e(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function Ee(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function Te(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function we(e,t){let n=0,r=0;for(;n0);let s=0;do{++r,s=10*s+o-Ne,o=t.charCodeAt(r)}while(Se(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}const Ne=48,Oe=57;function Se(e){return!isNaN(e)&&Ne<=e&&e<=Oe}function ke(e,t){const n=Object.create(null),r=new De(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const r=n[e]-n[t];return 0!==r?r:we(e,t)}))}class De{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Ae(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Ae(n),i=this._inputArray;if(r.lengtht)return;const s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){const n=s[(e-1)%3],o=s[e%3];let u=o[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===i[t-1]?0:1;let c=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=s[(e-2)%3][t-2];c=Math.min(c,n+1)}ct)return}const u=s[o%3][a];return u<=t?u:void 0}}function Ae(e){const t=e.length,n=new Array(t);for(let r=0;re.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ze(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ke(e.variableDefinitions)?Je("(\n",Ze(e.variableDefinitions,"\n"),"\n)"):Je("(",Ze(e.variableDefinitions,", "),")"),n=Je("",e.description,"\n")+Ze([e.operation,Ze([e.name,t]),Ze(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Je("",i,"\n")+e+": "+t+Je(" = ",n)+Je(" ",Ze(r," "))},SelectionSet:{leave:({selections:e})=>Ge(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Je("",e,": ")+t;let a=o+Je("(",Ze(n,", "),")");return a.length>80&&(a=o+Je("(\n",Be(Ze(n,"\n")),"\n)")),Ze([a,Ze(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Je(" ",Ze(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ze(["...",Je("on ",e),Ze(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Je("",o,"\n")+`fragment ${e}${Je("(",Ze(n,", "),")")} `+`on ${t} ${Je("",Ze(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?U(e):`"${e.replace(je,Pe)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ze(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ze(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Je("(",Ze(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Je("",e,"\n")+Ze(["schema",Ze(t," "),Ge(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Je("",e,"\n")+Ze(["scalar",t,Ze(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Je("",e,"\n")+Ze(["type",t,Je("implements ",Ze(n," & ")),Ze(r," "),Ge(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Je("",e,"\n")+t+(Ke(n)?Je("(\n",Be(Ze(n,"\n")),"\n)"):Je("(",Ze(n,", "),")"))+": "+r+Je(" ",Ze(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Je("",e,"\n")+Ze([t+": "+n,Je("= ",r),Ze(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Je("",e,"\n")+Ze(["interface",t,Je("implements ",Ze(n," & ")),Ze(r," "),Ge(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Je("",e,"\n")+Ze(["union",t,Ze(n," "),Je("= ",Ze(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Je("",e,"\n")+Ze(["enum",t,Ze(n," "),Ge(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Je("",e,"\n")+Ze([t,Ze(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Je("",e,"\n")+Ze(["input",t,Ze(n," "),Ge(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:o})=>Je("",e,"\n")+"directive @"+t+(Ke(n)?Je("(\n",Be(Ze(n,"\n")),"\n)"):Je("(",Ze(n,", "),")"))+Je(" ",Ze(r," "))+(i?" repeatable":"")+" on "+Ze(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ze(["extend schema",Ze(e," "),Ge(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ze(["extend scalar",e,Ze(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ze(["extend type",e,Je("implements ",Ze(t," & ")),Ze(n," "),Ge(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ze(["extend interface",e,Je("implements ",Ze(t," & ")),Ze(n," "),Ge(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ze(["extend union",e,Ze(t," "),Je("= ",Ze(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ze(["extend enum",e,Ze(t," "),Ge(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ze(["extend input",e,Ze(t," "),Ge(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>Ze(["extend directive @"+e,Ze(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Ze([e,Je(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Ze([e,Je(".",t),Je("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Ze(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Ze(["@",e,Je("(",t,":)")])}};function Ze(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Ge(e){return Je("{\n",Be(Ze(e,"\n")),"\n}")}function Je(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Be(e){return Je(" ",e.replace(/\n/g,"\n "))}function Ke(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function We(e,t){switch(e.kind){case N.NULL:return null;case N.INT:return parseInt(e.value,10);case N.FLOAT:return parseFloat(e.value);case N.STRING:case N.ENUM:case N.BOOLEAN:return e.value;case N.LIST:return e.values.map((e=>We(e,t)));case N.OBJECT:return Ee(e.fields,(e=>e.name.value),(e=>We(e.value,t)));case N.VARIABLE:return null==t?void 0:t[e.name.value]}}function qe(e){if(null!=e||o(!1,"Must provide name."),"string"==typeof e||o(!1,"Expected name to be a string."),0===e.length)throw new m("Expected name to be a non-empty string.");for(let t=1;ta(We(e,t)),this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||o(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ae(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||o(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||o(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Lt{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ft(e),this._interfaces=()=>Ct(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||o(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ae(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Zt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ct(e){var t;const n=Rt(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||o(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Ft(e){const t=Ut(e.fields);return Mt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Te(t,((t,n)=>{var r;Mt(t)||o(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||o(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ae(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Mt(i)||o(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:qe(n),description:t.description,type:t.type,args:Vt(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:xe(t.extensions),astNode:t.astNode}}))}function Vt(e){return Object.entries(e).map((([e,t])=>({name:qe(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:xe(t.extensions),astNode:t.astNode})))}function Mt(e){return s(e)&&!Array.isArray(e)}function Zt(e){return Te(e,(e=>({description:e.description,type:e.type,args:Gt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Gt(e){return Ee(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Jt(e){return ft(e.type)&&void 0===e.defaultValue}class Bt{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ft.bind(void 0,e),this._interfaces=Ct.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Zt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Kt{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Wt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Wt(e){const t=Rt(e.types);return Array.isArray(t)||o(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class qt{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Ht(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Ht(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=$e(this.getValues(),(e=>e.name))),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map((e=>[e.value,e]))));const t=this._valueLookup.get(e);if(void 0===t)throw new m(`Enum "${this.name}" cannot represent value: ${ae(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=ae(e);throw new m(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Yt(this,t))}const t=this.getValue(e);if(null==t)throw new m(`Value "${e}" does not exist in "${this.name}" enum.`+Yt(this,e));return t.value}parseLiteral(e,t){if(e.kind!==N.ENUM){const t=Ve(e);throw new m(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Yt(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Ve(e);throw new m(`Value "${t}" does not exist in "${this.name}" enum.`+Yt(this,t),{nodes:e})}return n.value}toConfig(){const e=Ee(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Yt(e,t){return _e("the enum value",ke(t,e.getValues().map((e=>e.name))))}function Ht(e,t){return Mt(t)||o(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(Mt(n)||o(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${ae(n)}.`),{name:Ye(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:xe(n.extensions),astNode:n.astNode})))}class Qt{constructor(e){var t,n;this.name=qe(e.name),this.description=e.description,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=Xt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=Te(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Xt(e){const t=Ut(e.fields);return Mt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Te(t,((t,n)=>(!("resolve"in t)||o(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:qe(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:xe(t.extensions),astNode:t.astNode})))}function en(e){return ft(e.type)&&void 0===e.defaultValue}function tn(e,t){return e===t||(ft(e)&&ft(t)||!(!dt(e)||!dt(t)))&&tn(e.ofType,t.ofType)}function nn(e,t,n){return t===n||(ft(n)?!!ft(t)&&nn(e,t.ofType,n.ofType):ft(t)?nn(e,t.ofType,n):dt(n)?!!dt(t)&&nn(e,t.ofType,n.ofType):!dt(t)&&Et(n)&&(rt(t)||tt(t))&&e.isSubType(n,t))}function rn(e,t,n){return t===n||(Et(t)?Et(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!Et(n)&&e.isSubType(n,t))}const on=2147483647,an=-2147483648,sn=new zt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=mn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new m(`Int cannot represent non-integer value: ${ae(t)}`);if(n>on||non||eon||te.name===t))}function mn(e){if(s(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!s(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function hn(e){return ue(e,yn)}function vn(e){if(!hn(e))throw new Error(`Expected ${ae(e)} to be a GraphQL directive.`);return e}class yn{constructor(e){var t,n,r;this.name=qe(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.deprecationReason=e.deprecationReason,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],Array.isArray(e.locations)||o(!1,`@${e.name} locations must be an Array.`);const i=null!==(r=e.args)&&void 0!==r?r:{};s(i)&&!Array.isArray(i)||o(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Vt(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Gt(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const gn=new yn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[w.FIELD,w.FRAGMENT_SPREAD,w.INLINE_FRAGMENT],args:{if:{type:new Nt(ln),description:"Included when true."}}}),bn=new yn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[w.FIELD,w.FRAGMENT_SPREAD,w.INLINE_FRAGMENT],args:{if:{type:new Nt(ln),description:"Skipped when true."}}}),_n="No longer supported",In=new yn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[w.FIELD_DEFINITION,w.ARGUMENT_DEFINITION,w.INPUT_FIELD_DEFINITION,w.ENUM_VALUE,w.DIRECTIVE_DEFINITION],args:{reason:{type:cn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:_n}}}),$n=new yn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[w.SCALAR],args:{url:{type:new Nt(cn),description:"The URL that specifies the behavior of this scalar."}}}),En=new yn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[w.INPUT_OBJECT],args:{}}),Tn=Object.freeze([gn,bn,In,$n,En]);function wn(e){return Tn.some((({name:t})=>t===e.name))}function Nn(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function On(e,t){if(ft(t)){const n=On(e,t.ofType);return(null==n?void 0:n.kind)===N.NULL?null:n}if(null===e)return{kind:N.NULL};if(void 0===e)return null;if(dt(t)){const n=t.ofType;if(Nn(e)){const t=[];for(const r of e){const e=On(r,n);null!=e&&t.push(e)}return{kind:N.LIST,values:t}}return On(e,n)}if(ct(t)){if(!s(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=On(e[r.name],r.type);t&&n.push({kind:N.OBJECT_FIELD,name:{kind:N.NAME,value:r.name},value:t})}return{kind:N.OBJECT,fields:n}}if(bt(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:N.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return Sn.test(e)?{kind:N.INT,value:e}:{kind:N.FLOAT,value:e}}if("string"==typeof n)return st(t)?{kind:N.ENUM,value:n}:t===dn&&Sn.test(n)?{kind:N.INT,value:n}:{kind:N.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ae(n)}.`)}u(!1,"Unexpected input type: "+ae(t))}const Sn=/^-?(?:0|[1-9][0-9]*)$/,kn=new Lt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:cn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Nt(new wt(new Nt(xn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Nt(xn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:xn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:xn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Nt(new wt(new Nt(Dn))),args:{includeDeprecated:{type:new Nt(ln),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter((e=>null==e.deprecationReason))}})}),Dn=new Lt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Nt(cn),resolve:e=>e.name},description:{type:cn,resolve:e=>e.description},isRepeatable:{type:new Nt(ln),resolve:e=>e.isRepeatable},locations:{type:new Nt(new wt(new Nt(An))),resolve:e=>e.locations},args:{type:new Nt(new wt(new Nt(Pn))),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},isDeprecated:{type:new Nt(ln),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:cn,resolve:e=>e.deprecationReason}})}),An=new qt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:w.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:w.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:w.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:w.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:w.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:w.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:w.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:w.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:w.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:w.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:w.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:w.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:w.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:w.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:w.UNION,description:"Location adjacent to a union definition."},ENUM:{value:w.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:w.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:w.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:w.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:w.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),xn=new Lt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Nt(zn),resolve:e=>Xe(e)?Un.SCALAR:tt(e)?Un.OBJECT:rt(e)?Un.INTERFACE:ot(e)?Un.UNION:st(e)?Un.ENUM:ct(e)?Un.INPUT_OBJECT:dt(e)?Un.LIST:ft(e)?Un.NON_NULL:void u(!1,`Unexpected type: "${ae(e)}".`)},name:{type:cn,resolve:e=>"name"in e?e.name:void 0},description:{type:cn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:cn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new wt(new Nt(jn)),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)||rt(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new wt(new Nt(xn)),resolve(e){if(tt(e)||rt(e))return e.getInterfaces()}},possibleTypes:{type:new wt(new Nt(xn)),resolve(e,t,n,{schema:r}){if(Et(e))return r.getPossibleTypes(e)}},enumValues:{type:new wt(new Nt(Rn)),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(st(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new wt(new Nt(Pn)),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ct(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:xn,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ln,resolve:e=>{if(ct(e))return e.isOneOf}}})}),jn=new Lt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Nt(cn),resolve:e=>e.name},description:{type:cn,resolve:e=>e.description},args:{type:new Nt(new wt(new Nt(Pn))),args:{includeDeprecated:{type:ln,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Nt(xn),resolve:e=>e.type},isDeprecated:{type:new Nt(ln),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:cn,resolve:e=>e.deprecationReason}})}),Pn=new Lt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Nt(cn),resolve:e=>e.name},description:{type:cn,resolve:e=>e.description},type:{type:new Nt(xn),resolve:e=>e.type},defaultValue:{type:cn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=On(n,t);return r?Ve(r):null}},isDeprecated:{type:new Nt(ln),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:cn,resolve:e=>e.deprecationReason}})}),Rn=new Lt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Nt(cn),resolve:e=>e.name},description:{type:cn,resolve:e=>e.description},isDeprecated:{type:new Nt(ln),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:cn,resolve:e=>e.deprecationReason}})});var Un;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Un||(Un={}));const zn=new qt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Un.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Un.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Un.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Un.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Un.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Un.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Un.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Un.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ln={name:"__schema",type:new Nt(kn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Cn={name:"__type",type:xn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Nt(cn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Fn={name:"__typename",type:new Nt(cn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Vn=Object.freeze([kn,Dn,An,xn,jn,Pn,Rn,zn]);function Mn(e){return Vn.some((({name:t})=>e.name===t))}function Zn(e){return ue(e,Jn)}function Gn(e){if(!Zn(e))throw new Error(`Expected ${ae(e)} to be a GraphQL schema.`);return e}class Jn{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,s(e)||o(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||o(!1,`"types" must be Array if provided but got: ${ae(e.types)}.`),!e.directives||Array.isArray(e.directives)||o(!1,`"directives" must be Array if provided but got: ${ae(e.directives)}.`),this.description=e.description,this.extensions=xe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:Tn;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),Bn(t,r);null!=this._queryType&&Bn(this._queryType,r),null!=this._mutationType&&Bn(this._mutationType,r),null!=this._subscriptionType&&Bn(this._subscriptionType,r);for(const e of this._directives)if(hn(e))for(const t of e.args)Bn(t.type,r);Bn(kn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||o(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,rt(e)){for(const t of e.getInterfaces())if(rt(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(tt(e))for(const t of e.getInterfaces())if(rt(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case T.QUERY:return this.getQueryType();case T.MUTATION:return this.getMutationType();case T.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return ot(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),ot(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Bn(e,t){const n=Pt(e);if(!t.has(n))if(t.add(n),ot(n))for(const e of n.getTypes())Bn(e,t);else if(tt(n)||rt(n)){for(const e of n.getInterfaces())Bn(e,t);for(const e of Object.values(n.getFields())){Bn(e.type,t);for(const n of e.args)Bn(n.type,t)}}else if(ct(n))for(const e of Object.values(n.getFields()))Bn(e.type,t);return t}function Kn(e){if(Gn(e),e.__validationErrors)return e.__validationErrors;const t=new qn(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!tt(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ae(n)}.`,null!==(r=Yn(t,T.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!tt(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ae(i)}.`,null!==(o=Yn(t,T.MUTATION))&&void 0!==o?o:i.astNode);const a=t.getSubscriptionType();var s;a&&!tt(a)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ae(a)}.`,null!==(s=Yn(t,T.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(hn(n)){Hn(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;Hn(e,r),ht(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ae(r.type)}.`,r.astNode),Jt(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[ur(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${ae(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if(ft(t.type)&&ct(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))xt(r)?(Mn(r)||Hn(e,r),tt(r)||rt(r)?(Qn(e,r),Xn(e,r)):ot(r)?nr(e,r):st(r)?rr(e,r):ct(r)&&(ir(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${ae(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Wn(e){const t=Kn(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class qn{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new m(e,{nodes:n}))}getErrors(){return this._errors}}function Yn(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function Hn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Qn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;Hn(e,a),yt(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ae(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var i,o;Hn(e,n),ht(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${ae(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),Jt(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[ur(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Xn(e,t){const n=Object.create(null);for(const r of t.getInterfaces())rt(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,ar(t,r)):(n[r.name]=!0,tr(e,t,r),er(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,ar(t,r)):e.reportError(`Type ${ae(t)} must only implement Interface types, it cannot implement ${ae(r)}.`,ar(t,r))}function er(e,t,n){const r=t.getFields();for(const u of Object.values(n.getFields())){const c=u.name,l=r[c];if(l){var i,o;nn(e.schema,l.type,u.type)||e.reportError(`Interface field ${n.name}.${c} expects type ${ae(u.type)} but ${t.name}.${c} is type ${ae(l.type)}.`,[null===(i=u.astNode)||void 0===i?void 0:i.type,null===(o=l.astNode)||void 0===o?void 0:o.type]);for(const r of u.args){const i=r.name,o=l.args.find((e=>e.name===i));var a,s;o?tn(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${c}(${i}:) expects type ${ae(r.type)} but ${t.name}.${c}(${i}:) is type ${ae(o.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type]):e.reportError(`Interface field argument ${n.name}.${c}(${i}:) expected but ${t.name}.${c} does not provide it.`,[r.astNode,l.astNode])}for(const r of l.args){const i=r.name;!u.args.find((e=>e.name===i))&&Jt(r)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${i} that is missing from the Interface field ${n.name}.${c}.`,[r.astNode,u.astNode])}}else e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes])}}function tr(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ar(n,i),...ar(t,n)])}function nr(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,sr(t,i.name)):(r[i.name]=!0,tt(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ae(i)}.`,sr(t,String(i))))}function rr(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Hn(e,t)}function ir(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;Hn(e,o),ht(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${ae(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),en(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[ur(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type]),t.isOneOf&&or(t,o,e)}}function or(e,t,n){var r;ft(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function ar(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function sr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function ur(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===In.name))}function cr(e,t){switch(t.kind){case N.LIST_TYPE:{const n=cr(e,t.type);return n&&new wt(n)}case N.NON_NULL_TYPE:{const n=cr(e,t.type);return n&&new Nt(n)}case N.NAMED_TYPE:return e.getType(t.name.value)}}class lr{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:dr,t&&(ht(t)&&this._inputTypeStack.push(t),It(t)&&this._parentTypeStack.push(t),yt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case N.SELECTION_SET:{const e=Pt(this.getType());this._parentTypeStack.push(It(e)?e:void 0);break}case N.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(yt(i)?i:void 0);break}case N.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case N.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(tt(n)?n:void 0);break}case N.INLINE_FRAGMENT:case N.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?cr(t,n):Pt(this.getType());this._typeStack.push(yt(r)?r:void 0);break}case N.VARIABLE_DEFINITION:{const n=cr(t,e.type);this._inputTypeStack.push(ht(n)?n:void 0);break}case N.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ht(r)?r:void 0);break}case N.LIST:{const e=At(this.getInputType()),t=dt(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ht(t)?t:void 0);break}case N.OBJECT_FIELD:{const t=Pt(this.getInputType());let n,r;ct(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(ht(n)?n:void 0);break}case N.ENUM:{const t=Pt(this.getInputType());let n;st(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case N.SELECTION_SET:this._parentTypeStack.pop();break;case N.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case N.DIRECTIVE:this._directive=null;break;case N.OPERATION_DEFINITION:case N.INLINE_FRAGMENT:case N.FRAGMENT_DEFINITION:this._typeStack.pop();break;case N.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case N.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.LIST:case N.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.ENUM:this._enumValue=null}}}function dr(e,t,n){const r=n.name.value;return r===Ln.name&&e.getQueryType()===t?Ln:r===Cn.name&&e.getQueryType()===t?Cn:r===Fn.name&&It(t)?Fn:tt(t)||rt(t)?t.getFields()[r]:void 0}function pr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Ce(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),E(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Ce(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function fr(e){return mr(e)||br(e)||Ir(e)}function mr(e){return e.kind===N.OPERATION_DEFINITION||e.kind===N.FRAGMENT_DEFINITION}function hr(e){return e.kind===N.FIELD||e.kind===N.FRAGMENT_SPREAD||e.kind===N.INLINE_FRAGMENT}function vr(e){return e.kind===N.VARIABLE||e.kind===N.INT||e.kind===N.FLOAT||e.kind===N.STRING||e.kind===N.BOOLEAN||e.kind===N.NULL||e.kind===N.ENUM||e.kind===N.LIST||e.kind===N.OBJECT}function yr(e){return vr(e)&&(e.kind===N.LIST?e.values.some(yr):e.kind===N.OBJECT?e.fields.some((e=>yr(e.value))):e.kind!==N.VARIABLE)}function gr(e){return e.kind===N.NAMED_TYPE||e.kind===N.LIST_TYPE||e.kind===N.NON_NULL_TYPE}function br(e){return e.kind===N.SCHEMA_DEFINITION||_r(e)||e.kind===N.DIRECTIVE_DEFINITION}function _r(e){return e.kind===N.SCALAR_TYPE_DEFINITION||e.kind===N.OBJECT_TYPE_DEFINITION||e.kind===N.INTERFACE_TYPE_DEFINITION||e.kind===N.UNION_TYPE_DEFINITION||e.kind===N.ENUM_TYPE_DEFINITION||e.kind===N.INPUT_OBJECT_TYPE_DEFINITION}function Ir(e){return e.kind===N.SCHEMA_EXTENSION||e.kind===N.DIRECTIVE_EXTENSION||$r(e)}function $r(e){return e.kind===N.SCALAR_TYPE_EXTENSION||e.kind===N.OBJECT_TYPE_EXTENSION||e.kind===N.INTERFACE_TYPE_EXTENSION||e.kind===N.UNION_TYPE_EXTENSION||e.kind===N.ENUM_TYPE_EXTENSION||e.kind===N.INPUT_OBJECT_TYPE_EXTENSION}function Er(e){return e.kind===N.TYPE_COORDINATE||e.kind===N.MEMBER_COORDINATE||e.kind===N.ARGUMENT_COORDINATE||e.kind===N.DIRECTIVE_COORDINATE||e.kind===N.DIRECTIVE_ARGUMENT_COORDINATE}function Tr(e){return{Document(t){for(const n of t.definitions)if(!mr(n)){const t=n.kind===N.SCHEMA_DEFINITION||n.kind===N.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new m(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function wr(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=_e("to use an inline fragment on",function(e,t,n){if(!Et(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:rt(t)&&e.isSubType(t,n)?-1:rt(n)&&e.isSubType(n,t)?1:we(t.name,n.name)})).map((e=>e.name))}(r,n,i));""===o&&(o=_e(function(e,t){return tt(e)||rt(e)?ke(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new m(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}function Nr(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=cr(e.getSchema(),n);if(t&&!It(t)){const t=Ve(n);e.reportError(new m(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=cr(e.getSchema(),t.typeCondition);if(n&&!It(n)){const n=Ve(t.typeCondition);e.reportError(new m(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function Or(e){return{...Sr(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=ke(n,r.args.map((e=>e.name)));e.reportError(new m(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+_e(o),{nodes:t}))}}}}function Sr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Tn;for(const e of r)t[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===N.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=ke(n,i);e.reportError(new m(`Unknown argument "${n}" on directive "@${r}".`+_e(o),{nodes:t}))}}return!1}}}function kr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Tn;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===N.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,r,i,o,a){const s=n.name.value,c=t[s];if(!c)return void e.reportError(new m(`Unknown directive "@${s}".`,{nodes:n}));const l=function(e){const t=e[e.length-1];switch("kind"in t||u(!1),t.kind){case N.OPERATION_DEFINITION:return function(e){switch(e){case T.QUERY:return w.QUERY;case T.MUTATION:return w.MUTATION;case T.SUBSCRIPTION:return w.SUBSCRIPTION}}(t.operation);case N.FIELD:return w.FIELD;case N.FRAGMENT_SPREAD:return w.FRAGMENT_SPREAD;case N.INLINE_FRAGMENT:return w.INLINE_FRAGMENT;case N.FRAGMENT_DEFINITION:return w.FRAGMENT_DEFINITION;case N.VARIABLE_DEFINITION:return w.VARIABLE_DEFINITION;case N.SCHEMA_DEFINITION:case N.SCHEMA_EXTENSION:return w.SCHEMA;case N.SCALAR_TYPE_DEFINITION:case N.SCALAR_TYPE_EXTENSION:return w.SCALAR;case N.OBJECT_TYPE_DEFINITION:case N.OBJECT_TYPE_EXTENSION:return w.OBJECT;case N.FIELD_DEFINITION:return w.FIELD_DEFINITION;case N.INTERFACE_TYPE_DEFINITION:case N.INTERFACE_TYPE_EXTENSION:return w.INTERFACE;case N.UNION_TYPE_DEFINITION:case N.UNION_TYPE_EXTENSION:return w.UNION;case N.ENUM_TYPE_DEFINITION:case N.ENUM_TYPE_EXTENSION:return w.ENUM;case N.ENUM_VALUE_DEFINITION:return w.ENUM_VALUE;case N.INPUT_OBJECT_TYPE_DEFINITION:case N.INPUT_OBJECT_TYPE_EXTENSION:return w.INPUT_OBJECT;case N.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||u(!1),t.kind===N.INPUT_OBJECT_TYPE_DEFINITION?w.INPUT_FIELD_DEFINITION:w.ARGUMENT_DEFINITION}case N.DIRECTIVE_DEFINITION:case N.DIRECTIVE_EXTENSION:return w.DIRECTIVE_DEFINITION;default:u(!1,"Unexpected kind: "+ae(t.kind))}}(a);l&&!c.includes(l)&&e.reportError(new m(`Directive "@${s}" may not be used on ${l}.`,{nodes:n}))}}}function Dr(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new m(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function Ar(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)_r(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,u){const c=t.name.value;if(!n[c]&&!r[c]){var l;const n=null!==(l=u[2])&&void 0!==l?l:a,r=null!=n&&"kind"in(d=n)&&(br(d)||Ir(d));if(r&&xr.includes(c))return;const o=ke(c,r?xr.concat(i):i);e.reportError(new m(`Unknown type "${c}".`+_e(o),{nodes:t}))}var d}}}const xr=[...pn,...Vn].map((e=>e.name));function jr(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===N.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new m("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function Pr(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new m("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new m("Must provide only one schema definition.",{nodes:t})),++a)}}}const Rr=3;function Ur(e){function t(n,r=Object.create(null),i=0){if(n.kind===N.FRAGMENT_SPREAD){const o=n.name.value;if(!0===r[o])return!1;const a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===N.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=Rr)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new m("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function zr(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new m(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}}function Lr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new m(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function Cr(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new m(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function Fr(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new m(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function Vr(e){switch(e.kind){case N.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:Vr(e.value)}))).sort(((e,t)=>we(e.name.value,t.name.value))))};case N.LIST:return{...e,values:e.values.map(Vr)};case N.INT:case N.FLOAT:case N.STRING:case N.BOOLEAN:case N.NULL:case N.ENUM:case N.VARIABLE:return e}var t}function Mr(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+Mr(t))).join(" and "):e}function Zr(e){const t=new Xr,n=new ei,r=new Map;return{SelectionSet(i){const o=function(e,t,n,r,i,o){const a=[],[s,u]=Yr(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&Wr(t)===Wr(n)}))}(c,p))return[[o,"they have differing arguments"],[c],[p]]}const h=null==l?void 0:l.type,v=null==f?void 0:f.type;if(h&&v&&qr(h,v))return[[o,`they return conflicting types "${ae(h)}" and "${ae(v)}"`],[c],[p]];const y=c.selectionSet,g=p.selectionSet;if(y&&g){const i=function(e,t,n,r,i,o,a,s,u){const c=[],[l,d]=Yr(e,t,o,a),[p,f]=Yr(e,t,s,u);Br(e,c,t,n,r,i,l,p);for(const o of f)Gr(e,c,t,n,r,i,l,o);for(const o of d)Gr(e,c,t,n,r,i,p,o);for(const o of d)for(const a of f)Jr(e,c,t,n,r,i,o,a);return c}(e,t,n,r,m,Pt(h),y,Pt(v),g);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(i,o,c,p)}}function Wr(e){return Ve(Vr(e))}function qr(e,t){return dt(e)?!dt(t)||qr(e.ofType,t.ofType):!!dt(t)||(ft(e)?!ft(t)||qr(e.ofType,t.ofType):!!ft(t)||!(!bt(e)&&!bt(t))&&e!==t)}function Yr(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);Qr(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function Hr(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=cr(e.getSchema(),n.typeCondition);return Yr(e,t,i,n.selectionSet)}function Qr(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case N.FIELD:{const e=o.name.value;let n;(tt(t)||rt(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case N.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case N.INLINE_FRAGMENT:{const n=o.typeCondition,a=n?cr(e.getSchema(),n):t;Qr(e,a,o.selectionSet,r,i);break}}}class Xr{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class ei{constructor(){this._orderedPairSet=new Xr}has(e,t,n){return ee.name.value)));for(const n of r.args)if(!i.has(n.name)&&Jt(n)){const i=ae(n.type);e.reportError(new m(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function oi(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:Tn;for(const e of i)n[e.name]=$e(e.args.filter(Jt),(e=>e.name));const o=e.getDocument().definitions;for(const e of o)if(e.kind===N.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=$e(t.filter(ai),(e=>e.name.value))}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map((e=>e.name.value)));for(const[n,o]of Object.entries(i))if(!a.has(n)){const i=He(o.type)?ae(o.type):Ve(o.type);e.reportError(new m(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ai(e){return e.type.kind===N.NON_NULL_TYPE&&null==e.defaultValue}function si(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(bt(Pt(n))){if(r){const i=t.name.value,o=ae(n);e.reportError(new m(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,i=ae(n);e.reportError(new m(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,i=ae(n);e.reportError(new m(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function ui(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}function ci(e,t,n){return{prev:e,key:t,typename:n}}function li(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function di(e,t,n=pi){return fi(e,t,n,void 0)}function pi(e,t,n){let r="Invalid value "+ae(t);throw e.length>0&&(r+=` at "value${ui(e)}"`),n.message=r+": "+n.message,n}function fi(e,t,n,r){if(ft(t))return null!=e?fi(e,t.ofType,n,r):void n(li(r),e,new m(`Expected non-nullable type "${ae(t)}" not to be null.`));if(null==e)return null;if(dt(t)){const i=t.ofType;return Nn(e)?Array.from(e,((e,t)=>{const o=ci(r,t,void 0);return fi(e,i,n,o)})):[fi(e,i,n,r)]}if(ct(t)){if(!s(e)||Array.isArray(e))return void n(li(r),e,new m(`Expected type "${t.name}" to be an object.`));const i=Object.create(null),o=t.getFields();for(const a of Object.values(o)){const o=e[a.name];if(void 0!==o)i[a.name]=fi(o,a.type,n,ci(r,a.name,t.name));else if(void 0!==a.defaultValue)i[a.name]=a.defaultValue;else if(ft(a.type)){const t=ae(a.type);n(li(r),e,new m(`Field "${a.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!o[i]){const o=ke(i,Object.keys(t.getFields()));n(li(r),e,new m(`Field "${i}" is not defined by type "${t.name}".`+_e(o)))}if(t.isOneOf){const o=Object.keys(i);1!==o.length&&n(li(r),e,new m(`Exactly one key must be specified for OneOf type "${t.name}".`));const a=o[0],s=i[a];null===s&&n(li(r).concat(a),s,new m(`Field "${a}" must be non-null.`))}return{...i}}if(bt(t)){let i;try{i=t.parseValue(e)}catch(i){return void n(li(r),e,i instanceof m?i:new m(`Expected type "${t.name}". `+i.message,{originalError:i}))}return void 0===i&&n(li(r),e,new m(`Expected type "${t.name}".`)),i}u(!1,"Unexpected input type: "+ae(t))}function mi(e,t,n){if(e){if(e.kind===N.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r]||!vi(n,r))return;const i=n[r];if(null===i&&ft(t))return;return i}if(ft(t)){if(e.kind===N.NULL)return;return mi(e,t.ofType,n)}if(e.kind===N.NULL)return null;if(dt(t)){const r=t.ofType;if(e.kind===N.LIST){const t=[];for(const i of e.values)if(hi(i,n)){if(ft(r))return;t.push(null)}else{const e=mi(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=mi(e,r,n);if(void 0===i)return;return[i]}if(ct(t)){if(e.kind!==N.OBJECT)return;const r=Object.create(null),i=$e(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||hi(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(ft(e.type))return;continue}const o=mi(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(bt(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}u(!1,"Unexpected input type: "+ae(t))}}function hi(e,t){return e.kind===N.VARIABLE&&(null==t||void 0===t[e.name.value]||!vi(t,e.name.value))}function vi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yi(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i=Object.create(null);for(const o of t){const t=o.variable.name.value,a=cr(e,o.type);if(!ht(a)){const e=Ve(o.type);r(new m(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!_i(n,t)){if(o.defaultValue)i[t]=mi(o.defaultValue,a);else if(ft(a)){const e=ae(a);r(new m(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}const s=n[t];if(null===s&&ft(a)){const e=ae(a);r(new m(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}))}else i[t]=di(s,a,((e,n,i)=>{let a=`Variable "$${t}" got invalid value `+ae(n);e.length>0&&(a+=` at "${t}${ui(e)}"`),r(new m(a+"; "+i.message,{nodes:o,originalError:i}))}))}return{...i}}(e,t,n,(e=>{if(null!=o&&i.length>=o)throw new m("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function gi(e,t,n){var r;const i=Object.create(null),o=$e(null!==(r=t.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const r of e.args){const e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(ft(a))throw new m(`Argument "${e}" of required type "${ae(a)}" was not provided.`,{nodes:t});continue}const u=s.value;let c=u.kind===N.NULL;if(u.kind===N.VARIABLE){const t=u.name.value;if(null==n||!_i(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(ft(a))throw new m(`Argument "${e}" of required type "${ae(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}c=null==n[t]}if(c&&ft(a))throw new m(`Argument "${e}" of non-null type "${ae(a)}" must not be null.`,{nodes:u});const l=mi(u,a,n);if(void 0===l)throw new m(`Argument "${e}" has invalid value ${Ve(u)}.`,{nodes:u});i[e]=l}return{...i}}function bi(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return gi(e,i,n)}function _i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ii(e,t,n,r,i){const o=new Map;return $i(e,t,n,r,i,o,new Set),o}function $i(e,t,n,r,i,o,a){for(const u of i.selections)switch(u.kind){case N.FIELD:{if(!Ei(n,u))continue;const e=(s=u).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(u):o.set(e,[u]);break}case N.INLINE_FRAGMENT:if(!Ei(n,u)||!Ti(e,u,r))continue;$i(e,t,n,r,u.selectionSet,o,a);break;case N.FRAGMENT_SPREAD:{const i=u.name.value;if(a.has(i)||!Ei(n,u))continue;a.add(i);const s=t[i];if(!s||!Ti(e,s,r))continue;$i(e,t,n,r,s.selectionSet,o,a);break}}var s}function Ei(e,t){const n=bi(bn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=bi(gn,t,e);return!1!==(null==r?void 0:r.if)}function Ti(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=cr(e,r);return i===n||!!Et(i)&&e.isSubType(i,n)}function wi(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===N.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const u=Ii(n,s,o,r,t.selectionSet);if(u.size>1){const t=[...u.values()].slice(1).flat();e.reportError(new m(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new m(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function Ni(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function Oi(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=Ni(n,(e=>e.name.value));for(const[n,i]of r)i.length>1&&e.reportError(new m(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}}function Si(e){return{Field:t,Directive:t};function t(t){var n;const r=Ni(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new m(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}}function ki(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new m(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new m(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function Di(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Tn;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===N.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),a=Object.create(null),s=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===N.SCHEMA_DEFINITION||n.kind===N.SCHEMA_EXTENSION)r=o;else if(_r(n)||$r(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else if(n.kind===N.DIRECTIVE_DEFINITION||n.kind===N.DIRECTIVE_EXTENSION){const e=n.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new m(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function Ai(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(const t of a){const r=t.name.value,i=n[o];st(i)&&i.getValue(r)?e.reportError(new m(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new m(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function xi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o];for(const t of a){const r=t.name.value;ji(n[o],r)?e.reportError(new m(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new m(`Field "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function ji(e,t){return!!(tt(e)||rt(e)||ct(e))&&null!=e.getFields()[t]}function Pi(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new m(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Ri(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||u(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new m(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function Ui(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new m(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function zi(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new m(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new m(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function Li(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new m(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new m(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function Ci(e){return{OperationDefinition(t){var n;const r=Ni(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(e=>e.variable.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new m(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}}function Fi(e){return{ListValue(t){if(!dt(At(e.getParentInputType())))return Vi(e,t),!1},ObjectValue(t){const n=Pt(e.getInputType());if(!ct(n))return Vi(e,t),!1;const r=$e(t.fields,(e=>e.name.value));for(const i of Object.values(n.getFields()))if(!r[i.name]&&en(i)){const r=ae(i.type);e.reportError(new m(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;const o=Object.keys(r);if(1!==o.length)return void e.reportError(new m(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(i=r[o[0]])||void 0===i?void 0:i.value;a&&a.kind!==N.NULL||e.reportError(new m(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=Pt(e.getParentInputType());if(!e.getInputType()&&ct(n)){const r=ke(t.name.value,Object.keys(n.getFields()));e.reportError(new m(`Field "${t.name.value}" is not defined by type "${n.name}".`+_e(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();ft(n)&&e.reportError(new m(`Expected value of type "${ae(n)}", found ${Ve(t)}.`,{nodes:t}))},EnumValue:t=>Vi(e,t),IntValue:t=>Vi(e,t),FloatValue:t=>Vi(e,t),StringValue:t=>Vi(e,t),BooleanValue:t=>Vi(e,t)}}function Vi(e,t){const n=e.getInputType();if(!n)return;const r=Pt(n);if(bt(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=ae(n);e.reportError(new m(`Expected value of type "${r}", found ${Ve(t)}.`,{nodes:t}))}}catch(r){const i=ae(n);r instanceof m?e.reportError(r):e.reportError(new m(`Expected value of type "${i}", found ${Ve(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=ae(n);e.reportError(new m(`Expected value of type "${r}", found ${Ve(t)}.`,{nodes:t}))}}function Mi(e){return{VariableDefinition(t){const n=cr(e.getSchema(),t.type);if(void 0!==n&&!ht(n)){const n=t.variable.name.value,r=Ve(t.type);e.reportError(new m(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function Zi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o,parentType:a}of r){const r=n.name.value,s=t[r];if(s&&i){const t=e.getSchema(),u=cr(t,s.type);if(u&&!Gi(t,u,s.defaultValue,i,o)){const t=ae(u),o=ae(i);e.reportError(new m(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[s,n]}))}ct(a)&&a.isOneOf&&kt(u)&&e.reportError(new m(`Variable "$${r}" is of type "${u}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[s,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Gi(e,t,n,r,i){return ft(r)&&!ft(t)?(null!=n&&n.kind!==N.NULL||void 0!==i)&&nn(e,t,r.ofType):nn(e,t,r)}const Ji=Object.freeze([Ur]),Bi=Object.freeze([Tr,Ui,jr,wi,Ar,Nr,Mi,si,wr,Pi,Dr,Cr,ti,zr,Ci,Lr,Fr,kr,Di,Or,Si,Fi,ii,Zi,Zr,Ri,...Ji]),Ki=Object.freeze([Pr,zi,Li,Ai,xi,Oi,ki,Ar,kr,Di,ni,Sr,Si,Ri,oi]);class Wi{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===N.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===N.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class qi extends Wi{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Yi extends Wi{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new lr(this._schema);ze(e,pr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}const Hi=Te(I,(e=>e.filter((e=>"description"!==e))));function Qi(e,t,n=Bi,r,i=new lr(e)){var a;const s=null!==(a=null==r?void 0:r.maxErrors)&&void 0!==a?a:100;t||o(!1,"Must provide document."),Wn(e);const u=Object.freeze({}),c=[],l=new Yi(e,t,i,(e=>{if(c.length>=s)throw c.push(new m("Too many validation errors, error limit reached. Validation aborted.")),u;c.push(e)})),d=Le(n.map((e=>e(l))));try{ze(t,pr(i,d),Hi)}catch(e){if(e!==u)throw e}return c}function Xi(e,t,n=Ki){const r=[],i=new qi(e,t,(e=>{r.push(e)}));return ze(e,Le(n.map((e=>e(i))))),r}function eo(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}class to extends Error{constructor(e){super("Unexpected error value: "+ae(e)),this.name="NonErrorThrown",this.thrownValue=e}}function no(e,t,n){var r;const i=(o=e)instanceof Error?o:new to(o);var o,a;return a=i,Array.isArray(a.path)?i:new m(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}const ro=function(){let e;return function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let a=o.get(r);return void 0===a&&(u=n,c=r,a=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&$i(e,t,n,r,s.selectionSet,o,a);return o}((s=t).schema,s.fragments,s.variableValues,u,c),o.set(r,a)),a;var s,u,c}}();class io{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(e,t){this._hasNulledPosition(t)||(this._errorPositions.add(t),this._errors.push(e))}_hasNulledPosition(e){let t=e;for(;void 0!==t;){if(this._errorPositions.has(t))return!0;t=t.prev}return this._errorPositions.has(void 0)}}function oo(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;uo(t,n,r);const s=co(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new m(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=Ii(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case T.QUERY:return lo(e,r,n,o,i);case T.MUTATION:return function(e,t,n,r,i){return function(e,t){let n=Object.create(null);for(const r of e)n=a(n)?n.then((e=>t(e,r))):t(n,r);return n}(i.entries(),((i,[o,s])=>{const u=ci(r,o,t.name),c=po(e,t,n,s,u);return void 0===c?i:a(c)?c.then((e=>(i[o]=e,i))):(i[o]=c,i)}))}(e,r,n,o,i);case T.SUBSCRIPTION:return lo(e,r,n,o,i)}}(s,e,i);return a(t)?t.then((e=>so(e,s.collectedErrors.errors)),(e=>(s.collectedErrors.add(e,void 0),so(null,s.collectedErrors.errors)))):so(t,s.collectedErrors.errors)}catch(e){return s.collectedErrors.add(e,void 0),so(null,s.collectedErrors.errors)}}function ao(e){const t=oo(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function so(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function uo(e,t,n){t||o(!1,"Must provide document."),Wn(e),null==n||s(n)||o(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function co(e){var t,n,r;const{schema:i,document:o,rootValue:a,contextValue:s,variableValues:u,operationName:c,fieldResolver:l,typeResolver:d,subscribeFieldResolver:p,options:f}=e;let h;const v=Object.create(null);for(const e of o.definitions)switch(e.kind){case N.OPERATION_DEFINITION:if(null==c){if(void 0!==h)return[new m("Must provide operation name if query contains multiple operations.")];h=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(h=e);break;case N.FRAGMENT_DEFINITION:v[e.name.value]=e}if(!h)return null!=c?[new m(`Unknown operation named "${c}".`)]:[new m("Must provide an operation.")];const y=yi(i,null!==(n=h.variableDefinitions)&&void 0!==n?n:[],null!=u?u:{},{maxErrors:null!==(r=null==f?void 0:f.maxCoercionErrors)&&void 0!==r?r:50});return y.errors?y.errors:{schema:i,fragments:v,rootValue:a,contextValue:s,operation:h,variableValues:y.coerced,fieldResolver:null!=l?l:_o,typeResolver:null!=d?d:bo,subscribeFieldResolver:null!=p?p:_o,collectedErrors:new io}}function lo(e,t,n,r,i){const o=Object.create(null);let s=!1;try{for(const[u,c]of i.entries()){const i=po(e,t,n,c,ci(r,u,t.name));void 0!==i&&(o[u]=i,a(i)&&(s=!0))}}catch(e){if(s)return eo(o).finally((()=>{throw e}));throw e}return s?eo(o):o}function po(e,t,n,r,i){var o;const s=Io(e.schema,t,r[0]);if(!s)return;const u=s.type,c=null!==(o=s.resolve)&&void 0!==o?o:e.fieldResolver,l=fo(e,s,r,t,i);try{const t=c(n,gi(s,r[0],e.variableValues),e.contextValue,l);let o;return o=a(t)?t.then((t=>ho(e,u,r,l,i,t))):ho(e,u,r,l,i,t),a(o)?o.then(void 0,(t=>mo(no(t,r,li(i)),u,i,e))):o}catch(t){return mo(no(t,r,li(i)),u,i,e)}}function fo(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function mo(e,t,n,r){if(ft(t))throw e;return r.collectedErrors.add(e,n),null}function ho(e,t,n,r,i,o){if(o instanceof Error)throw o;if(ft(t)){const a=ho(e,t.ofType,n,r,i,o);if(null===a)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:dt(t)?function(e,t,n,r,i,o){if(!Nn(o))throw new m(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let u=!1;const c=Array.from(o,((t,o)=>{const c=ci(i,o,void 0);try{let i;return i=a(t)?t.then((t=>ho(e,s,n,r,c,t))):ho(e,s,n,r,c,t),a(i)?(u=!0,i.then(void 0,(t=>mo(no(t,n,li(c)),s,c,e)))):i}catch(t){return mo(no(t,n,li(c)),s,c,e)}}));return u?Promise.all(c):c}(e,t,n,r,i,o):bt(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${ae(e)}.serialize(${ae(t)})\` to return non-nullable value, returned: ${ae(n)}`);return n}(t,o):Et(t)?function(e,t,n,r,i,o){var s;const u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(o,c,r,t);return a(l)?l.then((a=>yo(e,vo(a,e,t,n,r,o),n,r,i,o))):yo(e,vo(l,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):tt(t)?yo(e,t,n,r,i,o):void u(!1,"Cannot complete value of unexpected output type: "+ae(t))}function vo(e,t,n,r,i,o){if(null==e)throw new m(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(tt(e))throw new m("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new m(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ae(o)}, received "${ae(e)}".`);const a=t.schema.getType(e);if(null==a)throw new m(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!tt(a))throw new m(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new m(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function yo(e,t,n,r,i,o){const s=ro(e,t,n);if(t.isTypeOf){const u=t.isTypeOf(o,e.contextValue,r);if(a(u))return u.then((r=>{if(!r)throw go(t,o,n);return lo(e,t,o,i,s)}));if(!u)throw go(t,o,n)}return lo(e,t,o,i,s)}function go(e,t,n){return new m(`Expected value of type "${e.name}" but got: ${ae(t)}.`,{nodes:n})}const bo=function(e,t,n,r){if(s(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{})),s.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;tt(To(e))))}function Eo(e){const t=To(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function To(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c}=e,l=Kn(t);if(l.length>0)return{errors:l};let d;try{d=de(n)}catch(e){return{errors:[e]}}const p=Qi(t,d);return p.length>0?{errors:p}:oo({schema:t,document:d,rootValue:r,contextValue:i,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c})}function wo(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function No(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await Oo(e);return wo(t)?function(t){const n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{return{value:await(r=t.value,oo({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}var r}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t):t}async function Oo(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;uo(n,r,i);const o=co(t);if(!("schema"in o))return{errors:o};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new m("Schema is not configured to execute subscription operation.",{nodes:r});const s=Ii(t,n,i,a,r.selectionSet),[u,c]=[...s.entries()][0],l=Io(t,a,c[0]);if(!l){const e=c[0].name.value;throw new m(`The subscription field "${e}" is not defined.`,{nodes:c})}const d=ci(void 0,u,a.name),p=fo(e,l,c,a,d);try{var f;const t=gi(l,c[0],i),n=e.contextValue,r=null!==(f=l.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw no(e,c,li(d))}}(o);if(!wo(e))throw new Error(`Subscription field must return Async Iterable. Received: ${ae(e)}.`);return e}catch(e){if(e instanceof m)return{errors:[e]};throw e}}function So(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||u(!1),e.reportError(new m(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new m(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||u(!1),e.reportError(new m(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=Pt(e.getParentInputType());if(ct(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new m(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=Pt(e.getInputType());null!=i||u(!1),e.reportError(new m(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function ko(e){return{Field(t){const n=Pt(e.getType());n&&Mn(n)&&e.reportError(new m(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function Do(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,experimentalDirectiveDeprecation:!1,oneOf:!1,typeDepth:9,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}function s(e){return t.experimentalDirectiveDeprecation?e:""}const u=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives${s("(includeDeprecated: true)")} {\n name\n ${n}\n ${i}\n ${s("isDeprecated")}\n ${s("deprecationReason")}\n locations\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${u}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${a("isDeprecated")}\n ${a("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name${function e(t,n){if(t<=0)return"";if(t>100)throw new Error("Please set typeDepth to a reasonable value between 0 and 100; the default is 9.");return`\n${n}ofType {\n${n} name\n${n} kind${e(t-1,n+" ")}\n${n}}`}(t.typeDepth," ")}\n }\n `}function Ao(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===N.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function xo(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new m("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new m("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new m("Schema is not configured for subscriptions.",{nodes:t});return n}throw new m("Can only have query, mutation and subscription operations.",{nodes:t})}function jo(e,t){const n=ao({schema:e,document:de(Do({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,experimentalDirectiveDeprecation:!0,oneOf:!0,...t}))});return!n.errors&&n.data||u(!1),n.data}function Po(e,t){s(e)&&s(e.__schema)||o(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ae(e)}.`);const n=e.__schema,r=Ee(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Un.SCALAR:return new zt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case Un.OBJECT:return new Lt({name:(n=e).name,description:n.description,interfaces:()=>m(n),fields:()=>h(n)});case Un.INTERFACE:return new Bt({name:(t=e).name,description:t.description,interfaces:()=>m(t),fields:()=>h(t)});case Un.UNION:return function(e){if(!e.possibleTypes){const t=ae(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Kt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(p)})}(e);case Un.ENUM:return function(e){if(!e.enumValues){const t=ae(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new qt({name:e.name,description:e.description,values:Ee(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case Un.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=ae(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Qt({name:e.name,description:e.description,fields:()=>y(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const i=ae(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e)));for(const e of[...pn,...Vn])r[e.name]&&(r[e.name]=e);const i=n.queryType?p(n.queryType):null,a=n.mutationType?p(n.mutationType):null,u=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map((function(e){if(!e.args){const t=ae(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=ae(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new yn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,deprecationReason:e.deprecationReason,locations:e.locations.slice(),args:y(e.args)})})):[];return new Jn({description:n.description,query:i,mutation:a,subscription:u,types:Object.values(r),directives:c,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===Un.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new wt(l(t))}if(e.kind===Un.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=l(t);return new Nt(Dt(n))}return d(e)}function d(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${ae(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function p(e){return nt(d(e))}function f(e){return it(d(e))}function m(e){if(null===e.interfaces&&e.kind===Un.INTERFACE)return[];if(!e.interfaces){const t=ae(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function h(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${ae(e)}.`);return Ee(e.fields,(e=>e.name),v)}function v(e){const t=l(e.type);if(!yt(t)){const e=ae(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=ae(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:y(e.args)}}function y(e){return Ee(e,(e=>e.name),g)}function g(e){const t=l(e.type);if(!ht(t)){const e=ae(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?mi(pe(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function Ro(e,t,n){Gn(e),null!=t&&t.kind===N.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Xi(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}(t,e);const r=e.toConfig(),i=Uo(r,t,n);return r===i?e:new Jn(i)}function Uo(e,t,n){var r,i,o,a;const s=[],c=Object.create(null),l=Object.create(null),d=[];let p;const f=[];for(const e of t.definitions)if(e.kind===N.SCHEMA_DEFINITION)p=e;else if(e.kind===N.SCHEMA_EXTENSION)f.push(e);else if(_r(e))s.push(e);else if($r(e)){const t=e.name.value,n=c[t];c[t]=n?n.concat([e]):[e]}else if(e.kind===N.DIRECTIVE_DEFINITION)d.push(e);else if(e.kind===N.DIRECTIVE_EXTENSION){const t=e.name.value,n=l[t];l[t]=n?n.concat([e]):[e]}if(0===Object.keys(c).length&&0===s.length&&0===Object.keys(l).length&&0===d.length&&0===f.length&&null==p)return e;const m=Object.create(null);for(const t of e.types)m[t.name]=Mn(h=t)||fn(h)?h:Xe(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=Co(e))&&void 0!==o?o:i}return new zt({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):tt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Lt({...n,interfaces:()=>[...e.getInterfaces().map(I),...j(r)],fields:()=>({...Te(n.fields,$),...k(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):rt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Bt({...n,interfaces:()=>[...e.getInterfaces().map(I),...j(r)],fields:()=>({...Te(n.fields,$),...k(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):ot(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Kt({...n,types:()=>[...e.getTypes().map(I),...P(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):st(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new qt({...n,values:{...n.values,...x(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):ct(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Qt({...n,fields:()=>({...Te(n.fields,(e=>({...e,type:_(e.type)}))),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):void u(!1,"Unexpected type: "+ae(h));var h;for(const e of s){var v;const t=e.name.value;m[t]=null!==(v=zo[t])&&void 0!==v?v:R(e)}const y=Object.create(null);for(const t of e.directives)y[t.name]=w(t);const g={query:e.query&&I(e.query),mutation:e.mutation&&I(e.mutation),subscription:e.subscription&&I(e.subscription),...p&&T([p]),...T(f)},b=Object.values(y);return{description:null===(r=p)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...g,types:Object.values(m),directives:[...b.map((function(e){const t=e.toConfig();return new yn({...t,args:Te(t.args,E)})})),...d.map((function(e){var t,n,r;const i=null!==(t=l[e.name.value])&&void 0!==t?t:[],o=null!==(n=Lo(e))&&void 0!==n?n:i.map((e=>Lo(e))).find((e=>null!=e));return new yn({name:e.name.value,description:null===(r=e.description)||void 0===r?void 0:r.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:D(e.arguments),deprecationReason:o,astNode:e,extensionASTNodes:i})}))],extensions:Object.create(null),astNode:null!==(o=p)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function _(e){return dt(e)?new wt(_(e.ofType)):ft(e)?new Nt(_(e.ofType)):I(e)}function I(e){return m[e.name]}function $(e){return{...e,type:_(e.type),args:e.args&&Te(e.args,E)}}function E(e){return{...e,type:_(e.type)}}function T(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=O(n.type)}return t}function w(e){var t,n;const r=e.toConfig(),i=null!==(t=l[r.name])&&void 0!==t?t:[],o=null!==(n=r.deprecationReason)&&void 0!==n?n:i.map((e=>Lo(e))).find((e=>null!=e));return new yn({...r,deprecationReason:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}function O(e){var t;const n=e.name.value,r=null!==(t=zo[n])&&void 0!==t?t:m[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function S(e){return e.kind===N.LIST_TYPE?new wt(S(e.type)):e.kind===N.NON_NULL_TYPE?new Nt(S(e.type)):O(e)}function k(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:S(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:D(n.arguments),deprecationReason:Lo(n),astNode:n}}}return t}function D(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=S(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:mi(e.defaultValue,t),deprecationReason:Lo(e),astNode:e}}return n}function A(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=S(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:mi(n.defaultValue,e),deprecationReason:Lo(n),astNode:n}}}return t}function x(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:Lo(n),astNode:n}}}return t}function j(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(O))&&void 0!==t?t:[]}))}function P(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(O))&&void 0!==t?t:[]}))}function R(e){var t;const n=e.name.value,r=null!==(t=c[n])&&void 0!==t?t:[];switch(e.kind){case N.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new Lt({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>j(t),fields:()=>k(t),astNode:e,extensionASTNodes:r})}case N.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Bt({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>j(t),fields:()=>k(t),astNode:e,extensionASTNodes:r})}case N.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new qt({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:x(t),astNode:e,extensionASTNodes:r})}case N.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new Kt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>P(t),astNode:e,extensionASTNodes:r})}case N.SCALAR_TYPE_DEFINITION:var u;return new zt({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:Co(e),astNode:e,extensionASTNodes:r});case N.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...r];return new Qt({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>A(t),astNode:e,extensionASTNodes:r,isOneOf:(d=e,Boolean(bi(En,d)))})}}var d}}const zo=$e([...pn,...Vn],(e=>e.name));function Lo(e){const t=bi(In,e);return null==t?void 0:t.reason}function Co(e){const t=bi($n,e);return null==t?void 0:t.url}function Fo(e,t){null!=e&&e.kind===N.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Xi(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}(e);const n=Uo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...Tn.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new Jn({...n,directives:r})}function Vo(e,t){return Fo(de(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables,experimentalDirectivesOnDirectiveDefinitions:null==t?void 0:t.experimentalDirectivesOnDirectiveDefinitions}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function Mo(e){const t=e.toConfig(),n=Ee(Go(t.types),(e=>e.name),(function(e){if(Xe(e)||Mn(e))return e;if(tt(e)){const t=e.toConfig();return new Lt({...t,interfaces:()=>c(t.interfaces),fields:()=>s(t.fields)})}if(rt(e)){const t=e.toConfig();return new Bt({...t,interfaces:()=>c(t.interfaces),fields:()=>s(t.fields)})}if(ot(e)){const t=e.toConfig();return new Kt({...t,types:()=>c(t.types)})}if(st(e)){const t=e.toConfig();return new qt({...t,values:Zo(t.values,(e=>e))})}if(ct(e)){const t=e.toConfig();return new Qt({...t,fields:()=>Zo(t.fields,(e=>({...e,type:r(e.type)})))})}u(!1,"Unexpected type: "+ae(e))}));return new Jn({...t,types:Object.values(n),directives:Go(t.directives).map((function(e){const t=e.toConfig();return new yn({...t,locations:Jo(t.locations,(e=>e)),args:a(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return dt(e)?new wt(r(e.ofType)):ft(e)?new Nt(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return Zo(e,(e=>({...e,type:r(e.type)})))}function s(e){return Zo(e,(e=>({...e,type:r(e.type),args:e.args&&a(e.args)})))}function c(e){return Go(e).map(i)}}function Zo(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(we))n[r]=t(e[r]);return n}function Go(e){return Jo(e,(e=>e.name))}function Jo(e,t){return e.slice().sort(((e,n)=>we(t(e),t(n))))}function Bo(e){return qo(e,(e=>!wn(e)),Wo)}function Ko(e){return qo(e,wn,Mn)}function Wo(e){return!fn(e)&&!Mn(e)}function qo(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Yo(e),...r.map((e=>function(e){return ia(e)+"directive @"+e.name+ta(e.args)+ra(e.deprecationReason)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>Ho(e)))].filter(Boolean).join("\n\n")}function Yo(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ia(e)+`schema {\n${t.join("\n")}\n}`}function Ho(e){return Xe(e)?function(e){return ia(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${Ve({kind:N.STRING,value:t.specifiedByURL})})`);var t}(e):tt(e)?function(e){return ia(e)+`type ${e.name}`+Qo(e)+Xo(e)}(e):rt(e)?function(e){return ia(e)+`interface ${e.name}`+Qo(e)+Xo(e)}(e):ot(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ia(e)+"union "+e.name+n}(e):st(e)?function(e){const t=e.getValues().map(((e,t)=>ia(e," ",!t)+" "+e.name+ra(e.deprecationReason)));return ia(e)+`enum ${e.name}`+ea(t)}(e):ct(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>ia(e," ",!t)+" "+na(e)));return ia(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+ea(t)}(e):void u(!1,"Unexpected type: "+ae(e))}function Qo(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function Xo(e){return ea(Object.values(e.getFields()).map(((e,t)=>ia(e," ",!t)+" "+e.name+ta(e.args," ")+": "+String(e.type)+ra(e.deprecationReason))))}function ea(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function ta(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(na).join(", ")+")":"(\n"+e.map(((e,n)=>ia(e," "+t,!n)+" "+t+na(e))).join("\n")+"\n"+t+")"}function na(e){const t=On(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${Ve(t)}`),n+ra(e.deprecationReason)}function ra(e){return null==e?"":e!==_n?` @deprecated(reason: ${Ve({kind:N.STRING,value:e})})`:" @deprecated"}function ia(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+Ve({kind:N.STRING,value:r,block:R(r)}).replace(/\n/g,"\n"+t)+"\n"}function oa(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:N.DOCUMENT,definitions:t}}function aa(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case N.OPERATION_DEFINITION:t.push(r);break;case N.FRAGMENT_DEFINITION:n[r.name.value]=ua(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of ua(i.selectionSet))sa(t,n,e);r[i.name?i.name.value:""]={kind:N.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===N.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function sa(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)sa(e,t,n)}}function ua(e){const t=[];return ze(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function ca(e){const t=le(e)?e:new ce(e),n=t.body,r=new z(t);let i="",o=!1;for(;r.advance().kind!==O.EOF;){const e=r.token,t=e.kind,a=!L(e.kind);o&&(a||e.kind===O.SPREAD)&&(i+=" ");const s=n.slice(e.start,e.end);t===O.BLOCK_STRING?i+=U(e.value,{minimize:!0}):i+=s,o=a}return i}function la(e){const t=da(e);if(t)throw t;return e}function da(e){if("string"==typeof e||o(!1,"Expected name to be a string."),e.startsWith("__"))return new m(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{qe(e)}catch(e){return e}}var pa,fa;function ma(e,t){return va(e,t).filter((e=>e.type in pa))}function ha(e,t){return va(e,t).filter((e=>e.type in fa))}function va(e,t){return[...ga(e,t),...ya(e,t)]}function ya(e,t){const n=[],r=ka(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:pa.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=ka(e.args,t.args);for(const t of r.added)Jt(t)&&n.push({type:pa.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:pa.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:pa.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:pa.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function ga(e,t){const n=[],r=ka(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:pa.TYPE_REMOVED,description:fn(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)st(e)&&st(t)?n.push(...Ia(e,t)):ot(e)&&ot(t)?n.push(..._a(e,t)):ct(e)&&ct(t)?n.push(...ba(e,t)):tt(e)&&tt(t)||rt(e)&&rt(t)?n.push(...Ea(e,t),...$a(e,t)):e.constructor!==t.constructor&&n.push({type:pa.TYPE_CHANGED_KIND,description:`${e.name} changed from ${Oa(e)} to ${Oa(t)}.`});return n}function ba(e,t){const n=[],r=ka(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)en(t)?n.push({type:pa.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:fa.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:pa.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)Na(t.type,i.type)||n.push({type:pa.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function _a(e,t){const n=[],r=ka(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:fa.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:pa.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function Ia(e,t){const n=[],r=ka(e.getValues(),t.getValues());for(const t of r.added)n.push({type:fa.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:pa.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function $a(e,t){const n=[],r=ka(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:fa.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:pa.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function Ea(e,t){const n=[],r=ka(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:pa.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...Ta(e,t,i)),wa(t.type,i.type)||n.push({type:pa.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function Ta(e,t,n){const r=[],i=ka(t.args,n.args);for(const n of i.removed)r.push({type:pa.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(Na(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:fa.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=Sa(n.defaultValue,n.type),a=Sa(o.defaultValue,o.type);i!==a&&r.push({type:fa.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:pa.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)Jt(n)?r.push({type:pa.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:fa.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function wa(e,t){return dt(e)?dt(t)&&wa(e.ofType,t.ofType)||ft(t)&&wa(e,t.ofType):ft(e)?ft(t)&&wa(e.ofType,t.ofType):xt(t)&&e.name===t.name||ft(t)&&wa(e,t.ofType)}function Na(e,t){return dt(e)?dt(t)&&Na(e.ofType,t.ofType):ft(e)?ft(t)&&Na(e.ofType,t.ofType)||!ft(t)&&Na(e.ofType,t):xt(t)&&e.name===t.name}function Oa(e){return Xe(e)?"a Scalar type":tt(e)?"an Object type":rt(e)?"an Interface type":ot(e)?"a Union type":st(e)?"an Enum type":ct(e)?"an Input type":void u(!1,"Unexpected type: "+ae(e))}function Sa(e,t){const n=On(e,t);return null!=n||u(!1),Ve(Vr(n))}function ka(e,t){const n=[],r=[],i=[],o=$e(e,(({name:e})=>e)),a=$e(t,(({name:e})=>e));for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function Da(e,t){return Aa(e,he(t))}function Aa(e,t){switch(t.kind){case N.TYPE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r}}(e,t);case N.MEMBER_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(!r)throw new Error(`Expected ${ae(n)} to be defined as a type in the schema.`);if(!(st(r)||ct(r)||tt(r)||rt(r)))throw new Error(`Expected ${ae(n)} to be an Enum, Input Object, Object or Interface type.`);if(st(r)){const e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(ct(r)){const e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}const i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case N.ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null==r)throw new Error(`Expected ${ae(n)} to be defined as a type in the schema.`);if(!tt(r)&&!rt(r))throw new Error(`Expected ${ae(n)} to be an object type or interface type.`);const i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw new Error(`Expected ${ae(i)} to exist as a field of type ${ae(n)} in the schema.`);const a=t.argumentName.value,s=o.args.find((e=>e.name===a));if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case N.DIRECTIVE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(r)return{kind:"Directive",directive:r}}(e,t);case N.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(!r)throw new Error(`Expected ${ae(n)} to be defined as a directive in the schema.`);const{argumentName:{value:i}}=t,o=r.args.find((e=>e.name===i));if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(pa||(pa={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(fa||(fa={}))},(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleResponse=async function(e,t){if(!t.errors)return{retryGQLRequest:!1};if(t.errors.graphQLErrors){const n=t.errors.graphQLErrors;if(n.find((e=>"THROTTLED"==e?.extensions?.code))){const e=t.extensions?.cost;if(e){const{maximumAvailable:t,currentlyAvailable:n,restoreRate:r}=e,o=(t-n)/r*1e3;await i(o)}else await i(500);return{retryGQLRequest:!0}}const o=n.map((t=>(0,r.highlightErrorInQuery)(e,t)));throw console.error("ApiClient request errors:",o.join("\n")),new Error(o.join("\n"))}const n=t.headers?.get("x-request-id");throw console.error(`ApiClient request error(${n}):`,t.errors.message),console.error(JSON.stringify(t,null,4)),new Error(t.errors.message)};const r=n(349);async function i(e){return new Promise((t=>setTimeout(t,e)))}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlightErrorInQuery=function(e,t){const n=e.split("\n");let r=[];if(t.locations&&t.locations.length>0){const{line:e,column:i}=t.locations[0];r.push("graphQLErrors:"),n.forEach(((n,o)=>{if(o+1===e){r.push(`${n.substring(0,i-1)}${n[i-1]}${n.substring(i)}`);const e=" ".repeat(i-1)+"^";r.push(`${e} Error: ${t.message}`)}else r.push(n)}))}else r.push("No specific error location provided."),t.message&&r.push("Error message:",t.message);return r.join("\n")}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=0,r=0,i=0,o=null;function a(){if(null===o){const e="undefined"!=typeof process&&process.env.ORLY_SHOPIFY_GRAPHQL_LOGGING;o=Boolean(e&&"false"!==e),o&&process?.on?.("exit",(()=>{console.log(`ORLY_SHOPIFY_GRAPHQL_LOGGING:\n inFlightCaptures: ${n},\n realRequests: ${r},\n retries: ${i}\n`)}))}return o}t.default={incrementInflightReturned:function(){a()&&(n+=1)},incrementDoRequest:function(){a()&&(r+=1)},incrementRetry:function(){a()&&(i+=1)}}},(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StorefrontClient=void 0;const r=n(251),i=n(164),o=n(148);t.StorefrontClient=class{__client_version__;client;inFlightCache={};constructor({accessToken:e,shopifyDomain:t,apiVersion:n=i.DEFAULT_API_VERSION,retries:o=3,privateClient:a}){this.__client_version__=n,this.client=a?(0,r.createStorefrontApiClient)({apiVersion:n,storeDomain:t,privateAccessToken:e,retries:o}):(0,r.createStorefrontApiClient)({apiVersion:n,storeDomain:t,publicAccessToken:e,retries:o})}async request(e,t,n){const r=(0,o.toQueryString)(e),i=(0,o.inflightRequestKey)(r,t);return(0,o.createInflightRequest)(this.inFlightCache,i,(()=>(0,o.executeGraphQLRequest)("storefront-client",((e,t,n)=>this.client.request(e,{...n,variables:t})),r,t,n)))}async paginatedRequest(e,t,n,r){return(0,o.executePaginatedRequest)({request:(e,t,n)=>this.request(e,t,n),query:e,variables:t,extractData:n,options:r})}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.d(t,{a:()=>$});var r=n(185),i=n(298),o=n(108),a=n(299),s=n(300);const u=async(e,t,n,r)=>{const u=await(0,s.a)(e,t,"verify");(0,a.a)(e,u);const c=(0,i.a)(e,u.algorithm);try{return await o.a.subtle.verify(c,u,n,r)}catch{return!1}};var c=n(107),l=n(186),d=n(302),p=n(188),f=n(303),m=n(304);const h=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some((e=>"string"!=typeof e))))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};var v=n(187),y=n(301);var g=n(305),b=n(306);const _=e=>e.toLowerCase().replace(/^application\//,""),I=(e,t,n={})=>{let r;try{r=JSON.parse(l.b.decode(t))}catch{}if(!(0,p.a)(r))throw new c.g("JWT Claims Set must be a top-level JSON object");const{typ:i}=n;if(i&&("string"!=typeof e.typ||_(e.typ)!==_(i)))throw new c.e('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:o=[],issuer:a,subject:s,audience:u,maxTokenAge:d}=n,f=[...o];void 0!==d&&f.push("iat"),void 0!==u&&f.push("aud"),void 0!==s&&f.push("sub"),void 0!==a&&f.push("iss");for(const e of new Set(f.reverse()))if(!(e in r))throw new c.e(`missing required "${e}" claim`,r,e,"missing");if(a&&!(Array.isArray(a)?a:[a]).includes(r.iss))throw new c.e('unexpected "iss" claim value',r,"iss","check_failed");if(s&&r.sub!==s)throw new c.e('unexpected "sub" claim value',r,"sub","check_failed");if(u&&(h="string"==typeof u?[u]:u,!("string"==typeof(m=r.aud)?h.includes(m):Array.isArray(m)&&h.some(Set.prototype.has.bind(new Set(m))))))throw new c.e('unexpected "aud" claim value',r,"aud","check_failed");var m,h;let v;switch(typeof n.clockTolerance){case"string":v=(0,b.a)(n.clockTolerance);break;case"number":v=n.clockTolerance;break;case"undefined":v=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:y}=n,I=(0,g.a)(y||new Date);if((void 0!==r.iat||d)&&"number"!=typeof r.iat)throw new c.e('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new c.e('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>I+v)throw new c.e('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new c.e('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=I-v)throw new c.f('"exp" claim timestamp check failed',r,"exp","check_failed")}if(d){const e=I-r.iat;if(e-v>("number"==typeof d?d:(0,b.a)(d)))throw new c.f('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-v)throw new c.e('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};async function $(e,t,n){const i=await async function(e,t,n){if(e instanceof Uint8Array&&(e=l.b.decode(e)),"string"!=typeof e)throw new c.c("Compact JWS must be a string or Uint8Array");const{0:i,1:o,2:a,length:s}=e.split(".");if(3!==s)throw new c.c("Invalid Compact JWS");const g=await async function(e,t,n){if(!(0,p.a)(e))throw new c.c("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new c.c('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new c.c("JWS Protected Header incorrect type");if(void 0===e.payload)throw new c.c("JWS Payload missing");if("string"!=typeof e.signature)throw new c.c("JWS Signature missing or incorrect type");if(void 0!==e.header&&!(0,p.a)(e.header))throw new c.c("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{const t=(0,r.a)(e.protected);i=JSON.parse(l.b.decode(t))}catch{throw new c.c("JWS Protected Header is invalid")}if(!(0,d.a)(i,e.header))throw new c.c("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const o={...i,...e.header};let a=!0;if((0,m.a)(c.c,new Map([["b64",!0]]),n?.crit,i,o).has("b64")&&(a=i.b64,"boolean"!=typeof a))throw new c.c('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=o;if("string"!=typeof s||!s)throw new c.c('JWS "alg" (Algorithm) Header Parameter missing or invalid');const g=n&&h("algorithms",n.algorithms);if(g&&!g.has(s))throw new c.a('"alg" (Algorithm) Header Parameter value not allowed');if(a){if("string"!=typeof e.payload)throw new c.c("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new c.c("JWS Payload must be a string or an Uint8Array instance");let b=!1;"function"==typeof t?(t=await t(i,e),b=!0,(0,f.a)(s,t,"verify"),(0,v.a)(t)&&(t=await async function(e,t){if(!(0,p.a)(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return(0,r.a)(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new c.b('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return(0,y.a)({...e,alg:t});default:throw new c.b('Unsupported "kty" (Key Type) Parameter value')}}(t,s))):(0,f.a)(s,t,"verify");const _=(0,l.a)(l.c.encode(e.protected??""),l.c.encode("."),"string"==typeof e.payload?l.c.encode(e.payload):e.payload);let I,$;try{I=(0,r.a)(e.signature)}catch{throw new c.c("Failed to base64url decode the signature")}if(!await u(s,t,I,_))throw new c.d;if(a)try{$=(0,r.a)(e.payload)}catch{throw new c.c("Failed to base64url decode the payload")}else $="string"==typeof e.payload?l.c.encode(e.payload):e.payload;const E={payload:$};return void 0!==e.protected&&(E.protectedHeader=i),void 0!==e.header&&(E.unprotectedHeader=e.header),b?{...E,key:t}:E}({payload:o,protected:i,signature:a},t,n),b={payload:g.payload,protectedHeader:g.protectedHeader};return"function"==typeof t?{...b,key:g.key}:b}(e,t,n);if(i.protectedHeader.crit?.includes("b64")&&!1===i.protectedHeader.b64)throw new c.g("JWTs MUST NOT use unencoded payload");const o={payload:I(i.protectedHeader,i.payload,n),protectedHeader:i.protectedHeader};return"function"==typeof t?{...o,key:i.key}:o}},(e,t,n)=>{"use strict";function r(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}n.d(t,{a:()=>i,b:()=>o});const i=(e,...t)=>r("Key must be ",e,...t);function o(e,t,...n){return r(`Key for the ${e} algorithm must be `,t,...n)}},(e,t,n)=>{"use strict";n.d(t,{a:()=>i,b:()=>o});var r=n(108);const i=e=>!!(0,r.b)(e)||"KeyObject"===e?.[Symbol.toStringTag],o=["CryptoKey"]},(e,t,n)=>{"use strict";n.d(t,{a:()=>_});var r=n(185),i=n(298),o=n(108),a=n(299),s=n(300);var u=n(302),c=n(107),l=n(186),d=n(303),p=n(304);class f{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new c.c("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(0,u.a)(this._protectedHeader,this._unprotectedHeader))throw new c.c("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let f=!0;if((0,p.a)(c.c,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(f=this._protectedHeader.b64,"boolean"!=typeof f))throw new c.c('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:m}=n;if("string"!=typeof m||!m)throw new c.c('JWS "alg" (Algorithm) Header Parameter missing or invalid');(0,d.a)(m,e,"sign");let h,v=this._payload;f&&(v=l.c.encode((0,r.b)(v))),h=this._protectedHeader?l.c.encode((0,r.b)(JSON.stringify(this._protectedHeader))):l.c.encode("");const y=(0,l.a)(h,l.c.encode("."),v),g=await(async(e,t,n)=>{const r=await(0,s.a)(e,t,"sign");(0,a.a)(e,r);const u=await o.a.subtle.sign((0,i.a)(e,r.algorithm),r,n);return new Uint8Array(u)})(m,e,y),b={signature:(0,r.b)(g),payload:""};return f&&(b.payload=l.b.decode(v)),this._unprotectedHeader&&(b.header=this._unprotectedHeader),this._protectedHeader&&(b.protected=l.b.decode(h)),b}}class m{constructor(e){this._flattened=new f(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}var h=n(305),v=n(188),y=n(306);function g(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class b{constructor(e={}){if(!(0,v.a)(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:g("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:g("setNotBefore",(0,h.a)(e))}:this._payload={...this._payload,nbf:(0,h.a)(new Date)+(0,y.a)(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:g("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:g("setExpirationTime",(0,h.a)(e))}:this._payload={...this._payload,exp:(0,h.a)(new Date)+(0,y.a)(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:(0,h.a)(new Date)}:e instanceof Date?this._payload={...this._payload,iat:g("setIssuedAt",(0,h.a)(e))}:this._payload="string"==typeof e?{...this._payload,iat:g("setIssuedAt",(0,h.a)(new Date)+(0,y.a)(e))}:{...this._payload,iat:g("setIssuedAt",e)},this}}class _ extends b{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new m(l.c.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new c.g("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}}])]);