@storm-software/config 1.133.5 → 1.133.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/chunk-4KDR3VEP.js +21 -0
- package/dist/chunk-PUNDTBTG.cjs +21 -0
- package/dist/define-config.d.cts +19 -20
- package/dist/define-config.d.ts +19 -20
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.d.cts +453 -453
- package/dist/schema.d.ts +453 -453
- package/dist/schema.js +1 -1
- package/dist/types.d.cts +0 -1
- package/dist/types.d.ts +0 -1
- package/package.json +2 -2
- package/src/schema.d.ts +447 -447
- package/dist/chunk-CK4XX6LL.js +0 -2
- package/dist/chunk-SL2HJDMH.cjs +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Config
|
|
4
4
|
|
|
5
|
+
## [1.133.5](https://github.com/storm-software/storm-ops/releases/tag/config%401.133.5) (2025-10-03)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace to TypeScript v5.9.3
|
|
10
|
+
([3db5c952c](https://github.com/storm-software/storm-ops/commit/3db5c952c))
|
|
11
|
+
|
|
5
12
|
## [1.133.4](https://github.com/storm-software/storm-ops/releases/tag/config%401.133.4) (2025-09-22)
|
|
6
13
|
|
|
7
14
|
### Miscellaneous
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {p as p$1,o}from'./chunk-TYDRIJER.js';import {a}from'./chunk-WOT6VMZA.js';function c(e,t,r){function n(u,d){var m;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:false}),(m=u._zod).traits??(m.traits=new Set),u._zod.traits.add(e),t(u,d);for(let _ in o.prototype)_ in u||Object.defineProperty(u,_,{value:o.prototype[_].bind(u)});u._zod.constr=o,u._zod.def=d;}let i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(u){var d;let m=r?.Parent?new a:this;n(m,u),(d=m._zod).deferred??(d.deferred=[]);for(let _ of m._zod.deferred)_();return m}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?true:u?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var R=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},H=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError";}},$e={};function N(e){return e&&Object.assign($e,e),$e}var l={};a(l,{BIGINT_FORMAT_RANGES:()=>Nt,Class:()=>qe,NUMBER_FORMAT_RANGES:()=>Ot,aborted:()=>K,allowsEval:()=>Ye,assert:()=>ca,assertEqual:()=>na,assertIs:()=>oa,assertNever:()=>aa,assertNotEqual:()=>ia,assignProp:()=>W,base64ToUint8Array:()=>Zt,base64urlToUint8Array:()=>za,cached:()=>ue,captureStackTrace:()=>ye,cleanEnum:()=>ka,cleanRegex:()=>le,clone:()=>E,cloneDef:()=>sa,createTransparentProxy:()=>ga,defineLazy:()=>y,esc:()=>be,escapeRegex:()=>F,extend:()=>$a,finalizeIssue:()=>L,floatSafeRemainder:()=>St,getElementAtPath:()=>la,getEnumValues:()=>_e,getLengthableOrigin:()=>de,getParsedType:()=>fa,getSizableOrigin:()=>Pt,hexToUint8Array:()=>Ia,isObject:()=>Q,isPlainObject:()=>G,issue:()=>te,joinValues:()=>p,jsonStringifyReplacer:()=>ee,merge:()=>ba,mergeDefs:()=>B,normalizeParams:()=>g,nullish:()=>se,numKeys:()=>pa,objectClone:()=>ua,omit:()=>ha,optionalKeys:()=>Qe,partial:()=>ya,pick:()=>va,prefixIssues:()=>J,primitiveTypes:()=>Ut,promiseAllObject:()=>da,propertyKeyTypes:()=>He,randomString:()=>ma,required:()=>xa,safeExtend:()=>_a,shallowClone:()=>jt,stringifyPrimitive:()=>f,uint8ArrayToBase64:()=>Dt,uint8ArrayToBase64url:()=>wa,uint8ArrayToHex:()=>Sa,unwrapMessage:()=>ce});function na(e){return e}function ia(e){return e}function oa(e){}function aa(e){throw new Error}function ca(e){}function _e(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function p(e,t="|"){return e.map(r=>f(r)).join(t)}function ee(e,t){return typeof t=="bigint"?t.toString():t}function ue(e){return {get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function se(e){return e==null}function le(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function St(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){let d=n.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]));}let a=r>i?r:i,o=Number.parseInt(e.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return o%u/10**a}var It=Symbol("evaluating");function y(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==It)return n===void 0&&(n=It,n=r()),n},set(i){Object.defineProperty(e,t,{value:i});},configurable:true});}function ua(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function W(e,t,r){Object.defineProperty(e,t,{value:r,writable:true,enumerable:true,configurable:true});}function B(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n);}return Object.defineProperties({},t)}function sa(e){return B(e._zod.def)}function la(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function da(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let i={};for(let a=0;a<t.length;a++)i[t[a]]=n[a];return i})}function ma(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function be(e){return JSON.stringify(e)}var ye="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Q(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ye=ue(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function G(e){if(Q(e)===false)return false;let t=e.constructor;if(t===void 0)return true;let r=t.prototype;return !(Q(r)===false||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===false)}function jt(e){return G(e)?{...e}:Array.isArray(e)?[...e]:e}function pa(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var fa=e=>{let t=typeof e;switch(t){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},He=new Set(["string","number","symbol"]),Ut=new Set(["string","number","bigint","boolean","symbol","undefined"]);function F(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e,t,r){let n=new e._zod.constr(t??e._zod.def);return (!t||r?.parent)&&(n._zod.parent=e),n}function g(e){let t=e;if(!t)return {};if(typeof t=="string")return {error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message;}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ga(e){let t;return new Proxy({},{get(r,n,i){return t??(t=e()),Reflect.get(t,n,i)},set(r,n,i,a){return t??(t=e()),Reflect.set(t,n,i,a)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,i){return t??(t=e()),Reflect.defineProperty(t,n,i)}})}function f(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Qe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Ot={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]},Nt={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function va(e,t){let r=e._zod.def,n=B(e._zod.def,{get shape(){let i={};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=r.shape[a]);}return W(this,"shape",i),i},checks:[]});return E(e,n)}function ha(e,t){let r=e._zod.def,n=B(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a];}return W(this,"shape",i),i},checks:[]});return E(e,n)}function $a(e,t){if(!G(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let i=B(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return W(this,"shape",a),a},checks:[]});return E(e,i)}function _a(e,t){if(!G(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return W(this,"shape",n),n},checks:e._zod.def.checks};return E(e,r)}function ba(e,t){let r=B(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return W(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return E(e,r)}function ya(e,t,r){let n=B(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let o in r){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=e?new e({type:"optional",innerType:i[o]}):i[o]);}else for(let o in i)a[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return W(this,"shape",a),a},checks:[]});return E(t,n)}function xa(e,t,r){let n=B(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}));}else for(let o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return W(this,"shape",a),a},checks:[]});return E(t,n)}function K(e,t=0){if(e.aborted===true)return true;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==true)return true;return false}function J(e,t){return t.map(r=>{var n;return (n=r).path??(n.path=[]),r.path.unshift(e),r})}function ce(e){return typeof e=="string"?e:e?.message}function L(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=ce(e.inst?._zod.def?.error?.(e))??ce(t?.error?.(e))??ce(r.customError?.(e))??ce(r.localeError?.(e))??"Invalid input";n.message=i;}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Pt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function de(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function te(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function ka(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Zt(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function Dt(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function za(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Zt(t+r)}function wa(e){return Dt(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Ia(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function Sa(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var qe=class{constructor(...t){}};var Tt=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,ee,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},xe=c("$ZodError",Tt),et=c("$ZodError",Tt,{Parent:Error});function tt(e,t=r=>r.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return {formErrors:n,fieldErrors:r}}function rt(e,t){let r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(let o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(u=>i({issues:u}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else {let u=n,d=0;for(;d<o.path.length;){let m=o.path[d];d===o.path.length-1?(u[m]=u[m]||{_errors:[]},u[m]._errors.push(r(o))):u[m]=u[m]||{_errors:[]},u=u[m],d++;}}};return i(e),n}var ke=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:false}):{async:false},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new R;if(o.issues.length){let u=new(i?.Err??e)(o.issues.map(d=>L(d,a,N())));throw ye(u,i?.callee),u}return o.value};var ze=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:true}):{async:true},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let u=new(i?.Err??e)(o.issues.map(d=>L(d,a,N())));throw ye(u,i?.callee),u}return o.value};var me=e=>(t,r,n)=>{let i=n?{...n,async:false}:{async:false},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new R;return a.issues.length?{success:false,error:new(e??xe)(a.issues.map(o=>L(o,i,N())))}:{success:true,data:a.value}},Et=me(et),pe=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:true}):{async:true},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:false,error:new e(a.issues.map(o=>L(o,i,N())))}:{success:true,data:a.value}},At=pe(et),Lt=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ke(e)(t,r,i)};var Ct=e=>(t,r,n)=>ke(e)(t,r,n);var Rt=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ze(e)(t,r,i)};var Vt=e=>async(t,r,n)=>ze(e)(t,r,n);var Ft=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return me(e)(t,r,i)};var Jt=e=>(t,r,n)=>me(e)(t,r,n);var Mt=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return pe(e)(t,r,i)};var Wt=e=>async(t,r,n)=>pe(e)(t,r,n);var Bt=/^[cC][^\s-]{8,}$/,Gt=/^[0-9a-z]+$/,Kt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xt=/^[0-9a-vA-V]{20}$/,qt=/^[A-Za-z0-9]{27}$/,Yt=/^[a-zA-Z0-9_-]{21}$/,Ht=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Qt=/^([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})$/,nt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var er=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Ua="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tr(){return new RegExp(Ua,"u")}var rr=/^(?:(?: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])$/,nr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ir=/^((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])$/,or=/^(([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])$/,ar=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,it=/^[A-Za-z0-9_-]*$/,cr=/^(?=.{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])?)*\.?$/;var ur=/^\+(?:[0-9]){6,14}[0-9]$/,sr="(?:(?:\\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])))",lr=new RegExp(`^${sr}$`);function dr(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function mr(e){return new RegExp(`^${dr(e)}$`)}function pr(e){let t=dr({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${sr}T(?:${n})$`)}var fr=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)};var gr=/^(?:true|false)$/i;var vr=/^[^A-Z]*$/,hr=/^[^a-z]*$/;var D=c("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[]);});var $r=c("$ZodCheckMaxLength",(e,t)=>{var r;D.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return !se(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum);}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=de(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:true,input:i,inst:e,continue:!t.abort});};}),_r=c("$ZodCheckMinLength",(e,t)=>{var r;D.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return !se(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum);}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let o=de(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:true,input:i,inst:e,continue:!t.abort});};}),br=c("$ZodCheckLengthEquals",(e,t)=>{var r;D.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return !se(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length;}),e._zod.check=n=>{let i=n.value,a=i.length;if(a===t.length)return;let o=de(i),u=a>t.length;n.issues.push({origin:o,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!t.abort});};}),ge=c("$ZodCheckStringFormat",(e,t)=>{var r,n;D.init(e,t),e._zod.onattach.push(i=>{let a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern));}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(n=e._zod).check??(n.check=()=>{});}),yr=c("$ZodCheckRegex",(e,t)=>{ge.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort});};}),xr=c("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vr),ge.init(e,t);}),kr=c("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hr),ge.init(e,t);}),zr=c("$ZodCheckIncludes",(e,t)=>{D.init(e,t);let r=F(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{let a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n);}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort});};}),wr=c("$ZodCheckStartsWith",(e,t)=>{D.init(e,t);let r=new RegExp(`^${F(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r);}),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});};}),Ir=c("$ZodCheckEndsWith",(e,t)=>{D.init(e,t);let r=new RegExp(`.*${F(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r);}),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});};});var Sr=c("$ZodCheckOverwrite",(e,t)=>{D.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value);};});var we=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t);}indented(t){this.indent+=1,t(this),this.indent-=1;}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
|
|
2
|
+
`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),a=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(let o of a)this.content.push(o);}compile(){let t=Function,r=this?.args,i=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...r,i.join(`
|
|
3
|
+
`))}};var Ur={major:4,minor:1,patch:9};var x=c("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ur;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let a of i._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let i=(o,u,d)=>{let m=K(o),_;for(let j of u){if(j._zod.def.when){if(!j._zod.def.when(o))continue}else if(m)continue;let S=o.issues.length,I=j._zod.check(o);if(I instanceof Promise&&d?.async===false)throw new R;if(_||I instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await I,o.issues.length!==S&&(m||(m=K(o,S)));});else {if(o.issues.length===S)continue;m||(m=K(o,S));}}return _?_.then(()=>o):o},a=(o,u,d)=>{if(K(o))return o.aborted=true,o;let m=i(u,n,d);if(m instanceof Promise){if(d.async===false)throw new R;return m.then(_=>e._zod.parse(_,d))}return e._zod.parse(m,d)};e._zod.run=(o,u)=>{if(u.skipChecks)return e._zod.parse(o,u);if(u.direction==="backward"){let m=e._zod.parse({value:o.value,issues:[]},{...u,skipChecks:true});return m instanceof Promise?m.then(_=>a(_,o,u)):a(m,o,u)}let d=e._zod.parse(o,u);if(d instanceof Promise){if(u.async===false)throw new R;return d.then(m=>i(m,n,u))}return i(d,n,u)};}e["~standard"]={validate:i=>{try{let a=Et(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return At(e,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1};}),ve=c("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??fr(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value);}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r};}),k=c("$ZodStringFormat",(e,t)=>{ge.init(e,t),ve.init(e,t);}),Lr=c("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Qt),k.init(e,t);}),Cr=c("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=nt(n));}else t.pattern??(t.pattern=nt());k.init(e,t);}),Rr=c("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=er),k.init(e,t);}),Vr=c("$ZodURL",(e,t)=>{k.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:cr.source,input:r.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)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});}};}),Fr=c("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=tr()),k.init(e,t);}),Jr=c("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Yt),k.init(e,t);}),Mr=c("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Bt),k.init(e,t);}),Wr=c("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Gt),k.init(e,t);}),Br=c("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Kt),k.init(e,t);}),Gr=c("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Xt),k.init(e,t);}),Kr=c("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=qt),k.init(e,t);}),Xr=c("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=pr(t)),k.init(e,t);}),qr=c("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=lr),k.init(e,t);}),Yr=c("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=mr(t)),k.init(e,t);}),Hr=c("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ht),k.init(e,t);}),Qr=c("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=rr),k.init(e,t),e._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv4";});}),en=c("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=nr),k.init(e,t),e._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv6";}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`);}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort});}};}),tn=c("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ir),k.init(e,t);}),rn=c("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=or),k.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[i,a]=n;if(!a)throw new Error;let o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`);}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort});}};});function nn(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var on=c("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ar),k.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64";}),e._zod.check=r=>{nn(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort});};});function Oa(e){if(!it.test(e))return false;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return nn(r)}var an=c("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=it),k.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url";}),e._zod.check=r=>{Oa(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort});};}),cn=c("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ur),k.init(e,t);});function Na(e,t=null){try{let r=e.split(".");if(r.length!==3)return !1;let[n]=r;if(!n)return !1;let i=JSON.parse(atob(n));return !("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return false}}var un=c("$ZodJWT",(e,t)=>{k.init(e,t),e._zod.check=r=>{Na(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort});};});var at=c("$ZodBoolean",(e,t)=>{x.init(e,t),e._zod.pattern=gr,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value;}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r};});var sn=c("$ZodAny",(e,t)=>{x.init(e,t),e._zod.parse=r=>r;}),ln=c("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=r=>r;}),dn=c("$ZodNever",(e,t)=>{x.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r);});function Or(e,t,r){e.issues.length&&t.issues.push(...J(r,e.issues)),t.value[r]=e.value;}var mn=c("$ZodArray",(e,t)=>{x.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let o=0;o<i.length;o++){let u=i[o],d=t.element._zod.run({value:u,issues:[]},n);d instanceof Promise?a.push(d.then(m=>Or(m,r,o))):Or(d,r,o);}return a.length?Promise.all(a).then(()=>r):r};});function Se(e,t,r,n){e.issues.length&&t.issues.push(...J(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value;}function pn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=Qe(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function fn(e,t,r,n,i,a){let o=[],u=i.keySet,d=i.catchall._zod,m=d.def.type;for(let _ of Object.keys(t)){if(u.has(_))continue;if(m==="never"){o.push(_);continue}let j=d.run({value:t[_],issues:[]},n);j instanceof Promise?e.push(j.then(S=>Se(S,r,_,t))):Se(j,r,_,t);}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}var Pa=c("$ZodObject",(e,t)=>{x.init(e,t);let r=ue(()=>pn(t));y(e._zod,"propValues",()=>{let o=t.shape,u={};for(let d in o){let m=o[d]._zod;if(m.values){u[d]??(u[d]=new Set);for(let _ of m.values)u[d].add(_);}}return u});let n=Q,i=t.catchall,a;e._zod.parse=(o,u)=>{a??(a=r.value);let d=o.value;if(!n(d))return o.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),o;o.value={};let m=[],_=a.shape;for(let j of a.keys){let I=_[j]._zod.run({value:d[j],issues:[]},u);I instanceof Promise?m.push(I.then(A=>Se(A,o,j,d))):Se(I,o,j,d);}return i?fn(m,d,o,u,r.value,e):m.length?Promise.all(m).then(()=>o):o};}),gn=c("$ZodObjectJIT",(e,t)=>{Pa.init(e,t);let r=e._zod.parse,n=ue(()=>pn(t)),i=S=>{let I=new we(["shape","payload","ctx"]),A=n.value,Ho=V=>{let C=be(V);return `shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};I.write("const input = payload.value;");let xt=Object.create(null),Qo=0;for(let V of A.keys)xt[V]=`key_${Qo++}`;I.write("const newResult = {};");for(let V of A.keys){let C=xt[V],ae=be(V);I.write(`const ${C} = ${Ho(V)};`),I.write(`
|
|
4
|
+
if (${C}.issues.length) {
|
|
5
|
+
payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
|
|
6
|
+
...iss,
|
|
7
|
+
path: iss.path ? [${ae}, ...iss.path] : [${ae}]
|
|
8
|
+
})));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
if (${C}.value === undefined) {
|
|
13
|
+
if (${ae} in input) {
|
|
14
|
+
newResult[${ae}] = undefined;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
newResult[${ae}] = ${C}.value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
`);}I.write("payload.value = newResult;"),I.write("return payload;");let ea=I.compile();return (V,C)=>ea(S,V,C)},a,o=Q,u=!$e.jitless,m=u&&Ye.value,_=t.catchall,j;e._zod.parse=(S,I)=>{j??(j=n.value);let A=S.value;return o(A)?u&&m&&I?.async===false&&I.jitless!==true?(a||(a=i(t.shape)),S=a(S,I),_?fn([],A,S,I,j,e):S):r(S,I):(S.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),S)};});function Nr(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let i=e.filter(a=>!K(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>L(o,n,N())))}),t)}var vn=c("$ZodUnion",(e,t)=>{x.init(e,t),y(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),y(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),y(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),y(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>le(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let o=false,u=[];for(let d of t.options){let m=d._zod.run({value:i.value,issues:[]},a);if(m instanceof Promise)u.push(m),o=true;else {if(m.issues.length===0)return m;u.push(m);}}return o?Promise.all(u).then(d=>Nr(d,i,e,a)):Nr(u,i,e,a)};});var hn=c("$ZodIntersection",(e,t)=>{x.init(e,t),e._zod.parse=(r,n)=>{let i=r.value,a=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([d,m])=>Pr(r,d,m)):Pr(r,a,o)};});function ot(e,t){if(e===t)return {valid:true,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(G(e)&&G(t)){let r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(let a of n){let o=ot(e[a],t[a]);if(!o.valid)return {valid:false,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data;}return {valid:true,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n],o=ot(i,a);if(!o.valid)return {valid:false,mergeErrorPath:[n,...o.mergeErrorPath]};r.push(o.data);}return {valid:true,data:r}}return {valid:false,mergeErrorPath:[]}}function Pr(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),K(e))return e;let n=ot(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var $n=c("$ZodRecord",(e,t)=>{x.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!G(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let o=t.keyType._zod.values;r.value={};for(let d of o)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){let m=t.valueType._zod.run({value:i[d],issues:[]},n);m instanceof Promise?a.push(m.then(_=>{_.issues.length&&r.issues.push(...J(d,_.issues)),r.value[d]=_.value;})):(m.issues.length&&r.issues.push(...J(d,m.issues)),r.value[d]=m.value);}let u;for(let d in i)o.has(d)||(u=u??[],u.push(d));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u});}else {r.value={};for(let o of Reflect.ownKeys(i)){if(o==="__proto__")continue;let u=t.keyType._zod.run({value:o,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(m=>L(m,n,N())),input:o,path:[o],inst:e}),r.value[u.value]=u.value;continue}let d=t.valueType._zod.run({value:i[o],issues:[]},n);d instanceof Promise?a.push(d.then(m=>{m.issues.length&&r.issues.push(...J(o,m.issues)),r.value[u.value]=m.value;})):(d.issues.length&&r.issues.push(...J(o,d.issues)),r.value[u.value]=d.value);}}return a.length?Promise.all(a).then(()=>r):r};});var _n=c("$ZodEnum",(e,t)=>{x.init(e,t);let r=_e(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>He.has(typeof i)).map(i=>typeof i=="string"?F(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i};}),bn=c("$ZodLiteral",(e,t)=>{if(x.init(e,t),t.values.length===0)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(r=>typeof r=="string"?F(r):r?F(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r};});var yn=c("$ZodTransform",(e,t)=>{x.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new H(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return (i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new R;return r.value=i,r};});function Zr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var xn=c("$ZodOptional",(e,t)=>{x.init(e,t),e._zod.optin="optional",e._zod.optout="optional",y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),y(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${le(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Zr(a,r.value)):Zr(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)};}),kn=c("$ZodNullable",(e,t)=>{x.init(e,t),y(e._zod,"optin",()=>t.innerType._zod.optin),y(e._zod,"optout",()=>t.innerType._zod.optout),y(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${le(r.source)}|null)$`):void 0}),y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n);}),zn=c("$ZodDefault",(e,t)=>{x.init(e,t),e._zod.optin="optional",y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Dr(a,t)):Dr(i,t)};});function Dr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var wn=c("$ZodPrefault",(e,t)=>{x.init(e,t),e._zod.optin="optional",y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n));}),In=c("$ZodNonOptional",(e,t)=>{x.init(e,t),y(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Tr(a,e)):Tr(i,e)};});function Tr(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Sn=c("$ZodCatch",(e,t)=>{x.init(e,t),y(e._zod,"optin",()=>t.innerType._zod.optin),y(e._zod,"optout",()=>t.innerType._zod.optout),y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>L(o,n,N()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>L(a,n,N()))},input:r.value}),r.issues=[]),r)};});var jn=c("$ZodPipe",(e,t)=>{x.init(e,t),y(e._zod,"values",()=>t.in._zod.values),y(e._zod,"optin",()=>t.in._zod.optin),y(e._zod,"optout",()=>t.out._zod.optout),y(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(o=>Ie(o,t.in,n)):Ie(a,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>Ie(a,t.out,n)):Ie(i,t.out,n)};});function Ie(e,t,r){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},r)}var Un=c("$ZodReadonly",(e,t)=>{x.init(e,t),y(e._zod,"propValues",()=>t.innerType._zod.propValues),y(e._zod,"values",()=>t.innerType._zod.values),y(e._zod,"optin",()=>t.innerType._zod.optin),y(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(Er):Er(i)};});function Er(e){return e.value=Object.freeze(e.value),e}var On=c("$ZodCustom",(e,t)=>{D.init(e,t),x.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>Ar(a,r,n,e));Ar(i,r,n,e);};});function Ar(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(te(i));}}var Da=e=>{let t=typeof e;switch(t){case "number":return Number.isNaN(e)?"NaN":"number";case "object":{if(Array.isArray(e))return "array";if(e===null)return "null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Ta=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case "invalid_type":return `Invalid input: expected ${n.expected}, received ${Da(n.input)}`;case "invalid_value":return n.values.length===1?`Invalid input: expected ${f(n.values[0])}`:`Invalid option: expected one of ${p(n.values,"|")}`;case "too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case "too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case "invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case "not_multiple_of":return `Invalid number: must be a multiple of ${n.divisor}`;case "unrecognized_keys":return `Unrecognized key${n.keys.length>1?"s":""}: ${p(n.keys,", ")}`;case "invalid_key":return `Invalid key in ${n.origin}`;case "invalid_union":return "Invalid input";case "invalid_element":return `Invalid value in ${n.origin}`;default:return "Invalid input"}}};function ct(){return {localeError:Ta()}}var je=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(t,...r){let n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"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,t);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Ue(){return new je}var X=Ue();function Pn(e,t){return new e({type:"string",...g(t)})}function Zn(e,t){return new e({type:"string",format:"email",check:"string_format",abort:false,...g(t)})}function ut(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:false,...g(t)})}function Dn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...g(t)})}function Tn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...g(t)})}function En(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...g(t)})}function An(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...g(t)})}function st(e,t){return new e({type:"string",format:"url",check:"string_format",abort:false,...g(t)})}function Ln(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...g(t)})}function Cn(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...g(t)})}function Rn(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...g(t)})}function Vn(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...g(t)})}function Fn(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...g(t)})}function Jn(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:false,...g(t)})}function Mn(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...g(t)})}function Wn(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...g(t)})}function Bn(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...g(t)})}function Gn(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...g(t)})}function Kn(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...g(t)})}function Xn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:false,...g(t)})}function qn(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...g(t)})}function Yn(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:false,...g(t)})}function Hn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...g(t)})}function Qn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...g(t)})}function ei(e,t){return new e({type:"string",format:"date",check:"string_format",...g(t)})}function ti(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...g(t)})}function ri(e,t){return new e({type:"string",format:"duration",check:"string_format",...g(t)})}function ni(e,t){return new e({type:"boolean",...g(t)})}function ii(e){return new e({type:"any"})}function oi(e){return new e({type:"unknown"})}function ai(e,t){return new e({type:"never",...g(t)})}function Oe(e,t){return new $r({check:"max_length",...g(t),maximum:e})}function re(e,t){return new _r({check:"min_length",...g(t),minimum:e})}function ne(e,t){return new br({check:"length_equals",...g(t),length:e})}function he(e,t){return new yr({check:"string_format",format:"regex",...g(t),pattern:e})}function lt(e){return new xr({check:"string_format",format:"lowercase",...g(e)})}function dt(e){return new kr({check:"string_format",format:"uppercase",...g(e)})}function mt(e,t){return new zr({check:"string_format",format:"includes",...g(t),includes:e})}function pt(e,t){return new wr({check:"string_format",format:"starts_with",...g(t),prefix:e})}function ft(e,t){return new Ir({check:"string_format",format:"ends_with",...g(t),suffix:e})}function q(e){return new Sr({check:"overwrite",tx:e})}function gt(e){return q(t=>t.normalize(e))}function v(){return q(e=>e.trim())}function U(){return q(e=>e.toLowerCase())}function vt(){return q(e=>e.toUpperCase())}function ci(e,t,r){return new e({type:"array",element:t,...g(r)})}function ui(e,t,r){return new e({type:"custom",check:"custom",fn:t,...g(r)})}function si(e){let t=Va(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(te(n,r.value,t._zod.def));else {let i=n;i.fatal&&(i.continue=false),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(te(i));}},e(r.value,r)));return t}function Va(e,t){let r=new D({check:"custom",...g(t)});return r._zod.check=e,r}var li=c("ZodISODateTime",(e,t)=>{Xr.init(e,t),z.init(e,t);});function di(e){return Qn(li,e)}var mi=c("ZodISODate",(e,t)=>{qr.init(e,t),z.init(e,t);});function pi(e){return ei(mi,e)}var fi=c("ZodISOTime",(e,t)=>{Yr.init(e,t),z.init(e,t);});function gi(e){return ti(fi,e)}var vi=c("ZodISODuration",(e,t)=>{Hr.init(e,t),z.init(e,t);});function hi(e){return ri(vi,e)}var bi=(e,t)=>{xe.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>rt(e,r)},flatten:{value:r=>tt(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ee,2);}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ee,2);}},isEmpty:{get(){return e.issues.length===0}}});};c("ZodError",bi);var T=c("ZodError",bi,{Parent:Error});var yi=ke(T),xi=ze(T),ki=me(T),zi=pe(T),wi=Lt(T),Ii=Ct(T),Si=Rt(T),ji=Vt(T),Ui=Ft(T),Oi=Jt(T),Ni=Mt(T),Pi=Wt(T);var w=c("ZodType",(e,t)=>(x.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(r,n)=>E(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>yi(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>ki(e,r,n),e.parseAsync=async(r,n)=>xi(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>zi(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>wi(e,r,n),e.decode=(r,n)=>Ii(e,r,n),e.encodeAsync=async(r,n)=>Si(e,r,n),e.decodeAsync=async(r,n)=>ji(e,r,n),e.safeEncode=(r,n)=>Ui(e,r,n),e.safeDecode=(r,n)=>Oi(e,r,n),e.safeEncodeAsync=async(r,n)=>Ni(e,r,n),e.safeDecodeAsync=async(r,n)=>Pi(e,r,n),e.refine=(r,n)=>e.check(Cc(r,n)),e.superRefine=r=>e.check(Rc(r)),e.overwrite=r=>e.check(q(r)),e.optional=()=>$(e),e.nullable=()=>Pe(e),e.nullish=()=>$(Pe(e)),e.nonoptional=r=>Pc(e,r),e.array=()=>Ze(e),e.or=r=>M([e,r]),e.and=r=>kc(e,r),e.transform=r=>Ti(e,Sc(r)),e.default=r=>b(e,r),e.prefault=r=>Nc(e,r),e.catch=r=>Dc(e,r),e.pipe=r=>Ti(e,r),e.readonly=()=>Ac(e),e.describe=r=>{let n=e.clone();return X.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return X.get(e)?.description},configurable:true}),e.meta=(...r)=>{if(r.length===0)return X.get(e);let n=e.clone();return X.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ei=c("_ZodString",(e,t)=>{ve.init(e,t),w.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(he(...n)),e.includes=(...n)=>e.check(mt(...n)),e.startsWith=(...n)=>e.check(pt(...n)),e.endsWith=(...n)=>e.check(ft(...n)),e.min=(...n)=>e.check(re(...n)),e.max=(...n)=>e.check(Oe(...n)),e.length=(...n)=>e.check(ne(...n)),e.nonempty=(...n)=>e.check(re(1,...n)),e.lowercase=n=>e.check(lt(n)),e.uppercase=n=>e.check(dt(n)),e.trim=()=>e.check(v()),e.normalize=(...n)=>e.check(gt(...n)),e.toLowerCase=()=>e.check(U()),e.toUpperCase=()=>e.check(vt());}),Ai=c("ZodString",(e,t)=>{ve.init(e,t),Ei.init(e,t),e.email=r=>e.check(Zn(Qa,r)),e.url=r=>e.check(st(Li,r)),e.jwt=r=>e.check(Hn(fc,r)),e.emoji=r=>e.check(Ln(ec,r)),e.guid=r=>e.check(ut(Zi,r)),e.uuid=r=>e.check(Dn(Ne,r)),e.uuidv4=r=>e.check(Tn(Ne,r)),e.uuidv6=r=>e.check(En(Ne,r)),e.uuidv7=r=>e.check(An(Ne,r)),e.nanoid=r=>e.check(Cn(tc,r)),e.guid=r=>e.check(ut(Zi,r)),e.cuid=r=>e.check(Rn(rc,r)),e.cuid2=r=>e.check(Vn(nc,r)),e.ulid=r=>e.check(Fn(ic,r)),e.base64=r=>e.check(Xn(dc,r)),e.base64url=r=>e.check(qn(mc,r)),e.xid=r=>e.check(Jn(oc,r)),e.ksuid=r=>e.check(Mn(ac,r)),e.ipv4=r=>e.check(Wn(cc,r)),e.ipv6=r=>e.check(Bn(uc,r)),e.cidrv4=r=>e.check(Gn(sc,r)),e.cidrv6=r=>e.check(Kn(lc,r)),e.e164=r=>e.check(Yn(pc,r)),e.datetime=r=>e.check(di(r)),e.date=r=>e.check(pi(r)),e.time=r=>e.check(gi(r)),e.duration=r=>e.check(hi(r));});function h(e){return Pn(Ai,e)}var z=c("ZodStringFormat",(e,t)=>{k.init(e,t),Ei.init(e,t);}),Qa=c("ZodEmail",(e,t)=>{Rr.init(e,t),z.init(e,t);});var Zi=c("ZodGUID",(e,t)=>{Lr.init(e,t),z.init(e,t);});var Ne=c("ZodUUID",(e,t)=>{Cr.init(e,t),z.init(e,t);});var Li=c("ZodURL",(e,t)=>{Vr.init(e,t),z.init(e,t);});function P(e){return st(Li,e)}var ec=c("ZodEmoji",(e,t)=>{Fr.init(e,t),z.init(e,t);});var tc=c("ZodNanoID",(e,t)=>{Jr.init(e,t),z.init(e,t);});var rc=c("ZodCUID",(e,t)=>{Mr.init(e,t),z.init(e,t);});var nc=c("ZodCUID2",(e,t)=>{Wr.init(e,t),z.init(e,t);});var ic=c("ZodULID",(e,t)=>{Br.init(e,t),z.init(e,t);});var oc=c("ZodXID",(e,t)=>{Gr.init(e,t),z.init(e,t);});var ac=c("ZodKSUID",(e,t)=>{Kr.init(e,t),z.init(e,t);});var cc=c("ZodIPv4",(e,t)=>{Qr.init(e,t),z.init(e,t);});var uc=c("ZodIPv6",(e,t)=>{en.init(e,t),z.init(e,t);});var sc=c("ZodCIDRv4",(e,t)=>{tn.init(e,t),z.init(e,t);});var lc=c("ZodCIDRv6",(e,t)=>{rn.init(e,t),z.init(e,t);});var dc=c("ZodBase64",(e,t)=>{on.init(e,t),z.init(e,t);});var mc=c("ZodBase64URL",(e,t)=>{an.init(e,t),z.init(e,t);});var pc=c("ZodE164",(e,t)=>{cn.init(e,t),z.init(e,t);});var fc=c("ZodJWT",(e,t)=>{un.init(e,t),z.init(e,t);});var Ci=c("ZodBoolean",(e,t)=>{at.init(e,t),w.init(e,t);});function $t(e){return ni(Ci,e)}var gc=c("ZodAny",(e,t)=>{sn.init(e,t),w.init(e,t);});function Ri(){return ii(gc)}var vc=c("ZodUnknown",(e,t)=>{ln.init(e,t),w.init(e,t);});function Di(){return oi(vc)}var hc=c("ZodNever",(e,t)=>{dn.init(e,t),w.init(e,t);});function $c(e){return ai(hc,e)}var _c=c("ZodArray",(e,t)=>{mn.init(e,t),w.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(re(r,n)),e.nonempty=r=>e.check(re(1,r)),e.max=(r,n)=>e.check(Oe(r,n)),e.length=(r,n)=>e.check(ne(r,n)),e.unwrap=()=>e.element;});function Ze(e,t){return ci(_c,e,t)}var bc=c("ZodObject",(e,t)=>{gn.init(e,t),w.init(e,t),l.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>ie(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Di()}),e.loose=()=>e.clone({...e._zod.def,catchall:Di()}),e.strict=()=>e.clone({...e._zod.def,catchall:$c()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>l.extend(e,r),e.safeExtend=r=>l.safeExtend(e,r),e.merge=r=>l.merge(e,r),e.pick=r=>l.pick(e,r),e.omit=r=>l.omit(e,r),e.partial=(...r)=>l.partial(Fi,e,r[0]),e.required=(...r)=>l.required(Ji,e,r[0]);});function Z(e,t){let r={type:"object",get shape(){return l.assignProp(this,"shape",e?l.objectClone(e):{}),this.shape},...l.normalizeParams(t)};return new bc(r)}var yc=c("ZodUnion",(e,t)=>{vn.init(e,t),w.init(e,t),e.options=t.options;});function M(e,t){return new yc({type:"union",options:e,...l.normalizeParams(t)})}var xc=c("ZodIntersection",(e,t)=>{hn.init(e,t),w.init(e,t);});function kc(e,t){return new xc({type:"intersection",left:e,right:t})}var zc=c("ZodRecord",(e,t)=>{$n.init(e,t),w.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType;});function _t(e,t,r){return new zc({type:"record",keyType:e,valueType:t,...l.normalizeParams(r)})}var ht=c("ZodEnum",(e,t)=>{_n.init(e,t),w.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let a={};for(let o of n)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new ht({...t,checks:[],...l.normalizeParams(i),entries:a})},e.exclude=(n,i)=>{let a={...t.entries};for(let o of n)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new ht({...t,checks:[],...l.normalizeParams(i),entries:a})};});function ie(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ht({type:"enum",entries:r,...l.normalizeParams(t)})}var wc=c("ZodLiteral",(e,t)=>{bn.init(e,t),w.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 Vi(e,t){return new wc({type:"literal",values:Array.isArray(e)?e:[e],...l.normalizeParams(t)})}var Ic=c("ZodTransform",(e,t)=>{yn.init(e,t),w.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new H(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(l.issue(a,r.value,t));else {let o=a;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(l.issue(o));}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)};});function Sc(e){return new Ic({type:"transform",transform:e})}var Fi=c("ZodOptional",(e,t)=>{xn.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function $(e){return new Fi({type:"optional",innerType:e})}var jc=c("ZodNullable",(e,t)=>{kn.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Pe(e){return new jc({type:"nullable",innerType:e})}var Uc=c("ZodDefault",(e,t)=>{zn.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function b(e,t){return new Uc({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():l.shallowClone(t)}})}var Oc=c("ZodPrefault",(e,t)=>{wn.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Nc(e,t){return new Oc({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():l.shallowClone(t)}})}var Ji=c("ZodNonOptional",(e,t)=>{In.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Pc(e,t){return new Ji({type:"nonoptional",innerType:e,...l.normalizeParams(t)})}var Zc=c("ZodCatch",(e,t)=>{Sn.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Dc(e,t){return new Zc({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Tc=c("ZodPipe",(e,t)=>{jn.init(e,t),w.init(e,t),e.in=t.in,e.out=t.out;});function Ti(e,t){return new Tc({type:"pipe",in:e,out:t})}var Ec=c("ZodReadonly",(e,t)=>{Un.init(e,t),w.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ac(e){return new Ec({type:"readonly",innerType:e})}var Lc=c("ZodCustom",(e,t)=>{On.init(e,t),w.init(e,t);});function Cc(e,t={}){return ui(Lc,e,t)}function Rc(e){return si(e)}N(ct());var s=Ue(),O=h().check(ne(7),U(),he(/^#([0-9a-f]{3}){1,2}$/i),v());s.add(O,{description:"A base schema for describing the format of colors"});var De=b(O,"#151718");s.add(De,{description:"The dark background color of the workspace"});var Te=b(O,"#cbd5e1");s.add(Te,{description:"The light background color of the workspace"});var Ee=b(O,"#1fb2a6");s.add(Ee,{description:"The primary brand specific color of the workspace"});var Ae=$(O);s.add(Ae,{description:"The alternate brand specific color of the workspace"});var Le=$(O);s.add(Le,{description:"The secondary brand specific color of the workspace"});var Ce=b(O,"#3fa6ff");s.add(Ce,{description:"The color used to display hyperlink text"});var Re=b(O,"#818cf8");s.add(Re,{description:"The second brand specific color of the workspace"});var Ve=b(O,"#45b27e");s.add(Ve,{description:"The success color of the workspace"});var Fe=b(O,"#38bdf8");s.add(Fe,{description:"The informational color of the workspace"});var Je=b(O,"#f3d371");s.add(Je,{description:"The warning color of the workspace"});var Me=b(O,"#d8314a");s.add(Me,{description:"The danger color of the workspace"});var We=$(O);s.add(We,{description:"The fatal color of the workspace"});var Be=b(O,"#4ade80");s.add(Be,{description:"The positive number color of the workspace"});var Ge=b(O,"#ef4444");s.add(Ge,{description:"The negative number color of the workspace"});var Ke=$(Ze(O));s.add(Ke,{description:"The color stops for the base gradient color pattern used in the workspace"});var Fc=Z({foreground:Te,background:De,brand:Ee,alternate:Ae,accent:Le,link:Ce,help:Re,success:Ve,info:Fe,warning:Je,danger:Me,fatal:We,positive:Be,negative:Ge,gradient:Ke}),Jc=Z({foreground:De,background:Te,brand:Ee,alternate:Ae,accent:Le,link:Ce,help:Re,success:Ve,info:Fe,warning:Je,danger:Me,fatal:We,positive:Be,negative:Ge,gradient:Ke}),Mc=Z({dark:Fc,light:Jc}),Wc=Z({dark:De,light:Te,brand:Ee,alternate:Ae,accent:Le,link:Ce,help:Re,success:Ve,info:Fe,warning:Je,danger:Me,fatal:We,positive:Be,negative:Ge,gradient:Ke}),oe=$(P());s.add(oe,{description:"A remote registry URL used to publish distributable packages"});var Wi=b(Z({github:oe,npm:oe,cargo:oe,cyclone:oe,container:oe}),{});s.add(Wi,{description:"A list of remote registry URLs used by Storm Software"});var bt=M([Wc,Mc]);s.add(bt,{description:"Colors used for various workspace elements"});var Bi=_t(M([M([Vi("base"),h()]),h()]),bt);s.add(Bi,{description:"Storm theme config values used for styling various package elements"});var Gi=$(M([h().check(v()),Ze(h().check(v()))]));s.add(Gi,{description:"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."});var Ki=h().check(v());s.add(Ki,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var Xi=h().check(v());s.add(Xi,{description:"The email of the workspace bot"});var qi=Z({name:Ki,email:Xi});s.add(qi,{description:"The workspace's bot user's config used to automated various operations tasks"});var Yi=$(h().check(v(),P()));s.add(Yi,{description:"A URL to a banner image used to display the workspace's release"});var Hi=b(h().check(v()),p$1);s.add(Hi,{description:"The alt text for the workspace's release banner image"});var Qi=Z({url:Yi,alt:Hi});s.add(Qi,{description:"The workspace's banner image used during the release process"});var eo=$(h().check(v()));s.add(eo,{description:"A header message appended to the start of the workspace's release notes"});var to=$(h().check(v()));s.add(to,{description:"A footer message appended to the end of the workspace's release notes"});var ro=Z({banner:M([Qi,h().check(v(),P())]),header:eo,footer:to});s.add(ro,{description:"The workspace's release config used during the release process"});var no=$(h().check(v()));s.add(no,{description:"A Twitter/X account associated with the organization/project"});var io=$(h().check(v()));s.add(io,{description:"A Discord account associated with the organization/project"});var oo=$(h().check(v()));s.add(oo,{description:"A Telegram account associated with the organization/project"});var ao=$(h().check(v()));s.add(ao,{description:"A Slack account associated with the organization/project"});var co=$(h().check(v()));s.add(co,{description:"A Medium account associated with the organization/project"});var uo=$(h().check(v()));s.add(uo,{description:"A GitHub account associated with the organization/project"});var so=Z({twitter:no,discord:io,telegram:oo,slack:ao,medium:co,github:uo});s.add(so,{description:"The workspace's account config used to store various social media links"});var lo=$(h().check(v()));s.add(lo,{description:"The directory used to store the environment's cached file data"});var mo=$(h().check(v()));s.add(mo,{description:"The directory used to store the environment's data files"});var po=$(h().check(v()));s.add(po,{description:"The directory used to store the environment's configuration files"});var fo=$(h().check(v()));s.add(fo,{description:"The directory used to store the environment's temp files"});var go=$(h().check(v()));s.add(go,{description:"The directory used to store the environment's log files"});var vo=b(h().check(v()),"dist");s.add(vo,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var ho=Z({cache:lo,data:mo,config:po,temp:fo,log:go,build:vo});s.add(ho,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var $o=b(ie(["minimal","monorepo"]),"monorepo");s.add($o,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var _o=b(h().check(v()),o);s.add(_o,{description:"The path to the workspace's error codes JSON file"});var bo=$(P());s.add(bo,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var yo=Z({codesFile:_o,url:bo});s.add(yo,{description:"The workspace's error config used when creating error details during a system error"});var xo=$(h().check(v(),U()));s.add(xo,{description:"The name of the organization"});var ko=$(h().check(v()));s.add(ko,{description:"A description of the organization"});var zo=$(P());s.add(zo,{description:"A URL to the organization's logo image"});var wo=$(P());s.add(wo,{description:"A URL to the organization's icon image"});var Io=$(P());s.add(Io,{description:"A URL to a page that provides more information about the organization"});var So=Z({name:xo,description:ko,logo:zo,icon:wo,url:Io});s.add(So,{description:"The workspace's organization details"});var jo=b(h().check(v(),U()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");s.add(jo,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Uo=h().check(v(),U());s.add(Uo,{description:"The name of the workspace/project/service/package/scope using this configuration"});var Oo=h().check(v(),U());s.add(Oo,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var No=M([So,h().check(v(),U())]);s.add(No,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var Po=h().check(v(),U());s.add(Po,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var Zo=b(h().check(v()),"Apache-2.0");s.add(Zo,{description:"The license type of the package"});var Do=$(P());s.add(Do,{description:"The homepage of the workspace"});var To=$(P());s.add(To,{description:"The documentation site for the workspace"});var Eo=$(P());s.add(Eo,{description:"The development portal site for the workspace"});var Ao=$(P());s.add(Ao,{description:"The licensing site for the workspace"});var Lo=$(P());s.add(Lo,{description:"The contact site for the workspace"});var Co=$(P());s.add(Co,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var Ro=b(h().check(v(),U()),"main");s.add(Ro,{description:"The branch of the workspace"});var Vo=$(h().check(v(),U()));s.add(Vo,{description:"A tag specifying the version pre-release identifier"});var Fo=$(h().check(v(),U()));s.add(Fo,{description:"The owner of the package"});var Jo=b(ie(["development","staging","production"]).check(v(),U()),"production");s.add(Jo,{description:"The current runtime environment mode for the package"});var Mo=h().check(v(),U());s.add(Mo,{description:"The root directory of the workspace"});var Wo=b($t(),false);s.add(Wo,{description:"Should all known types of workspace caching be skipped?"});var Bo=b(ie(["npm","yarn","pnpm","bun"]),"npm");s.add(Bo,{description:"The JavaScript/TypeScript package manager used by the repository"});var Go=b(h().check(v()),"America/New_York");s.add(Go,{description:"The default timezone of the workspace"});var Ko=b(h().check(v()),"en-US");s.add(Ko,{description:"The default locale of the workspace"});var Xo=b(ie(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");s.add(Xo,{description:"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."});var qo=b($t(),true);s.add(qo,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Yo=b(Pe(h().check(v())),null);s.add(Yo,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var yt=b(_t(h(),Ri()),{});s.add(yt,{description:"Configuration of each used extension"});var Nm=Z({$schema:jo,extends:Gi,name:Uo,variant:$o,namespace:Oo,organization:No,repository:Po,license:Zo,homepage:Do,docs:To,portal:Eo,licensing:Ao,contact:Lo,support:Co,branch:Ro,preid:Vo,owner:Fo,bot:qi,release:ro,socials:so,error:yo,mode:Jo,workspaceRoot:Mo,skipCache:Wo,directories:ho,packageManager:Bo,timezone:Go,locale:Ko,logLevel:Xo,skipConfigLogging:qo,registry:Wi,configFile:Yo,colors:M([bt,Bi]),extensions:yt});s.add(yt,{description:"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."});
|
|
21
|
+
export{Io as $,Hi as A,Qi as B,eo as C,to as D,ro as E,no as F,io as G,oo as H,ao as I,co as J,uo as K,so as L,lo as M,mo as N,po as O,fo as P,go as Q,vo as R,ho as S,$o as T,_o as U,bo as V,yo as W,xo as X,ko as Y,zo as Z,wo as _,s as a,So as aa,De as b,Zo as ba,Te as c,Do as ca,Ee as d,To as da,Ae as e,Eo as ea,Le as f,Ao as fa,Ce as g,Lo as ga,Re as h,Co as ha,Ve as i,Ro as ia,Fe as j,Vo as ja,Je as k,Fo as ka,Me as l,Jo as la,We as m,Mo as ma,Be as n,Wo as na,Ge as o,Bo as oa,Ke as p,Go as pa,Fc as q,Ko as qa,Jc as r,Xo as ra,Mc as s,qo as sa,Wc as t,Yo as ta,Wi as u,yt as ua,bt as v,Nm as va,Bi as w,Gi as x,qi as y,Yi as z};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';var chunkUODLXUQT_cjs=require('./chunk-UODLXUQT.cjs'),chunk4VDLQK6F_cjs=require('./chunk-4VDLQK6F.cjs');function c(e,t,r){function n(u,d){var p;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:false}),(p=u._zod).traits??(p.traits=new Set),u._zod.traits.add(e),t(u,d);for(let b in o.prototype)b in u||Object.defineProperty(u,b,{value:o.prototype[b].bind(u)});u._zod.constr=o,u._zod.def=d;}let i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(u){var d;let p=r?.Parent?new a:this;n(p,u),(d=p._zod).deferred??(d.deferred=[]);for(let b of p._zod.deferred)b();return p}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:u=>r?.Parent&&u instanceof r.Parent?true:u?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var V=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},Q=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError";}},_e={};function P(e){return e&&Object.assign(_e,e),_e}var l={};chunk4VDLQK6F_cjs.a(l,{BIGINT_FORMAT_RANGES:()=>Pt,Class:()=>Ye,NUMBER_FORMAT_RANGES:()=>Nt,aborted:()=>X,allowsEval:()=>He,assert:()=>ua,assertEqual:()=>ia,assertIs:()=>aa,assertNever:()=>ca,assertNotEqual:()=>oa,assignProp:()=>B,base64ToUint8Array:()=>Dt,base64urlToUint8Array:()=>wa,cached:()=>se,captureStackTrace:()=>xe,cleanEnum:()=>za,cleanRegex:()=>de,clone:()=>A,cloneDef:()=>la,createTransparentProxy:()=>va,defineLazy:()=>x,esc:()=>ye,escapeRegex:()=>J,extend:()=>_a,finalizeIssue:()=>C,floatSafeRemainder:()=>jt,getElementAtPath:()=>da,getEnumValues:()=>be,getLengthableOrigin:()=>me,getParsedType:()=>ga,getSizableOrigin:()=>Zt,hexToUint8Array:()=>Sa,isObject:()=>ee,isPlainObject:()=>K,issue:()=>re,joinValues:()=>f,jsonStringifyReplacer:()=>te,merge:()=>ya,mergeDefs:()=>G,normalizeParams:()=>v,nullish:()=>le,numKeys:()=>fa,objectClone:()=>sa,omit:()=>$a,optionalKeys:()=>et,partial:()=>xa,pick:()=>ha,prefixIssues:()=>M,primitiveTypes:()=>Ot,promiseAllObject:()=>ma,propertyKeyTypes:()=>Qe,randomString:()=>pa,required:()=>ka,safeExtend:()=>ba,shallowClone:()=>Ut,stringifyPrimitive:()=>g,uint8ArrayToBase64:()=>Tt,uint8ArrayToBase64url:()=>Ia,uint8ArrayToHex:()=>ja,unwrapMessage:()=>ue});function ia(e){return e}function oa(e){return e}function aa(e){}function ca(e){throw new Error}function ua(e){}function be(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function f(e,t="|"){return e.map(r=>g(r)).join(t)}function te(e,t){return typeof t=="bigint"?t.toString():t}function se(e){return {get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function le(e){return e==null}function de(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function jt(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){let d=n.match(/\d?e-(\d?)/);d?.[1]&&(i=Number.parseInt(d[1]));}let a=r>i?r:i,o=Number.parseInt(e.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return o%u/10**a}var St=Symbol("evaluating");function x(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==St)return n===void 0&&(n=St,n=r()),n},set(i){Object.defineProperty(e,t,{value:i});},configurable:true});}function sa(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function B(e,t,r){Object.defineProperty(e,t,{value:r,writable:true,enumerable:true,configurable:true});}function G(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n);}return Object.defineProperties({},t)}function la(e){return G(e._zod.def)}function da(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function ma(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let i={};for(let a=0;a<t.length;a++)i[t[a]]=n[a];return i})}function pa(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function ye(e){return JSON.stringify(e)}var xe="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ee(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var He=se(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function K(e){if(ee(e)===false)return false;let t=e.constructor;if(t===void 0)return true;let r=t.prototype;return !(ee(r)===false||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===false)}function Ut(e){return K(e)?{...e}:Array.isArray(e)?[...e]:e}function fa(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var ga=e=>{let t=typeof e;switch(t){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Qe=new Set(["string","number","symbol"]),Ot=new Set(["string","number","bigint","boolean","symbol","undefined"]);function J(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(e,t,r){let n=new e._zod.constr(t??e._zod.def);return (!t||r?.parent)&&(n._zod.parent=e),n}function v(e){let t=e;if(!t)return {};if(typeof t=="string")return {error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message;}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function va(e){let t;return new Proxy({},{get(r,n,i){return t??(t=e()),Reflect.get(t,n,i)},set(r,n,i,a){return t??(t=e()),Reflect.set(t,n,i,a)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,i){return t??(t=e()),Reflect.defineProperty(t,n,i)}})}function g(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function et(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Nt={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]},Pt={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ha(e,t){let r=e._zod.def,n=G(e._zod.def,{get shape(){let i={};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=r.shape[a]);}return B(this,"shape",i),i},checks:[]});return A(e,n)}function $a(e,t){let r=e._zod.def,n=G(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a];}return B(this,"shape",i),i},checks:[]});return A(e,n)}function _a(e,t){if(!K(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let i=G(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return B(this,"shape",a),a},checks:[]});return A(e,i)}function ba(e,t){if(!K(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return B(this,"shape",n),n},checks:e._zod.def.checks};return A(e,r)}function ya(e,t){let r=G(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return B(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return A(e,r)}function xa(e,t,r){let n=G(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let o in r){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=e?new e({type:"optional",innerType:i[o]}):i[o]);}else for(let o in i)a[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return B(this,"shape",a),a},checks:[]});return A(t,n)}function ka(e,t,r){let n=G(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}));}else for(let o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return B(this,"shape",a),a},checks:[]});return A(t,n)}function X(e,t=0){if(e.aborted===true)return true;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==true)return true;return false}function M(e,t){return t.map(r=>{var n;return (n=r).path??(n.path=[]),r.path.unshift(e),r})}function ue(e){return typeof e=="string"?e:e?.message}function C(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=ue(e.inst?._zod.def?.error?.(e))??ue(t?.error?.(e))??ue(r.customError?.(e))??ue(r.localeError?.(e))??"Invalid input";n.message=i;}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Zt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function me(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function re(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function za(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Dt(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function Tt(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function wa(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Dt(t+r)}function Ia(e){return Tt(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Sa(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function ja(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Ye=class{constructor(...t){}};var Et=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,te,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},ke=c("$ZodError",Et),tt=c("$ZodError",Et,{Parent:Error});function rt(e,t=r=>r.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return {formErrors:n,fieldErrors:r}}function nt(e,t){let r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(let o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(u=>i({issues:u}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else {let u=n,d=0;for(;d<o.path.length;){let p=o.path[d];d===o.path.length-1?(u[p]=u[p]||{_errors:[]},u[p]._errors.push(r(o))):u[p]=u[p]||{_errors:[]},u=u[p],d++;}}};return i(e),n}var ze=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:false}):{async:false},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new V;if(o.issues.length){let u=new(i?.Err??e)(o.issues.map(d=>C(d,a,P())));throw xe(u,i?.callee),u}return o.value};var we=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:true}):{async:true},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let u=new(i?.Err??e)(o.issues.map(d=>C(d,a,P())));throw xe(u,i?.callee),u}return o.value};var pe=e=>(t,r,n)=>{let i=n?{...n,async:false}:{async:false},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new V;return a.issues.length?{success:false,error:new(e??ke)(a.issues.map(o=>C(o,i,P())))}:{success:true,data:a.value}},At=pe(tt),fe=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:true}):{async:true},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:false,error:new e(a.issues.map(o=>C(o,i,P())))}:{success:true,data:a.value}},Lt=fe(tt),Ct=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ze(e)(t,r,i)};var Rt=e=>(t,r,n)=>ze(e)(t,r,n);var Vt=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return we(e)(t,r,i)};var Ft=e=>async(t,r,n)=>we(e)(t,r,n);var Jt=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return pe(e)(t,r,i)};var Mt=e=>(t,r,n)=>pe(e)(t,r,n);var Wt=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return fe(e)(t,r,i)};var Bt=e=>async(t,r,n)=>fe(e)(t,r,n);var Gt=/^[cC][^\s-]{8,}$/,Kt=/^[0-9a-z]+$/,Xt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qt=/^[0-9a-vA-V]{20}$/,Yt=/^[A-Za-z0-9]{27}$/,Ht=/^[a-zA-Z0-9_-]{21}$/,Qt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var er=/^([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})$/,it=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var tr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Oa="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function rr(){return new RegExp(Oa,"u")}var nr=/^(?:(?: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])$/,ir=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,or=/^((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])$/,ar=/^(([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])$/,cr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ot=/^[A-Za-z0-9_-]*$/,ur=/^(?=.{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])?)*\.?$/;var sr=/^\+(?:[0-9]){6,14}[0-9]$/,lr="(?:(?:\\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])))",dr=new RegExp(`^${lr}$`);function mr(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pr(e){return new RegExp(`^${mr(e)}$`)}function fr(e){let t=mr({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${lr}T(?:${n})$`)}var gr=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)};var vr=/^(?:true|false)$/i;var hr=/^[^A-Z]*$/,$r=/^[^a-z]*$/;var T=c("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[]);});var _r=c("$ZodCheckMaxLength",(e,t)=>{var r;T.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return !le(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum);}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=me(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:true,input:i,inst:e,continue:!t.abort});};}),br=c("$ZodCheckMinLength",(e,t)=>{var r;T.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return !le(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum);}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let o=me(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:true,input:i,inst:e,continue:!t.abort});};}),yr=c("$ZodCheckLengthEquals",(e,t)=>{var r;T.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return !le(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length;}),e._zod.check=n=>{let i=n.value,a=i.length;if(a===t.length)return;let o=me(i),u=a>t.length;n.issues.push({origin:o,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!t.abort});};}),ve=c("$ZodCheckStringFormat",(e,t)=>{var r,n;T.init(e,t),e._zod.onattach.push(i=>{let a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern));}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort});}):(n=e._zod).check??(n.check=()=>{});}),xr=c("$ZodCheckRegex",(e,t)=>{ve.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort});};}),kr=c("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=hr),ve.init(e,t);}),zr=c("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=$r),ve.init(e,t);}),wr=c("$ZodCheckIncludes",(e,t)=>{T.init(e,t);let r=J(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{let a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n);}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort});};}),Ir=c("$ZodCheckStartsWith",(e,t)=>{T.init(e,t);let r=new RegExp(`^${J(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r);}),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});};}),Sr=c("$ZodCheckEndsWith",(e,t)=>{T.init(e,t);let r=new RegExp(`.*${J(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r);}),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});};});var jr=c("$ZodCheckOverwrite",(e,t)=>{T.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value);};});var Ie=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t);}indented(t){this.indent+=1,t(this),this.indent-=1;}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
|
|
2
|
+
`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),a=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(let o of a)this.content.push(o);}compile(){let t=Function,r=this?.args,i=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...r,i.join(`
|
|
3
|
+
`))}};var Or={major:4,minor:1,patch:9};var k=c("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Or;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let a of i._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let i=(o,u,d)=>{let p=X(o),b;for(let U of u){if(U._zod.def.when){if(!U._zod.def.when(o))continue}else if(p)continue;let j=o.issues.length,S=U._zod.check(o);if(S instanceof Promise&&d?.async===false)throw new V;if(b||S instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await S,o.issues.length!==j&&(p||(p=X(o,j)));});else {if(o.issues.length===j)continue;p||(p=X(o,j));}}return b?b.then(()=>o):o},a=(o,u,d)=>{if(X(o))return o.aborted=true,o;let p=i(u,n,d);if(p instanceof Promise){if(d.async===false)throw new V;return p.then(b=>e._zod.parse(b,d))}return e._zod.parse(p,d)};e._zod.run=(o,u)=>{if(u.skipChecks)return e._zod.parse(o,u);if(u.direction==="backward"){let p=e._zod.parse({value:o.value,issues:[]},{...u,skipChecks:true});return p instanceof Promise?p.then(b=>a(b,o,u)):a(p,o,u)}let d=e._zod.parse(o,u);if(d instanceof Promise){if(u.async===false)throw new V;return d.then(p=>i(p,n,u))}return i(d,n,u)};}e["~standard"]={validate:i=>{try{let a=At(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Lt(e,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1};}),he=c("$ZodString",(e,t)=>{k.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??gr(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value);}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r};}),z=c("$ZodStringFormat",(e,t)=>{ve.init(e,t),he.init(e,t);}),Cr=c("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=er),z.init(e,t);}),Rr=c("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=it(n));}else t.pattern??(t.pattern=it());z.init(e,t);}),Vr=c("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=tr),z.init(e,t);}),Fr=c("$ZodURL",(e,t)=>{z.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ur.source,input:r.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)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});}};}),Jr=c("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=rr()),z.init(e,t);}),Mr=c("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ht),z.init(e,t);}),Wr=c("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Gt),z.init(e,t);}),Br=c("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Kt),z.init(e,t);}),Gr=c("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Xt),z.init(e,t);}),Kr=c("$ZodXID",(e,t)=>{t.pattern??(t.pattern=qt),z.init(e,t);}),Xr=c("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Yt),z.init(e,t);}),qr=c("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=fr(t)),z.init(e,t);}),Yr=c("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=dr),z.init(e,t);}),Hr=c("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=pr(t)),z.init(e,t);}),Qr=c("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Qt),z.init(e,t);}),en=c("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=nr),z.init(e,t),e._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv4";});}),tn=c("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ir),z.init(e,t),e._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv6";}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`);}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort});}};}),rn=c("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=or),z.init(e,t);}),nn=c("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ar),z.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[i,a]=n;if(!a)throw new Error;let o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`);}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort});}};});function on(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var an=c("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=cr),z.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64";}),e._zod.check=r=>{on(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort});};});function Na(e){if(!ot.test(e))return false;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return on(r)}var cn=c("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ot),z.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url";}),e._zod.check=r=>{Na(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort});};}),un=c("$ZodE164",(e,t)=>{t.pattern??(t.pattern=sr),z.init(e,t);});function Pa(e,t=null){try{let r=e.split(".");if(r.length!==3)return !1;let[n]=r;if(!n)return !1;let i=JSON.parse(atob(n));return !("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return false}}var sn=c("$ZodJWT",(e,t)=>{z.init(e,t),e._zod.check=r=>{Pa(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort});};});var ct=c("$ZodBoolean",(e,t)=>{k.init(e,t),e._zod.pattern=vr,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value;}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r};});var ln=c("$ZodAny",(e,t)=>{k.init(e,t),e._zod.parse=r=>r;}),dn=c("$ZodUnknown",(e,t)=>{k.init(e,t),e._zod.parse=r=>r;}),mn=c("$ZodNever",(e,t)=>{k.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r);});function Nr(e,t,r){e.issues.length&&t.issues.push(...M(r,e.issues)),t.value[r]=e.value;}var pn=c("$ZodArray",(e,t)=>{k.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let o=0;o<i.length;o++){let u=i[o],d=t.element._zod.run({value:u,issues:[]},n);d instanceof Promise?a.push(d.then(p=>Nr(p,r,o))):Nr(d,r,o);}return a.length?Promise.all(a).then(()=>r):r};});function je(e,t,r,n){e.issues.length&&t.issues.push(...M(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value;}function fn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=et(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function gn(e,t,r,n,i,a){let o=[],u=i.keySet,d=i.catchall._zod,p=d.def.type;for(let b of Object.keys(t)){if(u.has(b))continue;if(p==="never"){o.push(b);continue}let U=d.run({value:t[b],issues:[]},n);U instanceof Promise?e.push(U.then(j=>je(j,r,b,t))):je(U,r,b,t);}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}var Za=c("$ZodObject",(e,t)=>{k.init(e,t);let r=se(()=>fn(t));x(e._zod,"propValues",()=>{let o=t.shape,u={};for(let d in o){let p=o[d]._zod;if(p.values){u[d]??(u[d]=new Set);for(let b of p.values)u[d].add(b);}}return u});let n=ee,i=t.catchall,a;e._zod.parse=(o,u)=>{a??(a=r.value);let d=o.value;if(!n(d))return o.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),o;o.value={};let p=[],b=a.shape;for(let U of a.keys){let S=b[U]._zod.run({value:d[U],issues:[]},u);S instanceof Promise?p.push(S.then(L=>je(L,o,U,d))):je(S,o,U,d);}return i?gn(p,d,o,u,r.value,e):p.length?Promise.all(p).then(()=>o):o};}),vn=c("$ZodObjectJIT",(e,t)=>{Za.init(e,t);let r=e._zod.parse,n=se(()=>fn(t)),i=j=>{let S=new Ie(["shape","payload","ctx"]),L=n.value,Qo=F=>{let R=ye(F);return `shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};S.write("const input = payload.value;");let kt=Object.create(null),ea=0;for(let F of L.keys)kt[F]=`key_${ea++}`;S.write("const newResult = {};");for(let F of L.keys){let R=kt[F],ce=ye(F);S.write(`const ${R} = ${Qo(F)};`),S.write(`
|
|
4
|
+
if (${R}.issues.length) {
|
|
5
|
+
payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
|
|
6
|
+
...iss,
|
|
7
|
+
path: iss.path ? [${ce}, ...iss.path] : [${ce}]
|
|
8
|
+
})));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
if (${R}.value === undefined) {
|
|
13
|
+
if (${ce} in input) {
|
|
14
|
+
newResult[${ce}] = undefined;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
newResult[${ce}] = ${R}.value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
`);}S.write("payload.value = newResult;"),S.write("return payload;");let ta=S.compile();return (F,R)=>ta(j,F,R)},a,o=ee,u=!_e.jitless,p=u&&He.value,b=t.catchall,U;e._zod.parse=(j,S)=>{U??(U=n.value);let L=j.value;return o(L)?u&&p&&S?.async===false&&S.jitless!==true?(a||(a=i(t.shape)),j=a(j,S),b?gn([],L,j,S,U,e):j):r(j,S):(j.issues.push({expected:"object",code:"invalid_type",input:L,inst:e}),j)};});function Pr(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let i=e.filter(a=>!X(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>C(o,n,P())))}),t)}var hn=c("$ZodUnion",(e,t)=>{k.init(e,t),x(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),x(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),x(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),x(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>de(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let o=false,u=[];for(let d of t.options){let p=d._zod.run({value:i.value,issues:[]},a);if(p instanceof Promise)u.push(p),o=true;else {if(p.issues.length===0)return p;u.push(p);}}return o?Promise.all(u).then(d=>Pr(d,i,e,a)):Pr(u,i,e,a)};});var $n=c("$ZodIntersection",(e,t)=>{k.init(e,t),e._zod.parse=(r,n)=>{let i=r.value,a=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([d,p])=>Zr(r,d,p)):Zr(r,a,o)};});function at(e,t){if(e===t)return {valid:true,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(K(e)&&K(t)){let r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(let a of n){let o=at(e[a],t[a]);if(!o.valid)return {valid:false,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data;}return {valid:true,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n],o=at(i,a);if(!o.valid)return {valid:false,mergeErrorPath:[n,...o.mergeErrorPath]};r.push(o.data);}return {valid:true,data:r}}return {valid:false,mergeErrorPath:[]}}function Zr(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),X(e))return e;let n=at(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var _n=c("$ZodRecord",(e,t)=>{k.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!K(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let o=t.keyType._zod.values;r.value={};for(let d of o)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){let p=t.valueType._zod.run({value:i[d],issues:[]},n);p instanceof Promise?a.push(p.then(b=>{b.issues.length&&r.issues.push(...M(d,b.issues)),r.value[d]=b.value;})):(p.issues.length&&r.issues.push(...M(d,p.issues)),r.value[d]=p.value);}let u;for(let d in i)o.has(d)||(u=u??[],u.push(d));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u});}else {r.value={};for(let o of Reflect.ownKeys(i)){if(o==="__proto__")continue;let u=t.keyType._zod.run({value:o,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>C(p,n,P())),input:o,path:[o],inst:e}),r.value[u.value]=u.value;continue}let d=t.valueType._zod.run({value:i[o],issues:[]},n);d instanceof Promise?a.push(d.then(p=>{p.issues.length&&r.issues.push(...M(o,p.issues)),r.value[u.value]=p.value;})):(d.issues.length&&r.issues.push(...M(o,d.issues)),r.value[u.value]=d.value);}}return a.length?Promise.all(a).then(()=>r):r};});var bn=c("$ZodEnum",(e,t)=>{k.init(e,t);let r=be(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>Qe.has(typeof i)).map(i=>typeof i=="string"?J(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i};}),yn=c("$ZodLiteral",(e,t)=>{if(k.init(e,t),t.values.length===0)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(r=>typeof r=="string"?J(r):r?J(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r};});var xn=c("$ZodTransform",(e,t)=>{k.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Q(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return (i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new V;return r.value=i,r};});function Dr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var kn=c("$ZodOptional",(e,t)=>{k.init(e,t),e._zod.optin="optional",e._zod.optout="optional",x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${de(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Dr(a,r.value)):Dr(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)};}),zn=c("$ZodNullable",(e,t)=>{k.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${de(r.source)}|null)$`):void 0}),x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n);}),wn=c("$ZodDefault",(e,t)=>{k.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Tr(a,t)):Tr(i,t)};});function Tr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var In=c("$ZodPrefault",(e,t)=>{k.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n));}),Sn=c("$ZodNonOptional",(e,t)=>{k.init(e,t),x(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>Er(a,e)):Er(i,e)};});function Er(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var jn=c("$ZodCatch",(e,t)=>{k.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>C(o,n,P()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>C(a,n,P()))},input:r.value}),r.issues=[]),r)};});var Un=c("$ZodPipe",(e,t)=>{k.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(o=>Se(o,t.in,n)):Se(a,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>Se(a,t.out,n)):Se(i,t.out,n)};});function Se(e,t,r){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},r)}var On=c("$ZodReadonly",(e,t)=>{k.init(e,t),x(e._zod,"propValues",()=>t.innerType._zod.propValues),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(Ar):Ar(i)};});function Ar(e){return e.value=Object.freeze(e.value),e}var Nn=c("$ZodCustom",(e,t)=>{T.init(e,t),k.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>Lr(a,r,n,e));Lr(i,r,n,e);};});function Lr(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(re(i));}}var Ta=e=>{let t=typeof e;switch(t){case "number":return Number.isNaN(e)?"NaN":"number";case "object":{if(Array.isArray(e))return "array";if(e===null)return "null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Ea=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case "invalid_type":return `Invalid input: expected ${n.expected}, received ${Ta(n.input)}`;case "invalid_value":return n.values.length===1?`Invalid input: expected ${g(n.values[0])}`:`Invalid option: expected one of ${f(n.values,"|")}`;case "too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case "too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case "invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case "not_multiple_of":return `Invalid number: must be a multiple of ${n.divisor}`;case "unrecognized_keys":return `Unrecognized key${n.keys.length>1?"s":""}: ${f(n.keys,", ")}`;case "invalid_key":return `Invalid key in ${n.origin}`;case "invalid_union":return "Invalid input";case "invalid_element":return `Invalid value in ${n.origin}`;default:return "Invalid input"}}};function ut(){return {localeError:Ea()}}var Ue=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(t,...r){let n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"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,t);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Oe(){return new Ue}var q=Oe();function Zn(e,t){return new e({type:"string",...v(t)})}function Dn(e,t){return new e({type:"string",format:"email",check:"string_format",abort:false,...v(t)})}function st(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:false,...v(t)})}function Tn(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...v(t)})}function En(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...v(t)})}function An(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...v(t)})}function Ln(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...v(t)})}function lt(e,t){return new e({type:"string",format:"url",check:"string_format",abort:false,...v(t)})}function Cn(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...v(t)})}function Rn(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...v(t)})}function Vn(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...v(t)})}function Fn(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...v(t)})}function Jn(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...v(t)})}function Mn(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:false,...v(t)})}function Wn(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...v(t)})}function Bn(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...v(t)})}function Gn(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...v(t)})}function Kn(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...v(t)})}function Xn(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...v(t)})}function qn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:false,...v(t)})}function Yn(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...v(t)})}function Hn(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:false,...v(t)})}function Qn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...v(t)})}function ei(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...v(t)})}function ti(e,t){return new e({type:"string",format:"date",check:"string_format",...v(t)})}function ri(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...v(t)})}function ni(e,t){return new e({type:"string",format:"duration",check:"string_format",...v(t)})}function ii(e,t){return new e({type:"boolean",...v(t)})}function oi(e){return new e({type:"any"})}function ai(e){return new e({type:"unknown"})}function ci(e,t){return new e({type:"never",...v(t)})}function Ne(e,t){return new _r({check:"max_length",...v(t),maximum:e})}function ne(e,t){return new br({check:"min_length",...v(t),minimum:e})}function ie(e,t){return new yr({check:"length_equals",...v(t),length:e})}function $e(e,t){return new xr({check:"string_format",format:"regex",...v(t),pattern:e})}function dt(e){return new kr({check:"string_format",format:"lowercase",...v(e)})}function mt(e){return new zr({check:"string_format",format:"uppercase",...v(e)})}function pt(e,t){return new wr({check:"string_format",format:"includes",...v(t),includes:e})}function ft(e,t){return new Ir({check:"string_format",format:"starts_with",...v(t),prefix:e})}function gt(e,t){return new Sr({check:"string_format",format:"ends_with",...v(t),suffix:e})}function Y(e){return new jr({check:"overwrite",tx:e})}function vt(e){return Y(t=>t.normalize(e))}function h(){return Y(e=>e.trim())}function O(){return Y(e=>e.toLowerCase())}function ht(){return Y(e=>e.toUpperCase())}function ui(e,t,r){return new e({type:"array",element:t,...v(r)})}function si(e,t,r){return new e({type:"custom",check:"custom",fn:t,...v(r)})}function li(e){let t=Fa(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(re(n,r.value,t._zod.def));else {let i=n;i.fatal&&(i.continue=false),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(re(i));}},e(r.value,r)));return t}function Fa(e,t){let r=new T({check:"custom",...v(t)});return r._zod.check=e,r}var di=c("ZodISODateTime",(e,t)=>{qr.init(e,t),w.init(e,t);});function mi(e){return ei(di,e)}var pi=c("ZodISODate",(e,t)=>{Yr.init(e,t),w.init(e,t);});function fi(e){return ti(pi,e)}var gi=c("ZodISOTime",(e,t)=>{Hr.init(e,t),w.init(e,t);});function vi(e){return ri(gi,e)}var hi=c("ZodISODuration",(e,t)=>{Qr.init(e,t),w.init(e,t);});function $i(e){return ni(hi,e)}var yi=(e,t)=>{ke.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>nt(e,r)},flatten:{value:r=>rt(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,te,2);}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,te,2);}},isEmpty:{get(){return e.issues.length===0}}});};c("ZodError",yi);var E=c("ZodError",yi,{Parent:Error});var xi=ze(E),ki=we(E),zi=pe(E),wi=fe(E),Ii=Ct(E),Si=Rt(E),ji=Vt(E),Ui=Ft(E),Oi=Jt(E),Ni=Mt(E),Pi=Wt(E),Zi=Bt(E);var I=c("ZodType",(e,t)=>(k.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(r,n)=>A(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>xi(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>zi(e,r,n),e.parseAsync=async(r,n)=>ki(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>wi(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>Ii(e,r,n),e.decode=(r,n)=>Si(e,r,n),e.encodeAsync=async(r,n)=>ji(e,r,n),e.decodeAsync=async(r,n)=>Ui(e,r,n),e.safeEncode=(r,n)=>Oi(e,r,n),e.safeDecode=(r,n)=>Ni(e,r,n),e.safeEncodeAsync=async(r,n)=>Pi(e,r,n),e.safeDecodeAsync=async(r,n)=>Zi(e,r,n),e.refine=(r,n)=>e.check(Rc(r,n)),e.superRefine=r=>e.check(Vc(r)),e.overwrite=r=>e.check(Y(r)),e.optional=()=>_(e),e.nullable=()=>Ze(e),e.nullish=()=>_(Ze(e)),e.nonoptional=r=>Zc(e,r),e.array=()=>De(e),e.or=r=>W([e,r]),e.and=r=>zc(e,r),e.transform=r=>Ei(e,jc(r)),e.default=r=>y(e,r),e.prefault=r=>Pc(e,r),e.catch=r=>Tc(e,r),e.pipe=r=>Ei(e,r),e.readonly=()=>Lc(e),e.describe=r=>{let n=e.clone();return q.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return q.get(e)?.description},configurable:true}),e.meta=(...r)=>{if(r.length===0)return q.get(e);let n=e.clone();return q.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ai=c("_ZodString",(e,t)=>{he.init(e,t),I.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check($e(...n)),e.includes=(...n)=>e.check(pt(...n)),e.startsWith=(...n)=>e.check(ft(...n)),e.endsWith=(...n)=>e.check(gt(...n)),e.min=(...n)=>e.check(ne(...n)),e.max=(...n)=>e.check(Ne(...n)),e.length=(...n)=>e.check(ie(...n)),e.nonempty=(...n)=>e.check(ne(1,...n)),e.lowercase=n=>e.check(dt(n)),e.uppercase=n=>e.check(mt(n)),e.trim=()=>e.check(h()),e.normalize=(...n)=>e.check(vt(...n)),e.toLowerCase=()=>e.check(O()),e.toUpperCase=()=>e.check(ht());}),Li=c("ZodString",(e,t)=>{he.init(e,t),Ai.init(e,t),e.email=r=>e.check(Dn(ec,r)),e.url=r=>e.check(lt(Ci,r)),e.jwt=r=>e.check(Qn(gc,r)),e.emoji=r=>e.check(Cn(tc,r)),e.guid=r=>e.check(st(Di,r)),e.uuid=r=>e.check(Tn(Pe,r)),e.uuidv4=r=>e.check(En(Pe,r)),e.uuidv6=r=>e.check(An(Pe,r)),e.uuidv7=r=>e.check(Ln(Pe,r)),e.nanoid=r=>e.check(Rn(rc,r)),e.guid=r=>e.check(st(Di,r)),e.cuid=r=>e.check(Vn(nc,r)),e.cuid2=r=>e.check(Fn(ic,r)),e.ulid=r=>e.check(Jn(oc,r)),e.base64=r=>e.check(qn(mc,r)),e.base64url=r=>e.check(Yn(pc,r)),e.xid=r=>e.check(Mn(ac,r)),e.ksuid=r=>e.check(Wn(cc,r)),e.ipv4=r=>e.check(Bn(uc,r)),e.ipv6=r=>e.check(Gn(sc,r)),e.cidrv4=r=>e.check(Kn(lc,r)),e.cidrv6=r=>e.check(Xn(dc,r)),e.e164=r=>e.check(Hn(fc,r)),e.datetime=r=>e.check(mi(r)),e.date=r=>e.check(fi(r)),e.time=r=>e.check(vi(r)),e.duration=r=>e.check($i(r));});function $(e){return Zn(Li,e)}var w=c("ZodStringFormat",(e,t)=>{z.init(e,t),Ai.init(e,t);}),ec=c("ZodEmail",(e,t)=>{Vr.init(e,t),w.init(e,t);});var Di=c("ZodGUID",(e,t)=>{Cr.init(e,t),w.init(e,t);});var Pe=c("ZodUUID",(e,t)=>{Rr.init(e,t),w.init(e,t);});var Ci=c("ZodURL",(e,t)=>{Fr.init(e,t),w.init(e,t);});function Z(e){return lt(Ci,e)}var tc=c("ZodEmoji",(e,t)=>{Jr.init(e,t),w.init(e,t);});var rc=c("ZodNanoID",(e,t)=>{Mr.init(e,t),w.init(e,t);});var nc=c("ZodCUID",(e,t)=>{Wr.init(e,t),w.init(e,t);});var ic=c("ZodCUID2",(e,t)=>{Br.init(e,t),w.init(e,t);});var oc=c("ZodULID",(e,t)=>{Gr.init(e,t),w.init(e,t);});var ac=c("ZodXID",(e,t)=>{Kr.init(e,t),w.init(e,t);});var cc=c("ZodKSUID",(e,t)=>{Xr.init(e,t),w.init(e,t);});var uc=c("ZodIPv4",(e,t)=>{en.init(e,t),w.init(e,t);});var sc=c("ZodIPv6",(e,t)=>{tn.init(e,t),w.init(e,t);});var lc=c("ZodCIDRv4",(e,t)=>{rn.init(e,t),w.init(e,t);});var dc=c("ZodCIDRv6",(e,t)=>{nn.init(e,t),w.init(e,t);});var mc=c("ZodBase64",(e,t)=>{an.init(e,t),w.init(e,t);});var pc=c("ZodBase64URL",(e,t)=>{cn.init(e,t),w.init(e,t);});var fc=c("ZodE164",(e,t)=>{un.init(e,t),w.init(e,t);});var gc=c("ZodJWT",(e,t)=>{sn.init(e,t),w.init(e,t);});var Ri=c("ZodBoolean",(e,t)=>{ct.init(e,t),I.init(e,t);});function _t(e){return ii(Ri,e)}var vc=c("ZodAny",(e,t)=>{ln.init(e,t),I.init(e,t);});function Vi(){return oi(vc)}var hc=c("ZodUnknown",(e,t)=>{dn.init(e,t),I.init(e,t);});function Ti(){return ai(hc)}var $c=c("ZodNever",(e,t)=>{mn.init(e,t),I.init(e,t);});function _c(e){return ci($c,e)}var bc=c("ZodArray",(e,t)=>{pn.init(e,t),I.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(ne(r,n)),e.nonempty=r=>e.check(ne(1,r)),e.max=(r,n)=>e.check(Ne(r,n)),e.length=(r,n)=>e.check(ie(r,n)),e.unwrap=()=>e.element;});function De(e,t){return ui(bc,e,t)}var yc=c("ZodObject",(e,t)=>{vn.init(e,t),I.init(e,t),l.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>oe(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ti()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ti()}),e.strict=()=>e.clone({...e._zod.def,catchall:_c()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>l.extend(e,r),e.safeExtend=r=>l.safeExtend(e,r),e.merge=r=>l.merge(e,r),e.pick=r=>l.pick(e,r),e.omit=r=>l.omit(e,r),e.partial=(...r)=>l.partial(Ji,e,r[0]),e.required=(...r)=>l.required(Mi,e,r[0]);});function D(e,t){let r={type:"object",get shape(){return l.assignProp(this,"shape",e?l.objectClone(e):{}),this.shape},...l.normalizeParams(t)};return new yc(r)}var xc=c("ZodUnion",(e,t)=>{hn.init(e,t),I.init(e,t),e.options=t.options;});function W(e,t){return new xc({type:"union",options:e,...l.normalizeParams(t)})}var kc=c("ZodIntersection",(e,t)=>{$n.init(e,t),I.init(e,t);});function zc(e,t){return new kc({type:"intersection",left:e,right:t})}var wc=c("ZodRecord",(e,t)=>{_n.init(e,t),I.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType;});function bt(e,t,r){return new wc({type:"record",keyType:e,valueType:t,...l.normalizeParams(r)})}var $t=c("ZodEnum",(e,t)=>{bn.init(e,t),I.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let a={};for(let o of n)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new $t({...t,checks:[],...l.normalizeParams(i),entries:a})},e.exclude=(n,i)=>{let a={...t.entries};for(let o of n)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new $t({...t,checks:[],...l.normalizeParams(i),entries:a})};});function oe(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new $t({type:"enum",entries:r,...l.normalizeParams(t)})}var Ic=c("ZodLiteral",(e,t)=>{yn.init(e,t),I.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 Fi(e,t){return new Ic({type:"literal",values:Array.isArray(e)?e:[e],...l.normalizeParams(t)})}var Sc=c("ZodTransform",(e,t)=>{xn.init(e,t),I.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Q(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(l.issue(a,r.value,t));else {let o=a;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(l.issue(o));}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)};});function jc(e){return new Sc({type:"transform",transform:e})}var Ji=c("ZodOptional",(e,t)=>{kn.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function _(e){return new Ji({type:"optional",innerType:e})}var Uc=c("ZodNullable",(e,t)=>{zn.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ze(e){return new Uc({type:"nullable",innerType:e})}var Oc=c("ZodDefault",(e,t)=>{wn.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function y(e,t){return new Oc({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():l.shallowClone(t)}})}var Nc=c("ZodPrefault",(e,t)=>{In.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Pc(e,t){return new Nc({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():l.shallowClone(t)}})}var Mi=c("ZodNonOptional",(e,t)=>{Sn.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Zc(e,t){return new Mi({type:"nonoptional",innerType:e,...l.normalizeParams(t)})}var Dc=c("ZodCatch",(e,t)=>{jn.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Tc(e,t){return new Dc({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Ec=c("ZodPipe",(e,t)=>{Un.init(e,t),I.init(e,t),e.in=t.in,e.out=t.out;});function Ei(e,t){return new Ec({type:"pipe",in:e,out:t})}var Ac=c("ZodReadonly",(e,t)=>{On.init(e,t),I.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Lc(e){return new Ac({type:"readonly",innerType:e})}var Cc=c("ZodCustom",(e,t)=>{Nn.init(e,t),I.init(e,t);});function Rc(e,t={}){return si(Cc,e,t)}function Vc(e){return li(e)}P(ut());var s=Oe(),N=$().check(ie(7),O(),$e(/^#([0-9a-f]{3}){1,2}$/i),h());s.add(N,{description:"A base schema for describing the format of colors"});var Te=y(N,"#151718");s.add(Te,{description:"The dark background color of the workspace"});var Ee=y(N,"#cbd5e1");s.add(Ee,{description:"The light background color of the workspace"});var Ae=y(N,"#1fb2a6");s.add(Ae,{description:"The primary brand specific color of the workspace"});var Le=_(N);s.add(Le,{description:"The alternate brand specific color of the workspace"});var Ce=_(N);s.add(Ce,{description:"The secondary brand specific color of the workspace"});var Re=y(N,"#3fa6ff");s.add(Re,{description:"The color used to display hyperlink text"});var Ve=y(N,"#818cf8");s.add(Ve,{description:"The second brand specific color of the workspace"});var Fe=y(N,"#45b27e");s.add(Fe,{description:"The success color of the workspace"});var Je=y(N,"#38bdf8");s.add(Je,{description:"The informational color of the workspace"});var Me=y(N,"#f3d371");s.add(Me,{description:"The warning color of the workspace"});var We=y(N,"#d8314a");s.add(We,{description:"The danger color of the workspace"});var Be=_(N);s.add(Be,{description:"The fatal color of the workspace"});var Ge=y(N,"#4ade80");s.add(Ge,{description:"The positive number color of the workspace"});var Ke=y(N,"#ef4444");s.add(Ke,{description:"The negative number color of the workspace"});var Xe=_(De(N));s.add(Xe,{description:"The color stops for the base gradient color pattern used in the workspace"});var Jc=D({foreground:Ee,background:Te,brand:Ae,alternate:Le,accent:Ce,link:Re,help:Ve,success:Fe,info:Je,warning:Me,danger:We,fatal:Be,positive:Ge,negative:Ke,gradient:Xe}),Mc=D({foreground:Te,background:Ee,brand:Ae,alternate:Le,accent:Ce,link:Re,help:Ve,success:Fe,info:Je,warning:Me,danger:We,fatal:Be,positive:Ge,negative:Ke,gradient:Xe}),Wc=D({dark:Jc,light:Mc}),Bc=D({dark:Te,light:Ee,brand:Ae,alternate:Le,accent:Ce,link:Re,help:Ve,success:Fe,info:Je,warning:Me,danger:We,fatal:Be,positive:Ge,negative:Ke,gradient:Xe}),ae=_(Z());s.add(ae,{description:"A remote registry URL used to publish distributable packages"});var Bi=y(D({github:ae,npm:ae,cargo:ae,cyclone:ae,container:ae}),{});s.add(Bi,{description:"A list of remote registry URLs used by Storm Software"});var yt=W([Bc,Wc]);s.add(yt,{description:"Colors used for various workspace elements"});var Gi=bt(W([W([Fi("base"),$()]),$()]),yt);s.add(Gi,{description:"Storm theme config values used for styling various package elements"});var Ki=_(W([$().check(h()),De($().check(h()))]));s.add(Ki,{description:"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."});var Xi=$().check(h());s.add(Xi,{description:"The workspace bot user's name (this is the bot that will be used to perform various tasks)"});var qi=$().check(h());s.add(qi,{description:"The email of the workspace bot"});var Yi=D({name:Xi,email:qi});s.add(Yi,{description:"The workspace's bot user's config used to automated various operations tasks"});var Hi=_($().check(h(),Z()));s.add(Hi,{description:"A URL to a banner image used to display the workspace's release"});var Qi=y($().check(h()),chunkUODLXUQT_cjs.p);s.add(Qi,{description:"The alt text for the workspace's release banner image"});var eo=D({url:Hi,alt:Qi});s.add(eo,{description:"The workspace's banner image used during the release process"});var to=_($().check(h()));s.add(to,{description:"A header message appended to the start of the workspace's release notes"});var ro=_($().check(h()));s.add(ro,{description:"A footer message appended to the end of the workspace's release notes"});var no=D({banner:W([eo,$().check(h(),Z())]),header:to,footer:ro});s.add(no,{description:"The workspace's release config used during the release process"});var io=_($().check(h()));s.add(io,{description:"A Twitter/X account associated with the organization/project"});var oo=_($().check(h()));s.add(oo,{description:"A Discord account associated with the organization/project"});var ao=_($().check(h()));s.add(ao,{description:"A Telegram account associated with the organization/project"});var co=_($().check(h()));s.add(co,{description:"A Slack account associated with the organization/project"});var uo=_($().check(h()));s.add(uo,{description:"A Medium account associated with the organization/project"});var so=_($().check(h()));s.add(so,{description:"A GitHub account associated with the organization/project"});var lo=D({twitter:io,discord:oo,telegram:ao,slack:co,medium:uo,github:so});s.add(lo,{description:"The workspace's account config used to store various social media links"});var mo=_($().check(h()));s.add(mo,{description:"The directory used to store the environment's cached file data"});var po=_($().check(h()));s.add(po,{description:"The directory used to store the environment's data files"});var fo=_($().check(h()));s.add(fo,{description:"The directory used to store the environment's configuration files"});var go=_($().check(h()));s.add(go,{description:"The directory used to store the environment's temp files"});var vo=_($().check(h()));s.add(vo,{description:"The directory used to store the environment's log files"});var ho=y($().check(h()),"dist");s.add(ho,{description:"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"});var $o=D({cache:mo,data:po,config:fo,temp:go,log:vo,build:ho});s.add($o,{description:"Various directories used by the workspace to store data, cache, and configuration files"});var _o=y(oe(["minimal","monorepo"]),"monorepo");s.add(_o,{description:"The variant of the workspace. This can be used to enable or disable certain features or configurations."});var bo=y($().check(h()),chunkUODLXUQT_cjs.o);s.add(bo,{description:"The path to the workspace's error codes JSON file"});var yo=_(Z());s.add(yo,{description:"A URL to a page that looks up the workspace's error messages given a specific error code"});var xo=D({codesFile:bo,url:yo});s.add(xo,{description:"The workspace's error config used when creating error details during a system error"});var ko=_($().check(h(),O()));s.add(ko,{description:"The name of the organization"});var zo=_($().check(h()));s.add(zo,{description:"A description of the organization"});var wo=_(Z());s.add(wo,{description:"A URL to the organization's logo image"});var Io=_(Z());s.add(Io,{description:"A URL to the organization's icon image"});var So=_(Z());s.add(So,{description:"A URL to a page that provides more information about the organization"});var jo=D({name:ko,description:zo,logo:wo,icon:Io,url:So});s.add(jo,{description:"The workspace's organization details"});var Uo=y($().check(h(),O()),"https://public.storm-cdn.com/schemas/storm-workspace.schema.json");s.add(Uo,{description:"The URL or file path to the JSON schema file that describes the Storm configuration file"});var Oo=$().check(h(),O());s.add(Oo,{description:"The name of the workspace/project/service/package/scope using this configuration"});var No=$().check(h(),O());s.add(No,{description:"The namespace of the workspace/project/service/package/scope using this configuration"});var Po=W([jo,$().check(h(),O())]);s.add(Po,{description:"The organization of the workspace. This can be a string or an object containing the organization's details"});var Zo=$().check(h(),O());s.add(Zo,{description:"The repo URL of the workspace (i.e. the GitHub repository URL)"});var Do=y($().check(h()),"Apache-2.0");s.add(Do,{description:"The license type of the package"});var To=_(Z());s.add(To,{description:"The homepage of the workspace"});var Eo=_(Z());s.add(Eo,{description:"The documentation site for the workspace"});var Ao=_(Z());s.add(Ao,{description:"The development portal site for the workspace"});var Lo=_(Z());s.add(Lo,{description:"The licensing site for the workspace"});var Co=_(Z());s.add(Co,{description:"The contact site for the workspace"});var Ro=_(Z());s.add(Ro,{description:"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"});var Vo=y($().check(h(),O()),"main");s.add(Vo,{description:"The branch of the workspace"});var Fo=_($().check(h(),O()));s.add(Fo,{description:"A tag specifying the version pre-release identifier"});var Jo=_($().check(h(),O()));s.add(Jo,{description:"The owner of the package"});var Mo=y(oe(["development","staging","production"]).check(h(),O()),"production");s.add(Mo,{description:"The current runtime environment mode for the package"});var Wo=$().check(h(),O());s.add(Wo,{description:"The root directory of the workspace"});var Bo=y(_t(),false);s.add(Bo,{description:"Should all known types of workspace caching be skipped?"});var Go=y(oe(["npm","yarn","pnpm","bun"]),"npm");s.add(Go,{description:"The JavaScript/TypeScript package manager used by the repository"});var Ko=y($().check(h()),"America/New_York");s.add(Ko,{description:"The default timezone of the workspace"});var Xo=y($().check(h()),"en-US");s.add(Xo,{description:"The default locale of the workspace"});var qo=y(oe(["silent","fatal","error","warn","success","info","debug","trace","all"]),"info");s.add(qo,{description:"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."});var Yo=y(_t(),true);s.add(Yo,{description:"Should the logging of the current Storm Workspace configuration be skipped?"});var Ho=y(Ze($().check(h())),null);s.add(Ho,{description:"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."});var xt=y(bt($(),Vi()),{});s.add(xt,{description:"Configuration of each used extension"});var Gp=D({$schema:Uo,extends:Ki,name:Oo,variant:_o,namespace:No,organization:Po,repository:Zo,license:Do,homepage:To,docs:Eo,portal:Ao,licensing:Lo,contact:Co,support:Ro,branch:Vo,preid:Fo,owner:Jo,bot:Yi,release:no,socials:lo,error:xo,mode:Mo,workspaceRoot:Wo,skipCache:Bo,directories:$o,packageManager:Go,timezone:Ko,locale:Xo,logLevel:qo,skipConfigLogging:Yo,registry:Bi,configFile:Ho,colors:W([yt,Gi]),extensions:xt});s.add(xt,{description:"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."});
|
|
21
|
+
exports.$=So;exports.A=Qi;exports.B=eo;exports.C=to;exports.D=ro;exports.E=no;exports.F=io;exports.G=oo;exports.H=ao;exports.I=co;exports.J=uo;exports.K=so;exports.L=lo;exports.M=mo;exports.N=po;exports.O=fo;exports.P=go;exports.Q=vo;exports.R=ho;exports.S=$o;exports.T=_o;exports.U=bo;exports.V=yo;exports.W=xo;exports.X=ko;exports.Y=zo;exports.Z=wo;exports._=Io;exports.a=s;exports.aa=jo;exports.b=Te;exports.ba=Do;exports.c=Ee;exports.ca=To;exports.d=Ae;exports.da=Eo;exports.e=Le;exports.ea=Ao;exports.f=Ce;exports.fa=Lo;exports.g=Re;exports.ga=Co;exports.h=Ve;exports.ha=Ro;exports.i=Fe;exports.ia=Vo;exports.j=Je;exports.ja=Fo;exports.k=Me;exports.ka=Jo;exports.l=We;exports.la=Mo;exports.m=Be;exports.ma=Wo;exports.n=Ge;exports.na=Bo;exports.o=Ke;exports.oa=Go;exports.p=Xe;exports.pa=Ko;exports.q=Jc;exports.qa=Xo;exports.r=Mc;exports.ra=qo;exports.s=Wc;exports.sa=Yo;exports.t=Bc;exports.ta=Ho;exports.u=Bi;exports.ua=xt;exports.v=yt;exports.va=Gp;exports.w=Gi;exports.x=Ki;exports.y=Yi;exports.z=Hi;
|
package/dist/define-config.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StormWorkspaceConfigInput } from './types.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import './schema.cjs';
|
|
4
|
-
import 'zod/mini';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Type the config values for the current Storm workspace
|
|
@@ -54,6 +53,22 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
54
53
|
build?: string | undefined;
|
|
55
54
|
};
|
|
56
55
|
colors: {
|
|
56
|
+
dark?: string | undefined;
|
|
57
|
+
light?: string | undefined;
|
|
58
|
+
brand?: string | undefined;
|
|
59
|
+
alternate?: string | undefined;
|
|
60
|
+
accent?: string | undefined;
|
|
61
|
+
link?: string | undefined;
|
|
62
|
+
help?: string | undefined;
|
|
63
|
+
success?: string | undefined;
|
|
64
|
+
info?: string | undefined;
|
|
65
|
+
warning?: string | undefined;
|
|
66
|
+
danger?: string | undefined;
|
|
67
|
+
fatal?: string | undefined;
|
|
68
|
+
positive?: string | undefined;
|
|
69
|
+
negative?: string | undefined;
|
|
70
|
+
gradient?: string[] | undefined;
|
|
71
|
+
} | {
|
|
57
72
|
dark: {
|
|
58
73
|
foreground?: string | undefined;
|
|
59
74
|
background?: string | undefined;
|
|
@@ -88,7 +103,7 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
88
103
|
negative?: string | undefined;
|
|
89
104
|
gradient?: string[] | undefined;
|
|
90
105
|
};
|
|
91
|
-
} | {
|
|
106
|
+
} | Record<string, {
|
|
92
107
|
dark?: string | undefined;
|
|
93
108
|
light?: string | undefined;
|
|
94
109
|
brand?: string | undefined;
|
|
@@ -104,7 +119,7 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
104
119
|
positive?: string | undefined;
|
|
105
120
|
negative?: string | undefined;
|
|
106
121
|
gradient?: string[] | undefined;
|
|
107
|
-
} |
|
|
122
|
+
} | {
|
|
108
123
|
dark: {
|
|
109
124
|
foreground?: string | undefined;
|
|
110
125
|
background?: string | undefined;
|
|
@@ -139,22 +154,6 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
139
154
|
negative?: string | undefined;
|
|
140
155
|
gradient?: string[] | undefined;
|
|
141
156
|
};
|
|
142
|
-
} | {
|
|
143
|
-
dark?: string | undefined;
|
|
144
|
-
light?: string | undefined;
|
|
145
|
-
brand?: string | undefined;
|
|
146
|
-
alternate?: string | undefined;
|
|
147
|
-
accent?: string | undefined;
|
|
148
|
-
link?: string | undefined;
|
|
149
|
-
help?: string | undefined;
|
|
150
|
-
success?: string | undefined;
|
|
151
|
-
info?: string | undefined;
|
|
152
|
-
warning?: string | undefined;
|
|
153
|
-
danger?: string | undefined;
|
|
154
|
-
fatal?: string | undefined;
|
|
155
|
-
positive?: string | undefined;
|
|
156
|
-
negative?: string | undefined;
|
|
157
|
-
gradient?: string[] | undefined;
|
|
158
157
|
}>;
|
|
159
158
|
$schema?: string | undefined;
|
|
160
159
|
extends?: string | string[] | undefined;
|
|
@@ -174,7 +173,7 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
174
173
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
175
174
|
timezone?: string | undefined;
|
|
176
175
|
locale?: string | undefined;
|
|
177
|
-
logLevel?: "
|
|
176
|
+
logLevel?: "error" | "success" | "silent" | "fatal" | "warn" | "info" | "debug" | "trace" | "all" | undefined;
|
|
178
177
|
skipConfigLogging?: boolean | undefined;
|
|
179
178
|
registry?: {
|
|
180
179
|
github?: string | undefined;
|
package/dist/define-config.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StormWorkspaceConfigInput } from './types.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import './schema.js';
|
|
4
|
-
import 'zod/mini';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Type the config values for the current Storm workspace
|
|
@@ -54,6 +53,22 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
54
53
|
build?: string | undefined;
|
|
55
54
|
};
|
|
56
55
|
colors: {
|
|
56
|
+
dark?: string | undefined;
|
|
57
|
+
light?: string | undefined;
|
|
58
|
+
brand?: string | undefined;
|
|
59
|
+
alternate?: string | undefined;
|
|
60
|
+
accent?: string | undefined;
|
|
61
|
+
link?: string | undefined;
|
|
62
|
+
help?: string | undefined;
|
|
63
|
+
success?: string | undefined;
|
|
64
|
+
info?: string | undefined;
|
|
65
|
+
warning?: string | undefined;
|
|
66
|
+
danger?: string | undefined;
|
|
67
|
+
fatal?: string | undefined;
|
|
68
|
+
positive?: string | undefined;
|
|
69
|
+
negative?: string | undefined;
|
|
70
|
+
gradient?: string[] | undefined;
|
|
71
|
+
} | {
|
|
57
72
|
dark: {
|
|
58
73
|
foreground?: string | undefined;
|
|
59
74
|
background?: string | undefined;
|
|
@@ -88,7 +103,7 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
88
103
|
negative?: string | undefined;
|
|
89
104
|
gradient?: string[] | undefined;
|
|
90
105
|
};
|
|
91
|
-
} | {
|
|
106
|
+
} | Record<string, {
|
|
92
107
|
dark?: string | undefined;
|
|
93
108
|
light?: string | undefined;
|
|
94
109
|
brand?: string | undefined;
|
|
@@ -104,7 +119,7 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
104
119
|
positive?: string | undefined;
|
|
105
120
|
negative?: string | undefined;
|
|
106
121
|
gradient?: string[] | undefined;
|
|
107
|
-
} |
|
|
122
|
+
} | {
|
|
108
123
|
dark: {
|
|
109
124
|
foreground?: string | undefined;
|
|
110
125
|
background?: string | undefined;
|
|
@@ -139,22 +154,6 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
139
154
|
negative?: string | undefined;
|
|
140
155
|
gradient?: string[] | undefined;
|
|
141
156
|
};
|
|
142
|
-
} | {
|
|
143
|
-
dark?: string | undefined;
|
|
144
|
-
light?: string | undefined;
|
|
145
|
-
brand?: string | undefined;
|
|
146
|
-
alternate?: string | undefined;
|
|
147
|
-
accent?: string | undefined;
|
|
148
|
-
link?: string | undefined;
|
|
149
|
-
help?: string | undefined;
|
|
150
|
-
success?: string | undefined;
|
|
151
|
-
info?: string | undefined;
|
|
152
|
-
warning?: string | undefined;
|
|
153
|
-
danger?: string | undefined;
|
|
154
|
-
fatal?: string | undefined;
|
|
155
|
-
positive?: string | undefined;
|
|
156
|
-
negative?: string | undefined;
|
|
157
|
-
gradient?: string[] | undefined;
|
|
158
157
|
}>;
|
|
159
158
|
$schema?: string | undefined;
|
|
160
159
|
extends?: string | string[] | undefined;
|
|
@@ -174,7 +173,7 @@ declare const defineConfig: (input: StormWorkspaceConfigInput) => {
|
|
|
174
173
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
175
174
|
timezone?: string | undefined;
|
|
176
175
|
locale?: string | undefined;
|
|
177
|
-
logLevel?: "
|
|
176
|
+
logLevel?: "error" | "success" | "silent" | "fatal" | "warn" | "info" | "debug" | "trace" | "all" | undefined;
|
|
178
177
|
skipConfigLogging?: boolean | undefined;
|
|
179
178
|
registry?: {
|
|
180
179
|
github?: string | undefined;
|