@shipstatic/ship 2.2.0-beta.5 → 2.2.0-beta.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/dist/cli.cjs CHANGED
@@ -1,44 +1,44 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var iv=Object.create;var Eo=Object.defineProperty;var ov=Object.getOwnPropertyDescriptor;var av=Object.getOwnPropertyNames;var sv=Object.getPrototypeOf,cv=Object.prototype.hasOwnProperty;var te=(e,t)=>()=>(e&&(t=e(e=0)),t);var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)Eo(e,r,{get:t[r],enumerable:!0})},uv=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of av(t))!cv.call(e,n)&&n!==r&&Eo(e,n,{get:()=>t[n],enumerable:!(i=ov(t,n))||i.enumerable});return e};var se=(e,t,r)=>(r=e!=null?iv(sv(e)):{},uv(t||!e||!e.__esModule?Eo(r,"default",{value:e,enumerable:!0}):r,e));var sn=X(To=>{"use strict";var lr=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},Do=class extends lr{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};To.CommanderError=lr;To.InvalidArgumentError=Do});var dr=X(Ao=>{"use strict";var{InvalidArgumentError:lv}=sn(),Po=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new lv(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function dv(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Ao.Argument=Po;Ao.humanReadableArgName=dv});var Uo=X(jo=>{"use strict";var{humanReadableArgName:pv}=dr(),Co=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,o)=>n.name().localeCompare(o.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),o=i.long&&t._findOption(i.long);!n&&!o?r.push(i):i.long&&!o?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(o=>!o.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>pv(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(o=>{let a=i(o);n.has(a)||n.set(a,[])}),r.forEach(o=>{let a=i(o);n.has(a)||n.set(a,[]),n.get(a).push(o)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function o(f,p){return r.formatItem(f,i,p,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],s=r.commandDescription(t);s.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(s),n),""]));let c=r.visibleArguments(t).map(f=>o(r.styleArgumentTerm(r.argumentTerm(f)),r.styleArgumentDescription(r.argumentDescription(f))));if(a=a.concat(this.formatItemList("Arguments:",c,r)),this.groupItems(t.options,r.visibleOptions(t),f=>f.helpGroupHeading??"Options:").forEach((f,p)=>{let y=f.map(b=>o(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));a=a.concat(this.formatItemList(p,y,r))}),r.showGlobalOptions){let f=r.visibleGlobalOptions(t).map(p=>o(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",f,r))}return this.groupItems(t.commands,r.visibleCommands(t),f=>f.helpGroup()||"Commands:").forEach((f,p)=>{let y=f.map(b=>o(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));a=a.concat(this.formatItemList(p,y,r))}),a.join(`
3
- `)}displayWidth(t){return Nd(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,i,n){let a=" ".repeat(2);if(!i)return a+t;let s=t.padEnd(r+t.length-n.displayWidth(t)),c=2,l=(this.helpWidth??80)-r-c-2,f;return l<this.minWidthToWrap||n.preformatted(i)?f=i:f=n.boxWrap(i,l).replace(/\n/g,`
2
+ "use strict";var sv=Object.create;var Do=Object.defineProperty;var cv=Object.getOwnPropertyDescriptor;var uv=Object.getOwnPropertyNames;var lv=Object.getPrototypeOf,dv=Object.prototype.hasOwnProperty;var ee=(e,t)=>()=>(e&&(t=e(e=0)),t);var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)Do(e,r,{get:t[r],enumerable:!0})},pv=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of uv(t))!dv.call(e,n)&&n!==r&&Do(e,n,{get:()=>t[n],enumerable:!(i=cv(t,n))||i.enumerable});return e};var se=(e,t,r)=>(r=e!=null?sv(lv(e)):{},pv(t||!e||!e.__esModule?Do(r,"default",{value:e,enumerable:!0}):r,e));var sn=X(To=>{"use strict";var lr=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},Po=class extends lr{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};To.CommanderError=lr;To.InvalidArgumentError=Po});var dr=X(Co=>{"use strict";var{InvalidArgumentError:mv}=sn(),Ao=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new mv(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function fv(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Co.Argument=Ao;Co.humanReadableArgName=fv});var No=X(Uo=>{"use strict";var{humanReadableArgName:hv}=dr(),jo=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,o)=>n.name().localeCompare(o.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),o=i.long&&t._findOption(i.long);!n&&!o?r.push(i):i.long&&!o?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(o=>!o.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>hv(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(o=>{let a=i(o);n.has(a)||n.set(a,[])}),r.forEach(o=>{let a=i(o);n.has(a)||n.set(a,[]),n.get(a).push(o)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function o(f,p){return r.formatItem(f,i,p,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],s=r.commandDescription(t);s.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(s),n),""]));let c=r.visibleArguments(t).map(f=>o(r.styleArgumentTerm(r.argumentTerm(f)),r.styleArgumentDescription(r.argumentDescription(f))));if(a=a.concat(this.formatItemList("Arguments:",c,r)),this.groupItems(t.options,r.visibleOptions(t),f=>f.helpGroupHeading??"Options:").forEach((f,p)=>{let y=f.map(b=>o(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));a=a.concat(this.formatItemList(p,y,r))}),r.showGlobalOptions){let f=r.visibleGlobalOptions(t).map(p=>o(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",f,r))}return this.groupItems(t.commands,r.visibleCommands(t),f=>f.helpGroup()||"Commands:").forEach((f,p)=>{let y=f.map(b=>o(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));a=a.concat(this.formatItemList(p,y,r))}),a.join(`
3
+ `)}displayWidth(t){return Rd(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,i,n){let a=" ".repeat(2);if(!i)return a+t;let s=t.padEnd(r+t.length-n.displayWidth(t)),c=2,l=(this.helpWidth??80)-r-c-2,f;return l<this.minWidthToWrap||n.preformatted(i)?f=i:f=n.boxWrap(i,l).replace(/\n/g,`
4
4
  `+" ".repeat(r+c)),a+s+" ".repeat(c)+f.replace(/\n/g,`
5
5
  ${a}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let i=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,o=[];return i.forEach(a=>{let s=a.match(n);if(s===null){o.push("");return}let c=[s.shift()],u=this.displayWidth(c[0]);s.forEach(l=>{let f=this.displayWidth(l);if(u+f<=r){c.push(l),u+=f;return}o.push(c.join(""));let p=l.trimStart();c=[p],u=this.displayWidth(p)}),o.push(c.join(""))}),o.join(`
6
- `)}};function Nd(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}jo.Help=Co;jo.stripColor=Nd});var Fo=X(Lo=>{"use strict";var{InvalidArgumentError:mv}=sn(),No=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=fv(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new mv(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Rd(this.name().replace(/^no-/,"")):Rd(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Ro=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(t,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,o=n!==void 0?n:!1;return r.negate===(o===t)}};function Rd(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function fv(e){let t,r,i=/^-[^-]$/,n=/^--[^-]/,o=e.split(/[ |,]+/).concat("guard");if(i.test(o[0])&&(t=o.shift()),n.test(o[0])&&(r=o.shift()),!t&&i.test(o[0])&&(t=o.shift()),!t&&n.test(o[0])&&(t=r,r=o.shift()),o[0].startsWith("-")){let a=o[0],s=`option creation failed due to '${a}' in option flags '${e}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
6
+ `)}};function Rd(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Uo.Help=jo;Uo.stripColor=Rd});var Zo=X(Fo=>{"use strict";var{InvalidArgumentError:gv}=sn(),Ro=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=vv(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new gv(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Ld(this.name().replace(/^no-/,"")):Ld(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Lo=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(t,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,o=n!==void 0?n:!1;return r.negate===(o===t)}};function Ld(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function vv(e){let t,r,i=/^-[^-]$/,n=/^--[^-]/,o=e.split(/[ |,]+/).concat("guard");if(i.test(o[0])&&(t=o.shift()),n.test(o[0])&&(r=o.shift()),!t&&i.test(o[0])&&(t=o.shift()),!t&&n.test(o[0])&&(t=r,r=o.shift()),o[0].startsWith("-")){let a=o[0],s=`option creation failed due to '${a}' in option flags '${e}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
7
7
  - a short flag is a single dash and a single character
8
8
  - either use a single dash and a single character (for a short flag)
9
9
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(a)?new Error(`${s}
10
10
  - too many short flags`):n.test(a)?new Error(`${s}
11
11
  - too many long flags`):new Error(`${s}
12
- - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}Lo.Option=No;Lo.DualOptions=Ro});var Fd=X(Ld=>{"use strict";function hv(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let i=0;i<=e.length;i++)r[i]=[i];for(let i=0;i<=t.length;i++)r[0][i]=i;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let o=1;e[n-1]===t[i-1]?o=0:o=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[e.length][t.length]}function gv(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(a=>a.slice(2)));let i=[],n=3,o=.4;return t.forEach(a=>{if(a.length<=1)return;let s=hv(e,a),c=Math.max(e.length,a.length);(c-s)/c>o&&(s<n?(n=s,i=[a]):s===n&&i.push(a))}),i.sort((a,s)=>a.localeCompare(s)),r&&(i=i.map(a=>`--${a}`)),i.length>1?`
12
+ - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}Fo.Option=Ro;Fo.DualOptions=Lo});var Zd=X(Fd=>{"use strict";function yv(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let i=0;i<=e.length;i++)r[i]=[i];for(let i=0;i<=t.length;i++)r[0][i]=i;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let o=1;e[n-1]===t[i-1]?o=0:o=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[e.length][t.length]}function _v(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(a=>a.slice(2)));let i=[],n=3,o=.4;return t.forEach(a=>{if(a.length<=1)return;let s=yv(e,a),c=Math.max(e.length,a.length);(c-s)/c>o&&(s<n?(n=s,i=[a]):s===n&&i.push(a))}),i.sort((a,s)=>a.localeCompare(s)),r&&(i=i.map(a=>`--${a}`)),i.length>1?`
13
13
  (Did you mean one of ${i.join(", ")}?)`:i.length===1?`
14
- (Did you mean ${i[0]}?)`:""}Ld.suggestSimilar=gv});var Bd=X(Go=>{"use strict";var vv=require("events").EventEmitter,Zo=require("child_process"),Pe=require("path"),pr=require("fs"),U=require("process"),{Argument:yv,humanReadableArgName:_v}=dr(),{CommanderError:Mo}=sn(),{Help:$v,stripColor:xv}=Uo(),{Option:Zd,DualOptions:bv}=Fo(),{suggestSimilar:Md}=Fd(),Vo=class e extends vv{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>U.stdout.write(r),writeErr:r=>U.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>U.stdout.isTTY?U.stdout.columns:void 0,getErrHelpWidth:()=>U.stderr.isTTY?U.stderr.columns:void 0,getOutHasColors:()=>Bo()??(U.stdout.isTTY&&U.stdout.hasColors?.()),getErrHasColors:()=>Bo()??(U.stderr.isTTY&&U.stderr.hasColors?.()),stripColor:r=>xv(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,i){let n=r,o=i;typeof n=="object"&&n!==null&&(o=n,n=null),o=o||{};let[,a,s]=t.match(/([^ ]+) *(.*)/),c=this.createCommand(a);return n&&(c.description(n),c._executableHandler=!0),o.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(o.noHelp||o.hidden),c._executableFile=o.executableFile||null,s&&c.arguments(s),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new $v,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new yv(t,r)}argument(t,r,i,n){let o=this.createArgument(t,r);return typeof i=="function"?o.default(n).argParser(i):o.default(i),this.addArgument(o),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,n,o]=i.match(/([^ ]+) *(.*)/),a=r??"display help for command",s=this.createCommand(n);return s.helpOption(!1),o&&s.arguments(o),a&&s.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=s,(t||r)&&this._initCommandGroup(s),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
- Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,i){this._exitCallback&&this._exitCallback(new Mo(t,r,i)),U.exit(t)}action(t){let r=i=>{let n=this.registeredArguments.length,o=i.slice(0,n);return this._storeOptionsAsProperties?o[n]=this:o[n]=this.opts(),o.push(this),t.apply(this,o)};return this._actionHandler=r,this}createOption(t,r){return new Zd(t,r)}_callParseArg(t,r,i,n){try{return t.parseArg(r,i)}catch(o){if(o.code==="commander.invalidArgument"){let a=`${n} ${o.message}`;this.error(a,{exitCode:o.exitCode,code:o.code})}throw o}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
17
- - already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),i=r(t).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),o=r(t).join("|");throw new Error(`cannot add command '${o}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),i=t.attributeName();if(t.negate){let o=t.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(i,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(i,t.defaultValue,"default");let n=(o,a,s)=>{o==null&&t.presetArg!==void 0&&(o=t.presetArg);let c=this.getOptionValue(i);o!==null&&t.parseArg?o=this._callParseArg(t,o,c,a):o!==null&&t.variadic&&(o=t._collectValue(o,c)),o==null&&(t.negate?o=!1:t.isBoolean()||t.optional?o=!0:o=""),this.setOptionValueWithSource(i,o,s)};return this.on("option:"+r,o=>{let a=`error: option '${t.flags}' argument '${o}' is invalid.`;n(o,a,"cli")}),t.envVar&&this.on("optionEnv:"+r,o=>{let a=`error: option '${t.flags}' value '${o}' from env '${t.envVar}' is invalid.`;n(o,a,"env")}),this}_optionEx(t,r,i,n,o){if(typeof r=="object"&&r instanceof Zd)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,i);if(a.makeOptionMandatory(!!t.mandatory),typeof n=="function")a.default(o).argParser(n);else if(n instanceof RegExp){let s=n;n=(c,u)=>{let l=s.exec(c);return l?l[0]:u},a.default(o).argParser(n)}else a.default(n);return this.addOption(a)}option(t,r,i,n){return this._optionEx({},t,r,i,n)}requiredOption(t,r,i,n){return this._optionEx({mandatory:!0},t,r,i,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,i){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(r=i.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){U.versions?.electron&&(r.from="electron");let n=U.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=U.argv),this.rawArgs=t.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2);break;case"electron":U.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return this._parseCommand([],i),this}async parseAsync(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
14
+ (Did you mean ${i[0]}?)`:""}Fd.suggestSimilar=_v});var Gd=X(Ho=>{"use strict";var $v=require("events").EventEmitter,Mo=require("child_process"),Te=require("path"),pr=require("fs"),U=require("process"),{Argument:xv,humanReadableArgName:bv}=dr(),{CommanderError:Vo}=sn(),{Help:kv,stripColor:Sv}=No(),{Option:Md,DualOptions:wv}=Zo(),{suggestSimilar:Vd}=Zd(),Bo=class e extends $v{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>U.stdout.write(r),writeErr:r=>U.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>U.stdout.isTTY?U.stdout.columns:void 0,getErrHelpWidth:()=>U.stderr.isTTY?U.stderr.columns:void 0,getOutHasColors:()=>Go()??(U.stdout.isTTY&&U.stdout.hasColors?.()),getErrHasColors:()=>Go()??(U.stderr.isTTY&&U.stderr.hasColors?.()),stripColor:r=>Sv(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,i){let n=r,o=i;typeof n=="object"&&n!==null&&(o=n,n=null),o=o||{};let[,a,s]=t.match(/([^ ]+) *(.*)/),c=this.createCommand(a);return n&&(c.description(n),c._executableHandler=!0),o.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(o.noHelp||o.hidden),c._executableFile=o.executableFile||null,s&&c.arguments(s),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new kv,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new xv(t,r)}argument(t,r,i,n){let o=this.createArgument(t,r);return typeof i=="function"?o.default(n).argParser(i):o.default(i),this.addArgument(o),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,n,o]=i.match(/([^ ]+) *(.*)/),a=r??"display help for command",s=this.createCommand(n);return s.helpOption(!1),o&&s.arguments(o),a&&s.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=s,(t||r)&&this._initCommandGroup(s),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
+ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,i){this._exitCallback&&this._exitCallback(new Vo(t,r,i)),U.exit(t)}action(t){let r=i=>{let n=this.registeredArguments.length,o=i.slice(0,n);return this._storeOptionsAsProperties?o[n]=this:o[n]=this.opts(),o.push(this),t.apply(this,o)};return this._actionHandler=r,this}createOption(t,r){return new Md(t,r)}_callParseArg(t,r,i,n){try{return t.parseArg(r,i)}catch(o){if(o.code==="commander.invalidArgument"){let a=`${n} ${o.message}`;this.error(a,{exitCode:o.exitCode,code:o.code})}throw o}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
17
+ - already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),i=r(t).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),o=r(t).join("|");throw new Error(`cannot add command '${o}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),i=t.attributeName();if(t.negate){let o=t.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(i,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(i,t.defaultValue,"default");let n=(o,a,s)=>{o==null&&t.presetArg!==void 0&&(o=t.presetArg);let c=this.getOptionValue(i);o!==null&&t.parseArg?o=this._callParseArg(t,o,c,a):o!==null&&t.variadic&&(o=t._collectValue(o,c)),o==null&&(t.negate?o=!1:t.isBoolean()||t.optional?o=!0:o=""),this.setOptionValueWithSource(i,o,s)};return this.on("option:"+r,o=>{let a=`error: option '${t.flags}' argument '${o}' is invalid.`;n(o,a,"cli")}),t.envVar&&this.on("optionEnv:"+r,o=>{let a=`error: option '${t.flags}' value '${o}' from env '${t.envVar}' is invalid.`;n(o,a,"env")}),this}_optionEx(t,r,i,n,o){if(typeof r=="object"&&r instanceof Md)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,i);if(a.makeOptionMandatory(!!t.mandatory),typeof n=="function")a.default(o).argParser(n);else if(n instanceof RegExp){let s=n;n=(c,u)=>{let l=s.exec(c);return l?l[0]:u},a.default(o).argParser(n)}else a.default(n);return this.addOption(a)}option(t,r,i,n){return this._optionEx({},t,r,i,n)}requiredOption(t,r,i,n){return this._optionEx({mandatory:!0},t,r,i,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,i){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(r=i.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){U.versions?.electron&&(r.from="electron");let n=U.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=U.argv),this.rawArgs=t.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2);break;case"electron":U.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return this._parseCommand([],i),this}async parseAsync(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
18
18
  - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,i){if(pr.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",o=`'${t}' does not exist
19
19
  - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
20
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
21
- - ${n}`;throw new Error(o)}_executeSubCommand(t,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function o(l,f){let p=Pe.resolve(l,f);if(pr.existsSync(p))return p;if(n.includes(Pe.extname(f)))return;let y=n.find(b=>pr.existsSync(`${p}${b}`));if(y)return`${p}${y}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=pr.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=Pe.resolve(Pe.dirname(l),s)}if(s){let l=o(s,a);if(!l&&!t._executableFile&&this._scriptPath){let f=Pe.basename(this._scriptPath,Pe.extname(this._scriptPath));f!==this._name&&(l=o(s,`${f}-${t._name}`))}a=l||a}i=n.includes(Pe.extname(a));let c;U.platform!=="win32"?i?(r.unshift(a),r=Vd(U.execArgv).concat(r),c=Zo.spawn(U.argv[0],r,{stdio:"inherit"})):c=Zo.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=Vd(U.execArgv).concat(r),c=Zo.spawn(U.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{U.on(f,()=>{c.killed===!1&&c.exitCode===null&&c.kill(f)})});let u=this._exitCallback;c.on("close",l=>{l=l??1,u?u(new Mo(l,"commander.executeSubCommandAsync","(close)")):U.exit(l)}),c.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!u)U.exit(1);else{let f=new Mo(1,"commander.executeSubCommandAsync","(error)");f.nestedError=l,u(f)}}),this.runningCommand=c}_dispatchSubcommand(t,r,i){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let o;return o=this._chainOrCallSubCommandHook(o,n,"preSubcommand"),o=this._chainOrCall(o,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),o}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(i,n,o)=>{let a=n;if(n!==null&&i.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;a=this._callParseArg(i,n,o,s)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let o=i.defaultValue;i.variadic?n<this.args.length?(o=this.args.slice(n),i.parseArg&&(o=o.reduce((a,s)=>t(i,s,a),i.defaultValue))):o===void 0&&(o=[]):n<this.args.length&&(o=this.args[n],i.parseArg&&(o=t(i,o,i.defaultValue))),r[n]=o}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let i=t,n=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(a=>{n.push({hookedCommand:o,callback:a})})}),r==="postAction"&&n.reverse(),n.forEach(o=>{i=this._chainOrCall(i,()=>o.callback(o.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,r,i){let n=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(o=>{n=this._chainOrCall(n,()=>o(this,r))}),n}_parseCommand(t,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),r=i.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(o,t,r)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(o))n(),this._processArguments(),this.parent.emit(o,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=t.find(o=>i.conflictsWith.includes(o.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],i=[],n=r;function o(l){return l.length>1&&l[0]==="-"}let a=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(f=>f.options.map(p=>p.short).some(p=>/^-\d$/.test(p))):!1,s=null,c=null,u=0;for(;u<t.length||c;){let l=c??t[u++];if(c=null,l==="--"){n===i&&n.push(l),n.push(...t.slice(u));break}if(s&&(!o(l)||a(l))){this.emit(`option:${s.name()}`,l);continue}if(s=null,o(l)){let f=this._findOption(l);if(f){if(f.required){let p=t[u++];p===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,p)}else if(f.optional){let p=null;u<t.length&&(!o(t[u])||a(t[u]))&&(p=t[u++]),this.emit(`option:${f.name()}`,p)}else this.emit(`option:${f.name()}`);s=f.variadic?f:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let f=this._findOption(`-${l[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,l.slice(2)):(this.emit(`option:${f.name()}`),c=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let f=l.indexOf("="),p=this._findOption(l.slice(0,f));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(f+1));continue}}if(n===r&&o(l)&&!(this.commands.length===0&&a(l))&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),i.push(...t.slice(u));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(u));break}else if(this._defaultCommandName){i.push(l,...t.slice(u));break}}if(this._passThroughOptions){n.push(l,...t.slice(u));break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
21
+ - ${n}`;throw new Error(o)}_executeSubCommand(t,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function o(l,f){let p=Te.resolve(l,f);if(pr.existsSync(p))return p;if(n.includes(Te.extname(f)))return;let y=n.find(b=>pr.existsSync(`${p}${b}`));if(y)return`${p}${y}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=pr.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=Te.resolve(Te.dirname(l),s)}if(s){let l=o(s,a);if(!l&&!t._executableFile&&this._scriptPath){let f=Te.basename(this._scriptPath,Te.extname(this._scriptPath));f!==this._name&&(l=o(s,`${f}-${t._name}`))}a=l||a}i=n.includes(Te.extname(a));let c;U.platform!=="win32"?i?(r.unshift(a),r=Bd(U.execArgv).concat(r),c=Mo.spawn(U.argv[0],r,{stdio:"inherit"})):c=Mo.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=Bd(U.execArgv).concat(r),c=Mo.spawn(U.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{U.on(f,()=>{c.killed===!1&&c.exitCode===null&&c.kill(f)})});let u=this._exitCallback;c.on("close",l=>{l=l??1,u?u(new Vo(l,"commander.executeSubCommandAsync","(close)")):U.exit(l)}),c.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!u)U.exit(1);else{let f=new Vo(1,"commander.executeSubCommandAsync","(error)");f.nestedError=l,u(f)}}),this.runningCommand=c}_dispatchSubcommand(t,r,i){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let o;return o=this._chainOrCallSubCommandHook(o,n,"preSubcommand"),o=this._chainOrCall(o,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),o}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(i,n,o)=>{let a=n;if(n!==null&&i.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;a=this._callParseArg(i,n,o,s)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let o=i.defaultValue;i.variadic?n<this.args.length?(o=this.args.slice(n),i.parseArg&&(o=o.reduce((a,s)=>t(i,s,a),i.defaultValue))):o===void 0&&(o=[]):n<this.args.length&&(o=this.args[n],i.parseArg&&(o=t(i,o,i.defaultValue))),r[n]=o}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let i=t,n=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(a=>{n.push({hookedCommand:o,callback:a})})}),r==="postAction"&&n.reverse(),n.forEach(o=>{i=this._chainOrCall(i,()=>o.callback(o.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,r,i){let n=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(o=>{n=this._chainOrCall(n,()=>o(this,r))}),n}_parseCommand(t,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),r=i.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(o,t,r)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(o))n(),this._processArguments(),this.parent.emit(o,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=t.find(o=>i.conflictsWith.includes(o.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],i=[],n=r;function o(l){return l.length>1&&l[0]==="-"}let a=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(f=>f.options.map(p=>p.short).some(p=>/^-\d$/.test(p))):!1,s=null,c=null,u=0;for(;u<t.length||c;){let l=c??t[u++];if(c=null,l==="--"){n===i&&n.push(l),n.push(...t.slice(u));break}if(s&&(!o(l)||a(l))){this.emit(`option:${s.name()}`,l);continue}if(s=null,o(l)){let f=this._findOption(l);if(f){if(f.required){let p=t[u++];p===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,p)}else if(f.optional){let p=null;u<t.length&&(!o(t[u])||a(t[u]))&&(p=t[u++]),this.emit(`option:${f.name()}`,p)}else this.emit(`option:${f.name()}`);s=f.variadic?f:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let f=this._findOption(`-${l[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,l.slice(2)):(this.emit(`option:${f.name()}`),c=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let f=l.indexOf("="),p=this._findOption(l.slice(0,f));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(f+1));continue}}if(n===r&&o(l)&&!(this.commands.length===0&&a(l))&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),i.push(...t.slice(u));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(u));break}else if(this._defaultCommandName){i.push(l,...t.slice(u));break}}if(this._passThroughOptions){n.push(l,...t.slice(u));break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
22
22
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
23
23
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
24
- `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,o=i.code||"commander.error";this._exit(n,o,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in U.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,U.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new bv(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let i=a=>{let s=a.attributeName(),c=this.getOptionValue(s),u=this.options.find(f=>f.negate&&s===f.attributeName()),l=this.options.find(f=>!f.negate&&s===f.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:l||a},n=a=>{let s=i(a),c=s.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},o=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],o=this;do{let a=o.createHelp().visibleOptions(o).filter(s=>s.long).map(s=>s.long);n=n.concat(a),o=o.parent}while(o&&!o._enablePositionalOptions);r=Md(t,n)}let i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${t.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(o=>{n.push(o.name()),o.alias()&&n.push(o.alias())}),r=Md(t,n)}let i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
25
- `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>_v(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=Pe.basename(t,Pe.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),i=this._getOutputContext(t);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);return i.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,i,n,o;return r?(i=s=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(i=s=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:r,write:s=>(n||(s=this._outputConfiguration.stripColor(s)),i(s)),hasColors:n,helpWidth:o}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let i=this._getOutputContext(t),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let o=this.helpInformation({error:i.error});if(r&&(o=r(o),typeof o!="string"&&!Buffer.isBuffer(o)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(o),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(U.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
24
+ `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,o=i.code||"commander.error";this._exit(n,o,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in U.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,U.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new wv(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let i=a=>{let s=a.attributeName(),c=this.getOptionValue(s),u=this.options.find(f=>f.negate&&s===f.attributeName()),l=this.options.find(f=>!f.negate&&s===f.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:l||a},n=a=>{let s=i(a),c=s.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},o=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],o=this;do{let a=o.createHelp().visibleOptions(o).filter(s=>s.long).map(s=>s.long);n=n.concat(a),o=o.parent}while(o&&!o._enablePositionalOptions);r=Vd(t,n)}let i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${t.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(o=>{n.push(o.name()),o.alias()&&n.push(o.alias())}),r=Vd(t,n)}let i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
25
+ `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>bv(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=Te.basename(t,Te.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),i=this._getOutputContext(t);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);return i.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,i,n,o;return r?(i=s=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(i=s=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:r,write:s=>(n||(s=this._outputConfiguration.stripColor(s)),i(s)),hasColors:n,helpWidth:o}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let i=this._getOutputContext(t),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let o=this.helpInformation({error:i.error});if(r&&(o=r(o),typeof o!="string"&&!Buffer.isBuffer(o)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(o),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(U.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
26
26
  Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,o=>{let a;typeof r=="function"?a=r({error:o.error,command:o.command}):a=r,a&&o.write(`${a}
27
- `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Vd(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",o;return(o=t.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?n=o[3]:i=o[3]):(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],i=o[3],n=o[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function Bo(){if(U.env.NO_COLOR||U.env.FORCE_COLOR==="0"||U.env.FORCE_COLOR==="false")return!1;if(U.env.FORCE_COLOR||U.env.CLICOLOR_FORCE!==void 0)return!0}Go.Command=Vo;Go.useColor=Bo});var Jd=X(ge=>{"use strict";var{Argument:Gd}=dr(),{Command:Ho}=Bd(),{CommanderError:kv,InvalidArgumentError:Hd}=sn(),{Help:Sv}=Uo(),{Option:Wd}=Fo();ge.program=new Ho;ge.createCommand=e=>new Ho(e);ge.createOption=(e,t)=>new Wd(e,t);ge.createArgument=(e,t)=>new Gd(e,t);ge.Command=Ho;ge.Option=Wd;ge.Argument=Gd;ge.Help=Sv;ge.CommanderError=kv;ge.InvalidArgumentError=Hd;ge.InvalidOptionArgumentError=Hd});function tp(e){if(!e||typeof e!="string")return;let t=e.trim().toLowerCase();return Object.values(Jo).includes(t)?t:void 0}function np(e){if(e==null)return;if(typeof e!="string")throw O.validation("Idempotency key must be a string.");let t=e.trim();if(!t)throw O.validation("Idempotency key must not be empty.");if(t.length>un.MAX_LENGTH)throw O.validation(`Idempotency key must be at most ${un.MAX_LENGTH} characters.`);return t}function zv(e){let t=e.code;return t==="ERR_INVALID_URL"?!1:typeof t=="string"?!0:e instanceof TypeError?!/\burl\b/i.test(e.message):!1}function ce(e){return e!==null&&typeof e=="object"&&"name"in e&&e.name==="ShipError"&&"status"in e}function Ev(e){let t=e.replace(/\\/g,"/").split("/").pop()??"",r=t.lastIndexOf(".");return r<=0||r===t.length-1?null:t.slice(r+1).toLowerCase()}function qo(e,t){let r=Ev(e);return r===null?!1:Array.isArray(t)?t.includes(r):t.has(r)}function rp(e){return Tv.test(e)}function Xo(e){return e.replace(/\\/g,"/").split("/").filter(Boolean).some(r=>Ko.has(r))}function Pv(e){return e.startsWith(ln.PREFIX)?$t.API_KEY:e.startsWith(dn.PREFIX)?$t.DEPLOY_TOKEN:$t.OPAQUE}function op(e){let t=e.charCodeAt(0)===65279?e.slice(1):e,r;try{r=JSON.parse(t)}catch(i){throw O.config(`invalid JSON format in config: ${i.message}`,{filePath:Ae})}if(r===null||typeof r!="object"||Array.isArray(r))throw O.config(`${Ae} must contain a JSON object`,{filePath:Ae})}function ap(e,t,r){if(!e.startsWith(t.PREFIX))throw O.validation(`${r} must start with "${t.PREFIX}"`);if(e.length!==t.TOTAL_LENGTH)throw O.validation(`${r} must be ${t.TOTAL_LENGTH} characters total (${t.PREFIX} + ${t.HEX_LENGTH} hex chars)`);let i=e.slice(t.PREFIX.length);if(!new RegExp(`^[a-f0-9]{${t.HEX_LENGTH}}$`,"i").test(i))throw O.validation(`${r} must contain ${t.HEX_LENGTH} hexadecimal characters after "${t.PREFIX}" prefix`)}function Av(e){ap(e,ln,"API key")}function Cv(e){ap(e,dn,"Deploy token")}function it(e){switch(Pv(e)){case $t.API_KEY:Av(e);return;case $t.DEPLOY_TOKEN:Cv(e);return;case $t.OPAQUE:if(!e)throw O.validation("Token must be a non-empty string")}}function sp(e){if(!e||e.length>cn.MAX_LENGTH||!cn.PATTERN.test(e))throw O.validation(`Caller must be 1-${cn.MAX_LENGTH} characters: letters, digits, dots, underscores, or hyphens`)}function cp(e){try{let t=new URL(e);if(!["http:","https:"].includes(t.protocol))throw O.validation("API URL must use http:// or https:// protocol");if(t.pathname!=="/"&&t.pathname!=="")throw O.validation("API URL must not contain a path");if(t.search||t.hash)throw O.validation("API URL must not contain query parameters or fragments")}catch(t){throw ce(t)?t:O.validation("API URL must be a valid URL")}}function Yo(e){if(e==null)return;if(typeof e!="string")throw O.validation("Password must be a string");let t=e.trim();if(t.length<fr.MIN_LENGTH||t.length>fr.MAX_LENGTH)throw O.validation(`Password must be between ${fr.MIN_LENGTH} and ${fr.MAX_LENGTH} characters`);return t}var ep,Jo,un,Z,ke,A,wv,Wo,Iv,Ov,O,Dv,Ck,Tv,Ko,Qd,ln,dn,cn,$t,Ae,ip,hr,up,pn,lp,jk,Me,dp,fr,B=te(()=>{"use strict";ep={PENDING:"pending",SUCCESS:"success",FAILED:"failed",DELETING:"deleting"},Jo={WEB:"web",SDK:"sdk",CLI:"cli",MCP:"mcp",GIT:"git",N8N:"n8n",GPT:"gpt",VSC:"vsc"},un={HEADER:"Idempotency-Key",MAX_LENGTH:256,WINDOW_SECONDS:1440*60};Z={DEPLOYMENTS:"/deployments",DEPLOYMENT:e=>`/deployments/${e}`,DEPLOYMENT_CONFIG:e=>`/deployments/${e}/config`,DOMAINS:"/domains",DOMAIN:e=>`/domains/${e}`,DOMAIN_VERIFY:e=>`/domains/${e}/verify`,DOMAIN_DNS:e=>`/domains/${e}/dns`,DOMAIN_RECORDS:e=>`/domains/${e}/records`,DOMAIN_SHARE:e=>`/domains/${e}/share`,DOMAIN_PROPAGATION:e=>`/domains/${e}/propagation`,DOMAINS_VALIDATE:"/domains/validate",TOKENS:"/tokens",TOKEN:e=>`/tokens/${e}`,ACCOUNT:"/account",ACCOUNT_KEY:"/account/key",ACCOUNT_CLAIM:"/account/claim",ACTIVITIES:"/activities",LABELS:"/labels",LIMITS:"/limits",PING:"/ping",SETUP:"/setup",SPA_CHECK:"/spa-check",UPLOAD:"/upload"},ke={FILES:"files[]",CHECKSUMS:"checksums",LABELS:"labels",VIA:"via",PASSWORD:"password",BUILD:"build",PRERENDER:"prerender",SPA:"spa",CAPTCHA:"captcha"},A={Validation:"validation_failed",NotFound:"not_found",Forbidden:"forbidden",RateLimit:"rate_limit_exceeded",Authentication:"authentication_failed",Business:"business_logic_error",Api:"internal_server_error",Maintenance:"maintenance",Network:"network_error",Cancelled:"operation_cancelled",File:"file_error",Config:"config_error"},wv=new Set([A.Network,A.Cancelled,A.File,A.Config]),Wo={client:new Set([A.Business,A.Cancelled,A.Config,A.File,A.Forbidden,A.NotFound,A.RateLimit,A.Validation]),network:new Set([A.Network]),auth:new Set([A.Authentication])},Iv=new Set(Object.values(A).filter(e=>!wv.has(e))),Ov=200;O=class e extends Error{type;status;details;constructor(t,r,i,n){super(r),this.type=t,this.status=i,this.details=n,this.name="ShipError"}toResponse(){let t=this.details,r=this.type===A.Authentication&&t?.internal?void 0:this.details;return{error:this.type,message:this.message,status:this.status,details:r}}static async fromHttpResponse(t,r){let i,n,o;try{if(t.headers.get("content-type")?.includes("application/json")){let u=await t.json();if(u&&typeof u=="object"){let l=u;typeof l.message=="string"?i=l.message:typeof l.error=="string"&&(i=l.error),n=l.details,typeof l.error=="string"&&Iv.has(l.error)&&(o=l.error)}}else{let u=(await t.text()).trim();u&&!u.startsWith("<")&&u.length<=Ov&&(i=u)}}catch{}let a=t.headers.get("retry-after");if(a!==null){let c=a.trim(),u=/^\d+$/.test(c)?Number(c):Math.ceil((Date.parse(c)-Date.now())/1e3);if(Number.isFinite(u)&&u>=0){let l=n&&typeof n=="object"?n:{};l.retryAfter===void 0&&(n={...l,retryAfter:u})}}i=i||`${r||"Request"} failed with status ${t.status}`;let s=o??(t.status===401?A.Authentication:t.status===403?A.Forbidden:t.status===429?A.RateLimit:A.Api);return new e(s,i,t.status,n)}static fromFetchError(t,r){if(ce(t))return t;let i=r||"Request",n=t?.name;return n==="AbortError"?e.cancelled(`${i} was cancelled`):n==="TimeoutError"?e.network(`${i} timed out`,{cause:t}):t instanceof Error?zv(t)?e.network(`${i} failed: ${t.message}`,{cause:t}):new e(A.Api,`${i} failed: ${t.message}`):new e(A.Api,`${i} failed: Unknown error`)}static validation(t,r){return new e(A.Validation,t,400,r)}static notFound(t,r){let i=r?`${t} ${r} not found`:`${t} not found`;return new e(A.NotFound,i,404)}static forbidden(t,r){return new e(A.Forbidden,t,403,r)}static rateLimit(t="Too many requests",r){return new e(A.RateLimit,t,429,r)}static authentication(t="Authentication required",r){return new e(A.Authentication,t,401,r)}static business(t,r=400,i){return new e(A.Business,t,r,i)}static network(t,r){return new e(A.Network,t,void 0,r)}static cancelled(t,r){return new e(A.Cancelled,t,void 0,r)}static file(t,r){return new e(A.File,t,void 0,r)}static config(t,r){return new e(A.Config,t,void 0,r)}static api(t,r=500,i){return new e(A.Api,t,r,i)}static maintenance(t,r){return new e(A.Maintenance,t,503,r)}isClientError(){return Wo.client.has(this.type)?!0:this.status!==void 0&&this.status>=400&&this.status<500}isNetworkError(){return Wo.network.has(this.type)}isAuthError(){return Wo.auth.has(this.type)}isType(t){return this.type===t}};Dv=["html","htm","xhtml","xml","txt","md","markdown","pdf","csv","json","jsonc","webmanifest","map","toml","yaml","yml","rss","atom","css","scss","sass","less","js","mjs","cjs","jsx","ts","tsx","wasm","vue","svelte","png","jpg","jpeg","gif","webp","avif","svg","ico","bmp","tif","tiff","heic","heif","woff","woff2","ttf","otf","eot","mp3","wav","ogg","oga","opus","m4a","aac","flac","weba","mp4","webm","ogv","mov","m4v","avi","glb","gltf","usdz","vtt","srt","zip"],Ck=Dv.map(e=>`.${e}`).join(","),Tv=/[\x00-\x1f\x7f#?%\\<>"]/;Ko=new Set(["node_modules","package.json"]);Qd={SESSION:"session",API_KEY:"apiKey",TOKEN:"token",AGENT:"agent",OAUTH:"oauth",WEBHOOK:"webhook",SYSTEM:"system"},ln={PREFIX:"ship-",HEX_LENGTH:32,TOTAL_LENGTH:37,HINT_LENGTH:4},dn={PREFIX:"deploy-",HEX_LENGTH:32,TOTAL_LENGTH:39},cn={HEADER:"X-Caller",MAX_LENGTH:128,PATTERN:/^[a-zA-Z0-9._-]+$/},$t={API_KEY:Qd.API_KEY,DEPLOY_TOKEN:Qd.TOKEN,OPAQUE:"opaque"};Ae="ship.json",ip={rewrites:[{source:"/(.*)",destination:"/index.html"}]},hr={INDEX_FILE:"index.html",MAX_INDEX_BYTES:100*1024};up="https://api.shipstatic.com",pn={TOKEN:"SHIP_TOKEN",API_URL:"SHIP_API_URL"},lp="https://my.shipstatic.com/api-key",jk=4320*60,Me={MIN_LENGTH:3,MAX_LENGTH:25,MAX_COUNT:10,SEPARATORS:"._-"},dp=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,fr={MIN_LENGTH:6,MAX_LENGTH:128}});var Ce={};ae(Ce,{bgBlack:()=>Kv,bgBlue:()=>ey,bgBlueBright:()=>hy,bgCyan:()=>ny,bgCyanBright:()=>vy,bgGray:()=>iy,bgGreen:()=>Yv,bgGreenBright:()=>my,bgMagenta:()=>ty,bgMagentaBright:()=>gy,bgRed:()=>Xv,bgRedBright:()=>py,bgWhite:()=>ry,bgWhiteBright:()=>yy,bgYellow:()=>Qv,bgYellowBright:()=>fy,black:()=>Gv,blue:()=>yr,blueBright:()=>cy,bold:()=>Qo,cyan:()=>Wv,cyanBright:()=>ly,dim:()=>Ve,gray:()=>qv,green:()=>fn,greenBright:()=>ay,hidden:()=>Se,inverse:()=>mn,italic:()=>Nv,magenta:()=>Hv,magentaBright:()=>uy,overline:()=>Vv,red:()=>gr,redBright:()=>oy,reset:()=>Uv,strikethrough:()=>Bv,underline:()=>Rv,underlineBlack:()=>_y,underlineBlue:()=>ky,underlineBlueBright:()=>Ty,underlineCurly:()=>Fv,underlineCyan:()=>wy,underlineCyanBright:()=>Ay,underlineDashed:()=>Mv,underlineDotted:()=>Zv,underlineDouble:()=>Lv,underlineGray:()=>Oy,underlineGreen:()=>xy,underlineGreenBright:()=>Ey,underlineMagenta:()=>Sy,underlineMagentaBright:()=>Py,underlineRed:()=>$y,underlineRedBright:()=>zy,underlineWhite:()=>Iy,underlineWhiteBright:()=>Cy,underlineYellow:()=>by,underlineYellowBright:()=>Dy,white:()=>Jv,whiteBright:()=>dy,yellow:()=>vr,yellowBright:()=>sy});var pp,jv,T,Uv,Qo,Ve,Nv,Rv,Lv,Fv,Zv,Mv,Vv,mn,Se,Bv,Gv,gr,fn,vr,yr,Hv,Wv,Jv,qv,Kv,Xv,Yv,Qv,ey,ty,ny,ry,iy,oy,ay,sy,cy,uy,ly,dy,py,my,fy,hy,gy,vy,yy,_y,$y,xy,by,ky,Sy,wy,Iy,Oy,zy,Ey,Dy,Ty,Py,Ay,Cy,ea=te(()=>{"use strict";pp=se(require("tty"),1),jv=pp.default?.WriteStream?.prototype?.hasColors?.()??!1,T=(e,t)=>{if(!jv)return n=>n;let r=`\x1B[${e}m`,i=`\x1B[${t}m`;return n=>{let o=n+"",a=o.indexOf(i);if(a===-1)return r+o+i;let s=r,c=0,l=(t===22?i:"")+r;for(;a!==-1;)s+=o.slice(c,a)+l,c=a+i.length,a=o.indexOf(i,c);return s+=o.slice(c)+i,s}},Uv=T(0,0),Qo=T(1,22),Ve=T(2,22),Nv=T(3,23),Rv=T(4,24),Lv=T("4:2",24),Fv=T("4:3",24),Zv=T("4:4",24),Mv=T("4:5",24),Vv=T(53,55),mn=T(7,27),Se=T(8,28),Bv=T(9,29),Gv=T(30,39),gr=T(31,39),fn=T(32,39),vr=T(33,39),yr=T(34,39),Hv=T(35,39),Wv=T(36,39),Jv=T(37,39),qv=T(90,39),Kv=T(40,49),Xv=T(41,49),Yv=T(42,49),Qv=T(43,49),ey=T(44,49),ty=T(45,49),ny=T(46,49),ry=T(47,49),iy=T(100,49),oy=T(91,39),ay=T(92,39),sy=T(93,39),cy=T(94,39),uy=T(95,39),ly=T(96,39),dy=T(97,39),py=T(101,49),my=T(102,49),fy=T(103,49),hy=T(104,49),gy=T(105,49),vy=T(106,49),yy=T(107,49),_y=T("58;5;0",59),$y=T("58;5;1",59),xy=T("58;5;2",59),by=T("58;5;3",59),ky=T("58;5;4",59),Sy=T("58;5;5",59),wy=T("58;5;6",59),Iy=T("58;5;7",59),Oy=T("58;5;8",59),zy=T("58;5;9",59),Ey=T("58;5;10",59),Dy=T("58;5;11",59),Ty=T("58;5;12",59),Py=T("58;5;13",59),Ay=T("58;5;14",59),Cy=T("58;5;15",59)});var hn=te(()=>{"use strict";ea();ea()});function Sx(){return typeof process<"u"&&process.versions&&process.versions.node?"node":typeof window<"u"||typeof self<"u"?"browser":"unknown"}function Qt(){return ph||Sx()}var ph,no=te(()=>{"use strict";ph=null});var vh=X((Vw,gh)=>{"use strict";gh.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var _h=X((Bw,yh)=>{"use strict";var Px=vh();yh.exports=e=>typeof e=="string"?e.replace(Px(),""):e});var $h=X((Gw,oo)=>{"use strict";var Ax=(function(){"use strict";function e(a,s,c,u){var l;typeof s=="object"&&(c=s.depth,u=s.prototype,l=s.filter,s=s.circular);var f=[],p=[],y=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof c>"u"&&(c=1/0);function b(E,I){if(E===null)return null;if(I==0)return E;var $,_;if(typeof E!="object")return E;if(e.__isArray(E))$=[];else if(e.__isRegExp(E))$=new RegExp(E.source,o(E)),E.lastIndex&&($.lastIndex=E.lastIndex);else if(e.__isDate(E))$=new Date(E.getTime());else{if(y&&Buffer.isBuffer(E))return Buffer.allocUnsafe?$=Buffer.allocUnsafe(E.length):$=new Buffer(E.length),E.copy($),$;typeof u>"u"?(_=Object.getPrototypeOf(E),$=Object.create(_)):($=Object.create(u),_=u)}if(s){var m=f.indexOf(E);if(m!=-1)return p[m];f.push(E),p.push($)}for(var d in E){var h;_&&(h=Object.getOwnPropertyDescriptor(_,d)),!(h&&h.set==null)&&($[d]=b(E[d],I-1))}return $}return b(a,c)}e.clonePrototype=function(s){if(s===null)return null;var c=function(){};return c.prototype=s,new c};function t(a){return Object.prototype.toString.call(a)}e.__objToStr=t;function r(a){return typeof a=="object"&&t(a)==="[object Date]"}e.__isDate=r;function i(a){return typeof a=="object"&&t(a)==="[object Array]"}e.__isArray=i;function n(a){return typeof a=="object"&&t(a)==="[object RegExp]"}e.__isRegExp=n;function o(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return e.__getRegExpFlags=o,e})();typeof oo=="object"&&oo.exports&&(oo.exports=Ax)});var bh=X((Hw,xh)=>{"use strict";var Cx=$h();xh.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Cx(t[r]))}),e}});var Sh=X((Ww,kh)=>{"use strict";kh.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var zh=X((Jw,ad)=>{"use strict";var jx=bh(),Kn=Sh(),Ih={nul:0,control:0};ad.exports=function(t){return Oh(t,Ih)};ad.exports.config=function(e){return e=jx(e||{},Ih),function(r){return Oh(r,e)}};function Oh(e,t){if(typeof e!="string")return wh(e,t);for(var r=0,i=0;i<e.length;i++){var n=wh(e.charCodeAt(i),t);if(n<0)return-1;r+=n}return r}function wh(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Ux(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function Ux(e){var t=0,r=Kn.length-1,i;if(e<Kn[0][0]||e>Kn[r][1])return!1;for(;r>=t;)if(i=Math.floor((t+r)/2),e>Kn[i][1])t=i+1;else if(e<Kn[i][0])r=i-1;else return!0;return!1}});var sd=X((qw,Eh)=>{"use strict";var Nx=_h(),Rx=zh();Eh.exports=function(e){return Rx(Nx(e))}});var Dh=X((Kw,ft)=>{"use strict";var Re=sd();function ao(e,t){return Array.apply(null,{length:t+1}).join(e).slice(0,t)}function Lx(e,t,r){e=e??"",e=String(e);var i=t-Re(e);return i<=0?e:e+ao(r||" ",i)}function Fx(e,t,r){e=e??"",e=String(e);var i=t-Re(e);if(i<=0)return e;var n=Math.floor(i/2),o=i-n;return ao(r||" ",n)+e+ao(r||" ",o)}function Zx(e,t,r){e=e??"",e=String(e);var i=t-Re(e);return i<=0?e:ao(r||" ",i)+e}function Mx(e,t){function r(i,n){return i.trim().split(" ").reduce(function(o,a){var s=o[o.length-1];return s&&Re(s.join(" "))+Re(a)<n?o[o.length-1].push(a):o.push([a]),o},[]).map(function(o){return o.join(" ")})}return e.split(`
28
- `).map(function(i){return r(i,t)}).reduce(function(i,n){return i.concat(n)},[])}function Vx(e,t,r){e=e.trim();for(var i=[],n=e.split(" "),o="",a=Re(r);o||n.length;){if(o){var s=o;o=""}else var s=n.shift();if(Re(s)>t){for(var c=0,u=0,l=t-a;c<s.length;){var f=Re(s.charAt(c));if(f+u>l)break;u+=f,++c}o=s.slice(c),s=s.slice(0,c),s+=r}i.push(s)}return i.join(" ")}function Bx(e,t){if(e=e??"",e=String(e),t==1/0)return e;for(var r=0,i=0;r<e.length;){var n=Re(e.charAt(r));if(n+i>t)break;i+=n,++r}return e.slice(0,r)}ft.exports.padRight=Lx;ft.exports.padCenter=Fx;ft.exports.padLeft=Zx;ft.exports.splitIntoLines=Mx;ft.exports.splitLongWords=Vx;ft.exports.truncateString=Bx});var jh=X((Xw,Ch)=>{"use strict";var cd=sd(),tn=Dh(),Gx=tn.padRight,Hx=tn.padCenter,Wx=tn.padLeft,Th=tn.splitIntoLines,Jx=tn.splitLongWords,qx=tn.truncateString,Ah=function(t){return t.toUpperCase()},Kx=function(t,r,i){return t},Xx=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:Ah,dataTransform:Kx});Ch.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.config||{};delete t.config;var i=t.maxLineWidth||1/0;i==="auto"&&(i=process.stdout.columns||1/0),delete t.maxLineWidth,t=Ph({},Xx,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||`
29
- `,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var n=t.columns||[];e=tb(e,n),n.length||e.forEach(function(c){for(var u in c)n.indexOf(u)===-1&&n.push(u)});var o=n.reduce(function(c,u){var l=Object.create(t);return c[u]=Ph(l,r[u]),c},Object.create(null));n.forEach(function(c){var u=o[c];u.name=c,u.maxWidth=Math.ceil(u.maxWidth),u.minWidth=Math.ceil(u.minWidth),u.truncate=!!u.truncate,u.align=u.align||"left"}),e=e.map(function(c){var u=Object.create(null);return n.forEach(function(l){u[l]=c[l]!=null?c[l]:"",u[l]=""+u[l],o[l].preserveNewLines?u[l]=u[l].replace(/[^\S\n]/gmi," "):u[l]=u[l].replace(/\s/gmi," ")}),u}),n.forEach(function(c){var u=o[c];e=e.map(function(l,f){var p=Object.create(u);l[c]=u.dataTransform(l[c],p,f);var y=Object.keys(p);if(y.indexOf("name")!==-1){if(u.headingTransform!==Ah)return;u.headingTransform=function(b){return b}}return y.forEach(function(b){return u[b]=p[b]}),l})});var a={};t.showHeaders&&(n.forEach(function(c){var u=o[c];if(!u.showHeaders){a[c]="";return}a[c]=u.headingTransform(u.name)}),e.unshift(a)),n.forEach(function(c){var u=o[c];u.width=e.map(function(l){return l[c]}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,cd(f))))},0)}),n.forEach(function(c){var u=o[c];e=e.map(function(l){return l[c]=Jx(l[c],u.width,u.truncateMarker),l})}),n.forEach(function(c){var u=o[c];e=e.map(function(l,f){var p=l[c];if(l[c]=Th(p,u.width),u.truncate&&l[c].length>1){l[c]=Th(p,u.width-cd(u.truncateMarker));var y=l[c][0];eb(y,u.truncateMarker)||(l[c][0]+=u.truncateMarker),l[c]=l[c].slice(0,1)}return l})}),n.forEach(function(c){var u=o[c];u.width=e.map(function(l){return l[c].reduce(function(f,p){return f>=u.maxWidth?f:Math.max(f,Math.min(u.maxWidth,Math.max(u.minWidth,cd(p))))},0)}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,f)))},0)});var s=Yx(e,o,n,t.paddingChr);return s.reduce(function(c,u){return c.concat(u.reduce(function(l,f){return l.concat(f.join(t.columnSplitter))},[]))},[]).map(function(c){return qx(c,i)}).join(t.spacing)};function Yx(e,t,r,i){return e.map(function(n){var o=[],a=0;r.forEach(function(u){a=Math.max(a,n[u].length)});for(var s=function(l){o[l]=o[l]||[],r.forEach(function(f){var p=t[f],y=n[f][l]||"";p.align==="right"?o[l].push(Wx(y,p.width,i)):p.align==="center"||p.align==="centre"?o[l].push(Hx(y,p.width,i)):o[l].push(Gx(y,p.width,i))})},c=0;c<a;c++)s(c);return o})}function Ph(){return Object.assign?Object.assign.apply(Object,arguments):Qx.apply(void 0,arguments)}function Qx(e,t){"use strict";if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),i=!1,n,o=1;o<arguments.length;o++){var a=arguments[o];if(a!=null){for(var s=Object.keys(Object(a)),c=0,u=s.length;c<u;c++){var l=s[c];try{var f=Object.getOwnPropertyDescriptor(a,l);f!==void 0&&f.enumerable&&(r[l]=a[l])}catch(p){i||(i=!0,n=p)}}if(i)throw n}}return r}function eb(e,t,r){r=r||e.length,r=r-t.length;var i=e.lastIndexOf(t);return i!==-1&&i===r}function tb(e,t){if(Array.isArray(e))return e;var r=[];for(var i in e){var n={};n[t[0]||"key"]=i,n[t[1]||"value"]=e[i],r.push(n)}return r}});var Qh=X((Xh,Yh)=>{"use strict";(function(e){if(typeof Xh=="object")Yh.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch{t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function($,_){return $+_&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i($,_,m,d,h,g){return _=t(t(_,$),t(d,g)),t(_<<h|_>>>32-h,m)}function n($,_){var m=$[0],d=$[1],h=$[2],g=$[3];m+=(d&h|~d&g)+_[0]-680876936|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[1]-389564586|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[2]+606105819|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[3]-1044525330|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+_[4]-176418897|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[5]+1200080426|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[6]-1473231341|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[7]-45705983|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+_[8]+1770035416|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[9]-1958414417|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[10]-42063|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[11]-1990404162|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+_[12]+1804603682|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[13]-40341101|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[14]-1502002290|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[15]+1236535329|0,d=(d<<22|d>>>10)+h|0,m+=(d&g|h&~g)+_[1]-165796510|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[6]-1069501632|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[11]+643717713|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[0]-373897302|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+_[5]-701558691|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[10]+38016083|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[15]-660478335|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[4]-405537848|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+_[9]+568446438|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[14]-1019803690|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[3]-187363961|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[8]+1163531501|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+_[13]-1444681467|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[2]-51403784|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[7]+1735328473|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[12]-1926607734|0,d=(d<<20|d>>>12)+h|0,m+=(d^h^g)+_[5]-378558|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[8]-2022574463|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[11]+1839030562|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[14]-35309556|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+_[1]-1530992060|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[4]+1272893353|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[7]-155497632|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[10]-1094730640|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+_[13]+681279174|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[0]-358537222|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[3]-722521979|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[6]+76029189|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+_[9]-640364487|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[12]-421815835|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[15]+530742520|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[2]-995338651|0,d=(d<<23|d>>>9)+h|0,m+=(h^(d|~g))+_[0]-198630844|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[7]+1126891415|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[14]-1416354905|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[5]-57434055|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+_[12]+1700485571|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[3]-1894986606|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[10]-1051523|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[1]-2054922799|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+_[8]+1873313359|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[15]-30611744|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[6]-1560198380|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[13]+1309151649|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+_[4]-145523070|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[11]-1120210379|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[2]+718787259|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[9]-343485551|0,d=(d<<21|d>>>11)+h|0,$[0]=m+$[0]|0,$[1]=d+$[1]|0,$[2]=h+$[2]|0,$[3]=g+$[3]|0}function o($){var _=[],m;for(m=0;m<64;m+=4)_[m>>2]=$.charCodeAt(m)+($.charCodeAt(m+1)<<8)+($.charCodeAt(m+2)<<16)+($.charCodeAt(m+3)<<24);return _}function a($){var _=[],m;for(m=0;m<64;m+=4)_[m>>2]=$[m]+($[m+1]<<8)+($[m+2]<<16)+($[m+3]<<24);return _}function s($){var _=$.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,J,_e,Ze;for(d=64;d<=_;d+=64)n(m,o($.substring(d-64,d)));for($=$.substring(d-64),h=$.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=$.charCodeAt(d)<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return J=_*8,J=J.toString(16).match(/(.*?)(.{0,8})$/),_e=parseInt(J[2],16),Ze=parseInt(J[1],16)||0,g[14]=_e,g[15]=Ze,n(m,g),m}function c($){var _=$.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,J,_e,Ze;for(d=64;d<=_;d+=64)n(m,a($.subarray(d-64,d)));for($=d-64<_?$.subarray(d-64):new Uint8Array(0),h=$.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=$[d]<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return J=_*8,J=J.toString(16).match(/(.*?)(.{0,8})$/),_e=parseInt(J[2],16),Ze=parseInt(J[1],16)||0,g[14]=_e,g[15]=Ze,n(m,g),m}function u($){var _="",m;for(m=0;m<4;m+=1)_+=r[$>>m*8+4&15]+r[$>>m*8&15];return _}function l($){var _;for(_=0;_<$.length;_+=1)$[_]=u($[_]);return $.join("")}l(s("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function($,_){var m=($&65535)+(_&65535),d=($>>16)+(_>>16)+(m>>16);return d<<16|m&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function $(_,m){return _=_|0||0,_<0?Math.max(_+m,0):Math.min(_,m)}ArrayBuffer.prototype.slice=function(_,m){var d=this.byteLength,h=$(_,d),g=d,J,_e,Ze,Ud;return m!==e&&(g=$(m,d)),h>g?new ArrayBuffer(0):(J=g-h,_e=new ArrayBuffer(J),Ze=new Uint8Array(_e),Ud=new Uint8Array(this,h,J),Ze.set(Ud),_e)}})();function f($){return/[\u0080-\uFFFF]/.test($)&&($=unescape(encodeURIComponent($))),$}function p($,_){var m=$.length,d=new ArrayBuffer(m),h=new Uint8Array(d),g;for(g=0;g<m;g+=1)h[g]=$.charCodeAt(g);return _?h:d}function y($){return String.fromCharCode.apply(null,new Uint8Array($))}function b($,_,m){var d=new Uint8Array($.byteLength+_.byteLength);return d.set(new Uint8Array($)),d.set(new Uint8Array(_),$.byteLength),m?d:d.buffer}function E($){var _=[],m=$.length,d;for(d=0;d<m-1;d+=2)_.push(parseInt($.substr(d,2),16));return String.fromCharCode.apply(String,_)}function I(){this.reset()}return I.prototype.append=function($){return this.appendBinary(f($)),this},I.prototype.appendBinary=function($){this._buff+=$,this._length+=$.length;var _=this._buff.length,m;for(m=64;m<=_;m+=64)n(this._hash,o(this._buff.substring(m-64,m)));return this._buff=this._buff.substring(m-64),this},I.prototype.end=function($){var _=this._buff,m=_.length,d,h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g;for(d=0;d<m;d+=1)h[d>>2]|=_.charCodeAt(d)<<(d%4<<3);return this._finish(h,m),g=l(this._hash),$&&(g=E(g)),this.reset(),g},I.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},I.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},I.prototype.setState=function($){return this._buff=$.buff,this._length=$.length,this._hash=$.hash,this},I.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},I.prototype._finish=function($,_){var m=_,d,h,g;if($[m>>2]|=128<<(m%4<<3),m>55)for(n(this._hash,$),m=0;m<16;m+=1)$[m]=0;d=this._length*8,d=d.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(d[2],16),g=parseInt(d[1],16)||0,$[14]=h,$[15]=g,n(this._hash,$)},I.hash=function($,_){return I.hashBinary(f($),_)},I.hashBinary=function($,_){var m=s($),d=l(m);return _?E(d):d},I.ArrayBuffer=function(){this.reset()},I.ArrayBuffer.prototype.append=function($){var _=b(this._buff.buffer,$,!0),m=_.length,d;for(this._length+=$.byteLength,d=64;d<=m;d+=64)n(this._hash,a(_.subarray(d-64,d)));return this._buff=d-64<m?new Uint8Array(_.buffer.slice(d-64)):new Uint8Array(0),this},I.ArrayBuffer.prototype.end=function($){var _=this._buff,m=_.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h,g;for(h=0;h<m;h+=1)d[h>>2]|=_[h]<<(h%4<<3);return this._finish(d,m),g=l(this._hash),$&&(g=E(g)),this.reset(),g},I.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},I.ArrayBuffer.prototype.getState=function(){var $=I.prototype.getState.call(this);return $.buff=y($.buff),$},I.ArrayBuffer.prototype.setState=function($){return $.buff=p($.buff,!0),I.prototype.setState.call(this,$)},I.ArrayBuffer.prototype.destroy=I.prototype.destroy,I.ArrayBuffer.prototype._finish=I.prototype._finish,I.ArrayBuffer.hash=function($,_){var m=c(new Uint8Array($)),d=l(m);return _?E(d):d},I})});async function _b(e){let t=(await Promise.resolve().then(()=>se(Qh(),1))).default,r=new t.ArrayBuffer,i=2097152;for(let n=0;n<e.size;n+=i){let o=Math.min(n+i,e.size);r.append(await e.slice(n,o).arrayBuffer())}return{md5:r.end()}}async function $b(e){let{createHash:t}=await import("crypto"),r=t("md5");return r.update(e),{md5:r.digest("hex")}}async function xb(e){let{createHash:t}=await import("crypto"),{createReadStream:r}=await import("fs");return new Promise((i,n)=>{let o=t("md5"),a=r(e);a.on("error",s=>n(O.file(`Failed to read file for MD5: ${s.message}`,{filePath:e}))),a.on("data",s=>o.update(s)),a.on("end",()=>i({md5:o.digest("hex")}))})}async function mo(e){if(e instanceof Blob)return _b(e);if(typeof Buffer<"u"&&Buffer.isBuffer(e))return $b(e);if(typeof e=="string")return xb(e);throw O.business("Invalid input for MD5 calculation")}var hd=te(()=>{"use strict";B()});var cg={};ae(cg,{Blob:()=>er,File:()=>$o,FormData:()=>Pb});async function*sg(e){if(e.byteLength<=vd){yield e;return}let t=0;for(;t<e.byteLength;){let r=Math.min(e.byteLength-t,vd),i=e.buffer.slice(t,t+r);t+=i.byteLength,yield new Uint8Array(i)}}async function*wb(e){let t=e.getReader();for(;;){let{done:r,value:i}=await t.read();if(r)break;yield i}}async function*ag(e){for await(let t of e)yield*sg(t)}async function*Ob(e){let t=0;for(;t!==e.size;){let i=await e.slice(t,Math.min(e.size,t+vd)).arrayBuffer();t+=i.byteLength,yield new Uint8Array(i)}}async function*gd(e,t=!1){for(let r of e)ArrayBuffer.isView(r)?t?yield*sg(r):yield r:H(r.stream)?yield*Ib(r.stream()):yield*Ob(r)}function*zb(e,t,r=0,i){i??=t;let n=r<0?Math.max(t+r,0):Math.min(r,t),o=i<0?Math.max(t+i,0):Math.min(i,t),a=Math.max(o-n,0),s=0;for(let c of e){if(s>=a)break;let u=ArrayBuffer.isView(c)?c.byteLength:c.size;if(n&&u<=n)n-=u,o-=u;else{let l;ArrayBuffer.isView(c)?(l=c.subarray(n,Math.min(u,o)),s+=l.byteLength):(l=c.slice(n,Math.min(u,o)),s+=l.size),o-=u,n=0,yield l}}}var $d,q,gt,_o,og,H,kb,Sb,vd,Ib,ht,ho,Qn,Eb,er,Db,go,vo,$o,Tb,De,yo,_d,Pb,ug=te(()=>{"use strict";$d=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},q=(e,t,r)=>($d(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},_o=(e,t,r,i)=>($d(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),og=(e,t,r)=>($d(e,t,"access private method"),r),H=e=>typeof e=="function",kb=e=>typeof e=="object"&&e!=null&&!Array.isArray(e),Sb=e=>kb(e)&&H(e[Symbol.asyncIterator]),vd=65536;Ib=e=>{if(Sb(e))return ag(e);if(H(e.getReader))return ag(wb(e));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};Eb=class yd{constructor(t=[],r={}){if(gt(this,ht,[]),gt(this,ho,""),gt(this,Qn,0),r??={},typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(!H(t[Symbol.iterator]))throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&!H(r))throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");let i=new TextEncoder;for(let o of t){let a;ArrayBuffer.isView(o)?a=new Uint8Array(o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)):o instanceof ArrayBuffer?a=new Uint8Array(o.slice(0)):o instanceof yd?a=o:a=i.encode(String(o)),_o(this,Qn,q(this,Qn)+(ArrayBuffer.isView(a)?a.byteLength:a.size)),q(this,ht).push(a)}let n=r.type===void 0?"":String(r.type);_o(this,ho,/^[\x20-\x7E]*$/.test(n)?n:"")}static[Symbol.hasInstance](t){return!!(t&&typeof t=="object"&&H(t.constructor)&&(H(t.stream)||H(t.arrayBuffer))&&/^(Blob|File)$/.test(t[Symbol.toStringTag]))}get type(){return q(this,ho)}get size(){return q(this,Qn)}slice(t,r,i){return new yd(zb(q(this,ht),this.size,t,r),{type:i})}async text(){let t=new TextDecoder,r="";for await(let i of gd(q(this,ht)))r+=t.decode(i,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let i of gd(q(this,ht)))t.set(i,r),r+=i.length;return t.buffer}stream(){let t=gd(q(this,ht),!0);return new ReadableStream({async pull(r){let{value:i,done:n}=await t.next();if(n)return queueMicrotask(()=>r.close());r.enqueue(i)},async cancel(){await t.return()}})}get[Symbol.toStringTag](){return"Blob"}};ht=new WeakMap;ho=new WeakMap;Qn=new WeakMap;er=Eb;Object.defineProperties(er.prototype,{type:{enumerable:!0},size:{enumerable:!0},slice:{enumerable:!0},stream:{enumerable:!0},text:{enumerable:!0},arrayBuffer:{enumerable:!0}});Db=e=>e instanceof er,$o=class extends er{constructor(e,t,r={}){if(super(e,r),gt(this,go,void 0),gt(this,vo,0),arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);_o(this,go,String(t));let i=r.lastModified===void 0?Date.now():Number(r.lastModified);Number.isNaN(i)||_o(this,vo,i)}static[Symbol.hasInstance](e){return e instanceof er&&e[Symbol.toStringTag]==="File"&&typeof e.name=="string"}get name(){return q(this,go)}get webkitRelativePath(){return""}get lastModified(){return q(this,vo)}get[Symbol.toStringTag](){return"File"}};go=new WeakMap;vo=new WeakMap;Tb=e=>e instanceof $o,Pb=class{constructor(){gt(this,yo),gt(this,De,new Map)}static[Symbol.hasInstance](e){if(!e)return!1;let t=e;return!!(H(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&H(t.append)&&H(t.set)&&H(t.get)&&H(t.getAll)&&H(t.has)&&H(t.delete)&&H(t.entries)&&H(t.values)&&H(t.keys)&&H(t[Symbol.iterator])&&H(t.forEach))}append(e,t,r){og(this,yo,_d).call(this,{name:e,fileName:r,append:!0,rawValue:t,argsLength:arguments.length})}set(e,t,r){og(this,yo,_d).call(this,{name:e,fileName:r,append:!1,rawValue:t,argsLength:arguments.length})}get(e){let t=q(this,De).get(String(e));return t?t[0]:null}getAll(e){let t=q(this,De).get(String(e));return t?t.slice():[]}has(e){return q(this,De).has(String(e))}delete(e){q(this,De).delete(String(e))}*keys(){for(let e of q(this,De).keys())yield e}*entries(){for(let e of this.keys()){let t=this.getAll(e);for(let r of t)yield[e,r]}}*values(){for(let[,e]of this)yield e}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[r,i]of this)e.call(t,i,r,this)}get[Symbol.toStringTag](){return"FormData"}};De=new WeakMap;yo=new WeakSet;_d=function({name:e,rawValue:t,append:r,fileName:i,argsLength:n}){let o=r?"append":"set";if(n<2)throw new TypeError(`Failed to execute '${o}' on 'FormData': 2 arguments required, but only ${n} present.`);e=String(e);let a;if(Tb(t))a=i===void 0?t:new $o([t],i,{type:t.type,lastModified:t.lastModified});else if(Db(t))a=new $o([t],i===void 0?"blob":i,{type:t.type});else{if(i)throw new TypeError(`Failed to execute '${o}' on 'FormData': parameter 2 is not of type 'Blob'.`);a=String(t)}let s=q(this,De).get(e);if(!s)return void q(this,De).set(e,[a]);if(!r)return void q(this,De).set(e,[a]);s.push(a)};});var xg={};ae(xg,{FormDataEncoder:()=>Zb,isFile:()=>yt,isFormData:()=>yg});function*vg(e){if(e.byteLength<=lg){yield e;return}let t=0;for(;t<e.byteLength;){let r=Math.min(e.byteLength-t,lg),i=e.buffer.slice(t,t+r);t+=i.byteLength,yield new Uint8Array(i)}}function Ab(){let e=16,t="";for(;e--;)t+=dg[Math.random()*dg.length<<0];return t}async function*Ub(e){let t=e.getReader();for(;;){let{done:r,value:i}=await t.read();if(r)break;yield i}}async function*mg(e){for await(let t of e)yield*vg(t)}function fg(e){if(Rb(e)!=="object")return!1;let t=Object.getPrototypeOf(e);return t==null?!0:t.constructor?.toString?.()===Object.toString()}function hg(e,t){if(typeof t=="string"){for(let[r,i]of Object.entries(e))if(t.toLowerCase()===r.toLowerCase())return i}}var gg,bd,V,Le,tr,xd,lg,dg,pg,Fe,Cb,jb,Nb,yt,yg,Rb,_g,Lb,Fb,xo,rt,nr,bo,rr,vt,ir,or,ko,ar,kd,$g,Zb,bg=te(()=>{"use strict";gg=e=>{throw TypeError(e)},bd=(e,t,r)=>t.has(e)||gg("Cannot "+r),V=(e,t,r)=>(bd(e,t,"read from private field"),r?r.call(e):t.get(e)),Le=(e,t,r)=>t.has(e)?gg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tr=(e,t,r,i)=>(bd(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),xd=(e,t,r)=>(bd(e,t,"access private method"),r),lg=65536;dg="abcdefghijklmnopqrstuvwxyz0123456789";pg=e=>String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22"),Fe=e=>typeof e=="function",Cb=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&Fe(e.getReader),jb=e=>Fe(e[Symbol.asyncIterator]);Nb=e=>{if(jb(e))return mg(e);if(Cb(e))return mg(Ub(e));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")},yt=e=>!!(e&&typeof e=="object"&&Fe(e.constructor)&&e[Symbol.toStringTag]==="File"&&Fe(e.stream)&&e.name!=null),yg=e=>!!(e&&Fe(e.constructor)&&e[Symbol.toStringTag]==="FormData"&&Fe(e.append)&&Fe(e.getAll)&&Fe(e.entries)&&Fe(e[Symbol.iterator])),Rb=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();_g=e=>String(e).replace(/\r|\n/g,(t,r,i)=>t==="\r"&&i[r+1]!==`
27
+ `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Bd(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",o;return(o=t.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?n=o[3]:i=o[3]):(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],i=o[3],n=o[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function Go(){if(U.env.NO_COLOR||U.env.FORCE_COLOR==="0"||U.env.FORCE_COLOR==="false")return!1;if(U.env.FORCE_COLOR||U.env.CLICOLOR_FORCE!==void 0)return!0}Ho.Command=Bo;Ho.useColor=Go});var qd=X(ge=>{"use strict";var{Argument:Hd}=dr(),{Command:Wo}=Gd(),{CommanderError:Iv,InvalidArgumentError:Wd}=sn(),{Help:zv}=No(),{Option:Jd}=Zo();ge.program=new Wo;ge.createCommand=e=>new Wo(e);ge.createOption=(e,t)=>new Jd(e,t);ge.createArgument=(e,t)=>new Hd(e,t);ge.Command=Wo;ge.Option=Jd;ge.Argument=Hd;ge.Help=zv;ge.CommanderError=Iv;ge.InvalidArgumentError=Wd;ge.InvalidOptionArgumentError=Wd});function np(e){if(!e||typeof e!="string")return;let t=e.trim().toLowerCase();return Object.values(qo).includes(t)?t:void 0}function rp(e){if(e==null)return;if(typeof e!="string")throw O.validation("Idempotency key must be a string.");let t=e.trim();if(!t)throw O.validation("Idempotency key must not be empty.");if(t.length>un.MAX_LENGTH)throw O.validation(`Idempotency key must be at most ${un.MAX_LENGTH} characters.`);return t}function Pv(e){let t=e.code;return t==="ERR_INVALID_URL"?!1:typeof t=="string"?!0:e instanceof TypeError?!/\burl\b/i.test(e.message):!1}function ce(e){return e!==null&&typeof e=="object"&&"name"in e&&e.name==="ShipError"&&"status"in e}function Tv(e){let t=e.replace(/\\/g,"/").split("/").pop()??"",r=t.lastIndexOf(".");return r<=0||r===t.length-1?null:t.slice(r+1).toLowerCase()}function ip(e,t){let r=Tv(e);return r===null?!1:Array.isArray(t)?t.includes(r):t.has(r)}function op(e){return Cv.test(e)}function Xo(e){return e.replace(/\\/g,"/").split("/").filter(Boolean).some(r=>Ko.has(r))}function jv(e){return e.startsWith(ln.PREFIX)?$t.API_KEY:e.startsWith(dn.PREFIX)?$t.DEPLOY_TOKEN:$t.OPAQUE}function sp(e){let t=e.charCodeAt(0)===65279?e.slice(1):e,r;try{r=JSON.parse(t)}catch(i){throw O.config(`invalid JSON format in config: ${i.message}`,{filePath:Ae})}if(r===null||typeof r!="object"||Array.isArray(r))throw O.config(`${Ae} must contain a JSON object`,{filePath:Ae})}function cp(e,t,r){if(!e.startsWith(t.PREFIX))throw O.validation(`${r} must start with "${t.PREFIX}"`);if(e.length!==t.TOTAL_LENGTH)throw O.validation(`${r} must be ${t.TOTAL_LENGTH} characters total (${t.PREFIX} + ${t.HEX_LENGTH} hex chars)`);let i=e.slice(t.PREFIX.length);if(!new RegExp(`^[a-f0-9]{${t.HEX_LENGTH}}$`,"i").test(i))throw O.validation(`${r} must contain ${t.HEX_LENGTH} hexadecimal characters after "${t.PREFIX}" prefix`)}function Uv(e){cp(e,ln,"API key")}function Nv(e){cp(e,dn,"Deploy token")}function it(e){switch(jv(e)){case $t.API_KEY:Uv(e);return;case $t.DEPLOY_TOKEN:Nv(e);return;case $t.OPAQUE:if(!e)throw O.validation("Token must be a non-empty string")}}function up(e){if(!e||e.length>cn.MAX_LENGTH||!cn.PATTERN.test(e))throw O.validation(`Caller must be 1-${cn.MAX_LENGTH} characters: letters, digits, dots, underscores, or hyphens`)}function lp(e){try{let t=new URL(e);if(!["http:","https:"].includes(t.protocol))throw O.validation("API URL must use http:// or https:// protocol");if(t.pathname!=="/"&&t.pathname!=="")throw O.validation("API URL must not contain a path");if(t.search||t.hash)throw O.validation("API URL must not contain query parameters or fragments")}catch(t){throw ce(t)?t:O.validation("API URL must be a valid URL")}}function Yo(e){if(e==null)return;if(typeof e!="string")throw O.validation("Password must be a string");let t=e.trim();if(t.length<fr.MIN_LENGTH||t.length>fr.MAX_LENGTH)throw O.validation(`Password must be between ${fr.MIN_LENGTH} and ${fr.MAX_LENGTH} characters`);return t}var tp,qo,un,Z,ke,A,Ov,Jo,Ev,Dv,O,Av,Rk,Cv,Ko,ep,ln,dn,cn,$t,Ae,ap,hr,dp,pn,pp,Lk,Me,mp,fr,M=ee(()=>{"use strict";tp={PENDING:"pending",SUCCESS:"success",FAILED:"failed",DELETING:"deleting"},qo={WEB:"web",SDK:"sdk",CLI:"cli",MCP:"mcp",GIT:"git",N8N:"n8n",GPT:"gpt",VSC:"vsc"},un={HEADER:"Idempotency-Key",MAX_LENGTH:256,WINDOW_SECONDS:1440*60};Z={DEPLOYMENTS:"/deployments",DEPLOYMENT:e=>`/deployments/${e}`,DEPLOYMENT_CONFIG:e=>`/deployments/${e}/config`,DOMAINS:"/domains",DOMAIN:e=>`/domains/${e}`,DOMAIN_VERIFY:e=>`/domains/${e}/verify`,DOMAIN_DNS:e=>`/domains/${e}/dns`,DOMAIN_RECORDS:e=>`/domains/${e}/records`,DOMAIN_SHARE:e=>`/domains/${e}/share`,DOMAIN_PROPAGATION:e=>`/domains/${e}/propagation`,DOMAINS_VALIDATE:"/domains/validate",TOKENS:"/tokens",TOKEN:e=>`/tokens/${e}`,ACCOUNT:"/account",ACCOUNT_KEY:"/account/key",ACCOUNT_CLAIM:"/account/claim",ACTIVITIES:"/activities",LABELS:"/labels",LIMITS:"/limits",PING:"/ping",SETUP:"/setup",SPA_CHECK:"/spa-check",UPLOAD:"/upload"},ke={FILES:"files[]",CHECKSUMS:"checksums",LABELS:"labels",VIA:"via",PASSWORD:"password",BUILD:"build",PRERENDER:"prerender",SPA:"spa",CAPTCHA:"captcha"},A={Validation:"validation_failed",NotFound:"not_found",Forbidden:"forbidden",RateLimit:"rate_limit_exceeded",Authentication:"authentication_failed",Business:"business_logic_error",Api:"internal_server_error",Maintenance:"maintenance",Network:"network_error",Cancelled:"operation_cancelled",File:"file_error",Config:"config_error"},Ov=new Set([A.Network,A.Cancelled,A.File,A.Config]),Jo={client:new Set([A.Business,A.Cancelled,A.Config,A.File,A.Forbidden,A.NotFound,A.RateLimit,A.Validation]),network:new Set([A.Network]),auth:new Set([A.Authentication])},Ev=new Set(Object.values(A).filter(e=>!Ov.has(e))),Dv=200;O=class e extends Error{type;status;details;constructor(t,r,i,n){super(r),this.type=t,this.status=i,this.details=n,this.name="ShipError"}toResponse(){let t=this.details,r=this.type===A.Authentication&&t?.internal?void 0:this.details;return{error:this.type,message:this.message,status:this.status,details:r}}static async fromHttpResponse(t,r){let i,n,o;try{if(t.headers.get("content-type")?.includes("application/json")){let u=await t.json();if(u&&typeof u=="object"){let l=u;typeof l.message=="string"?i=l.message:typeof l.error=="string"&&(i=l.error),n=l.details,typeof l.error=="string"&&Ev.has(l.error)&&(o=l.error)}}else{let u=(await t.text()).trim();u&&!u.startsWith("<")&&u.length<=Dv&&(i=u)}}catch{}let a=t.headers.get("retry-after");if(a!==null){let c=a.trim(),u=/^\d+$/.test(c)?Number(c):Math.ceil((Date.parse(c)-Date.now())/1e3);if(Number.isFinite(u)&&u>=0){let l=n&&typeof n=="object"?n:{};l.retryAfter===void 0&&(n={...l,retryAfter:u})}}i=i||`${r||"Request"} failed with status ${t.status}`;let s=o??(t.status===401?A.Authentication:t.status===403?A.Forbidden:t.status===429?A.RateLimit:A.Api);return new e(s,i,t.status,n)}static fromFetchError(t,r){if(ce(t))return t;let i=r||"Request",n=t?.name;return n==="AbortError"?e.cancelled(`${i} was cancelled`):n==="TimeoutError"?e.network(`${i} timed out`,{cause:t}):t instanceof Error?Pv(t)?e.network(`${i} failed: ${t.message}`,{cause:t}):new e(A.Api,`${i} failed: ${t.message}`):new e(A.Api,`${i} failed: Unknown error`)}static validation(t,r){return new e(A.Validation,t,400,r)}static notFound(t,r){let i=r?`${t} ${r} not found`:`${t} not found`;return new e(A.NotFound,i,404)}static forbidden(t,r){return new e(A.Forbidden,t,403,r)}static rateLimit(t="Too many requests",r){return new e(A.RateLimit,t,429,r)}static authentication(t="Authentication required",r){return new e(A.Authentication,t,401,r)}static business(t,r=400,i){return new e(A.Business,t,r,i)}static network(t,r){return new e(A.Network,t,void 0,r)}static cancelled(t,r){return new e(A.Cancelled,t,void 0,r)}static file(t,r){return new e(A.File,t,void 0,r)}static config(t,r){return new e(A.Config,t,void 0,r)}static api(t,r=500,i){return new e(A.Api,t,r,i)}static maintenance(t,r){return new e(A.Maintenance,t,503,r)}isClientError(){return Jo.client.has(this.type)?!0:this.status!==void 0&&this.status>=400&&this.status<500}isNetworkError(){return Jo.network.has(this.type)}isAuthError(){return Jo.auth.has(this.type)}isType(t){return this.type===t}};Av=["html","htm","xhtml","xml","txt","md","markdown","pdf","csv","json","jsonc","webmanifest","map","toml","yaml","yml","rss","atom","css","scss","sass","less","js","mjs","cjs","jsx","ts","tsx","wasm","vue","svelte","png","jpg","jpeg","gif","webp","avif","svg","ico","bmp","tif","tiff","heic","heif","woff","woff2","ttf","otf","eot","mp3","wav","ogg","oga","opus","m4a","aac","flac","weba","mp4","webm","ogv","mov","m4v","avi","glb","gltf","usdz","vtt","srt","zip"],Rk=Av.map(e=>`.${e}`).join(","),Cv=/[\x00-\x1f\x7f#?%\\<>"]/;Ko=new Set(["node_modules","package.json"]);ep={SESSION:"session",API_KEY:"apiKey",TOKEN:"token",AGENT:"agent",OAUTH:"oauth",WEBHOOK:"webhook",SYSTEM:"system"},ln={PREFIX:"ship-",HEX_LENGTH:32,TOTAL_LENGTH:37,HINT_LENGTH:4},dn={PREFIX:"deploy-",HEX_LENGTH:32,TOTAL_LENGTH:39},cn={HEADER:"X-Caller",MAX_LENGTH:128,PATTERN:/^[a-zA-Z0-9._-]+$/},$t={API_KEY:ep.API_KEY,DEPLOY_TOKEN:ep.TOKEN,OPAQUE:"opaque"};Ae="ship.json",ap={rewrites:[{source:"/(.*)",destination:"/index.html"}]},hr={INDEX_FILE:"index.html",MAX_INDEX_BYTES:100*1024};dp="https://api.shipstatic.com",pn={TOKEN:"SHIP_TOKEN",API_URL:"SHIP_API_URL"},pp="https://my.shipstatic.com/api-key",Lk=4320*60,Me={MIN_LENGTH:3,MAX_LENGTH:25,MAX_COUNT:10,SEPARATORS:"._-"},mp=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,fr={MIN_LENGTH:6,MAX_LENGTH:128}});var Ce={};ae(Ce,{bgBlack:()=>Qv,bgBlue:()=>ry,bgBlueBright:()=>yy,bgCyan:()=>oy,bgCyanBright:()=>$y,bgGray:()=>sy,bgGreen:()=>ty,bgGreenBright:()=>gy,bgMagenta:()=>iy,bgMagentaBright:()=>_y,bgRed:()=>ey,bgRedBright:()=>hy,bgWhite:()=>ay,bgWhiteBright:()=>xy,bgYellow:()=>ny,bgYellowBright:()=>vy,black:()=>Jv,blue:()=>yr,blueBright:()=>dy,bold:()=>Qo,cyan:()=>Kv,cyanBright:()=>my,dim:()=>Ve,gray:()=>Yv,green:()=>fn,greenBright:()=>uy,hidden:()=>Se,inverse:()=>mn,italic:()=>Fv,magenta:()=>qv,magentaBright:()=>py,overline:()=>Hv,red:()=>gr,redBright:()=>cy,reset:()=>Lv,strikethrough:()=>Wv,underline:()=>Zv,underlineBlack:()=>by,underlineBlue:()=>Iy,underlineBlueBright:()=>Cy,underlineCurly:()=>Vv,underlineCyan:()=>Oy,underlineCyanBright:()=>Uy,underlineDashed:()=>Gv,underlineDotted:()=>Bv,underlineDouble:()=>Mv,underlineGray:()=>Dy,underlineGreen:()=>Sy,underlineGreenBright:()=>Ty,underlineMagenta:()=>zy,underlineMagentaBright:()=>jy,underlineRed:()=>ky,underlineRedBright:()=>Py,underlineWhite:()=>Ey,underlineWhiteBright:()=>Ny,underlineYellow:()=>wy,underlineYellowBright:()=>Ay,white:()=>Xv,whiteBright:()=>fy,yellow:()=>vr,yellowBright:()=>ly});var fp,Rv,P,Lv,Qo,Ve,Fv,Zv,Mv,Vv,Bv,Gv,Hv,mn,Se,Wv,Jv,gr,fn,vr,yr,qv,Kv,Xv,Yv,Qv,ey,ty,ny,ry,iy,oy,ay,sy,cy,uy,ly,dy,py,my,fy,hy,gy,vy,yy,_y,$y,xy,by,ky,Sy,wy,Iy,zy,Oy,Ey,Dy,Py,Ty,Ay,Cy,jy,Uy,Ny,ea=ee(()=>{"use strict";fp=se(require("tty"),1),Rv=fp.default?.WriteStream?.prototype?.hasColors?.()??!1,P=(e,t)=>{if(!Rv)return n=>n;let r=`\x1B[${e}m`,i=`\x1B[${t}m`;return n=>{let o=n+"",a=o.indexOf(i);if(a===-1)return r+o+i;let s=r,c=0,l=(t===22?i:"")+r;for(;a!==-1;)s+=o.slice(c,a)+l,c=a+i.length,a=o.indexOf(i,c);return s+=o.slice(c)+i,s}},Lv=P(0,0),Qo=P(1,22),Ve=P(2,22),Fv=P(3,23),Zv=P(4,24),Mv=P("4:2",24),Vv=P("4:3",24),Bv=P("4:4",24),Gv=P("4:5",24),Hv=P(53,55),mn=P(7,27),Se=P(8,28),Wv=P(9,29),Jv=P(30,39),gr=P(31,39),fn=P(32,39),vr=P(33,39),yr=P(34,39),qv=P(35,39),Kv=P(36,39),Xv=P(37,39),Yv=P(90,39),Qv=P(40,49),ey=P(41,49),ty=P(42,49),ny=P(43,49),ry=P(44,49),iy=P(45,49),oy=P(46,49),ay=P(47,49),sy=P(100,49),cy=P(91,39),uy=P(92,39),ly=P(93,39),dy=P(94,39),py=P(95,39),my=P(96,39),fy=P(97,39),hy=P(101,49),gy=P(102,49),vy=P(103,49),yy=P(104,49),_y=P(105,49),$y=P(106,49),xy=P(107,49),by=P("58;5;0",59),ky=P("58;5;1",59),Sy=P("58;5;2",59),wy=P("58;5;3",59),Iy=P("58;5;4",59),zy=P("58;5;5",59),Oy=P("58;5;6",59),Ey=P("58;5;7",59),Dy=P("58;5;8",59),Py=P("58;5;9",59),Ty=P("58;5;10",59),Ay=P("58;5;11",59),Cy=P("58;5;12",59),jy=P("58;5;13",59),Uy=P("58;5;14",59),Ny=P("58;5;15",59)});var hn=ee(()=>{"use strict";ea();ea()});function zx(){return typeof process<"u"&&process.versions&&process.versions.node?"node":typeof window<"u"||typeof self<"u"?"browser":"unknown"}function Qt(){return fh||zx()}var fh,no=ee(()=>{"use strict";fh=null});var _h=X((Ww,yh)=>{"use strict";yh.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var xh=X((Jw,$h)=>{"use strict";var jx=_h();$h.exports=e=>typeof e=="string"?e.replace(jx(),""):e});var bh=X((qw,oo)=>{"use strict";var Ux=(function(){"use strict";function e(a,s,c,u){var l;typeof s=="object"&&(c=s.depth,u=s.prototype,l=s.filter,s=s.circular);var f=[],p=[],y=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof c>"u"&&(c=1/0);function b(k,E){if(k===null)return null;if(E==0)return k;var x,_;if(typeof k!="object")return k;if(e.__isArray(k))x=[];else if(e.__isRegExp(k))x=new RegExp(k.source,o(k)),k.lastIndex&&(x.lastIndex=k.lastIndex);else if(e.__isDate(k))x=new Date(k.getTime());else{if(y&&Buffer.isBuffer(k))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(k.length):x=new Buffer(k.length),k.copy(x),x;typeof u>"u"?(_=Object.getPrototypeOf(k),x=Object.create(_)):(x=Object.create(u),_=u)}if(s){var m=f.indexOf(k);if(m!=-1)return p[m];f.push(k),p.push(x)}for(var d in k){var h;_&&(h=Object.getOwnPropertyDescriptor(_,d)),!(h&&h.set==null)&&(x[d]=b(k[d],E-1))}return x}return b(a,c)}e.clonePrototype=function(s){if(s===null)return null;var c=function(){};return c.prototype=s,new c};function t(a){return Object.prototype.toString.call(a)}e.__objToStr=t;function r(a){return typeof a=="object"&&t(a)==="[object Date]"}e.__isDate=r;function i(a){return typeof a=="object"&&t(a)==="[object Array]"}e.__isArray=i;function n(a){return typeof a=="object"&&t(a)==="[object RegExp]"}e.__isRegExp=n;function o(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return e.__getRegExpFlags=o,e})();typeof oo=="object"&&oo.exports&&(oo.exports=Ux)});var Sh=X((Kw,kh)=>{"use strict";var Nx=bh();kh.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Nx(t[r]))}),e}});var Ih=X((Xw,wh)=>{"use strict";wh.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Dh=X((Yw,ad)=>{"use strict";var Rx=Sh(),Kn=Ih(),Oh={nul:0,control:0};ad.exports=function(t){return Eh(t,Oh)};ad.exports.config=function(e){return e=Rx(e||{},Oh),function(r){return Eh(r,e)}};function Eh(e,t){if(typeof e!="string")return zh(e,t);for(var r=0,i=0;i<e.length;i++){var n=zh(e.charCodeAt(i),t);if(n<0)return-1;r+=n}return r}function zh(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Lx(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function Lx(e){var t=0,r=Kn.length-1,i;if(e<Kn[0][0]||e>Kn[r][1])return!1;for(;r>=t;)if(i=Math.floor((t+r)/2),e>Kn[i][1])t=i+1;else if(e<Kn[i][0])r=i-1;else return!0;return!1}});var sd=X((Qw,Ph)=>{"use strict";var Fx=xh(),Zx=Dh();Ph.exports=function(e){return Zx(Fx(e))}});var Th=X((eI,ft)=>{"use strict";var Re=sd();function ao(e,t){return Array.apply(null,{length:t+1}).join(e).slice(0,t)}function Mx(e,t,r){e=e??"",e=String(e);var i=t-Re(e);return i<=0?e:e+ao(r||" ",i)}function Vx(e,t,r){e=e??"",e=String(e);var i=t-Re(e);if(i<=0)return e;var n=Math.floor(i/2),o=i-n;return ao(r||" ",n)+e+ao(r||" ",o)}function Bx(e,t,r){e=e??"",e=String(e);var i=t-Re(e);return i<=0?e:ao(r||" ",i)+e}function Gx(e,t){function r(i,n){return i.trim().split(" ").reduce(function(o,a){var s=o[o.length-1];return s&&Re(s.join(" "))+Re(a)<n?o[o.length-1].push(a):o.push([a]),o},[]).map(function(o){return o.join(" ")})}return e.split(`
28
+ `).map(function(i){return r(i,t)}).reduce(function(i,n){return i.concat(n)},[])}function Hx(e,t,r){e=e.trim();for(var i=[],n=e.split(" "),o="",a=Re(r);o||n.length;){if(o){var s=o;o=""}else var s=n.shift();if(Re(s)>t){for(var c=0,u=0,l=t-a;c<s.length;){var f=Re(s.charAt(c));if(f+u>l)break;u+=f,++c}o=s.slice(c),s=s.slice(0,c),s+=r}i.push(s)}return i.join(" ")}function Wx(e,t){if(e=e??"",e=String(e),t==1/0)return e;for(var r=0,i=0;r<e.length;){var n=Re(e.charAt(r));if(n+i>t)break;i+=n,++r}return e.slice(0,r)}ft.exports.padRight=Mx;ft.exports.padCenter=Vx;ft.exports.padLeft=Bx;ft.exports.splitIntoLines=Gx;ft.exports.splitLongWords=Hx;ft.exports.truncateString=Wx});var Nh=X((tI,Uh)=>{"use strict";var cd=sd(),tn=Th(),Jx=tn.padRight,qx=tn.padCenter,Kx=tn.padLeft,Ah=tn.splitIntoLines,Xx=tn.splitLongWords,Yx=tn.truncateString,jh=function(t){return t.toUpperCase()},Qx=function(t,r,i){return t},eb=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:jh,dataTransform:Qx});Uh.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.config||{};delete t.config;var i=t.maxLineWidth||1/0;i==="auto"&&(i=process.stdout.columns||1/0),delete t.maxLineWidth,t=Ch({},eb,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||`
29
+ `,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var n=t.columns||[];e=ib(e,n),n.length||e.forEach(function(c){for(var u in c)n.indexOf(u)===-1&&n.push(u)});var o=n.reduce(function(c,u){var l=Object.create(t);return c[u]=Ch(l,r[u]),c},Object.create(null));n.forEach(function(c){var u=o[c];u.name=c,u.maxWidth=Math.ceil(u.maxWidth),u.minWidth=Math.ceil(u.minWidth),u.truncate=!!u.truncate,u.align=u.align||"left"}),e=e.map(function(c){var u=Object.create(null);return n.forEach(function(l){u[l]=c[l]!=null?c[l]:"",u[l]=""+u[l],o[l].preserveNewLines?u[l]=u[l].replace(/[^\S\n]/gmi," "):u[l]=u[l].replace(/\s/gmi," ")}),u}),n.forEach(function(c){var u=o[c];e=e.map(function(l,f){var p=Object.create(u);l[c]=u.dataTransform(l[c],p,f);var y=Object.keys(p);if(y.indexOf("name")!==-1){if(u.headingTransform!==jh)return;u.headingTransform=function(b){return b}}return y.forEach(function(b){return u[b]=p[b]}),l})});var a={};t.showHeaders&&(n.forEach(function(c){var u=o[c];if(!u.showHeaders){a[c]="";return}a[c]=u.headingTransform(u.name)}),e.unshift(a)),n.forEach(function(c){var u=o[c];u.width=e.map(function(l){return l[c]}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,cd(f))))},0)}),n.forEach(function(c){var u=o[c];e=e.map(function(l){return l[c]=Xx(l[c],u.width,u.truncateMarker),l})}),n.forEach(function(c){var u=o[c];e=e.map(function(l,f){var p=l[c];if(l[c]=Ah(p,u.width),u.truncate&&l[c].length>1){l[c]=Ah(p,u.width-cd(u.truncateMarker));var y=l[c][0];rb(y,u.truncateMarker)||(l[c][0]+=u.truncateMarker),l[c]=l[c].slice(0,1)}return l})}),n.forEach(function(c){var u=o[c];u.width=e.map(function(l){return l[c].reduce(function(f,p){return f>=u.maxWidth?f:Math.max(f,Math.min(u.maxWidth,Math.max(u.minWidth,cd(p))))},0)}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,f)))},0)});var s=tb(e,o,n,t.paddingChr);return s.reduce(function(c,u){return c.concat(u.reduce(function(l,f){return l.concat(f.join(t.columnSplitter))},[]))},[]).map(function(c){return Yx(c,i)}).join(t.spacing)};function tb(e,t,r,i){return e.map(function(n){var o=[],a=0;r.forEach(function(u){a=Math.max(a,n[u].length)});for(var s=function(l){o[l]=o[l]||[],r.forEach(function(f){var p=t[f],y=n[f][l]||"";p.align==="right"?o[l].push(Kx(y,p.width,i)):p.align==="center"||p.align==="centre"?o[l].push(qx(y,p.width,i)):o[l].push(Jx(y,p.width,i))})},c=0;c<a;c++)s(c);return o})}function Ch(){return Object.assign?Object.assign.apply(Object,arguments):nb.apply(void 0,arguments)}function nb(e,t){"use strict";if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),i=!1,n,o=1;o<arguments.length;o++){var a=arguments[o];if(a!=null){for(var s=Object.keys(Object(a)),c=0,u=s.length;c<u;c++){var l=s[c];try{var f=Object.getOwnPropertyDescriptor(a,l);f!==void 0&&f.enumerable&&(r[l]=a[l])}catch(p){i||(i=!0,n=p)}}if(i)throw n}}return r}function rb(e,t,r){r=r||e.length,r=r-t.length;var i=e.lastIndexOf(t);return i!==-1&&i===r}function ib(e,t){if(Array.isArray(e))return e;var r=[];for(var i in e){var n={};n[t[0]||"key"]=i,n[t[1]||"value"]=e[i],r.push(n)}return r}});var tg=X((Qh,eg)=>{"use strict";(function(e){if(typeof Qh=="object")eg.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch{t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(x,_){return x+_&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(x,_,m,d,h,g){return _=t(t(_,x),t(d,g)),t(_<<h|_>>>32-h,m)}function n(x,_){var m=x[0],d=x[1],h=x[2],g=x[3];m+=(d&h|~d&g)+_[0]-680876936|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[1]-389564586|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[2]+606105819|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[3]-1044525330|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+_[4]-176418897|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[5]+1200080426|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[6]-1473231341|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[7]-45705983|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+_[8]+1770035416|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[9]-1958414417|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[10]-42063|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[11]-1990404162|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+_[12]+1804603682|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+_[13]-40341101|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+_[14]-1502002290|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+_[15]+1236535329|0,d=(d<<22|d>>>10)+h|0,m+=(d&g|h&~g)+_[1]-165796510|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[6]-1069501632|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[11]+643717713|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[0]-373897302|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+_[5]-701558691|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[10]+38016083|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[15]-660478335|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[4]-405537848|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+_[9]+568446438|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[14]-1019803690|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[3]-187363961|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[8]+1163531501|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+_[13]-1444681467|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+_[2]-51403784|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+_[7]+1735328473|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+_[12]-1926607734|0,d=(d<<20|d>>>12)+h|0,m+=(d^h^g)+_[5]-378558|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[8]-2022574463|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[11]+1839030562|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[14]-35309556|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+_[1]-1530992060|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[4]+1272893353|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[7]-155497632|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[10]-1094730640|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+_[13]+681279174|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[0]-358537222|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[3]-722521979|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[6]+76029189|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+_[9]-640364487|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+_[12]-421815835|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+_[15]+530742520|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+_[2]-995338651|0,d=(d<<23|d>>>9)+h|0,m+=(h^(d|~g))+_[0]-198630844|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[7]+1126891415|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[14]-1416354905|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[5]-57434055|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+_[12]+1700485571|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[3]-1894986606|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[10]-1051523|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[1]-2054922799|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+_[8]+1873313359|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[15]-30611744|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[6]-1560198380|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[13]+1309151649|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+_[4]-145523070|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+_[11]-1120210379|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+_[2]+718787259|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+_[9]-343485551|0,d=(d<<21|d>>>11)+h|0,x[0]=m+x[0]|0,x[1]=d+x[1]|0,x[2]=h+x[2]|0,x[3]=g+x[3]|0}function o(x){var _=[],m;for(m=0;m<64;m+=4)_[m>>2]=x.charCodeAt(m)+(x.charCodeAt(m+1)<<8)+(x.charCodeAt(m+2)<<16)+(x.charCodeAt(m+3)<<24);return _}function a(x){var _=[],m;for(m=0;m<64;m+=4)_[m>>2]=x[m]+(x[m+1]<<8)+(x[m+2]<<16)+(x[m+3]<<24);return _}function s(x){var _=x.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,J,_e,Ze;for(d=64;d<=_;d+=64)n(m,o(x.substring(d-64,d)));for(x=x.substring(d-64),h=x.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=x.charCodeAt(d)<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return J=_*8,J=J.toString(16).match(/(.*?)(.{0,8})$/),_e=parseInt(J[2],16),Ze=parseInt(J[1],16)||0,g[14]=_e,g[15]=Ze,n(m,g),m}function c(x){var _=x.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,J,_e,Ze;for(d=64;d<=_;d+=64)n(m,a(x.subarray(d-64,d)));for(x=d-64<_?x.subarray(d-64):new Uint8Array(0),h=x.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=x[d]<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return J=_*8,J=J.toString(16).match(/(.*?)(.{0,8})$/),_e=parseInt(J[2],16),Ze=parseInt(J[1],16)||0,g[14]=_e,g[15]=Ze,n(m,g),m}function u(x){var _="",m;for(m=0;m<4;m+=1)_+=r[x>>m*8+4&15]+r[x>>m*8&15];return _}function l(x){var _;for(_=0;_<x.length;_+=1)x[_]=u(x[_]);return x.join("")}l(s("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function(x,_){var m=(x&65535)+(_&65535),d=(x>>16)+(_>>16)+(m>>16);return d<<16|m&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function x(_,m){return _=_|0||0,_<0?Math.max(_+m,0):Math.min(_,m)}ArrayBuffer.prototype.slice=function(_,m){var d=this.byteLength,h=x(_,d),g=d,J,_e,Ze,Nd;return m!==e&&(g=x(m,d)),h>g?new ArrayBuffer(0):(J=g-h,_e=new ArrayBuffer(J),Ze=new Uint8Array(_e),Nd=new Uint8Array(this,h,J),Ze.set(Nd),_e)}})();function f(x){return/[\u0080-\uFFFF]/.test(x)&&(x=unescape(encodeURIComponent(x))),x}function p(x,_){var m=x.length,d=new ArrayBuffer(m),h=new Uint8Array(d),g;for(g=0;g<m;g+=1)h[g]=x.charCodeAt(g);return _?h:d}function y(x){return String.fromCharCode.apply(null,new Uint8Array(x))}function b(x,_,m){var d=new Uint8Array(x.byteLength+_.byteLength);return d.set(new Uint8Array(x)),d.set(new Uint8Array(_),x.byteLength),m?d:d.buffer}function k(x){var _=[],m=x.length,d;for(d=0;d<m-1;d+=2)_.push(parseInt(x.substr(d,2),16));return String.fromCharCode.apply(String,_)}function E(){this.reset()}return E.prototype.append=function(x){return this.appendBinary(f(x)),this},E.prototype.appendBinary=function(x){this._buff+=x,this._length+=x.length;var _=this._buff.length,m;for(m=64;m<=_;m+=64)n(this._hash,o(this._buff.substring(m-64,m)));return this._buff=this._buff.substring(m-64),this},E.prototype.end=function(x){var _=this._buff,m=_.length,d,h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g;for(d=0;d<m;d+=1)h[d>>2]|=_.charCodeAt(d)<<(d%4<<3);return this._finish(h,m),g=l(this._hash),x&&(g=k(g)),this.reset(),g},E.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},E.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},E.prototype.setState=function(x){return this._buff=x.buff,this._length=x.length,this._hash=x.hash,this},E.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},E.prototype._finish=function(x,_){var m=_,d,h,g;if(x[m>>2]|=128<<(m%4<<3),m>55)for(n(this._hash,x),m=0;m<16;m+=1)x[m]=0;d=this._length*8,d=d.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(d[2],16),g=parseInt(d[1],16)||0,x[14]=h,x[15]=g,n(this._hash,x)},E.hash=function(x,_){return E.hashBinary(f(x),_)},E.hashBinary=function(x,_){var m=s(x),d=l(m);return _?k(d):d},E.ArrayBuffer=function(){this.reset()},E.ArrayBuffer.prototype.append=function(x){var _=b(this._buff.buffer,x,!0),m=_.length,d;for(this._length+=x.byteLength,d=64;d<=m;d+=64)n(this._hash,a(_.subarray(d-64,d)));return this._buff=d-64<m?new Uint8Array(_.buffer.slice(d-64)):new Uint8Array(0),this},E.ArrayBuffer.prototype.end=function(x){var _=this._buff,m=_.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h,g;for(h=0;h<m;h+=1)d[h>>2]|=_[h]<<(h%4<<3);return this._finish(d,m),g=l(this._hash),x&&(g=k(g)),this.reset(),g},E.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},E.ArrayBuffer.prototype.getState=function(){var x=E.prototype.getState.call(this);return x.buff=y(x.buff),x},E.ArrayBuffer.prototype.setState=function(x){return x.buff=p(x.buff,!0),E.prototype.setState.call(this,x)},E.ArrayBuffer.prototype.destroy=E.prototype.destroy,E.ArrayBuffer.prototype._finish=E.prototype._finish,E.ArrayBuffer.hash=function(x,_){var m=c(new Uint8Array(x)),d=l(m);return _?k(d):d},E})});async function bb(e){let t=(await Promise.resolve().then(()=>se(tg(),1))).default,r=new t.ArrayBuffer,i=2097152;for(let n=0;n<e.size;n+=i){let o=Math.min(n+i,e.size);r.append(await e.slice(n,o).arrayBuffer())}return{md5:r.end()}}async function kb(e){let{createHash:t}=await import("crypto"),r=t("md5");return r.update(e),{md5:r.digest("hex")}}async function Sb(e){let{createHash:t}=await import("crypto"),{createReadStream:r}=await import("fs");return new Promise((i,n)=>{let o=t("md5"),a=r(e);a.on("error",s=>n(O.file(`Failed to read file for MD5: ${s.message}`,{filePath:e}))),a.on("data",s=>o.update(s)),a.on("end",()=>i({md5:o.digest("hex")}))})}async function mo(e){if(e instanceof Blob)return bb(e);if(typeof Buffer<"u"&&Buffer.isBuffer(e))return kb(e);if(typeof e=="string")return Sb(e);throw O.business("Invalid input for MD5 calculation")}var hd=ee(()=>{"use strict";M()});var lg={};ae(lg,{Blob:()=>er,File:()=>$o,FormData:()=>jb});async function*ug(e){if(e.byteLength<=vd){yield e;return}let t=0;for(;t<e.byteLength;){let r=Math.min(e.byteLength-t,vd),i=e.buffer.slice(t,t+r);t+=i.byteLength,yield new Uint8Array(i)}}async function*Ob(e){let t=e.getReader();for(;;){let{done:r,value:i}=await t.read();if(r)break;yield i}}async function*cg(e){for await(let t of e)yield*ug(t)}async function*Db(e){let t=0;for(;t!==e.size;){let i=await e.slice(t,Math.min(e.size,t+vd)).arrayBuffer();t+=i.byteLength,yield new Uint8Array(i)}}async function*gd(e,t=!1){for(let r of e)ArrayBuffer.isView(r)?t?yield*ug(r):yield r:H(r.stream)?yield*Eb(r.stream()):yield*Db(r)}function*Pb(e,t,r=0,i){i??=t;let n=r<0?Math.max(t+r,0):Math.min(r,t),o=i<0?Math.max(t+i,0):Math.min(i,t),a=Math.max(o-n,0),s=0;for(let c of e){if(s>=a)break;let u=ArrayBuffer.isView(c)?c.byteLength:c.size;if(n&&u<=n)n-=u,o-=u;else{let l;ArrayBuffer.isView(c)?(l=c.subarray(n,Math.min(u,o)),s+=l.byteLength):(l=c.slice(n,Math.min(u,o)),s+=l.size),o-=u,n=0,yield l}}}var $d,q,gt,_o,sg,H,Ib,zb,vd,Eb,ht,ho,Qn,Tb,er,Ab,go,vo,$o,Cb,De,yo,_d,jb,dg=ee(()=>{"use strict";$d=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},q=(e,t,r)=>($d(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},_o=(e,t,r,i)=>($d(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),sg=(e,t,r)=>($d(e,t,"access private method"),r),H=e=>typeof e=="function",Ib=e=>typeof e=="object"&&e!=null&&!Array.isArray(e),zb=e=>Ib(e)&&H(e[Symbol.asyncIterator]),vd=65536;Eb=e=>{if(zb(e))return cg(e);if(H(e.getReader))return cg(Ob(e));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};Tb=class yd{constructor(t=[],r={}){if(gt(this,ht,[]),gt(this,ho,""),gt(this,Qn,0),r??={},typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(!H(t[Symbol.iterator]))throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&!H(r))throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");let i=new TextEncoder;for(let o of t){let a;ArrayBuffer.isView(o)?a=new Uint8Array(o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)):o instanceof ArrayBuffer?a=new Uint8Array(o.slice(0)):o instanceof yd?a=o:a=i.encode(String(o)),_o(this,Qn,q(this,Qn)+(ArrayBuffer.isView(a)?a.byteLength:a.size)),q(this,ht).push(a)}let n=r.type===void 0?"":String(r.type);_o(this,ho,/^[\x20-\x7E]*$/.test(n)?n:"")}static[Symbol.hasInstance](t){return!!(t&&typeof t=="object"&&H(t.constructor)&&(H(t.stream)||H(t.arrayBuffer))&&/^(Blob|File)$/.test(t[Symbol.toStringTag]))}get type(){return q(this,ho)}get size(){return q(this,Qn)}slice(t,r,i){return new yd(Pb(q(this,ht),this.size,t,r),{type:i})}async text(){let t=new TextDecoder,r="";for await(let i of gd(q(this,ht)))r+=t.decode(i,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let i of gd(q(this,ht)))t.set(i,r),r+=i.length;return t.buffer}stream(){let t=gd(q(this,ht),!0);return new ReadableStream({async pull(r){let{value:i,done:n}=await t.next();if(n)return queueMicrotask(()=>r.close());r.enqueue(i)},async cancel(){await t.return()}})}get[Symbol.toStringTag](){return"Blob"}};ht=new WeakMap;ho=new WeakMap;Qn=new WeakMap;er=Tb;Object.defineProperties(er.prototype,{type:{enumerable:!0},size:{enumerable:!0},slice:{enumerable:!0},stream:{enumerable:!0},text:{enumerable:!0},arrayBuffer:{enumerable:!0}});Ab=e=>e instanceof er,$o=class extends er{constructor(e,t,r={}){if(super(e,r),gt(this,go,void 0),gt(this,vo,0),arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);_o(this,go,String(t));let i=r.lastModified===void 0?Date.now():Number(r.lastModified);Number.isNaN(i)||_o(this,vo,i)}static[Symbol.hasInstance](e){return e instanceof er&&e[Symbol.toStringTag]==="File"&&typeof e.name=="string"}get name(){return q(this,go)}get webkitRelativePath(){return""}get lastModified(){return q(this,vo)}get[Symbol.toStringTag](){return"File"}};go=new WeakMap;vo=new WeakMap;Cb=e=>e instanceof $o,jb=class{constructor(){gt(this,yo),gt(this,De,new Map)}static[Symbol.hasInstance](e){if(!e)return!1;let t=e;return!!(H(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&H(t.append)&&H(t.set)&&H(t.get)&&H(t.getAll)&&H(t.has)&&H(t.delete)&&H(t.entries)&&H(t.values)&&H(t.keys)&&H(t[Symbol.iterator])&&H(t.forEach))}append(e,t,r){sg(this,yo,_d).call(this,{name:e,fileName:r,append:!0,rawValue:t,argsLength:arguments.length})}set(e,t,r){sg(this,yo,_d).call(this,{name:e,fileName:r,append:!1,rawValue:t,argsLength:arguments.length})}get(e){let t=q(this,De).get(String(e));return t?t[0]:null}getAll(e){let t=q(this,De).get(String(e));return t?t.slice():[]}has(e){return q(this,De).has(String(e))}delete(e){q(this,De).delete(String(e))}*keys(){for(let e of q(this,De).keys())yield e}*entries(){for(let e of this.keys()){let t=this.getAll(e);for(let r of t)yield[e,r]}}*values(){for(let[,e]of this)yield e}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[r,i]of this)e.call(t,i,r,this)}get[Symbol.toStringTag](){return"FormData"}};De=new WeakMap;yo=new WeakSet;_d=function({name:e,rawValue:t,append:r,fileName:i,argsLength:n}){let o=r?"append":"set";if(n<2)throw new TypeError(`Failed to execute '${o}' on 'FormData': 2 arguments required, but only ${n} present.`);e=String(e);let a;if(Cb(t))a=i===void 0?t:new $o([t],i,{type:t.type,lastModified:t.lastModified});else if(Ab(t))a=new $o([t],i===void 0?"blob":i,{type:t.type});else{if(i)throw new TypeError(`Failed to execute '${o}' on 'FormData': parameter 2 is not of type 'Blob'.`);a=String(t)}let s=q(this,De).get(e);if(!s)return void q(this,De).set(e,[a]);if(!r)return void q(this,De).set(e,[a]);s.push(a)};});var kg={};ae(kg,{FormDataEncoder:()=>Bb,isFile:()=>yt,isFormData:()=>$g});function*_g(e){if(e.byteLength<=pg){yield e;return}let t=0;for(;t<e.byteLength;){let r=Math.min(e.byteLength-t,pg),i=e.buffer.slice(t,t+r);t+=i.byteLength,yield new Uint8Array(i)}}function Ub(){let e=16,t="";for(;e--;)t+=mg[Math.random()*mg.length<<0];return t}async function*Lb(e){let t=e.getReader();for(;;){let{done:r,value:i}=await t.read();if(r)break;yield i}}async function*hg(e){for await(let t of e)yield*_g(t)}function gg(e){if(Zb(e)!=="object")return!1;let t=Object.getPrototypeOf(e);return t==null?!0:t.constructor?.toString?.()===Object.toString()}function vg(e,t){if(typeof t=="string"){for(let[r,i]of Object.entries(e))if(t.toLowerCase()===r.toLowerCase())return i}}var yg,bd,B,Le,tr,xd,pg,mg,fg,Fe,Nb,Rb,Fb,yt,$g,Zb,xg,Mb,Vb,xo,rt,nr,bo,rr,vt,ir,or,ko,ar,kd,bg,Bb,Sg=ee(()=>{"use strict";yg=e=>{throw TypeError(e)},bd=(e,t,r)=>t.has(e)||yg("Cannot "+r),B=(e,t,r)=>(bd(e,t,"read from private field"),r?r.call(e):t.get(e)),Le=(e,t,r)=>t.has(e)?yg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tr=(e,t,r,i)=>(bd(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),xd=(e,t,r)=>(bd(e,t,"access private method"),r),pg=65536;mg="abcdefghijklmnopqrstuvwxyz0123456789";fg=e=>String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22"),Fe=e=>typeof e=="function",Nb=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&Fe(e.getReader),Rb=e=>Fe(e[Symbol.asyncIterator]);Fb=e=>{if(Rb(e))return hg(e);if(Nb(e))return hg(Lb(e));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")},yt=e=>!!(e&&typeof e=="object"&&Fe(e.constructor)&&e[Symbol.toStringTag]==="File"&&Fe(e.stream)&&e.name!=null),$g=e=>!!(e&&Fe(e.constructor)&&e[Symbol.toStringTag]==="FormData"&&Fe(e.append)&&Fe(e.getAll)&&Fe(e.entries)&&Fe(e[Symbol.iterator])),Zb=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();xg=e=>String(e).replace(/\r|\n/g,(t,r,i)=>t==="\r"&&i[r+1]!==`
30
30
  `||t===`
31
31
  `&&i[r-1]!=="\r"?`\r
32
- `:t);Lb=e=>new Proxy(e,{get:(t,r)=>hg(t,r),has:(t,r)=>hg(t,r)!==void 0}),Fb={enableAdditionalHeaders:!1},xo={writable:!1,configurable:!1},Zb=class{constructor(e,t,r){if(Le(this,ar),Le(this,rt,`\r
33
- `),Le(this,nr),Le(this,bo),Le(this,rr,"-".repeat(2)),Le(this,vt,new TextEncoder),Le(this,ir),Le(this,or),Le(this,ko),!yg(e))throw new TypeError("Expected first argument to be a FormData instance.");let i;if(fg(t)?r=t:i=t,i||(i=`form-data-encoder-${Ab()}`),typeof i!="string")throw new TypeError("Expected boundary argument to be a string.");if(r&&!fg(r))throw new TypeError("Expected options argument to be an object.");tr(this,or,Array.from(e.entries())),tr(this,ko,{...Fb,...r}),tr(this,nr,V(this,vt).encode(V(this,rt))),tr(this,bo,V(this,nr).byteLength),this.boundary=i,this.contentType=`multipart/form-data; boundary=${this.boundary}`,tr(this,ir,V(this,vt).encode(`${V(this,rr)}${this.boundary}${V(this,rr)}${V(this,rt).repeat(2)}`));let n={"Content-Type":this.contentType},o=xd(this,ar,$g).call(this);o&&(this.contentLength=o,n["Content-Length"]=o),this.headers=Lb(Object.freeze(n)),Object.defineProperties(this,{boundary:xo,contentType:xo,contentLength:xo,headers:xo})}*values(){for(let[e,t]of V(this,or)){let r=yt(t)?t:V(this,vt).encode(_g(t));yield xd(this,ar,kd).call(this,e,r),yield r,yield V(this,nr)}yield V(this,ir)}async*encode(){for(let e of this.values())yt(e)?yield*Nb(e.stream()):yield*vg(e)}[Symbol.iterator](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};rt=new WeakMap;nr=new WeakMap;bo=new WeakMap;rr=new WeakMap;vt=new WeakMap;ir=new WeakMap;or=new WeakMap;ko=new WeakMap;ar=new WeakSet;kd=function(e,t){let r="";if(r+=`${V(this,rr)}${this.boundary}${V(this,rt)}`,r+=`Content-Disposition: form-data; name="${pg(e)}"`,yt(t)&&(r+=`; filename="${pg(t.name)}"${V(this,rt)}`,r+=`Content-Type: ${t.type||"application/octet-stream"}`),V(this,ko).enableAdditionalHeaders===!0){let i=yt(t)?t.size:t.byteLength;i!=null&&!isNaN(i)&&(r+=`${V(this,rt)}Content-Length: ${i}`)}return V(this,vt).encode(`${r}${V(this,rt).repeat(2)}`)};$g=function(){let e=0;for(let[t,r]of V(this,or)){let i=yt(r)?r:V(this,vt).encode(_g(r)),n=yt(i)?i.size:i.byteLength;if(n==null||isNaN(n))return;e+=xd(this,ar,kd).call(this,t,i).byteLength,e+=n,e+=V(this,bo)}return String(e+V(this,ir).byteLength)}});function Sg(e){if(!e||e.length===0)return"";let t=e.filter(o=>o&&typeof o=="string").map(o=>o.replace(/\\/g,"/"));if(t.length===0)return"";if(t.length===1)return t[0];let r=t.map(o=>o.split("/").filter(Boolean)),i=[],n=Math.min(...r.map(o=>o.length));for(let o=0;o<n;o++){let a=r[0][o];if(r.every(s=>s[o]===a))i.push(a);else break}return i.join("/")}function So(e){return e.replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\/+/,"")}var Sd=te(()=>{"use strict"});function wg(e,t={}){if(t.flatten===!1)return e.map(i=>({path:So(i),name:wd(i)}));let r=Mb(e);return e.map(i=>{let n=So(i);if(r){let o=r.endsWith("/")?r:`${r}/`;n.startsWith(o)&&(n=n.substring(o.length))}return n||(n=wd(i)),{path:n,name:wd(i)}})}function Mb(e){if(!e.length)return"";let r=e.map(o=>So(o)).map(o=>o.split("/")),i=[],n=Math.min(...r.map(o=>o.length));for(let o=0;o<n-1;o++){let a=r[0][o];if(r.every(s=>s[o]===a))i.push(a);else break}return i.join("/")}function wd(e){return e.split(/[/\\]/).pop()||e}var Ig=te(()=>{"use strict";Sd()});function Og(e){if(rp(e))return{valid:!1,reason:"File name contains unsafe characters"};if(e.startsWith(" ")||e.endsWith(" "))return{valid:!1,reason:"File name cannot start/end with spaces"};if(e.endsWith("."))return{valid:!1,reason:"File name cannot end with dots"};let t=/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(\.|$)/i,r=e.split("/").pop()||e;return t.test(r)?{valid:!1,reason:"File name uses a reserved system name"}:e.includes("..")?{valid:!1,reason:"File name contains path traversal pattern"}:{valid:!0}}var zg=te(()=>{"use strict";B()});function Eg(e){return Bb.test(e)}var Vb,Bb,Dg=te(()=>{"use strict";Vb=["^npm-debug\\.log$","^\\..*\\.swp$","^\\.DS_Store$","^\\.AppleDouble$","^\\.LSOverride$","^Icon\\r$","^\\._.*","^\\.Spotlight-V100(?:$|\\/)","\\.Trashes","^__MACOSX$","~$","^Thumbs\\.db$","^ehthumbs\\.db$","^[Dd]esktop\\.ini$","@eaDir$"],Bb=new RegExp(Vb.join("|"))});function Tg(e,t){if(!e||e.length===0)return[];if(!t?.allowUnbuilt&&e.find(i=>i&&Xo(i)))throw O.business("Unbuilt project detected \u2014 deploy your build output (dist/, build/, out/), not the project folder");return e.filter(r=>{if(!r)return!1;let i=r.replace(/\\/g,"/").split("/").filter(Boolean);if(i.length===0)return!0;let n=i[i.length-1];if(Eg(n))return!1;for(let a of i)if(a!==".well-known"&&(a.startsWith(".")||a.length>255))return!1;let o=i.slice(0,-1);for(let a of o)if(Gb.some(s=>a.toLowerCase()===s.toLowerCase()))return!1;return!0})}var Gb,Pg=te(()=>{"use strict";B();Dg();Gb=["__MACOSX",".Trashes",".fseventsd",".Spotlight-V100"]});function Ag(e,t){if(e.includes("\0")||e.includes("/../")||e.startsWith("../")||e.endsWith("/.."))throw O.business(`Security error: Unsafe file path "${e}" for file: ${t}`)}function Cg(e,t,r){let i=Og(e);if(!i.valid)throw O.business(i.reason||"Invalid file name");if(qo(e,r))throw O.business(`File extension not allowed: "${t}"`)}var jg=te(()=>{"use strict";B();zg()});var Ng={};ae(Ng,{processFilesForNode:()=>Hb});function Ug(e,t=new Set){let r=[],i=fe.realpathSync(e);if(t.has(i))return r;t.add(i);let n=fe.readdirSync(e);for(let o of n){let a=he.join(e,o),s=fe.statSync(a);if(s.isDirectory()){let c=Ug(a,t);r.push(...c)}else s.isFile()&&r.push(a)}return r}async function Hb(e,t={},r){if(Qt()!=="node")throw O.business("processFilesForNode can only be called in Node.js environment.");for(let I of e){let $=he.resolve(I);try{if(fe.statSync($).isDirectory()){let _=fe.readdirSync($).find(m=>Ko.has(m));if(_)throw O.business(`"${_}" detected \u2014 deploy your build output (dist/, build/, out/), not the project folder`)}}catch(_){if(ce(_))throw _}}let i=e.flatMap(I=>{let $=he.resolve(I);try{return fe.statSync($).isDirectory()?Ug($):[$]}catch{throw O.file(`Path does not exist: ${I}`,{filePath:I})}}),n=[...new Set(i)],o=e.map(I=>he.resolve(I)),a=Sg(o.map(I=>{try{return fe.statSync(I).isDirectory()?I:he.dirname(I)}catch{return he.dirname(I)}})),s=n.map(I=>{if(a&&a.length>0){let $=he.relative(a,I);if($&&typeof $=="string"&&!$.startsWith(".."))return $.replace(/\\/g,"/")}return he.basename(I)}),u=wg(s,{flatten:t.pathDetect!==!1}).map(I=>I.path),l=new Set(Tg(u));if(l.size===0)return[];let f=[],p=[];for(let I=0;I<n.length;I++)l.has(u[I])&&(f.push(n[I]),p.push(u[I]));let y=[],b=0;if(!r)throw O.config("Platform limits not provided. processFilesForNode requires the limits argument \u2014 pass `ship.getLimits()` result.");let E=r.blockedExtensions??[];for(let I=0;I<f.length;I++){let $=f[I],_=p[I];try{Ag(_,$);let m=fe.statSync($);if(m.size===0)continue;if(Cg(_,$,E),m.size>r.maxFileSize)throw O.business(`File ${$} is too large. Maximum allowed size is ${r.maxFileSize/(1024*1024)}MB.`);if(b+=m.size,b>r.maxTotalSize)throw O.business(`Total deploy size is too large. Maximum allowed is ${r.maxTotalSize/(1024*1024)}MB.`);let d=fe.readFileSync($),{md5:h}=await mo(d);y.push({path:_,content:d,size:d.length,md5:h})}catch(m){if(ce(m))throw m;let d=m instanceof Error?m.message:String(m);throw O.file(`Failed to read file "${$}": ${d}`,{filePath:$})}}if(y.length>r.maxFilesCount)throw O.business(`Too many files to deploy. Maximum allowed is ${r.maxFilesCount} files.`);return y}var fe,he,Rg=te(()=>{"use strict";fe=se(require("fs"),1),he=se(require("path"),1);B();Ig();no();Pg();hd();Sd();jg()});var Kg={};ae(Kg,{default:()=>qg});function qg(e){return new Cd(e)}var K,Jg,sr,Pd,ok,ak,sk,ck,Wg,uk,lk,dk,Ad,Cd,Xg=te(()=>{"use strict";K=se(require("process"),1),Jg=require("util");hn();sr=K.default.platform!=="win32"||!!K.default.env.WT_SESSION||K.default.env.TERM_PROGRAM==="vscode",Pd=e=>!!(e.isTTY&&K.default.env.TERM!=="dumb"&&!("CI"in K.default.env)),ok=Ce.blue(sr?"\u2139":"i"),ak=Ce.green(sr?"\u2714":"\u221A"),sk=Ce.yellow(sr?"\u26A0":"\u203C"),ck=Ce.red(sr?"\u2716":"\xD7"),Wg={frames:sr?["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]:["-","\\","|","/"],interval:80},uk="\x1B[?2026h",lk="\x1B[?2026l",dk=/][\s\S]*?(?:|\\)/g,Ad=new Set,Cd=class{#m;#f;#u=-1;#l;#h;#n;#e;#d;#o=0;#a;#t;#y=0;#g=!1;#s=new Map;#v=!1;#r=!1;constructor(t={}){let r=t.spinner??Wg;if(!Array.isArray(r.frames)||r.frames.length===0||r.frames.some(i=>typeof i!="string"))throw new Error("The `spinner.frames` option must be a non-empty array of strings");if(r.interval!==void 0&&!(Number.isInteger(r.interval)&&r.interval>0))throw new Error("The `spinner.interval` option must be a positive integer");this.#m=r.frames,this.#f=r.interval??Wg.interval,this.#h=t.handleSignals??!0,this.#n=t.text??"",this.#e=t.stream??K.default.stderr,this.#d=t.color??"cyan",this.#t=Pd(this.#e),this.#a=this.#T.bind(this)}#_(t){this.#v=!0;try{return t()}finally{this.#v=!1}}#$(t,r){if(t==null)return"";if(typeof t=="string")return t;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){let i=typeof r=="string"&&r!==""&&r!=="buffer"?r:"utf8";return Buffer.from(t).toString(i)}return String(t)}#x(t){if(!this.#t)return t();try{return this.#i(uk),t()}finally{this.#i(lk)}}#b(t){if(!t||this.#s.has(t)||typeof t.write!="function"||Ad.has(t))return;let r=t.write,i=(...n)=>this.#w(t,r,n);this.#s.set(t,{originalWrite:r,hookedWrite:i}),Ad.add(t),t.write=i}#k(){if(!this.#t||this.#s.size>0)return;let t=new Set([this.#e]);(this.#e===K.default.stdout||this.#e===K.default.stderr)&&(Pd(K.default.stdout)&&t.add(K.default.stdout),Pd(K.default.stderr)&&t.add(K.default.stderr));for(let r of t)this.#b(r)}#S(){for(let[t,r]of this.#s)t.write===r.hookedWrite&&(t.write=r.originalWrite),Ad.delete(t);this.#s.clear()}#w(t,r,i){let[n,o,a]=i,s=o,c=a;if(typeof s=="function"&&(c=s,s=void 0),this.#v||!this.isSpinning)return r.call(t,n,s,c);this.#o>0&&this.clear();let u=this.#$(n,s),l=u.at(-1)===`
34
- `,f=r.call(t,n,s,c);return l?this.#r=!1:u!==""&&(this.#r=!0),this.isSpinning&&!this.#r&&this.#c(),f}start(t){return t&&(this.#n=t),this.isSpinning?this:(this.#g=!0,this.#O(),this.#k(),this.#c(),this.#E(),this.#t&&(this.#l=setInterval(()=>{this.#c()},this.#f)),this)}stop(t){if(!this.isSpinning)return this;let r=this.#r;if(this.#g=!1,this.#l&&(clearInterval(this.#l),this.#l=void 0),this.#r=!1,this.#S(),this.#z(),this.clear(),this.#D(),t){let i=r?`
32
+ `:t);Mb=e=>new Proxy(e,{get:(t,r)=>vg(t,r),has:(t,r)=>vg(t,r)!==void 0}),Vb={enableAdditionalHeaders:!1},xo={writable:!1,configurable:!1},Bb=class{constructor(e,t,r){if(Le(this,ar),Le(this,rt,`\r
33
+ `),Le(this,nr),Le(this,bo),Le(this,rr,"-".repeat(2)),Le(this,vt,new TextEncoder),Le(this,ir),Le(this,or),Le(this,ko),!$g(e))throw new TypeError("Expected first argument to be a FormData instance.");let i;if(gg(t)?r=t:i=t,i||(i=`form-data-encoder-${Ub()}`),typeof i!="string")throw new TypeError("Expected boundary argument to be a string.");if(r&&!gg(r))throw new TypeError("Expected options argument to be an object.");tr(this,or,Array.from(e.entries())),tr(this,ko,{...Vb,...r}),tr(this,nr,B(this,vt).encode(B(this,rt))),tr(this,bo,B(this,nr).byteLength),this.boundary=i,this.contentType=`multipart/form-data; boundary=${this.boundary}`,tr(this,ir,B(this,vt).encode(`${B(this,rr)}${this.boundary}${B(this,rr)}${B(this,rt).repeat(2)}`));let n={"Content-Type":this.contentType},o=xd(this,ar,bg).call(this);o&&(this.contentLength=o,n["Content-Length"]=o),this.headers=Mb(Object.freeze(n)),Object.defineProperties(this,{boundary:xo,contentType:xo,contentLength:xo,headers:xo})}*values(){for(let[e,t]of B(this,or)){let r=yt(t)?t:B(this,vt).encode(xg(t));yield xd(this,ar,kd).call(this,e,r),yield r,yield B(this,nr)}yield B(this,ir)}async*encode(){for(let e of this.values())yt(e)?yield*Fb(e.stream()):yield*_g(e)}[Symbol.iterator](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};rt=new WeakMap;nr=new WeakMap;bo=new WeakMap;rr=new WeakMap;vt=new WeakMap;ir=new WeakMap;or=new WeakMap;ko=new WeakMap;ar=new WeakSet;kd=function(e,t){let r="";if(r+=`${B(this,rr)}${this.boundary}${B(this,rt)}`,r+=`Content-Disposition: form-data; name="${fg(e)}"`,yt(t)&&(r+=`; filename="${fg(t.name)}"${B(this,rt)}`,r+=`Content-Type: ${t.type||"application/octet-stream"}`),B(this,ko).enableAdditionalHeaders===!0){let i=yt(t)?t.size:t.byteLength;i!=null&&!isNaN(i)&&(r+=`${B(this,rt)}Content-Length: ${i}`)}return B(this,vt).encode(`${r}${B(this,rt).repeat(2)}`)};bg=function(){let e=0;for(let[t,r]of B(this,or)){let i=yt(r)?r:B(this,vt).encode(xg(r)),n=yt(i)?i.size:i.byteLength;if(n==null||isNaN(n))return;e+=xd(this,ar,kd).call(this,t,i).byteLength,e+=n,e+=B(this,bo)}return String(e+B(this,ir).byteLength)}});function Ig(e){if(!e||e.length===0)return"";let t=e.filter(o=>o&&typeof o=="string").map(o=>o.replace(/\\/g,"/"));if(t.length===0)return"";if(t.length===1)return t[0];let r=t.map(o=>o.split("/").filter(Boolean)),i=[],n=Math.min(...r.map(o=>o.length));for(let o=0;o<n;o++){let a=r[0][o];if(r.every(s=>s[o]===a))i.push(a);else break}return i.join("/")}function So(e){return e.replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\/+/,"")}var Sd=ee(()=>{"use strict"});function zg(e,t={}){if(t.flatten===!1)return e.map(i=>({path:So(i),name:wd(i)}));let r=Gb(e);return e.map(i=>{let n=So(i);if(r){let o=r.endsWith("/")?r:`${r}/`;n.startsWith(o)&&(n=n.substring(o.length))}return n||(n=wd(i)),{path:n,name:wd(i)}})}function Gb(e){if(!e.length)return"";let r=e.map(o=>So(o)).map(o=>o.split("/")),i=[],n=Math.min(...r.map(o=>o.length));for(let o=0;o<n-1;o++){let a=r[0][o];if(r.every(s=>s[o]===a))i.push(a);else break}return i.join("/")}function wd(e){return e.split(/[/\\]/).pop()||e}var Og=ee(()=>{"use strict";Sd()});function Eg(e,t){return Hb.find(r=>r.broken(e,t))}var Hb,Dg=ee(()=>{"use strict";M();Pg();Hb=[{name:"name",broken:({path:e})=>!Id(e).valid,sentence:({path:e})=>Id(e).reason??"Invalid file name"},{name:"extension",broken:({path:e},t)=>ip(e,t.blockedExtensions??[]),sentence:({path:e})=>`File extension not allowed: "${e}"`},{name:"fileSize",broken:({size:e},t)=>e>t.maxFileSize,sentence:({path:e},t)=>`File "${e}" too large. Maximum ${wo(t.maxFileSize)} allowed`},{name:"totalSize",broken:({totalSize:e},t)=>e>t.maxTotalSize,sentence:({totalSize:e},t)=>`Total upload size too large. ${wo(e)} exceeds maximum of ${wo(t.maxTotalSize)}`}]});function wo(e,t=1){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(r));return`${parseFloat((e/r**n).toFixed(t))} ${i[n]}`}function Id(e){if(op(e))return{valid:!1,reason:"File name contains unsafe characters"};if(e.startsWith(" ")||e.endsWith(" "))return{valid:!1,reason:"File name cannot start/end with spaces"};if(e.endsWith("."))return{valid:!1,reason:"File name cannot end with dots"};let t=/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(\.|$)/i,r=e.split("/").pop()||e;return t.test(r)?{valid:!1,reason:"File name uses a reserved system name"}:e.includes("..")?{valid:!1,reason:"File name contains path traversal pattern"}:{valid:!0}}var Pg=ee(()=>{"use strict";M()});function Tg(e){return Jb.test(e)}var Wb,Jb,Ag=ee(()=>{"use strict";Wb=["^npm-debug\\.log$","^\\..*\\.swp$","^\\.DS_Store$","^\\.AppleDouble$","^\\.LSOverride$","^Icon\\r$","^\\._.*","^\\.Spotlight-V100(?:$|\\/)","\\.Trashes","^__MACOSX$","~$","^Thumbs\\.db$","^ehthumbs\\.db$","^[Dd]esktop\\.ini$","@eaDir$"],Jb=new RegExp(Wb.join("|"))});function Cg(e,t){if(!e||e.length===0)return[];if(!t?.allowUnbuilt&&e.find(i=>i&&Xo(i)))throw O.business("Unbuilt project detected \u2014 deploy your build output (dist/, build/, out/), not the project folder");return e.filter(r=>{if(!r)return!1;let i=r.replace(/\\/g,"/").split("/").filter(Boolean);if(i.length===0)return!0;let n=i[i.length-1];if(Tg(n))return!1;for(let a of i)if(a!==".well-known"&&(a.startsWith(".")||a.length>255))return!1;let o=i.slice(0,-1);for(let a of o)if(qb.some(s=>a.toLowerCase()===s.toLowerCase()))return!1;return!0})}var qb,jg=ee(()=>{"use strict";M();Ag();qb=["__MACOSX",".Trashes",".fseventsd",".Spotlight-V100"]});function Ug(e,t){if(e.includes("\0")||e.includes("/../")||e.startsWith("../")||e.endsWith("/.."))throw O.business(`Security error: Unsafe file path "${e}" for file: ${t}`)}function Ng(e,t){let r=Eg(e,t);if(r)throw O.business(r.sentence(e,t))}var Rg=ee(()=>{"use strict";M();Dg()});var Fg={};ae(Fg,{processFilesForNode:()=>Kb});function Lg(e,t=new Set){let r=[],i=fe.realpathSync(e);if(t.has(i))return r;t.add(i);let n=fe.readdirSync(e);for(let o of n){let a=he.join(e,o),s=fe.statSync(a);if(s.isDirectory()){let c=Lg(a,t);r.push(...c)}else s.isFile()&&r.push(a)}return r}async function Kb(e,t={},r){if(Qt()!=="node")throw O.business("processFilesForNode can only be called in Node.js environment.");for(let k of e){let E=he.resolve(k);try{if(fe.statSync(E).isDirectory()){let x=fe.readdirSync(E).find(_=>Ko.has(_));if(x)throw O.business(`"${x}" detected \u2014 deploy your build output (dist/, build/, out/), not the project folder`)}}catch(x){if(ce(x))throw x}}let i=e.flatMap(k=>{let E=he.resolve(k);try{return fe.statSync(E).isDirectory()?Lg(E):[E]}catch{throw O.file(`Path does not exist: ${k}`,{filePath:k})}}),n=[...new Set(i)],o=e.map(k=>he.resolve(k)),a=Ig(o.map(k=>{try{return fe.statSync(k).isDirectory()?k:he.dirname(k)}catch{return he.dirname(k)}})),s=n.map(k=>{if(a&&a.length>0){let E=he.relative(a,k);if(E&&typeof E=="string"&&!E.startsWith(".."))return E.replace(/\\/g,"/")}return he.basename(k)}),u=zg(s,{flatten:t.pathDetect!==!1}).map(k=>k.path),l=new Set(Cg(u));if(l.size===0)return[];let f=[],p=[];for(let k=0;k<n.length;k++)l.has(u[k])&&(f.push(n[k]),p.push(u[k]));let y=[],b=0;if(!r)throw O.config("Platform limits not provided. processFilesForNode requires the limits argument \u2014 pass `ship.getLimits()` result.");for(let k=0;k<f.length;k++){let E=f[k],x=p[k];try{Ug(x,E);let _=fe.statSync(E);if(_.size===0)continue;b+=_.size,Ng({path:x,size:_.size,totalSize:b},r);let m=fe.readFileSync(E),{md5:d}=await mo(m);y.push({path:x,content:m,size:m.length,md5:d})}catch(_){if(ce(_))throw _;let m=_ instanceof Error?_.message:String(_);throw O.file(`Failed to read file "${E}": ${m}`,{filePath:E})}}if(y.length>r.maxFilesCount)throw O.business(`Too many files to deploy. Maximum allowed is ${r.maxFilesCount} files.`);return y}var fe,he,Zg=ee(()=>{"use strict";fe=se(require("fs"),1),he=se(require("path"),1);M();Og();no();jg();hd();Sd();Rg()});var Qg={};ae(Qg,{default:()=>Yg});function Yg(e){return new jd(e)}var K,Xg,sr,Ad,uk,lk,dk,pk,Kg,mk,fk,hk,Cd,jd,ev=ee(()=>{"use strict";K=se(require("process"),1),Xg=require("util");hn();sr=K.default.platform!=="win32"||!!K.default.env.WT_SESSION||K.default.env.TERM_PROGRAM==="vscode",Ad=e=>!!(e.isTTY&&K.default.env.TERM!=="dumb"&&!("CI"in K.default.env)),uk=Ce.blue(sr?"\u2139":"i"),lk=Ce.green(sr?"\u2714":"\u221A"),dk=Ce.yellow(sr?"\u26A0":"\u203C"),pk=Ce.red(sr?"\u2716":"\xD7"),Kg={frames:sr?["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]:["-","\\","|","/"],interval:80},mk="\x1B[?2026h",fk="\x1B[?2026l",hk=/][\s\S]*?(?:|\\)/g,Cd=new Set,jd=class{#m;#f;#u=-1;#l;#h;#n;#e;#d;#o=0;#a;#t;#y=0;#g=!1;#s=new Map;#v=!1;#r=!1;constructor(t={}){let r=t.spinner??Kg;if(!Array.isArray(r.frames)||r.frames.length===0||r.frames.some(i=>typeof i!="string"))throw new Error("The `spinner.frames` option must be a non-empty array of strings");if(r.interval!==void 0&&!(Number.isInteger(r.interval)&&r.interval>0))throw new Error("The `spinner.interval` option must be a positive integer");this.#m=r.frames,this.#f=r.interval??Kg.interval,this.#h=t.handleSignals??!0,this.#n=t.text??"",this.#e=t.stream??K.default.stderr,this.#d=t.color??"cyan",this.#t=Ad(this.#e),this.#a=this.#P.bind(this)}#_(t){this.#v=!0;try{return t()}finally{this.#v=!1}}#$(t,r){if(t==null)return"";if(typeof t=="string")return t;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){let i=typeof r=="string"&&r!==""&&r!=="buffer"?r:"utf8";return Buffer.from(t).toString(i)}return String(t)}#x(t){if(!this.#t)return t();try{return this.#i(mk),t()}finally{this.#i(fk)}}#b(t){if(!t||this.#s.has(t)||typeof t.write!="function"||Cd.has(t))return;let r=t.write,i=(...n)=>this.#w(t,r,n);this.#s.set(t,{originalWrite:r,hookedWrite:i}),Cd.add(t),t.write=i}#k(){if(!this.#t||this.#s.size>0)return;let t=new Set([this.#e]);(this.#e===K.default.stdout||this.#e===K.default.stderr)&&(Ad(K.default.stdout)&&t.add(K.default.stdout),Ad(K.default.stderr)&&t.add(K.default.stderr));for(let r of t)this.#b(r)}#S(){for(let[t,r]of this.#s)t.write===r.hookedWrite&&(t.write=r.originalWrite),Cd.delete(t);this.#s.clear()}#w(t,r,i){let[n,o,a]=i,s=o,c=a;if(typeof s=="function"&&(c=s,s=void 0),this.#v||!this.isSpinning)return r.call(t,n,s,c);this.#o>0&&this.clear();let u=this.#$(n,s),l=u.at(-1)===`
34
+ `,f=r.call(t,n,s,c);return l?this.#r=!1:u!==""&&(this.#r=!0),this.isSpinning&&!this.#r&&this.#c(),f}start(t){return t&&(this.#n=t),this.isSpinning?this:(this.#g=!0,this.#z(),this.#k(),this.#c(),this.#E(),this.#t&&(this.#l=setInterval(()=>{this.#c()},this.#f)),this)}stop(t){if(!this.isSpinning)return this;let r=this.#r;if(this.#g=!1,this.#l&&(clearInterval(this.#l),this.#l=void 0),this.#r=!1,this.#S(),this.#O(),this.clear(),this.#D(),t){let i=r?`
35
35
  `:"";this.#e.write(`${i}${t}
36
- `)}return this}#p(t,r){return this.stop(`${t} ${r??this.#n}`)}success(t){return this.#p(ak,t)}error(t){return this.#p(ck,t)}warning(t){return this.#p(sk,t)}info(t){return this.#p(ok,t)}get isSpinning(){return this.#g}get text(){return this.#n}set text(t){this.#n=t??"",this.#c()}get color(){return this.#d}set color(t){this.#d=t,this.#c()}clear(){return this.#t?this.#o===0?this:(this.#_(()=>{this.#e.cursorTo(0);for(let t=0;t<this.#o;t++)t>0&&this.#e.moveCursor(0,-1),this.#e.clearLine(1)}),this.#o=0,this):this}#c(){if(this.#r)return;let t=this.#t,r=Date.now();(this.#u===-1||r-this.#y>=this.#f)&&(this.#u=++this.#u%this.#m.length,this.#y=r);let i=Ce[this.#d]??Ce.cyan,n=this.#m[this.#u],o=`${i(n)} ${this.#n}`;this.#t||(o+=`
37
- `),t?this.#x(()=>{this.clear(),this.#i(o)}):this.#i(o),this.#t&&(this.#o=this.#I(o))}#i(t){this.#_(()=>{this.#e.write(t)})}#I(t){let r=this.#e.columns||80,i=(0,Jg.stripVTControlCharacters)(t.replaceAll(dk,"")).split(`
38
- `),n=0;for(let o of i)n+=Math.max(1,Math.ceil(o.length/r));return n}#O(){this.#t&&this.#i("\x1B[?25l")}#z(){this.#t&&this.#i("\x1B[?25h")}#E(){this.#h&&(K.default.once("SIGINT",this.#a),K.default.once("SIGTERM",this.#a))}#D(){this.#h&&(K.default.off("SIGINT",this.#a),K.default.off("SIGTERM",this.#a))}#T(t){this.isSpinning&&this.stop();let r=t==="SIGINT"?130:t==="SIGTERM"?143:1;K.default.exit(r)}}});var qd=se(Jd(),1),{program:Ik,createCommand:Ok,createArgument:zk,createOption:Ek,CommanderError:mr,InvalidArgumentError:Kd,InvalidOptionArgumentError:Dk,Command:Xd,Argument:Tk,Option:Pk,Help:Yd}=qd.default;var _t=require("fs"),jd=se(require("path"),1);B();hn();B();var be={};ae(be,{$brand:()=>na,$input:()=>kc,$output:()=>bc,NEVER:()=>ta,TimePrecision:()=>Oc,ZodAny:()=>gl,ZodArray:()=>$l,ZodBase64:()=>Gi,ZodBase64URL:()=>Hi,ZodBigInt:()=>Xt,ZodBigIntFormat:()=>qi,ZodBoolean:()=>Kt,ZodCIDRv4:()=>Vi,ZodCIDRv6:()=>Bi,ZodCUID:()=>Ui,ZodCUID2:()=>Ni,ZodCatch:()=>Ml,ZodCodec:()=>Wn,ZodCustom:()=>Jn,ZodCustomStringFormat:()=>Jt,ZodDate:()=>Mn,ZodDefault:()=>Ul,ZodDiscriminatedUnion:()=>bl,ZodE164:()=>Wi,ZodEmail:()=>Ai,ZodEmoji:()=>Ci,ZodEnum:()=>Ht,ZodError:()=>dx,ZodExactOptional:()=>Al,ZodFile:()=>Tl,ZodFirstPartyTypeKind:()=>td,ZodFunction:()=>Yl,ZodGUID:()=>Nn,ZodIPv4:()=>Zi,ZodIPv6:()=>Mi,ZodISODate:()=>Oi,ZodISODateTime:()=>Ii,ZodISODuration:()=>Ei,ZodISOTime:()=>zi,ZodIntersection:()=>kl,ZodIssueCode:()=>mx,ZodJWT:()=>Ji,ZodKSUID:()=>Fi,ZodLazy:()=>ql,ZodLiteral:()=>Dl,ZodMAC:()=>ul,ZodMap:()=>zl,ZodNaN:()=>Bl,ZodNanoID:()=>ji,ZodNever:()=>yl,ZodNonOptional:()=>to,ZodNull:()=>fl,ZodNullable:()=>jl,ZodNumber:()=>qt,ZodNumberFormat:()=>mt,ZodObject:()=>Bn,ZodOptional:()=>eo,ZodPipe:()=>Hn,ZodPrefault:()=>Rl,ZodPreprocess:()=>Gl,ZodPromise:()=>Xl,ZodReadonly:()=>Hl,ZodRealError:()=>de,ZodRecord:()=>Gt,ZodSet:()=>El,ZodString:()=>Wt,ZodStringFormat:()=>L,ZodSuccess:()=>Zl,ZodSymbol:()=>pl,ZodTemplateLiteral:()=>Jl,ZodTransform:()=>Pl,ZodTuple:()=>wl,ZodType:()=>C,ZodULID:()=>Ri,ZodURL:()=>Zn,ZodUUID:()=>ze,ZodUndefined:()=>ml,ZodUnion:()=>Gn,ZodUnknown:()=>vl,ZodVoid:()=>_l,ZodXID:()=>Li,ZodXor:()=>xl,_ZodString:()=>Pi,_default:()=>Nl,_function:()=>th,any:()=>Pf,array:()=>Vn,base64:()=>hf,base64url:()=>gf,bigint:()=>Of,boolean:()=>dl,catch:()=>Vl,check:()=>nh,cidrv4:()=>mf,cidrv6:()=>ff,clone:()=>ne,codec:()=>Xf,coerce:()=>nd,config:()=>M,core:()=>Ne,cuid:()=>of,cuid2:()=>af,custom:()=>rh,date:()=>Cf,decode:()=>nl,decodeAsync:()=>il,describe:()=>ih,discriminatedUnion:()=>Ff,e164:()=>vf,email:()=>Jm,emoji:()=>nf,encode:()=>tl,encodeAsync:()=>rl,endsWith:()=>jt,enum:()=>Yi,exactOptional:()=>Cl,file:()=>Wf,flattenError:()=>kn,float32:()=>kf,float64:()=>Sf,formatError:()=>Sn,fromJSONSchema:()=>dh,function:()=>th,getErrorMap:()=>hx,globalRegistry:()=>Y,gt:()=>Ie,gte:()=>ie,guid:()=>qm,hash:()=>bf,hex:()=>xf,hostname:()=>$f,httpUrl:()=>tf,includes:()=>At,instanceof:()=>ah,int:()=>Di,int32:()=>wf,int64:()=>zf,intersection:()=>Sl,invertCodec:()=>Yf,ipv4:()=>lf,ipv6:()=>pf,iso:()=>Bt,json:()=>ch,jwt:()=>yf,keyof:()=>jf,ksuid:()=>uf,lazy:()=>Kl,length:()=>dt,literal:()=>Hf,locales:()=>Pn,looseObject:()=>Rf,looseRecord:()=>Mf,lowercase:()=>Tt,lt:()=>we,lte:()=>me,mac:()=>df,map:()=>Vf,maxLength:()=>lt,maxSize:()=>Ke,meta:()=>oh,mime:()=>Ut,minLength:()=>Ue,minSize:()=>Oe,multipleOf:()=>qe,nan:()=>Kf,nanoid:()=>rf,nativeEnum:()=>Gf,negative:()=>gi,never:()=>Ki,nonnegative:()=>yi,nonoptional:()=>Fl,nonpositive:()=>vi,normalize:()=>Nt,null:()=>hl,nullable:()=>Ln,nullish:()=>Jf,number:()=>ll,object:()=>Uf,optional:()=>Rn,overwrite:()=>xe,parse:()=>Xu,parseAsync:()=>Yu,partialRecord:()=>Zf,pipe:()=>Ti,positive:()=>hi,prefault:()=>Ll,preprocess:()=>uh,prettifyError:()=>ha,promise:()=>eh,property:()=>_i,readonly:()=>Wl,record:()=>Ol,refine:()=>Ql,regex:()=>Dt,regexes:()=>pe,registry:()=>Jr,safeDecode:()=>al,safeDecodeAsync:()=>cl,safeEncode:()=>ol,safeEncodeAsync:()=>sl,safeParse:()=>Qu,safeParseAsync:()=>el,set:()=>Bf,setErrorMap:()=>fx,size:()=>ut,slugify:()=>Zt,startsWith:()=>Ct,strictObject:()=>Nf,string:()=>Un,stringFormat:()=>_f,stringbool:()=>sh,success:()=>qf,superRefine:()=>ed,symbol:()=>Df,templateLiteral:()=>Qf,toJSONSchema:()=>ki,toLowerCase:()=>Lt,toUpperCase:()=>Ft,transform:()=>Qi,treeifyError:()=>fa,trim:()=>Rt,tuple:()=>Il,uint32:()=>If,uint64:()=>Ef,ulid:()=>sf,undefined:()=>Tf,union:()=>Xi,unknown:()=>pt,uppercase:()=>Pt,url:()=>ef,util:()=>w,uuid:()=>Km,uuidv4:()=>Xm,uuidv6:()=>Ym,uuidv7:()=>Qm,void:()=>Af,xid:()=>cf,xor:()=>Lf});var Ne={};ae(Ne,{$ZodAny:()=>Bs,$ZodArray:()=>qs,$ZodAsyncError:()=>$e,$ZodBase64:()=>Cs,$ZodBase64URL:()=>js,$ZodBigInt:()=>Fr,$ZodBigIntFormat:()=>Fs,$ZodBoolean:()=>zn,$ZodCIDRv4:()=>Ts,$ZodCIDRv6:()=>Ps,$ZodCUID:()=>_s,$ZodCUID2:()=>$s,$ZodCatch:()=>mc,$ZodCheck:()=>F,$ZodCheckBigIntFormat:()=>qa,$ZodCheckEndsWith:()=>ss,$ZodCheckGreaterThan:()=>Cr,$ZodCheckIncludes:()=>os,$ZodCheckLengthEquals:()=>ts,$ZodCheckLessThan:()=>Ar,$ZodCheckLowerCase:()=>rs,$ZodCheckMaxLength:()=>Qa,$ZodCheckMaxSize:()=>Ka,$ZodCheckMimeType:()=>us,$ZodCheckMinLength:()=>es,$ZodCheckMinSize:()=>Xa,$ZodCheckMultipleOf:()=>Wa,$ZodCheckNumberFormat:()=>Ja,$ZodCheckOverwrite:()=>ls,$ZodCheckProperty:()=>cs,$ZodCheckRegex:()=>ns,$ZodCheckSizeEquals:()=>Ya,$ZodCheckStartsWith:()=>as,$ZodCheckStringFormat:()=>zt,$ZodCheckUpperCase:()=>is,$ZodCodec:()=>Dn,$ZodCustom:()=>xc,$ZodCustomStringFormat:()=>Rs,$ZodDate:()=>Js,$ZodDefault:()=>uc,$ZodDiscriminatedUnion:()=>Ys,$ZodE164:()=>Us,$ZodEmail:()=>hs,$ZodEmoji:()=>vs,$ZodEncodeError:()=>Be,$ZodEnum:()=>rc,$ZodError:()=>bn,$ZodExactOptional:()=>sc,$ZodFile:()=>oc,$ZodFunction:()=>yc,$ZodGUID:()=>ms,$ZodIPv4:()=>zs,$ZodIPv6:()=>Es,$ZodISODate:()=>ws,$ZodISODateTime:()=>Ss,$ZodISODuration:()=>Os,$ZodISOTime:()=>Is,$ZodIntersection:()=>Qs,$ZodJWT:()=>Ns,$ZodKSUID:()=>ks,$ZodLazy:()=>$c,$ZodLiteral:()=>ic,$ZodMAC:()=>Ds,$ZodMap:()=>tc,$ZodNaN:()=>fc,$ZodNanoID:()=>ys,$ZodNever:()=>Hs,$ZodNonOptional:()=>dc,$ZodNull:()=>Vs,$ZodNullable:()=>cc,$ZodNumber:()=>Lr,$ZodNumberFormat:()=>Ls,$ZodObject:()=>Vp,$ZodObjectJIT:()=>Ks,$ZodOptional:()=>Mr,$ZodPipe:()=>Vr,$ZodPrefault:()=>lc,$ZodPreprocess:()=>hc,$ZodPromise:()=>_c,$ZodReadonly:()=>gc,$ZodRealError:()=>le,$ZodRecord:()=>ec,$ZodRegistry:()=>Wr,$ZodSet:()=>nc,$ZodString:()=>ct,$ZodStringFormat:()=>R,$ZodSuccess:()=>pc,$ZodSymbol:()=>Zs,$ZodTemplateLiteral:()=>vc,$ZodTransform:()=>ac,$ZodTuple:()=>Zr,$ZodType:()=>P,$ZodULID:()=>xs,$ZodURL:()=>gs,$ZodUUID:()=>fs,$ZodUndefined:()=>Ms,$ZodUnion:()=>En,$ZodUnknown:()=>Gs,$ZodVoid:()=>Ws,$ZodXID:()=>bs,$ZodXor:()=>Xs,$brand:()=>na,$constructor:()=>v,$input:()=>kc,$output:()=>bc,Doc:()=>On,JSONSchema:()=>Gm,JSONSchemaGenerator:()=>Si,NEVER:()=>ta,TimePrecision:()=>Oc,_any:()=>Jc,_array:()=>tu,_base64:()=>di,_base64url:()=>pi,_bigint:()=>Zc,_boolean:()=>Lc,_catch:()=>rx,_check:()=>Bm,_cidrv4:()=>ui,_cidrv6:()=>li,_coercedBigint:()=>Mc,_coercedBoolean:()=>Fc,_coercedDate:()=>Qc,_coercedNumber:()=>Ac,_coercedString:()=>wc,_cuid:()=>ni,_cuid2:()=>ri,_custom:()=>ru,_date:()=>Yc,_decode:()=>Sr,_decodeAsync:()=>Ir,_default:()=>ex,_discriminatedUnion:()=>M$,_e164:()=>mi,_email:()=>qr,_emoji:()=>ei,_encode:()=>kr,_encodeAsync:()=>wr,_endsWith:()=>jt,_enum:()=>J$,_file:()=>nu,_float32:()=>jc,_float64:()=>Uc,_gt:()=>Ie,_gte:()=>ie,_guid:()=>An,_includes:()=>At,_int:()=>Cc,_int32:()=>Nc,_int64:()=>Vc,_intersection:()=>V$,_ipv4:()=>si,_ipv6:()=>ci,_isoDate:()=>Ec,_isoDateTime:()=>zc,_isoDuration:()=>Tc,_isoTime:()=>Dc,_jwt:()=>fi,_ksuid:()=>ai,_lazy:()=>sx,_length:()=>dt,_literal:()=>K$,_lowercase:()=>Tt,_lt:()=>we,_lte:()=>me,_mac:()=>Ic,_map:()=>H$,_max:()=>me,_maxLength:()=>lt,_maxSize:()=>Ke,_mime:()=>Ut,_min:()=>ie,_minLength:()=>Ue,_minSize:()=>Oe,_multipleOf:()=>qe,_nan:()=>eu,_nanoid:()=>ti,_nativeEnum:()=>q$,_negative:()=>gi,_never:()=>Kc,_nonnegative:()=>yi,_nonoptional:()=>tx,_nonpositive:()=>vi,_normalize:()=>Nt,_null:()=>Wc,_nullable:()=>Q$,_number:()=>Pc,_optional:()=>Y$,_overwrite:()=>xe,_parse:()=>St,_parseAsync:()=>wt,_pipe:()=>ix,_positive:()=>hi,_promise:()=>cx,_property:()=>_i,_readonly:()=>ox,_record:()=>G$,_refine:()=>iu,_regex:()=>Dt,_safeDecode:()=>zr,_safeDecodeAsync:()=>Dr,_safeEncode:()=>Or,_safeEncodeAsync:()=>Er,_safeParse:()=>It,_safeParseAsync:()=>Ot,_set:()=>W$,_size:()=>ut,_slugify:()=>Zt,_startsWith:()=>Ct,_string:()=>Sc,_stringFormat:()=>Mt,_stringbool:()=>cu,_success:()=>nx,_superRefine:()=>ou,_symbol:()=>Gc,_templateLiteral:()=>ax,_toLowerCase:()=>Lt,_toUpperCase:()=>Ft,_transform:()=>X$,_trim:()=>Rt,_tuple:()=>B$,_uint32:()=>Rc,_uint64:()=>Bc,_ulid:()=>ii,_undefined:()=>Hc,_union:()=>F$,_unknown:()=>qc,_uppercase:()=>Pt,_url:()=>Cn,_uuid:()=>Kr,_uuidv4:()=>Xr,_uuidv6:()=>Yr,_uuidv7:()=>Qr,_void:()=>Xc,_xid:()=>oi,_xor:()=>Z$,clone:()=>ne,config:()=>M,createStandardJSONSchemaMethod:()=>Vt,createToJSONSchemaMethod:()=>uu,decode:()=>c_,decodeAsync:()=>l_,describe:()=>au,encode:()=>s_,encodeAsync:()=>u_,extractDefs:()=>Ye,finalize:()=>Qe,flattenError:()=>kn,formatError:()=>Sn,globalConfig:()=>ot,globalRegistry:()=>Y,initializeContext:()=>Xe,isValidBase64:()=>As,isValidBase64URL:()=>Lp,isValidJWT:()=>Fp,locales:()=>Pn,meta:()=>su,parse:()=>xr,parseAsync:()=>br,prettifyError:()=>ha,process:()=>N,regexes:()=>pe,registry:()=>Jr,safeDecode:()=>p_,safeDecodeAsync:()=>f_,safeEncode:()=>d_,safeEncodeAsync:()=>m_,safeParse:()=>ga,safeParseAsync:()=>va,toDotPath:()=>yp,toJSONSchema:()=>ki,treeifyError:()=>fa,util:()=>w,version:()=>ds});var mp,ta=Object.freeze({status:"aborted"});function v(e,t,r){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,l=Object.keys(u);for(let f=0;f<l.length;f++){let p=l[f];p in s||(s[p]=u[p].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let u=r?.Parent?new o:this;i(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var na=Symbol("zod_brand"),$e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Be=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(mp=globalThis).__zod_globalConfig??(mp.__zod_globalConfig={});var ot=globalThis.__zod_globalConfig;function M(e){return e&&Object.assign(ot,e),ot}var w={};ae(w,{BIGINT_FORMAT_RANGES:()=>pa,Class:()=>ia,NUMBER_FORMAT_RANGES:()=>da,aborted:()=>Je,allowsEval:()=>sa,assert:()=>Ly,assertEqual:()=>jy,assertIs:()=>Ny,assertNever:()=>Ry,assertNotEqual:()=>Uy,assignProp:()=>He,base64ToUint8Array:()=>hp,base64urlToUint8Array:()=>n_,cached:()=>bt,captureStackTrace:()=>$r,cleanEnum:()=>t_,cleanRegex:()=>yn,clone:()=>ne,cloneDef:()=>Zy,createTransparentProxy:()=>Wy,defineLazy:()=>j,esc:()=>_r,escapeRegex:()=>ve,explicitlyAborted:()=>ma,extend:()=>Ky,finalizeIssue:()=>re,floatSafeRemainder:()=>oa,getElementAtPath:()=>My,getEnumValues:()=>vn,getLengthableOrigin:()=>xn,getParsedType:()=>Hy,getSizableOrigin:()=>$n,hexToUint8Array:()=>i_,isObject:()=>at,isPlainObject:()=>We,issue:()=>kt,joinValues:()=>x,jsonStringifyReplacer:()=>xt,merge:()=>Yy,mergeDefs:()=>je,normalizeParams:()=>z,nullish:()=>Ge,numKeys:()=>Gy,objectClone:()=>Fy,omit:()=>qy,optionalKeys:()=>la,parsedType:()=>S,partial:()=>Qy,pick:()=>Jy,prefixIssues:()=>ue,primitiveTypes:()=>ua,promiseAllObject:()=>Vy,propertyKeyTypes:()=>_n,randomString:()=>By,required:()=>e_,safeExtend:()=>Xy,shallowClone:()=>ca,slugify:()=>aa,stringifyPrimitive:()=>k,uint8ArrayToBase64:()=>gp,uint8ArrayToBase64url:()=>r_,uint8ArrayToHex:()=>o_,unwrapMessage:()=>gn});function jy(e){return e}function Uy(e){return e}function Ny(e){}function Ry(e){throw new Error("Unexpected value in exhaustive check")}function Ly(e){}function vn(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function x(e,t="|"){return e.map(r=>k(r)).join(t)}function xt(e,t){return typeof t=="bigint"?t.toString():t}function bt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ge(e){return e==null}function yn(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function oa(e,t){let r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var fp=Symbol("evaluating");function j(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==fp)return i===void 0&&(i=fp,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Fy(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function He(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function je(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function Zy(e){return je(e._zod.def)}function My(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function Vy(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function By(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function _r(e){return JSON.stringify(e)}function aa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var $r="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function at(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var sa=bt(()=>{if(ot.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function We(e){if(at(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(at(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ca(e){return We(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Gy(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Hy=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}`)}},_n=new Set(["string","number","symbol"]),ua=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ne(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function z(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 Wy(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function k(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function la(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var da={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]},pa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Jy(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=je(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return He(this,"shape",a),a},checks:[]});return ne(e,o)}function qy(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=je(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return He(this,"shape",a),a},checks:[]});return ne(e,o)}function Ky(e,t){if(!We(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=je(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return He(this,"shape",o),o}});return ne(e,n)}function Xy(e,t){if(!We(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=je(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return He(this,"shape",i),i}});return ne(e,r)}function Yy(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=je(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return He(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ne(e,r)}function Qy(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=je(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return He(this,"shape",c),c},checks:[]});return ne(t,a)}function e_(e,t,r){let i=je(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new e({type:"nonoptional",innerType:n[a]});return He(this,"shape",o),o}});return ne(t,i)}function Je(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ma(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ue(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function gn(e){return typeof e=="string"?e:e?.message}function re(e,t,r){let i=e.message?e.message:gn(e.inst?._zod.def?.error?.(e))??gn(t?.error?.(e))??gn(r.customError?.(e))??gn(r.localeError?.(e))??"Invalid input",{inst:n,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=i,t?.reportInput&&(s.input=a),s}function $n(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function xn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function S(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function kt(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function t_(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function hp(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function gp(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function n_(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return hp(t+r)}function r_(e){return gp(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function i_(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function o_(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ia=class{constructor(...t){}};var vp=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},bn=v("$ZodError",vp),le=v("$ZodError",vp,{Parent:Error});function kn(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Sn(e,t=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let c=r,u=0;for(;u<s.length;){let l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return i(e),r}function fa(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){r.errors.push(t(c));continue}let l=r,f=0;for(;f<u.length;){let p=u[f],y=f===u.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),y&&l.errors.push(t(c)),f++}}};return i(e),r}function yp(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function ha(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${yp(i.path)}`);return t.join(`
39
- `)}var St=e=>(t,r,i,n)=>{let o=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new $e;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>re(c,o,M())));throw $r(s,n?.callee),s}return a.value},xr=St(le),wt=e=>async(t,r,i,n)=>{let o=i?{...i,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>re(c,o,M())));throw $r(s,n?.callee),s}return a.value},br=wt(le),It=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new $e;return o.issues.length?{success:!1,error:new(e??bn)(o.issues.map(a=>re(a,n,M())))}:{success:!0,data:o.value}},ga=It(le),Ot=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>re(a,n,M())))}:{success:!0,data:o.value}},va=Ot(le),kr=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return St(e)(t,r,n)},s_=kr(le),Sr=e=>(t,r,i)=>St(e)(t,r,i),c_=Sr(le),wr=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return wt(e)(t,r,n)},u_=wr(le),Ir=e=>async(t,r,i)=>wt(e)(t,r,i),l_=Ir(le),Or=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return It(e)(t,r,n)},d_=Or(le),zr=e=>(t,r,i)=>It(e)(t,r,i),p_=zr(le),Er=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Ot(e)(t,r,n)},m_=Er(le),Dr=e=>async(t,r,i)=>Ot(e)(t,r,i),f_=Dr(le);var pe={};ae(pe,{base64:()=>Aa,base64url:()=>Tr,bigint:()=>Fa,boolean:()=>Ma,browserEmail:()=>b_,cidrv4:()=>Ta,cidrv6:()=>Pa,cuid:()=>ya,cuid2:()=>_a,date:()=>Ua,datetime:()=>Ra,domain:()=>w_,duration:()=>Sa,e164:()=>ja,email:()=>Ia,emoji:()=>Oa,extendedDuration:()=>h_,guid:()=>wa,hex:()=>I_,hostname:()=>S_,html5Email:()=>__,httpProtocol:()=>Ca,idnEmail:()=>x_,integer:()=>Za,ipv4:()=>za,ipv6:()=>Ea,ksuid:()=>ba,lowercase:()=>Ga,mac:()=>Da,md5_base64:()=>z_,md5_base64url:()=>E_,md5_hex:()=>O_,nanoid:()=>ka,null:()=>Va,number:()=>Pr,rfc5322Email:()=>$_,sha1_base64:()=>T_,sha1_base64url:()=>P_,sha1_hex:()=>D_,sha256_base64:()=>C_,sha256_base64url:()=>j_,sha256_hex:()=>A_,sha384_base64:()=>N_,sha384_base64url:()=>R_,sha384_hex:()=>U_,sha512_base64:()=>F_,sha512_base64url:()=>Z_,sha512_hex:()=>L_,string:()=>La,time:()=>Na,ulid:()=>$a,undefined:()=>Ba,unicodeEmail:()=>_p,uppercase:()=>Ha,uuid:()=>st,uuid4:()=>g_,uuid6:()=>v_,uuid7:()=>y_,xid:()=>xa});var ya=/^[cC][0-9a-z]{6,}$/,_a=/^[0-9a-z]+$/,$a=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xa=/^[0-9a-vA-V]{20}$/,ba=/^[A-Za-z0-9]{27}$/,ka=/^[a-zA-Z0-9_-]{21}$/,Sa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,h_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,wa=/^([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})$/,st=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)$/,g_=st(4),v_=st(6),y_=st(7),Ia=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,__=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$_=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,_p=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,x_=_p,b_=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,k_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Oa(){return new RegExp(k_,"u")}var za=/^(?:(?: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])$/,Ea=/^(([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}|:))$/,Da=e=>{let t=ve(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ta=/^((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])$/,Pa=/^(([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])$/,Aa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tr=/^[A-Za-z0-9_-]*$/,S_=/^(?=.{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])?)*\.?$/,w_=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ca=/^https?$/,ja=/^\+[1-9]\d{6,14}$/,$p="(?:(?:\\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])))",Ua=new RegExp(`^${$p}$`);function xp(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 Na(e){return new RegExp(`^${xp(e)}$`)}function Ra(e){let t=xp({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${$p}T(?:${i})$`)}var La=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Fa=/^-?\d+n?$/,Za=/^-?\d+$/,Pr=/^-?\d+(?:\.\d+)?$/,Ma=/^(?:true|false)$/i,Va=/^null$/i;var Ba=/^undefined$/i;var Ga=/^[^A-Z]*$/,Ha=/^[^a-z]*$/,I_=/^[0-9a-fA-F]*$/;function wn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function In(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var O_=/^[0-9a-fA-F]{32}$/,z_=wn(22,"=="),E_=In(22),D_=/^[0-9a-fA-F]{40}$/,T_=wn(27,"="),P_=In(27),A_=/^[0-9a-fA-F]{64}$/,C_=wn(43,"="),j_=In(43),U_=/^[0-9a-fA-F]{96}$/,N_=wn(64,""),R_=In(64),L_=/^[0-9a-fA-F]{128}$/,F_=wn(86,"=="),Z_=In(86);var F=v("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),kp={number:"number",bigint:"bigint",object:"date"},Ar=v("$ZodCheckLessThan",(e,t)=>{F.init(e,t);let r=kp[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Cr=v("$ZodCheckGreaterThan",(e,t)=>{F.init(e,t);let r=kp[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Wa=v("$ZodCheckMultipleOf",(e,t)=>{F.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):oa(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ja=v("$ZodCheckNumberFormat",(e,t)=>{F.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=da[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Za)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),qa=v("$ZodCheckBigIntFormat",(e,t)=>{F.init(e,t);let[r,i]=pa[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ka=v("$ZodCheckMaxSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:$n(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xa=v("$ZodCheckMinSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:$n(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ya=v("$ZodCheckSizeEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:$n(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Qa=v("$ZodCheckMaxLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let a=xn(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),es=v("$ZodCheckMinLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let a=xn(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ts=v("$ZodCheckLengthEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,o=n.length;if(o===t.length)return;let a=xn(n),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),zt=v("$ZodCheckStringFormat",(e,t)=>{var r,i;F.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),ns=v("$ZodCheckRegex",(e,t)=>{zt.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})}}),rs=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ga),zt.init(e,t)}),is=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ha),zt.init(e,t)}),os=v("$ZodCheckIncludes",(e,t)=>{F.init(e,t);let r=ve(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),as=v("$ZodCheckStartsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`^${ve(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),ss=v("$ZodCheckEndsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`.*${ve(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function bp(e,t,r){e.issues.length&&t.issues.push(...ue(r,e.issues))}var cs=v("$ZodCheckProperty",(e,t)=>{F.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>bp(n,r,t.property));bp(i,r,t.property)}}),us=v("$ZodCheckMimeType",(e,t)=>{F.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),ls=v("$ZodCheckOverwrite",(e,t)=>{F.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var On=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
36
+ `)}return this}#p(t,r){return this.stop(`${t} ${r??this.#n}`)}success(t){return this.#p(lk,t)}error(t){return this.#p(pk,t)}warning(t){return this.#p(dk,t)}info(t){return this.#p(uk,t)}get isSpinning(){return this.#g}get text(){return this.#n}set text(t){this.#n=t??"",this.#c()}get color(){return this.#d}set color(t){this.#d=t,this.#c()}clear(){return this.#t?this.#o===0?this:(this.#_(()=>{this.#e.cursorTo(0);for(let t=0;t<this.#o;t++)t>0&&this.#e.moveCursor(0,-1),this.#e.clearLine(1)}),this.#o=0,this):this}#c(){if(this.#r)return;let t=this.#t,r=Date.now();(this.#u===-1||r-this.#y>=this.#f)&&(this.#u=++this.#u%this.#m.length,this.#y=r);let i=Ce[this.#d]??Ce.cyan,n=this.#m[this.#u],o=`${i(n)} ${this.#n}`;this.#t||(o+=`
37
+ `),t?this.#x(()=>{this.clear(),this.#i(o)}):this.#i(o),this.#t&&(this.#o=this.#I(o))}#i(t){this.#_(()=>{this.#e.write(t)})}#I(t){let r=this.#e.columns||80,i=(0,Xg.stripVTControlCharacters)(t.replaceAll(hk,"")).split(`
38
+ `),n=0;for(let o of i)n+=Math.max(1,Math.ceil(o.length/r));return n}#z(){this.#t&&this.#i("\x1B[?25l")}#O(){this.#t&&this.#i("\x1B[?25h")}#E(){this.#h&&(K.default.once("SIGINT",this.#a),K.default.once("SIGTERM",this.#a))}#D(){this.#h&&(K.default.off("SIGINT",this.#a),K.default.off("SIGTERM",this.#a))}#P(t){this.isSpinning&&this.stop();let r=t==="SIGINT"?130:t==="SIGTERM"?143:1;K.default.exit(r)}}});var Kd=se(qd(),1),{program:Dk,createCommand:Pk,createArgument:Tk,createOption:Ak,CommanderError:mr,InvalidArgumentError:Xd,InvalidOptionArgumentError:Ck,Command:Yd,Argument:jk,Option:Uk,Help:Qd}=Kd.default;var _t=require("fs"),Ud=se(require("path"),1);M();hn();M();var be={};ae(be,{$brand:()=>na,$input:()=>kc,$output:()=>bc,NEVER:()=>ta,TimePrecision:()=>zc,ZodAny:()=>gl,ZodArray:()=>$l,ZodBase64:()=>Gi,ZodBase64URL:()=>Hi,ZodBigInt:()=>Xt,ZodBigIntFormat:()=>qi,ZodBoolean:()=>Kt,ZodCIDRv4:()=>Vi,ZodCIDRv6:()=>Bi,ZodCUID:()=>Ui,ZodCUID2:()=>Ni,ZodCatch:()=>Ml,ZodCodec:()=>Wn,ZodCustom:()=>Jn,ZodCustomStringFormat:()=>Jt,ZodDate:()=>Mn,ZodDefault:()=>Ul,ZodDiscriminatedUnion:()=>bl,ZodE164:()=>Wi,ZodEmail:()=>Ai,ZodEmoji:()=>Ci,ZodEnum:()=>Ht,ZodError:()=>fx,ZodExactOptional:()=>Al,ZodFile:()=>Pl,ZodFirstPartyTypeKind:()=>td,ZodFunction:()=>Yl,ZodGUID:()=>Nn,ZodIPv4:()=>Zi,ZodIPv6:()=>Mi,ZodISODate:()=>zi,ZodISODateTime:()=>Ii,ZodISODuration:()=>Ei,ZodISOTime:()=>Oi,ZodIntersection:()=>kl,ZodIssueCode:()=>gx,ZodJWT:()=>Ji,ZodKSUID:()=>Fi,ZodLazy:()=>ql,ZodLiteral:()=>Dl,ZodMAC:()=>ul,ZodMap:()=>Ol,ZodNaN:()=>Bl,ZodNanoID:()=>ji,ZodNever:()=>yl,ZodNonOptional:()=>to,ZodNull:()=>fl,ZodNullable:()=>jl,ZodNumber:()=>qt,ZodNumberFormat:()=>mt,ZodObject:()=>Bn,ZodOptional:()=>eo,ZodPipe:()=>Hn,ZodPrefault:()=>Rl,ZodPreprocess:()=>Gl,ZodPromise:()=>Xl,ZodReadonly:()=>Hl,ZodRealError:()=>de,ZodRecord:()=>Gt,ZodSet:()=>El,ZodString:()=>Wt,ZodStringFormat:()=>L,ZodSuccess:()=>Zl,ZodSymbol:()=>pl,ZodTemplateLiteral:()=>Jl,ZodTransform:()=>Tl,ZodTuple:()=>wl,ZodType:()=>C,ZodULID:()=>Ri,ZodURL:()=>Zn,ZodUUID:()=>Oe,ZodUndefined:()=>ml,ZodUnion:()=>Gn,ZodUnknown:()=>vl,ZodVoid:()=>_l,ZodXID:()=>Li,ZodXor:()=>xl,_ZodString:()=>Ti,_default:()=>Nl,_function:()=>rh,any:()=>Cf,array:()=>Vn,base64:()=>vf,base64url:()=>yf,bigint:()=>Ef,boolean:()=>dl,catch:()=>Vl,check:()=>ih,cidrv4:()=>hf,cidrv6:()=>gf,clone:()=>ne,codec:()=>Qf,coerce:()=>nd,config:()=>V,core:()=>Ne,cuid:()=>sf,cuid2:()=>cf,custom:()=>oh,date:()=>Uf,decode:()=>nl,decodeAsync:()=>il,describe:()=>ah,discriminatedUnion:()=>Mf,e164:()=>_f,email:()=>Km,emoji:()=>of,encode:()=>tl,encodeAsync:()=>rl,endsWith:()=>jt,enum:()=>Yi,exactOptional:()=>Cl,file:()=>qf,flattenError:()=>kn,float32:()=>wf,float64:()=>If,formatError:()=>Sn,fromJSONSchema:()=>mh,function:()=>rh,getErrorMap:()=>yx,globalRegistry:()=>Y,gt:()=>Ie,gte:()=>ie,guid:()=>Xm,hash:()=>Sf,hex:()=>kf,hostname:()=>bf,httpUrl:()=>rf,includes:()=>At,instanceof:()=>ch,int:()=>Di,int32:()=>zf,int64:()=>Df,intersection:()=>Sl,invertCodec:()=>eh,ipv4:()=>pf,ipv6:()=>ff,iso:()=>Bt,json:()=>lh,jwt:()=>$f,keyof:()=>Nf,ksuid:()=>df,lazy:()=>Kl,length:()=>dt,literal:()=>Jf,locales:()=>Tn,looseObject:()=>Ff,looseRecord:()=>Bf,lowercase:()=>Pt,lt:()=>we,lte:()=>me,mac:()=>mf,map:()=>Gf,maxLength:()=>lt,maxSize:()=>Ke,meta:()=>sh,mime:()=>Ut,minLength:()=>Ue,minSize:()=>ze,multipleOf:()=>qe,nan:()=>Yf,nanoid:()=>af,nativeEnum:()=>Wf,negative:()=>gi,never:()=>Ki,nonnegative:()=>yi,nonoptional:()=>Fl,nonpositive:()=>vi,normalize:()=>Nt,null:()=>hl,nullable:()=>Ln,nullish:()=>Kf,number:()=>ll,object:()=>Rf,optional:()=>Rn,overwrite:()=>xe,parse:()=>Xu,parseAsync:()=>Yu,partialRecord:()=>Vf,pipe:()=>Pi,positive:()=>hi,prefault:()=>Ll,preprocess:()=>dh,prettifyError:()=>ha,promise:()=>nh,property:()=>_i,readonly:()=>Wl,record:()=>zl,refine:()=>Ql,regex:()=>Dt,regexes:()=>pe,registry:()=>Jr,safeDecode:()=>al,safeDecodeAsync:()=>cl,safeEncode:()=>ol,safeEncodeAsync:()=>sl,safeParse:()=>Qu,safeParseAsync:()=>el,set:()=>Hf,setErrorMap:()=>vx,size:()=>ut,slugify:()=>Zt,startsWith:()=>Ct,strictObject:()=>Lf,string:()=>Un,stringFormat:()=>xf,stringbool:()=>uh,success:()=>Xf,superRefine:()=>ed,symbol:()=>Tf,templateLiteral:()=>th,toJSONSchema:()=>ki,toLowerCase:()=>Lt,toUpperCase:()=>Ft,transform:()=>Qi,treeifyError:()=>fa,trim:()=>Rt,tuple:()=>Il,uint32:()=>Of,uint64:()=>Pf,ulid:()=>uf,undefined:()=>Af,union:()=>Xi,unknown:()=>pt,uppercase:()=>Tt,url:()=>nf,util:()=>I,uuid:()=>Ym,uuidv4:()=>Qm,uuidv6:()=>ef,uuidv7:()=>tf,void:()=>jf,xid:()=>lf,xor:()=>Zf});var Ne={};ae(Ne,{$ZodAny:()=>Bs,$ZodArray:()=>qs,$ZodAsyncError:()=>$e,$ZodBase64:()=>Cs,$ZodBase64URL:()=>js,$ZodBigInt:()=>Fr,$ZodBigIntFormat:()=>Fs,$ZodBoolean:()=>On,$ZodCIDRv4:()=>Ps,$ZodCIDRv6:()=>Ts,$ZodCUID:()=>_s,$ZodCUID2:()=>$s,$ZodCatch:()=>mc,$ZodCheck:()=>F,$ZodCheckBigIntFormat:()=>qa,$ZodCheckEndsWith:()=>ss,$ZodCheckGreaterThan:()=>Cr,$ZodCheckIncludes:()=>os,$ZodCheckLengthEquals:()=>ts,$ZodCheckLessThan:()=>Ar,$ZodCheckLowerCase:()=>rs,$ZodCheckMaxLength:()=>Qa,$ZodCheckMaxSize:()=>Ka,$ZodCheckMimeType:()=>us,$ZodCheckMinLength:()=>es,$ZodCheckMinSize:()=>Xa,$ZodCheckMultipleOf:()=>Wa,$ZodCheckNumberFormat:()=>Ja,$ZodCheckOverwrite:()=>ls,$ZodCheckProperty:()=>cs,$ZodCheckRegex:()=>ns,$ZodCheckSizeEquals:()=>Ya,$ZodCheckStartsWith:()=>as,$ZodCheckStringFormat:()=>Ot,$ZodCheckUpperCase:()=>is,$ZodCodec:()=>Dn,$ZodCustom:()=>xc,$ZodCustomStringFormat:()=>Rs,$ZodDate:()=>Js,$ZodDefault:()=>uc,$ZodDiscriminatedUnion:()=>Ys,$ZodE164:()=>Us,$ZodEmail:()=>hs,$ZodEmoji:()=>vs,$ZodEncodeError:()=>Be,$ZodEnum:()=>rc,$ZodError:()=>bn,$ZodExactOptional:()=>sc,$ZodFile:()=>oc,$ZodFunction:()=>yc,$ZodGUID:()=>ms,$ZodIPv4:()=>Os,$ZodIPv6:()=>Es,$ZodISODate:()=>ws,$ZodISODateTime:()=>Ss,$ZodISODuration:()=>zs,$ZodISOTime:()=>Is,$ZodIntersection:()=>Qs,$ZodJWT:()=>Ns,$ZodKSUID:()=>ks,$ZodLazy:()=>$c,$ZodLiteral:()=>ic,$ZodMAC:()=>Ds,$ZodMap:()=>tc,$ZodNaN:()=>fc,$ZodNanoID:()=>ys,$ZodNever:()=>Hs,$ZodNonOptional:()=>dc,$ZodNull:()=>Vs,$ZodNullable:()=>cc,$ZodNumber:()=>Lr,$ZodNumberFormat:()=>Ls,$ZodObject:()=>Gp,$ZodObjectJIT:()=>Ks,$ZodOptional:()=>Mr,$ZodPipe:()=>Vr,$ZodPrefault:()=>lc,$ZodPreprocess:()=>hc,$ZodPromise:()=>_c,$ZodReadonly:()=>gc,$ZodRealError:()=>le,$ZodRecord:()=>ec,$ZodRegistry:()=>Wr,$ZodSet:()=>nc,$ZodString:()=>ct,$ZodStringFormat:()=>R,$ZodSuccess:()=>pc,$ZodSymbol:()=>Zs,$ZodTemplateLiteral:()=>vc,$ZodTransform:()=>ac,$ZodTuple:()=>Zr,$ZodType:()=>T,$ZodULID:()=>xs,$ZodURL:()=>gs,$ZodUUID:()=>fs,$ZodUndefined:()=>Ms,$ZodUnion:()=>En,$ZodUnknown:()=>Gs,$ZodVoid:()=>Ws,$ZodXID:()=>bs,$ZodXor:()=>Xs,$brand:()=>na,$constructor:()=>v,$input:()=>kc,$output:()=>bc,Doc:()=>zn,JSONSchema:()=>Wm,JSONSchemaGenerator:()=>Si,NEVER:()=>ta,TimePrecision:()=>zc,_any:()=>Jc,_array:()=>tu,_base64:()=>di,_base64url:()=>pi,_bigint:()=>Zc,_boolean:()=>Lc,_catch:()=>ax,_check:()=>Hm,_cidrv4:()=>ui,_cidrv6:()=>li,_coercedBigint:()=>Mc,_coercedBoolean:()=>Fc,_coercedDate:()=>Qc,_coercedNumber:()=>Ac,_coercedString:()=>wc,_cuid:()=>ni,_cuid2:()=>ri,_custom:()=>ru,_date:()=>Yc,_decode:()=>Sr,_decodeAsync:()=>Ir,_default:()=>rx,_discriminatedUnion:()=>G$,_e164:()=>mi,_email:()=>qr,_emoji:()=>ei,_encode:()=>kr,_encodeAsync:()=>wr,_endsWith:()=>jt,_enum:()=>X$,_file:()=>nu,_float32:()=>jc,_float64:()=>Uc,_gt:()=>Ie,_gte:()=>ie,_guid:()=>An,_includes:()=>At,_int:()=>Cc,_int32:()=>Nc,_int64:()=>Vc,_intersection:()=>H$,_ipv4:()=>si,_ipv6:()=>ci,_isoDate:()=>Ec,_isoDateTime:()=>Oc,_isoDuration:()=>Pc,_isoTime:()=>Dc,_jwt:()=>fi,_ksuid:()=>ai,_lazy:()=>lx,_length:()=>dt,_literal:()=>Q$,_lowercase:()=>Pt,_lt:()=>we,_lte:()=>me,_mac:()=>Ic,_map:()=>q$,_max:()=>me,_maxLength:()=>lt,_maxSize:()=>Ke,_mime:()=>Ut,_min:()=>ie,_minLength:()=>Ue,_minSize:()=>ze,_multipleOf:()=>qe,_nan:()=>eu,_nanoid:()=>ti,_nativeEnum:()=>Y$,_negative:()=>gi,_never:()=>Kc,_nonnegative:()=>yi,_nonoptional:()=>ix,_nonpositive:()=>vi,_normalize:()=>Nt,_null:()=>Wc,_nullable:()=>nx,_number:()=>Tc,_optional:()=>tx,_overwrite:()=>xe,_parse:()=>St,_parseAsync:()=>wt,_pipe:()=>sx,_positive:()=>hi,_promise:()=>dx,_property:()=>_i,_readonly:()=>cx,_record:()=>J$,_refine:()=>iu,_regex:()=>Dt,_safeDecode:()=>Or,_safeDecodeAsync:()=>Dr,_safeEncode:()=>zr,_safeEncodeAsync:()=>Er,_safeParse:()=>It,_safeParseAsync:()=>zt,_set:()=>K$,_size:()=>ut,_slugify:()=>Zt,_startsWith:()=>Ct,_string:()=>Sc,_stringFormat:()=>Mt,_stringbool:()=>cu,_success:()=>ox,_superRefine:()=>ou,_symbol:()=>Gc,_templateLiteral:()=>ux,_toLowerCase:()=>Lt,_toUpperCase:()=>Ft,_transform:()=>ex,_trim:()=>Rt,_tuple:()=>W$,_uint32:()=>Rc,_uint64:()=>Bc,_ulid:()=>ii,_undefined:()=>Hc,_union:()=>V$,_unknown:()=>qc,_uppercase:()=>Tt,_url:()=>Cn,_uuid:()=>Kr,_uuidv4:()=>Xr,_uuidv6:()=>Yr,_uuidv7:()=>Qr,_void:()=>Xc,_xid:()=>oi,_xor:()=>B$,clone:()=>ne,config:()=>V,createStandardJSONSchemaMethod:()=>Vt,createToJSONSchemaMethod:()=>uu,decode:()=>d_,decodeAsync:()=>m_,describe:()=>au,encode:()=>l_,encodeAsync:()=>p_,extractDefs:()=>Ye,finalize:()=>Qe,flattenError:()=>kn,formatError:()=>Sn,globalConfig:()=>ot,globalRegistry:()=>Y,initializeContext:()=>Xe,isValidBase64:()=>As,isValidBase64URL:()=>Zp,isValidJWT:()=>Mp,locales:()=>Tn,meta:()=>su,parse:()=>xr,parseAsync:()=>br,prettifyError:()=>ha,process:()=>N,regexes:()=>pe,registry:()=>Jr,safeDecode:()=>h_,safeDecodeAsync:()=>v_,safeEncode:()=>f_,safeEncodeAsync:()=>g_,safeParse:()=>ga,safeParseAsync:()=>va,toDotPath:()=>$p,toJSONSchema:()=>ki,treeifyError:()=>fa,util:()=>I,version:()=>ds});var hp,ta=Object.freeze({status:"aborted"});function v(e,t,r){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,l=Object.keys(u);for(let f=0;f<l.length;f++){let p=l[f];p in s||(s[p]=u[p].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function a(s){var c;let u=r?.Parent?new o:this;i(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var na=Symbol("zod_brand"),$e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Be=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(hp=globalThis).__zod_globalConfig??(hp.__zod_globalConfig={});var ot=globalThis.__zod_globalConfig;function V(e){return e&&Object.assign(ot,e),ot}var I={};ae(I,{BIGINT_FORMAT_RANGES:()=>pa,Class:()=>ia,NUMBER_FORMAT_RANGES:()=>da,aborted:()=>Je,allowsEval:()=>sa,assert:()=>My,assertEqual:()=>Ry,assertIs:()=>Fy,assertNever:()=>Zy,assertNotEqual:()=>Ly,assignProp:()=>He,base64ToUint8Array:()=>vp,base64urlToUint8Array:()=>o_,cached:()=>bt,captureStackTrace:()=>$r,cleanEnum:()=>i_,cleanRegex:()=>yn,clone:()=>ne,cloneDef:()=>By,createTransparentProxy:()=>Ky,defineLazy:()=>j,esc:()=>_r,escapeRegex:()=>ve,explicitlyAborted:()=>ma,extend:()=>Qy,finalizeIssue:()=>re,floatSafeRemainder:()=>oa,getElementAtPath:()=>Gy,getEnumValues:()=>vn,getLengthableOrigin:()=>xn,getParsedType:()=>qy,getSizableOrigin:()=>$n,hexToUint8Array:()=>s_,isObject:()=>at,isPlainObject:()=>We,issue:()=>kt,joinValues:()=>$,jsonStringifyReplacer:()=>xt,merge:()=>t_,mergeDefs:()=>je,normalizeParams:()=>z,nullish:()=>Ge,numKeys:()=>Jy,objectClone:()=>Vy,omit:()=>Yy,optionalKeys:()=>la,parsedType:()=>w,partial:()=>n_,pick:()=>Xy,prefixIssues:()=>ue,primitiveTypes:()=>ua,promiseAllObject:()=>Hy,propertyKeyTypes:()=>_n,randomString:()=>Wy,required:()=>r_,safeExtend:()=>e_,shallowClone:()=>ca,slugify:()=>aa,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>yp,uint8ArrayToBase64url:()=>a_,uint8ArrayToHex:()=>c_,unwrapMessage:()=>gn});function Ry(e){return e}function Ly(e){return e}function Fy(e){}function Zy(e){throw new Error("Unexpected value in exhaustive check")}function My(e){}function vn(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function $(e,t="|"){return e.map(r=>S(r)).join(t)}function xt(e,t){return typeof t=="bigint"?t.toString():t}function bt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ge(e){return e==null}function yn(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function oa(e,t){let r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var gp=Symbol("evaluating");function j(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==gp)return i===void 0&&(i=gp,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Vy(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function He(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function je(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function By(e){return je(e._zod.def)}function Gy(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function Hy(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function Wy(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function _r(e){return JSON.stringify(e)}function aa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var $r="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function at(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var sa=bt(()=>{if(ot.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function We(e){if(at(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(at(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ca(e){return We(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Jy(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var qy=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}`)}},_n=new Set(["string","number","symbol"]),ua=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ne(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function z(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 Ky(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function la(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var da={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]},pa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Xy(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=je(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return He(this,"shape",a),a},checks:[]});return ne(e,o)}function Yy(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=je(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return He(this,"shape",a),a},checks:[]});return ne(e,o)}function Qy(e,t){if(!We(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=je(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return He(this,"shape",o),o}});return ne(e,n)}function e_(e,t){if(!We(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=je(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return He(this,"shape",i),i}});return ne(e,r)}function t_(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=je(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return He(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ne(e,r)}function n_(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=je(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return He(this,"shape",c),c},checks:[]});return ne(t,a)}function r_(e,t,r){let i=je(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new e({type:"nonoptional",innerType:n[a]});return He(this,"shape",o),o}});return ne(t,i)}function Je(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ma(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ue(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function gn(e){return typeof e=="string"?e:e?.message}function re(e,t,r){let i=e.message?e.message:gn(e.inst?._zod.def?.error?.(e))??gn(t?.error?.(e))??gn(r.customError?.(e))??gn(r.localeError?.(e))??"Invalid input",{inst:n,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=i,t?.reportInput&&(s.input=a),s}function $n(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function xn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function w(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function kt(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function i_(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function vp(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function yp(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function o_(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return vp(t+r)}function a_(e){return yp(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function s_(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function c_(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ia=class{constructor(...t){}};var _p=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},bn=v("$ZodError",_p),le=v("$ZodError",_p,{Parent:Error});function kn(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Sn(e,t=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let c=r,u=0;for(;u<s.length;){let l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return i(e),r}function fa(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){r.errors.push(t(c));continue}let l=r,f=0;for(;f<u.length;){let p=u[f],y=f===u.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),y&&l.errors.push(t(c)),f++}}};return i(e),r}function $p(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function ha(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${$p(i.path)}`);return t.join(`
39
+ `)}var St=e=>(t,r,i,n)=>{let o=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new $e;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>re(c,o,V())));throw $r(s,n?.callee),s}return a.value},xr=St(le),wt=e=>async(t,r,i,n)=>{let o=i?{...i,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>re(c,o,V())));throw $r(s,n?.callee),s}return a.value},br=wt(le),It=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new $e;return o.issues.length?{success:!1,error:new(e??bn)(o.issues.map(a=>re(a,n,V())))}:{success:!0,data:o.value}},ga=It(le),zt=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>re(a,n,V())))}:{success:!0,data:o.value}},va=zt(le),kr=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return St(e)(t,r,n)},l_=kr(le),Sr=e=>(t,r,i)=>St(e)(t,r,i),d_=Sr(le),wr=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return wt(e)(t,r,n)},p_=wr(le),Ir=e=>async(t,r,i)=>wt(e)(t,r,i),m_=Ir(le),zr=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return It(e)(t,r,n)},f_=zr(le),Or=e=>(t,r,i)=>It(e)(t,r,i),h_=Or(le),Er=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return zt(e)(t,r,n)},g_=Er(le),Dr=e=>async(t,r,i)=>zt(e)(t,r,i),v_=Dr(le);var pe={};ae(pe,{base64:()=>Aa,base64url:()=>Pr,bigint:()=>Fa,boolean:()=>Ma,browserEmail:()=>w_,cidrv4:()=>Pa,cidrv6:()=>Ta,cuid:()=>ya,cuid2:()=>_a,date:()=>Ua,datetime:()=>Ra,domain:()=>O_,duration:()=>Sa,e164:()=>ja,email:()=>Ia,emoji:()=>za,extendedDuration:()=>y_,guid:()=>wa,hex:()=>E_,hostname:()=>z_,html5Email:()=>b_,httpProtocol:()=>Ca,idnEmail:()=>S_,integer:()=>Za,ipv4:()=>Oa,ipv6:()=>Ea,ksuid:()=>ba,lowercase:()=>Ga,mac:()=>Da,md5_base64:()=>P_,md5_base64url:()=>T_,md5_hex:()=>D_,nanoid:()=>ka,null:()=>Va,number:()=>Tr,rfc5322Email:()=>k_,sha1_base64:()=>C_,sha1_base64url:()=>j_,sha1_hex:()=>A_,sha256_base64:()=>N_,sha256_base64url:()=>R_,sha256_hex:()=>U_,sha384_base64:()=>F_,sha384_base64url:()=>Z_,sha384_hex:()=>L_,sha512_base64:()=>V_,sha512_base64url:()=>B_,sha512_hex:()=>M_,string:()=>La,time:()=>Na,ulid:()=>$a,undefined:()=>Ba,unicodeEmail:()=>xp,uppercase:()=>Ha,uuid:()=>st,uuid4:()=>__,uuid6:()=>$_,uuid7:()=>x_,xid:()=>xa});var ya=/^[cC][0-9a-z]{6,}$/,_a=/^[0-9a-z]+$/,$a=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xa=/^[0-9a-vA-V]{20}$/,ba=/^[A-Za-z0-9]{27}$/,ka=/^[a-zA-Z0-9_-]{21}$/,Sa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,y_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,wa=/^([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})$/,st=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)$/,__=st(4),$_=st(6),x_=st(7),Ia=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b_=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,k_=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,xp=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,S_=xp,w_=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,I_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function za(){return new RegExp(I_,"u")}var Oa=/^(?:(?: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])$/,Ea=/^(([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}|:))$/,Da=e=>{let t=ve(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Pa=/^((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])$/,Ta=/^(([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])$/,Aa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pr=/^[A-Za-z0-9_-]*$/,z_=/^(?=.{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])?)*\.?$/,O_=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ca=/^https?$/,ja=/^\+[1-9]\d{6,14}$/,bp="(?:(?:\\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])))",Ua=new RegExp(`^${bp}$`);function kp(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 Na(e){return new RegExp(`^${kp(e)}$`)}function Ra(e){let t=kp({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${bp}T(?:${i})$`)}var La=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Fa=/^-?\d+n?$/,Za=/^-?\d+$/,Tr=/^-?\d+(?:\.\d+)?$/,Ma=/^(?:true|false)$/i,Va=/^null$/i;var Ba=/^undefined$/i;var Ga=/^[^A-Z]*$/,Ha=/^[^a-z]*$/,E_=/^[0-9a-fA-F]*$/;function wn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function In(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var D_=/^[0-9a-fA-F]{32}$/,P_=wn(22,"=="),T_=In(22),A_=/^[0-9a-fA-F]{40}$/,C_=wn(27,"="),j_=In(27),U_=/^[0-9a-fA-F]{64}$/,N_=wn(43,"="),R_=In(43),L_=/^[0-9a-fA-F]{96}$/,F_=wn(64,""),Z_=In(64),M_=/^[0-9a-fA-F]{128}$/,V_=wn(86,"=="),B_=In(86);var F=v("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),wp={number:"number",bigint:"bigint",object:"date"},Ar=v("$ZodCheckLessThan",(e,t)=>{F.init(e,t);let r=wp[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Cr=v("$ZodCheckGreaterThan",(e,t)=>{F.init(e,t);let r=wp[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Wa=v("$ZodCheckMultipleOf",(e,t)=>{F.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):oa(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ja=v("$ZodCheckNumberFormat",(e,t)=>{F.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=da[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Za)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),qa=v("$ZodCheckBigIntFormat",(e,t)=>{F.init(e,t);let[r,i]=pa[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ka=v("$ZodCheckMaxSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:$n(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xa=v("$ZodCheckMinSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:$n(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ya=v("$ZodCheckSizeEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:$n(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Qa=v("$ZodCheckMaxLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let a=xn(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),es=v("$ZodCheckMinLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let a=xn(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ts=v("$ZodCheckLengthEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Ge(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,o=n.length;if(o===t.length)return;let a=xn(n),s=o>t.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ot=v("$ZodCheckStringFormat",(e,t)=>{var r,i;F.init(e,t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),ns=v("$ZodCheckRegex",(e,t)=>{Ot.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})}}),rs=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ga),Ot.init(e,t)}),is=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ha),Ot.init(e,t)}),os=v("$ZodCheckIncludes",(e,t)=>{F.init(e,t);let r=ve(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),as=v("$ZodCheckStartsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`^${ve(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),ss=v("$ZodCheckEndsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`.*${ve(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Sp(e,t,r){e.issues.length&&t.issues.push(...ue(r,e.issues))}var cs=v("$ZodCheckProperty",(e,t)=>{F.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>Sp(n,r,t.property));Sp(i,r,t.property)}}),us=v("$ZodCheckMimeType",(e,t)=>{F.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),ls=v("$ZodCheckOverwrite",(e,t)=>{F.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var zn=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
40
40
  `).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
41
- `))}};var ds={major:4,minor:4,patch:3};var P=v("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ds;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,c)=>{let u=Je(a),l;for(let f of s){if(f._zod.def.when){if(ma(a)||!f._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&c?.async===!1)throw new $e;if(l||y instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await y,a.issues.length!==p&&(u||(u=Je(a,p)))});else{if(a.issues.length===p)continue;u||(u=Je(a,p))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(Je(a))return a.aborted=!0,a;let u=n(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new $e;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>o(l,a,s)):o(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new $e;return c.then(u=>n(u,i,s))}return n(c,i,s)}}j(e,"~standard",()=>({validate:n=>{try{let o=ga(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return va(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),ct=v("$ZodString",(e,t)=>{P.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??La(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),R=v("$ZodStringFormat",(e,t)=>{zt.init(e,t),ct.init(e,t)}),ms=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=wa),R.init(e,t)}),fs=v("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=st(i))}else t.pattern??(t.pattern=st());R.init(e,t)}),hs=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ia),R.init(e,t)}),gs=v("$ZodURL",(e,t)=>{R.init(e,t),e._zod.check=r=>{try{let i=r.value.trim();if(!t.normalize&&t.protocol?.source===Ca.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),vs=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Oa()),R.init(e,t)}),ys=v("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ka),R.init(e,t)}),_s=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ya),R.init(e,t)}),$s=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_a),R.init(e,t)}),xs=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$a),R.init(e,t)}),bs=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=xa),R.init(e,t)}),ks=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ba),R.init(e,t)}),Ss=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ra(t)),R.init(e,t)}),ws=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ua),R.init(e,t)}),Is=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Na(t)),R.init(e,t)}),Os=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Sa),R.init(e,t)}),zs=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=za),R.init(e,t),e._zod.bag.format="ipv4"}),Es=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ea),R.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Ds=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Da(t.delimiter)),R.init(e,t),e._zod.bag.format="mac"}),Ts=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ta),R.init(e,t)}),Ps=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Pa),R.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function As(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Cs=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Aa),R.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{As(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Lp(e){if(!Tr.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return As(r)}var js=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Tr),R.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Lp(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Us=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ja),R.init(e,t)});function Fp(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Ns=v("$ZodJWT",(e,t)=>{R.init(e,t),e._zod.check=r=>{Fp(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Rs=v("$ZodCustomStringFormat",(e,t)=>{R.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Lr=v("$ZodNumber",(e,t)=>{P.init(e,t),e._zod.pattern=e._zod.bag.pattern??Pr,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Ls=v("$ZodNumberFormat",(e,t)=>{Ja.init(e,t),Lr.init(e,t)}),zn=v("$ZodBoolean",(e,t)=>{P.init(e,t),e._zod.pattern=Ma,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Fr=v("$ZodBigInt",(e,t)=>{P.init(e,t),e._zod.pattern=Fa,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Fs=v("$ZodBigIntFormat",(e,t)=>{qa.init(e,t),Fr.init(e,t)}),Zs=v("$ZodSymbol",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Ms=v("$ZodUndefined",(e,t)=>{P.init(e,t),e._zod.pattern=Ba,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Vs=v("$ZodNull",(e,t)=>{P.init(e,t),e._zod.pattern=Va,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Bs=v("$ZodAny",(e,t)=>{P.init(e,t),e._zod.parse=r=>r}),Gs=v("$ZodUnknown",(e,t)=>{P.init(e,t),e._zod.parse=r=>r}),Hs=v("$ZodNever",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Ws=v("$ZodVoid",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Js=v("$ZodDate",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function wp(e,t,r){e.issues.length&&t.issues.push(...ue(r,e.issues)),t.value[r]=e.value}var qs=v("$ZodArray",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let s=n[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>wp(u,r,a))):wp(c,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function Rr(e,t,r,i,n,o){let a=r in i;if(e.issues.length){if(n&&o&&!a)return;t.issues.push(...ue(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Zp(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=la(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Mp(e,t,r,i,n,o){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",f=c.optout==="optional";for(let p in t){if(p==="__proto__"||s.has(p))continue;if(u==="never"){a.push(p);continue}let y=c.run({value:t[p],issues:[]},i);y instanceof Promise?e.push(y.then(b=>Rr(b,r,p,t,l,f))):Rr(y,r,p,t,l,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Vp=v("$ZodObject",(e,t)=>{if(P.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let i=bt(()=>Zp(t));j(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let f of l.values)c[u].add(f)}}return c});let n=at,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let l=[],f=a.shape;for(let p of a.keys){let y=f[p],b=y._zod.optin==="optional",E=y._zod.optout==="optional",I=y._zod.run({value:u[p],issues:[]},c);I instanceof Promise?l.push(I.then($=>Rr($,s,p,u,b,E))):Rr(I,s,p,u,b,E)}return o?Mp(l,u,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Ks=v("$ZodObjectJIT",(e,t)=>{Vp.init(e,t);let r=e._zod.parse,i=bt(()=>Zp(t)),n=p=>{let y=new On(["shape","payload","ctx"]),b=i.value,E=m=>{let d=_r(m);return`shape[${d}]._zod.run({ value: input[${d}], issues: [] }, ctx)`};y.write("const input = payload.value;");let I=Object.create(null),$=0;for(let m of b.keys)I[m]=`key_${$++}`;y.write("const newResult = {};");for(let m of b.keys){let d=I[m],h=_r(m),g=p[m],J=g?._zod?.optin==="optional",_e=g?._zod?.optout==="optional";y.write(`const ${d} = ${E(m)};`),J&&_e?y.write(`
41
+ `))}};var ds={major:4,minor:4,patch:3};var T=v("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ds;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,c)=>{let u=Je(a),l;for(let f of s){if(f._zod.def.when){if(ma(a)||!f._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,y=f._zod.check(a);if(y instanceof Promise&&c?.async===!1)throw new $e;if(l||y instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await y,a.issues.length!==p&&(u||(u=Je(a,p)))});else{if(a.issues.length===p)continue;u||(u=Je(a,p))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(Je(a))return a.aborted=!0,a;let u=n(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new $e;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>o(l,a,s)):o(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new $e;return c.then(u=>n(u,i,s))}return n(c,i,s)}}j(e,"~standard",()=>({validate:n=>{try{let o=ga(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return va(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),ct=v("$ZodString",(e,t)=>{T.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??La(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),R=v("$ZodStringFormat",(e,t)=>{Ot.init(e,t),ct.init(e,t)}),ms=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=wa),R.init(e,t)}),fs=v("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=st(i))}else t.pattern??(t.pattern=st());R.init(e,t)}),hs=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ia),R.init(e,t)}),gs=v("$ZodURL",(e,t)=>{R.init(e,t),e._zod.check=r=>{try{let i=r.value.trim();if(!t.normalize&&t.protocol?.source===Ca.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),vs=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=za()),R.init(e,t)}),ys=v("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ka),R.init(e,t)}),_s=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ya),R.init(e,t)}),$s=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_a),R.init(e,t)}),xs=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$a),R.init(e,t)}),bs=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=xa),R.init(e,t)}),ks=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ba),R.init(e,t)}),Ss=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ra(t)),R.init(e,t)}),ws=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ua),R.init(e,t)}),Is=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Na(t)),R.init(e,t)}),zs=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Sa),R.init(e,t)}),Os=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Oa),R.init(e,t),e._zod.bag.format="ipv4"}),Es=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ea),R.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Ds=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Da(t.delimiter)),R.init(e,t),e._zod.bag.format="mac"}),Ps=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Pa),R.init(e,t)}),Ts=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ta),R.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function As(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Cs=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Aa),R.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{As(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Zp(e){if(!Pr.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return As(r)}var js=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Pr),R.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Zp(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Us=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ja),R.init(e,t)});function Mp(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Ns=v("$ZodJWT",(e,t)=>{R.init(e,t),e._zod.check=r=>{Mp(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Rs=v("$ZodCustomStringFormat",(e,t)=>{R.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Lr=v("$ZodNumber",(e,t)=>{T.init(e,t),e._zod.pattern=e._zod.bag.pattern??Tr,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Ls=v("$ZodNumberFormat",(e,t)=>{Ja.init(e,t),Lr.init(e,t)}),On=v("$ZodBoolean",(e,t)=>{T.init(e,t),e._zod.pattern=Ma,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Fr=v("$ZodBigInt",(e,t)=>{T.init(e,t),e._zod.pattern=Fa,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Fs=v("$ZodBigIntFormat",(e,t)=>{qa.init(e,t),Fr.init(e,t)}),Zs=v("$ZodSymbol",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Ms=v("$ZodUndefined",(e,t)=>{T.init(e,t),e._zod.pattern=Ba,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Vs=v("$ZodNull",(e,t)=>{T.init(e,t),e._zod.pattern=Va,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Bs=v("$ZodAny",(e,t)=>{T.init(e,t),e._zod.parse=r=>r}),Gs=v("$ZodUnknown",(e,t)=>{T.init(e,t),e._zod.parse=r=>r}),Hs=v("$ZodNever",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Ws=v("$ZodVoid",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Js=v("$ZodDate",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function zp(e,t,r){e.issues.length&&t.issues.push(...ue(r,e.issues)),t.value[r]=e.value}var qs=v("$ZodArray",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let s=n[a],c=t.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>zp(u,r,a))):zp(c,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function Rr(e,t,r,i,n,o){let a=r in i;if(e.issues.length){if(n&&o&&!a)return;t.issues.push(...ue(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Vp(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=la(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Bp(e,t,r,i,n,o){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",f=c.optout==="optional";for(let p in t){if(p==="__proto__"||s.has(p))continue;if(u==="never"){a.push(p);continue}let y=c.run({value:t[p],issues:[]},i);y instanceof Promise?e.push(y.then(b=>Rr(b,r,p,t,l,f))):Rr(y,r,p,t,l,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Gp=v("$ZodObject",(e,t)=>{if(T.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let i=bt(()=>Vp(t));j(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let f of l.values)c[u].add(f)}}return c});let n=at,o=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=i.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let l=[],f=a.shape;for(let p of a.keys){let y=f[p],b=y._zod.optin==="optional",k=y._zod.optout==="optional",E=y._zod.run({value:u[p],issues:[]},c);E instanceof Promise?l.push(E.then(x=>Rr(x,s,p,u,b,k))):Rr(E,s,p,u,b,k)}return o?Bp(l,u,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Ks=v("$ZodObjectJIT",(e,t)=>{Gp.init(e,t);let r=e._zod.parse,i=bt(()=>Vp(t)),n=p=>{let y=new zn(["shape","payload","ctx"]),b=i.value,k=m=>{let d=_r(m);return`shape[${d}]._zod.run({ value: input[${d}], issues: [] }, ctx)`};y.write("const input = payload.value;");let E=Object.create(null),x=0;for(let m of b.keys)E[m]=`key_${x++}`;y.write("const newResult = {};");for(let m of b.keys){let d=E[m],h=_r(m),g=p[m],J=g?._zod?.optin==="optional",_e=g?._zod?.optout==="optional";y.write(`const ${d} = ${k(m)};`),J&&_e?y.write(`
42
42
  if (${d}.issues.length) {
43
43
  if (${h} in input) {
44
44
  payload.issues = payload.issues.concat(${d}.issues.map(iss => ({
@@ -97,12 +97,12 @@ Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,o=>{let
97
97
  }
98
98
  }
99
99
 
100
- `)}y.write("payload.value = newResult;"),y.write("return payload;");let _=y.compile();return(m,d)=>_(p,m,d)},o,a=at,s=!ot.jitless,u=s&&sa.value,l=t.catchall,f;e._zod.parse=(p,y)=>{f??(f=i.value);let b=p.value;return a(b)?s&&u&&y?.async===!1&&y.jitless!==!0?(o||(o=n(t.shape)),p=o(p,y),l?Mp([],b,p,y,f,e):p):r(p,y):(p.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),p)}});function Ip(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Je(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>re(a,i,M())))}),t)}var En=v("$ZodUnion",(e,t)=>{P.init(e,t),j(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),j(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),j(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),j(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>yn(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>Ip(s,i,e,n)):Ip(a,i,e,n)}});function Op(e,t,r,i){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>re(a,i,M())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Xs=v("$ZodXor",(e,t)=>{En.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>Op(s,i,e,n)):Op(a,i,e,n)}}),Ys=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,En.init(e,t);let r=e._zod.parse;j(e._zod,"propValues",()=>{let n={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let i=bt(()=>{let n=t.options,o=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(n,o)=>{let a=n.value;if(!at(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Qs=v("$ZodIntersection",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>zp(r,c,u)):zp(r,o,a)}});function ps(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(We(e)&&We(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of i){let a=ps(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=ps(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function zp(e,t,r){let i=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Je(e))return e;let a=ps(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Zr=v("$ZodTuple",(e,t)=>{P.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=Ep(r,"optin"),c=Ep(r,"optout");if(!t.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=new Array(r.length);for(let l=0;l<r.length;l++){let f=r[l]._zod.run({value:o[l],issues:[]},n);f instanceof Promise?a.push(f.then(p=>{u[l]=p})):u[l]=f}if(t.rest){let l=r.length-1,f=o.slice(r.length);for(let p of f){l++;let y=t.rest._zod.run({value:p,issues:[]},n);y instanceof Promise?a.push(y.then(b=>Dp(b,i,l))):Dp(y,i,l)}}return a.length?Promise.all(a).then(()=>Tp(u,i,r,o,c)):Tp(u,i,r,o,c)}});function Ep(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Dp(e,t,r){e.issues.length&&t.issues.push(...ue(r,e.issues)),t.value[r]=e.value}function Tp(e,t,r,i,n){for(let o=0;o<r.length;o++){let a=e[o],s=o<i.length;if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...ue(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var ec=v("$ZodRecord",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!We(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=t.keyType._zod.run({value:u,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>re(y,i,M())),input:u,path:[u],inst:e});continue}let f=l.value,p=t.valueType._zod.run({value:n[u],issues:[]},i);p instanceof Promise?o.push(p.then(y=>{y.issues.length&&r.issues.push(...ue(u,y.issues)),r.value[f]=y.value})):(p.issues.length&&r.issues.push(...ue(u,p.issues)),r.value[f]=p.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Pr.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>re(f,i,M())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(f=>{f.issues.length&&r.issues.push(...ue(s,f.issues)),r.value[c.value]=f.value})):(l.issues.length&&r.issues.push(...ue(s,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),tc=v("$ZodMap",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[a,s]of n){let c=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,f])=>{Pp(l,f,r,a,n,e,i)})):Pp(c,u,r,a,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function Pp(e,t,r,i,n,o,a){e.issues.length&&(_n.has(typeof i)?r.issues.push(...ue(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>re(s,a,M()))})),t.issues.length&&(_n.has(typeof i)?r.issues.push(...ue(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>re(s,a,M()))})),r.value.set(e.value,t.value)}var nc=v("$ZodSet",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>Ap(c,r))):Ap(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function Ap(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var rc=v("$ZodEnum",(e,t)=>{P.init(e,t);let r=vn(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>_n.has(typeof n)).map(n=>typeof n=="string"?ve(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),ic=v("$ZodLiteral",(e,t)=>{if(P.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ve(i):i?ve(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),oc=v("$ZodFile",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),ac=v("$ZodTransform",(e,t)=>{P.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Be(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new $e;return r.value=n,r.fallback=!0,r}});function Cp(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Mr=v("$ZodOptional",(e,t)=>{P.init(e,t),e._zod.optin="optional",e._zod.optout="optional",j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${yn(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>Cp(a,n)):Cp(o,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),sc=v("$ZodExactOptional",(e,t)=>{Mr.init(e,t),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),cc=v("$ZodNullable",(e,t)=>{P.init(e,t),j(e._zod,"optin",()=>t.innerType._zod.optin),j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${yn(r.source)}|null)$`):void 0}),j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),uc=v("$ZodDefault",(e,t)=>{P.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>jp(o,t)):jp(n,t)}});function jp(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var lc=v("$ZodPrefault",(e,t)=>{P.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),dc=v("$ZodNonOptional",(e,t)=>{P.init(e,t),j(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Up(o,e)):Up(n,e)}});function Up(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 pc=v("$ZodSuccess",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Be("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),mc=v("$ZodCatch",(e,t)=>{P.init(e,t),e._zod.optin="optional",j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>re(a,i,M()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>re(o,i,M()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),fc=v("$ZodNaN",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Vr=v("$ZodPipe",(e,t)=>{P.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>jr(a,t.in,i)):jr(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>jr(o,t.out,i)):jr(n,t.out,i)}});function jr(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var Dn=v("$ZodCodec",(e,t)=>{P.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Ur(a,t,i)):Ur(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ur(a,t,i)):Ur(o,t,i)}}});function Ur(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>Nr(e,o,t.out,r)):Nr(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>Nr(e,o,t.in,r)):Nr(e,n,t.in,r)}}function Nr(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var hc=v("$ZodPreprocess",(e,t)=>{Vr.init(e,t)}),gc=v("$ZodReadonly",(e,t)=>{P.init(e,t),j(e._zod,"propValues",()=>t.innerType._zod.propValues),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"optin",()=>t.innerType?._zod?.optin),j(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(Np):Np(n)}});function Np(e){return e.value=Object.freeze(e.value),e}var vc=v("$ZodTemplateLiteral",(e,t)=>{P.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||ua.has(typeof i))r.push(ve(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),yc=v("$ZodFunction",(e,t)=>(P.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?xr(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?xr(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await br(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await br(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Zr({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),_c=v("$ZodPromise",(e,t)=>{P.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),$c=v("$ZodLazy",(e,t)=>{P.init(e,t),j(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),j(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),j(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),j(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),j(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),xc=v("$ZodCustom",(e,t)=>{F.init(e,t),P.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>Rp(o,r,i,e));Rp(n,r,i,e)}});function Rp(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(kt(n))}}var Pn={};ae(Pn,{ar:()=>Bp,az:()=>Gp,be:()=>Wp,bg:()=>Jp,ca:()=>qp,cs:()=>Kp,da:()=>Xp,de:()=>Yp,el:()=>Qp,en:()=>Br,eo:()=>em,es:()=>tm,fa:()=>nm,fi:()=>rm,fr:()=>im,frCA:()=>om,he:()=>am,hr:()=>sm,hu:()=>cm,hy:()=>lm,id:()=>dm,is:()=>pm,it:()=>mm,ja:()=>fm,ka:()=>hm,kh:()=>gm,km:()=>Gr,ko:()=>vm,lt:()=>_m,mk:()=>$m,ms:()=>xm,nl:()=>bm,no:()=>km,ota:()=>Sm,pl:()=>Im,ps:()=>wm,pt:()=>Om,ro:()=>zm,ru:()=>Dm,sl:()=>Tm,sv:()=>Pm,ta:()=>Am,th:()=>Cm,tr:()=>jm,ua:()=>Um,uk:()=>Hr,ur:()=>Nm,uz:()=>Rm,vi:()=>Lm,yo:()=>Mm,zhCN:()=>Fm,zhTW:()=>Zm});var V_=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${k(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${x(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Bp(){return{localeError:V_()}}var B_=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${k(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${x(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Gp(){return{localeError:B_()}}function Hp(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var G_=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${k(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Hp(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Hp(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${x(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Wp(){return{localeError:G_()}}var H_=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${k(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${x(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Jp(){return{localeError:H_()}}var W_=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${k(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${x(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function qp(){return{localeError:W_()}}var J_=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${k(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${x(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Kp(){return{localeError:J_()}}var q_=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${k(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${x(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Xp(){return{localeError:q_()}}var K_=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${k(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${x(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Yp(){return{localeError:K_()}}var X_=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(n){return e[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${k(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${x(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Qp(){return{localeError:X_()}}var Y_=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${k(n.values[0])}`:`Invalid option: expected one of ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Br(){return{localeError:Y_()}}var Q_=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${k(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function em(){return{localeError:Q_()}}var e$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${k(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function tm(){return{localeError:e$()}}var t$=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${k(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${x(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${x(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function nm(){return{localeError:t$()}}var n$=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${k(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${x(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function rm(){return{localeError:n$()}}var r$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${k(n.values[0])} attendu`:`Option invalide : une valeur parmi ${x(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${x(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function im(){return{localeError:r$()}}var i$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${k(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${x(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function om(){return{localeError:i$()}}var o$=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,i=u=>{let l=r(u);return l?l.label:u??e.unknown.label},n=u=>`\u05D4${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,f=c[l??""]??i(l),p=S(u.input),y=c[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${k(u.values[0])}`;let l=u.values.map(y=>k(y));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let f=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",E=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let p=u.inclusive?"<=":"<",y=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let I=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`}let E=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let p=u.inclusive?">=":">",y=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let f=s[l.format],p=f?.label??l.format,b=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${b}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${x(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function am(){return{localeError:o$()}}var a$=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${k(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${x(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function sm(){return{localeError:a$()}}var s$=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${k(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function cm(){return{localeError:s$()}}function um(e,t,r){return Math.abs(e)===1?t:r}function Et(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var c$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${k(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=um(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=um(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${x(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Et(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Et(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function lm(){return{localeError:c$()}}var u$=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${k(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function dm(){return{localeError:u$()}}var l$=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${k(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${x(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function pm(){return{localeError:l$()}}var d$=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${k(n.values[0])}`:`Opzione non valida: atteso uno tra ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${x(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function mm(){return{localeError:d$()}}var p$=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${k(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${x(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${x(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function fm(){return{localeError:p$()}}var m$=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${k(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${x(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${x(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function hm(){return{localeError:m$()}}var f$=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${k(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${x(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Gr(){return{localeError:f$()}}function gm(){return Gr()}var h$=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${k(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${x(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${x(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function vm(){return{localeError:h$()}}var Tn=e=>e.charAt(0).toUpperCase()+e.slice(1);function ym(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var g$=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,o,a,s){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${k(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${x(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=t(n.origin,ym(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Tn(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Tn(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,ym(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Tn(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Tn(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${x(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${Tn(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function _m(){return{localeError:g$()}}var v$=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${k(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${x(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function $m(){return{localeError:v$()}}var y$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${k(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${x(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function xm(){return{localeError:y$()}}var _$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${k(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function bm(){return{localeError:_$()}}var $$=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${k(n.values[0])}`:`Ugyldig valg: forventet en av ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${x(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function km(){return{localeError:$$()}}var x$=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${k(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Sm(){return{localeError:x$()}}var b$=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${k(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${x(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${x(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function wm(){return{localeError:b$()}}var k$=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${k(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Im(){return{localeError:k$()}}var S$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${k(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${x(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Om(){return{localeError:S$()}}var w$=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${k(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${x(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function zm(){return{localeError:w$()}}function Em(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var I$=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${k(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Em(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Em(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${x(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Dm(){return{localeError:I$()}}var O$=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${k(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${x(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Tm(){return{localeError:O$()}}var z$=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${k(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${x(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Pm(){return{localeError:z$()}}var E$=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${k(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${x(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${x(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Am(){return{localeError:E$()}}var D$=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${k(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${x(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Cm(){return{localeError:D$()}}var T$=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${k(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${x(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function jm(){return{localeError:T$()}}var P$=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${k(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${x(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Hr(){return{localeError:P$()}}function Um(){return Hr()}var A$=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${k(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${x(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${x(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Nm(){return{localeError:A$()}}var C$=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${k(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${x(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Rm(){return{localeError:C$()}}var j$=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${k(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${x(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Lm(){return{localeError:j$()}}var U$=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${k(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${x(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Fm(){return{localeError:U$()}}var N$=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${k(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${x(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Zm(){return{localeError:N$()}}var R$=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=S(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${k(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${x(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${x(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Mm(){return{localeError:R$()}}var Vm,bc=Symbol("ZodOutput"),kc=Symbol("ZodInput"),Wr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Jr(){return new Wr}(Vm=globalThis).__zod_globalRegistry??(Vm.__zod_globalRegistry=Jr());var Y=globalThis.__zod_globalRegistry;function Sc(e,t){return new e({type:"string",...z(t)})}function wc(e,t){return new e({type:"string",coerce:!0,...z(t)})}function qr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function An(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function Kr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function Xr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function Yr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function Qr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function Cn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function ei(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function ti(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function ni(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function ri(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function ii(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function oi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function ai(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function si(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function ci(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function Ic(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...z(t)})}function ui(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function li(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function di(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function pi(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function mi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function fi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}var Oc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function zc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function Ec(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Dc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Tc(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Pc(e,t){return new e({type:"number",checks:[],...z(t)})}function Ac(e,t){return new e({type:"number",coerce:!0,checks:[],...z(t)})}function Cc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...z(t)})}function jc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...z(t)})}function Uc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...z(t)})}function Nc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...z(t)})}function Rc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...z(t)})}function Lc(e,t){return new e({type:"boolean",...z(t)})}function Fc(e,t){return new e({type:"boolean",coerce:!0,...z(t)})}function Zc(e,t){return new e({type:"bigint",...z(t)})}function Mc(e,t){return new e({type:"bigint",coerce:!0,...z(t)})}function Vc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...z(t)})}function Bc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...z(t)})}function Gc(e,t){return new e({type:"symbol",...z(t)})}function Hc(e,t){return new e({type:"undefined",...z(t)})}function Wc(e,t){return new e({type:"null",...z(t)})}function Jc(e){return new e({type:"any"})}function qc(e){return new e({type:"unknown"})}function Kc(e,t){return new e({type:"never",...z(t)})}function Xc(e,t){return new e({type:"void",...z(t)})}function Yc(e,t){return new e({type:"date",...z(t)})}function Qc(e,t){return new e({type:"date",coerce:!0,...z(t)})}function eu(e,t){return new e({type:"nan",...z(t)})}function we(e,t){return new Ar({check:"less_than",...z(t),value:e,inclusive:!1})}function me(e,t){return new Ar({check:"less_than",...z(t),value:e,inclusive:!0})}function Ie(e,t){return new Cr({check:"greater_than",...z(t),value:e,inclusive:!1})}function ie(e,t){return new Cr({check:"greater_than",...z(t),value:e,inclusive:!0})}function hi(e){return Ie(0,e)}function gi(e){return we(0,e)}function vi(e){return me(0,e)}function yi(e){return ie(0,e)}function qe(e,t){return new Wa({check:"multiple_of",...z(t),value:e})}function Ke(e,t){return new Ka({check:"max_size",...z(t),maximum:e})}function Oe(e,t){return new Xa({check:"min_size",...z(t),minimum:e})}function ut(e,t){return new Ya({check:"size_equals",...z(t),size:e})}function lt(e,t){return new Qa({check:"max_length",...z(t),maximum:e})}function Ue(e,t){return new es({check:"min_length",...z(t),minimum:e})}function dt(e,t){return new ts({check:"length_equals",...z(t),length:e})}function Dt(e,t){return new ns({check:"string_format",format:"regex",...z(t),pattern:e})}function Tt(e){return new rs({check:"string_format",format:"lowercase",...z(e)})}function Pt(e){return new is({check:"string_format",format:"uppercase",...z(e)})}function At(e,t){return new os({check:"string_format",format:"includes",...z(t),includes:e})}function Ct(e,t){return new as({check:"string_format",format:"starts_with",...z(t),prefix:e})}function jt(e,t){return new ss({check:"string_format",format:"ends_with",...z(t),suffix:e})}function _i(e,t,r){return new cs({check:"property",property:e,schema:t,...z(r)})}function Ut(e,t){return new us({check:"mime_type",mime:e,...z(t)})}function xe(e){return new ls({check:"overwrite",tx:e})}function Nt(e){return xe(t=>t.normalize(e))}function Rt(){return xe(e=>e.trim())}function Lt(){return xe(e=>e.toLowerCase())}function Ft(){return xe(e=>e.toUpperCase())}function Zt(){return xe(e=>aa(e))}function tu(e,t,r){return new e({type:"array",element:t,...z(r)})}function F$(e,t,r){return new e({type:"union",options:t,...z(r)})}function Z$(e,t,r){return new e({type:"union",options:t,inclusive:!1,...z(r)})}function M$(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...z(i)})}function V$(e,t,r){return new e({type:"intersection",left:t,right:r})}function B$(e,t,r,i){let n=r instanceof P,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...z(o)})}function G$(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...z(i)})}function H$(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...z(i)})}function W$(e,t,r){return new e({type:"set",valueType:t,...z(r)})}function J$(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...z(r)})}function q$(e,t,r){return new e({type:"enum",entries:t,...z(r)})}function K$(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...z(r)})}function nu(e,t){return new e({type:"file",...z(t)})}function X$(e,t){return new e({type:"transform",transform:t})}function Y$(e,t){return new e({type:"optional",innerType:t})}function Q$(e,t){return new e({type:"nullable",innerType:t})}function ex(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():ca(r)}})}function tx(e,t,r){return new e({type:"nonoptional",innerType:t,...z(r)})}function nx(e,t){return new e({type:"success",innerType:t})}function rx(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function ix(e,t,r){return new e({type:"pipe",in:t,out:r})}function ox(e,t){return new e({type:"readonly",innerType:t})}function ax(e,t,r){return new e({type:"template_literal",parts:t,...z(r)})}function sx(e,t){return new e({type:"lazy",getter:t})}function cx(e,t){return new e({type:"promise",innerType:t})}function ru(e,t,r){let i=z(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function iu(e,t,r){return new e({type:"custom",check:"custom",fn:t,...z(r)})}function ou(e,t){let r=Bm(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(kt(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(kt(o))}},e(i.value,i)),t);return r}function Bm(e,t){let r=new F({check:"custom",...z(t)});return r._zod.check=e,r}function au(e){let t=new F({check:"describe"});return t._zod.onattach=[r=>{let i=Y.get(r)??{};Y.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function su(e){let t=new F({check:"meta"});return t._zod.onattach=[r=>{let i=Y.get(r)??{};Y.add(r,{...i,...e})}],t._zod.check=()=>{},t}function cu(e,t){let r=z(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(y=>typeof y=="string"?y.toLowerCase():y),n=n.map(y=>typeof y=="string"?y.toLowerCase():y));let o=new Set(i),a=new Set(n),s=e.Codec??Dn,c=e.Boolean??zn,u=e.String??ct,l=new u({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),p=new s({type:"pipe",in:l,out:f,transform:((y,b)=>{let E=y;return r.case!=="sensitive"&&(E=E.toLowerCase()),o.has(E)?!0:a.has(E)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:b.value,inst:p,continue:!1}),{})}),reverseTransform:((y,b)=>y===!0?i[0]||"true":n[0]||"false"),error:r.error});return p}function Mt(e,t,r,i={}){let n=z(i),o={...z(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Xe(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Y,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function N(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let p=a.schema,y=t.processors[n.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);y(e,t,p,l)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),N(f,t,l),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&oe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ye(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,p=e.external.uri??(b=>b);if(f)return{ref:p(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${p("__shared")}#/${s}/${y}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let f in l)delete l[f];l.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
100
+ `)}y.write("payload.value = newResult;"),y.write("return payload;");let _=y.compile();return(m,d)=>_(p,m,d)},o,a=at,s=!ot.jitless,u=s&&sa.value,l=t.catchall,f;e._zod.parse=(p,y)=>{f??(f=i.value);let b=p.value;return a(b)?s&&u&&y?.async===!1&&y.jitless!==!0?(o||(o=n(t.shape)),p=o(p,y),l?Bp([],b,p,y,f,e):p):r(p,y):(p.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),p)}});function Op(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Je(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>re(a,i,V())))}),t)}var En=v("$ZodUnion",(e,t)=>{T.init(e,t),j(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),j(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),j(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),j(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>yn(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>Op(s,i,e,n)):Op(a,i,e,n)}});function Ep(e,t,r,i){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(a=>re(a,i,V())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Xs=v("$ZodXor",(e,t)=>{En.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of t.options){let c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>Ep(s,i,e,n)):Ep(a,i,e,n)}}),Ys=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,En.init(e,t);let r=e._zod.parse;j(e._zod,"propValues",()=>{let n={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let i=bt(()=>{let n=t.options,o=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(n,o)=>{let a=n.value;if(!at(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Qs=v("$ZodIntersection",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>Dp(r,c,u)):Dp(r,o,a)}});function ps(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(We(e)&&We(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of i){let a=ps(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=ps(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Dp(e,t,r){let i=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Je(e))return e;let a=ps(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Zr=v("$ZodTuple",(e,t)=>{T.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=Pp(r,"optin"),c=Pp(r,"optout");if(!t.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=new Array(r.length);for(let l=0;l<r.length;l++){let f=r[l]._zod.run({value:o[l],issues:[]},n);f instanceof Promise?a.push(f.then(p=>{u[l]=p})):u[l]=f}if(t.rest){let l=r.length-1,f=o.slice(r.length);for(let p of f){l++;let y=t.rest._zod.run({value:p,issues:[]},n);y instanceof Promise?a.push(y.then(b=>Tp(b,i,l))):Tp(y,i,l)}}return a.length?Promise.all(a).then(()=>Ap(u,i,r,o,c)):Ap(u,i,r,o,c)}});function Pp(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Tp(e,t,r){e.issues.length&&t.issues.push(...ue(r,e.issues)),t.value[r]=e.value}function Ap(e,t,r,i,n){for(let o=0;o<r.length;o++){let a=e[o],s=o<i.length;if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...ue(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var ec=v("$ZodRecord",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!We(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=t.keyType._zod.run({value:u,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(y=>re(y,i,V())),input:u,path:[u],inst:e});continue}let f=l.value,p=t.valueType._zod.run({value:n[u],issues:[]},i);p instanceof Promise?o.push(p.then(y=>{y.issues.length&&r.issues.push(...ue(u,y.issues)),r.value[f]=y.value})):(p.issues.length&&r.issues.push(...ue(u,p.issues)),r.value[f]=p.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Tr.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>re(f,i,V())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(f=>{f.issues.length&&r.issues.push(...ue(s,f.issues)),r.value[c.value]=f.value})):(l.issues.length&&r.issues.push(...ue(s,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),tc=v("$ZodMap",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[a,s]of n){let c=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,f])=>{Cp(l,f,r,a,n,e,i)})):Cp(c,u,r,a,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function Cp(e,t,r,i,n,o,a){e.issues.length&&(_n.has(typeof i)?r.issues.push(...ue(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>re(s,a,V()))})),t.issues.length&&(_n.has(typeof i)?r.issues.push(...ue(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>re(s,a,V()))})),r.value.set(e.value,t.value)}var nc=v("$ZodSet",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>jp(c,r))):jp(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function jp(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var rc=v("$ZodEnum",(e,t)=>{T.init(e,t);let r=vn(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>_n.has(typeof n)).map(n=>typeof n=="string"?ve(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),ic=v("$ZodLiteral",(e,t)=>{if(T.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ve(i):i?ve(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),oc=v("$ZodFile",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),ac=v("$ZodTransform",(e,t)=>{T.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Be(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new $e;return r.value=n,r.fallback=!0,r}});function Up(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Mr=v("$ZodOptional",(e,t)=>{T.init(e,t),e._zod.optin="optional",e._zod.optout="optional",j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${yn(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>Up(a,n)):Up(o,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),sc=v("$ZodExactOptional",(e,t)=>{Mr.init(e,t),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),cc=v("$ZodNullable",(e,t)=>{T.init(e,t),j(e._zod,"optin",()=>t.innerType._zod.optin),j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${yn(r.source)}|null)$`):void 0}),j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),uc=v("$ZodDefault",(e,t)=>{T.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Np(o,t)):Np(n,t)}});function Np(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var lc=v("$ZodPrefault",(e,t)=>{T.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),dc=v("$ZodNonOptional",(e,t)=>{T.init(e,t),j(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Rp(o,e)):Rp(n,e)}});function Rp(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 pc=v("$ZodSuccess",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Be("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),mc=v("$ZodCatch",(e,t)=>{T.init(e,t),e._zod.optin="optional",j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(a=>re(a,i,V()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>re(o,i,V()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),fc=v("$ZodNaN",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Vr=v("$ZodPipe",(e,t)=>{T.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>jr(a,t.in,i)):jr(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>jr(o,t.out,i)):jr(n,t.out,i)}});function jr(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var Dn=v("$ZodCodec",(e,t)=>{T.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Ur(a,t,i)):Ur(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ur(a,t,i)):Ur(o,t,i)}}});function Ur(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>Nr(e,o,t.out,r)):Nr(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>Nr(e,o,t.in,r)):Nr(e,n,t.in,r)}}function Nr(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var hc=v("$ZodPreprocess",(e,t)=>{Vr.init(e,t)}),gc=v("$ZodReadonly",(e,t)=>{T.init(e,t),j(e._zod,"propValues",()=>t.innerType._zod.propValues),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"optin",()=>t.innerType?._zod?.optin),j(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(Lp):Lp(n)}});function Lp(e){return e.value=Object.freeze(e.value),e}var vc=v("$ZodTemplateLiteral",(e,t)=>{T.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||ua.has(typeof i))r.push(ve(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),yc=v("$ZodFunction",(e,t)=>(T.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?xr(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?xr(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await br(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await br(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Zr({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),_c=v("$ZodPromise",(e,t)=>{T.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),$c=v("$ZodLazy",(e,t)=>{T.init(e,t),j(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),j(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),j(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),j(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),j(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),xc=v("$ZodCustom",(e,t)=>{F.init(e,t),T.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>Fp(o,r,i,e));Fp(n,r,i,e)}});function Fp(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(kt(n))}}var Tn={};ae(Tn,{ar:()=>Hp,az:()=>Wp,be:()=>qp,bg:()=>Kp,ca:()=>Xp,cs:()=>Yp,da:()=>Qp,de:()=>em,el:()=>tm,en:()=>Br,eo:()=>nm,es:()=>rm,fa:()=>im,fi:()=>om,fr:()=>am,frCA:()=>sm,he:()=>cm,hr:()=>um,hu:()=>lm,hy:()=>pm,id:()=>mm,is:()=>fm,it:()=>hm,ja:()=>gm,ka:()=>vm,kh:()=>ym,km:()=>Gr,ko:()=>_m,lt:()=>xm,mk:()=>bm,ms:()=>km,nl:()=>Sm,no:()=>wm,ota:()=>Im,pl:()=>Om,ps:()=>zm,pt:()=>Em,ro:()=>Dm,ru:()=>Tm,sl:()=>Am,sv:()=>Cm,ta:()=>jm,th:()=>Um,tr:()=>Nm,ua:()=>Rm,uk:()=>Hr,ur:()=>Lm,uz:()=>Fm,vi:()=>Zm,yo:()=>Bm,zhCN:()=>Mm,zhTW:()=>Vm});var H_=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${S(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${$(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Hp(){return{localeError:H_()}}var W_=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Wp(){return{localeError:W_()}}function Jp(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var J_=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${S(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Jp(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Jp(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${$(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function qp(){return{localeError:J_()}}var q_=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${$(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Kp(){return{localeError:q_()}}var K_=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${$(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Xp(){return{localeError:K_()}}var X_=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${$(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Yp(){return{localeError:X_()}}var Y_=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Qp(){return{localeError:Y_()}}var Q_=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function em(){return{localeError:Q_()}}var e$=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(n){return e[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${S(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${$(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function tm(){return{localeError:e$()}}var t$=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`Invalid option: expected one of ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Br(){return{localeError:t$()}}var n$=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function nm(){return{localeError:n$()}}var r$=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function rm(){return{localeError:r$()}}var i$=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${$(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${$(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function im(){return{localeError:i$()}}var o$=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${$(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function om(){return{localeError:o$()}}var a$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${$(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${$(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function am(){return{localeError:a$()}}var s$=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${$(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function sm(){return{localeError:s$()}}var c$=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,i=u=>{let l=r(u);return l?l.label:u??e.unknown.label},n=u=>`\u05D4${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,f=c[l??""]??i(l),p=w(u.input),y=c[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(u.values[0])}`;let l=u.values.map(y=>S(y));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let f=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",k=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`.trim()}let p=u.inclusive?"<=":"<",y=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let E=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`}let k=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`.trim()}let p=u.inclusive?">=":">",y=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${y} ${p}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let f=s[l.format],p=f?.label??l.format,b=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${b}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${$(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function cm(){return{localeError:c$()}}var u$=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${$(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function um(){return{localeError:u$()}}var l$=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function lm(){return{localeError:l$()}}function dm(e,t,r){return Math.abs(e)===1?t:r}function Et(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var d$=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${S(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=dm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=dm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Et(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${$(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Et(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Et(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function pm(){return{localeError:d$()}}var p$=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function mm(){return{localeError:p$()}}var m$=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${$(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function fm(){return{localeError:m$()}}var f$=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${$(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function hm(){return{localeError:f$()}}var h$=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${$(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${$(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function gm(){return{localeError:h$()}}var g$=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${S(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${$(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${$(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function vm(){return{localeError:g$()}}var v$=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${S(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${$(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Gr(){return{localeError:v$()}}function ym(){return Gr()}var y$=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${$(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${$(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function _m(){return{localeError:y$()}}var Pn=e=>e.charAt(0).toUpperCase()+e.slice(1);function $m(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var _$=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,o,a,s){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${$(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=t(n.origin,$m(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Pn(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Pn(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,$m(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Pn(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Pn(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${$(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${Pn(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function xm(){return{localeError:_$()}}var $$=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${$(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function bm(){return{localeError:$$()}}var x$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${$(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function km(){return{localeError:x$()}}var b$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Sm(){return{localeError:b$()}}var k$=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function wm(){return{localeError:k$()}}var S$=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Im(){return{localeError:S$()}}var w$=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${$(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${$(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function zm(){return{localeError:w$()}}var I$=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Om(){return{localeError:I$()}}var z$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${S(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${$(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Em(){return{localeError:z$()}}var O$=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${$(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function Dm(){return{localeError:O$()}}function Pm(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var E$=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Pm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Pm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${$(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Tm(){return{localeError:E$()}}var D$=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${$(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Am(){return{localeError:D$()}}var P$=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${$(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Cm(){return{localeError:P$()}}var T$=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${$(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function jm(){return{localeError:T$()}}var A$=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${$(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Um(){return{localeError:A$()}}var C$=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Nm(){return{localeError:C$()}}var j$=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${S(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${$(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Hr(){return{localeError:j$()}}function Rm(){return Hr()}var U$=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${$(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${$(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Lm(){return{localeError:U$()}}var N$=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Fm(){return{localeError:N$()}}var R$=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${$(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Zm(){return{localeError:R$()}}var L$=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${$(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Mm(){return{localeError:L$()}}var F$=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${$(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Vm(){return{localeError:F$()}}var Z$=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=w(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${$(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Bm(){return{localeError:Z$()}}var Gm,bc=Symbol("ZodOutput"),kc=Symbol("ZodInput"),Wr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Jr(){return new Wr}(Gm=globalThis).__zod_globalRegistry??(Gm.__zod_globalRegistry=Jr());var Y=globalThis.__zod_globalRegistry;function Sc(e,t){return new e({type:"string",...z(t)})}function wc(e,t){return new e({type:"string",coerce:!0,...z(t)})}function qr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function An(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function Kr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function Xr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function Yr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function Qr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function Cn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function ei(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function ti(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function ni(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function ri(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function ii(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function oi(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function ai(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function si(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function ci(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function Ic(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...z(t)})}function ui(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function li(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function di(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function pi(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function mi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function fi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}var zc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Oc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function Ec(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Dc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Pc(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Tc(e,t){return new e({type:"number",checks:[],...z(t)})}function Ac(e,t){return new e({type:"number",coerce:!0,checks:[],...z(t)})}function Cc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...z(t)})}function jc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...z(t)})}function Uc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...z(t)})}function Nc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...z(t)})}function Rc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...z(t)})}function Lc(e,t){return new e({type:"boolean",...z(t)})}function Fc(e,t){return new e({type:"boolean",coerce:!0,...z(t)})}function Zc(e,t){return new e({type:"bigint",...z(t)})}function Mc(e,t){return new e({type:"bigint",coerce:!0,...z(t)})}function Vc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...z(t)})}function Bc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...z(t)})}function Gc(e,t){return new e({type:"symbol",...z(t)})}function Hc(e,t){return new e({type:"undefined",...z(t)})}function Wc(e,t){return new e({type:"null",...z(t)})}function Jc(e){return new e({type:"any"})}function qc(e){return new e({type:"unknown"})}function Kc(e,t){return new e({type:"never",...z(t)})}function Xc(e,t){return new e({type:"void",...z(t)})}function Yc(e,t){return new e({type:"date",...z(t)})}function Qc(e,t){return new e({type:"date",coerce:!0,...z(t)})}function eu(e,t){return new e({type:"nan",...z(t)})}function we(e,t){return new Ar({check:"less_than",...z(t),value:e,inclusive:!1})}function me(e,t){return new Ar({check:"less_than",...z(t),value:e,inclusive:!0})}function Ie(e,t){return new Cr({check:"greater_than",...z(t),value:e,inclusive:!1})}function ie(e,t){return new Cr({check:"greater_than",...z(t),value:e,inclusive:!0})}function hi(e){return Ie(0,e)}function gi(e){return we(0,e)}function vi(e){return me(0,e)}function yi(e){return ie(0,e)}function qe(e,t){return new Wa({check:"multiple_of",...z(t),value:e})}function Ke(e,t){return new Ka({check:"max_size",...z(t),maximum:e})}function ze(e,t){return new Xa({check:"min_size",...z(t),minimum:e})}function ut(e,t){return new Ya({check:"size_equals",...z(t),size:e})}function lt(e,t){return new Qa({check:"max_length",...z(t),maximum:e})}function Ue(e,t){return new es({check:"min_length",...z(t),minimum:e})}function dt(e,t){return new ts({check:"length_equals",...z(t),length:e})}function Dt(e,t){return new ns({check:"string_format",format:"regex",...z(t),pattern:e})}function Pt(e){return new rs({check:"string_format",format:"lowercase",...z(e)})}function Tt(e){return new is({check:"string_format",format:"uppercase",...z(e)})}function At(e,t){return new os({check:"string_format",format:"includes",...z(t),includes:e})}function Ct(e,t){return new as({check:"string_format",format:"starts_with",...z(t),prefix:e})}function jt(e,t){return new ss({check:"string_format",format:"ends_with",...z(t),suffix:e})}function _i(e,t,r){return new cs({check:"property",property:e,schema:t,...z(r)})}function Ut(e,t){return new us({check:"mime_type",mime:e,...z(t)})}function xe(e){return new ls({check:"overwrite",tx:e})}function Nt(e){return xe(t=>t.normalize(e))}function Rt(){return xe(e=>e.trim())}function Lt(){return xe(e=>e.toLowerCase())}function Ft(){return xe(e=>e.toUpperCase())}function Zt(){return xe(e=>aa(e))}function tu(e,t,r){return new e({type:"array",element:t,...z(r)})}function V$(e,t,r){return new e({type:"union",options:t,...z(r)})}function B$(e,t,r){return new e({type:"union",options:t,inclusive:!1,...z(r)})}function G$(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...z(i)})}function H$(e,t,r){return new e({type:"intersection",left:t,right:r})}function W$(e,t,r,i){let n=r instanceof T,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...z(o)})}function J$(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...z(i)})}function q$(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...z(i)})}function K$(e,t,r){return new e({type:"set",valueType:t,...z(r)})}function X$(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...z(r)})}function Y$(e,t,r){return new e({type:"enum",entries:t,...z(r)})}function Q$(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...z(r)})}function nu(e,t){return new e({type:"file",...z(t)})}function ex(e,t){return new e({type:"transform",transform:t})}function tx(e,t){return new e({type:"optional",innerType:t})}function nx(e,t){return new e({type:"nullable",innerType:t})}function rx(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():ca(r)}})}function ix(e,t,r){return new e({type:"nonoptional",innerType:t,...z(r)})}function ox(e,t){return new e({type:"success",innerType:t})}function ax(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function sx(e,t,r){return new e({type:"pipe",in:t,out:r})}function cx(e,t){return new e({type:"readonly",innerType:t})}function ux(e,t,r){return new e({type:"template_literal",parts:t,...z(r)})}function lx(e,t){return new e({type:"lazy",getter:t})}function dx(e,t){return new e({type:"promise",innerType:t})}function ru(e,t,r){let i=z(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function iu(e,t,r){return new e({type:"custom",check:"custom",fn:t,...z(r)})}function ou(e,t){let r=Hm(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(kt(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(kt(o))}},e(i.value,i)),t);return r}function Hm(e,t){let r=new F({check:"custom",...z(t)});return r._zod.check=e,r}function au(e){let t=new F({check:"describe"});return t._zod.onattach=[r=>{let i=Y.get(r)??{};Y.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function su(e){let t=new F({check:"meta"});return t._zod.onattach=[r=>{let i=Y.get(r)??{};Y.add(r,{...i,...e})}],t._zod.check=()=>{},t}function cu(e,t){let r=z(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(y=>typeof y=="string"?y.toLowerCase():y),n=n.map(y=>typeof y=="string"?y.toLowerCase():y));let o=new Set(i),a=new Set(n),s=e.Codec??Dn,c=e.Boolean??On,u=e.String??ct,l=new u({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),p=new s({type:"pipe",in:l,out:f,transform:((y,b)=>{let k=y;return r.case!=="sensitive"&&(k=k.toLowerCase()),o.has(k)?!0:a.has(k)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:b.value,inst:p,continue:!1}),{})}),reverseTransform:((y,b)=>y===!0?i[0]||"true":n[0]||"false"),error:r.error});return p}function Mt(e,t,r,i={}){let n=z(i),o={...z(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Xe(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Y,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function N(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let p=a.schema,y=t.processors[n.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);y(e,t,p,l)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),N(f,t,l),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&oe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ye(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,p=e.external.uri??(b=>b);if(f)return{ref:p(f)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${p("__shared")}#/${s}/${y}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let f in l)delete l[f];l.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
101
101
 
102
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Qe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,l={...u},f=c.ref;if(c.ref=null,f){i(f);let y=e.seen.get(f),b=y.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(b)):Object.assign(u,b),Object.assign(u,l),s._zod.parent===f)for(let I in u)I==="$ref"||I==="allOf"||I in l||delete u[I];if(b.$ref&&y.def)for(let I in u)I==="$ref"||I==="allOf"||I in y.def&&JSON.stringify(u[I])===JSON.stringify(y.def[I])&&delete u[I]}let p=s._zod.parent;if(p&&p!==f){i(p);let y=e.seen.get(p);if(y?.schema.$ref&&(u.$ref=y.schema.$ref,y.def))for(let b in u)b==="$ref"||b==="allOf"||b in y.def&&JSON.stringify(u[b])===JSON.stringify(y.def[b])&&delete u[b]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Vt(t,"input",e.processors),output:Vt(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function oe(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return oe(i.element,r);if(i.type==="set")return oe(i.valueType,r);if(i.type==="lazy")return oe(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return oe(i.innerType,r);if(i.type==="intersection")return oe(i.left,r)||oe(i.right,r);if(i.type==="record"||i.type==="map")return oe(i.keyType,r)||oe(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:oe(i.in,r)||oe(i.out,r);if(i.type==="object"){for(let n in i.shape)if(oe(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(oe(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(oe(n,r))return!0;return!!(i.rest&&oe(i.rest,r))}return!1}var uu=(e,t={})=>r=>{let i=Xe({...r,processors:t});return N(e,i),Ye(i,e),Qe(i,e)},Vt=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=Xe({...n??{},target:o,io:t,processors:r});return N(e,a),Ye(a,e),Qe(a,e)};var ux={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lu=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=ux[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},du=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let f=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),y=t.target==="draft-04"||t.target==="openapi-3.0";f?y?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),p?y?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},pu=(e,t,r,i)=>{r.type="boolean"},mu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},fu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},hu=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},gu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},vu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},yu=(e,t,r,i)=>{r.not={}},_u=(e,t,r,i)=>{},$u=(e,t,r,i)=>{},xu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},bu=(e,t,r,i)=>{let n=e._zod.def,o=vn(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},ku=(e,t,r,i)=>{let n=e._zod.def,o=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Su=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},wu=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Iu=(e,t,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,o)},Ou=(e,t,r,i)=>{r.type="boolean"},zu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Eu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Du=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Tu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Pu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Au=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=N(o.element,t,{...i,path:[...i.path,"items"]})},Cu=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let a=o.shape;for(let u in a)n.properties[u]=N(a[u],t,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let l=o.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=N(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},xi=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>N(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},ju=(e,t,r,i)=>{let n=e._zod.def,o=N(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=N(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=c},Uu=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((p,y)=>N(p,t,{...i,path:[...i.path,a,y]})),u=o.rest?N(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof f=="number"&&(n.maxItems=f)},Nu=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=N(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let f of c)n.patternProperties[f.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=N(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=N(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(f=>typeof f=="string"||typeof f=="number");l.length>0&&(n.required=l)}},Ru=(e,t,r,i)=>{let n=e._zod.def,o=N(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Lu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Fu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Zu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Mu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Vu=(e,t,r,i)=>{let n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;N(a,t,i);let s=t.seen.get(e);s.ref=a},Bu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Gu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},bi=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Hu=(e,t,r,i)=>{let n=e._zod.innerType;N(n,t,i);let o=t.seen.get(e);o.ref=n},$i={string:lu,number:du,boolean:pu,bigint:mu,symbol:fu,null:hu,undefined:gu,void:vu,never:yu,any:_u,unknown:$u,date:xu,enum:bu,literal:ku,nan:Su,template_literal:wu,file:Iu,success:Ou,custom:zu,function:Eu,transform:Du,map:Tu,set:Pu,array:Au,object:Cu,union:xi,intersection:ju,tuple:Uu,record:Nu,nullable:Ru,nonoptional:Lu,default:Fu,prefault:Zu,catch:Mu,pipe:Vu,readonly:Bu,promise:Gu,optional:bi,lazy:Hu};function ki(e,t){if("_idmap"in e){let i=e,n=Xe({...t,processors:$i}),o={};for(let c of i._idmap.entries()){let[u,l]=c;N(l,n)}let a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(let c of i._idmap.entries()){let[u,l]=c;Ye(n,l),a[u]=Qe(n,l)}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let r=Xe({...t,processors:$i});return N(e,r),Ye(r,e),Qe(r,e)}var Si=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Xe({processors:$i,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return N(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ye(this.ctx,t);let i=Qe(this.ctx,t),{"~standard":n,...o}=i;return o}};var Gm={};var jn={};ae(jn,{ZodAny:()=>gl,ZodArray:()=>$l,ZodBase64:()=>Gi,ZodBase64URL:()=>Hi,ZodBigInt:()=>Xt,ZodBigIntFormat:()=>qi,ZodBoolean:()=>Kt,ZodCIDRv4:()=>Vi,ZodCIDRv6:()=>Bi,ZodCUID:()=>Ui,ZodCUID2:()=>Ni,ZodCatch:()=>Ml,ZodCodec:()=>Wn,ZodCustom:()=>Jn,ZodCustomStringFormat:()=>Jt,ZodDate:()=>Mn,ZodDefault:()=>Ul,ZodDiscriminatedUnion:()=>bl,ZodE164:()=>Wi,ZodEmail:()=>Ai,ZodEmoji:()=>Ci,ZodEnum:()=>Ht,ZodExactOptional:()=>Al,ZodFile:()=>Tl,ZodFunction:()=>Yl,ZodGUID:()=>Nn,ZodIPv4:()=>Zi,ZodIPv6:()=>Mi,ZodIntersection:()=>kl,ZodJWT:()=>Ji,ZodKSUID:()=>Fi,ZodLazy:()=>ql,ZodLiteral:()=>Dl,ZodMAC:()=>ul,ZodMap:()=>zl,ZodNaN:()=>Bl,ZodNanoID:()=>ji,ZodNever:()=>yl,ZodNonOptional:()=>to,ZodNull:()=>fl,ZodNullable:()=>jl,ZodNumber:()=>qt,ZodNumberFormat:()=>mt,ZodObject:()=>Bn,ZodOptional:()=>eo,ZodPipe:()=>Hn,ZodPrefault:()=>Rl,ZodPreprocess:()=>Gl,ZodPromise:()=>Xl,ZodReadonly:()=>Hl,ZodRecord:()=>Gt,ZodSet:()=>El,ZodString:()=>Wt,ZodStringFormat:()=>L,ZodSuccess:()=>Zl,ZodSymbol:()=>pl,ZodTemplateLiteral:()=>Jl,ZodTransform:()=>Pl,ZodTuple:()=>wl,ZodType:()=>C,ZodULID:()=>Ri,ZodURL:()=>Zn,ZodUUID:()=>ze,ZodUndefined:()=>ml,ZodUnion:()=>Gn,ZodUnknown:()=>vl,ZodVoid:()=>_l,ZodXID:()=>Li,ZodXor:()=>xl,_ZodString:()=>Pi,_default:()=>Nl,_function:()=>th,any:()=>Pf,array:()=>Vn,base64:()=>hf,base64url:()=>gf,bigint:()=>Of,boolean:()=>dl,catch:()=>Vl,check:()=>nh,cidrv4:()=>mf,cidrv6:()=>ff,codec:()=>Xf,cuid:()=>of,cuid2:()=>af,custom:()=>rh,date:()=>Cf,describe:()=>ih,discriminatedUnion:()=>Ff,e164:()=>vf,email:()=>Jm,emoji:()=>nf,enum:()=>Yi,exactOptional:()=>Cl,file:()=>Wf,float32:()=>kf,float64:()=>Sf,function:()=>th,guid:()=>qm,hash:()=>bf,hex:()=>xf,hostname:()=>$f,httpUrl:()=>tf,instanceof:()=>ah,int:()=>Di,int32:()=>wf,int64:()=>zf,intersection:()=>Sl,invertCodec:()=>Yf,ipv4:()=>lf,ipv6:()=>pf,json:()=>ch,jwt:()=>yf,keyof:()=>jf,ksuid:()=>uf,lazy:()=>Kl,literal:()=>Hf,looseObject:()=>Rf,looseRecord:()=>Mf,mac:()=>df,map:()=>Vf,meta:()=>oh,nan:()=>Kf,nanoid:()=>rf,nativeEnum:()=>Gf,never:()=>Ki,nonoptional:()=>Fl,null:()=>hl,nullable:()=>Ln,nullish:()=>Jf,number:()=>ll,object:()=>Uf,optional:()=>Rn,partialRecord:()=>Zf,pipe:()=>Ti,prefault:()=>Ll,preprocess:()=>uh,promise:()=>eh,readonly:()=>Wl,record:()=>Ol,refine:()=>Ql,set:()=>Bf,strictObject:()=>Nf,string:()=>Un,stringFormat:()=>_f,stringbool:()=>sh,success:()=>qf,superRefine:()=>ed,symbol:()=>Df,templateLiteral:()=>Qf,transform:()=>Qi,tuple:()=>Il,uint32:()=>If,uint64:()=>Ef,ulid:()=>sf,undefined:()=>Tf,union:()=>Xi,unknown:()=>pt,url:()=>ef,uuid:()=>Km,uuidv4:()=>Xm,uuidv6:()=>Ym,uuidv7:()=>Qm,void:()=>Af,xid:()=>cf,xor:()=>Lf});var wi={};ae(wi,{endsWith:()=>jt,gt:()=>Ie,gte:()=>ie,includes:()=>At,length:()=>dt,lowercase:()=>Tt,lt:()=>we,lte:()=>me,maxLength:()=>lt,maxSize:()=>Ke,mime:()=>Ut,minLength:()=>Ue,minSize:()=>Oe,multipleOf:()=>qe,negative:()=>gi,nonnegative:()=>yi,nonpositive:()=>vi,normalize:()=>Nt,overwrite:()=>xe,positive:()=>hi,property:()=>_i,regex:()=>Dt,size:()=>ut,slugify:()=>Zt,startsWith:()=>Ct,toLowerCase:()=>Lt,toUpperCase:()=>Ft,trim:()=>Rt,uppercase:()=>Pt});var Bt={};ae(Bt,{ZodISODate:()=>Oi,ZodISODateTime:()=>Ii,ZodISODuration:()=>Ei,ZodISOTime:()=>zi,date:()=>Ju,datetime:()=>Wu,duration:()=>Ku,time:()=>qu});var Ii=v("ZodISODateTime",(e,t)=>{Ss.init(e,t),L.init(e,t)});function Wu(e){return zc(Ii,e)}var Oi=v("ZodISODate",(e,t)=>{ws.init(e,t),L.init(e,t)});function Ju(e){return Ec(Oi,e)}var zi=v("ZodISOTime",(e,t)=>{Is.init(e,t),L.init(e,t)});function qu(e){return Dc(zi,e)}var Ei=v("ZodISODuration",(e,t)=>{Os.init(e,t),L.init(e,t)});function Ku(e){return Tc(Ei,e)}var Hm=(e,t)=>{bn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Sn(e,r)},flatten:{value:r=>kn(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xt,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xt,2)}},isEmpty:{get(){return e.issues.length===0}}})},dx=v("ZodError",Hm),de=v("ZodError",Hm,{Parent:Error});var Xu=St(de),Yu=wt(de),Qu=It(de),el=Ot(de),tl=kr(de),nl=Sr(de),rl=wr(de),il=Ir(de),ol=Or(de),al=zr(de),sl=Er(de),cl=Dr(de);var Wm=new WeakMap;function Fn(e,t,r){let i=Object.getPrototypeOf(e),n=Wm.get(i);if(n||(n=new Set,Wm.set(i,n)),!n.has(t)){n.add(t);for(let o in r){let a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var C=v("ZodType",(e,t)=>(P.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Vt(e,"input"),output:Vt(e,"output")}}),e.toJSONSchema=uu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,i)=>Xu(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Qu(e,r,i),e.parseAsync=async(r,i)=>Yu(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>el(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>tl(e,r,i),e.decode=(r,i)=>nl(e,r,i),e.encodeAsync=async(r,i)=>rl(e,r,i),e.decodeAsync=async(r,i)=>il(e,r,i),e.safeEncode=(r,i)=>ol(e,r,i),e.safeDecode=(r,i)=>al(e,r,i),e.safeEncodeAsync=async(r,i)=>sl(e,r,i),e.safeDecodeAsync=async(r,i)=>cl(e,r,i),Fn(e,"ZodType",{check(...r){let i=this.def;return this.clone(w.mergeDefs(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return ne(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(Ql(r,i))},superRefine(r,i){return this.check(ed(r,i))},overwrite(r){return this.check(xe(r))},optional(){return Rn(this)},exactOptional(){return Cl(this)},nullable(){return Ln(this)},nullish(){return Rn(Ln(this))},nonoptional(r){return Fl(this,r)},array(){return Vn(this)},or(r){return Xi([this,r])},and(r){return Sl(this,r)},transform(r){return Ti(this,Qi(r))},default(r){return Nl(this,r)},prefault(r){return Ll(this,r)},catch(r){return Vl(this,r)},pipe(r){return Ti(this,r)},readonly(){return Wl(this)},describe(r){let i=this.clone();return Y.add(i,{description:r}),i},meta(...r){if(r.length===0)return Y.get(this);let i=this.clone();return Y.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return Y.get(e)?.description},configurable:!0}),e)),Pi=v("_ZodString",(e,t)=>{ct.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>lu(e,i,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Fn(e,"_ZodString",{regex(...i){return this.check(Dt(...i))},includes(...i){return this.check(At(...i))},startsWith(...i){return this.check(Ct(...i))},endsWith(...i){return this.check(jt(...i))},min(...i){return this.check(Ue(...i))},max(...i){return this.check(lt(...i))},length(...i){return this.check(dt(...i))},nonempty(...i){return this.check(Ue(1,...i))},lowercase(i){return this.check(Tt(i))},uppercase(i){return this.check(Pt(i))},trim(){return this.check(Rt())},normalize(...i){return this.check(Nt(...i))},toLowerCase(){return this.check(Lt())},toUpperCase(){return this.check(Ft())},slugify(){return this.check(Zt())}})}),Wt=v("ZodString",(e,t)=>{ct.init(e,t),Pi.init(e,t),e.email=r=>e.check(qr(Ai,r)),e.url=r=>e.check(Cn(Zn,r)),e.jwt=r=>e.check(fi(Ji,r)),e.emoji=r=>e.check(ei(Ci,r)),e.guid=r=>e.check(An(Nn,r)),e.uuid=r=>e.check(Kr(ze,r)),e.uuidv4=r=>e.check(Xr(ze,r)),e.uuidv6=r=>e.check(Yr(ze,r)),e.uuidv7=r=>e.check(Qr(ze,r)),e.nanoid=r=>e.check(ti(ji,r)),e.guid=r=>e.check(An(Nn,r)),e.cuid=r=>e.check(ni(Ui,r)),e.cuid2=r=>e.check(ri(Ni,r)),e.ulid=r=>e.check(ii(Ri,r)),e.base64=r=>e.check(di(Gi,r)),e.base64url=r=>e.check(pi(Hi,r)),e.xid=r=>e.check(oi(Li,r)),e.ksuid=r=>e.check(ai(Fi,r)),e.ipv4=r=>e.check(si(Zi,r)),e.ipv6=r=>e.check(ci(Mi,r)),e.cidrv4=r=>e.check(ui(Vi,r)),e.cidrv6=r=>e.check(li(Bi,r)),e.e164=r=>e.check(mi(Wi,r)),e.datetime=r=>e.check(Wu(r)),e.date=r=>e.check(Ju(r)),e.time=r=>e.check(qu(r)),e.duration=r=>e.check(Ku(r))});function Un(e){return Sc(Wt,e)}var L=v("ZodStringFormat",(e,t)=>{R.init(e,t),Pi.init(e,t)}),Ai=v("ZodEmail",(e,t)=>{hs.init(e,t),L.init(e,t)});function Jm(e){return qr(Ai,e)}var Nn=v("ZodGUID",(e,t)=>{ms.init(e,t),L.init(e,t)});function qm(e){return An(Nn,e)}var ze=v("ZodUUID",(e,t)=>{fs.init(e,t),L.init(e,t)});function Km(e){return Kr(ze,e)}function Xm(e){return Xr(ze,e)}function Ym(e){return Yr(ze,e)}function Qm(e){return Qr(ze,e)}var Zn=v("ZodURL",(e,t)=>{gs.init(e,t),L.init(e,t)});function ef(e){return Cn(Zn,e)}function tf(e){return Cn(Zn,{protocol:pe.httpProtocol,hostname:pe.domain,...w.normalizeParams(e)})}var Ci=v("ZodEmoji",(e,t)=>{vs.init(e,t),L.init(e,t)});function nf(e){return ei(Ci,e)}var ji=v("ZodNanoID",(e,t)=>{ys.init(e,t),L.init(e,t)});function rf(e){return ti(ji,e)}var Ui=v("ZodCUID",(e,t)=>{_s.init(e,t),L.init(e,t)});function of(e){return ni(Ui,e)}var Ni=v("ZodCUID2",(e,t)=>{$s.init(e,t),L.init(e,t)});function af(e){return ri(Ni,e)}var Ri=v("ZodULID",(e,t)=>{xs.init(e,t),L.init(e,t)});function sf(e){return ii(Ri,e)}var Li=v("ZodXID",(e,t)=>{bs.init(e,t),L.init(e,t)});function cf(e){return oi(Li,e)}var Fi=v("ZodKSUID",(e,t)=>{ks.init(e,t),L.init(e,t)});function uf(e){return ai(Fi,e)}var Zi=v("ZodIPv4",(e,t)=>{zs.init(e,t),L.init(e,t)});function lf(e){return si(Zi,e)}var ul=v("ZodMAC",(e,t)=>{Ds.init(e,t),L.init(e,t)});function df(e){return Ic(ul,e)}var Mi=v("ZodIPv6",(e,t)=>{Es.init(e,t),L.init(e,t)});function pf(e){return ci(Mi,e)}var Vi=v("ZodCIDRv4",(e,t)=>{Ts.init(e,t),L.init(e,t)});function mf(e){return ui(Vi,e)}var Bi=v("ZodCIDRv6",(e,t)=>{Ps.init(e,t),L.init(e,t)});function ff(e){return li(Bi,e)}var Gi=v("ZodBase64",(e,t)=>{Cs.init(e,t),L.init(e,t)});function hf(e){return di(Gi,e)}var Hi=v("ZodBase64URL",(e,t)=>{js.init(e,t),L.init(e,t)});function gf(e){return pi(Hi,e)}var Wi=v("ZodE164",(e,t)=>{Us.init(e,t),L.init(e,t)});function vf(e){return mi(Wi,e)}var Ji=v("ZodJWT",(e,t)=>{Ns.init(e,t),L.init(e,t)});function yf(e){return fi(Ji,e)}var Jt=v("ZodCustomStringFormat",(e,t)=>{Rs.init(e,t),L.init(e,t)});function _f(e,t,r={}){return Mt(Jt,e,t,r)}function $f(e){return Mt(Jt,"hostname",pe.hostname,e)}function xf(e){return Mt(Jt,"hex",pe.hex,e)}function bf(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=pe[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Mt(Jt,i,n,t)}var qt=v("ZodNumber",(e,t)=>{Lr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>du(e,i,n,o),Fn(e,"ZodNumber",{gt(i,n){return this.check(Ie(i,n))},gte(i,n){return this.check(ie(i,n))},min(i,n){return this.check(ie(i,n))},lt(i,n){return this.check(we(i,n))},lte(i,n){return this.check(me(i,n))},max(i,n){return this.check(me(i,n))},int(i){return this.check(Di(i))},safe(i){return this.check(Di(i))},positive(i){return this.check(Ie(0,i))},nonnegative(i){return this.check(ie(0,i))},negative(i){return this.check(we(0,i))},nonpositive(i){return this.check(me(0,i))},multipleOf(i,n){return this.check(qe(i,n))},step(i,n){return this.check(qe(i,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function ll(e){return Pc(qt,e)}var mt=v("ZodNumberFormat",(e,t)=>{Ls.init(e,t),qt.init(e,t)});function Di(e){return Cc(mt,e)}function kf(e){return jc(mt,e)}function Sf(e){return Uc(mt,e)}function wf(e){return Nc(mt,e)}function If(e){return Rc(mt,e)}var Kt=v("ZodBoolean",(e,t)=>{zn.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pu(e,r,i,n)});function dl(e){return Lc(Kt,e)}var Xt=v("ZodBigInt",(e,t)=>{Fr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>mu(e,i,n,o),e.gte=(i,n)=>e.check(ie(i,n)),e.min=(i,n)=>e.check(ie(i,n)),e.gt=(i,n)=>e.check(Ie(i,n)),e.gte=(i,n)=>e.check(ie(i,n)),e.min=(i,n)=>e.check(ie(i,n)),e.lt=(i,n)=>e.check(we(i,n)),e.lte=(i,n)=>e.check(me(i,n)),e.max=(i,n)=>e.check(me(i,n)),e.positive=i=>e.check(Ie(BigInt(0),i)),e.negative=i=>e.check(we(BigInt(0),i)),e.nonpositive=i=>e.check(me(BigInt(0),i)),e.nonnegative=i=>e.check(ie(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(qe(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Of(e){return Zc(Xt,e)}var qi=v("ZodBigIntFormat",(e,t)=>{Fs.init(e,t),Xt.init(e,t)});function zf(e){return Vc(qi,e)}function Ef(e){return Bc(qi,e)}var pl=v("ZodSymbol",(e,t)=>{Zs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fu(e,r,i,n)});function Df(e){return Gc(pl,e)}var ml=v("ZodUndefined",(e,t)=>{Ms.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>gu(e,r,i,n)});function Tf(e){return Hc(ml,e)}var fl=v("ZodNull",(e,t)=>{Vs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hu(e,r,i,n)});function hl(e){return Wc(fl,e)}var gl=v("ZodAny",(e,t)=>{Bs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_u(e,r,i,n)});function Pf(){return Jc(gl)}var vl=v("ZodUnknown",(e,t)=>{Gs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$u(e,r,i,n)});function pt(){return qc(vl)}var yl=v("ZodNever",(e,t)=>{Hs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yu(e,r,i,n)});function Ki(e){return Kc(yl,e)}var _l=v("ZodVoid",(e,t)=>{Ws.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vu(e,r,i,n)});function Af(e){return Xc(_l,e)}var Mn=v("ZodDate",(e,t)=>{Js.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>xu(e,i,n,o),e.min=(i,n)=>e.check(ie(i,n)),e.max=(i,n)=>e.check(me(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Cf(e){return Yc(Mn,e)}var $l=v("ZodArray",(e,t)=>{qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Au(e,r,i,n),e.element=t.element,Fn(e,"ZodArray",{min(r,i){return this.check(Ue(r,i))},nonempty(r){return this.check(Ue(1,r))},max(r,i){return this.check(lt(r,i))},length(r,i){return this.check(dt(r,i))},unwrap(){return this.element}})});function Vn(e,t){return tu($l,e,t)}function jf(e){let t=e._zod.def.shape;return Yi(Object.keys(t))}var Bn=v("ZodObject",(e,t)=>{Ks.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cu(e,r,i,n),w.defineLazy(e,"shape",()=>t.shape),Fn(e,"ZodObject",{keyof(){return Yi(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:pt()})},loose(){return this.clone({...this._zod.def,catchall:pt()})},strict(){return this.clone({...this._zod.def,catchall:Ki()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return w.extend(this,r)},safeExtend(r){return w.safeExtend(this,r)},merge(r){return w.merge(this,r)},pick(r){return w.pick(this,r)},omit(r){return w.omit(this,r)},partial(...r){return w.partial(eo,this,r[0])},required(...r){return w.required(to,this,r[0])}})});function Uf(e,t){let r={type:"object",shape:e??{},...w.normalizeParams(t)};return new Bn(r)}function Nf(e,t){return new Bn({type:"object",shape:e,catchall:Ki(),...w.normalizeParams(t)})}function Rf(e,t){return new Bn({type:"object",shape:e,catchall:pt(),...w.normalizeParams(t)})}var Gn=v("ZodUnion",(e,t)=>{En.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xi(e,r,i,n),e.options=t.options});function Xi(e,t){return new Gn({type:"union",options:e,...w.normalizeParams(t)})}var xl=v("ZodXor",(e,t)=>{Gn.init(e,t),Xs.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xi(e,r,i,n),e.options=t.options});function Lf(e,t){return new xl({type:"union",options:e,inclusive:!1,...w.normalizeParams(t)})}var bl=v("ZodDiscriminatedUnion",(e,t)=>{Gn.init(e,t),Ys.init(e,t)});function Ff(e,t,r){return new bl({type:"union",options:t,discriminator:e,...w.normalizeParams(r)})}var kl=v("ZodIntersection",(e,t)=>{Qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ju(e,r,i,n)});function Sl(e,t){return new kl({type:"intersection",left:e,right:t})}var wl=v("ZodTuple",(e,t)=>{Zr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Uu(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Il(e,t,r){let i=t instanceof P,n=i?r:t,o=i?t:null;return new wl({type:"tuple",items:e,rest:o,...w.normalizeParams(n)})}var Gt=v("ZodRecord",(e,t)=>{ec.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Nu(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function Ol(e,t,r){return!t||!t._zod?new Gt({type:"record",keyType:Un(),valueType:e,...w.normalizeParams(t)}):new Gt({type:"record",keyType:e,valueType:t,...w.normalizeParams(r)})}function Zf(e,t,r){let i=ne(e);return i._zod.values=void 0,new Gt({type:"record",keyType:i,valueType:t,...w.normalizeParams(r)})}function Mf(e,t,r){return new Gt({type:"record",keyType:e,valueType:t,mode:"loose",...w.normalizeParams(r)})}var zl=v("ZodMap",(e,t)=>{tc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tu(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Oe(...r)),e.nonempty=r=>e.check(Oe(1,r)),e.max=(...r)=>e.check(Ke(...r)),e.size=(...r)=>e.check(ut(...r))});function Vf(e,t,r){return new zl({type:"map",keyType:e,valueType:t,...w.normalizeParams(r)})}var El=v("ZodSet",(e,t)=>{nc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pu(e,r,i,n),e.min=(...r)=>e.check(Oe(...r)),e.nonempty=r=>e.check(Oe(1,r)),e.max=(...r)=>e.check(Ke(...r)),e.size=(...r)=>e.check(ut(...r))});function Bf(e,t){return new El({type:"set",valueType:e,...w.normalizeParams(t)})}var Ht=v("ZodEnum",(e,t)=>{rc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>bu(e,i,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ht({...t,checks:[],...w.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ht({...t,checks:[],...w.normalizeParams(n),entries:o})}});function Yi(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ht({type:"enum",entries:r,...w.normalizeParams(t)})}function Gf(e,t){return new Ht({type:"enum",entries:e,...w.normalizeParams(t)})}var Dl=v("ZodLiteral",(e,t)=>{ic.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ku(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Hf(e,t){return new Dl({type:"literal",values:Array.isArray(e)?e:[e],...w.normalizeParams(t)})}var Tl=v("ZodFile",(e,t)=>{oc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Iu(e,r,i,n),e.min=(r,i)=>e.check(Oe(r,i)),e.max=(r,i)=>e.check(Ke(r,i)),e.mime=(r,i)=>e.check(Ut(Array.isArray(r)?r:[r],i))});function Wf(e){return nu(Tl,e)}var Pl=v("ZodTransform",(e,t)=>{ac.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Du(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Be(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(w.issue(o,r.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(w.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Qi(e){return new Pl({type:"transform",transform:e})}var eo=v("ZodOptional",(e,t)=>{Mr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Rn(e){return new eo({type:"optional",innerType:e})}var Al=v("ZodExactOptional",(e,t)=>{sc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Cl(e){return new Al({type:"optional",innerType:e})}var jl=v("ZodNullable",(e,t)=>{cc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ru(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ln(e){return new jl({type:"nullable",innerType:e})}function Jf(e){return Rn(Ln(e))}var Ul=v("ZodDefault",(e,t)=>{uc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nl(e,t){return new Ul({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}var Rl=v("ZodPrefault",(e,t)=>{lc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ll(e,t){return new Rl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():w.shallowClone(t)}})}var to=v("ZodNonOptional",(e,t)=>{dc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Fl(e,t){return new to({type:"nonoptional",innerType:e,...w.normalizeParams(t)})}var Zl=v("ZodSuccess",(e,t)=>{pc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ou(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function qf(e){return new Zl({type:"success",innerType:e})}var Ml=v("ZodCatch",(e,t)=>{mc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vl(e,t){return new Ml({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Bl=v("ZodNaN",(e,t)=>{fc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Su(e,r,i,n)});function Kf(e){return eu(Bl,e)}var Hn=v("ZodPipe",(e,t)=>{Vr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vu(e,r,i,n),e.in=t.in,e.out=t.out});function Ti(e,t){return new Hn({type:"pipe",in:e,out:t})}var Wn=v("ZodCodec",(e,t)=>{Hn.init(e,t),Dn.init(e,t)});function Xf(e,t,r){return new Wn({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function Yf(e){let t=e._zod.def;return new Wn({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Gl=v("ZodPreprocess",(e,t)=>{Hn.init(e,t),hc.init(e,t)}),Hl=v("ZodReadonly",(e,t)=>{gc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Wl(e){return new Hl({type:"readonly",innerType:e})}var Jl=v("ZodTemplateLiteral",(e,t)=>{vc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wu(e,r,i,n)});function Qf(e,t){return new Jl({type:"template_literal",parts:e,...w.normalizeParams(t)})}var ql=v("ZodLazy",(e,t)=>{$c.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hu(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Kl(e){return new ql({type:"lazy",getter:e})}var Xl=v("ZodPromise",(e,t)=>{_c.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function eh(e){return new Xl({type:"promise",innerType:e})}var Yl=v("ZodFunction",(e,t)=>{yc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Eu(e,r,i,n)});function th(e){return new Yl({type:"function",input:Array.isArray(e?.input)?Il(e?.input):e?.input??Vn(pt()),output:e?.output??pt()})}var Jn=v("ZodCustom",(e,t)=>{xc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zu(e,r,i,n)});function nh(e){let t=new F({check:"custom"});return t._zod.check=e,t}function rh(e,t){return ru(Jn,e??(()=>!0),t)}function Ql(e,t={}){return iu(Jn,e,t)}function ed(e,t){return ou(e,t)}var ih=au,oh=su;function ah(e,t={}){let r=new Jn({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...w.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var sh=(...e)=>cu({Codec:Wn,Boolean:Kt,String:Wt},...e);function ch(e){let t=Kl(()=>Xi([Un(e),ll(),dl(),hl(),Vn(t),Ol(Un(),t)]));return t}function uh(e,t){return new Gl({type:"pipe",in:Qi(e),out:t})}var mx={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function fx(e){M({customError:e})}function hx(){return M().customError}var td;td||(td={});var D={...jn,...wi,iso:Bt},gx=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function vx(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function yx(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function lh(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return D.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=yx(n,t),a=ee(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return D.null();if(n.length===0)return D.never();if(n.length===1)return D.literal(n[0]);if(n.every(a=>typeof a=="string"))return D.enum(n);let o=n.map(a=>D.literal(a));return o.length<2?o[0]:D.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return lh(a,t)});return n.length===0?D.never():n.length===1?n[0]:D.union(n)}if(!r)return D.any();let i;switch(r){case"string":{let n=D.string();if(e.format){let o=e.format;o==="email"?n=n.check(D.email()):o==="uri"||o==="uri-reference"?n=n.check(D.url()):o==="uuid"||o==="guid"?n=n.check(D.uuid()):o==="date-time"?n=n.check(D.iso.datetime()):o==="date"?n=n.check(D.iso.date()):o==="time"?n=n.check(D.iso.time()):o==="duration"?n=n.check(D.iso.duration()):o==="ipv4"?n=n.check(D.ipv4()):o==="ipv6"?n=n.check(D.ipv6()):o==="mac"?n=n.check(D.mac()):o==="cidr"?n=n.check(D.cidrv4()):o==="cidr-v6"?n=n.check(D.cidrv6()):o==="base64"?n=n.check(D.base64()):o==="base64url"?n=n.check(D.base64url()):o==="e164"?n=n.check(D.e164()):o==="jwt"?n=n.check(D.jwt()):o==="emoji"?n=n.check(D.emoji()):o==="nanoid"?n=n.check(D.nanoid()):o==="cuid"?n=n.check(D.cuid()):o==="cuid2"?n=n.check(D.cuid2()):o==="ulid"?n=n.check(D.ulid()):o==="xid"?n=n.check(D.xid()):o==="ksuid"&&(n=n.check(D.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=D.boolean();break}case"null":{i=D.null();break}case"object":{let n={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let l=ee(u,t);n[c]=a.has(c)?l:l.optional()}if(e.propertyNames){let c=ee(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ee(e.additionalProperties,t):D.any();if(Object.keys(n).length===0){i=D.record(c,u);break}let l=D.object(n).passthrough(),f=D.looseRecord(c,u);i=D.intersection(l,f);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let p of u){let y=ee(c[p],t),b=D.string().regex(new RegExp(p));l.push(D.looseRecord(b,y))}let f=[];if(Object.keys(n).length>0&&f.push(D.object(n).passthrough()),f.push(...l),f.length===0)i=D.object({}).passthrough();else if(f.length===1)i=f[0];else{let p=D.intersection(f[0],f[1]);for(let y=2;y<f.length;y++)p=D.intersection(p,f[y]);i=p}break}let s=D.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(ee(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>ee(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?ee(o,t):void 0;s?i=D.tuple(a).rest(s):i=D.tuple(a),typeof e.minItems=="number"&&(i=i.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(D.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>ee(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?ee(e.additionalItems,t):void 0;s?i=D.tuple(a).rest(s):i=D.tuple(a),typeof e.minItems=="number"&&(i=i.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(D.maxLength(e.maxItems)))}else if(o!==void 0){let a=ee(o,t),s=D.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=D.array(D.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function ee(e,t){if(typeof e=="boolean")return e?D.any():D.never();let r=lh(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>ee(u,t)),c=D.union(s);r=i?D.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>ee(u,t)),c=D.xor(s);r=i?D.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:D.any();else{let s=i?r:ee(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=D.intersection(s,ee(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=D.nullable(r)),e.readOnly===!0&&(r=D.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))gx.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function dh(e,t){if(typeof e=="boolean")return e?D.any():D.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=vx(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Y};return ee(r,o)}var nd={};ae(nd,{bigint:()=>bx,boolean:()=>xx,date:()=>kx,number:()=>$x,string:()=>_x});function _x(e){return wc(Wt,e)}function $x(e){return Ac(qt,e)}function xx(e){return Fc(Kt,e)}function bx(e){return Mc(Xt,e)}function kx(e){return Qc(Mn,e)}M(Br());var Yt={apiUrl:be.string().url().optional(),token:be.string().min(1).optional()};no();var wx=be.object(Yt).strict(),Ix={apiUrl:pn.API_URL,token:pn.TOKEN};function en(){if(Qt()!=="node")return{};let e={apiUrl:process.env[pn.API_URL]||void 0,token:process.env[pn.TOKEN]||void 0};try{return wx.parse(e)}catch(t){if(t instanceof be.ZodError){let r=t.issues[0],i=r.path[0],n=(i&&Ix[i])??"SHIP environment configuration";throw O.config(`Invalid ${n}: ${r.message}`)}throw O.config("Invalid environment configuration")}}var G=se(require("fs"),1),dd=se(require("os"),1),nt=se(require("path"),1);B();var ye=e=>e.commands.filter(t=>t.name()!=="help"),qn=e=>ye(e).filter(t=>ye(t).length>0),Ox=e=>e.registeredArguments.some(t=>/^(path|file|dir)/i.test(t.name())),zx=e=>e.options.filter(t=>/<(file|path|dir)\w*>/i.test(t.flags)).map(t=>t.long??""),mh=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),rd=e=>qn(e).flatMap(t=>ye(t).filter(r=>r.options.length>0).map(r=>({path:`${t.name()} ${r.name()}`,cmd:r}))),fh=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),id=e=>[...qn(e).flatMap(t=>ye(t).filter(Ox).map(r=>r.name())),...zx(e)],od=e=>`${e} ship shell completion \u2014 GENERATED from the command tree.
102
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&e.reused==="ref"){o(a);continue}}}function Qe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,l={...u},f=c.ref;if(c.ref=null,f){i(f);let y=e.seen.get(f),b=y.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(b)):Object.assign(u,b),Object.assign(u,l),s._zod.parent===f)for(let E in u)E==="$ref"||E==="allOf"||E in l||delete u[E];if(b.$ref&&y.def)for(let E in u)E==="$ref"||E==="allOf"||E in y.def&&JSON.stringify(u[E])===JSON.stringify(y.def[E])&&delete u[E]}let p=s._zod.parent;if(p&&p!==f){i(p);let y=e.seen.get(p);if(y?.schema.$ref&&(u.$ref=y.schema.$ref,y.def))for(let b in u)b==="$ref"||b==="allOf"||b in y.def&&JSON.stringify(u[b])===JSON.stringify(y.def[b])&&delete u[b]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())i(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Vt(t,"input",e.processors),output:Vt(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function oe(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return oe(i.element,r);if(i.type==="set")return oe(i.valueType,r);if(i.type==="lazy")return oe(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return oe(i.innerType,r);if(i.type==="intersection")return oe(i.left,r)||oe(i.right,r);if(i.type==="record"||i.type==="map")return oe(i.keyType,r)||oe(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:oe(i.in,r)||oe(i.out,r);if(i.type==="object"){for(let n in i.shape)if(oe(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(oe(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(oe(n,r))return!0;return!!(i.rest&&oe(i.rest,r))}return!1}var uu=(e,t={})=>r=>{let i=Xe({...r,processors:t});return N(e,i),Ye(i,e),Qe(i,e)},Vt=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=Xe({...n??{},target:o,io:t,processors:r});return N(e,a),Ye(a,e),Qe(a,e)};var px={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lu=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=px[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},du=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let f=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),y=t.target==="draft-04"||t.target==="openapi-3.0";f?y?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),p?y?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},pu=(e,t,r,i)=>{r.type="boolean"},mu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},fu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},hu=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},gu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},vu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},yu=(e,t,r,i)=>{r.not={}},_u=(e,t,r,i)=>{},$u=(e,t,r,i)=>{},xu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},bu=(e,t,r,i)=>{let n=e._zod.def,o=vn(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},ku=(e,t,r,i)=>{let n=e._zod.def,o=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Su=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},wu=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Iu=(e,t,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,o)},zu=(e,t,r,i)=>{r.type="boolean"},Ou=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Eu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Du=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Pu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Tu=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Au=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=N(o.element,t,{...i,path:[...i.path,"items"]})},Cu=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let a=o.shape;for(let u in a)n.properties[u]=N(a[u],t,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let l=o.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=N(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},xi=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>N(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},ju=(e,t,r,i)=>{let n=e._zod.def,o=N(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=N(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=c},Uu=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((p,y)=>N(p,t,{...i,path:[...i.path,a,y]})),u=o.rest?N(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof f=="number"&&(n.maxItems=f)},Nu=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=N(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let f of c)n.patternProperties[f.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=N(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=N(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(f=>typeof f=="string"||typeof f=="number");l.length>0&&(n.required=l)}},Ru=(e,t,r,i)=>{let n=e._zod.def,o=N(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Lu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Fu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Zu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Mu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Vu=(e,t,r,i)=>{let n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;N(a,t,i);let s=t.seen.get(e);s.ref=a},Bu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Gu=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},bi=(e,t,r,i)=>{let n=e._zod.def;N(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Hu=(e,t,r,i)=>{let n=e._zod.innerType;N(n,t,i);let o=t.seen.get(e);o.ref=n},$i={string:lu,number:du,boolean:pu,bigint:mu,symbol:fu,null:hu,undefined:gu,void:vu,never:yu,any:_u,unknown:$u,date:xu,enum:bu,literal:ku,nan:Su,template_literal:wu,file:Iu,success:zu,custom:Ou,function:Eu,transform:Du,map:Pu,set:Tu,array:Au,object:Cu,union:xi,intersection:ju,tuple:Uu,record:Nu,nullable:Ru,nonoptional:Lu,default:Fu,prefault:Zu,catch:Mu,pipe:Vu,readonly:Bu,promise:Gu,optional:bi,lazy:Hu};function ki(e,t){if("_idmap"in e){let i=e,n=Xe({...t,processors:$i}),o={};for(let c of i._idmap.entries()){let[u,l]=c;N(l,n)}let a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(let c of i._idmap.entries()){let[u,l]=c;Ye(n,l),a[u]=Qe(n,l)}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let r=Xe({...t,processors:$i});return N(e,r),Ye(r,e),Qe(r,e)}var Si=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Xe({processors:$i,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return N(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ye(this.ctx,t);let i=Qe(this.ctx,t),{"~standard":n,...o}=i;return o}};var Wm={};var jn={};ae(jn,{ZodAny:()=>gl,ZodArray:()=>$l,ZodBase64:()=>Gi,ZodBase64URL:()=>Hi,ZodBigInt:()=>Xt,ZodBigIntFormat:()=>qi,ZodBoolean:()=>Kt,ZodCIDRv4:()=>Vi,ZodCIDRv6:()=>Bi,ZodCUID:()=>Ui,ZodCUID2:()=>Ni,ZodCatch:()=>Ml,ZodCodec:()=>Wn,ZodCustom:()=>Jn,ZodCustomStringFormat:()=>Jt,ZodDate:()=>Mn,ZodDefault:()=>Ul,ZodDiscriminatedUnion:()=>bl,ZodE164:()=>Wi,ZodEmail:()=>Ai,ZodEmoji:()=>Ci,ZodEnum:()=>Ht,ZodExactOptional:()=>Al,ZodFile:()=>Pl,ZodFunction:()=>Yl,ZodGUID:()=>Nn,ZodIPv4:()=>Zi,ZodIPv6:()=>Mi,ZodIntersection:()=>kl,ZodJWT:()=>Ji,ZodKSUID:()=>Fi,ZodLazy:()=>ql,ZodLiteral:()=>Dl,ZodMAC:()=>ul,ZodMap:()=>Ol,ZodNaN:()=>Bl,ZodNanoID:()=>ji,ZodNever:()=>yl,ZodNonOptional:()=>to,ZodNull:()=>fl,ZodNullable:()=>jl,ZodNumber:()=>qt,ZodNumberFormat:()=>mt,ZodObject:()=>Bn,ZodOptional:()=>eo,ZodPipe:()=>Hn,ZodPrefault:()=>Rl,ZodPreprocess:()=>Gl,ZodPromise:()=>Xl,ZodReadonly:()=>Hl,ZodRecord:()=>Gt,ZodSet:()=>El,ZodString:()=>Wt,ZodStringFormat:()=>L,ZodSuccess:()=>Zl,ZodSymbol:()=>pl,ZodTemplateLiteral:()=>Jl,ZodTransform:()=>Tl,ZodTuple:()=>wl,ZodType:()=>C,ZodULID:()=>Ri,ZodURL:()=>Zn,ZodUUID:()=>Oe,ZodUndefined:()=>ml,ZodUnion:()=>Gn,ZodUnknown:()=>vl,ZodVoid:()=>_l,ZodXID:()=>Li,ZodXor:()=>xl,_ZodString:()=>Ti,_default:()=>Nl,_function:()=>rh,any:()=>Cf,array:()=>Vn,base64:()=>vf,base64url:()=>yf,bigint:()=>Ef,boolean:()=>dl,catch:()=>Vl,check:()=>ih,cidrv4:()=>hf,cidrv6:()=>gf,codec:()=>Qf,cuid:()=>sf,cuid2:()=>cf,custom:()=>oh,date:()=>Uf,describe:()=>ah,discriminatedUnion:()=>Mf,e164:()=>_f,email:()=>Km,emoji:()=>of,enum:()=>Yi,exactOptional:()=>Cl,file:()=>qf,float32:()=>wf,float64:()=>If,function:()=>rh,guid:()=>Xm,hash:()=>Sf,hex:()=>kf,hostname:()=>bf,httpUrl:()=>rf,instanceof:()=>ch,int:()=>Di,int32:()=>zf,int64:()=>Df,intersection:()=>Sl,invertCodec:()=>eh,ipv4:()=>pf,ipv6:()=>ff,json:()=>lh,jwt:()=>$f,keyof:()=>Nf,ksuid:()=>df,lazy:()=>Kl,literal:()=>Jf,looseObject:()=>Ff,looseRecord:()=>Bf,mac:()=>mf,map:()=>Gf,meta:()=>sh,nan:()=>Yf,nanoid:()=>af,nativeEnum:()=>Wf,never:()=>Ki,nonoptional:()=>Fl,null:()=>hl,nullable:()=>Ln,nullish:()=>Kf,number:()=>ll,object:()=>Rf,optional:()=>Rn,partialRecord:()=>Vf,pipe:()=>Pi,prefault:()=>Ll,preprocess:()=>dh,promise:()=>nh,readonly:()=>Wl,record:()=>zl,refine:()=>Ql,set:()=>Hf,strictObject:()=>Lf,string:()=>Un,stringFormat:()=>xf,stringbool:()=>uh,success:()=>Xf,superRefine:()=>ed,symbol:()=>Tf,templateLiteral:()=>th,transform:()=>Qi,tuple:()=>Il,uint32:()=>Of,uint64:()=>Pf,ulid:()=>uf,undefined:()=>Af,union:()=>Xi,unknown:()=>pt,url:()=>nf,uuid:()=>Ym,uuidv4:()=>Qm,uuidv6:()=>ef,uuidv7:()=>tf,void:()=>jf,xid:()=>lf,xor:()=>Zf});var wi={};ae(wi,{endsWith:()=>jt,gt:()=>Ie,gte:()=>ie,includes:()=>At,length:()=>dt,lowercase:()=>Pt,lt:()=>we,lte:()=>me,maxLength:()=>lt,maxSize:()=>Ke,mime:()=>Ut,minLength:()=>Ue,minSize:()=>ze,multipleOf:()=>qe,negative:()=>gi,nonnegative:()=>yi,nonpositive:()=>vi,normalize:()=>Nt,overwrite:()=>xe,positive:()=>hi,property:()=>_i,regex:()=>Dt,size:()=>ut,slugify:()=>Zt,startsWith:()=>Ct,toLowerCase:()=>Lt,toUpperCase:()=>Ft,trim:()=>Rt,uppercase:()=>Tt});var Bt={};ae(Bt,{ZodISODate:()=>zi,ZodISODateTime:()=>Ii,ZodISODuration:()=>Ei,ZodISOTime:()=>Oi,date:()=>Ju,datetime:()=>Wu,duration:()=>Ku,time:()=>qu});var Ii=v("ZodISODateTime",(e,t)=>{Ss.init(e,t),L.init(e,t)});function Wu(e){return Oc(Ii,e)}var zi=v("ZodISODate",(e,t)=>{ws.init(e,t),L.init(e,t)});function Ju(e){return Ec(zi,e)}var Oi=v("ZodISOTime",(e,t)=>{Is.init(e,t),L.init(e,t)});function qu(e){return Dc(Oi,e)}var Ei=v("ZodISODuration",(e,t)=>{zs.init(e,t),L.init(e,t)});function Ku(e){return Pc(Ei,e)}var Jm=(e,t)=>{bn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Sn(e,r)},flatten:{value:r=>kn(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xt,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xt,2)}},isEmpty:{get(){return e.issues.length===0}}})},fx=v("ZodError",Jm),de=v("ZodError",Jm,{Parent:Error});var Xu=St(de),Yu=wt(de),Qu=It(de),el=zt(de),tl=kr(de),nl=Sr(de),rl=wr(de),il=Ir(de),ol=zr(de),al=Or(de),sl=Er(de),cl=Dr(de);var qm=new WeakMap;function Fn(e,t,r){let i=Object.getPrototypeOf(e),n=qm.get(i);if(n||(n=new Set,qm.set(i,n)),!n.has(t)){n.add(t);for(let o in r){let a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var C=v("ZodType",(e,t)=>(T.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Vt(e,"input"),output:Vt(e,"output")}}),e.toJSONSchema=uu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,i)=>Xu(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Qu(e,r,i),e.parseAsync=async(r,i)=>Yu(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>el(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>tl(e,r,i),e.decode=(r,i)=>nl(e,r,i),e.encodeAsync=async(r,i)=>rl(e,r,i),e.decodeAsync=async(r,i)=>il(e,r,i),e.safeEncode=(r,i)=>ol(e,r,i),e.safeDecode=(r,i)=>al(e,r,i),e.safeEncodeAsync=async(r,i)=>sl(e,r,i),e.safeDecodeAsync=async(r,i)=>cl(e,r,i),Fn(e,"ZodType",{check(...r){let i=this.def;return this.clone(I.mergeDefs(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return ne(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(Ql(r,i))},superRefine(r,i){return this.check(ed(r,i))},overwrite(r){return this.check(xe(r))},optional(){return Rn(this)},exactOptional(){return Cl(this)},nullable(){return Ln(this)},nullish(){return Rn(Ln(this))},nonoptional(r){return Fl(this,r)},array(){return Vn(this)},or(r){return Xi([this,r])},and(r){return Sl(this,r)},transform(r){return Pi(this,Qi(r))},default(r){return Nl(this,r)},prefault(r){return Ll(this,r)},catch(r){return Vl(this,r)},pipe(r){return Pi(this,r)},readonly(){return Wl(this)},describe(r){let i=this.clone();return Y.add(i,{description:r}),i},meta(...r){if(r.length===0)return Y.get(this);let i=this.clone();return Y.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return Y.get(e)?.description},configurable:!0}),e)),Ti=v("_ZodString",(e,t)=>{ct.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>lu(e,i,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Fn(e,"_ZodString",{regex(...i){return this.check(Dt(...i))},includes(...i){return this.check(At(...i))},startsWith(...i){return this.check(Ct(...i))},endsWith(...i){return this.check(jt(...i))},min(...i){return this.check(Ue(...i))},max(...i){return this.check(lt(...i))},length(...i){return this.check(dt(...i))},nonempty(...i){return this.check(Ue(1,...i))},lowercase(i){return this.check(Pt(i))},uppercase(i){return this.check(Tt(i))},trim(){return this.check(Rt())},normalize(...i){return this.check(Nt(...i))},toLowerCase(){return this.check(Lt())},toUpperCase(){return this.check(Ft())},slugify(){return this.check(Zt())}})}),Wt=v("ZodString",(e,t)=>{ct.init(e,t),Ti.init(e,t),e.email=r=>e.check(qr(Ai,r)),e.url=r=>e.check(Cn(Zn,r)),e.jwt=r=>e.check(fi(Ji,r)),e.emoji=r=>e.check(ei(Ci,r)),e.guid=r=>e.check(An(Nn,r)),e.uuid=r=>e.check(Kr(Oe,r)),e.uuidv4=r=>e.check(Xr(Oe,r)),e.uuidv6=r=>e.check(Yr(Oe,r)),e.uuidv7=r=>e.check(Qr(Oe,r)),e.nanoid=r=>e.check(ti(ji,r)),e.guid=r=>e.check(An(Nn,r)),e.cuid=r=>e.check(ni(Ui,r)),e.cuid2=r=>e.check(ri(Ni,r)),e.ulid=r=>e.check(ii(Ri,r)),e.base64=r=>e.check(di(Gi,r)),e.base64url=r=>e.check(pi(Hi,r)),e.xid=r=>e.check(oi(Li,r)),e.ksuid=r=>e.check(ai(Fi,r)),e.ipv4=r=>e.check(si(Zi,r)),e.ipv6=r=>e.check(ci(Mi,r)),e.cidrv4=r=>e.check(ui(Vi,r)),e.cidrv6=r=>e.check(li(Bi,r)),e.e164=r=>e.check(mi(Wi,r)),e.datetime=r=>e.check(Wu(r)),e.date=r=>e.check(Ju(r)),e.time=r=>e.check(qu(r)),e.duration=r=>e.check(Ku(r))});function Un(e){return Sc(Wt,e)}var L=v("ZodStringFormat",(e,t)=>{R.init(e,t),Ti.init(e,t)}),Ai=v("ZodEmail",(e,t)=>{hs.init(e,t),L.init(e,t)});function Km(e){return qr(Ai,e)}var Nn=v("ZodGUID",(e,t)=>{ms.init(e,t),L.init(e,t)});function Xm(e){return An(Nn,e)}var Oe=v("ZodUUID",(e,t)=>{fs.init(e,t),L.init(e,t)});function Ym(e){return Kr(Oe,e)}function Qm(e){return Xr(Oe,e)}function ef(e){return Yr(Oe,e)}function tf(e){return Qr(Oe,e)}var Zn=v("ZodURL",(e,t)=>{gs.init(e,t),L.init(e,t)});function nf(e){return Cn(Zn,e)}function rf(e){return Cn(Zn,{protocol:pe.httpProtocol,hostname:pe.domain,...I.normalizeParams(e)})}var Ci=v("ZodEmoji",(e,t)=>{vs.init(e,t),L.init(e,t)});function of(e){return ei(Ci,e)}var ji=v("ZodNanoID",(e,t)=>{ys.init(e,t),L.init(e,t)});function af(e){return ti(ji,e)}var Ui=v("ZodCUID",(e,t)=>{_s.init(e,t),L.init(e,t)});function sf(e){return ni(Ui,e)}var Ni=v("ZodCUID2",(e,t)=>{$s.init(e,t),L.init(e,t)});function cf(e){return ri(Ni,e)}var Ri=v("ZodULID",(e,t)=>{xs.init(e,t),L.init(e,t)});function uf(e){return ii(Ri,e)}var Li=v("ZodXID",(e,t)=>{bs.init(e,t),L.init(e,t)});function lf(e){return oi(Li,e)}var Fi=v("ZodKSUID",(e,t)=>{ks.init(e,t),L.init(e,t)});function df(e){return ai(Fi,e)}var Zi=v("ZodIPv4",(e,t)=>{Os.init(e,t),L.init(e,t)});function pf(e){return si(Zi,e)}var ul=v("ZodMAC",(e,t)=>{Ds.init(e,t),L.init(e,t)});function mf(e){return Ic(ul,e)}var Mi=v("ZodIPv6",(e,t)=>{Es.init(e,t),L.init(e,t)});function ff(e){return ci(Mi,e)}var Vi=v("ZodCIDRv4",(e,t)=>{Ps.init(e,t),L.init(e,t)});function hf(e){return ui(Vi,e)}var Bi=v("ZodCIDRv6",(e,t)=>{Ts.init(e,t),L.init(e,t)});function gf(e){return li(Bi,e)}var Gi=v("ZodBase64",(e,t)=>{Cs.init(e,t),L.init(e,t)});function vf(e){return di(Gi,e)}var Hi=v("ZodBase64URL",(e,t)=>{js.init(e,t),L.init(e,t)});function yf(e){return pi(Hi,e)}var Wi=v("ZodE164",(e,t)=>{Us.init(e,t),L.init(e,t)});function _f(e){return mi(Wi,e)}var Ji=v("ZodJWT",(e,t)=>{Ns.init(e,t),L.init(e,t)});function $f(e){return fi(Ji,e)}var Jt=v("ZodCustomStringFormat",(e,t)=>{Rs.init(e,t),L.init(e,t)});function xf(e,t,r={}){return Mt(Jt,e,t,r)}function bf(e){return Mt(Jt,"hostname",pe.hostname,e)}function kf(e){return Mt(Jt,"hex",pe.hex,e)}function Sf(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=pe[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Mt(Jt,i,n,t)}var qt=v("ZodNumber",(e,t)=>{Lr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>du(e,i,n,o),Fn(e,"ZodNumber",{gt(i,n){return this.check(Ie(i,n))},gte(i,n){return this.check(ie(i,n))},min(i,n){return this.check(ie(i,n))},lt(i,n){return this.check(we(i,n))},lte(i,n){return this.check(me(i,n))},max(i,n){return this.check(me(i,n))},int(i){return this.check(Di(i))},safe(i){return this.check(Di(i))},positive(i){return this.check(Ie(0,i))},nonnegative(i){return this.check(ie(0,i))},negative(i){return this.check(we(0,i))},nonpositive(i){return this.check(me(0,i))},multipleOf(i,n){return this.check(qe(i,n))},step(i,n){return this.check(qe(i,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function ll(e){return Tc(qt,e)}var mt=v("ZodNumberFormat",(e,t)=>{Ls.init(e,t),qt.init(e,t)});function Di(e){return Cc(mt,e)}function wf(e){return jc(mt,e)}function If(e){return Uc(mt,e)}function zf(e){return Nc(mt,e)}function Of(e){return Rc(mt,e)}var Kt=v("ZodBoolean",(e,t)=>{On.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pu(e,r,i,n)});function dl(e){return Lc(Kt,e)}var Xt=v("ZodBigInt",(e,t)=>{Fr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>mu(e,i,n,o),e.gte=(i,n)=>e.check(ie(i,n)),e.min=(i,n)=>e.check(ie(i,n)),e.gt=(i,n)=>e.check(Ie(i,n)),e.gte=(i,n)=>e.check(ie(i,n)),e.min=(i,n)=>e.check(ie(i,n)),e.lt=(i,n)=>e.check(we(i,n)),e.lte=(i,n)=>e.check(me(i,n)),e.max=(i,n)=>e.check(me(i,n)),e.positive=i=>e.check(Ie(BigInt(0),i)),e.negative=i=>e.check(we(BigInt(0),i)),e.nonpositive=i=>e.check(me(BigInt(0),i)),e.nonnegative=i=>e.check(ie(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(qe(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Ef(e){return Zc(Xt,e)}var qi=v("ZodBigIntFormat",(e,t)=>{Fs.init(e,t),Xt.init(e,t)});function Df(e){return Vc(qi,e)}function Pf(e){return Bc(qi,e)}var pl=v("ZodSymbol",(e,t)=>{Zs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fu(e,r,i,n)});function Tf(e){return Gc(pl,e)}var ml=v("ZodUndefined",(e,t)=>{Ms.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>gu(e,r,i,n)});function Af(e){return Hc(ml,e)}var fl=v("ZodNull",(e,t)=>{Vs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hu(e,r,i,n)});function hl(e){return Wc(fl,e)}var gl=v("ZodAny",(e,t)=>{Bs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_u(e,r,i,n)});function Cf(){return Jc(gl)}var vl=v("ZodUnknown",(e,t)=>{Gs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$u(e,r,i,n)});function pt(){return qc(vl)}var yl=v("ZodNever",(e,t)=>{Hs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yu(e,r,i,n)});function Ki(e){return Kc(yl,e)}var _l=v("ZodVoid",(e,t)=>{Ws.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vu(e,r,i,n)});function jf(e){return Xc(_l,e)}var Mn=v("ZodDate",(e,t)=>{Js.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>xu(e,i,n,o),e.min=(i,n)=>e.check(ie(i,n)),e.max=(i,n)=>e.check(me(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Uf(e){return Yc(Mn,e)}var $l=v("ZodArray",(e,t)=>{qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Au(e,r,i,n),e.element=t.element,Fn(e,"ZodArray",{min(r,i){return this.check(Ue(r,i))},nonempty(r){return this.check(Ue(1,r))},max(r,i){return this.check(lt(r,i))},length(r,i){return this.check(dt(r,i))},unwrap(){return this.element}})});function Vn(e,t){return tu($l,e,t)}function Nf(e){let t=e._zod.def.shape;return Yi(Object.keys(t))}var Bn=v("ZodObject",(e,t)=>{Ks.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cu(e,r,i,n),I.defineLazy(e,"shape",()=>t.shape),Fn(e,"ZodObject",{keyof(){return Yi(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:pt()})},loose(){return this.clone({...this._zod.def,catchall:pt()})},strict(){return this.clone({...this._zod.def,catchall:Ki()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return I.extend(this,r)},safeExtend(r){return I.safeExtend(this,r)},merge(r){return I.merge(this,r)},pick(r){return I.pick(this,r)},omit(r){return I.omit(this,r)},partial(...r){return I.partial(eo,this,r[0])},required(...r){return I.required(to,this,r[0])}})});function Rf(e,t){let r={type:"object",shape:e??{},...I.normalizeParams(t)};return new Bn(r)}function Lf(e,t){return new Bn({type:"object",shape:e,catchall:Ki(),...I.normalizeParams(t)})}function Ff(e,t){return new Bn({type:"object",shape:e,catchall:pt(),...I.normalizeParams(t)})}var Gn=v("ZodUnion",(e,t)=>{En.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xi(e,r,i,n),e.options=t.options});function Xi(e,t){return new Gn({type:"union",options:e,...I.normalizeParams(t)})}var xl=v("ZodXor",(e,t)=>{Gn.init(e,t),Xs.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xi(e,r,i,n),e.options=t.options});function Zf(e,t){return new xl({type:"union",options:e,inclusive:!1,...I.normalizeParams(t)})}var bl=v("ZodDiscriminatedUnion",(e,t)=>{Gn.init(e,t),Ys.init(e,t)});function Mf(e,t,r){return new bl({type:"union",options:t,discriminator:e,...I.normalizeParams(r)})}var kl=v("ZodIntersection",(e,t)=>{Qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ju(e,r,i,n)});function Sl(e,t){return new kl({type:"intersection",left:e,right:t})}var wl=v("ZodTuple",(e,t)=>{Zr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Uu(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Il(e,t,r){let i=t instanceof T,n=i?r:t,o=i?t:null;return new wl({type:"tuple",items:e,rest:o,...I.normalizeParams(n)})}var Gt=v("ZodRecord",(e,t)=>{ec.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Nu(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function zl(e,t,r){return!t||!t._zod?new Gt({type:"record",keyType:Un(),valueType:e,...I.normalizeParams(t)}):new Gt({type:"record",keyType:e,valueType:t,...I.normalizeParams(r)})}function Vf(e,t,r){let i=ne(e);return i._zod.values=void 0,new Gt({type:"record",keyType:i,valueType:t,...I.normalizeParams(r)})}function Bf(e,t,r){return new Gt({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(r)})}var Ol=v("ZodMap",(e,t)=>{tc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pu(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(ze(...r)),e.nonempty=r=>e.check(ze(1,r)),e.max=(...r)=>e.check(Ke(...r)),e.size=(...r)=>e.check(ut(...r))});function Gf(e,t,r){return new Ol({type:"map",keyType:e,valueType:t,...I.normalizeParams(r)})}var El=v("ZodSet",(e,t)=>{nc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tu(e,r,i,n),e.min=(...r)=>e.check(ze(...r)),e.nonempty=r=>e.check(ze(1,r)),e.max=(...r)=>e.check(Ke(...r)),e.size=(...r)=>e.check(ut(...r))});function Hf(e,t){return new El({type:"set",valueType:e,...I.normalizeParams(t)})}var Ht=v("ZodEnum",(e,t)=>{rc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,n,o)=>bu(e,i,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ht({...t,checks:[],...I.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ht({...t,checks:[],...I.normalizeParams(n),entries:o})}});function Yi(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ht({type:"enum",entries:r,...I.normalizeParams(t)})}function Wf(e,t){return new Ht({type:"enum",entries:e,...I.normalizeParams(t)})}var Dl=v("ZodLiteral",(e,t)=>{ic.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ku(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Jf(e,t){return new Dl({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var Pl=v("ZodFile",(e,t)=>{oc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Iu(e,r,i,n),e.min=(r,i)=>e.check(ze(r,i)),e.max=(r,i)=>e.check(Ke(r,i)),e.mime=(r,i)=>e.check(Ut(Array.isArray(r)?r:[r],i))});function qf(e){return nu(Pl,e)}var Tl=v("ZodTransform",(e,t)=>{ac.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Du(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Be(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(I.issue(o,r.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(I.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Qi(e){return new Tl({type:"transform",transform:e})}var eo=v("ZodOptional",(e,t)=>{Mr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Rn(e){return new eo({type:"optional",innerType:e})}var Al=v("ZodExactOptional",(e,t)=>{sc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bi(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Cl(e){return new Al({type:"optional",innerType:e})}var jl=v("ZodNullable",(e,t)=>{cc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ru(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ln(e){return new jl({type:"nullable",innerType:e})}function Kf(e){return Rn(Ln(e))}var Ul=v("ZodDefault",(e,t)=>{uc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nl(e,t){return new Ul({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var Rl=v("ZodPrefault",(e,t)=>{lc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ll(e,t){return new Rl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var to=v("ZodNonOptional",(e,t)=>{dc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Fl(e,t){return new to({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var Zl=v("ZodSuccess",(e,t)=>{pc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Xf(e){return new Zl({type:"success",innerType:e})}var Ml=v("ZodCatch",(e,t)=>{mc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vl(e,t){return new Ml({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Bl=v("ZodNaN",(e,t)=>{fc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Su(e,r,i,n)});function Yf(e){return eu(Bl,e)}var Hn=v("ZodPipe",(e,t)=>{Vr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vu(e,r,i,n),e.in=t.in,e.out=t.out});function Pi(e,t){return new Hn({type:"pipe",in:e,out:t})}var Wn=v("ZodCodec",(e,t)=>{Hn.init(e,t),Dn.init(e,t)});function Qf(e,t,r){return new Wn({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function eh(e){let t=e._zod.def;return new Wn({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Gl=v("ZodPreprocess",(e,t)=>{Hn.init(e,t),hc.init(e,t)}),Hl=v("ZodReadonly",(e,t)=>{gc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Wl(e){return new Hl({type:"readonly",innerType:e})}var Jl=v("ZodTemplateLiteral",(e,t)=>{vc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wu(e,r,i,n)});function th(e,t){return new Jl({type:"template_literal",parts:e,...I.normalizeParams(t)})}var ql=v("ZodLazy",(e,t)=>{$c.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hu(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Kl(e){return new ql({type:"lazy",getter:e})}var Xl=v("ZodPromise",(e,t)=>{_c.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gu(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function nh(e){return new Xl({type:"promise",innerType:e})}var Yl=v("ZodFunction",(e,t)=>{yc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Eu(e,r,i,n)});function rh(e){return new Yl({type:"function",input:Array.isArray(e?.input)?Il(e?.input):e?.input??Vn(pt()),output:e?.output??pt()})}var Jn=v("ZodCustom",(e,t)=>{xc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ou(e,r,i,n)});function ih(e){let t=new F({check:"custom"});return t._zod.check=e,t}function oh(e,t){return ru(Jn,e??(()=>!0),t)}function Ql(e,t={}){return iu(Jn,e,t)}function ed(e,t){return ou(e,t)}var ah=au,sh=su;function ch(e,t={}){let r=new Jn({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...I.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var uh=(...e)=>cu({Codec:Wn,Boolean:Kt,String:Wt},...e);function lh(e){let t=Kl(()=>Xi([Un(e),ll(),dl(),hl(),Vn(t),zl(Un(),t)]));return t}function dh(e,t){return new Gl({type:"pipe",in:Qi(e),out:t})}var gx={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function vx(e){V({customError:e})}function yx(){return V().customError}var td;td||(td={});var D={...jn,...wi,iso:Bt},_x=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function $x(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function xx(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function ph(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return D.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=xx(n,t),a=te(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return D.null();if(n.length===0)return D.never();if(n.length===1)return D.literal(n[0]);if(n.every(a=>typeof a=="string"))return D.enum(n);let o=n.map(a=>D.literal(a));return o.length<2?o[0]:D.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return ph(a,t)});return n.length===0?D.never():n.length===1?n[0]:D.union(n)}if(!r)return D.any();let i;switch(r){case"string":{let n=D.string();if(e.format){let o=e.format;o==="email"?n=n.check(D.email()):o==="uri"||o==="uri-reference"?n=n.check(D.url()):o==="uuid"||o==="guid"?n=n.check(D.uuid()):o==="date-time"?n=n.check(D.iso.datetime()):o==="date"?n=n.check(D.iso.date()):o==="time"?n=n.check(D.iso.time()):o==="duration"?n=n.check(D.iso.duration()):o==="ipv4"?n=n.check(D.ipv4()):o==="ipv6"?n=n.check(D.ipv6()):o==="mac"?n=n.check(D.mac()):o==="cidr"?n=n.check(D.cidrv4()):o==="cidr-v6"?n=n.check(D.cidrv6()):o==="base64"?n=n.check(D.base64()):o==="base64url"?n=n.check(D.base64url()):o==="e164"?n=n.check(D.e164()):o==="jwt"?n=n.check(D.jwt()):o==="emoji"?n=n.check(D.emoji()):o==="nanoid"?n=n.check(D.nanoid()):o==="cuid"?n=n.check(D.cuid()):o==="cuid2"?n=n.check(D.cuid2()):o==="ulid"?n=n.check(D.ulid()):o==="xid"?n=n.check(D.xid()):o==="ksuid"&&(n=n.check(D.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=D.boolean();break}case"null":{i=D.null();break}case"object":{let n={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let l=te(u,t);n[c]=a.has(c)?l:l.optional()}if(e.propertyNames){let c=te(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?te(e.additionalProperties,t):D.any();if(Object.keys(n).length===0){i=D.record(c,u);break}let l=D.object(n).passthrough(),f=D.looseRecord(c,u);i=D.intersection(l,f);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let p of u){let y=te(c[p],t),b=D.string().regex(new RegExp(p));l.push(D.looseRecord(b,y))}let f=[];if(Object.keys(n).length>0&&f.push(D.object(n).passthrough()),f.push(...l),f.length===0)i=D.object({}).passthrough();else if(f.length===1)i=f[0];else{let p=D.intersection(f[0],f[1]);for(let y=2;y<f.length;y++)p=D.intersection(p,f[y]);i=p}break}let s=D.object(n);e.additionalProperties===!1?i=s.strict():typeof e.additionalProperties=="object"?i=s.catchall(te(e.additionalProperties,t)):i=s.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>te(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?te(o,t):void 0;s?i=D.tuple(a).rest(s):i=D.tuple(a),typeof e.minItems=="number"&&(i=i.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(D.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>te(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?te(e.additionalItems,t):void 0;s?i=D.tuple(a).rest(s):i=D.tuple(a),typeof e.minItems=="number"&&(i=i.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(D.maxLength(e.maxItems)))}else if(o!==void 0){let a=te(o,t),s=D.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=D.array(D.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function te(e,t){if(typeof e=="boolean")return e?D.any():D.never();let r=ph(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>te(u,t)),c=D.union(s);r=i?D.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>te(u,t)),c=D.xor(s);r=i?D.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:D.any();else{let s=i?r:te(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)s=D.intersection(s,te(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=D.nullable(r)),e.readOnly===!0&&(r=D.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))_x.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function mh(e,t){if(typeof e=="boolean")return e?D.any():D.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=$x(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Y};return te(r,o)}var nd={};ae(nd,{bigint:()=>wx,boolean:()=>Sx,date:()=>Ix,number:()=>kx,string:()=>bx});function bx(e){return wc(Wt,e)}function kx(e){return Ac(qt,e)}function Sx(e){return Fc(Kt,e)}function wx(e){return Mc(Xt,e)}function Ix(e){return Qc(Mn,e)}V(Br());var Yt={apiUrl:be.string().url().optional(),token:be.string().min(1).optional()};no();var Ox=be.object(Yt).strict(),Ex={apiUrl:pn.API_URL,token:pn.TOKEN};function en(){if(Qt()!=="node")return{};let e={apiUrl:process.env[pn.API_URL]||void 0,token:process.env[pn.TOKEN]||void 0};try{return Ox.parse(e)}catch(t){if(t instanceof be.ZodError){let r=t.issues[0],i=r.path[0],n=(i&&Ex[i])??"SHIP environment configuration";throw O.config(`Invalid ${n}: ${r.message}`)}throw O.config("Invalid environment configuration")}}var G=se(require("fs"),1),dd=se(require("os"),1),nt=se(require("path"),1);M();var ye=e=>e.commands.filter(t=>t.name()!=="help"),qn=e=>ye(e).filter(t=>ye(t).length>0),Dx=e=>e.registeredArguments.some(t=>/^(path|file|dir)/i.test(t.name())),Px=e=>e.options.filter(t=>/<(file|path|dir)\w*>/i.test(t.flags)).map(t=>t.long??""),hh=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),rd=e=>qn(e).flatMap(t=>ye(t).filter(r=>r.options.length>0).map(r=>({path:`${t.name()} ${r.name()}`,cmd:r}))),gh=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),id=e=>[...qn(e).flatMap(t=>ye(t).filter(Dx).map(r=>r.name())),...Px(e)],od=e=>`${e} ship shell completion \u2014 GENERATED from the command tree.
103
103
  ${e} Do not edit: rendered by src/node/cli/completions.ts at install time,
104
104
  ${e} so this file always matches the binary that wrote it.
105
- `;function Ex(e){let t=qn(e).map(i=>` "${i.name()}")
105
+ `;function Tx(e){let t=qn(e).map(i=>` "${i.name()}")
106
106
  if [[ \${COMP_CWORD} -eq 2 ]]; then
107
107
  COMPREPLY=( $(compgen -W "${ye(i).map(n=>n.name()).join(" ")}" -- "\${current_word}") )
108
108
  return
@@ -132,10 +132,10 @@ ${t}
132
132
  if [[ "$current_word" == -* ]]; then
133
133
  local local_flags=""
134
134
  case "\${COMP_WORDS[1]} \${COMP_WORDS[2]}" in
135
- ${rd(e).map(({path:i,cmd:n})=>` "${i}") local_flags="${mh(n).map(o=>o.flag).join(" ")}" ;;`).join(`
135
+ ${rd(e).map(({path:i,cmd:n})=>` "${i}") local_flags="${hh(n).map(o=>o.flag).join(" ")}" ;;`).join(`
136
136
  `)}
137
137
  esac
138
- COMPREPLY=( $(compgen -W "${fh(e).map(i=>i.flag).join(" ")} \${local_flags}" -- "\${current_word}") )
138
+ COMPREPLY=( $(compgen -W "${gh(e).map(i=>i.flag).join(" ")} \${local_flags}" -- "\${current_word}") )
139
139
  return
140
140
  fi
141
141
 
@@ -148,7 +148,7 @@ ${rd(e).map(({path:i,cmd:n})=>` "${i}") local_flags="${mh(n).map(o=>o.flag)
148
148
  }
149
149
 
150
150
  complete -F _ship_completions ship
151
- `}var ro=(e,t)=>`"${e}:${t.replace(/:/g,"\\:").replace(/"/g,'\\"')}"`;function Dx(e){let t=qn(e).map(i=>` "${i.name()}")
151
+ `}var ro=(e,t)=>`"${e}:${t.replace(/:/g,"\\:").replace(/"/g,'\\"')}"`;function Ax(e){let t=qn(e).map(i=>` "${i.name()}")
152
152
  if [[ $CURRENT -eq 3 ]]; then
153
153
  completions=(${ye(i).map(n=>ro(n.name(),n.description())).join(" ")})
154
154
  _describe '${i.name()} commands' completions
@@ -185,9 +185,9 @@ ${t}
185
185
  fi
186
186
 
187
187
  if [[ "$current_word" == -* ]]; then
188
- completions=(${fh(e).map(i=>ro(i.flag,i.description)).join(" ")})
188
+ completions=(${gh(e).map(i=>ro(i.flag,i.description)).join(" ")})
189
189
  case "\${words[2]} \${words[3]}" in
190
- ${rd(e).map(({path:i,cmd:n})=>` "${i}") completions+=(${mh(n).map(o=>ro(o.flag,o.description)).join(" ")}) ;;`).join(`
190
+ ${rd(e).map(({path:i,cmd:n})=>` "${i}") completions+=(${hh(n).map(o=>ro(o.flag,o.description)).join(" ")}) ;;`).join(`
191
191
  `)}
192
192
  esac
193
193
  _describe 'options' completions
@@ -207,10 +207,10 @@ ${rd(e).map(({path:i,cmd:n})=>` "${i}") completions+=(${mh(n).map(o=>ro(o
207
207
  compdef _ship ship
208
208
  fi
209
209
  fi
210
- `}var io=e=>e.replace(/\\/g,"\\\\").replace(/'/g,"\\'");function Tx(e){let t=[];t.push("# Top-level commands");for(let i of ye(e))t.push(`complete -c ship -f -n '__fish_use_subcommand' -a '${i.name()}' -d '${io(i.description())}'`);t.push("","# Global options");for(let i of e.options){let n=i.long?.replace(/^--/,"");if(!n)continue;let o=/<(file|path|dir)\w*>/i.test(i.flags)?" -r":i.required||i.optional?" -x":"";t.push(`complete -c ship -l ${n} -d '${io(i.description)}'${o}`)}for(let i of qn(e)){t.push("",`# ${i.name()} subcommands`);for(let n of ye(i))t.push(`complete -c ship -f -n '__fish_seen_subcommand_from ${i.name()}' -a '${n.name()}' -d '${io(n.description())}'`)}for(let{path:i,cmd:n}of rd(e)){let[o,a]=i.split(" ");t.push("",`# ${i} options`);for(let s of n.options){let c=s.long?.replace(/^--/,"");if(!c)continue;let u=s.required||s.optional?" -x":"";t.push(`complete -c ship -l ${c} -d '${io(s.description)}'${u} -n '__fish_seen_subcommand_from ${o}; and __fish_seen_subcommand_from ${a}'`)}}let r=id(e);return t.push("","# Native file completion where a filesystem argument is expected","function __ship_needs_file"," set -l cmd (commandline -opc)"," if test (count $cmd) -ge 2"," set -l prev $cmd[-1]",` if contains -- "$prev" ${r.map(i=>`'${i}'`).join(" ")}`," return 0"," end"," end"," return 1","end","complete -c ship -F -n '__ship_needs_file'"),`${od("#")}
210
+ `}var io=e=>e.replace(/\\/g,"\\\\").replace(/'/g,"\\'");function Cx(e){let t=[];t.push("# Top-level commands");for(let i of ye(e))t.push(`complete -c ship -f -n '__fish_use_subcommand' -a '${i.name()}' -d '${io(i.description())}'`);t.push("","# Global options");for(let i of e.options){let n=i.long?.replace(/^--/,"");if(!n)continue;let o=/<(file|path|dir)\w*>/i.test(i.flags)?" -r":i.required||i.optional?" -x":"";t.push(`complete -c ship -l ${n} -d '${io(i.description)}'${o}`)}for(let i of qn(e)){t.push("",`# ${i.name()} subcommands`);for(let n of ye(i))t.push(`complete -c ship -f -n '__fish_seen_subcommand_from ${i.name()}' -a '${n.name()}' -d '${io(n.description())}'`)}for(let{path:i,cmd:n}of rd(e)){let[o,a]=i.split(" ");t.push("",`# ${i} options`);for(let s of n.options){let c=s.long?.replace(/^--/,"");if(!c)continue;let u=s.required||s.optional?" -x":"";t.push(`complete -c ship -l ${c} -d '${io(s.description)}'${u} -n '__fish_seen_subcommand_from ${o}; and __fish_seen_subcommand_from ${a}'`)}}let r=id(e);return t.push("","# Native file completion where a filesystem argument is expected","function __ship_needs_file"," set -l cmd (commandline -opc)"," if test (count $cmd) -ge 2"," set -l prev $cmd[-1]",` if contains -- "$prev" ${r.map(i=>`'${i}'`).join(" ")}`," return 0"," end"," end"," return 1","end","complete -c ship -F -n '__ship_needs_file'"),`${od("#")}
211
211
  ${t.join(`
212
212
  `)}
213
- `}function hh(e,t){switch(t){case"bash":return Ex(e);case"zsh":return Dx(e);case"fish":return Tx(e)}}var ud=se(jh(),1);hn();var Uh=["isCreate","claim"],Q=(e,t,r)=>r?t:e(t),nb=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),rb=e=>/^[A-Z][a-z]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e,nn=e=>rb(e).replace(/\.$/,""),Ee=(e,t,r)=>{console.log(t?`${JSON.stringify({success:e},null,2)}
213
+ `}function vh(e,t){switch(t){case"bash":return Tx(e);case"zsh":return Ax(e);case"fish":return Cx(e)}}var ud=se(Nh(),1);hn();var Rh=["isCreate","claim"],Q=(e,t,r)=>r?t:e(t),ob=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ab=e=>/^[A-Z][a-z]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e,nn=e=>ab(e).replace(/\.$/,""),Ee=(e,t,r)=>{console.log(t?`${JSON.stringify({success:e},null,2)}
214
214
  `:`${Q(fn,nn(e),r)}
215
215
  `)},rn=(e,t,r)=>{if(t)console.log(`${JSON.stringify({warning:e},null,2)}
216
216
  `);else{let i=Q(o=>mn(vr(o)),`${Q(Se,"[",r)}warning${Q(Se,"]",r)}`,r),n=Q(vr,nn(e),r);console.log(`${i} ${n}
@@ -218,26 +218,26 @@ ${t.join(`
218
218
  `);else{let i=Q(o=>mn(yr(o)),`${Q(Se,"[",r)}info${Q(Se,"]",r)}`,r),n=Q(yr,nn(e),r);console.log(`${i} ${n}
219
219
  `)}};function on(e,t,r){if(t&&typeof e!="string"){console.error(`${JSON.stringify(e.toResponse(),null,2)}
220
220
  `);return}let i=Q(a=>mn(gr(a)),`${Q(Se,"[",r)}error${Q(Se,"]",r)}`,r),n=typeof e=="string"?e:e.message,o=Q(gr,nn(n),r);console.error(`${i} ${o}
221
- `)}var ib=(e,t="details",r)=>{if(e==null||e===0)return"-";let i=new Date(e*1e3).toISOString().replace(/\.\d{3}Z$/,"Z");return t==="table"?i.replace(/T/,Q(Se,"T",r)).replace(/Z$/,Q(Se,"Z",r)):i},ld=(e,t,r="details",i)=>{if(t===null||Array.isArray(t)&&t.length===0)return"-";if(typeof t=="number"&&(e==="created"||e==="activated"||e==="expires"||e==="linked"||e==="grace"||e==="used"))return ib(t,r,i);if(e==="size"&&typeof t=="number"){let n=t/1048576;return n>=1?`${n.toFixed(1)}Mb`:`${(t/1024).toFixed(1)}Kb`}if(e==="config"||e==="password"){if(typeof t=="boolean")return t?"yes":"no";if(typeof t=="number")return t===1?"yes":"no"}if(nb(t)){let n=Object.entries(t);return n.length===0?"-":n.map(([o,a])=>`${o}=${ld(o,a,r,i)}`).join(", ")}return String(t)},Xn=(e,t,r,i)=>{if(!e||e.length===0)return"";let n=e[0],o=t||Object.keys(n).filter(c=>n[c]!==void 0&&!Uh.includes(c)),a=e.map(c=>{let u=c,l={};return o.forEach(f=>{f in u&&u[f]!==void 0&&(l[f]=ld(f,u[f],"table",r))}),l});return`${(0,ud.default)(a,{columnSplitter:" ",columns:o,config:o.reduce((c,u)=>(c[u]={headingTransform:l=>Q(Ve,i?.[l]||l,r)},c),{})}).split(`
221
+ `)}var sb=(e,t="details",r)=>{if(e==null||e===0)return"-";let i=new Date(e*1e3).toISOString().replace(/\.\d{3}Z$/,"Z");return t==="table"?i.replace(/T/,Q(Se,"T",r)).replace(/Z$/,Q(Se,"Z",r)):i},ld=(e,t,r="details",i)=>{if(t===null||Array.isArray(t)&&t.length===0)return"-";if(typeof t=="number"&&(e==="created"||e==="activated"||e==="expires"||e==="linked"||e==="grace"||e==="used"))return sb(t,r,i);if(e==="size"&&typeof t=="number"){let n=t/1048576;return n>=1?`${n.toFixed(1)}Mb`:`${(t/1024).toFixed(1)}Kb`}if(e==="config"||e==="password"){if(typeof t=="boolean")return t?"yes":"no";if(typeof t=="number")return t===1?"yes":"no"}if(ob(t)){let n=Object.entries(t);return n.length===0?"-":n.map(([o,a])=>`${o}=${ld(o,a,r,i)}`).join(", ")}return String(t)},Xn=(e,t,r,i)=>{if(!e||e.length===0)return"";let n=e[0],o=t||Object.keys(n).filter(c=>n[c]!==void 0&&!Rh.includes(c)),a=e.map(c=>{let u=c,l={};return o.forEach(f=>{f in u&&u[f]!==void 0&&(l[f]=ld(f,u[f],"table",r))}),l});return`${(0,ud.default)(a,{columnSplitter:" ",columns:o,config:o.reduce((c,u)=>(c[u]={headingTransform:l=>Q(Ve,i?.[l]||l,r)},c),{})}).split(`
222
222
  `).map(c=>c.replace(/\0/g,"").replace(/\s+$/,"")).join(`
223
223
  `)}
224
- `},tt=(e,t)=>{let r=Object.entries(e).filter(([o,a])=>Uh.includes(o)?!1:a!==void 0);if(r.length===0)return"";let i=r.map(([o,a])=>({property:`${o}:`,value:ld(o,a,"details",t)}));return`${(0,ud.default)(i,{columnSplitter:" ",showHeaders:!1,config:{property:{dataTransform:o=>Q(Ve,o,t)}}}).split(`
224
+ `},tt=(e,t)=>{let r=Object.entries(e).filter(([o,a])=>Rh.includes(o)?!1:a!==void 0);if(r.length===0)return"";let i=r.map(([o,a])=>({property:`${o}:`,value:ld(o,a,"details",t)}));return`${(0,ud.default)(i,{columnSplitter:" ",showHeaders:!1,config:{property:{dataTransform:o=>Q(Ve,o,t)}}}).split(`
225
225
  `).map(o=>o.replace(/\0/g,"")).join(`
226
226
  `)}
227
- `};function Nh(){let e=process.env.SHELL||"";return e.includes("bash")?"bash":e.includes("zsh")?"zsh":e.includes("fish")?"fish":null}function Rh(e,t){switch(e){case"bash":return{completionFile:nt.join(t,".ship_completion.bash"),profileFile:nt.join(t,".bash_profile")};case"zsh":return{completionFile:nt.join(t,".ship_completion.zsh"),profileFile:nt.join(t,".zshrc")};case"fish":return{completionFile:nt.join(t,".config/fish/completions/ship.fish"),profileFile:null}}}function Lh(e,t={}){let{json:r,noColor:i}=t,n=Nh(),o=dd.homedir();if(!n)throw O.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let a=Rh(n,o),s=hh(e,n);try{if(n==="fish"){let u=nt.dirname(a.completionFile);G.existsSync(u)||G.mkdirSync(u,{recursive:!0}),G.writeFileSync(a.completionFile,s),Ee("fish completion installed successfully",r,i),et("please restart your shell to apply the changes",r,i);return}G.writeFileSync(a.completionFile,s);let c=`# ship
227
+ `};function Lh(){let e=process.env.SHELL||"";return e.includes("bash")?"bash":e.includes("zsh")?"zsh":e.includes("fish")?"fish":null}function Fh(e,t){switch(e){case"bash":return{completionFile:nt.join(t,".ship_completion.bash"),profileFile:nt.join(t,".bash_profile")};case"zsh":return{completionFile:nt.join(t,".ship_completion.zsh"),profileFile:nt.join(t,".zshrc")};case"fish":return{completionFile:nt.join(t,".config/fish/completions/ship.fish"),profileFile:null}}}function Zh(e,t={}){let{json:r,noColor:i}=t,n=Lh(),o=dd.homedir();if(!n)throw O.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let a=Fh(n,o),s=vh(e,n);try{if(n==="fish"){let u=nt.dirname(a.completionFile);G.existsSync(u)||G.mkdirSync(u,{recursive:!0}),G.writeFileSync(a.completionFile,s),Ee("fish completion installed successfully",r,i),et("please restart your shell to apply the changes",r,i);return}G.writeFileSync(a.completionFile,s);let c=`# ship
228
228
  source '${a.completionFile}'
229
229
  # ship end
230
230
  `;if(a.profileFile){if(G.existsSync(a.profileFile)){let u=G.readFileSync(a.profileFile,"utf-8");if(!u.includes("# ship")||!u.includes("# ship end")){let l=u.length>0&&!u.endsWith(`
231
231
  `)?`
232
- `:"";G.appendFileSync(a.profileFile,l+c)}}else G.writeFileSync(a.profileFile,c);Ee(`completion script installed for ${n}`,r,i),rn(`run "source ${a.profileFile}" or restart your shell`,r,i)}}catch(c){if(ce(c))throw c;let u=c instanceof Error?c.message:String(c);throw O.file(`could not install completion script: ${u}`)}}function Fh(e={}){let{json:t,noColor:r}=e,i=Nh(),n=dd.homedir();if(!i)throw O.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let o=Rh(i,n);try{if(i==="fish"){G.existsSync(o.completionFile)?(G.unlinkSync(o.completionFile),Ee("fish completion uninstalled successfully",t,r)):rn("fish completion was not installed",t,r),et("please restart your shell to apply the changes",t,r);return}if(G.existsSync(o.completionFile)&&G.unlinkSync(o.completionFile),!o.profileFile)return;if(!G.existsSync(o.profileFile))throw O.config("profile file not found");let s=G.readFileSync(o.profileFile,"utf-8").split(`
232
+ `:"";G.appendFileSync(a.profileFile,l+c)}}else G.writeFileSync(a.profileFile,c);Ee(`completion script installed for ${n}`,r,i),rn(`run "source ${a.profileFile}" or restart your shell`,r,i)}}catch(c){if(ce(c))throw c;let u=c instanceof Error?c.message:String(c);throw O.file(`could not install completion script: ${u}`)}}function Mh(e={}){let{json:t,noColor:r}=e,i=Lh(),n=dd.homedir();if(!i)throw O.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let o=Fh(i,n);try{if(i==="fish"){G.existsSync(o.completionFile)?(G.unlinkSync(o.completionFile),Ee("fish completion uninstalled successfully",t,r)):rn("fish completion was not installed",t,r),et("please restart your shell to apply the changes",t,r);return}if(G.existsSync(o.completionFile)&&G.unlinkSync(o.completionFile),!o.profileFile)return;if(!G.existsSync(o.profileFile))throw O.config("profile file not found");let s=G.readFileSync(o.profileFile,"utf-8").split(`
233
233
  `),c=[],u=0,l=!1;for(;u<s.length;)if(s[u].trim()==="# ship"){for(l=!0,u++;u<s.length&&s[u].trim()!=="# ship end";)u++;u<s.length&&u++}else c.push(s[u]),u++;if(l)G.writeFileSync(o.profileFile,c.join(`
234
- `)),Ee(`completion script uninstalled for ${i}`,t,r),rn(`run "source ${o.profileFile}" or restart your shell`,t,r);else throw O.config("completion was not found in profile")}catch(a){if(ce(a))throw a;let s=a instanceof Error?a.message:String(a);throw O.file(`could not uninstall completion script: ${s}`)}}var an=require("fs"),Gh=require("os"),Hh=require("path"),Wh=require("readline/promises");B();hn();var co=require("fs"),Vh=require("os"),Bh=require("path");B();var ob=be.object(Yt).strict(),ab=()=>(0,Bh.join)((0,Vh.homedir)(),".shiprc"),Zh=e=>e instanceof Error?e.message:String(e);function so(e){let t;try{t=(0,co.readFileSync)(e,"utf-8")}catch(i){throw O.config(`Failed to read ship config (${e}): ${Zh(i)}`)}if(!t.trim())return{};let r;try{r=JSON.parse(t)}catch(i){throw O.config(`Invalid config in ${e}: ${Zh(i)}`)}if(r===null||typeof r!="object"||Array.isArray(r))throw O.config(`Invalid config in ${e}: expected a JSON object`);return r}function Mh(e,t){try{return ob.parse(e)}catch(r){if(r instanceof be.ZodError){let i=r.issues[0];if(i.code==="unrecognized_keys"){let o=i.keys.filter(a=>a==="apiKey"||a==="deployToken");if(o.length>0){let a=o.map(s=>`"${s}"`).join(" and ");throw O.config(`Invalid config in ${t}: ${a} ${o.length>1?"are":"is"} no longer supported \u2014 the key is now "token". Run \`ship config\` to rewrite it.`)}}let n=i.path.length>0?` at ${i.path.join(".")}`:"";throw O.config(`Invalid config in ${t}${n}: ${i.message}`)}throw O.config(`Invalid config in ${t}`)}}function uo(e){let t=e||void 0;if(t)return Mh(so(t),t);let r=ab();return(0,co.existsSync)(r)?Mh(so(r),r):{}}var pd=Object.keys(Yt),sb=()=>(0,Hh.join)((0,Gh.homedir)(),".shiprc"),md=ln.HINT_LENGTH;function cb(e){let r=(e.startsWith(dn.PREFIX)?dn.PREFIX:ln.PREFIX).length+md;return e.length<r+md+1?"...":`${e.slice(0,r)}...${e.slice(-md)}`}function ub(e){if(!(0,an.existsSync)(e))return{};try{return so(e)}catch(t){throw ce(t)?O.config(`${t.message} \u2014 the file was left unchanged`):t}}async function Jh(e={}){let{noColor:t}=e,r=e.configFile||sb(),i=p=>t?p:Ve(p),n=p=>t?p:fn(p),o=ub(r),a=typeof o.token=="string"?o.token:void 0,s=Object.keys(o).filter(p=>!pd.includes(p)),c=(0,Wh.createInterface)({input:process.stdin,output:process.stdout});console.log(""),console.log(` ${i("Create a free API key at")} ${lp}`),console.log("");let u=a?` Token (${i(cb(a))}): `:" Token: ",l;try{l=(await c.question(u)).trim()}finally{c.close()}l&&it(l);let f={};for(let p of pd)o[p]!==void 0&&(f[p]=o[p]);l&&(f.token=l),s.length>0&&rn(`dropped ${s.map(p=>`"${p}"`).join(", ")} \u2014 a ship config holds only ${pd.join(" and ")}`,!1,t),(0,an.writeFileSync)(r,`${JSON.stringify(f,null,2)}
234
+ `)),Ee(`completion script uninstalled for ${i}`,t,r),rn(`run "source ${o.profileFile}" or restart your shell`,t,r);else throw O.config("completion was not found in profile")}catch(a){if(ce(a))throw a;let s=a instanceof Error?a.message:String(a);throw O.file(`could not uninstall completion script: ${s}`)}}var an=require("fs"),Wh=require("os"),Jh=require("path"),qh=require("readline/promises");M();hn();var co=require("fs"),Gh=require("os"),Hh=require("path");M();var cb=be.object(Yt).strict(),ub=()=>(0,Hh.join)((0,Gh.homedir)(),".shiprc"),Vh=e=>e instanceof Error?e.message:String(e);function so(e){let t;try{t=(0,co.readFileSync)(e,"utf-8")}catch(i){throw O.config(`Failed to read ship config (${e}): ${Vh(i)}`)}if(!t.trim())return{};let r;try{r=JSON.parse(t)}catch(i){throw O.config(`Invalid config in ${e}: ${Vh(i)}`)}if(r===null||typeof r!="object"||Array.isArray(r))throw O.config(`Invalid config in ${e}: expected a JSON object`);return r}function Bh(e,t){try{return cb.parse(e)}catch(r){if(r instanceof be.ZodError){let i=r.issues[0];if(i.code==="unrecognized_keys"){let o=i.keys.filter(a=>a==="apiKey"||a==="deployToken");if(o.length>0){let a=o.map(s=>`"${s}"`).join(" and ");throw O.config(`Invalid config in ${t}: ${a} ${o.length>1?"are":"is"} no longer supported \u2014 the key is now "token". Run \`ship config\` to rewrite it.`)}}let n=i.path.length>0?` at ${i.path.join(".")}`:"";throw O.config(`Invalid config in ${t}${n}: ${i.message}`)}throw O.config(`Invalid config in ${t}`)}}function uo(e){let t=e||void 0;if(t)return Bh(so(t),t);let r=ub();return(0,co.existsSync)(r)?Bh(so(r),r):{}}var pd=Object.keys(Yt),lb=()=>(0,Jh.join)((0,Wh.homedir)(),".shiprc"),md=ln.HINT_LENGTH;function db(e){let r=(e.startsWith(dn.PREFIX)?dn.PREFIX:ln.PREFIX).length+md;return e.length<r+md+1?"...":`${e.slice(0,r)}...${e.slice(-md)}`}function pb(e){if(!(0,an.existsSync)(e))return{};try{return so(e)}catch(t){throw ce(t)?O.config(`${t.message} \u2014 the file was left unchanged`):t}}async function Kh(e={}){let{noColor:t}=e,r=e.configFile||lb(),i=p=>t?p:Ve(p),n=p=>t?p:fn(p),o=pb(r),a=typeof o.token=="string"?o.token:void 0,s=Object.keys(o).filter(p=>!pd.includes(p)),c=(0,qh.createInterface)({input:process.stdin,output:process.stdout});console.log(""),console.log(` ${i("Create a free API key at")} ${pp}`),console.log("");let u=a?` Token (${i(db(a))}): `:" Token: ",l;try{l=(await c.question(u)).trim()}finally{c.close()}l&&it(l);let f={};for(let p of pd)o[p]!==void 0&&(f[p]=o[p]);l&&(f.token=l),s.length>0&&rn(`dropped ${s.map(p=>`"${p}"`).join(", ")} \u2014 a ship config holds only ${pd.join(" and ")}`,!1,t),(0,an.writeFileSync)(r,`${JSON.stringify(f,null,2)}
235
235
  `,{mode:384}),(0,an.chmodSync)(r,384),console.log(`
236
236
  ${n("saved to")} ${i(r)}
237
- `)}B();B();B();var lo=class{constructor(){this.handlers=new Map}on(t,r){this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t)?.add(r)}off(t,r){let i=this.handlers.get(t);i&&(i.delete(r),i.size===0&&this.handlers.delete(t))}emit(t,...r){let i=this.handlers.get(t);if(!i)return;let n=Array.from(i);for(let o of n)try{o(...r)}catch(a){i.delete(o),t!=="error"&&setTimeout(()=>{let s=a instanceof Error?a:new Error(String(a));this.emit("error",s,String(t))},0)}}};B();B();function Yn(e){if(e==null)return;if(e.length===0)return e;if(e.length>Me.MAX_COUNT)throw O.validation(`Maximum ${Me.MAX_COUNT} labels allowed`);let t=e.map((i,n)=>{if(typeof i!="string")throw O.validation(`Label at index ${n} must be a string`);let o=i.trim().toLowerCase();if(o.length<Me.MIN_LENGTH)throw O.validation(`Labels must be at least ${Me.MIN_LENGTH} characters long`);if(o.length>Me.MAX_LENGTH)throw O.validation(`Labels must be no more than ${Me.MAX_LENGTH} characters long`);if(!dp.test(o))throw O.validation(`Labels must start and end with alphanumeric characters, with optional separators (${Me.SEPARATORS}) between segments`);return o}),r=[...new Set(t)];if(r.length!==t.length)throw O.validation("Duplicate labels are not allowed");return r}async function qh(e){let t=e.find(n=>n.path===Ae||n.path===`/${Ae}`);if(!t)return;let r=t.content,i=typeof r.text=="function"?await r.text():t.content.toString("utf8");op(i)}var lb=3e4,db=2,pb=300,mb=2e3,fb=new Set([500,502,503,504]);function hb(e,t){return new Promise((r,i)=>{if(t?.aborted){i(t.reason);return}let n=()=>{clearTimeout(a),t?.removeEventListener("abort",o)},o=()=>{n(),i(t?.reason)},a=setTimeout(()=>{n(),r()},e);t?.addEventListener("abort",o)})}var Kh=3e5,gb=3e5,vb=Kh+gb,yb="sdk";function fd(e){let t=new URLSearchParams;e?.limit!==void 0&&t.set("limit",String(e.limit)),e?.cursor!==void 0&&t.set("cursor",e.cursor);let r=t.toString();return r?`?${r}`:""}var po=class extends lo{constructor(r){super();this.globalHeaders={};this.apiUrl=r.apiUrl||up,this.getAuthHeadersCallback=r.getAuthHeaders,this.session=r.session??!1,this.caller=r.caller,this.timeout=r.timeout??lb,this.maxRetries=Math.max(0,r.maxRetries??db),this.deployTimeout=r.timeout??Kh,this.deployBuildTimeout=r.timeout??vb,this.fetch=r.fetch??globalThis.fetch.bind(globalThis),this.createDeployBody=r.createDeployBody,this.deployEndpoint=r.deployEndpoint||Z.DEPLOYMENTS}setGlobalHeaders(r){this.globalHeaders=r}async executeRequest(r,i,n,o=this.timeout){for(let a=0;;a++)try{return await this.attemptOnce(r,i,n,o)}catch(s){let c=O.fromFetchError(s,n);if(a>=this.maxRetries||!this.isRetryable(c,i))throw c;let u=Math.min(mb,pb*2**a);try{await hb(Math.random()*u,i.signal)}catch(l){let f=O.fromFetchError(l,n);throw this.emit("error",f,r),f}}}isRetryable(r,i){if(i.signal?.aborted||r.isType(A.Maintenance)||r.isType(A.Cancelled)||!(r.isNetworkError()||r.status!==void 0&&fb.has(r.status)))return!1;let o=(i.method??"GET").toUpperCase();return o==="GET"||o==="HEAD"?!0:o==="PUT"||o==="DELETE"?!1:this.hasIdempotencyKey(i.headers)}hasIdempotencyKey(r){if(!r)return!1;let i=un.HEADER.toLowerCase(),n=!1,o=a=>{a.toLowerCase()===i&&(n=!0)};if(r instanceof Headers)r.forEach((a,s)=>{o(s)});else if(Array.isArray(r))for(let[a]of r)o(a);else for(let a of Object.keys(r))o(a);return n}async attemptOnce(r,i,n,o=this.timeout){let a=()=>{};try{let s=await this.mergeHeaders(i.headers),c=this.createTimeoutSignal(i.signal,o);a=c.cleanup;let u={...i,headers:s,credentials:this.session&&!s.Authorization?"include":void 0,signal:c.signal};this.emit("request",r,u);let l=await this.fetch(r,u);if(a(),!l.ok)throw await O.fromHttpResponse(l,n);return this.emit("response",this.safeClone(l),r),{data:await this.parseResponse(this.safeClone(l)),status:l.status}}catch(s){a();let c=O.fromFetchError(s,n);throw this.emit("error",c,r),c}}async request(r,i,n,o){let{data:a}=await this.executeRequest(r,i,n,o);return a}async requestWithStatus(r,i,n){return this.executeRequest(r,i,n)}async mergeHeaders(r={}){return{...this.globalHeaders,...this.caller?{[cn.HEADER]:this.caller}:{},...await this.getAuthHeadersCallback(),...r}}createTimeoutSignal(r,i=this.timeout){let n=new AbortController,o=setTimeout(()=>n.abort(new DOMException(`Timed out after ${i}ms`,"TimeoutError")),i),a=r?()=>n.abort(r.reason):void 0;return r&&a&&(r.addEventListener("abort",a),r.aborted&&n.abort(r.reason)),{signal:n.signal,cleanup:()=>{clearTimeout(o),r&&a&&r.removeEventListener("abort",a)}}}safeClone(r){try{return r.clone()}catch{return r}}async parseResponse(r){if(!(r.headers.get("Content-Length")==="0"||r.status===204))return r.json()}async deploy(r,i={}){if(!r.length)throw O.business("No files to deploy");for(let u of r)if(!u.md5)throw O.file(`MD5 checksum missing for file: ${u.path}`,{filePath:u.path});Yo(i.password);let n=np(i.idempotencyKey),o=Yn(i.labels);await qh(r);let a=i.build||i.prerender||i.spa?{build:i.build,prerender:i.prerender,spa:i.spa}:void 0,{body:s,headers:c}=await this.createDeployBody(r,{labels:o,via:i.via??yb,password:i.password,flags:a,captcha:i.captcha});return this.request(`${this.apiUrl}${this.deployEndpoint}`,{method:"POST",body:s,headers:n?{...c,[un.HEADER]:n}:c,signal:i.signal||null},"Deploy",i.build||i.prerender?this.deployBuildTimeout:this.deployTimeout)}async listDeployments(r){return this.request(`${this.apiUrl}${Z.DEPLOYMENTS}${fd(r)}`,{method:"GET"},"List deployments")}async getDeployment(r){return this.request(`${this.apiUrl}${Z.DEPLOYMENT(encodeURIComponent(r))}`,{method:"GET"},"Get deployment")}async updateDeploymentLabels(r,i){let n=Yn(i);return this.request(`${this.apiUrl}${Z.DEPLOYMENT(encodeURIComponent(r))}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({labels:n})},"Update deployment labels")}async deleteDeployment(r){return this.request(`${this.apiUrl}${Z.DEPLOYMENT(encodeURIComponent(r))}`,{method:"DELETE"},"Delete deployment")}async setDomain(r,i,n){let o=Yn(n),a={};i&&(a.deployment=i),o!==void 0&&(a.labels=o);let{data:s,status:c}=await this.requestWithStatus(`${this.apiUrl}${Z.DOMAIN(encodeURIComponent(r))}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},"Set domain");return{...s,isCreate:c===201}}async listDomains(r){return this.request(`${this.apiUrl}${Z.DOMAINS}${fd(r)}`,{method:"GET"},"List domains")}async getDomain(r){return this.request(`${this.apiUrl}${Z.DOMAIN(encodeURIComponent(r))}`,{method:"GET"},"Get domain")}async deleteDomain(r){return this.request(`${this.apiUrl}${Z.DOMAIN(encodeURIComponent(r))}`,{method:"DELETE"},"Delete domain")}async verifyDomain(r){return this.request(`${this.apiUrl}${Z.DOMAIN_VERIFY(encodeURIComponent(r))}`,{method:"POST"},"Verify domain")}async getDomainDns(r){return this.request(`${this.apiUrl}${Z.DOMAIN_DNS(encodeURIComponent(r))}`,{method:"GET"},"Get domain DNS")}async getDomainRecords(r){return this.request(`${this.apiUrl}${Z.DOMAIN_RECORDS(encodeURIComponent(r))}`,{method:"GET"},"Get domain records")}async getDomainShare(r){return this.request(`${this.apiUrl}${Z.DOMAIN_SHARE(encodeURIComponent(r))}`,{method:"GET"},"Get domain share")}async validateDomain(r){return this.request(`${this.apiUrl}${Z.DOMAINS_VALIDATE}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:r})},"Validate domain")}async createToken(r,i){let n=Yn(i),o={};return r!==void 0&&(o.ttl=r),n!==void 0&&(o.labels=n),this.request(`${this.apiUrl}${Z.TOKENS}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)},"Create token")}async listTokens(r){return this.request(`${this.apiUrl}${Z.TOKENS}${fd(r)}`,{method:"GET"},"List tokens")}async deleteToken(r){return this.request(`${this.apiUrl}${Z.TOKEN(encodeURIComponent(r))}`,{method:"DELETE"},"Delete token")}async getToken(r){return this.request(`${this.apiUrl}${Z.TOKEN(encodeURIComponent(r))}`,{method:"GET"},"Get token")}async getAccount(){return this.request(`${this.apiUrl}${Z.ACCOUNT}`,{method:"GET"},"Get account")}async getLimits(){return this.request(`${this.apiUrl}${Z.LIMITS}`,{method:"GET"},"Get limits")}async ping(){return this.request(`${this.apiUrl}${Z.PING}`,{method:"GET"},"Ping")}async checkSPA(r,i={}){let n=r.find(c=>c.path===hr.INDEX_FILE||c.path===`/${hr.INDEX_FILE}`);if(!n||n.size>hr.MAX_INDEX_BYTES)return!1;let o;if(typeof Buffer<"u"&&Buffer.isBuffer(n.content))o=n.content.toString("utf-8");else if(typeof Blob<"u"&&n.content instanceof Blob)o=await n.content.text();else if(typeof File<"u"&&n.content instanceof File)o=await n.content.text();else return!1;let a={files:r.map(c=>c.path),index:o};return(await this.request(`${this.apiUrl}${Z.SPA_CHECK}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},"SPA check")).isSPA}};B();B();hd();async function bb(){let e=JSON.stringify(ip,null,2),t;typeof Buffer<"u"?t=Buffer.from(e,"utf-8"):t=new Blob([e],{type:"application/json"});let{md5:r}=await mo(t);return{path:Ae,content:t,size:e.length,md5:r}}async function eg(e,t,r){if(r.spaDetect===!1||r.spa||r.build||r.prerender||e.some(i=>i.path===Ae))return e;try{if(await t.checkSPA(e,r)){let n=await bb();return[...e,n]}}catch{}return e}function tg(e){let{getApi:t,ensureInit:r,processInput:i}=e;return{upload:async(n,o={})=>{if(await r(),!i)throw O.config("processInput function is not provided.");let a=t(),s=await i(n,o);return s=await eg(s,a,o),a.deploy(s,o)},list:async n=>(await r(),t().listDeployments(n)),get:async n=>(await r(),t().getDeployment(n)),set:async(n,o)=>(await r(),t().updateDeploymentLabels(n,o.labels)),delete:async n=>(await r(),t().deleteDeployment(n))}}function ng(e){let{getApi:t,ensureInit:r}=e;return{set:async(i,n={})=>(await r(),t().setDomain(i,n.deployment,n.labels)),list:async i=>(await r(),t().listDomains(i)),get:async i=>(await r(),t().getDomain(i)),delete:async i=>(await r(),t().deleteDomain(i)),verify:async i=>(await r(),t().verifyDomain(i)),validate:async i=>(await r(),t().validateDomain(i)),dns:async i=>(await r(),t().getDomainDns(i)),records:async i=>(await r(),t().getDomainRecords(i)),share:async i=>(await r(),t().getDomainShare(i))}}function rg(e){let{getApi:t,ensureInit:r}=e;return{get:async()=>(await r(),t().getAccount())}}function ig(e){let{getApi:t,ensureInit:r}=e;return{create:async(i={})=>(await r(),t().createToken(i.ttl,i.labels)),list:async i=>(await r(),t().listTokens(i)),get:async i=>(await r(),t().getToken(i)),delete:async i=>(await r(),t().deleteToken(i))}}var fo=class{constructor(t={}){this.initPromise=null;this.platformLimits=null;this.credential=null;if(t={...t,apiUrl:t.apiUrl||void 0,token:t.token||void 0,caller:t.caller||void 0},this.clientOptions=t,t.caller!==void 0&&sp(t.caller),t.token&&t.session)throw O.config("Provide either `token` or `session`, not both.");typeof t.token=="string"?(it(t.token),this.credential=t.token):t.token&&(this.credential=t.token),this.http=new po({...t,getAuthHeaders:()=>this.getAuthHeaders(),createDeployBody:this.getDeployBodyCreator()});let r={getApi:()=>this.http,ensureInit:()=>this.ensureInitialized()};this.deployments=tg({...r,processInput:(i,n)=>this.processInput(i,n)}),this.domains=ng(r),this.account=rg(r),this.tokens=ig(r)}async ensureInitialized(){return this.initPromise||(this.initPromise=this.fetchPlatformLimits()),this.initPromise}async fetchPlatformLimits(){try{this.platformLimits=await this.http.getLimits()}catch(t){throw this.initPromise=null,t}}async ping(){return await this.ensureInitialized(),this.http.ping()}async deploy(t,r){return this.deployments.upload(t,r)}async whoami(){return this.account.get()}async getLimits(){return this.platformLimits?this.platformLimits:(await this.ensureInitialized(),this.platformLimits)}on(t,r){this.http.on(t,r)}off(t,r){this.http.off(t,r)}setHeaders(t){this.http.setGlobalHeaders(t)}clearHeaders(){this.http.setGlobalHeaders({})}setToken(t){if(this.clientOptions.session)throw O.config("Provide either `token` or `session`, not both.");if(typeof t=="string"){if(!t)throw O.business("Invalid token provided. Token must be a non-empty string.");it(t),this.credential=t;return}if(typeof t!="function")throw O.business("Invalid token provided. Token must be a non-empty string or a provider function.");this.credential=t}async getAuthHeaders(){if(this.credential===null)return{};let t=typeof this.credential=="function"?await this.credential():this.credential;if(!t)throw O.authentication("Token provider returned no token.");if(typeof t!="string")throw O.authentication("Token provider returned a non-string value.");return{Authorization:`Bearer ${t}`}}};no();B();async function kg(e,t={}){let{FormData:r,File:i}=await Promise.resolve().then(()=>(ug(),cg)),{FormDataEncoder:n}=await Promise.resolve().then(()=>(bg(),xg)),{labels:o,via:a,password:s,flags:c,captcha:u}=t,l=new r,f=[];for(let E of e){if(!Buffer.isBuffer(E.content)&&!(typeof Blob<"u"&&E.content instanceof Blob))throw O.file(`Unsupported file.content type for Node.js: ${E.path}`,{filePath:E.path});if(!E.md5)throw O.file(`File missing md5 checksum: ${E.path}`,{filePath:E.path});let I=new i([E.content],E.path,{type:"application/octet-stream"});l.append(ke.FILES,I),f.push(E.md5)}l.append(ke.CHECKSUMS,JSON.stringify(f)),o&&o.length>0&&l.append(ke.LABELS,JSON.stringify(o)),a&&l.append(ke.VIA,a),s&&l.append(ke.PASSWORD,s),c?.build&&l.append(ke.BUILD,"true"),c?.prerender&&l.append(ke.PRERENDER,"true"),c?.spa&&l.append(ke.SPA,"true"),u&&l.append(ke.CAPTCHA,u);let p=new n(l),y=[];for await(let E of p.encode())y.push(Buffer.from(E));let b=Buffer.concat(y);return{body:b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength),headers:{"Content-Type":p.contentType,"Content-Length":Buffer.byteLength(b).toString()}}}var wo=class extends fo{constructor(t={}){if(Qt()!=="node")throw O.business("Node.js Ship class can only be used in Node.js environment.");let r=en();super({...t,apiUrl:t.apiUrl||r.apiUrl,token:t.token||(t.session?void 0:r.token)})}async deploy(t,r){return super.deploy(t,r)}async processInput(t,r){let i=typeof t=="string"?[t]:t;if(!Array.isArray(i)||!i.every(o=>typeof o=="string"))throw O.business("Invalid input type for Node.js environment. Expected string or string[].");if(i.length===0)throw O.business("No files to deploy.");let{processFilesForNode:n}=await Promise.resolve().then(()=>(Rg(),Ng));return n(i,r,this.platformLimits??void 0)}getDeployBodyCreator(){return kg}};function Id(e,t,r){return{apiUrl:e.apiUrl||t.apiUrl||r.apiUrl,token:e.token||t.token||r.token}}function Lg(e={}){return new wo(Id(e,en(),uo(e.config)))}B();function Fg(e){return ce(e)?e:e instanceof Error?O.business(e.message):O.business(String(e??"Unknown error"))}var Od="pass --token, set SHIP_TOKEN, or run ship config";function Zg(e,t){return e.isAuthError()?t?.token?"authentication failed: invalid or expired token":`authentication required: ${Od}`:e.isNetworkError()?"network error: could not reach the API. check your internet connection":e.isType(A.Maintenance)?`${e.message.replace(/\.$/,"")} \u2014 check https://status.shipstatic.com`:e.isClientError()?e.message:`${e.message.replace(/\.$/,"")} \u2014 try again, or check https://status.shipstatic.com`}B();var Dd=(e,t)=>`https://setup.shipstatic.com/${e}/${t}`;function zd(e,t){return e[t]}var Wb={[ep.DELETING]:"served until cleanup completes"},Jb={upload:"uploaded",create:"created",delete:"deleted",verify:"verification queued"};function Bg(e,t){let{operation:r,resource:i}=t;if(!i||e===null||typeof e!="object")return null;let n=r==="set"?zd(e,"isCreate")?"created":"updated":Jb[r];if(!n)return null;let o=zd(e,i);if(typeof o!="string")return null;let a=zd(e,"status"),s=typeof a=="string"?Wb[a]:void 0;return`${o} ${i} ${s?`${a} \u2014 ${s}`:n}`}function Gg(e,t,r){if(r.json||r.quiet)return;let i=Bg(e,t);i&&Ee(i,!1,r.noColor)}function qb(e,t){let{noColor:r}=t;if(e.deployments.length===0){console.log("no deployments found"),console.log();return}let i=["deployment","labels","files","size","created","via"];console.log(Xn(e.deployments,i,r)),Td(e.cursor,r)}function Td(e,t){e&&et(`more results available \u2014 rerun with --cursor ${e}`,!1,t)}function Kb(e,t){let{noColor:r}=t;if(e.domains.length===0){console.log("no domains found"),console.log();return}let i=["domain","deployment","labels","linked","links","created"];console.log(Xn(e.domains,i,r)),Td(e.cursor,r)}function Mg(e,t){let{noColor:r}=t,{_dnsRecords:i,_shareHash:n,isCreate:o,...a}=e;i&&i.length>0&&(console.log(),et("DNS records to configure:",!1,r),i.forEach(s=>{console.log(` ${s.type}: ${s.name} \u2192 ${s.value}`)})),n&&(console.log(),et(`Setup instructions: ${Dd(n,e.domain)}`,!1,r)),console.log(tt(a,r))}function Ed(e,t){let{noColor:r}=t;console.log(tt(e,r));let i=e.claim;if(i){let n=e.expires?Math.round((e.expires-e.created)/86400):null;console.log(`IMPORTANT: this deployment${n?` expires in ${n} day${n!==1?"s":""}`:" will expire"}, claim it to keep permanently:
237
+ `)}M();M();M();var lo=class{constructor(){this.handlers=new Map}on(t,r){this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t)?.add(r)}off(t,r){let i=this.handlers.get(t);i&&(i.delete(r),i.size===0&&this.handlers.delete(t))}emit(t,...r){let i=this.handlers.get(t);if(!i)return;let n=Array.from(i);for(let o of n)try{o(...r)}catch(a){i.delete(o),t!=="error"&&setTimeout(()=>{let s=a instanceof Error?a:new Error(String(a));this.emit("error",s,String(t))},0)}}};M();M();function Yn(e){if(e==null)return;if(e.length===0)return e;if(e.length>Me.MAX_COUNT)throw O.validation(`Maximum ${Me.MAX_COUNT} labels allowed`);let t=e.map((i,n)=>{if(typeof i!="string")throw O.validation(`Label at index ${n} must be a string`);let o=i.trim().toLowerCase();if(o.length<Me.MIN_LENGTH)throw O.validation(`Labels must be at least ${Me.MIN_LENGTH} characters long`);if(o.length>Me.MAX_LENGTH)throw O.validation(`Labels must be no more than ${Me.MAX_LENGTH} characters long`);if(!mp.test(o))throw O.validation(`Labels must start and end with alphanumeric characters, with optional separators (${Me.SEPARATORS}) between segments`);return o}),r=[...new Set(t)];if(r.length!==t.length)throw O.validation("Duplicate labels are not allowed");return r}async function Xh(e){let t=e.find(n=>n.path===Ae||n.path===`/${Ae}`);if(!t)return;let r=t.content,i=typeof r.text=="function"?await r.text():t.content.toString("utf8");sp(i)}var mb=3e4,fb=2,hb=300,gb=2e3,vb=new Set([500,502,503,504]);function yb(e,t){return new Promise((r,i)=>{if(t?.aborted){i(t.reason);return}let n=()=>{clearTimeout(a),t?.removeEventListener("abort",o)},o=()=>{n(),i(t?.reason)},a=setTimeout(()=>{n(),r()},e);t?.addEventListener("abort",o)})}var Yh=3e5,_b=3e5,$b=Yh+_b,xb="sdk";function fd(e){let t=new URLSearchParams;e?.limit!==void 0&&t.set("limit",String(e.limit)),e?.cursor!==void 0&&t.set("cursor",e.cursor);let r=t.toString();return r?`?${r}`:""}var po=class extends lo{constructor(r){super();this.globalHeaders={};this.apiUrl=r.apiUrl||dp,this.getAuthHeadersCallback=r.getAuthHeaders,this.session=r.session??!1,this.caller=r.caller,this.timeout=r.timeout??mb,this.maxRetries=Math.max(0,r.maxRetries??fb),this.deployTimeout=r.timeout??Yh,this.deployBuildTimeout=r.timeout??$b,this.fetch=r.fetch??globalThis.fetch.bind(globalThis),this.createDeployBody=r.createDeployBody,this.deployEndpoint=r.deployEndpoint||Z.DEPLOYMENTS}setGlobalHeaders(r){this.globalHeaders=r}async executeRequest(r,i,n,o=this.timeout){for(let a=0;;a++)try{return await this.attemptOnce(r,i,n,o)}catch(s){let c=O.fromFetchError(s,n);if(a>=this.maxRetries||!this.isRetryable(c,i))throw c;let u=Math.min(gb,hb*2**a);try{await yb(Math.random()*u,i.signal)}catch(l){let f=O.fromFetchError(l,n);throw this.emit("error",f,r),f}}}isRetryable(r,i){if(i.signal?.aborted||r.isType(A.Maintenance)||r.isType(A.Cancelled)||!(r.isNetworkError()||r.status!==void 0&&vb.has(r.status)))return!1;let o=(i.method??"GET").toUpperCase();return o==="GET"||o==="HEAD"?!0:o==="PUT"||o==="DELETE"?!1:this.hasIdempotencyKey(i.headers)}hasIdempotencyKey(r){if(!r)return!1;let i=un.HEADER.toLowerCase(),n=!1,o=a=>{a.toLowerCase()===i&&(n=!0)};if(r instanceof Headers)r.forEach((a,s)=>{o(s)});else if(Array.isArray(r))for(let[a]of r)o(a);else for(let a of Object.keys(r))o(a);return n}async attemptOnce(r,i,n,o=this.timeout){let a=()=>{};try{let s=await this.mergeHeaders(i.headers),c=this.createTimeoutSignal(i.signal,o);a=c.cleanup;let u={...i,headers:s,credentials:this.session&&!s.Authorization?"include":void 0,signal:c.signal};this.emit("request",r,u);let l=await this.fetch(r,u);if(a(),!l.ok)throw await O.fromHttpResponse(l,n);return this.emit("response",this.safeClone(l),r),{data:await this.parseResponse(this.safeClone(l)),status:l.status}}catch(s){a();let c=O.fromFetchError(s,n);throw this.emit("error",c,r),c}}async request(r,i,n,o){let{data:a}=await this.executeRequest(r,i,n,o);return a}async requestWithStatus(r,i,n){return this.executeRequest(r,i,n)}async mergeHeaders(r={}){return{...this.globalHeaders,...this.caller?{[cn.HEADER]:this.caller}:{},...await this.getAuthHeadersCallback(),...r}}createTimeoutSignal(r,i=this.timeout){let n=new AbortController,o=setTimeout(()=>n.abort(new DOMException(`Timed out after ${i}ms`,"TimeoutError")),i),a=r?()=>n.abort(r.reason):void 0;return r&&a&&(r.addEventListener("abort",a),r.aborted&&n.abort(r.reason)),{signal:n.signal,cleanup:()=>{clearTimeout(o),r&&a&&r.removeEventListener("abort",a)}}}safeClone(r){try{return r.clone()}catch{return r}}async parseResponse(r){if(!(r.headers.get("Content-Length")==="0"||r.status===204))return r.json()}async deploy(r,i={}){if(!r.length)throw O.business("No files to deploy");for(let u of r)if(!u.md5)throw O.file(`MD5 checksum missing for file: ${u.path}`,{filePath:u.path});Yo(i.password);let n=rp(i.idempotencyKey),o=Yn(i.labels);await Xh(r);let a=i.build||i.prerender||i.spa?{build:i.build,prerender:i.prerender,spa:i.spa}:void 0,{body:s,headers:c}=await this.createDeployBody(r,{labels:o,via:i.via??xb,password:i.password,flags:a,captcha:i.captcha});return this.request(`${this.apiUrl}${this.deployEndpoint}`,{method:"POST",body:s,headers:n?{...c,[un.HEADER]:n}:c,signal:i.signal||null},"Deploy",i.build||i.prerender?this.deployBuildTimeout:this.deployTimeout)}async listDeployments(r){return this.request(`${this.apiUrl}${Z.DEPLOYMENTS}${fd(r)}`,{method:"GET"},"List deployments")}async getDeployment(r){return this.request(`${this.apiUrl}${Z.DEPLOYMENT(encodeURIComponent(r))}`,{method:"GET"},"Get deployment")}async updateDeploymentLabels(r,i){let n=Yn(i);return this.request(`${this.apiUrl}${Z.DEPLOYMENT(encodeURIComponent(r))}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({labels:n})},"Update deployment labels")}async deleteDeployment(r){return this.request(`${this.apiUrl}${Z.DEPLOYMENT(encodeURIComponent(r))}`,{method:"DELETE"},"Delete deployment")}async setDomain(r,i,n){let o=Yn(n),a={};i&&(a.deployment=i),o!==void 0&&(a.labels=o);let{data:s,status:c}=await this.requestWithStatus(`${this.apiUrl}${Z.DOMAIN(encodeURIComponent(r))}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},"Set domain");return{...s,isCreate:c===201}}async listDomains(r){return this.request(`${this.apiUrl}${Z.DOMAINS}${fd(r)}`,{method:"GET"},"List domains")}async getDomain(r){return this.request(`${this.apiUrl}${Z.DOMAIN(encodeURIComponent(r))}`,{method:"GET"},"Get domain")}async deleteDomain(r){return this.request(`${this.apiUrl}${Z.DOMAIN(encodeURIComponent(r))}`,{method:"DELETE"},"Delete domain")}async verifyDomain(r){return this.request(`${this.apiUrl}${Z.DOMAIN_VERIFY(encodeURIComponent(r))}`,{method:"POST"},"Verify domain")}async getDomainDns(r){return this.request(`${this.apiUrl}${Z.DOMAIN_DNS(encodeURIComponent(r))}`,{method:"GET"},"Get domain DNS")}async getDomainRecords(r){return this.request(`${this.apiUrl}${Z.DOMAIN_RECORDS(encodeURIComponent(r))}`,{method:"GET"},"Get domain records")}async getDomainShare(r){return this.request(`${this.apiUrl}${Z.DOMAIN_SHARE(encodeURIComponent(r))}`,{method:"GET"},"Get domain share")}async validateDomain(r){return this.request(`${this.apiUrl}${Z.DOMAINS_VALIDATE}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:r})},"Validate domain")}async createToken(r,i){let n=Yn(i),o={};return r!==void 0&&(o.ttl=r),n!==void 0&&(o.labels=n),this.request(`${this.apiUrl}${Z.TOKENS}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)},"Create token")}async listTokens(r){return this.request(`${this.apiUrl}${Z.TOKENS}${fd(r)}`,{method:"GET"},"List tokens")}async deleteToken(r){return this.request(`${this.apiUrl}${Z.TOKEN(encodeURIComponent(r))}`,{method:"DELETE"},"Delete token")}async getToken(r){return this.request(`${this.apiUrl}${Z.TOKEN(encodeURIComponent(r))}`,{method:"GET"},"Get token")}async getAccount(){return this.request(`${this.apiUrl}${Z.ACCOUNT}`,{method:"GET"},"Get account")}async getLimits(){return this.request(`${this.apiUrl}${Z.LIMITS}`,{method:"GET"},"Get limits")}async ping(){return this.request(`${this.apiUrl}${Z.PING}`,{method:"GET"},"Ping")}async checkSPA(r,i={}){let n=r.find(c=>c.path===hr.INDEX_FILE||c.path===`/${hr.INDEX_FILE}`);if(!n||n.size>hr.MAX_INDEX_BYTES)return!1;let o;if(typeof Buffer<"u"&&Buffer.isBuffer(n.content))o=n.content.toString("utf-8");else if(typeof Blob<"u"&&n.content instanceof Blob)o=await n.content.text();else if(typeof File<"u"&&n.content instanceof File)o=await n.content.text();else return!1;let a={files:r.map(c=>c.path),index:o};return(await this.request(`${this.apiUrl}${Z.SPA_CHECK}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},"SPA check")).isSPA}};M();M();hd();async function wb(){let e=JSON.stringify(ap,null,2),t;typeof Buffer<"u"?t=Buffer.from(e,"utf-8"):t=new Blob([e],{type:"application/json"});let{md5:r}=await mo(t);return{path:Ae,content:t,size:e.length,md5:r}}async function ng(e,t,r){if(r.spaDetect===!1||r.spa||r.build||r.prerender||e.some(i=>i.path===Ae))return e;try{if(await t.checkSPA(e,r)){let n=await wb();return[...e,n]}}catch{}return e}function rg(e){let{getApi:t,ensureInit:r,processInput:i}=e;return{upload:async(n,o={})=>{if(await r(),!i)throw O.config("processInput function is not provided.");let a=t(),s=await i(n,o);return s=await ng(s,a,o),a.deploy(s,o)},list:async n=>(await r(),t().listDeployments(n)),get:async n=>(await r(),t().getDeployment(n)),set:async(n,o)=>(await r(),t().updateDeploymentLabels(n,o.labels)),delete:async n=>(await r(),t().deleteDeployment(n))}}function ig(e){let{getApi:t,ensureInit:r}=e;return{set:async(i,n={})=>(await r(),t().setDomain(i,n.deployment,n.labels)),list:async i=>(await r(),t().listDomains(i)),get:async i=>(await r(),t().getDomain(i)),delete:async i=>(await r(),t().deleteDomain(i)),verify:async i=>(await r(),t().verifyDomain(i)),validate:async i=>(await r(),t().validateDomain(i)),dns:async i=>(await r(),t().getDomainDns(i)),records:async i=>(await r(),t().getDomainRecords(i)),share:async i=>(await r(),t().getDomainShare(i))}}function og(e){let{getApi:t,ensureInit:r}=e;return{get:async()=>(await r(),t().getAccount())}}function ag(e){let{getApi:t,ensureInit:r}=e;return{create:async(i={})=>(await r(),t().createToken(i.ttl,i.labels)),list:async i=>(await r(),t().listTokens(i)),get:async i=>(await r(),t().getToken(i)),delete:async i=>(await r(),t().deleteToken(i))}}var fo=class{constructor(t={}){this.initPromise=null;this.platformLimits=null;this.credential=null;if(t={...t,apiUrl:t.apiUrl||void 0,token:t.token||void 0,caller:t.caller||void 0},this.clientOptions=t,t.caller!==void 0&&up(t.caller),t.token&&t.session)throw O.config("Provide either `token` or `session`, not both.");typeof t.token=="string"?(it(t.token),this.credential=t.token):t.token&&(this.credential=t.token),this.http=new po({...t,getAuthHeaders:()=>this.getAuthHeaders(),createDeployBody:this.getDeployBodyCreator()});let r={getApi:()=>this.http,ensureInit:()=>this.ensureInitialized()};this.deployments=rg({...r,processInput:(i,n)=>this.processInput(i,n)}),this.domains=ig(r),this.account=og(r),this.tokens=ag(r)}async ensureInitialized(){return this.initPromise||(this.initPromise=this.fetchPlatformLimits()),this.initPromise}async fetchPlatformLimits(){try{this.platformLimits=await this.http.getLimits()}catch(t){throw this.initPromise=null,t}}async ping(){return await this.ensureInitialized(),this.http.ping()}async deploy(t,r){return this.deployments.upload(t,r)}async whoami(){return this.account.get()}async getLimits(){return this.platformLimits?this.platformLimits:(await this.ensureInitialized(),this.platformLimits)}on(t,r){this.http.on(t,r)}off(t,r){this.http.off(t,r)}setHeaders(t){this.http.setGlobalHeaders(t)}clearHeaders(){this.http.setGlobalHeaders({})}setToken(t){if(this.clientOptions.session)throw O.config("Provide either `token` or `session`, not both.");if(typeof t=="string"){if(!t)throw O.business("Invalid token provided. Token must be a non-empty string.");it(t),this.credential=t;return}if(typeof t!="function")throw O.business("Invalid token provided. Token must be a non-empty string or a provider function.");this.credential=t}async getAuthHeaders(){if(this.credential===null)return{};let t=typeof this.credential=="function"?await this.credential():this.credential;if(!t)throw O.authentication("Token provider returned no token.");if(typeof t!="string")throw O.authentication("Token provider returned a non-string value.");return{Authorization:`Bearer ${t}`}}};no();M();async function wg(e,t={}){let{FormData:r,File:i}=await Promise.resolve().then(()=>(dg(),lg)),{FormDataEncoder:n}=await Promise.resolve().then(()=>(Sg(),kg)),{labels:o,via:a,password:s,flags:c,captcha:u}=t,l=new r,f=[];for(let k of e){if(!Buffer.isBuffer(k.content)&&!(typeof Blob<"u"&&k.content instanceof Blob))throw O.file(`Unsupported file.content type for Node.js: ${k.path}`,{filePath:k.path});if(!k.md5)throw O.file(`File missing md5 checksum: ${k.path}`,{filePath:k.path});let E=new i([k.content],k.path,{type:"application/octet-stream"});l.append(ke.FILES,E),f.push(k.md5)}l.append(ke.CHECKSUMS,JSON.stringify(f)),o&&o.length>0&&l.append(ke.LABELS,JSON.stringify(o)),a&&l.append(ke.VIA,a),s&&l.append(ke.PASSWORD,s),c?.build&&l.append(ke.BUILD,"true"),c?.prerender&&l.append(ke.PRERENDER,"true"),c?.spa&&l.append(ke.SPA,"true"),u&&l.append(ke.CAPTCHA,u);let p=new n(l),y=[];for await(let k of p.encode())y.push(Buffer.from(k));let b=Buffer.concat(y);return{body:b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength),headers:{"Content-Type":p.contentType,"Content-Length":Buffer.byteLength(b).toString()}}}var Io=class extends fo{constructor(t={}){if(Qt()!=="node")throw O.business("Node.js Ship class can only be used in Node.js environment.");let r=en();super({...t,apiUrl:t.apiUrl||r.apiUrl,token:t.token||(t.session?void 0:r.token)})}async deploy(t,r){return super.deploy(t,r)}async processInput(t,r){let i=typeof t=="string"?[t]:t;if(!Array.isArray(i)||!i.every(o=>typeof o=="string"))throw O.business("Invalid input type for Node.js environment. Expected string or string[].");if(i.length===0)throw O.business("No files to deploy.");let{processFilesForNode:n}=await Promise.resolve().then(()=>(Zg(),Fg));return n(i,r,this.platformLimits??void 0)}getDeployBodyCreator(){return wg}};function zd(e,t,r){return{apiUrl:e.apiUrl||t.apiUrl||r.apiUrl,token:e.token||t.token||r.token}}function Mg(e={}){return new Io(zd(e,en(),uo(e.config)))}M();function Vg(e){return ce(e)?e:e instanceof Error?O.business(e.message):O.business(String(e??"Unknown error"))}var Od="pass --token, set SHIP_TOKEN, or run ship config";function Bg(e,t){return e.isAuthError()?t?.token?"authentication failed: invalid or expired token":`authentication required: ${Od}`:e.isNetworkError()?"network error: could not reach the API. check your internet connection":e.isType(A.Maintenance)?`${e.message.replace(/\.$/,"")} \u2014 check https://status.shipstatic.com`:e.isClientError()?e.message:`${e.message.replace(/\.$/,"")} \u2014 try again, or check https://status.shipstatic.com`}M();var Pd=(e,t)=>`https://setup.shipstatic.com/${e}/${t}`;function Ed(e,t){return e[t]}var Xb={[tp.DELETING]:"served until cleanup completes"},Yb={upload:"uploaded",create:"created",delete:"deleted",verify:"verification queued"};function Wg(e,t){let{operation:r,resource:i}=t;if(!i||e===null||typeof e!="object")return null;let n=r==="set"?Ed(e,"isCreate")?"created":"updated":Yb[r];if(!n)return null;let o=Ed(e,i);if(typeof o!="string")return null;let a=Ed(e,"status"),s=typeof a=="string"?Xb[a]:void 0;return`${o} ${i} ${s?`${a} \u2014 ${s}`:n}`}function Jg(e,t,r){if(r.json||r.quiet)return;let i=Wg(e,t);i&&Ee(i,!1,r.noColor)}function Qb(e,t){let{noColor:r}=t;if(e.deployments.length===0){console.log("no deployments found"),console.log();return}let i=["deployment","labels","files","size","created","via"];console.log(Xn(e.deployments,i,r)),Td(e.cursor,r)}function Td(e,t){e&&et(`more results available \u2014 rerun with --cursor ${e}`,!1,t)}function ek(e,t){let{noColor:r}=t;if(e.domains.length===0){console.log("no domains found"),console.log();return}let i=["domain","deployment","labels","linked","links","created"];console.log(Xn(e.domains,i,r)),Td(e.cursor,r)}function Gg(e,t){let{noColor:r}=t,{_dnsRecords:i,_shareHash:n,isCreate:o,...a}=e;i&&i.length>0&&(console.log(),et("DNS records to configure:",!1,r),i.forEach(s=>{console.log(` ${s.type}: ${s.name} \u2192 ${s.value}`)})),n&&(console.log(),et(`Setup instructions: ${Pd(n,e.domain)}`,!1,r)),console.log(tt(a,r))}function Dd(e,t){let{noColor:r}=t;console.log(tt(e,r));let i=e.claim;if(i){let n=e.expires?Math.round((e.expires-e.created)/86400):null;console.log(`IMPORTANT: this deployment${n?` expires in ${n} day${n!==1?"s":""}`:" will expire"}, claim it to keep permanently:
238
238
  ${i}
239
- `),et("configure a free API key with 'ship config' to deploy to your own account",!1,r)}}function Xb(e,t){let{noColor:r}=t;console.log(tt(e,r))}function Yb(e,t){let{noColor:r}=t;if(e.valid){if(Ee(`${e.normalized??"domain"} domain is valid`,!1,r),console.log(),e.available!==null){let i=e.available?r?"available":"available \u2713":"already taken";console.log(` availability: ${i}`)}console.log()}else console.log(`${nn(e.reason??"domain is invalid")}
240
- `)}function Qb(e,t){let{noColor:r}=t;if(e.records.length===0){console.log("no records found"),console.log();return}let i=["type","name","value"];console.log(Xn(e.records,i,r))}function ek(e,t){let{noColor:r}=t,i=e.dns?.provider?.name||null;console.log(tt({domain:e.domain,provider:i},r))}function tk(e,t){let{noColor:r}=t;console.log(tt({domain:e.domain,setup:Dd(e.hash,e.domain)},r))}function nk(e,t){let{noColor:r}=t;if(e.tokens.length===0){console.log("no tokens found"),console.log();return}let i=["token","labels","created","expires"];console.log(Xn(e.tokens,i,r)),Td(e.cursor,r)}function Vg(e,t){let{noColor:r}=t;console.log(tt(e,r))}var W=e=>e,rk=e=>e.resource?`${e.resource}.${e.operation}`:e.operation,ik={"deployment.list":W({quiet:e=>e.deployments.map(t=>t.deployment),text:qb}),"deployment.upload":W({quiet:e=>[e.deployment],text:Ed}),"deployment.get":W({quiet:e=>[e.deployment],text:Ed}),"deployment.set":W({quiet:e=>[e.deployment],text:Ed}),"deployment.delete":W({quiet:e=>[e.deployment],text:()=>{}}),"domain.list":W({quiet:e=>e.domains.map(t=>t.domain),text:Kb}),"domain.get":W({quiet:e=>[e.domain],text:Mg}),"domain.set":W({quiet:e=>[e.domain],text:Mg}),"domain.validate":W({quiet:e=>e.valid&&e.normalized?[e.normalized]:[],text:Yb}),"domain.verify":W({quiet:e=>[e.domain],text:()=>{}}),"domain.records":W({quiet:e=>e.records.map(t=>`${t.type} ${t.name} ${t.value}`),text:Qb}),"domain.dns":W({quiet:e=>e.dns?.provider?.name?[e.dns.provider.name]:[],text:ek}),"domain.share":W({quiet:e=>[Dd(e.hash,e.domain)],text:tk}),"domain.delete":W({quiet:e=>[e.domain],text:()=>{}}),"token.list":W({quiet:e=>e.tokens.map(t=>t.token),text:nk}),"token.create":W({quiet:e=>[e.secret],text:Vg}),"token.get":W({quiet:e=>[e.token],text:Vg}),"token.delete":W({quiet:e=>[e.token],text:()=>{}}),"account.get":W({quiet:e=>[e.email],text:Xb}),ping:W({quiet:()=>[],text:(e,t)=>Ee("api reachable",!1,t.noColor)})};function Hg(e,t,r){let{json:i,quiet:n,noColor:o}=r,a=ik[rk(t)];if(n){for(let c of a?.quiet(e)??[])console.log(c);return}if(i&&e!==null&&typeof e=="object"){let c={...e};delete c._dnsRecords,delete c._shareHash,delete c.isCreate,console.log(JSON.stringify(c,null,2)),console.log();return}let s=Bg(e,t);s&&Ee(s,!1,o),a?a.text(e,r):e!==null&&typeof e=="object"&&console.log(tt(e,o))}function pk(){let e=[jd.resolve(__dirname,"../package.json"),jd.resolve(__dirname,"../../package.json")];for(let t of e)try{return JSON.parse((0,_t.readFileSync)(t,"utf-8"))}catch{}return{version:"0.0.0"}}var mk=pk();function fk(e){let t=o=>e?o:Qo(o),r=o=>e?o:Ve(o),i=o=>e?"":`${o} `;return`${t("USAGE")}
239
+ `),et("configure a free API key with 'ship config' to deploy to your own account",!1,r)}}function tk(e,t){let{noColor:r}=t;console.log(tt(e,r))}function nk(e,t){let{noColor:r}=t;if(e.valid){if(Ee(`${e.normalized??"domain"} domain is valid`,!1,r),console.log(),e.available!==null){let i=e.available?r?"available":"available \u2713":"already taken";console.log(` availability: ${i}`)}console.log()}else console.log(`${nn(e.reason??"domain is invalid")}
240
+ `)}function rk(e,t){let{noColor:r}=t;if(e.records.length===0){console.log("no records found"),console.log();return}let i=["type","name","value"];console.log(Xn(e.records,i,r))}function ik(e,t){let{noColor:r}=t,i=e.dns?.provider?.name||null;console.log(tt({domain:e.domain,provider:i},r))}function ok(e,t){let{noColor:r}=t;console.log(tt({domain:e.domain,setup:Pd(e.hash,e.domain)},r))}function ak(e,t){let{noColor:r}=t;if(e.tokens.length===0){console.log("no tokens found"),console.log();return}let i=["token","labels","created","expires"];console.log(Xn(e.tokens,i,r)),Td(e.cursor,r)}function Hg(e,t){let{noColor:r}=t;console.log(tt(e,r))}var W=e=>e,sk=e=>e.resource?`${e.resource}.${e.operation}`:e.operation,ck={"deployment.list":W({quiet:e=>e.deployments.map(t=>t.deployment),text:Qb}),"deployment.upload":W({quiet:e=>[e.deployment],text:Dd}),"deployment.get":W({quiet:e=>[e.deployment],text:Dd}),"deployment.set":W({quiet:e=>[e.deployment],text:Dd}),"deployment.delete":W({quiet:e=>[e.deployment],text:()=>{}}),"domain.list":W({quiet:e=>e.domains.map(t=>t.domain),text:ek}),"domain.get":W({quiet:e=>[e.domain],text:Gg}),"domain.set":W({quiet:e=>[e.domain],text:Gg}),"domain.validate":W({quiet:e=>e.valid&&e.normalized?[e.normalized]:[],text:nk}),"domain.verify":W({quiet:e=>[e.domain],text:()=>{}}),"domain.records":W({quiet:e=>e.records.map(t=>`${t.type} ${t.name} ${t.value}`),text:rk}),"domain.dns":W({quiet:e=>e.dns?.provider?.name?[e.dns.provider.name]:[],text:ik}),"domain.share":W({quiet:e=>[Pd(e.hash,e.domain)],text:ok}),"domain.delete":W({quiet:e=>[e.domain],text:()=>{}}),"token.list":W({quiet:e=>e.tokens.map(t=>t.token),text:ak}),"token.create":W({quiet:e=>[e.secret],text:Hg}),"token.get":W({quiet:e=>[e.token],text:Hg}),"token.delete":W({quiet:e=>[e.token],text:()=>{}}),"account.get":W({quiet:e=>[e.email],text:tk}),ping:W({quiet:()=>[],text:(e,t)=>Ee("api reachable",!1,t.noColor)})};function qg(e,t,r){let{json:i,quiet:n,noColor:o}=r,a=ck[sk(t)];if(n){for(let c of a?.quiet(e)??[])console.log(c);return}if(i&&e!==null&&typeof e=="object"){let c={...e};delete c._dnsRecords,delete c._shareHash,delete c.isCreate,console.log(JSON.stringify(c,null,2)),console.log();return}let s=Wg(e,t);s&&Ee(s,!1,o),a?a.text(e,r):e!==null&&typeof e=="object"&&console.log(tt(e,o))}function gk(){let e=[Ud.resolve(__dirname,"../package.json"),Ud.resolve(__dirname,"../../package.json")];for(let t of e)try{return JSON.parse((0,_t.readFileSync)(t,"utf-8"))}catch{}return{version:"0.0.0"}}var vk=gk();function yk(e){let t=o=>e?o:Qo(o),r=o=>e?o:Ve(o),i=o=>e?"":`${o} `;return`${t("USAGE")}
241
241
  ship <path> ${i("\u{1F680}")}Deploy static sites with simplicity
242
242
 
243
243
  ${t("COMMANDS")}
@@ -294,9 +294,9 @@ ${t("EXAMPLES")}
294
294
  ship ./dist -q | ship domains set www.example.com
295
295
 
296
296
  ${r("Please report any issues to https://github.com/shipstatic/ship/issues")}
297
- `}var ur=e=>new O(A.Validation,e);function Io(e,t=[]){return t.concat([e])}function Oo(e){let t=Number.parseInt(e,10);if(Number.isNaN(t))throw new Kd("Not a number.");return t}function zo(e){let t=e.label;if(!t?.length)return;let r=t.filter(i=>i!=="");return r.length?r:[]}function hk(e){return e.password??(process.env.SHIP_PASSWORD||void 0)}var gk=new Set(["--token","--config","--api-url","--json","--quiet","--no-color","--version"]);function tv(e){let t=[];for(let r=e;r?.parent;r=r.parent)t.unshift(r.name());return t.length||t.push(...e.registeredArguments.map(r=>`<${r.name()}>`)),t.join(" ")}function nv(e,t){return[...e.options.some(r=>r.long===t)?[tv(e)]:[],...e.commands.flatMap(r=>nv(r,t))]}function vk(e,t){if(t!==e)for(let r of e.options){let i=r.long;if(!i||gk.has(i)||e.getOptionValueSource(r.attributeName())!=="cli"||t.options.some(o=>o.long===i))continue;let n=nv(e,i).map(o=>`ship ${o}`);throw ur(`option '${i}' does not apply to 'ship ${tv(t)}'${n.length?` \u2014 it belongs to ${n.join(", ")}`:""}`)}}function Te(e){let t=e.optsWithGlobals();t.color===!1&&(t.noColor=!0);let r=!!process.env.FORCE_COLOR&&process.env.FORCE_COLOR!=="0";return!t.noColor&&!r&&(!process.stdout.isTTY||process.env.NO_COLOR!==void 0)&&(t.noColor=!0),t}function cr(){let e=Te(this),t=ye(this).map(i=>i.name()),r=this.args.find(i=>!t.includes(i));r&&on(ur(`unknown command '${r}'`),e.json,e.noColor),e.json||console.log(`usage: ship ${this.name()} <${t.join("|")}>
298
- `),process.exitCode=1}function Yg(e){let t={};try{t=uo(e.config)}catch{}let r=Id(e,en(),t).token;return typeof r=="string"?r:void 0}async function Qg(e,t,r){if(!(0,_t.existsSync)(t))throw O.file(`${t} path does not exist`,{filePath:t});let i=(0,_t.statSync)(t);if(!i.isDirectory()&&!i.isFile())throw O.file(`${t} path must be a file or directory`,{filePath:t});let n={via:tp(process.env.SHIP_VIA)??Jo.CLI},o=zo(r);o!==void 0&&(n.labels=o);let a=process.env.SHIP_IDEMPOTENCY_KEY||void 0;a!==void 0&&(n.idempotencyKey=a);let s=hk(r);s!==void 0&&(n.password=s),r.pathDetect!==void 0&&(n.pathDetect=r.pathDetect),r.spaDetect!==void 0&&(n.spaDetect=r.spaDetect);let c=new AbortController;n.signal=c.signal;let u=null;if(process.stdout.isTTY&&!r.json&&!r.quiet&&!r.noColor){let{default:f}=await Promise.resolve().then(()=>(Xg(),Kg));u=f({text:"uploading\u2026"}).start()}let l=()=>{c.abort(),u&&u.stop(),process.exit(130)};process.on("SIGINT",l);try{return await e.deployments.upload(t,n)}finally{process.removeListener("SIGINT",l),u&&u.stop()}}async function ev(e,t,r){let i=await e.domains.set(t,r);if(i.isCreate&&t.includes("."))try{let[n,o]=await Promise.all([e.domains.records(t),e.domains.share(t)]);return{...i,_dnsRecords:n.records,_shareHash:o.hash}}catch{}return i}function rv(){let e=new Xd;e.exitOverride(p=>{if(p.code==="commander.help"||p.code==="commander.version"||p.exitCode===0)throw p;let y=Te(e),b=p.message||"unknown command error";throw b=b.replace(/^error: /,"").replace(/\n.*/,"").replace(/\.$/,"").toLowerCase(),on(ur(b),y.json,y.noColor),y.json||e.outputHelp(),p}).configureOutput({writeErr:p=>{p.startsWith("error:")||process.stderr.write(p)},writeOut:p=>process.stdout.write(p)});function t(p){let y=Te(e),b=Fg(p);if(y.json)on(b,!0,y.noColor);else{let E=Zg(b,{token:b.isAuthError()?Yg(e.opts()):void 0});on(E,!1,y.noColor),b.type===A.Validation&&E.includes("unknown command")&&e.outputHelp()}process.exitCode=1}function r(p,y){return async function(...b){let E=Te(this);try{let{config:I,apiUrl:$,token:_}=e.opts(),m=Lg({config:I,apiUrl:$,token:_}),d=await p(m,E,...b);Hg(d,y,{json:E.json,quiet:E.quiet,noColor:E.noColor})}catch(I){t(I)}}}e.name("ship").description("\u{1F680} Deploy static sites with simplicity").version(mk.version,"-V, --version","Show version information").option("--token <token>","Any ship token: API key (ship-\u2026) or deploy token (deploy-\u2026)").option("--config <file>","Custom config file path").option("--api-url <url>","API URL (for development)").option("--json","Output results in JSON format").option("-q, --quiet","Output only the resource identifier").option("--no-color","Disable colored output").helpOption("-h, --help","Display help for command").helpCommand("help [command]","Display help for command").configureHelp({formatHelp:(p,y)=>p.parent===null?`${fk(Te(p).noColor)}
299
- `:Yd.prototype.formatHelp.call(y,p,y)}).allowExcessArguments(),e.hook("preAction",(p,y)=>{let b=Te(p);try{vk(e,y),b.token&&typeof b.token=="string"&&it(b.token),b.apiUrl&&typeof b.apiUrl=="string"&&cp(b.apiUrl)}catch(E){throw ce(E)?(on(E,b.json,b.noColor),new mr(1,"ship.invalidOption",E.message)):E}}),e.command("ping").description("Check API connectivity").action(r((p,y)=>p.ping(),{operation:"ping"})),e.command("whoami").description("Get current account information").action(r((p,y)=>p.whoami(),{operation:"get",resource:"account"}));let i=r((p,y,b)=>Qg(p,b,y),{operation:"upload",resource:"deployment"}),n=p=>r(async(y,b,E)=>{if(!Yg(e.opts()))throw O.config(`--domain links a domain, which needs a token: ${Od}`);let I=await Qg(y,E,b);return Gg(I,{operation:"upload",resource:"deployment"},b),ev(y,p,{deployment:I.deployment})},{operation:"set",resource:"domain"});function o(p){let{domain:y}=Te(this);return(y?n(y):i).call(this,p)}let a=p=>p.option("--domain <domain>","Serve this deployment at a domain (needs a token)").option("--label <label>","Label to add (can be repeated)",Io,[]).option("--password <password>","Password-protect this deployment").option("--no-path-detect","Disable automatic path optimization and flattening").option("--no-spa-detect","Disable automatic SPA detection and configuration"),s=e.command("deployments").description("Manage deployments").enablePositionalOptions().action(cr);s.command("list").description("List deployments (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",Oo).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,y,b)=>p.deployments.list(b),{operation:"list",resource:"deployment"})),a(s.command("upload <path>").description("Upload deployment from file or directory").passThroughOptions()).action(o),s.command("get <deployment>").description("Show deployment information").action(r((p,y,b)=>p.deployments.get(b),{operation:"get",resource:"deployment"})),s.command("set <deployment>").description("Set deployment labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",Io,[]).action(r(async(p,y,b)=>p.deployments.set(b,{labels:zo(y)||[]}),{operation:"set",resource:"deployment"})),s.command("delete <deployment>").description("Delete deployment permanently").action(r((p,y,b)=>p.deployments.delete(b),{operation:"delete",resource:"deployment"}));let c=e.command("domains").description("Manage domains").enablePositionalOptions().action(cr);c.command("list").description("List domains (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",Oo).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,y,b)=>p.domains.list(b),{operation:"list",resource:"domain"})),c.command("get <name>").description("Show domain information").action(r((p,y,b)=>p.domains.get(b),{operation:"get",resource:"domain"})),c.command("validate <name>").description("Check if domain name is valid and available").action(r(async(p,y,b)=>{let E=await p.domains.validate(b);return E.valid||(process.exitCode=1),E},{operation:"validate",resource:"domain"})),c.command("verify <name>").description("Trigger DNS verification for external domain").action(r((p,y,b)=>p.domains.verify(b),{operation:"verify",resource:"domain"})),c.command("records <name>").description("Show required DNS records for domain setup").action(r((p,y,b)=>p.domains.records(b),{operation:"records",resource:"domain"})),c.command("dns <name>").description("Look up DNS provider for a domain").action(r((p,y,b)=>p.domains.dns(b),{operation:"dns",resource:"domain"})),c.command("share <name>").description("Get shareable DNS setup link").action(r((p,y,b)=>p.domains.share(b),{operation:"share",resource:"domain"})),c.command("set <name> [deployment]").description("Create domain, link to deployment, or update labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",Io,[]).action(r(async(p,y,b,E)=>{!E&&!process.stdin.isTTY&&(E=await new Promise(_=>{let m="";process.stdin.on("data",d=>m+=d),process.stdin.on("end",()=>_(m.trim()||void 0))}));let I=zo(y),$={};return E&&($.deployment=E),I!==void 0&&($.labels=I),ev(p,b,$)},{operation:"set",resource:"domain"})),c.command("delete <name>").description("Delete domain permanently").action(r((p,y,b)=>p.domains.delete(b),{operation:"delete",resource:"domain"}));let u=e.command("tokens").description("Manage deploy tokens").enablePositionalOptions().action(cr);u.command("list").description("List deploy tokens (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",Oo).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,y,b)=>p.tokens.list(b),{operation:"list",resource:"token"})),u.command("create").description("Create a new deploy token").option("--ttl <seconds>","Time to live in seconds (default: never expires)",Oo).option("--label <label>","Label to set (can be repeated)",Io,[]).action(r((p,y,b)=>{let E={};b?.ttl!==void 0&&(E.ttl=b.ttl);let I=zo(y);return I!==void 0&&(E.labels=I),p.tokens.create(E)},{operation:"create",resource:"token"})),u.command("get <token>").description("Show one deploy token").action(r((p,y,b)=>p.tokens.get(b),{operation:"get",resource:"token"})),u.command("delete <token>").description("Delete token permanently").action(r((p,y,b)=>p.tokens.delete(b),{operation:"delete",resource:"token"})),e.command("account").description("Manage account").action(cr).command("get").description("Show account information").action(r((p,y)=>p.whoami(),{operation:"get",resource:"account"}));let f=e.command("completion").description("Setup shell completion").action(cr);return f.command("install").description("Install shell completion script").action(()=>{let p=Te(e);try{Lh(e,{json:p.json,noColor:p.noColor})}catch(y){t(y)}}),f.command("uninstall").description("Uninstall shell completion script").action(()=>{let p=Te(e);try{Fh({json:p.json,noColor:p.noColor})}catch(y){t(y)}}),e.command("config").description("Save your token").action(async()=>{let p=Te(e);try{if(p.json)throw ur("ship config is interactive \u2014 run it without --json (it shows the token already saved)");await Jh({noColor:p.noColor,configFile:p.config})}catch(y){t(y)}}),a(e.argument("[path]","Path to deploy")).action(async function(p){if(!p){this.outputHelp();return}if(!(0,_t.existsSync)(p)&&!p.includes("/")&&!p.includes("\\")&&!p.includes(".")&&!p.startsWith("~")){t(ur(`unknown command '${p}'`));return}return o.call(this,p)}),e}rv().parseAsync(process.argv).catch(e=>{if(e instanceof mr){process.exitCode=e.exitCode;return}throw e});
297
+ `}var ur=e=>new O(A.Validation,e);function zo(e,t=[]){return t.concat([e])}function Oo(e){let t=Number.parseInt(e,10);if(Number.isNaN(t))throw new Xd("Not a number.");return t}function Eo(e){let t=e.label;if(!t?.length)return;let r=t.filter(i=>i!=="");return r.length?r:[]}function _k(e){return e.password??(process.env.SHIP_PASSWORD||void 0)}var $k=new Set(["--token","--config","--api-url","--json","--quiet","--no-color","--version"]);function iv(e){let t=[];for(let r=e;r?.parent;r=r.parent)t.unshift(r.name());return t.length||t.push(...e.registeredArguments.map(r=>`<${r.name()}>`)),t.join(" ")}function ov(e,t){return[...e.options.some(r=>r.long===t)?[iv(e)]:[],...e.commands.flatMap(r=>ov(r,t))]}function xk(e,t){if(t!==e)for(let r of e.options){let i=r.long;if(!i||$k.has(i)||e.getOptionValueSource(r.attributeName())!=="cli"||t.options.some(o=>o.long===i))continue;let n=ov(e,i).map(o=>`ship ${o}`);throw ur(`option '${i}' does not apply to 'ship ${iv(t)}'${n.length?` \u2014 it belongs to ${n.join(", ")}`:""}`)}}function Pe(e){let t=e.optsWithGlobals();t.color===!1&&(t.noColor=!0);let r=!!process.env.FORCE_COLOR&&process.env.FORCE_COLOR!=="0";return!t.noColor&&!r&&(!process.stdout.isTTY||process.env.NO_COLOR!==void 0)&&(t.noColor=!0),t}function cr(){let e=Pe(this),t=ye(this).map(i=>i.name()),r=this.args.find(i=>!t.includes(i));r&&on(ur(`unknown command '${r}'`),e.json,e.noColor),e.json||console.log(`usage: ship ${this.name()} <${t.join("|")}>
298
+ `),process.exitCode=1}function tv(e){let t={};try{t=uo(e.config)}catch{}let r=zd(e,en(),t).token;return typeof r=="string"?r:void 0}async function nv(e,t,r){if(!(0,_t.existsSync)(t))throw O.file(`${t} path does not exist`,{filePath:t});let i=(0,_t.statSync)(t);if(!i.isDirectory()&&!i.isFile())throw O.file(`${t} path must be a file or directory`,{filePath:t});let n={via:np(process.env.SHIP_VIA)??qo.CLI},o=Eo(r);o!==void 0&&(n.labels=o);let a=process.env.SHIP_IDEMPOTENCY_KEY||void 0;a!==void 0&&(n.idempotencyKey=a);let s=_k(r);s!==void 0&&(n.password=s),r.pathDetect!==void 0&&(n.pathDetect=r.pathDetect),r.spaDetect!==void 0&&(n.spaDetect=r.spaDetect);let c=new AbortController;n.signal=c.signal;let u=null;if(process.stdout.isTTY&&!r.json&&!r.quiet&&!r.noColor){let{default:f}=await Promise.resolve().then(()=>(ev(),Qg));u=f({text:"uploading\u2026"}).start()}let l=()=>{c.abort(),u&&u.stop(),process.exit(130)};process.on("SIGINT",l);try{return await e.deployments.upload(t,n)}finally{process.removeListener("SIGINT",l),u&&u.stop()}}async function rv(e,t,r){let i=await e.domains.set(t,r);if(i.isCreate&&t.includes("."))try{let[n,o]=await Promise.all([e.domains.records(t),e.domains.share(t)]);return{...i,_dnsRecords:n.records,_shareHash:o.hash}}catch{}return i}function av(){let e=new Yd;e.exitOverride(p=>{if(p.code==="commander.help"||p.code==="commander.version"||p.exitCode===0)throw p;let y=Pe(e),b=p.message||"unknown command error";throw b=b.replace(/^error: /,"").replace(/\n.*/,"").replace(/\.$/,"").toLowerCase(),on(ur(b),y.json,y.noColor),y.json||e.outputHelp(),p}).configureOutput({writeErr:p=>{p.startsWith("error:")||process.stderr.write(p)},writeOut:p=>process.stdout.write(p)});function t(p){let y=Pe(e),b=Vg(p);if(y.json)on(b,!0,y.noColor);else{let k=Bg(b,{token:b.isAuthError()?tv(e.opts()):void 0});on(k,!1,y.noColor),b.type===A.Validation&&k.includes("unknown command")&&e.outputHelp()}process.exitCode=1}function r(p,y){return async function(...b){let k=Pe(this);try{let{config:E,apiUrl:x,token:_}=e.opts(),m=Mg({config:E,apiUrl:x,token:_}),d=await p(m,k,...b);qg(d,y,{json:k.json,quiet:k.quiet,noColor:k.noColor})}catch(E){t(E)}}}e.name("ship").description("\u{1F680} Deploy static sites with simplicity").version(vk.version,"-V, --version","Show version information").option("--token <token>","Any ship token: API key (ship-\u2026) or deploy token (deploy-\u2026)").option("--config <file>","Custom config file path").option("--api-url <url>","API URL (for development)").option("--json","Output results in JSON format").option("-q, --quiet","Output only the resource identifier").option("--no-color","Disable colored output").helpOption("-h, --help","Display help for command").helpCommand("help [command]","Display help for command").configureHelp({formatHelp:(p,y)=>p.parent===null?`${yk(Pe(p).noColor)}
299
+ `:Qd.prototype.formatHelp.call(y,p,y)}).allowExcessArguments(),e.hook("preAction",(p,y)=>{let b=Pe(p);try{xk(e,y),b.token&&typeof b.token=="string"&&it(b.token),b.apiUrl&&typeof b.apiUrl=="string"&&lp(b.apiUrl)}catch(k){throw ce(k)?(on(k,b.json,b.noColor),new mr(1,"ship.invalidOption",k.message)):k}}),e.command("ping").description("Check API connectivity").action(r((p,y)=>p.ping(),{operation:"ping"})),e.command("whoami").description("Get current account information").action(r((p,y)=>p.whoami(),{operation:"get",resource:"account"}));let i=r((p,y,b)=>nv(p,b,y),{operation:"upload",resource:"deployment"}),n=p=>r(async(y,b,k)=>{if(!tv(e.opts()))throw O.config(`--domain links a domain, which needs a token: ${Od}`);let E=await nv(y,k,b);return Jg(E,{operation:"upload",resource:"deployment"},b),rv(y,p,{deployment:E.deployment})},{operation:"set",resource:"domain"});function o(p){let{domain:y}=Pe(this);return(y?n(y):i).call(this,p)}let a=p=>p.option("--domain <domain>","Serve this deployment at a domain (needs a token)").option("--label <label>","Label to add (can be repeated)",zo,[]).option("--password <password>","Password-protect this deployment").option("--no-path-detect","Disable automatic path optimization and flattening").option("--no-spa-detect","Disable automatic SPA detection and configuration"),s=e.command("deployments").description("Manage deployments").enablePositionalOptions().action(cr);s.command("list").description("List deployments (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",Oo).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,y,b)=>p.deployments.list(b),{operation:"list",resource:"deployment"})),a(s.command("upload <path>").description("Upload deployment from file or directory").passThroughOptions()).action(o),s.command("get <deployment>").description("Show deployment information").action(r((p,y,b)=>p.deployments.get(b),{operation:"get",resource:"deployment"})),s.command("set <deployment>").description("Set deployment labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",zo,[]).action(r(async(p,y,b)=>p.deployments.set(b,{labels:Eo(y)||[]}),{operation:"set",resource:"deployment"})),s.command("delete <deployment>").description("Delete deployment permanently").action(r((p,y,b)=>p.deployments.delete(b),{operation:"delete",resource:"deployment"}));let c=e.command("domains").description("Manage domains").enablePositionalOptions().action(cr);c.command("list").description("List domains (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",Oo).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,y,b)=>p.domains.list(b),{operation:"list",resource:"domain"})),c.command("get <name>").description("Show domain information").action(r((p,y,b)=>p.domains.get(b),{operation:"get",resource:"domain"})),c.command("validate <name>").description("Check if domain name is valid and available").action(r(async(p,y,b)=>{let k=await p.domains.validate(b);return k.valid||(process.exitCode=1),k},{operation:"validate",resource:"domain"})),c.command("verify <name>").description("Trigger DNS verification for external domain").action(r((p,y,b)=>p.domains.verify(b),{operation:"verify",resource:"domain"})),c.command("records <name>").description("Show required DNS records for domain setup").action(r((p,y,b)=>p.domains.records(b),{operation:"records",resource:"domain"})),c.command("dns <name>").description("Look up DNS provider for a domain").action(r((p,y,b)=>p.domains.dns(b),{operation:"dns",resource:"domain"})),c.command("share <name>").description("Get shareable DNS setup link").action(r((p,y,b)=>p.domains.share(b),{operation:"share",resource:"domain"})),c.command("set <name> [deployment]").description("Create domain, link to deployment, or update labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",zo,[]).action(r(async(p,y,b,k)=>{!k&&!process.stdin.isTTY&&(k=await new Promise(_=>{let m="";process.stdin.on("data",d=>m+=d),process.stdin.on("end",()=>_(m.trim()||void 0))}));let E=Eo(y),x={};return k&&(x.deployment=k),E!==void 0&&(x.labels=E),rv(p,b,x)},{operation:"set",resource:"domain"})),c.command("delete <name>").description("Delete domain permanently").action(r((p,y,b)=>p.domains.delete(b),{operation:"delete",resource:"domain"}));let u=e.command("tokens").description("Manage deploy tokens").enablePositionalOptions().action(cr);u.command("list").description("List deploy tokens (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",Oo).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,y,b)=>p.tokens.list(b),{operation:"list",resource:"token"})),u.command("create").description("Create a new deploy token").option("--ttl <seconds>","Time to live in seconds (default: never expires)",Oo).option("--label <label>","Label to set (can be repeated)",zo,[]).action(r((p,y,b)=>{let k={};b?.ttl!==void 0&&(k.ttl=b.ttl);let E=Eo(y);return E!==void 0&&(k.labels=E),p.tokens.create(k)},{operation:"create",resource:"token"})),u.command("get <token>").description("Show one deploy token").action(r((p,y,b)=>p.tokens.get(b),{operation:"get",resource:"token"})),u.command("delete <token>").description("Delete token permanently").action(r((p,y,b)=>p.tokens.delete(b),{operation:"delete",resource:"token"})),e.command("account").description("Manage account").action(cr).command("get").description("Show account information").action(r((p,y)=>p.whoami(),{operation:"get",resource:"account"}));let f=e.command("completion").description("Setup shell completion").action(cr);return f.command("install").description("Install shell completion script").action(()=>{let p=Pe(e);try{Zh(e,{json:p.json,noColor:p.noColor})}catch(y){t(y)}}),f.command("uninstall").description("Uninstall shell completion script").action(()=>{let p=Pe(e);try{Mh({json:p.json,noColor:p.noColor})}catch(y){t(y)}}),e.command("config").description("Save your token").action(async()=>{let p=Pe(e);try{if(p.json)throw ur("ship config is interactive \u2014 run it without --json (it shows the token already saved)");await Kh({noColor:p.noColor,configFile:p.config})}catch(y){t(y)}}),a(e.argument("[path]","Path to deploy")).action(async function(p){if(!p){this.outputHelp();return}if(!(0,_t.existsSync)(p)&&!p.includes("/")&&!p.includes("\\")&&!p.includes(".")&&!p.startsWith("~")){t(ur(`unknown command '${p}'`));return}return o.call(this,p)}),e}av().parseAsync(process.argv).catch(e=>{if(e instanceof mr){process.exitCode=e.exitCode;return}throw e});
300
300
  /*! Bundled license information:
301
301
 
302
302
  formdata-node/lib/form-data.js: